1 Reply Latest reply on Dec 5, 2007 11:56 AM by gazadonf

    how to send parameters with jpdl

    gazadonf

      Hy.

      I'm susing jpdl to manage all my navigation.

      I wonder to know how i can translate this with jpdl

      <s:link view="/#{empty from ? 'Parameter' : from}.xhtml"
       value="Select"
       id="parameter">
       <f:param name="parameterName"
       value="#{parameter.name}"/>
       </s:link>


      First, i replace the view tag by an action tag like this

      <s:link action="consultParam"
       value="Select"
       id="parameter">
       <f:param name="parameterName"
       value="#{parameter.name}"/>
       </s:link>


      with this transition declare in my jpdl
      ...
      <transition name="consultParam" to="consultParam">
       </transition>
      </page>
      
       <page name="consultParam" view-id="/Parameter/Parameter.xhtml">
       <redirect/>
       <transition to="gestionParam" name="retour"></transition>
       <transition name="menu" to="menuGestion"></transition>
       <transition name="editParam" to="createParam"></transition>
       </page>



      but what do i have to do to forward the parameter??

        • 1. Re: how to send parameters with jpdl
          gazadonf

          My problem is i could not read my parameter.

          In the destination page, the code

          <s:decorate id="name" template="../layout/display.xhtml">
           <ui:define name="label">name</ui:define>
           #{parameterHome.instance.name}
           </s:decorate>


          do nothing since i use my jdpl.

          I have no idea of where is my mistake...

          Could someone help please??