Hi again!

Short update:

It seems to work with IE6 but not with Firefox ... I receive a Javascript-Error 
(Error: document.forms.form_tasklist.elements.taskInstanceId has no properties).

I've tried to set the bean-scope from "request" to "session" and
to use t:saveState for homeBean.ajaxTaskInstances ... with no success! :-(

Ah ... and I set preserveDataModel="false" and preserveRowStates="false".

Any suggestions?

Thanks for your help!

H

-----Ursprüngliche Nachricht-----
Von: Harald Müller [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 10. Jänner 2006 12:42
An: users@myfaces.apache.org
Betreff: 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

Reply via email to