Hi all,
I have a table with a list of buyers. Each buyer has a checkBox that the
user can click and decide if he wants to work with them.
I'm using displayTag and this is my code:
I wonder why I don't get the *value/content* of the userCheck. Instead, I
get ${entityId} (this really very s
r 2008 16:40:19 -0700 (PDT)
> To:
> Subject: struts2 & displayTag how to use checkBox; Problem: translating the
> fieldValue
>
>
> Hi all,
>
> I have a table with a list of buyers. Each buyer has a checkBox that the
> user can click and decide if he wants to work wi
Have you tried fieldValue="%{#attr.current.entityId}?
If you're using the displayTag, you could also have a check at an issue I
have:
http://www.nabble.com/No-result-defined-for-action-and-result-input-with-checkbox-to16966533.html
http://www.nabble.com/No-result-defined-for-action-and-result-inp
thank you Wild Oscar,
this is a good starting point for me.
what is the attr and current here?
%{#attr.current.entityId}?
I have this on the action:
private String[] userCheck;
private Long[] myid; which is a list of Longs {23,62,67,88,125}
those reflects all the entitieIDs
The list is E
They are attributes of the displaytag.
current is the id you give to each line in the table:
Check the displaytag's documentation for more info.
xianwinwin wrote:
>
> thank you Wild Oscar,
> this is a good starting point for me.
> what is the attr and current here?
>
> %{#attr.current.enti
but EL is not allowed in Struts tags.
when I use # or $ I get the actual string (not the value).
m...any idea?
wild_oscar wrote:
>
> They are attributes of the displaytag.
> current is the id you give to each line in the table:
>
>
>
> Check the displaytag's documentation for more in
Oh, I'm sorry, I'm using Struts 2.0.9 and I have no problem with EL in tags.
Haven't used 2.0.11. Be sure to post the answer when you find it!
xianwinwin wrote:
>
> but EL is not allowed in Struts tags.
> when I use # or $ I get the actual string (not the value).
> m...any idea?
>
>
>
Thanks Oscar,
I did check on the displayTag (since yesterday)so, I understand that I
need to have something like this:
and the checkBox:
but: '%{myid[current]}' doesn't work.
this works: '%{myid[0]}'
'%{myid[1]}'
'%{myid[2]}'
so in other words I just do
8 matches
Mail list logo