Hi I'm using stripes select to choose from a dropdown of dates:
<stripes:select name="myDate">
<c:forEach items="${actionBean.dateList}" var="date">
<stripes:option value="date" formatPattern="dd/MM/yyyy"
formatType="date">
<joda:format
value="${date}"
pattern="dd/MMM/yyyy" />
</stripes:option>
</c:forEach>
</stripes:select>
<joda:format> tag just formats the Joda DateTime object for the label. We
already have a formatter and converter registered to convert to/from Joda
DateTimes.
The JSP falls over here:
net.sourceforge.stripes.exception.StripesRuntimeException: No formatType or
formatPattern specified for date tag. At least one must be specified.
at xxx.stripes.JodaDateTimeFormatter.init(JodaDateTimeFormatter.java:86)
at
xxx.stripes.PortalFormatterFactory.initialiseFormatter(PortalFormatterFactory.java:76)
at
xxx.stripes.PortalFormatterFactory.getFormatter(PortalFormatterFactory.java:55)
at
net.sourceforge.stripes.tag.InputTagSupport.format(InputTagSupport.java:238)
at
net.sourceforge.stripes.tag.InputTagSupport.isItemSelected(InputTagSupport.java:176)
at
net.sourceforge.stripes.tag.InputSelectTag.isOptionSelected(InputSelectTag.java:107)
at
net.sourceforge.stripes.tag.InputOptionTag.doEndInputTag(InputOptionTag.java:123)
at
net.sourceforge.stripes.tag.InputTagSupport.doEndTag(InputTagSupport.java:347)
...
Its seems to me that the select tag also needs a formatPattern and
formatType defined to correlate with the option's formatter.
Any ideas?
Thanks,
Pat
--
View this message in context:
http://www.nabble.com/Is-stripes%3Aselect-missing-formatType-and-formatPattern-attributes--tp17145138p17145138.html
Sent from the stripes-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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