Hi, We have developped a taglib, using tag files, that we're using to "decorate" stripes tags and add some more funcionalities (for example a calendar for date fields). This is working really well and we can generate interfaces really cleanly and easily.
For this, we are using tag files. One example of this is the form tag which looks like: <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %> <%@ attribute name="action" required="false" %> <%@ attribute name="beanclass" required="false" type="java.lang.Object" %> <%@ attribute name="focus" required="false" %> <%@ attribute name="id" required="false" %> <%@ attribute name="method" required="false" %> <%@ attribute name="enctype" required="false" %> <table class="tab"> <stripes:form action="${action}" beanclass="${beanclass}" focus="${focus}" id="${id}" method="${method}" enctype="${enctype}"> <jsp:doBody/> </stripes:form> </table> As you can see, not all parameters are required, so when one is not set, it's value will be set to the empty string. Apparently this is not a problem for the action/beanclass couple, for the focus attribute as well, but stripes will happily generate something like: <form action="/example.action" enctype="" method="" id=""> ... </form> In this case, the browser seems to get the default method and enctype, but wouldn't it be better if the stripes taglibs didn't generate empty attributes ? Regards, -- Etienne Bernard <[EMAIL PROTECTED]> Director Técnico - FullSIX España - http://www.fullsix.es/ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
