Here is example of how it might look like in .jsf file:
<sun:table data="#{pageSession.tableData}"
.../>
tableData will have all the column tag information and in the .jsf page
there will be no column tags. Please suggest a way to take care of this.
It is not really my app specific, it can be used by anyone.
thanks
Karam
Karam Singh Badesha wrote:
> Ken,
> Here is an example of what I am trying to do:
>
> Right now in the .jsf page I have to list the column tag with header
> etc. I have the situation where I have drop down boxes and depending
> upon different selections, number of columns and column headers could
> change. And I want the control to be defined in the Resources file,
> etc number of columns, column headers etc. I am not sure how it will
> work myself, as the jsf code is changing (when number of columns
> change). I think when we talked last time, you suggested that I
> somehow create the table object in java code (handler) and pass it to
> the page. What do you suggest? Let me know if this is clear or not.
>
> thanks
> Karam
>
> Ken Paulsen wrote:
>>
>> Hi Karam,
>>
>> I can look into doing this... however, after reading the issue more
>> closely, I need some more information from you. How do you want to
>> specify the table columns from the page?
>>
>> TableColumns typically have children, so they'd also have to be
>> created. Do you want those to just be staticText? Or do you want
>> control over what type they are also? Which TableColumn attribute do
>> you want control over? Perhaps you can provide an example of what
>> you'd like it to look like in the .jsf file?
>>
>> After looking at this more closely, I suspect this may end up being
>> custom for your needs. However, if I can keep it generic and useful
>> for others as well, I will.
>>
>> Ken
>>
>> Karam Singh Badesha wrote:
>>> Hi Ken,
>>> Is it possible to get a solution for issue #10 in jsftemplating? I
>>> really need some solution for this so that create dynamic tables.
>>> Please let me know.
>>>
>>> thanks
>>> Karam