2 Replies Latest reply on Sep 5, 2007 11:36 AM by asookazian

    <s:link> with simultaneous action and view attributes applie

    asookazian

      Is it possible to do that? I need to pre-populate a multi checkbox (h:selectManyCheckbox) in an .xhtml page by calling a method in a SFSB first, then rendering the JSF as follows:

      <s:link id="viewUserRoleSummary" value="View User-Role Summary" action="userRoleSearch.test" view="/filterRoles.xhtml"/>
      


      behavior i'm getting is no test() method call (output from method is not in the server.log) and successfully forwarding to filterRoles.xhtml.

      How can I achieve both in the proper order? Is it something to be configured in pages.xml via page navigation with extra method call (if possible??)


        • 1. Re: <s:link> with simultaneous action and view attributes ap
          pmuir

          No, it's one or the other. Easiest is to execute an action from the link, then do navigation from pages.xml, or you can call a view, and use pages.xml to execute an action using raise-event (needs to be a recent Seam for this).

          • 2. Re: <s:link> with simultaneous action and view attributes ap
            asookazian

            I tried the following and it seems to work ok:

            <h:panelGrid id="select_grid" columns="1" rendered="#{userRoleSearch.seedSelection}">
             <h:selectManyCheckbox id="allRoles"
             value="#{userRoleSearch.selectedChoices}"
             layout="pageDirection">
             <f:selectItems value="#{userRoleSearch.choices}"/>
             </h:selectManyCheckbox>
            </h:panelGrid>


            Your response makes sense to me, thx. I will research raise-event as well.