You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by René Zanner <re...@accelsis.biz> on 2006/07/27 08:40:00 UTC

"binding" attribute of JSF standard components

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é