2 Replies Latest reply on Oct 11, 2007 8:52 AM by Daniel Kane

    Context variable is not visible in modalPanel

    Daniel Kane Novice


      xhtml code :

      <a:commandLink oncomplete="javascript:Richfaces.showModalPanel('changePwdPanel')"
      value="change password" ajaxSingle="true" actionListener="#{userAdmin.changePwdHandler}"/>
      <rich:modalPanel id="changePwdPanel" minHeight="150" minWidth="250" height="150" width="250" zindex="2000">
      <f:facet name="header">
       <h:outputText value="Changing password for user #{passwordChangingUser}" />
       <h:panelGrid columns="2" border="0">

      Backing bean :

      public class UserAdmAction implements UserAdm
       private UserCMP selectedUser;
       private String passwordChangingUser;
       public void changePwdHandler()
       log.info("passwordChangingUser="+passwordChangingUser, null);
       log.info("passwordChangingUserInContext=#{passwordChangingUser}", null);

      The result when we click on "change password" for user ABC :
      log displays
      13:08:38,484 INFO [UserAdmAction] passwordChangingUser=ABC
      13:08:38,484 INFO [UserAdmAction] passwordChangingUserInContext=ABC

      Seam debug page displays the same value for the variable.

      But, modal panel header displays empty value :

      "Changing password for user"

      Why #{passwordChangingUser} is not accessible from modalPanel ?

      Thank you