Simon Kitching wrote:

Hansjörg Meuschel wrote:

Hi,
the problem is the surrounding t:datatable: Children of this component all get the same id as the component does not create new objects for each iteration.


That's just not true.

Both the h:dataTable and t:dataTable components use the "flyweight" pattern to avoid creating a component-per-row. However they ensure that the id effectively varies per row for the component, making this transparent for most purposes.

oh ok... i don't know exactly all implementation details, however what i know is that the t:datatable has some serious problems:

Example:
<h:form>
<t:datatable>
<t:column>
<h:inputText>
</ ...>

THIS WILL NOT WORK! (all input field get the same id)


<h:form>
<h:datatable>
<h:column>
<h:inputText>
</ ...>
THIS WILL WORK! (all input field get different ids)

This is the reason why the t:datatable can't be used with submittable componenents! Or am I doing something very wrong here ??
Greets Hans



Reply via email to