You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Torsten Römer <to...@luniks.net> on 2007/06/05 12:59:26 UTC
/ and primitive properties
I tried to use primitive types/arrays of primitives as "name" property
of <s:radio> and <s:checkboxlist>.
It works fine, but the state is not maintained because the
ContainUtil.compare() method returns false as it compares e.g. an
Integer and a Sting using Object.equals().
Is there a reason why we can't use primitives like in for example
<s:checkbox>?
I patched my own ContainUtil.compare() and it seems to work fine now -
should I log a JIRA issue/RFE?
Hope I haven't overlooked an existing issue/post on this!
Torsten
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: / and primitive properties
Posted by Torsten Römer <to...@luniks.net>.
Sorry I just realize I didn't use the tag the right way. I had String
literals in my list instead of the actual primitives/objects...
Now of course it works just fine without any patching!
Slowly, but I am getting there ;-)
Torsten
Torsten Römer schrieb:
> I tried to use primitive types/arrays of primitives as "name" property
> of <s:radio> and <s:checkboxlist>.
>
> It works fine, but the state is not maintained because the
> ContainUtil.compare() method returns false as it compares e.g. an
> Integer and a Sting using Object.equals().
>
> Is there a reason why we can't use primitives like in for example
> <s:checkbox>?
>
> I patched my own ContainUtil.compare() and it seems to work fine now -
> should I log a JIRA issue/RFE?
>
> Hope I haven't overlooked an existing issue/post on this!
>
> Torsten
>
> ---------------------------------------------------------------------
> 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