O.K. Solved. I added this property in wrong properties file. Sorry.
--
Milan
Milan Milanovic wrote:
>
> I put in my MyActionClass-conversion.properties file like this:
>
> prop = com.myProject.conversions.DoubleConverter
>
> But when user click on the "Delete" link, it is the same, 0 is add
I put in my MyActionClass-conversion.properties file like this:
prop = com.myProject.conversions.DoubleConverter
But when user click on the "Delete" link, it is the same, 0 is added at the
end of the Double, so I supose that this converter is not called, as prop is
send through params ? It seems
One more this why is this wierd, because when number is entered through
textfield it is converted good with default Double convertor, but when it is
converted from jsp link (as I give above) it add 0 to the end..
--
Milan
Jeromy Evans - Blue Sky Minds wrote:
>
> Milan Milanovic wrote:
>> Uf, b
I have defined new DoubleConverter, but now I don't know how to define
conversion in MyActionClass-conversion.properties file. I know how to define
it for form fields, but how to define it for a link, like below:
Delete
?
"prop" is Double.
--
Thx, Milan
Jeromy Evans - Blue Sky Mi
Hi Jeromy,
well, if someone have this converter, please give it here.
I use BigDecimals for currency, this double is just for representing some
real values.
--
Milan
Jeromy Evans - Blue Sky Minds wrote:
>
> Milan Milanovic wrote:
>> Uf, bug again :-(((.
>>
>> Is there any custom type-convert
Milan Milanovic wrote:
Uf, bug again :-(((.
Is there any custom type-converter for Double-s that doesn't have this error
?
--
Milan
A custom type-converter means you can write one yourself for that
specific property. It's very simple:
http://struts.apache.org/2.0.11.2/docs/type-convers
Uf, bug again :-(((.
Is there any custom type-converter for Double-s that doesn't have this error
?
--
Milan
Jeromy Evans - Blue Sky Minds wrote:
>
> I've seen this reported previous as a bug in S2/Xwork (appending an
> extra 0 character). I can't recall where I saw that.
>
> Write a cus
I've seen this reported previous as a bug in S2/Xwork (appending an
extra 0 character). I can't recall where I saw that.
Write a custom type-converter for that field to work-around it.
Milan Milanovic wrote:
This is some wierd Struts behaviour for Double conversion, e.g., if my prop
attribute
This is some wierd Struts behaviour for Double conversion, e.g., if my prop
attribute in JSP was 2232.435, when user click on this "Delete" link, in my
action class for prop attribute I get: 2232435.0 ?!
--
Milan
Milan Milanovic wrote:
>
> Hi,
>
> I have this code in my jsp:
>
>
> ...
>
>
I checked this with Firebug and in jsp, "prop" is O.K.:
...
# Delete
...
But, when user click on the link, in action class I get 12340.0 !!
--
Regards, Milan
Milan Milanovic wrote:
>
> Hi,
>
> I have this code in my jsp:
>
>
> ...
>
>
>
> notifyTopics="/delete" targets="fruits">
10 matches
Mail list logo