[ajax4jsf-svn-commits] JBoss Ajax4JSF SVN: r129 - in trunk/samples/portal-echo: resources and 11 other directories.

ajax4jsf-svn-commits at lists.jboss.org ajax4jsf-svn-commits at lists.jboss.org
Wed Apr 25 21:45:24 EDT 2007


Author: SergeySmirnov
Date: 2007-04-25 21:45:24 -0400 (Wed, 25 Apr 2007)
New Revision: 129

Added:
   trunk/samples/portal-echo/resources/
   trunk/samples/portal-echo/resources/WEB-INF/
   trunk/samples/portal-echo/resources/WEB-INF/lib/
   trunk/samples/portal-echo/src/
   trunk/samples/portal-echo/src/main/
   trunk/samples/portal-echo/src/main/java/
   trunk/samples/portal-echo/src/main/java/portal/
   trunk/samples/portal-echo/src/main/java/portal/Bean.java
   trunk/samples/portal-echo/src/main/webapp/
   trunk/samples/portal-echo/src/main/webapp/META-INF/
   trunk/samples/portal-echo/src/main/webapp/META-INF/MANIFEST.MF
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/ajaxportlet-object.xml
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/faces-config.xml
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/lib/
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/lib/jsf-facelets.jar
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet-instances.xml
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet.xml
   trunk/samples/portal-echo/src/main/webapp/WEB-INF/web.xml
   trunk/samples/portal-echo/src/main/webapp/jsf/
   trunk/samples/portal-echo/src/main/webapp/jsf/common/
   trunk/samples/portal-echo/src/main/webapp/jsf/common/editPreferences.xhtml
   trunk/samples/portal-echo/src/main/webapp/jsf/common/editSecurity.xhtml
   trunk/samples/portal-echo/src/main/webapp/jsf/common/editTheme.xhtml
   trunk/samples/portal-echo/src/main/webapp/jsf/common/showPortletDetails.xhtml
   trunk/samples/portal-echo/src/main/webapp/jsf/repeater.xhtml
   trunk/samples/portal-echo/src/main/webapp/jsf/start.xhtml
   trunk/samples/portal-echo/src/main/webapp/jsf/tabTemplate.xhtml
   trunk/samples/portal-echo/src/main/webapp/objects.xhtml.html
Log:
Portal Project. Echo

Added: trunk/samples/portal-echo/src/main/java/portal/Bean.java
===================================================================
--- trunk/samples/portal-echo/src/main/java/portal/Bean.java	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/java/portal/Bean.java	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,53 @@
+/**
+ * 
+ */
+package portal;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class Bean {
+    private int counter=0;
+    
+    private String text ="";
+
+    /**
+     * @return the counter
+     */
+    public int getCounter() {
+        return counter;
+    }
+
+    /**
+     * @param counter the counter to set
+     */
+    public void setCounter(int counter) {
+        this.counter = counter;
+    }
+
+    /**
+     * @return the text
+     */
+    public String getText() {
+        return text;
+    }
+
+    /**
+     * @param text the text to set
+     */
+    public void setText(String text) {
+        this.text = text;
+    }
+    
+    public String click(){
+	counter++;
+	return null;
+    }
+
+    public String getNamespace(){
+	return FacesContext.getCurrentInstance().getExternalContext().encodeNamespace("");
+    }
+}

Added: trunk/samples/portal-echo/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/META-INF/MANIFEST.MF	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/META-INF/MANIFEST.MF	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path: 
+

Added: trunk/samples/portal-echo/src/main/webapp/WEB-INF/ajaxportlet-object.xml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/WEB-INF/ajaxportlet-object.xml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/WEB-INF/ajaxportlet-object.xml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+  <deployment>
+    <parent-ref>default</parent-ref>
+    <if-exists>overwrite</if-exists>
+    <instance>
+      <instance-name>AjaxPortletInstance</instance-name>
+      <component-ref>portal-echo</component-ref>
+    </instance>
+  </deployment>
+  <deployment>
+    <parent-ref>default</parent-ref>
+    <if-exists>overwrite</if-exists>
+    <page>
+	    <page-name>Two-Portal-Echo</page-name>
+	    <window>
+		    <window-name>ajaxPortletWindow</window-name>
+		    <instance-ref>AjaxPortletInstance</instance-ref>
+		    <default>true</default>
+		    <region>center</region>
+		    <height>0</height>
+	    </window>
+	    <window>
+		    <window-name>ajaxPortletSecondWindow</window-name>
+		    <instance-ref>AjaxPortletSecondInstance</instance-ref>
+		    <default>true</default>
+		    <region>center</region>
+		    <height>0</height>
+	    </window>
+    </page>
+  </deployment>
+  <deployment>
+    <parent-ref>default</parent-ref>
+    <if-exists>overwrite</if-exists>
+     <page>
+	    <page-name>Portal-echo</page-name>
+	    <window>
+		    <window-name>otherAjaxportletWindow</window-name>
+		    <instance-ref>AjaxPortletInstance</instance-ref>
+		    <default>true</default>
+		    <region>center</region>
+		    <height>0</height>
+	    </window>
+    </page>
+  </deployment>
+  <deployment>
+    <parent-ref>default</parent-ref>
+    <if-exists>overwrite</if-exists>
+    <instance>
+      <instance-name>AjaxPortletSecondInstance</instance-name>
+      <component-ref>portal-echo</component-ref>
+    </instance>
+  </deployment>
+</deployments>

Added: trunk/samples/portal-echo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/WEB-INF/faces-config.xml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/WEB-INF/faces-config.xml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+                              "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+  <managed-bean-name>ajaxContext</managed-bean-name>
+  <managed-bean-class>org.ajax4jsf.portlet.PortletAjaxContext</managed-bean-class>
+  <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>bean</managed-bean-name>
+  <managed-bean-class>portal.Bean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <navigation-rule>
+  <from-view-id>/jsf/start.xhtml</from-view-id>
+  <navigation-case>
+   <from-outcome>repeater</from-outcome>
+   <to-view-id>/jsf/repeater.xhtml</to-view-id>
+  </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+  <from-view-id>/jsf/repeater.xhtml</from-view-id>
+  <navigation-case>
+   <from-outcome>start</from-outcome>
+   <to-view-id>/jsf/start.xhtml</to-view-id>
+  </navigation-case>
+ </navigation-rule>
+ <application>
+  <view-handler>org.ajax4jsf.portlet.application.PortletViewHandler</view-handler>
+  <!-- 
+  <view-handler>com.sun.facelets.FaceletPortletViewHandler</view-handler>
+   -->
+ </application>
+  <render-kit>    
+    <renderer>
+      <description>
+        override the viewroot
+      </description>
+      <component-family>javax.faces.ViewRoot</component-family>
+      <renderer-type>javax.faces.ViewRoot</renderer-type>
+      <renderer-class>org.ajax4jsf.portlet.renderkit.portlet.PortletAjaxViewRootRenderer</renderer-class>
+    </renderer>
+  </render-kit>
+</faces-config>

Added: trunk/samples/portal-echo/src/main/webapp/WEB-INF/lib/jsf-facelets.jar
===================================================================
(Binary files differ)


Property changes on: trunk/samples/portal-echo/src/main/webapp/WEB-INF/lib/jsf-facelets.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet-instances.xml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet-instances.xml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet-instances.xml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<deployments>
+	<deployment>
+		<instance>
+			<instance-id>AjaxPortletInstance</instance-id>
+			<portlet-ref>portal-echo</portlet-ref>
+		</instance>
+	</deployment>
+	<deployment>
+		<instance>
+			<instance-id>AjaxPortletSecondInstance</instance-id>
+			<portlet-ref>portal-echo</portlet-ref>
+		</instance>
+	</deployment>
+</deployments>

Added: trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet.xml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/WEB-INF/portlet.xml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,34 @@
+<portlet-app version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/portlet"
+  xmlns="http://java.sun.com/xml/ns/portlet">
+  <portlet>
+    <portlet-name>portal-echo</portlet-name>
+      <portlet-class>org.ajax4jsf.portlet.AjaxFacesPortlet</portlet-class>
+      <init-param>
+        <name>default-view</name>
+        <value>/jsf/start.xhtml</value>
+      </init-param>
+      <!--
+      <init-param>
+        <name>default-edit</name>
+        <value>/jsf/start-edit.xhtml</value>
+      </init-param>
+      <init-param>
+        <name>default-help</name>
+        <value>/jsf/start-help.xhtml</value>
+      </init-param>
+      -->
+    <expiration-cache>0</expiration-cache>
+    <portlet-info>
+       <title>Portal Echo</title>
+    </portlet-info>
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+      <!--
+      <portlet-mode>EDIT</portlet-mode>
+      <portlet-mode>HELP</portlet-mode>
+      -->
+    </supports>
+  </portlet>
+</portlet-app>

Added: trunk/samples/portal-echo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/WEB-INF/web.xml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,107 @@
+<?xml version="1.0"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+	~ JBoss, a division of Red Hat                                              ~
+	~ Copyright 2006, Red Hat Middleware, LLC, and individual                   ~
+	~ contributors as indicated by the @authors tag. See the                    ~
+	~ copyright.txt in the distribution for a full listing of                   ~
+	~ individual contributors.                                                  ~
+	~                                                                           ~
+	~ This is free software; you can redistribute it and/or modify it           ~
+	~ under the terms of the GNU Lesser General Public License as               ~
+	~ published by the Free Software Foundation; either version 2.1 of          ~
+	~ the License, or (at your option) any later version.                       ~
+	~                                                                           ~
+	~ This software is distributed in the hope that it will be useful,          ~
+	~ but WITHOUT ANY WARRANTY; without even the implied warranty of            ~
+	~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU          ~
+	~ Lesser General Public License for more details.                           ~
+	~                                                                           ~
+	~ You should have received a copy of the GNU Lesser General Public          ~
+	~ License along with this software; if not, write to the Free               ~
+	~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA        ~
+	~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.                  ~
+	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <context-param>
+  <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
+  <param-value>true</param-value>
+ </context-param>
+ <context-param>
+  <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
+  <param-value>false</param-value>
+ </context-param>
+ <context-param>
+  <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
+  <param-value>false</param-value>
+ </context-param>
+ <context-param>
+  <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
+  <param-value>false</param-value>
+ </context-param>
+ <context-param>
+  <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
+  <param-value>true</param-value>
+ </context-param>
+ <context-param>
+  <param-name>facelets.DEVELOPMENT</param-name>
+  <param-value>false</param-value>
+ </context-param>
+ <context-param>
+  <param-name>facelets.SKIP_COMMENTS</param-name>
+  <param-value>true</param-value>
+ </context-param>
+ <context-param>
+  <param-name>facelets.VIEW_MAPPINGS</param-name>
+  <param-value>*.xhtml</param-value>
+ </context-param>
+ <context-param>
+  <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+  <param-value>org.ajax4jsf.portlet.application.FaceletPortletViewHandler</param-value>
+ </context-param>
+ <!-- 
+		<context-param>
+		<param-name>facelets.LIBRARIES</param-name>
+		<param-value>/WEB-INF/portal.taglib.xml</param-value>
+		</context-param>
+	-->
+ <context-param>
+  <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+  <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+  <param-value>server</param-value>
+ </context-param>
+ <filter>
+  <display-name>Ajax4jsf Filter</display-name>
+  <filter-name>ajax4jsf</filter-name>
+  <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+  <filter-name>ajax4jsf</filter-name>
+  <servlet-name>FacesServlet</servlet-name>
+  <dispatcher>FORWARD</dispatcher>
+  <dispatcher>REQUEST</dispatcher>
+  <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <listener>
+  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+ </listener>
+ <servlet>
+  <servlet-name>FacesServlet</servlet-name>
+  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+  <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+  <servlet-name>FacesServlet</servlet-name>
+  <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <mime-mapping>
+  <extension>svg</extension>
+  <mime-type>image/svg+xml</mime-type>
+ </mime-mapping>
+ <login-config>
+  <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>

Added: trunk/samples/portal-echo/src/main/webapp/jsf/common/editPreferences.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/common/editPreferences.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/common/editPreferences.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,98 @@
+<div
+      xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:c="http://java.sun.com/jstl/core">
+
+   <h:form>
+      <table width="100%">
+         <thead class="portlet-section-header" style="text-align:left;">
+            <tr>
+               <th>Key</th>
+               <th>Name</th>
+               <th>ReadOnly</th>
+               <c:if test="#{prefs.mutable}">
+                  <th>Value</th>
+               </c:if>
+            </tr>
+         </thead>
+         <tbody>
+            <c:forEach items="#{prefs.entries}" var="pref" varStatus="status">
+               <tr class="#{status.index % 2 == 0 ? 'portlet-section-body' : 'portlet-section-alternate'}">
+                  <td>
+                     <c:choose>
+                        <c:when test="#{prefs.mutable and pref.readOnly == false}">
+                           <h:commandLink
+                              rendered="#{pref.readOnly == false}"
+                              action="#{pref.select}">#{pref.name}</h:commandLink>
+                        </c:when>
+                        <c:otherwise>#{pref.name}</c:otherwise>
+                     </c:choose>
+                  </td>
+                  <td>
+                     <h:outputText value="#{pref.displayName}"/>
+                  </td>
+                  <td>
+                     <h:selectBooleanCheckbox disabled="true" value="#{pref.readOnly}"/>
+                  </td>
+                  <c:if test="#{prefs.mutable}">
+                     <td>
+                        <h:outputText value="#{pref.value}"/>
+                     </td>
+                  </c:if>
+               </tr>
+            </c:forEach>
+         </tbody>
+      </table>
+   </h:form>
+
+   <c:if test="#{prefs.selectedEntry != null}">
+      <h:form style="padding: 1em 0 1em 0">
+         <fieldset style="border: 1px solid;">
+            <legend>Edit existing values</legend>
+            <table>
+               <tbody>
+                  <c:forEach items="#{prefs.selectedEntry.indices}" var="index" varStatus="status">
+                     <tr>
+                        <td>
+                           <h:outputLabel for="row_#{status.index}">
+                              <h:outputText value="Value #{status.index}: " styleClass="portlet-form-field-label"/>
+                           </h:outputLabel>
+                        </td>
+                        <td>
+                           <h:inputText value="#{prefs.selectedEntry[index]}" styleClass="portlet-form-input-field"/>
+                        </td>
+                        <td>
+                           <h:commandButton
+                              id="row_#{status.index}"
+                              actionListener="#{prefs.selectedEntry.deleteLine}"
+                              value="Delete"
+                              styleClass="portlet-form-button"/>
+                        </td>
+                     </tr>
+                  </c:forEach>
+                  <tr>
+                     <td colspan="3">
+                        <h:commandButton value="Update" styleClass="portlet-form-button"/>
+                     </td>
+                  </tr>
+               </tbody>
+            </table>
+         </fieldset>
+      </h:form>
+
+      <h:form>
+         <fieldset style="border: 1px solid;">
+            <legend>Append a value</legend>
+            <h:outputLabel for="new_value">
+               <h:outputText value="New value: " styleClass="portlet-form-field-label"/>
+            </h:outputLabel>
+            <h:inputText id="new_value" value="#{prefs.selectedEntry.line}" styleClass="portlet-form-input-field"/>
+            <h:commandButton action="#{prefs.selectedEntry.appendLine}" value="Append" styleClass="portlet-form-button"/>
+         </fieldset>
+      </h:form>
+
+   </c:if>
+
+</div>

Added: trunk/samples/portal-echo/src/main/webapp/jsf/common/editSecurity.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/common/editSecurity.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/common/editSecurity.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,36 @@
+<div
+   xmlns="http://www.w3.org/1999/xhtml"
+   xmlns:ui="http://java.sun.com/jsf/facelets"
+   xmlns:h="http://java.sun.com/jsf/html"
+   xmlns:f="http://java.sun.com/jsf/core"
+   xmlns:c="http://java.sun.com/jstl/core">
+
+   <h:form>
+      <table>
+         <tbody>
+            <c:forEach items="#{auth.roles}" var="role" varStatus="status">
+               <tr>
+                  <td>
+                     <h:outputLabel for="cars_#{status.index}">
+                        <span class="portlet-form-field-label">Role <span>#{role == '__unchecked__' ? 'Unchecked' : (auth.roleDisplayNameMap[role] != null ? auth.roleDisplayNameMap[role] : role)}</span></span>:
+                     </h:outputLabel>
+                  </td>
+                  <td>
+                     <h:selectManyCheckbox
+                        id="cars_#{status.index}"
+                        styleClass="portlet-form-field"
+                        value="#{auth.forRole[role]}"
+                        layout="lineDirection">
+                        <f:selectItems value="#{auth.availableActions}"/>
+                     </h:selectManyCheckbox>
+                  </td>
+               </tr>
+            </c:forEach>
+         </tbody>
+      </table>
+      <div style="text-align:center;padding: 1em 0 1em 0">
+         <ui:insert name="form_submit"/>
+      </div>
+   </h:form>
+
+</div>
\ No newline at end of file

Added: trunk/samples/portal-echo/src/main/webapp/jsf/common/editTheme.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/common/editTheme.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/common/editTheme.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,51 @@
+<div
+      xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core">
+      
+   <h:panelGroup styleClass="portlet-section-body" id="themepg">
+   <h:form id="themeform">
+      <fieldset style="border: 1px solid;">
+         <legend>Theme properties</legend>
+         <table>
+            <tbody>
+               <tr>
+                  <td class="portlet-form-field-label">
+                     <h:outputLabel for="layout">Layout:</h:outputLabel>
+                  </td>
+                  <td>
+                     <h:selectOneMenu id="layout" styleClass="portlet-form-field" value="#{themePropertyAction.layoutName}">
+                        <f:selectItems value="#{portalobjectmgr.themes.layoutNames}"/>
+                     </h:selectOneMenu>
+                  </td>
+               </tr>
+               <tr>
+                  <td class="portlet-form-field-label">
+                     <h:outputLabel for="theme">Theme:</h:outputLabel>
+                  </td>
+                  <td>
+                     <h:selectOneMenu id="theme" styleClass="portlet-form-field" value="#{themePropertyAction.themeName}">
+                        <f:selectItems value="#{portalobjectmgr.themes.themeNames}"/>
+                     </h:selectOneMenu>
+                  </td>
+               </tr>
+               <tr>
+                  <td class="portlet-form-field-label">
+                     <h:outputLabel for="renderSet">RenderSet:</h:outputLabel>
+                  </td>
+                  <td>
+                     <h:selectOneMenu id="renderSet" styleClass="portlet-form-field" value="#{themePropertyAction.renderSetName}">
+                        <f:selectItems value="#{portalobjectmgr.themes.renderSetNames}"/>
+                     </h:selectOneMenu>
+                  </td>
+               </tr>
+            </tbody>
+         </table>
+      </fieldset>
+      <div style="text-align:center;padding: 1em 0 1em 0">
+         <ui:insert name="form_submit"/>
+      </div>
+   </h:form>
+</h:panelGroup>
+</div>
\ No newline at end of file

Added: trunk/samples/portal-echo/src/main/webapp/jsf/common/showPortletDetails.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/common/showPortletDetails.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/common/showPortletDetails.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,18 @@
+<div
+      xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:c="http://java.sun.com/jstl/core">
+
+   <div><span class="portlet-form-field-label">Portlet name:</span> #{portlet.name.value}</div>
+   <div><span class="portlet-form-field-label">Portlet description:</span> #{portlet.description.value}</div>
+   <div><span class="portlet-form-field-label">Portlet title:</span> #{portlet.title.value}</div>
+   <div><span class="portlet-form-field-label">Portlet keywords:</span> #{portlet.keywords.value}</div>
+   <c:if test="#{not empty portlet.locales}">
+      <div><span class="portlet-form-field-label">Portlet locales:</span>
+         <c:forEach items="#{portlet.locales}" var="locale">  #{locale} </c:forEach>
+      </div>
+   </c:if>
+
+</div>
\ No newline at end of file

Added: trunk/samples/portal-echo/src/main/webapp/jsf/repeater.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/repeater.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/repeater.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,18 @@
+<a4j:portlet
+      xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+
+	<h:form id="portlet_form">
+	    <h:panelGrid columns="2">
+	    
+	    <h:outputText id="text" value="Entered Text: #{bean.text}"/>
+	    <h:outputText id="counter" value="Result Counter: #{bean.counter}"/>
+	    <h:commandButton action="start" value="Return Back. Non-Ajax" />		
+	    <a4j:commandButton action="start" value="Return Back. Ajax" />		
+		</h:panelGrid>
+	</h:form>
+
+</a4j:portlet>
\ No newline at end of file

Added: trunk/samples/portal-echo/src/main/webapp/jsf/start.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/start.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/start.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,29 @@
+<a4j:portlet
+      xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:ui="http://java.sun.com/jsf/facelets"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+
+	<h:form id="portlet_form">
+	    <a4j:outputPanel ajaxRendered="true">
+	    <h:message for="repeaterText"/>
+		</a4j:outputPanel>
+	    <h:panelGrid columns="2">
+	    <h:inputText value="#{bean.text}" id="repeaterText">
+	      <f:validateLength maximum="15" />
+	      <a4j:support event="onkeyup" reRender="text"/>
+	    </h:inputText>
+	    <a4j:outputPanel ajaxRendered="true">
+ 	      <h:outputText id="text" value="#{bean.text}"/>
+	    </a4j:outputPanel>
+		<a4j:commandLink value="Increment Counter" action="#{bean.click}" reRender="counter"/>
+	    <h:outputText id="counter" value="#{bean.counter}"/>
+	    <h:outputText  value="Portlet namespace:"/>
+	    <h:outputText  value="#{bean.namespace}"/>
+	    <h:commandButton action="repeater" value="Non-ajax Submit" />		
+	    <a4j:commandButton action="repeater" value="Ajax Submit" />		
+		</h:panelGrid>
+	</h:form>
+
+</a4j:portlet>

Added: trunk/samples/portal-echo/src/main/webapp/jsf/tabTemplate.xhtml
===================================================================
--- trunk/samples/portal-echo/src/main/webapp/jsf/tabTemplate.xhtml	                        (rev 0)
+++ trunk/samples/portal-echo/src/main/webapp/jsf/tabTemplate.xhtml	2007-04-26 01:45:24 UTC (rev 129)
@@ -0,0 +1,19 @@
+<div xmlns="http://www.w3.org/1999/xhtml"
+     xmlns:h="http://java.sun.com/jsf/html"
+     xmlns:ui="http://java.sun.com/jsf/facelets">
+      
+   <h:form>
+      <ul class="topnav">
+         <li>
+            <h:commandLink value="Portal Objects" action="objects" actionListener="#{portalobjectmgr.selectRootObject}"/>
+         </li>
+         <li>
+            <h:commandLink value="Portlet Instances" action="instances"/>
+         </li>
+         <li>
+            <h:commandLink value="Portlet Definitions" action="portlets"/>
+         </li>
+      </ul>
+   </h:form>
+
+</div>

Added: trunk/samples/portal-echo/src/main/webapp/objects.xhtml.html
===================================================================




More information about the ajax4jsf-svn-commits mailing list