Hello
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}" />
</f:facet>
<h:panelGrid columns="2" border="0">
.....
</rich:modalPanel>
Backing bean :
@Stateful
@Name("userAdmin")
@Scope(ScopeType.SESSION)
@Restrict("#{identity.loggedIn}")
@SuppressWarnings("unchecked")
public class UserAdmAction implements UserAdm
{
......
@DataModelSelection("userList")
private UserCMP selectedUser;
......
@Out(required=false)
private String passwordChangingUser;
.....
public void changePwdHandler()
{
passwordChangingUser=selectedUser.getName();
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