but EL is not allowed in Struts tags. 
when I use # or $ I get the actual string (not the value).
mmmmm...any idea? 



wild_oscar wrote:
> 
> They are attributes of the displaytag.
> current is the id you give to each line in the table: 
> 
> <display:table class="lista"  name="list" pagesize="10" id="current">
> 
> 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.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 Entity: (entityID, city...) 
>> 
>> it looks like this:
>>      entityID, State
>> [x]  23          Japan
>> [x]  62          USA
>> [ ]  67          China
>> 
>> so my question is this, given the list how do I fix this line with your
>> suggestion?
>> 
>> <display:column><s:checkbox theme="simple" name="userCheck"
>> fieldValue='%{entityId}' /></display:column>
>> 
>> 
>> * I also tried %{myid} nothing :-(
>> 
>> THANK YOU!!!
>> 
>> 
>> 
>> 
>> wild_oscar wrote:
>>> 
>>> 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-input-with-checkbox-to16966533.html
>>>  
>>> 
>>> Which basically happens when the action is executed without any checkbox
>>> selected.
>>> 
>>> 
>>> xianwinwin wrote:
>>>> 
>>>> 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:
>>>> 
>>>> <display:column><s:checkbox theme="simple" name="userCheck"
>>>> fieldValue='${entityId}'/></display:column>    
>>>> 
>>>> I wonder why I don't get the *value/content* of the userCheck. Instead,
>>>> I get ${entityId} (this really very string)
>>>> 
>>>> any idea how to get the entityId (the number)?
>>>> 
>>>> thank you! 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2---displayTag-how-to-use-checkBox--Problem%3A-translating-the-fieldValue-tp16945993p16986185.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to