7 Replies Latest reply on Dec 16, 2008 11:53 AM by Gábor Sift

    seam param passing problem

    Gábor Sift Newbie

      Error message is this:




      22:20:07,875 WARN  [Param] could not create converter for: userId
      java.lang.NullPointerException

      Menu bean:



      @Name("ssMenu")
      public class SsMenu {
           
           @In Identity identity;
           
           public String doEditUser() {
                return "editUser";
           }
      
      }



      menu.xhtml:



                          <s:link action="#{senseMenu.doEditUser}" value="#{identity.username}"
                               rendered="#{identity.loggedIn}" propagation="none" >
                               <f:param name="userId" value="#{currentUserId}" />
                          </s:link>



      pages.xml:


                 



                 <rule if-outcome\="editUser">
                      <redirect view-id\="/editUser.xhtml">
                           <param name\="userId" value\="#{currentUserId}"/>
                      </redirect>
                  </rule>






      Link shown in Firefox:




      http://localhost:8080/sense/editUser.seam?userId=1&actionMethod=editUser.xhtml%3AsenseMenu.doEditUser


      So as you can see it in the link above the first part is perfect.. userId=1
      But what's that actionmethod thingie doing there at all? Or at least without the userId param?
      What am I doing wrong?! :(