Author: shane.bryzak(a)jboss.com
Date: 2009-05-11 19:57:04 -0400 (Mon, 11 May 2009)
New Revision: 10873
Modified:
examples/trunk/seamspace/ejb-jar/pom.xml
examples/trunk/seamspace/war/src/main/webapp/home.xhtml
examples/trunk/seamspace/war/src/main/webapp/template.xhtml
Log:
fix home page
Modified: examples/trunk/seamspace/ejb-jar/pom.xml
===================================================================
--- examples/trunk/seamspace/ejb-jar/pom.xml 2009-05-11 23:08:36 UTC (rev 10872)
+++ examples/trunk/seamspace/ejb-jar/pom.xml 2009-05-11 23:57:04 UTC (rev 10873)
@@ -99,6 +99,12 @@
<artifactId>validation-api</artifactId>
<scope>provided</scope>
</dependency>
+
+ <dependency>
+ <groupId>${seam.groupId}</groupId>
+ <artifactId>seam-webbeans-bridge</artifactId> <!-- assumes use of
Web Beans RI -->
+ <scope>runtime</scope>
+ </dependency>
<dependency>
<groupId>${seam.groupId}</groupId>
Modified: examples/trunk/seamspace/war/src/main/webapp/home.xhtml
===================================================================
--- examples/trunk/seamspace/war/src/main/webapp/home.xhtml 2009-05-11 23:08:36 UTC (rev
10872)
+++ examples/trunk/seamspace/war/src/main/webapp/home.xhtml 2009-05-11 23:57:04 UTC (rev
10873)
@@ -53,7 +53,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: examples/trunk/seamspace/war/src/main/webapp/template.xhtml
===================================================================
--- examples/trunk/seamspace/war/src/main/webapp/template.xhtml 2009-05-11 23:08:36 UTC
(rev 10872)
+++ examples/trunk/seamspace/war/src/main/webapp/template.xhtml 2009-05-11 23:57:04 UTC
(rev 10873)
@@ -26,12 +26,12 @@
<h:outputText styleClass="divider" value=" | "/>
</s:fragment>
- <s:fragment rendered="#{s:hasRole('admin')}">
+ <s:fragment rendered="#{identity.hasRole('admin')}">
<s:link id="security" view="/security.xhtml"
value="Security" propagation="none"/>
<h:outputText styleClass="divider" value=" | "/>
</s:fragment>
- <s:link id="logout" action="#{identity.logout}"
value="Log out" rendered="#{identity.loggedIn}"/>
+ <s:link id="logout" action="#{identity.logout()}"
value="Log out" rendered="#{identity.loggedIn}"/>
<h:outputLink id="login" value="home.seam"
rendered="#{not identity.loggedIn}">Log in</h:outputLink>
</div>
<br style="clear:both"/>
Show replies by date