You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shale.apache.org by gv...@apache.org on 2006/09/13 04:31:51 UTC
svn commit: r442799 - in
/shale/sandbox/shale-clay-mailreader/src/main/webapp:
WEB-INF/clay-config.xml pages/layout_nsjsp.html pages/mainMenu_nsjsp.html
Author: gvanmatre
Date: Tue Sep 12 19:31:51 2006
New Revision: 442799
URL: http://svn.apache.org/viewvc?view=rev&rev=442799
Log:
Example for SHALE-279. Added example of using alternate namespace prefixes.
Added:
shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html (with props)
Modified:
shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-config.xml
shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/mainMenu_nsjsp.html
Modified: shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-config.xml
URL: http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-config.xml?view=diff&rev=442799&r1=442798&r2=442799
==============================================================================
--- shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-config.xml (original)
+++ shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-config.xml Tue Sep 12 19:31:51 2006
@@ -27,7 +27,8 @@
<!-- Base layout defintion -->
<component jsfid="basePage" extends="clay">
<attributes>
- <set name="clayJsfid" value="/pages/layout_tap.html" />
+ <set name="clayJsfid" value="/pages/layout_nsjsp.html" />
+ <!-- <set name="clayJsfid" value="/pages/layout_tap.html" /> -->
</attributes>
<symbols>
<set name="@title" value="commonTitle" />
Added: shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html
URL: http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html?view=auto&rev=442799
==============================================================================
--- shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html (added)
+++ shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html Tue Sep 12 19:31:51 2006
@@ -0,0 +1,15 @@
+<html xmlns:c="http://shale.apache.org/clay">
+<head>
+ <title>
+ <c:clay jsfid="clay" clayJsfid="@title">
+ Mock Title
+ </c:clay>
+ </title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+</head>
+<body>
+ <c:clay jsfid="clay" clayJsfid="@bodycontent">
+ Mock body goes here
+ </c:clay>
+</body>
+</html>
\ No newline at end of file
Propchange: shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/layout_nsjsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Modified: shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/mainMenu_nsjsp.html
URL: http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/mainMenu_nsjsp.html?view=diff&rev=442799&r1=442798&r2=442799
==============================================================================
--- shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/mainMenu_nsjsp.html (original)
+++ shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/mainMenu_nsjsp.html Tue Sep 12 19:31:51 2006
@@ -1,36 +1,36 @@
-<span jsfid="void" xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:t="http://myfaces.apache.org/tomahawk">
+<span jsfid="void" xmlns:face="http://java.sun.com/jsf/core"
+ xmlns:html="http://java.sun.com/jsf/html"
+ xmlns:tom="http://myfaces.apache.org/tomahawk">
-<h:form id="mainMenuForm">
+<html:form id="mainMenuForm">
- <t:messages globalOnly="true"/>
+ <tom:messages globalOnly="true"/>
- <t:panelGrid columns="1">
+ <tom:panelGrid columns="1">
- <f:facet name="header">
- <t:panelGroup>
- <t:outputText
+ <face:facet name="header">
+ <tom:panelGroup>
+ <tom:outputText
value="#{messages['mainMenu.heading']}"/>
- <t:outputText
+ <tom:outputText
value="#{state.user.username}"/>
- </t:panelGroup>
- </f:facet>
+ </tom:panelGroup>
+ </face:facet>
- <t:commandLink id="edit"
+ <tom:commandLink id="edit"
action="#{mainMenu.edit}"
immediate="true">
- <t:outputText value="#{messages['mainMenu.registration']}"/>
- </t:commandLink>
+ <tom:outputText value="#{messages['mainMenu.registration']}"/>
+ </tom:commandLink>
- <t:commandLink id="logoff"
+ <tom:commandLink id="logoff"
action="#{mainMenu.logoff}"
immediate="true">
- <t:outputText value="#{messages['mainMenu.logoff']}"/>
- </t:commandLink>
+ <tom:outputText value="#{messages['mainMenu.logoff']}"/>
+ </tom:commandLink>
- </t:panelGrid>
+ </tom:panelGrid>
-</h:form>
+</html:form>
</span>