You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Harald Müller <ha...@wimaxtelecom.at> on 2006/01/10 12:42:17 UTC

autoUpdateDataTable & commandLink

Hi!

I've some problems getting the commandLink working correctly within an "autoUpdateDataTable".

My code looks like:

<h:form id="form_tasklist">
  <s:autoUpdateDataTable id="data1"
    rows="5"
    headerClass="tableheader" 
    columnClasses="tablecell"
    var="taskInstance"
    value="#{homeBean.ajaxTaskInstances}"
    preserveDataModel="true"
    frequency="30"
  >
	<h:column >
	  <f:facet name="header">
	    <h:outputText value="Link" />
	  </f:facet>
	  <t:commandLink immediate="true" action="#{homeBean.selectTaskInstance}">
	    <f:param name="taskInstanceId" value="#{taskInstance.id}"/>
	    <h:outputText value="#{taskInstance.name}" />
	  </t:commandLink>
	</h:column>
  </s:autoUpdateDataTable>
</h:form>

After a new datatable-entry was "added" to the existing datatable the commandLink doesn't
seem to work on the first klick (have to klick it twice). 

Any suggestions?

Thanks,
H