render after popupPanel hide
trigun Jun 2, 2011 6:43 AMHi, i have another Problem which i could not solve by myself. This time with rendering after Login ...
<rich:popupPanel id="loginPanel" width="400" height="190" autosized="true" resizeable="false" onshow="#{rich:element('username')}.focus()" > <f:facet name="header"> <h:outputFormat id="loginModalTitle" value="#{msgBv['createBenutzer.login']}"/> </f:facet> <f:facet name="controls"> <a4j:commandLink id="closeLoginPanel" action="#{auth.cancel}" oncomplete="#{rich:component('loginPanel')}.hide(); return false;"> <h:graphicImage id="loginCloseIcon" name="close.png" library="images" style="cursor:pointer" alt="#{msgBv['createBenutzer.modal.close']}"/> </a4j:commandLink> </f:facet> <h:form id="loginForm"> <rich:panel bodyClass="rich-classic-panel-no-header" > <rich:graphValidator id="kundeValidator"> <h:panelGrid columns="1" columnClasses="login-table-col" style="width: 100%; text-align:center;" > <h:panelGrid columns="2" columnClasses="login-table-col2, xxx" style="margin-left:auto; margin-right:auto;"> <h:outputText value="#{msgBv['benutzer.login.username']}"/> <h:inputText id="username" value="#{auth.username}"/> <h:outputText value="#{msgBv['benutzer.login.passwort']}"/> <h:inputSecret id="password" value="#{auth.passwort}"/> </h:panelGrid> <rich:message for="username" style="color:red"/> <h:panelGrid columns="2" style="text-align:center; margin-top : 10px; margin-left:auto; margin-right:auto;"> <f:facet name="footer"> <a4j:commandButton value="#{msgBv['benutzer.login.anmelden']}" action="#{auth.login}" render=":openModalPanelLogin, :meinKontoMenu, openModalPanelReg" oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('loginPanel')}.hide();}" /> <a4j:commandButton value="#{msgBv['benutzer.login.cancel']}" action="#{auth.cancel}" render="loginForm" oncomplete="#{rich:component('loginPanel')}.hide(); return false;" /> </f:facet> </h:panelGrid> </h:panelGrid> </rich:graphValidator> </rich:panel> </h:form> </rich:popupPanel> <h:outputLink id="openModalPanelLogin" value="#" rendered="#{not auth.loggedIn}"> #{msgBv['benutzer.login.anmelden']} <rich:componentControl id="openControl" target="loginPanel" operation="show" event="click"/> </h:outputLink> <h:form id="meinKontoMenu" rendered="#{auth.loggedIn}"> <rich:dropDownMenu id="dropDownMeinKonto" label="#{msg['header.meinKonto']}"> <rich:menuItem id="registrierenItem" label="#{msg['index.registrieren']}" action="#{auth.registrieren}" rendered="#{not auth.loggedIn}"/> <rich:menuItem id="logoutItem" label="#{msg['login.logout']}" action="#{auth.logout}" rendered="#{auth.loggedIn}"/> <rich:menuItem id="profileItem" label="#{msg['header.profil']}" action="#{bv.showOwnProfil}" rendered="#{auth.loggedIn}"/> <rich:menuItem id="profileItem2" onclick="#" rendered="#{auth.loggedIn}"> <h:outputLink value="#{request.contextPath}/faces/benutzerverwaltung/showOwnBenutzerDetails.xhtml"> <f:param id="idParam" name="benutzerId" value="#{auth.user.id}"/> #{msg['header.profil']} </h:outputLink> </rich:menuItem> </rich:dropDownMenu> </h:form>
render=":openModalPanelLogin, :meinKontoMenu, openModalPanelReg" is not working... any suggestion?
thx