Like Kishan, I am unable to get the "row" to work...
I never get anything back from #myrow.param, any suggestions?  The rest of
the table using pure displaytag works fine.  I am using displaytag 1.1, my
code is below.

<display:table name="airParameters"
        sort="list"
        pagesize="50"
        requestURI=""
        class="dataDisplay"
        id="row"> 
        <s:set name="myrow"
                value="#attr.row"/> 
        <display:caption media="all"
                class="tableCaption">
                <s:text name="airParameter.table.caption" />
        </display:caption>
        <display:setProperty name="basic.empty.showtable"
                                        value="true" />
        <display:column property="applicationName"
                title="Application Name"
                sortable="true"
                class="longText" />
        <display:column title="Parameter Value"
                sortable="false"
                class="longText numeric">
                <s:property value="#myrow.applicationName" />
        </display:column>
</display:table>

Thanks for any ideas or suggestions.

-Seth


Jeromy Evans - Blue Sky Minds wrote:
> 
> Yes, I use it as stated previously.  Is row the object you think it is?  
> You either have a typo or you're trying to access properties of row that 
> don't exist.
> 
> The code below shows plain html contained in a column that accesses 
> properties of the current row.
> 
> <s:if test="xxxList.size > 0">
>   <display:table name="xxxList" id="row">
>      <s:set name="myrow" value="#attr.row"/>
>      <display:column sortable="true" title="Name" property="name"/>
>      <display:column sortable="true" title="Date Created" 
> property="dateCreated" decorator="xxx.decorators.ShortDateDecorator"/>
>      <display:column sortable="false" title="Example">
>          View  xxx.action?xxxId=<s:property 
value= "><s:property value="#myrow.name"/> 
>       </display:column>
>    </display:table>
> </s:if>
> 
> * note there are better ways to generate an anchor in a displaytag 
> table.  This is demonstrating how to access the current row using 
> struts2 tags.
> 
> kishanparikh wrote:
>> Hello,
>>
>> Were you able to get the "row" to work? I am trying to get hold of the my
>> properties using the "row" variable inside of a displaytag table. The
>> table
>> itself if working fine.
>>
>> I have tried both the JSTL and the OGNL way but the "row" is always
>> empty.
>>
>> Does anyone know how to get this working for Struts2? Any help is
>> appreciated.
>>
>> Thank you.
>>
>> - Kishan
> 

-- 
View this message in context: 
http://www.nabble.com/Displaytag-help-in-Struts-2-tf4028889.html#a11709743
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