Hi again,

 

I can simplify a little bit my question:  “Has anybody generated a datatable dynamically”, when I say dynamically I refer to building the whole table from java code in the following manner:

 

                        Application app = FacesUtils.getFacesContext().getApplication();

                        HtmlDataTable myDataTable = (HtmlDataTable) app.createComponent(HtmlDataTable.COMPONENT_TYPE);

…..

 

And associating it to a page:

 

                        <h:panelGroup rendered="#{columnHeader.internalTable}">

                                         <h:dataTable rows="1" value="#{searchResultsBean.columnValue.data}" >

……..                                    

</h:dataTable>

                        </h:panelGroup>

 

 

Regards,

JV


De: Jorge Vásquez [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 08 de noviembre de 2006 15:48
Para: 'MyFaces Discussion'
Asunto: Appending dynamic table as column to datatable...

 

Hi to all,

I have a special requirement for a data table where one column can correspond to a series of consecutive html elements that may vary for each row (It can be thought in html terms as embedding a table for a td).  I have decided to use a panelgrid for this special requirement but I cannot use the binding attribute since I get an error during rendering, neither can I use some value attribute which isn´t supported by panelgrids, etc.  Has anybody had a similar requirement?  If so, how did you proceeded using JSF?

 

Regards and thanks,

JV

 

 

Reply via email to