I never use the Dojo framework,he he
2010/9/9 Rahul Mohan
> Andi,
>
> I have noticed this happening once in a while in my app too. haven't
> investigated yet. Did you try to reproduce this with your browser cache
> turned off?
>
> /Rahul
>
>
>
> From:
> "Andreas Sachs"
> To:
> user@struts.
Andi,
I have noticed this happening once in a while in my app too. haven't
investigated yet. Did you try to reproduce this with your browser cache
turned off?
/Rahul
From:
"Andreas Sachs"
To:
user@struts.apache.org
Date:
08-09-2010 18:54
Subject:
Dojo datetimepicker problem
Struts: 2.1.
Sure I succeeded wrapping the String to Date conversion outside of the
action class with custom type conversion class.
I guess I expected that when uses java.util.Date
property when rendering the HTML, I will get the new value in the same
property after submitting the form which holds the
Since
Were you able to get this to pass through as a date? After reading what was
posted here it seems like it definitely should be possible, but that you were
still having issues.
-Tim
Dimitar Vlasev wrote:
Though it would be even elegant enough solution if I was able to refer
to the static patter
> Though it would be even elegant enough solution if I was able to refer
> to the static pattern String in the .jsp like that
>
> But I got exception:
> According to TLD or attribute directive in tag file, attribute
> displayFormat does not accept any expressions
Accessing static properties resol
Few findings:
http://struts.apache.org/2.0.14/docs/type-conversion.html
at section "Built in Type Conversion Support" documentation says:
XWork will automatically handle the most common type conversion for
you. This includes support for converting to and from Strings for each
of the following:
...
Thank you Timothy, I've suspected something like that. Of course
anyone can read Date from String but the question was is this behavior
a bug or a feature.
Musachy:
has attribute "displayFormat" but not "format". Of
course it's not user friendly format thus I can't really use it in
application,
You can specify the format of the date with the "format" attribute. By
default it should be RFC3339(-MM-dd'T'HH:mm:ss), but it doesnt
seem like it is doing that for you. If it is in that format, struts
will parse it to a Date object. What is the html generated for that
field in your page?
musa
Hello,
Someone might have to jump in and correct me on this but I think that it should just be coming in as a string. As I understand it, the form's action doesn't know that you're using a datepicker in the
form, it only sees a text field with a value (a string). Struts tag libs just generate H
9 matches
Mail list logo