Re: Bunch of issues...
Philip Luppens <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <5262879.1145345191803.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
> >
> > Use format="%d-%m-%Y %H:%M" or whatever you need.
> >
> That doesn't address either issue I had. The format
> still ends up being hardcoded in the page, and when I
> first go to the page, it still doesn't display using
> the format I've specified.
Indeed, it should work out of the box, but there are some problems with the javascript/java formatting notation. We tried to contact the authors, but no avail.
A workaround would be this:
In your properties file:
[code]
my.java.datetime.format=dd-MM-yyyy hh:mm
my.javascript.datetime.format=%d-%m-%Y %H:%M
[/code]
And in your jsp/freemarker/whatever:
[code]
<ww:date name="%{new java.util.Date()}" format="%{getText('my.java.datetime.format')}" id="date"/>
<ww:datepicker value="%{#date}" showstime="%{true}" format="%{getText('my.javascript.datetime.format')}"/>
[/code]
> > I wrote the tag because I needed a lot of date
> > formatting in one of my latest projects. Found it
> > really useful. You're welcome to use whatever
> basic
> > java solution you can come up with.
>
> Does it offer anything at all over <ww:text
> name="date"><ww:param value="myDate" /></ww:text>?
Perhaps, depends on your needs. It's shorter, cleaner, more obvious, allows 'nice' publishing and it gives me fuzzy feelings whenever it gets executed.
I also like to add that whatever respect you should get for being well-versed in the art of java programming is totally outdone by your attitude.
The way you brought up these points (whether or not they are valid, I'll leave that as an exercise to the reader) is below all standards.
If you do something about your lack of manners and ego problem, we'll address these issues.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26282&messageID=51788#51788
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]