5 Replies Latest reply on Apr 8, 2008 6:20 AM by Thomas Barry

    Re-render problem with <f:param> in <s:link>

    Thomas Barry Newbie

      I'm having trouble with <s:link> rendering parameters correctly after an ajax rerender.  Here's some sample

      <h:form id="theForm">
        <a:outputPanel id="thePanel">
          <h:dataTable id="employees" value="#{employees}" var="e">
              <f:facet name="header">Last Name</f:facet>
              <h:outputText value="#{e.lastName}"/>
              <f:facet name="header">Link</f:facet>
              <s:link id="test" view="/home.xhtml">
                <h:outputText value="Link"/>
                <f:param name="empId" value="#{e.id}"/>
      <a:commandLink action="#{testAction.doAction}" 
         reRender="thePanel" value="Test Link"/>

      Before making the AJAX request, the URL is rendered correctly:


      but after the outputPanel is re-rendered, the URL becomes:


      Can someone tell me where that & in the parameter is coming from, and how to get rid of it?  Curiously, the rendering problem doesn't exhibit if you add propagation="none" to the <s:link> tag.

      This is happening in 2.0.1.CR and 2.0.2.GA