myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r399441 - in /myfaces/tomahawk/trunk/sandbox/examples/src/main: java/org/apache/myfaces/examples/pagelet/ webapp/ webapp/WEB-INF/
Date Wed, 03 May 2006 21:27:00 GMT
Author: werpu
Date: Wed May  3 14:26:57 2006
New Revision: 399441

URL: http://svn.apache.org/viewcvs?rev=399441&view=rev
Log:
added an initial pagelet example

Added:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/ComponentBean.java
    myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/DummySpellchecker.java
    myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/PageletTestBean.java
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/pagelet.jsp
Modified:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/ComponentBean.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/ComponentBean.java?rev=399441&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/ComponentBean.java
(added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/ComponentBean.java
Wed May  3 14:26:57 2006
@@ -0,0 +1,78 @@
+package org.apache.myfaces.examples.pagelet;
+
+import org.apache.myfaces.custom.pagelet.Pagelet;
+import org.apache.myfaces.custom.pagelet.Text;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlGraphicImage;
+import javax.faces.component.html.HtmlPanelGroup;
+import javax.faces.context.FacesContext;
+import javax.faces.el.MethodBinding;
+
+
+public class ComponentBean {
+
+
+    public Pagelet getSpellChecker() {
+        Pagelet spellChecker = (Pagelet) createComponent(Pagelet.COMPONENT_TYPE);
+        spellChecker.setSpellchecker(createMethodBinding("#{spellchecker.checkSpelling}",
new Class[] { Text.class }));
+        spellChecker.setControlMode("pagelet");
+
+        HtmlPanelGroup   group = createPanelGroup();
+        HtmlGraphicImage img   = (HtmlGraphicImage) createComponent(HtmlGraphicImage.COMPONENT_TYPE);
+        img.setUrl(skinFolder() + "/img/spellcheck.gif");
+        img.setAlt("Check Spelling");
+        group.getChildren().add(img);
+        spellChecker.getFacets().put("linkSpellchecker", group);
+
+        group = (HtmlPanelGroup) createComponent(HtmlPanelGroup.COMPONENT_TYPE);
+        img   = (HtmlGraphicImage) createComponent(HtmlGraphicImage.COMPONENT_TYPE);
+        img.setUrl(skinFolder() + "/img/spellcheck.gif");
+        img.setAlt("Zoom");
+        group.getChildren().add(img);
+        spellChecker.getFacets().put("linkZoom", group);
+
+        group = (HtmlPanelGroup) createComponent(HtmlPanelGroup.COMPONENT_TYPE);
+        img   = (HtmlGraphicImage) createComponent(HtmlGraphicImage.COMPONENT_TYPE);
+        img.setUrl(skinFolder() + "/img/resume.gif");
+        img.setAlt("Resume Editing");
+        group.getChildren().add(img);
+        spellChecker.getFacets().put("linkResume", group);
+
+        group = (HtmlPanelGroup) createComponent(HtmlPanelGroup.COMPONENT_TYPE);
+        img   = (HtmlGraphicImage) createComponent(HtmlGraphicImage.COMPONENT_TYPE);
+        img.setUrl(skinFolder() + "/img/resize.gif");
+        img.setAlt("Bigger");
+        group.getChildren().add(img);
+        spellChecker.getFacets().put("linkResize", group);
+
+        group = (HtmlPanelGroup) createComponent(HtmlPanelGroup.COMPONENT_TYPE);
+        img   = (HtmlGraphicImage) createComponent(HtmlGraphicImage.COMPONENT_TYPE);
+        img.setUrl(skinFolder() + "/img/downsize.gif");
+        img.setAlt("Smaller");
+        group.getChildren().add(img);
+        spellChecker.getFacets().put("linkDownsize", group);
+
+        return spellChecker;
+    }
+
+    private UIComponent createComponent(String componentType) {
+        return FacesContext.getCurrentInstance().getApplication().createComponent(componentType);
+    }
+
+    private MethodBinding createMethodBinding(String expression, Class[] parameters) {
+        return FacesContext.getCurrentInstance().getApplication().createMethodBinding(expression,
parameters);
+    }
+
+    private HtmlPanelGroup createPanelGroup() {
+        HtmlPanelGroup addressPanel = (HtmlPanelGroup) createComponent(HtmlPanelGroup.COMPONENT_TYPE);
+
+        return addressPanel;
+    }
+
+    /* skinning stuff */
+
+    private String skinFolder() {
+        return "";
+    }
+}

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/DummySpellchecker.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/DummySpellchecker.java?rev=399441&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/DummySpellchecker.java
(added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/DummySpellchecker.java
Wed May  3 14:26:57 2006
@@ -0,0 +1,37 @@
+package org.apache.myfaces.examples.pagelet;
+
+import java.util.Iterator;
+
+import org.apache.myfaces.custom.pagelet.Text;
+import org.apache.myfaces.custom.pagelet.Word;
+
+/**
+ * Dummy spellchecker class
+ * for demonstrating on how to
+ * enable a spellchecker from outside
+ * 
+ * @author werpu
+ *
+ */
+public class DummySpellchecker {
+	public void checkSpelling(Text text) {
+		if (text == null)
+			return;
+        for (Iterator it = text.getWords().iterator(); it.hasNext();)
+        {
+            Word word = (Word) it.next();
+            if (word == null || word.getValue() == null || word.getValue().length() == 0)
+                continue;
+            if(word.getValue().equals("foobaz")) {
+                word.setInvalid(true);
+                String[] suggestions = {"fubar","snafu","myfaces"};
+                word.setAlternatives(suggestions);
+            }
+            if(word.getValue().equals("exemple")) {
+                word.setInvalid(true);
+                String[] suggestions = {"example","easter egg","myfaces"};
+                word.setAlternatives(suggestions);
+            }
+        }
+	}
+}

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/PageletTestBean.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/PageletTestBean.java?rev=399441&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/PageletTestBean.java
(added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/pagelet/PageletTestBean.java
Wed May  3 14:26:57 2006
@@ -0,0 +1,89 @@
+package org.apache.myfaces.examples.pagelet;
+
+
+
+/**
+ * @author Thomas Obereder
+ * @version Date: 05.11.2005 17:07:32
+ */
+public class PageletTestBean
+{
+    //@SuppressWarnings({"FieldCanBeLocal"})
+    private String                 _text        = "This is an exemple";
+    private String                 _text2       = "";
+    private String                 _text3       = "Example text 3";
+    private String                 _text4       = "Example text 4";
+    private String                 _text5       = "Example text 5"; 
+    private String 				   _text7		= "Example text 7";
+    
+
+    public PageletTestBean()
+    {
+    }
+
+    public String getText()
+    {
+        return _text;
+    }
+
+    public void setText(String text)
+    {
+        _text = text;
+    }
+
+
+
+
+    public String getText2()
+    {
+        return _text2;
+    }
+
+    public void setText2(String text2)
+    {
+        this._text2 = text2;
+    }
+
+    public String doaction()
+    {
+        return "success";
+    }
+
+    public String getText3()
+    {
+        return _text3;
+    }
+
+    public void setText3(String text3)
+    {
+        this._text3 = text3;
+    }
+
+    public String getText4()
+    {
+        return _text4;
+    }
+
+    public void setText4(String text4)
+    {
+        this._text4 = text4;
+    }
+
+    public String getText5()
+    {
+        return _text5;
+    }
+
+    public void setText5(String text5)
+    {
+        this._text5 = text5;
+    }
+
+	public String getText7() {
+		return _text7;
+	}
+
+	public void setText7(String text7) {
+		this._text7 = text7;
+	}
+}

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml?rev=399441&r1=399440&r2=399441&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml Wed
May  3 14:26:57 2006
@@ -68,6 +68,25 @@
         <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
 
+	<!-- managed bean for the pagelet -->
+	 <managed-bean>
+       <managed-bean-name>pageletBean</managed-bean-name>
+       <managed-bean-class>org.apache.myfaces.examples.pagelet.PageletTestBean</managed-bean-class>
+       <managed-bean-scope>application</managed-bean-scope>
+   </managed-bean>
+   
+   <managed-bean>
+       <managed-bean-name>componentBean</managed-bean-name>
+       <managed-bean-class>org.apache.myfaces.examples.pagelet.ComponentBean</managed-bean-class>
+       <managed-bean-scope>request</managed-bean-scope>
+   </managed-bean>
+   
+    <managed-bean>
+       <managed-bean-name>dummySpellchecker</managed-bean-name>
+       <managed-bean-class>org.apache.myfaces.examples.pagelet.DummySpellchecker</managed-bean-class>
+       <managed-bean-scope>application</managed-bean-scope>
+   </managed-bean>
+
   <managed-bean>
     <managed-bean-name>userHandler</managed-bean-name>
     <managed-bean-class>org.apache.myfaces.examples.inputsuggest.UserHandler</managed-bean-class>
@@ -680,14 +699,53 @@
 		</navigation-case>
 	</navigation-rule>
 	<!-- navigational rules for the wizard end -->
-
+    <!-- navigational rules for the conversational wizard -->
+	<navigation-rule>
+		<from-view-id>/*</from-view-id>
+		<navigation-case>
+			<from-outcome>go_scope_shop_conversation</from-outcome>
+			<to-view-id>/scopeshopconversation/start.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	<navigation-rule>
+		<from-view-id>/scopeshopconversation/page1.jsp</from-view-id>
+		<navigation-case>
+			<from-outcome>go_next</from-outcome>
+			<to-view-id>/scopeshopconversation/page2.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	<navigation-rule>
+		<from-view-id>/scopeshopconversation/page2.jsp</from-view-id>
+		<navigation-case>
+			<from-outcome>go_next</from-outcome>
+			<to-view-id>/scopeshopconversation/page3.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>go_reset</from-outcome>
+			<to-view-id>/scopeshopconversation/resetscope.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	<navigation-rule>
+		<from-view-id>/scopeshopconversation/page3.jsp</from-view-id>
+		<navigation-case>
+			<from-outcome>go_previous</from-outcome>
+			<to-view-id>/scopeshopconversation/page2.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	<navigation-rule>
+		<from-view-id>/scopeshopconversation/*</from-view-id>
+		<navigation-case>
+			<from-outcome>go_first</from-outcome>
+			<to-view-id>/scopeshopconversation/page1.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>go_start</from-outcome>
+			<to-view-id>/scopeshopconversation/start.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>go_home</from-outcome>
+			<to-view-id>/home.jsp</to-view-id>
+		</navigation-case>
+	</navigation-rule>
+	<!-- navigational rules for the wizard end -->
 </faces-config>
-
-
-
-
-
-
-
-
-

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml?rev=399441&r1=399440&r2=399441&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/web.xml Wed May  3 14:26:57
2006
@@ -76,6 +76,10 @@
       <param-value>100k</param-value>
     </init-param>
   </filter>
+  <filter>
+  	<filter-name>conversationFilter</filter-name>
+  	<filter-class>org.apache.myfaces.custom.conversation.ConversationServletFilter</filter-class>
+  </filter>
   <filter-mapping>
     <filter-name>extensionsFilter</filter-name>
     <url-pattern>*.jsf</url-pattern>
@@ -84,6 +88,15 @@
     <filter-name>extensionsFilter</filter-name>
     <url-pattern>/faces/*</url-pattern>
   </filter-mapping>
+  <filter-mapping>
+    <filter-name>conversationFilter</filter-name>
+    <url-pattern>*.jsf</url-pattern>
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>conversationFilter</filter-name>
+    <url-pattern>/faces/*</url-pattern>
+  </filter-mapping>
+ 
   <servlet>
     <servlet-name>Faces Servlet</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
@@ -93,6 +106,12 @@
     <servlet-name>SourceCodeServlet</servlet-name>
     <servlet-class>org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet</servlet-class>
   </servlet>
+  <!-- Spellchecker Servlet -->
+  <servlet>
+    <servlet-name>Spellchecker Servlet</servlet-name>
+    <servlet-class>org.apache.myfaces.custom.pagelet.AjaxSpellcheckerServlet</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
   <servlet-mapping>
     <servlet-name>Faces Servlet</servlet-name>
     <url-pattern>*.jsf</url-pattern>
@@ -100,6 +119,10 @@
   <servlet-mapping>
     <servlet-name>SourceCodeServlet</servlet-name>
     <url-pattern>*.source</url-pattern>
+  </servlet-mapping>
+  <servlet-mapping>
+    <servlet-name>Spellchecker Servlet</servlet-name>
+    <url-pattern>/org/apache/myfaces/ajax/spellchecker</url-pattern>
   </servlet-mapping>
   <welcome-file-list>
   	<welcome-file>index.html</welcome-file>

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/pagelet.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/pagelet.jsp?rev=399441&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/pagelet.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/pagelet.jsp Wed May  3 14:26:57
2006
@@ -0,0 +1,165 @@
+<%@ page session="false"%>
+<%@ page contentType="text/html;charset=iso-8859-1" language="java"%>
+<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
+<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
+<%@ taglib prefix="x" uri="http://myfaces.apache.org/tomahawk"%>
+<%@ taglib prefix="s" uri="http://myfaces.apache.org/sandbox"%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
+<html xmlns="http://www.w3.org/1999/xhtml">
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<title>Pagelet</title>
+	</head>
+
+	<body>
+		<f:view>
+			<h:form acceptCharset="iso-8859-1" enctype="iso-8859-1">
+				<s:stateChangedNotifier confirmationMessage="Values have changed. Did you know it?"
+                                disabled="false"
+                                excludedIds="excludedLink1,excludedLink2"/>
+				<h:commandLink action="doneit" value="pressme"></h:commandLink>
+				
+				
+				<x:div styleClass="myfaces_SpellingError">testtest</x:div>
+				<h:inputText id="theinut"></h:inputText>
+				<s:pagelet required="true" id="ajax_spellchecker0" value="#{pageletBean.text}" spellchecker="#{dummySpellchecker.checkSpelling}"
width="400" height="100" controlMode="textarea">
+					<f:facet name="linkSpellchecker">
+						<h:panelGroup>
+							<h:graphicImage url="spellcheck.png" rendered="true" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResume">
+						<h:panelGroup>
+							<h:graphicImage url="resume.png" rendered="true" alt="Resume Editing" />
+						</h:panelGroup>
+					</f:facet>
+				</s:pagelet>
+				<h:message for="ajax_spellchecker0"></h:message>
+				<f:verbatim><br/>xxxx</f:verbatim>
+				<s:pagelet id="ajax_spellchecker1" value="#{pageletBean.text2}" spellchecker="#{dummySpellchecker.checkSpelling}"
width="200" height="30">
+					<f:facet name="linkZoom">
+						<h:panelGroup>
+							<h:outputText value="Z" styleClass="check_spelling" rendered="true" />
+							<h:graphicImage url="spellcheck.png" rendered="false" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+
+					<f:facet name="linkSpellchecker">
+						<h:panelGroup>
+							<h:outputText value="Check Spelling" styleClass="check_spelling" rendered="false"
/>
+							<h:graphicImage url="spellcheck.png" rendered="true" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResume">
+						<h:panelGroup>
+							<h:outputText value="Resume Editing" styleClass="resume_editing" rendered="false"
/>
+							<h:graphicImage url="resume.png" rendered="true" alt="Resume Editing" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResize">
+						<h:panelGroup>
+							<h:outputText value="+ /" styleClass="resume_editing" rendered="false" />
+							<h:graphicImage url="resize.png" rendered="true" alt="Bigger" />
+						</h:panelGroup>
+					</f:facet>
+
+					<f:facet name="linkDownsize">
+						<h:panelGroup>
+							<h:outputText value="-" styleClass="resume_editing" rendered="false" />
+
+							<h:graphicImage url="downsize.png" rendered="true" alt="Smaller" />
+						</h:panelGroup>
+					</f:facet>
+				</s:pagelet>
+				<f:verbatim><br/>yyy</f:verbatim>
+				
+				<h:inputTextarea style="width: 300px; height: 30px;"></h:inputTextarea>
+				<f:verbatim><br/></f:verbatim>
+				<s:pagelet required="false" id="ajax_spellchecker5" value="#{pageletBean.text5}" spellchecker="#{dummySpellchecker.checkSpelling}"
width="400" height="100">
+					<f:facet name="linkSpellchecker">
+						<h:panelGroup>
+							<h:graphicImage url="spellcheck.png" rendered="true" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResume">
+						<h:panelGroup>
+							<h:graphicImage url="resume.png" rendered="true" alt="Resume Editing" />
+						</h:panelGroup>
+					</f:facet>
+				</s:pagelet>
+				<h:message for="ajax_spellchecker2"></h:message>
+
+				<s:pagelet required="false" disabled="true" id="ajax_spellchecker3" value="#{pageletBean.text3}"
spellchecker="#{dummySpellchecker.checkSpelling}" width="400" height="100">
+					<f:facet name="linkZoom">
+						<h:panelGroup>
+							<h:outputText value="Z" styleClass="check_spelling" rendered="true" />
+							<h:graphicImage url="spellcheck.png" rendered="false" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+
+					<f:facet name="linkSpellchecker">
+						<h:panelGroup>
+							<h:graphicImage url="spellcheck.png" rendered="true" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResume">
+						<h:panelGroup>
+							<h:graphicImage url="resume.png" rendered="true" alt="Resume Editing" />
+						</h:panelGroup>
+					</f:facet>
+				</s:pagelet>
+				<s:pagelet required="false" readonly="true" zoomWidth="600" zoomHeight="200" id="ajax_spellchecker4"
value="#{pageletBean.text4}" spellchecker="#{dummySpellchecker.checkSpelling}" width="400"
height="100">
+					<f:facet name="linkZoom">
+						<h:panelGroup>
+							<h:outputText value="Z" styleClass="check_spelling" rendered="true" />
+							<h:graphicImage url="spellcheck.png" rendered="false" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+
+					<f:facet name="linkSpellchecker">
+						<h:panelGroup>
+							<h:graphicImage url="spellcheck.png" rendered="true" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResume">
+						<h:panelGroup>
+							<h:graphicImage url="resume.png" rendered="true" alt="Resume Editing" />
+						</h:panelGroup>
+					</f:facet>
+				</s:pagelet>
+				
+				<s:pagelet required="false" readonly="false" zoomWidth="600" zoomHeight="200" id="ajax_spellchecker7"
value="#{pageletBean.text5}" spellchecker="#{dummySpellchecker.checkSpelling}" width="400"
height="100" controlMode="pagelet" binding="#{componentBean.spellChecker}">
+				</s:pagelet>
+
+			
+				<s:pagelet  required="false" readonly="false" zoomWidth="600" zoomHeight="200" id="ajax_spellchecker8"
value="#{pageletBean.text7}" spellchecker="#{dummySpellchecker.checkSpelling}" width="400"
height="100"  controlMode="pagelet-rawtext" >
+					<f:facet name="linkZoom">
+						<h:panelGroup>
+							<h:outputText value="Z" styleClass="check_spelling" rendered="true" />
+							<h:graphicImage url="spellcheck.png" rendered="false" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkSpellchecker">
+						<h:panelGroup>
+							<h:graphicImage url="SPELLCHECK_0.gif" rendered="true" alt="Check Spelling" />
+						</h:panelGroup>
+					</f:facet>
+					<f:facet name="linkResume">
+						<h:panelGroup>
+							<h:graphicImage url="CLEAR_0.gif" rendered="true" alt="Resume Editing" />
+						</h:panelGroup>
+					</f:facet>
+
+					<f:facet name="popupLabel">
+						<h:outputText value="Does this field have any value?"  rendered="true" />
+					</f:facet>
+				</s:pagelet>
+
+
+				<h:commandLink value="submit" action="#{pageletBean.doaction}" />
+			</h:form>
+			<span style="text-align:right">&copy;&nbsp;2005&nbsp;<a href="http://www.irian.at/">IRIAN
Solutions</a></span>
+		</f:view>
+	</body>
+</html>



Mime
View raw message