You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Matthew York <ma...@kcsplc.com> on 2008/09/17 11:46:51 UTC

RowOnClick Action / ActionListener

Hi,

 

I have the following Tomahawk dataTable in my jsf page which selects the
correct entity when a user clicks on the commandLink. I'd like the user
to be able to select the entity when they click on the row. Is there a
way to associate an actionListener and action to the row using
RowOnClick?

 

<t:dataTable value="#{omBean.all}"

var="oms">

<h:column>

<h:commandLink type="submit"

actionListener="#{omBean.view}"

action="selectOM">

<f:facet name="extraParameter">

                              <f:param name="commandButtonParam"
value="#{oms.id}" />

                        </f:facet>

                  <h:outputText value="#{oms.name}" />      

            </h:commandLink>

      </h:column>

</t:dataTable>

 

Thanks in advance,

 

Matthew York

 

myfaces-api-1.2.3.jar

myfaces-impl-1.2.3.jar

tomahawk12-1.1.7.jar