Skip to content

Commit

Permalink
Minor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Hlavats committed Jun 23, 2013
1 parent 9fb5c88 commit 53fa929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ public String loginMobile() {
}

public String logout() {
activeUsers.remove(getLoggedInUser());
FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
return "login";
}

public String logoutMobile() {
activeUsers.remove(getLoggedInUser());
FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
return "pm:main?reverse=true";
}
Expand Down
5 changes: 3 additions & 2 deletions primefaces-webapp/src/main/webapp/mobile/index.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<f:event type="preRenderView" listener="#{eventController.init}" />
<f:event type="preRenderView" listener="#{chartController.init}" />
</f:metadata>
<pm:page title="Welcome">
<pm:page title="Welcome" id="mobilePage">
<f:facet name="postinit">
<h:outputScript library="primefaces" name="gmap/gmap.js" />
<script type="text/javascript"
Expand Down Expand Up @@ -151,7 +151,7 @@
<p:password id="password" label="Password: "
value="#{credentials.password}" />
<p:commandLink value="Forgot your password?" />
<p:commandButton value="Login" update=":members"
<p:commandButton value="Login" update=":mobilePage"
action="#{loginController.loginMobile}" />
</h:form>
</pm:content>
Expand Down Expand Up @@ -459,6 +459,7 @@
</pm:header>
<pm:content>
<h:form>
<p:poll update=":contacts" interval="10" />
<p:accordionPanel id="contactsPanel">
<p:tab title="Friends">
<mycompany:contactList header="Friends" mobile="true"
Expand Down

0 comments on commit 53fa929

Please sign in to comment.