Hi all,
unfortunately the "binding" attribute isn't standard for all JSF components.
Will that change in the future? I think it's a required attribute when trying
to be conform to the JSF standard...
Otherwise I'm forced to inherit from the standard components provided by clay
just to provide the "binding" attribute:
<component jsfid="my:dataTable" extends="dataTable">
<attributes>
<set name="binding" value="@binding" />
</attributes>
</component>
Is it possible to enforce it being a Value Binding (e.g. via
bindingType="VB"?)? Other values are not allowed since the value must refer to
a UIComponent attribute of a backing bean.
Without this attribute I cannot use something like this in my HTML views:
<table jsfid="my:dataTable" binding="#{tableView.dataTable}" ...>
...
</table>
The "binding" is required for dataTable when trying to access the currently
selected row after clicking on a command link in a specific row. In this case
the row clicked on is contained in the attribute "rowData" of the dataTable:
dataTable.getRowData() gives the Object associated with the row in which
occurred the mouse click.
Cheers,
René