Another thing to try is to use <h:table> instead of <t:table>,
<h:column> instead of <t:column>

And try it using JSF RI 1.1 with your simplified example.


On 9/11/06, Mak NF <[EMAIL PROTECTED]> wrote:

Hi,
'
I am experiencing problems in using mutliple dataTables in a single JSP
page. I have two dataTables in my simplified JSP page as follows:

<f:view>
<h:form>

<t:commandButton value-"ADD" action="#{backingBean.add_to_table1}" />

<t:dataTable id="table1" value="#{backingBean.list1}" >
   <t:column>
      ....
   </t:column>
   <t:column>
      ....
   </t:column>
</t:dataTable>


<t:dataTable id="table2" value="#{backingBean.list2}" >
   <t:column>
      ....
   </t:column>
   <t:column>
      ....
   </t:column>
</t:dataTable>


</h:form>
</f:view>

When i click the "ADD" button, it will add a new row into table 1. This
works fine and table 1 displays an additional row of record but "extra"
duplicated columns will appear in table 2. The record count in table 2
remains the same but somehow the columns got duplicated.

I read that myfaces dataTable does not render an "id" attribute if we
specify one, so could this be the cause of my problem as i am using two
dataTables in one form?

Has anyone had this problem and got a workaround for it? Can someone shed
some light on this? Is it a JSF bug or my own coding bug? Thanks in advance.


Reply via email to