[jboss-cvs] jboss-seam/seam-gen/view/layout ...
Gavin King
gavin.king at jboss.com
Tue Jan 30 23:07:27 EST 2007
User: gavin
Date: 07/01/30 23:07:27
Modified: seam-gen/view/layout menu.xhtml menu.xhtml.ftl
Log:
add security to seam-gen JBSEAM-719
Revision Changes Path
1.2 +3 -1 jboss-seam/seam-gen/view/layout/menu.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: menu.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/layout/menu.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- menu.xhtml 7 Nov 2006 09:33:41 -0000 1.1
+++ menu.xhtml 31 Jan 2007 04:07:27 -0000 1.2
@@ -5,4 +5,6 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib">
<s:link view="/home.xhtml" value="Home"/>
+ <s:link view="/login.xhtml" value="Login" rendered="#{not identity.loggedIn}"/>
+ <s:link view="/home.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}"/>
</div>
1.2 +2 -0 jboss-seam/seam-gen/view/layout/menu.xhtml.ftl
(In the diff below, changes in quantity of whitespace are not shown.)
Index: menu.xhtml.ftl
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/layout/menu.xhtml.ftl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- menu.xhtml.ftl 7 Nov 2006 09:33:41 -0000 1.1
+++ menu.xhtml.ftl 31 Jan 2007 04:07:27 -0000 1.2
@@ -5,6 +5,8 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib">
<s:link view="/home.xhtml" value="Home"/>
+ <s:link view="/login.xhtml" value="Login" rendered="${'#'}{not identity.loggedIn}"/>
+ <s:link view="/home.xhtml" action="${'#'}{identity.logout}" value="Logout" rendered="${'#'}{identity.loggedIn}"/>
<#foreach entity in c2j.getPOJOIterator(cfg.classMappings)>
<s:link view="/${entity.shortName}List.xhtml" value="${entity.shortName} List" propagation="none"/>
</#foreach>
More information about the jboss-cvs-commits
mailing list