Bunch of issues...
Hani Suleiman <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <4477460.1145305909250.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
(sorry for posting this in dev, but I was told it's better if i post this here)
1) Why does WW silently swallow OgnlExceptions that should be reported?
For example, if I have "jerkOff()" in my webpage, and that method throws an NPE in my action, I am not told of that fact. OgnlValueStack instead silently swallows the exception. The correct approach is to interrogate the exception and figure out that it's a valid method call that failed (instead of an invalid method altogether, which is OK to ignore due to dodgy parameters etc).
2) How do I tell the datepicker what date format it should use, and why is the default so stupid? By default (ww:datepicker name="date" />), if I initialise it to the current date (new Date()), it's show as M-dd-yy. Soon as I pick a date in the picker, it becomes MM-dd-yyyy. Pretty unpolished.
3) Why is the calendar css included in every ww:head tag? Why not stick it in the pageContext the first time it's needed, and subsequent tags can just check if the pageContext has a boolean to say the css has already been included? (not a biggie, but while I'm bitching, figured I'd mention it)
4) What's wrong with the following?
In java:
public List<CommissionReport> getReports()
public double getTotal(List<CommissionReport> reports)
<ww:set name="reports" value="getReports('youmomma')" />
<ww:iterator value="#reports">...do Stuff</ww:iterator>
<ww:property value="getTotal(#reports)" />
Any guesses for what happens here? My getTotal method is called correcty...with a list of the right size...that happens to contain...*drum roll*....strings! ognl decides to pass in values in CommissionReport@aabf4f (so each item in the list is toStringified)
5) What's the point of ww:date, if I know how to format dates in i18n bundles, or did the author just not know basic java?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26282&messageID=51714#51714
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]