That's very interesting.
Can you download the MyFaces-tomahawk-simple examples from the nightly
build, and try to reproduce the problems there?
I can't imagine what the problem could be - surely not two dataTables per form.
regards,
Martin
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.
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces