0 Replies Latest reply on May 7, 2008 6:41 AM by ziphyre

    parameterized viewId for a4j:include

    ziphyre

      Hi,

      I wonder how reliable is to use parameters in viewId for a4j:include.

      Basically I like to be able to change what's inside of a include area from outside of this area. So the only solution I can come up with is to parameterize viewId, and control it with a commandLink and reRender outside of the include. I'd be gald if anyone can direct me to a better solution, or clarify the dangers of using such a method?

      <h:form>
      <a4j:commandLink action="{contentManager.setLink}" reRender="content" />
      </h:form>
      ...
      <h:form>
      <a4j:outputPanel div="content">
       <a4j:include viewId="{contentManager.setLink}" />
      </a4j:outputPanel>
      </h:form>