[seam-commits] Seam SVN: r12310 - in modules/security/trunk: examples/seamspace/src/main/webapp and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Mar 29 07:42:49 EDT 2010
Author: shane.bryzak at jboss.com
Date: 2010-03-29 07:42:49 -0400 (Mon, 29 Mar 2010)
New Revision: 12310
Modified:
modules/security/trunk/core/src/main/java/org/jboss/seam/security/RememberMe.java
modules/security/trunk/examples/seamspace/src/main/webapp/home.xhtml
modules/security/trunk/examples/seamspace/src/main/webapp/template.xhtml
Log:
fixed example home page
Modified: modules/security/trunk/core/src/main/java/org/jboss/seam/security/RememberMe.java
===================================================================
--- modules/security/trunk/core/src/main/java/org/jboss/seam/security/RememberMe.java 2010-03-29 10:26:43 UTC (rev 12309)
+++ modules/security/trunk/core/src/main/java/org/jboss/seam/security/RememberMe.java 2010-03-29 11:42:49 UTC (rev 12310)
@@ -248,6 +248,11 @@
return enabled;
}
+ public void setEnabled(boolean enabled)
+ {
+ this.enabled = enabled;
+ }
+
/*
public void setEnabled(boolean enabled)
{
Modified: modules/security/trunk/examples/seamspace/src/main/webapp/home.xhtml
===================================================================
--- modules/security/trunk/examples/seamspace/src/main/webapp/home.xhtml 2010-03-29 10:26:43 UTC (rev 12309)
+++ modules/security/trunk/examples/seamspace/src/main/webapp/home.xhtml 2010-03-29 11:42:49 UTC (rev 12310)
@@ -55,7 +55,7 @@
<div class="loginRow">
<h:outputLabel for="rememberMe" value="Remember me" styleClass="loginLabel"/>
- <h:selectBooleanCheckbox id="rememberMe" value="#{identity.rememberMe}"/>
+ <h:selectBooleanCheckbox id="rememberMe" value="#{rememberMe.enabled}"/>
</div>
<div class="buttons">
Modified: modules/security/trunk/examples/seamspace/src/main/webapp/template.xhtml
===================================================================
--- modules/security/trunk/examples/seamspace/src/main/webapp/template.xhtml 2010-03-29 10:26:43 UTC (rev 12309)
+++ modules/security/trunk/examples/seamspace/src/main/webapp/template.xhtml 2010-03-29 11:42:49 UTC (rev 12310)
@@ -19,14 +19,14 @@
<div class="headerMenu">
<ui:fragment rendered="#{identity.loggedIn}">
- <s:link id="profile" view="/profile.xhtml" value="My Profile" propagation="none">
+ <h:link id="profile" view="/profile.xhtml" value="My Profile" propagation="none">
<f:param name="name" value="#{authenticatedMember.memberName}"/>
- </s:link>
+ </h:link>
<h:outputText styleClass="divider" value=" | "/>
</ui:fragment>
- <ui:fragment rendered="#{s:hasRole('admin')}">
- <s:link id="security" view="/security.xhtml" value="Security" propagation="none"/>
+ <ui:fragment rendered="#{identity.hasRole('admin')}">
+ <h:link id="security" view="/security.xhtml" value="Security" propagation="none"/>
<h:outputText styleClass="divider" value=" | "/>
</ui:fragment>
More information about the seam-commits
mailing list