Author: mvitenkov
Date: 2009-03-24 12:42:24 -0400 (Tue, 24 Mar 2009)
New Revision: 13145
Added:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutBean.java
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutPanelBean.java
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/PageBean.java
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponents.xhtml
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsProperty.xhtml
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsStraightforward.xhtml
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/util/event/Event.java
Log:
Added:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutBean.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutBean.java
(rev 0)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutBean.java 2009-03-24
16:42:24 UTC (rev 13145)
@@ -0,0 +1,106 @@
+package org.richfaces.helloworld.domain.componentsLayout;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.richfaces.component.html.HtmlLayout;
+
+import org.richfaces.helloworld.domain.util.componentInfo.ComponentInfo;
+
+@Name("layout")
+(a)Scope(ScopeType.EVENT)
+public class LayoutBean {
+
+ private String[] pos = { "left", "right", "center",
"top", "bottom" };
+ private LayoutPanelBean[] panels;
+ private LayoutPanelBean[] tempPanels;
+ private final int PANELS_COUNT = pos.length;
+ private HtmlLayout htmlLayout;
+ private boolean rendered;
+ private String layoutLabel;
+
+ public void addLayout(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlLayout);
+ }
+
+ public void checkLayout(ActionEvent event){
+ FacesContext context = FacesContext.getCurrentInstance();
+ layoutLabel = htmlLayout.getClientId(context);
+ }
+
+ public String getLayoutLabel() {
+ return layoutLabel;
+ }
+
+ public void setLayoutLabel(String layoutLabel) {
+ this.layoutLabel = layoutLabel;
+ }
+
+ public HtmlLayout getHtmlLayout() {
+ return htmlLayout;
+ }
+
+ public void setHtmlLayout(HtmlLayout htmlLayout) {
+ this.htmlLayout = htmlLayout;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public LayoutBean() {
+ panels = new LayoutPanelBean[PANELS_COUNT];
+ tempPanels = new LayoutPanelBean[PANELS_COUNT];
+ for (int i = 0; i < PANELS_COUNT; i++) {
+ panels[i] = new LayoutPanelBean(pos[i]);
+ tempPanels[i] = new LayoutPanelBean(pos[i]);
+ }
+ rendered = true;
+ }
+
+ public LayoutPanelBean[] getPanels() {
+ return panels;
+ }
+
+ public void setPanels(LayoutPanelBean[] panels) {
+ this.panels = panels;
+ }
+
+ public LayoutPanelBean[] getTempPanels() {
+ return tempPanels;
+ }
+
+ public void setTempPanels(LayoutPanelBean[] tempPanels) {
+ this.tempPanels = tempPanels;
+ }
+
+ public String validate() {
+ List<String> complete = Arrays.asList(pos);
+ List<String> specific = new ArrayList<String>();
+ for (LayoutPanelBean panelBean : tempPanels) {
+ specific.add(panelBean.getPosition());
+ }
+ if (!specific.containsAll(complete)) {
+ FacesContext.getCurrentInstance().addMessage(
+ "",
+ new FacesMessage("position for each panel should be unique!!!"));
+ } else
+ for (int i = 0; i < PANELS_COUNT; i++) {
+ panels[i].setPosition(tempPanels[i].getPosition());
+ }
+ return null;
+ }
+}
Added:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutPanelBean.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutPanelBean.java
(rev 0)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/LayoutPanelBean.java 2009-03-24
16:42:24 UTC (rev 13145)
@@ -0,0 +1,88 @@
+package org.richfaces.helloworld.domain.componentsLayout;
+
+import java.util.ArrayList;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.model.SelectItem;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.richfaces.component.html.HtmlLayoutPanel;
+
+import org.richfaces.helloworld.domain.util.componentInfo.ComponentInfo;
+
+@Name("layoutPanel")
+(a)Scope(ScopeType.EVENT)
+public class LayoutPanelBean {
+
+ private String position;
+ private String[] pos =
{"left","right","center","top","bottom"};
+ private ArrayList<SelectItem> positions;
+ private boolean rendered;
+ private HtmlLayoutPanel htmlLayoutPanel;
+ private String layoutPanelLabel;
+
+ public void addLayoutPanel(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlLayoutPanel);
+ }
+
+ public void checkLayoutPanel(ActionEvent event){
+ FacesContext context = FacesContext.getCurrentInstance();
+ layoutPanelLabel = htmlLayoutPanel.getClientId(context);
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public HtmlLayoutPanel getHtmlLayoutPanel() {
+ return htmlLayoutPanel;
+ }
+
+ public void setHtmlLayoutPanel(HtmlLayoutPanel htmlLayoutPanel) {
+ this.htmlLayoutPanel = htmlLayoutPanel;
+ }
+
+ public String getLayoutPanelLabel() {
+ return layoutPanelLabel;
+ }
+
+ public void setLayoutPanelLabel(String layoutPanelLabel) {
+ this.layoutPanelLabel = layoutPanelLabel;
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position;
+ }
+
+ public LayoutPanelBean() {
+ positions = new ArrayList<SelectItem>();
+ for(int i=0;i<pos.length;i++){
+ positions.add(new SelectItem(pos[i],pos[i]));
+ }
+ rendered = true;
+ }
+
+ public LayoutPanelBean(String position) {
+ this.position = position;
+ }
+
+ public ArrayList<SelectItem> getPositions() {
+ return positions;
+ }
+
+ public void setPositions(ArrayList<SelectItem> positions) {
+ this.positions = positions;
+ }
+}
\ No newline at end of file
Added:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/PageBean.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/PageBean.java
(rev 0)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/componentsLayout/PageBean.java 2009-03-24
16:42:24 UTC (rev 13145)
@@ -0,0 +1,192 @@
+package org.richfaces.helloworld.domain.componentsLayout;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.richfaces.component.UIPage;
+
+import org.richfaces.helloworld.domain.util.componentInfo.ComponentInfo;
+
+@Name("page")
+(a)Scope(ScopeType.EVENT)
+public class PageBean {
+
+ private UIPage htmlPage;
+ private String bodyClass;
+ private String contentType;//mime content type
+ private String dir;
+ private String footerClass;
+ private String headerClass;
+ private String lang;
+ private String markupType;
+ private String namespace;
+ private String pageTitle;
+ private boolean rendered;
+ private String sidebarClass;
+ private String sidebarPosition;
+ private int sidebarWidth;
+ private String style;
+ private String styleClass;
+ private String theme;
+ private String title;
+ private int width;
+ private String pageLabel;
+
+ public String getPageLabel() {
+ return pageLabel;
+ }
+
+ public void setPageLabel(String pageLabel) {
+ this.pageLabel = pageLabel;
+ }
+
+ public PageBean(){
+ bodyClass = "pageBodyClass";
+ contentType = "text/html";//"text/html", "image/png",
"image/gif", "video/mpeg", "text/css", and
"audio/basic"
+ dir = "ltr";//ltr or rtl
+ footerClass = "pageFooterClass";
+ headerClass = "pageHeaderClass";
+ lang = "en";
+ markupType = "jsp";
+ namespace = "http://java.sun.com/JSP/Page";
+ pageTitle = "Layout components";
+ rendered = true;
+ sidebarClass = "sideBarClass";
+ sidebarPosition = "left";//left,right
+ sidebarWidth = 1400;
+ style = "font-style:normal";
+ styleClass = "pageStyleClass";
+ theme = "simple";
+ title = "Richfaces";
+ width = 1400;
+ pageLabel = "";
+ }
+
+ public void addPage(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlPage);
+ }
+
+ public void checkPage(ActionEvent event){
+ FacesContext context = FacesContext.getCurrentInstance();
+ pageLabel = htmlPage.getClientId(context);
+ }
+
+ public UIPage getHtmlPage() {
+ return htmlPage;
+ }
+ public void setHtmlPage(UIPage htmlPage) {
+ this.htmlPage = htmlPage;
+ }
+ public String getBodyClass() {
+ return bodyClass;
+ }
+ public void setBodyClass(String bodyClass) {
+ this.bodyClass = bodyClass;
+ }
+ public String getContentType() {
+ return contentType;
+ }
+ public void setContentType(String contentType) {
+ this.contentType = contentType;
+ }
+ public String getDir() {
+ return dir;
+ }
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+ public String getFooterClass() {
+ return footerClass;
+ }
+ public void setFooterClass(String footerClass) {
+ this.footerClass = footerClass;
+ }
+ public String getHeaderClass() {
+ return headerClass;
+ }
+ public void setHeaderClass(String headerClass) {
+ this.headerClass = headerClass;
+ }
+ public String getLang() {
+ return lang;
+ }
+ public void setLang(String lang) {
+ this.lang = lang;
+ }
+ public String getMarkupType() {
+ return markupType;
+ }
+ public void setMarkupType(String markupType) {
+ this.markupType = markupType;
+ }
+ public String getNamespace() {
+ return namespace;
+ }
+ public void setNamespace(String namespace) {
+ this.namespace = namespace;
+ }
+ public String getPageTitle() {
+ return pageTitle;
+ }
+ public void setPageTitle(String pageTitle) {
+ this.pageTitle = pageTitle;
+ }
+ public boolean isRendered() {
+ return rendered;
+ }
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+ public String getSidebarClass() {
+ return sidebarClass;
+ }
+ public void setSidebarClass(String sidebarClass) {
+ this.sidebarClass = sidebarClass;
+ }
+ public String getSidebarPosition() {
+ return sidebarPosition;
+ }
+ public void setSidebarPosition(String sidebarPosition) {
+ this.sidebarPosition = sidebarPosition;
+ }
+ public int getSidebarWidth() {
+ return sidebarWidth;
+ }
+ public void setSidebarWidth(int sidebarWidth) {
+ this.sidebarWidth = sidebarWidth;
+ }
+ public String getStyle() {
+ return style;
+ }
+ public void setStyle(String style) {
+ this.style = style;
+ }
+ public String getStyleClass() {
+ return styleClass;
+ }
+ public void setStyleClass(String styleClass) {
+ this.styleClass = styleClass;
+ }
+ public String getTheme() {
+ return theme;
+ }
+ public void setTheme(String theme) {
+ this.theme = theme;
+ }
+ public String getTitle() {
+ return title;
+ }
+ public void setTitle(String title) {
+ this.title = title;
+ }
+ public int getWidth() {
+ return width;
+ }
+ public void setWidth(int width) {
+ this.width = width;
+ }
+}
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java 2009-03-24
16:29:20 UTC (rev 13144)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java 2009-03-24
16:42:24 UTC (rev 13145)
@@ -82,6 +82,7 @@
map.add("Editor", add("/Editor/Editor", new boolean [] {true, true,
false}));
map.add("Queue", add("/Queue/Queue", new boolean [] {false, true,
true}));
map.add("ColorPicker", add("/ColorPicker/ColorPicker", new boolean
[] {false, true, false}));
+ map.add("LayoutComponents",
add("/LayoutComponents/LayoutComponents", new boolean [] {true, true, true}));
Iterator<String> iterator = map.getSet().iterator();
while(iterator.hasNext()){
list.add(new SelectItem(iterator.next()));
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/util/event/Event.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/util/event/Event.java 2009-03-24
16:29:20 UTC (rev 13144)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/util/event/Event.java 2009-03-24
16:42:24 UTC (rev 13145)
@@ -128,6 +128,8 @@
private String onsetup;
private String onsave;
private String onsizeexceeded;
+ private String onload;
+ private String onunload;
public String getOnsizeexceeded() {
return onsizeexceeded;
@@ -260,6 +262,8 @@
onbeforeshow = "showEvent('formID:infoSubview:onbeforeshowInputID',
'onbeforeshow work!')";
onadd = "showEvent('formID:infoSubview:onaddInputID', 'onadd
work!')";
onsizeexceeded = "showEvent('formID:infoSubview:onsizeexceededInputID',
'onsizeexceeded work!')";
+ onload = "showEvent('formID:infoSubview:onloadInputID', 'onload
work!')";
+ onunload = "showEvent('formID:infoSubview:onunloadInputID',
'onunload work!')";
}
public String getOncontextmenu() {
@@ -1409,4 +1413,20 @@
this.onsave = onsave;
}
+ public String getOnload() {
+ return onload;
+ }
+
+ public void setOnload(String onload) {
+ this.onload = onload;
+ }
+
+ public String getOnunload() {
+ return onunload;
+ }
+
+ public void setOnunload(String onunload) {
+ this.onunload = onunload;
+ }
+
}
\ No newline at end of file
Added:
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponents.xhtml
===================================================================
---
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponents.xhtml
(rev 0)
+++
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponents.xhtml 2009-03-24
16:42:24 UTC (rev 13145)
@@ -0,0 +1,77 @@
+<f:subview
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ id="layoutComponentsSubviewID">
+ <rich:page binding="#{page.htmlPage}"
bodyClass="#{page.bodyClass}"
+ contentType="#{page.contentType}"
footerClass="#{page.footerClass}"
+ headerClass="#{page.headerClass}" id="pageID"
lang="#{page.lang}"
+ markupType="#{page.markupType}" namespace="#{page.namespace}"
+ onload="#{event.onload}" onunload="#{event.onunload}"
+ pageTitle="#{page.pageTitle}" rendered="#{page.rendered}"
+ sidebarClass="#{page.sidebarClass}"
+ sidebarPosition="#{page.sidebarPosition}"
+ sidebarWidth="#{page.sidebarWidth}" style="#{page.style}"
+ styleClass="#{page.styleClass}" theme="#{page.theme}"
+ title="#{page.title}" width="#{page.width}">
+ <f:facet name="header">
+ <h:panelGroup layout="block" styleClass="facetDiv">
+ <div id="header">
+ <h1>Header facet</h1>
+ <h2>By Richfaces team</h2>
+ </div>
+ </h:panelGroup>
+ </f:facet>
+ <f:facet name="sidebar">
+ <h:panelGroup>
+ <rich:layout id="layoutID" binding="#{layout.htmlLayout}"
+ rendered="#{layout.rendered}">
+ <div class="layoutDiv"
align="center"><rich:layoutPanel
+ position="#{layout.panels[0].position}">
+ <div class="layoutPanelDiv"
align="center"><h:graphicImage
+ value="/pics/construction_bucket_16.png" /> <b>LEFT LAYOUT
+ PANEL</b> <h:selectOneRadio
value="#{layout.tempPanels[0].position}">
+ <f:selectItems value="#{layoutPanel.positions}" />
+ </h:selectOneRadio></div>
+ </rich:layoutPanel> <rich:layoutPanel
position="#{layout.panels[1].position}">
+ <div class="layoutPanelDiv"
align="center"><h:graphicImage
+ value="/pics/2.gif" /> <b>RIGHT LAYOUT PANEL</b>
<h:selectOneRadio
+ value="#{layout.tempPanels[1].position}">
+ <f:selectItems value="#{layoutPanel.positions}" />
+ </h:selectOneRadio></div>
+ </rich:layoutPanel> <rich:layoutPanel
position="#{layout.panels[2].position}"
+ binding="#{layoutPanel.htmlLayoutPanel}" id="layoutPanelID"
+ rendered="#{layoutPanel.rendered}">
+ <div class="layoutPanelDiv"
align="center"><h:graphicImage
+ value="/pics/3.gif" /> <b>CENTER LAYOUT PANEL</b>
<h:selectOneRadio
+ value="#{layout.tempPanels[2].position}">
+ <f:selectItems value="#{layoutPanel.positions}" />
+ </h:selectOneRadio></div>
+ </rich:layoutPanel> <rich:layoutPanel
position="#{layout.panels[3].position}">
+ <div class="layoutPanelDiv"
align="center"><h:graphicImage
+ value="/pics/4.gif" /> <b>TOP LAYOUT PANEL</b>
<h:selectOneRadio
+ value="#{layout.tempPanels[3].position}">
+ <f:selectItems value="#{layoutPanel.positions}" />
+ </h:selectOneRadio></div>
+ </rich:layoutPanel> <rich:layoutPanel
position="#{layout.panels[4].position}">
+ <div class="layoutPanelDiv"
align="center"><h:graphicImage
+ value="/pics/caution_tape_16.png" /> <b>BOTTOM LAYOUT
PANEL</b>
+ <h:selectOneRadio value="#{layout.tempPanels[4].position}">
+ <f:selectItems value="#{layoutPanel.positions}" />
+ </h:selectOneRadio></div>
+ </rich:layoutPanel></div>
+ </rich:layout>
+ </h:panelGroup>
+ </f:facet>
+ <f:facet name="footer">
+ <h:panelGroup layout="block" styleClass="facetDiv">
+ <div id="footer">
+ <p id="legal">Copyright 2009 Richfaces. Designed by <a
+
href="http://www.jboss.org/">QA</a></p>
+ <p id="brand">FOOTER</p>
+ </div>
+ </h:panelGroup>
+ </f:facet>
+ </rich:page>
+</f:subview>
\ No newline at end of file
Added:
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsProperty.xhtml
===================================================================
---
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsProperty.xhtml
(rev 0)
+++
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsProperty.xhtml 2009-03-24
16:42:24 UTC (rev 13145)
@@ -0,0 +1,129 @@
+<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ id="layoutComponentsPropertySubviewID">
+ <h:commandButton value="regroup"
action="#{layout.validate}"></h:commandButton>
+
+ <h:panelGrid columns="2" border="1"
style="float:left;">
+ <h:outputText value="Component:" />
+ <h:outputText value="rich:page" style="font-weight:bold;" />
+
+ <h:outputText value="contentType" />
+ <h:selectOneRadio value="#{page.contentType}">
+ <f:selectItem itemLabel="text/html" itemValue="text/html"
/>
+ <f:selectItem itemLabel="image/png" itemValue="image/png"
/>
+ <f:selectItem itemLabel="image/gif" itemValue="image/gif"
/>
+ <f:selectItem itemLabel="video/mpeg" itemValue="video/mpeg"
/>
+ <f:selectItem itemLabel="text/css" itemValue="text/css" />
+ <f:selectItem itemLabel="audio/basic" itemValue="audio/basic"
/>
+ <a4j:support event="onchange"
reRender="pageID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{page.dir}">
+ <f:selectItem itemLabel="rtl" itemValue="rtl" />
+ <f:selectItem itemLabel="ltr" itemValue="ltr" />
+ <a4j:support event="onchange"
reRender="pageID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="lang" />
+ <h:selectOneRadio value="#{page.lang}">
+ <f:selectItem itemLabel="en" itemValue="en" />
+ <f:selectItem itemLabel="ru" itemValue="ru" />
+ <f:selectItem itemLabel="fr" itemValue="fr" />
+ <a4j:support event="onchange"
reRender="pageID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="markupType" />
+ <h:panelGroup>
+ <h:inputText value="#{page.markupType}">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+ <h:outputText value="jsp,xhtml and so on" />
+ </h:panelGroup>
+
+ <h:outputText value="namespace" />
+ <h:inputText value="#{page.namespace}" onchange="submit">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="pageTitle" />
+ <h:inputText value="#{page.pageTitle}" onchange="submit">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{page.rendered}">
+ <a4j:support event="onclick"
reRender="pageID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="sidebarPosition" />
+ <h:selectOneMenu value="#{page.sidebarPosition}">
+ <f:selectItem itemValue="left" itemLabel="left" />
+ <f:selectItem itemValue="right" itemLabel="right" />
+ <a4j:support event="onchange"
reRender="pageID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="sidebarWidth" />
+ <h:inputText value="#{page.sidebarWidth}" onchange="submit">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="theme" />
+ <h:inputText value="#{page.theme}" onchange="submit">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="title" />
+ <h:inputText value="#{page.title}" onchange="submit">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="width" />
+ <h:inputText value="#{page.width}" onchange="submit">
+ <a4j:support event="onblur"
reRender="pageID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rich:page test" />
+ <h:commandButton value="add test"
action="#{page.addPage}"></h:commandButton>
+
+ <h:commandButton actionListener="#{page.checkPage}"
+ value="Check Page Id" />
+ <h:outputText value="#{page.pageLabel}" />
+ </h:panelGrid>
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Component:" />
+ <h:outputText value="rich:layout" style="font-weight:bold;"
/>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{layout.rendered}">
+ <a4j:support event="onclick"
reRender="pageID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rich:layout test" />
+ <h:commandButton value="add test"
action="#{layout.addLayout}"></h:commandButton>
+
+ <h:commandButton actionListener="#{layout.checkLayout}"
+ value="Check Layout Id" />
+ <h:outputText value="#{layout.layoutLabel}" />
+ </h:panelGrid>
+ <h:panelGrid columns="2" border="1">
+ <h:outputText value="Component:" />
+ <h:outputText value="rich:layoutPanel" style="font-weight:bold;"
/>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{layoutPanel.rendered}">
+ <a4j:support event="onclick"
reRender="pageID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rich:layout test" />
+ <h:commandButton value="add test"
+ action="#{layoutPanel.addLayoutPanel}"></h:commandButton>
+
+ <h:commandButton actionListener="#{layoutPanel.checkLayoutPanel}"
+ value="Check Layout Id" />
+ <h:outputText value="#{layoutPanel.layoutPanelLabel}" />
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added:
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsStraightforward.xhtml
===================================================================
---
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsStraightforward.xhtml
(rev 0)
+++
trunk/test-applications/seamApp/web/src/main/webapp/LayoutComponents/LayoutComponentsStraightforward.xhtml 2009-03-24
16:42:24 UTC (rev 13145)
@@ -0,0 +1,8 @@
+<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+ id="layoutComponentsStraightforwardSubviewID">
+ <div>layoutComponentsStraightforwardSubviewID</div>
+</f:subview>
\ No newline at end of file