You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by tandrews <ta...@scenpro.com> on 2008/10/27 16:37:10 UTC
Re: Struts2 DisplayTag dynamic table
This is exactly what I need, but I'm a little bit confused about how it
works. You have chartDATA as your table's name (so I'm guessing it's a list
of rows of some sort), and then you have ajax:displayTag id="chartDATA"...
then when you reference chartDATA later, which one are you referencing? Can
this be done without the ajax portion (mostly so I can get it done in a
simpler fashion first)? Is your list "chartDATA" some kind of 2 dimensional
array, because I see that the s:property value item seems to be a 2
dimensional array to get the value... Any additional help on this would be
great!
Thanks
--TJ
dynamicd wrote:
>
> <ajax:displayTag id="chartDATA" ajaxFlag="chartDATA">
> <display:table name="chartDATA" uid="chartRow" id="chartRow" pagesize="25"
> excludedParams="*" export="true" class="table"
> requestURI="/Dashboard/ViewReportData.action">
> <s:iterator value="columnNames" id="column" status="stat2">
> <display:column title="${column}"><s:property
> value="#attr.chartDATA[#attr.chartRow_rowNum -1][#stat2.count-1]" />
> </display:column>
> </s:iterator>
> </display:table>
> </ajax:displayTag>
> </form>
>
> </div>
>
> Hopefully it will help someone..
>
--
View this message in context: http://www.nabble.com/Struts2-DisplayTag-dynamic-table-tp19681086p20190187.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: Struts2 DisplayTag dynamic table
Posted by dynamicd <dh...@gmail.com>.
it references the ChartDATA in the displytag
yes this can be done without the ajax portion ..just remove the ajax tags
chartDATA is a 2 dimensional List . a list inside a list.
tandrews wrote:
>
> This is exactly what I need, but I'm a little bit confused about how it
> works. You have chartDATA as your table's name (so I'm guessing it's a
> list of rows of some sort), and then you have ajax:displayTag
> id="chartDATA"... then when you reference chartDATA later, which one are
> you referencing? Can this be done without the ajax portion (mostly so I
> can get it done in a simpler fashion first)? Is your list "chartDATA"
> some kind of 2 dimensional array, because I see that the s:property value
> item seems to be a 2 dimensional array to get the value... Any additional
> help on this would be great!
>
> Thanks
> --TJ
>
>
>
> dynamicd wrote:
>>
>> <ajax:displayTag id="chartDATA" ajaxFlag="chartDATA">
>> <display:table name="chartDATA" uid="chartRow" id="chartRow"
>> pagesize="25" excludedParams="*" export="true" class="table"
>> requestURI="/Dashboard/ViewReportData.action">
>> <s:iterator value="columnNames" id="column" status="stat2">
>> <display:column title="${column}"><s:property
>> value="#attr.chartDATA[#attr.chartRow_rowNum -1][#stat2.count-1]" />
>> </display:column>
>> </s:iterator>
>> </display:table>
>> </ajax:displayTag>
>> </form>
>>
>> </div>
>>
>> Hopefully it will help someone..
>>
>
>
--
View this message in context: http://www.nabble.com/Struts2-DisplayTag-dynamic-table-tp19681086p20194406.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