Re: Mixing trinidad with tomahwak - t:columns

2007-09-11 Thread Martin Hinterndorfer
Thank you very much. This might help a lot. One question remains: how do you resolve the actual value, which should be displayed? In the code-snipped you provided it works with cx:getValue(row, index) Is this a special tag-library I can use too? 2007/9/10, Renzo Tomaselli [EMAIL PROTECTED]:

Re: Mixing trinidad with tomahwak - t:columns

2007-09-11 Thread Renzo Tomaselli
Martin, this is just an EL function. This approach is a nested two-loop schema: for each row for each column in current row fetch value (row, column) in my taglib.xml the retrieving function is declared as: function function-namegetValueAt/function-name

Mixing trinidad with tomahwak - t:columns

2007-09-10 Thread Martin Hinterndorfer
Hi everyone! I need to build a table with a variable amout of columns (with different headers and data types). We are planning to use trinidad, whereas trinidad has no columns-Tag, like tomahawk has. As far as I know, I can use the binding attribute to build the component-tree programatically,

Re: Mixing trinidad with tomahwak - t:columns

2007-09-10 Thread Andrew Robinson
As a work around, if you are using facelets you could use c:forEach to generate new column components during the facelet build. I haven't used it yet, so not sure if it would work, but have you tried tr:iterator? If it works, the view may be something like: tr:table value=#{rows} ...

Re: Mixing trinidad with tomahwak - t:columns

2007-09-10 Thread Renzo Tomaselli
Andrew, c:forEach inside tr:table works perfectly, even when changing column layout from request to request. This topic has been discussed on this list sometime ago. Something like this: tr:table id="result" value="#{bean.data}" var="row" rows="#{bean.rowsPerPage}"