Interesting.   Make sure that your backing bean is more than request-scoped.

However, while this will preserve the h:dataTable component, it will
not carry over the children elements of your h:dataTable (facets,
columns, and children of those elements).

Take a look at this page, particularly items 2 and 3.

http://wiki.apache.org/myfaces/Creating_Composite_Components


On 8/8/06, william kanej <[EMAIL PROTECTED]> wrote:

Hi,
I am new to JSF and Myfaces. I am trying to use component bindings for data
tables and it does not work.
Here is what i am exactly doing
1. Page1.jsp defined a data table with values for binding pointing to a
backing bean.
2. Upon submit the user is redirected to another page Page2.jsp that uses
the following syntax to display the data tables based on the definition in
Page1.jsp


<h:dataTable rendered="true" id="someID" binding="#{BackingBean.htmlTable}"
var="someVar"/>

I was hoping that the data table displayed in Page1.jsp will be redisplayed
on Page2.jsp w/o having to redeclare the complete table structure as I did
in Page1.jsp but that doesnot happen.

I am currently being displayed an empty table.

Please let me know if what i am trying to do is feasable in the first place.

Thanks in advance

william kane

Reply via email to