I want to refresh the header of the page after signing in. (Because I think that when I navigate to the page, refreshing does not happen) = "" I want to display the log-in or logout button at the top if the user is logged in or not. When the user logs in, I set the flag login to the correct I (start the session)
context.getExternalContext (). GetSessionMap () Put (PERSON_SESSION_KEY, user); Log = true; & lt: pm: Page id = "first" swatch = "b" & gt; & Lt. Pm: Header id = "Header-First" title = "Mobilana Pieziera" & gt; & Lt; P: button style class = "ui-btn-right ui-btn-inline" value = "zaloguj" result = "# {bean.goToLoginPage ()}" sung = "# {! Bean logged in}" /> & Lt; P: button styleClass = "ui-btn-left ui-btn-inline" value = "wyloguj" result = "# {bean.logout ()}" rendered "" # {bean.loggedIn} "/> Lt; / hrs: Header & gt; & lt; hrs: Content & gt; & lt; p: Menu & gt; & lt; p: menu item = "pizza" result = "# {bean.gotopie page} "/> gt; menu: value =" dania vegatarienski "result =" # {Bean.Gotovataiasiaejes ()} "/> & lt; / p: Menu & gt; & lt; / hrs: Content & gt; and lieutenant: pm: footer title =" bla bla bla "& g T; & lt; / pm: footer & gt; & lt; / hr: page & gt;
No comments:
Post a Comment