John,
I don't have specific advice on your InputSelectTag question, but I've
implemented a couple of my own tags by just extending existing Stripes
implementations and defining the new tags in their own tld. It worked
out fine.
Chris.
On Dec 9, 2008, at 12:08 PM, Newman, John W wrote:
Hi,
Our current project has 2 issues with the way InputSelectTag does
repopulation: first, the formatter facility is called unnecessarily
often, and we can’t rely on the formatted values to determine
equality - object.equals(other) is all we need. I need to override
InputTagSupport.isItemSelected in InputSelectTag. I can fork the
stripes project and keep that going, but is there a way to extend
this tag as a drop in?
Say you have a select tag with 10 options and step through this
method. The formatter gets used 10 times to render each option’s
value on the page (OK). Then to determine if an option is selected,
each option is formatted a 2nd time (probably unnecessary), but
worse the value object is formatted once for every option, even
though it is the same every time. So a select box with 10 options
makes 30 calls to the formatter, when really only 11 are required.
In our case the format operation is a bit expensive..
The real problem for us is that we cannot guarantee that the
formatted output will be the same two times for the same object (xml
& jaxb). We have overridden equals to just compare the identity
property, this is all the select tag needs to do. So my question
is, can I make input select tag use object.equals instead of format
format format, without forking our own stripes.jar? Or do we have
to provide a <stripesExtension:select /> that extends from the
existing InputSelectTag instead? Any ideas how we can implement
either of these?
Thanks in advance,
John
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
Nevada.
The future of the web can't happen without you. Join us at MIX09 to
help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users