Sunday, April 18, 2010

Done. (?)

I believe we finally have a solution to the ticket! While I hate to speak too soon, it does appear that we have satisfied all of the requests and requirements of our ticket. I'm just hoping that we did this in a way that will be satisfactory to the powers that be. The final step was in figuring out how to access the thumbnail we created in the preview tag class. This was proving to be much more of a hassle than we had first expected, but it is now working. Basically, in the JS/JSP you can pass another parameter called view. This will then be passed through what seems to be 1000 different classes and methods. It eventually ends up at the image handler classes getObs method (assuming we are talking about a complex ob with an image handler of course). In this method we were able to add a test to see if the view="thumbnail". This allows us to return the generated thumbnail instead of the full size image. We were also able to get the resize method to keep the original image's ratio instead of giving us a set 100x100. The only thing we have left to do is go through our code and clean it up. We plan to submit it back to be committed this week.

2 comments: