You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Milan Milanovic <mi...@yahoo.com> on 2009/02/27 16:40:57 UTC
[S2] Famoso Double conversion problem in S2 2.0.11.1!
Hi,
I have again problem with Double conversion. I have a link in my page for
double values:
<s:iterator ...>
...
<s:url id="refUrl" action="setValue">
<s:param name="refValue" value="refValue" />
</s:url>
<s:a id="c_%{refValue}" href="%{refUrl}" theme="ajax"
targets="refValues">Set value</s:a>
...
</s:iterator>
In the form where refValue is entered I'm using my DoubleConverter
conversion, and I checked with Firebug, refValue is set good, e.g.,
c_4550.0. But when I click to this link above, I get 45500.0. Famoso zero is
added!!
Then I tried to define conversion properties for a class who have refValue
attribute to my custom DoubleConvereter, but in this case click on the link
"Set value" doesn't do anything! It is like a dead link.
I checked also with Firebug and it is e.g., c_4550.
What is the problem here and how can I solve it ?
--
Regards, M.
--
View this message in context: http://www.nabble.com/-S2--Famoso-Double-conversion-problem-in-S2-2.0.11.1%21-tp22248310p22248310.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Famoso Double conversion problem in S2 2.0.11.1!
Posted by Bert Van den Brande <cy...@gmail.com>.
I think this may be caused by this bug :
https://issues.apache.org/struts/browse/WW-3018
On Sat, Feb 28, 2009 at 9:25 PM, Milan Milanovic
<mi...@yahoo.com> wrote:
>
> No solutions ?
>
> Could maybe this be a problem, in this code:
> <s:iterator ...>
> ...
> <s:url id="refUrl" action="setValue">
> <s:param name="refValue1" value="refValue" />
> </s:url>
> ...
> </s:iterator>
>
> refValue1 is of type Double in my action class, and I have DoubleConverter
> defined for its conversion, but my refValue is of simple type double, which
> is read from the list in iterator. When I click to this link, conversion is
> not invoked, why ?
>
> --
> Thx, M.
>
>
> Milan Milanovic wrote:
>>
>> When generated in jsp, this link looks like this:
>>
>> <\a id="c_5442.00" showerror="true" targets="refValues"
>> dojotype="struts:BindAnchor" href="#"> Set value "
>>
>> But when clicked nothing happes, it doesn't event came to conversion.
>> (Note: I added \ before a because this forum show this code as a link
>> only).
>>
>> --
>> M.
>>
>>
>> Milan Milanovic wrote:
>>>
>>> Hi,
>>>
>>> I have again problem with Double conversion. I have a link in my page for
>>> double values:
>>>
>>> <s:iterator ...>
>>> ...
>>> <s:url id="refUrl" action="setValue">
>>> <s:param name="refValue" value="refValue" />
>>> </s:url>
>>>
>>> <s:a id="c_%{refValue}" href="%{refUrl}" theme="ajax"
>>> targets="refValues">Set value</s:a>
>>> ...
>>> </s:iterator>
>>>
>>> In the form where refValue is entered I'm using my DoubleConverter
>>> conversion, and I checked with Firebug, refValue is set good, e.g.,
>>> c_4550.0. But when I click to this link above, I get 45500.0. Famoso zero
>>> is added!!
>>>
>>> Then I tried to define conversion properties for a class who have
>>> refValue attribute to my custom DoubleConvereter, but in this case click
>>> on the link "Set value" doesn't do anything! It is like a dead link.
>>> I checked also with Firebug and it is e.g., c_4550.
>>>
>>> What is the problem here and how can I solve it ?
>>>
>>> --
>>> Regards, M.
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/-S2--Famoso-Double-conversion-problem-in-S2-2.0.11.1%21-tp22248310p22266388.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Famoso Double conversion problem in S2 2.0.11.1!
Posted by Milan Milanovic <mi...@yahoo.com>.
No solutions ?
Could maybe this be a problem, in this code:
<s:iterator ...>
...
<s:url id="refUrl" action="setValue">
<s:param name="refValue1" value="refValue" />
</s:url>
...
</s:iterator>
refValue1 is of type Double in my action class, and I have DoubleConverter
defined for its conversion, but my refValue is of simple type double, which
is read from the list in iterator. When I click to this link, conversion is
not invoked, why ?
--
Thx, M.
Milan Milanovic wrote:
>
> When generated in jsp, this link looks like this:
>
> <\a id="c_5442.00" showerror="true" targets="refValues"
> dojotype="struts:BindAnchor" href="#"> Set value "
>
> But when clicked nothing happes, it doesn't event came to conversion.
> (Note: I added \ before a because this forum show this code as a link
> only).
>
> --
> M.
>
>
> Milan Milanovic wrote:
>>
>> Hi,
>>
>> I have again problem with Double conversion. I have a link in my page for
>> double values:
>>
>> <s:iterator ...>
>> ...
>> <s:url id="refUrl" action="setValue">
>> <s:param name="refValue" value="refValue" />
>> </s:url>
>>
>> <s:a id="c_%{refValue}" href="%{refUrl}" theme="ajax"
>> targets="refValues">Set value</s:a>
>> ...
>> </s:iterator>
>>
>> In the form where refValue is entered I'm using my DoubleConverter
>> conversion, and I checked with Firebug, refValue is set good, e.g.,
>> c_4550.0. But when I click to this link above, I get 45500.0. Famoso zero
>> is added!!
>>
>> Then I tried to define conversion properties for a class who have
>> refValue attribute to my custom DoubleConvereter, but in this case click
>> on the link "Set value" doesn't do anything! It is like a dead link.
>> I checked also with Firebug and it is e.g., c_4550.
>>
>> What is the problem here and how can I solve it ?
>>
>> --
>> Regards, M.
>>
>
>
--
View this message in context: http://www.nabble.com/-S2--Famoso-Double-conversion-problem-in-S2-2.0.11.1%21-tp22248310p22266388.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Famoso Double conversion problem in S2 2.0.11.1!
Posted by Milan Milanovic <mi...@yahoo.com>.
When generated in jsp, this link looks like this:
# Set value
But when clicked nothing happes, it doesn't event came to conversion.
--
M.
Milan Milanovic wrote:
>
> Hi,
>
> I have again problem with Double conversion. I have a link in my page for
> double values:
>
> <s:iterator ...>
> ...
> <s:url id="refUrl" action="setValue">
> <s:param name="refValue" value="refValue" />
> </s:url>
>
> <s:a id="c_%{refValue}" href="%{refUrl}" theme="ajax"
> targets="refValues">Set value</s:a>
> ...
> </s:iterator>
>
> In the form where refValue is entered I'm using my DoubleConverter
> conversion, and I checked with Firebug, refValue is set good, e.g.,
> c_4550.0. But when I click to this link above, I get 45500.0. Famoso zero
> is added!!
>
> Then I tried to define conversion properties for a class who have refValue
> attribute to my custom DoubleConvereter, but in this case click on the
> link "Set value" doesn't do anything! It is like a dead link.
> I checked also with Firebug and it is e.g., c_4550.
>
> What is the problem here and how can I solve it ?
>
> --
> Regards, M.
>
--
View this message in context: http://www.nabble.com/-S2--Famoso-Double-conversion-problem-in-S2-2.0.11.1%21-tp22248310p22248834.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org