JBoss Rich Faces SVN: r1745 - in trunk/sandbox/samples/calendar-sample/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-20 11:10:54 -0400 (Fri, 20 Jul 2007)
New Revision: 1745
Modified:
trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java
trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
Log:
calendar-sample updated...
Modified: trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java
===================================================================
--- trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java 2007-07-20 15:10:16 UTC (rev 1744)
+++ trunk/sandbox/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java 2007-07-20 15:10:54 UTC (rev 1745)
@@ -23,12 +23,61 @@
import java.util.Locale;
+import javax.faces.event.ValueChangeEvent;
+
/**
- * @author $Autor$
+ * 20/07/2007
+ * @author Alexej Kushunin
+ * @mailto: akushunin(a)exadel.com
*
*/
public class CalendarBean {
+
+ private Locale locale;
+ private boolean popup;
+ private String pattern;
+
+
public Locale getLocale() {
- return Locale.US;
+ return locale;
}
+
+ public void setLocale(Locale locale) {
+ this.locale = locale;
+ }
+
+
+ public boolean isPopup() {
+ return popup;
+ }
+
+ public void setPopup(boolean popup) {
+ this.popup = popup;
+ }
+
+
+ public String getPattern() {
+ return pattern;
+ }
+
+ public void setPattern(String pattern) {
+ this.pattern = pattern;
+ }
+
+ public CalendarBean() {
+
+ locale = Locale.US;
+ popup = false;
+ pattern = "d/M/yy";
+ }
+
+ public void selectLocale(ValueChangeEvent event){
+
+ String tLocale = (String) event.getNewValue();
+ String lang = tLocale.substring(0,2);
+ String country = tLocale.substring(3);
+ locale = new Locale(lang,country,"");
+ }
+
+
}
\ No newline at end of file
Modified: trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
===================================================================
--- trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-07-20 15:10:16 UTC (rev 1744)
+++ trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-07-20 15:10:54 UTC (rev 1745)
@@ -1,6 +1,6 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.ajax4jsf.org/calendar" prefix="calendar" %>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/calendar" prefix="calendar" %>
<html>
<head>
<title></title>
@@ -8,9 +8,32 @@
<body>
<f:view>
<h:form>
- <calendar:calendar id="calendar" >
- </calendar:calendar>
+
+ <calendar:calendar
+ id="calendar"
+ locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}"
+ datePattern="#{calendarBean.pattern}">
+ </calendar:calendar>
+ <h:panelGrid columns="2">
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US"/>
+ <f:selectItem itemLabel="EN" itemValue="en/GB"/>
+ <f:selectItem itemLabel="FR" itemValue="fr/FR"/>
+ </h:selectOneRadio>
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.locale}" onclick="submit()"/>
+ <h:outputText value="Select Date Pattern:"/>
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy"/>
+ <f:selectItem itemLabel="dd/MM/yy" itemValue="dd/MM/yy"/>
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y"/>
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="d/MMM/y"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
+
</h:form>
</f:view>
</body>
17 years, 5 months
JBoss Rich Faces SVN: r1744 - trunk/sandbox/ui/message/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-20 11:10:16 -0400 (Fri, 20 Jul 2007)
New Revision: 1744
Modified:
trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
Log:
tableStyle tableClass instead of divStyle divClass
Modified: trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
===================================================================
--- trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-20 15:09:33 UTC (rev 1743)
+++ trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-20 15:10:16 UTC (rev 1744)
@@ -18,7 +18,7 @@
<f:clientId var="clientId" />
- <table id="#{clientId}" border="0" cellpadding="0" cellspacing="0" style="#{component.attributes['style']} #{divStyle}" class="rich-message #{divClass}">
+ <table id="#{clientId}" border="0" cellpadding="0" cellspacing="0" style="#{component.attributes['style']} #{tableStyle}" class="rich-message #{tableClass}">
<tbody>
<tr>
<vcp:body/>
17 years, 5 months
JBoss Rich Faces SVN: r1743 - trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-20 11:09:33 -0400 (Fri, 20 Jul 2007)
New Revision: 1743
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
Log:
tableClass tableStyle instead of divStyle divClass
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-20 15:08:53 UTC (rev 1742)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-20 15:09:33 UTC (rev 1743)
@@ -202,8 +202,8 @@
messageTemplate = getMessageTemplate();
ComponentVariables variables = ComponentsVariableResolver.getVariables(messageTemplate, uiMsg);
- variables.setVariable("divClass", tableClass);
- variables.setVariable("divStyle", tableStyle);
+ variables.setVariable("tableClass", tableClass);
+ variables.setVariable("tableStyle", tableStyle);
17 years, 5 months
JBoss Rich Faces SVN: r1742 - in trunk/sandbox/ui/message/src/main/java: META-INF and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-20 11:08:53 -0400 (Fri, 20 Jul 2007)
New Revision: 1742
Added:
trunk/sandbox/ui/message/src/main/java/META-INF/
trunk/sandbox/ui/message/src/main/java/META-INF/MANIFEST.MF
Log:
Added: trunk/sandbox/ui/message/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/sandbox/ui/message/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/sandbox/ui/message/src/main/java/META-INF/MANIFEST.MF 2007-07-20 15:08:53 UTC (rev 1742)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
17 years, 5 months
JBoss Rich Faces SVN: r1741 - in trunk/sandbox/ui/message/src/main: java/org/richfaces/renderkit/html and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-20 11:06:10 -0400 (Fri, 20 Jul 2007)
New Revision: 1741
Modified:
trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
trunk/sandbox/ui/message/src/main/resources/org/richfaces/renderkit/html/css/msg.css
trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
Log:
table based message component mockup
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2007-07-20 15:04:22 UTC (rev 1740)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2007-07-20 15:06:10 UTC (rev 1741)
@@ -15,12 +15,10 @@
public final String MARKER_LOCATION_RIGHT = "right";
- private String passedLabel = null;
+ private String passedLabel = "passed";
private String markerLocation = "left";
-
-
-
+
public abstract String getPassedLabel();
public abstract void setPassedLabel(String passedLabel);
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-20 15:04:22 UTC (rev 1740)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-20 15:06:10 UTC (rev 1741)
@@ -35,6 +35,8 @@
public static final String COMPONENT_NOT_FOUND_IN_VIEW_WARN_MESSAGE = "component not found in the view WARNING";
+ public boolean isError = false;
+
private RendererBase messageTemplate = null;
@@ -69,22 +71,51 @@
}
msgIter = getMessageIterator(context, forClientId, msgComponent);
- if(!msgIter.hasNext()){
- return;
+ ResponseWriter writer = context.getResponseWriter();
+
+ if(!msgIter.hasNext() && isError){
+
+ if(msgComponent.getFacets().containsKey("passedMarker")){
+
+ UIComponent facet = msgComponent.getFacet("passedMarker");
+
+ String markerClass = (String) msgComponent.getAttributes().get("markerClass");
+ String markerStyle = (String) msgComponent.getAttributes().get("markerStyle");
+
+ renderMarkerFacet(msgComponent, facet, context, writer, markerClass, markerStyle);
+ }
+
+ if(msgComponent.getPassedLabel() != null){
+
+ String passLabel = (String) msgComponent.getPassedLabel();
+ String labelClass = (String) msgComponent.getAttributes().get("labelClass");
+ String labelStyle = (String) msgComponent.getAttributes().get("labelStyle");
+
+ renderLabel(msgComponent, null, context, writer, labelClass,
+ labelStyle, false, false, false,passLabel,true);
+ }
+
+ }else if(msgIter.hasNext() ){
+
+ FacesMessage message = (FacesMessage)msgIter.next();
+ encodingUIContent(msgComponent, context, message);
+ isError = true;
}
- FacesMessage message = (FacesMessage)msgIter.next();
+ doEncodeEnd(writer, context, msgComponent);
- encodingUIContent(msgComponent, context, message);
-
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
- Set ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
+ if(isError){
+
+ AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
+ Set ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
- if(null != ajaxRenderedAreas) {
- ajaxRenderedAreas.add(clientId);
- }
+ if(null != ajaxRenderedAreas) {
+ ajaxRenderedAreas.add(clientId);
+ }
+ }
}
+
protected void encodingUIContent(UIRichMessage uiMsg, FacesContext context, FacesMessage facesMsg) throws IOException{
boolean showSummary = uiMsg.isShowSummary();
@@ -98,8 +129,8 @@
isTooltip = ((Boolean)tooltip).booleanValue();
}
- String divClass = null;
- String divStyle = null;
+ String tableClass = null;
+ String tableStyle = null;
String markerClass = null;
String markerStyle = null;
@@ -112,8 +143,8 @@
if(facesMsg.getSeverity() == FacesMessage.SEVERITY_ERROR){
- divClass = (String)uiMsg.getAttributes().get("errorClass");
- divStyle = (String)uiMsg.getAttributes().get("errorStyle");
+ tableClass = (String)uiMsg.getAttributes().get("errorClass");
+ tableStyle = (String)uiMsg.getAttributes().get("errorStyle");
markerClass = (String)uiMsg.getAttributes().get("errorMarkerClass");
markerStyle = (String)uiMsg.getAttributes().get("errorMarkerStyle");
@@ -125,8 +156,8 @@
}else if(facesMsg.getSeverity() == FacesMessage.SEVERITY_FATAL){
- divClass = (String)uiMsg.getAttributes().get("fatalClass");
- divStyle = (String)uiMsg.getAttributes().get("fatalStyle");
+ tableClass = (String)uiMsg.getAttributes().get("fatalClass");
+ tableStyle = (String)uiMsg.getAttributes().get("fatalStyle");
markerClass = (String)uiMsg.getAttributes().get("fatalMarkerClass");
markerStyle = (String)uiMsg.getAttributes().get("fatalMarkerStyle");
@@ -138,8 +169,8 @@
}else if(facesMsg.getSeverity() == FacesMessage.SEVERITY_WARN){
- divClass = (String)uiMsg.getAttributes().get("warnClass");
- divStyle = (String)uiMsg.getAttributes().get("warnStyle");
+ tableClass = (String)uiMsg.getAttributes().get("warnClass");
+ tableStyle = (String)uiMsg.getAttributes().get("warnStyle");
markerClass = (String)uiMsg.getAttributes().get("warnMarkerClass");
markerStyle = (String)uiMsg.getAttributes().get("warnMarkerStyle");
@@ -151,8 +182,8 @@
}else if(facesMsg.getSeverity() == FacesMessage.SEVERITY_INFO){
- divClass = (String)uiMsg.getAttributes().get("infoClass");
- divStyle = (String)uiMsg.getAttributes().get("infoStyle");
+ tableClass = (String)uiMsg.getAttributes().get("infoClass");
+ tableStyle = (String)uiMsg.getAttributes().get("infoStyle");
markerClass = (String)uiMsg.getAttributes().get("infoMarkerClass");
markerStyle = (String)uiMsg.getAttributes().get("infoMarkerStyle");
@@ -171,22 +202,20 @@
messageTemplate = getMessageTemplate();
ComponentVariables variables = ComponentsVariableResolver.getVariables(messageTemplate, uiMsg);
- variables.setVariable("divClass", divClass);
- variables.setVariable("divStyle", divStyle);
+ variables.setVariable("divClass", tableClass);
+ variables.setVariable("divStyle", tableStyle);
if(markerLocation.equals(uiMsg.MARKER_LOCATION_LEFT)){
renderMarkerFacet(uiMsg,markerFacet,context, writer, markerClass, markerStyle);
renderLabel(uiMsg, facesMsg, context, writer, labelClass,
- labelStyle, isTooltip, showDetail,showSummary);
+ labelStyle, isTooltip, showDetail,showSummary,null,false);
}else if(markerLocation.equals(uiMsg.MARKER_LOCATION_RIGHT)){
renderLabel(uiMsg, facesMsg, context, writer, labelClass,
- labelStyle, isTooltip, showDetail, showSummary);
+ labelStyle, isTooltip, showDetail, showSummary,null,false);
renderMarkerFacet(uiMsg,markerFacet,context, writer, markerClass, markerStyle);
}
-
- doEncodeEnd(writer, context, uiMsg);
}
protected void renderMarkerFacet(UIRichMessage uiMsg, UIComponent marker, FacesContext context, ResponseWriter writer, String markerClass, String markerStyle) throws IOException{
@@ -195,27 +224,38 @@
return;
}
- writer.startElement(HTML.SPAN_ELEM, uiMsg);
+ writer.startElement(HTML.td_ELEM, uiMsg);
String classes = markerClass == null ? "rich-message-marker" : "rich-message-marker " + markerClass;
getUtils().writeAttribute(writer, HTML.class_ATTRIBUTE, classes);
getUtils().writeAttribute(writer, HTML.style_ATTRIBUTE, markerStyle);
+
renderChild(context, marker);
- writer.endElement(HTML.SPAN_ELEM);
+
+ writer.endElement(HTML.td_ELEM);
}
protected void renderLabel(UIRichMessage uiMsg, FacesMessage msg, FacesContext context,
ResponseWriter writer, String labelClass, String labelStyle,
- boolean isTooltip, boolean showDetail, boolean showSummary) throws IOException{
+ boolean isTooltip, boolean showDetail, boolean showSummary,
+ String passLabel, boolean isPassLabel) throws IOException{
- String summary = (null != (summary = msg.getSummary())) ? summary : "";
- String detail = (null != (detail = msg.getDetail())) ? detail : "";
+ String summary = null;
+
+ String detail = null;
+
+ if(msg != null){
+ summary = (null != (summary = msg.getSummary())) ? summary : "";
+ detail = (null != (detail = msg.getDetail())) ? detail : "";
+ }
String classes = labelClass == null ? "rich-message-label" : "rich-message-label " + labelClass;
+ writer.startElement(HTML.td_ELEM, uiMsg);
writer.startElement(HTML.SPAN_ELEM, uiMsg);
+
getUtils().writeAttribute(writer, HTML.class_ATTRIBUTE,classes);
getUtils().writeAttribute(writer, HTML.style_ATTRIBUTE, labelStyle);
@@ -233,7 +273,14 @@
writer.writeText("\t", null);
}
- writer.endElement(HTML.SPAN_ELEM);
+ if(isPassLabel){
+ writer.writeText(passLabel, null);
+ writer.writeText("\t", null);
+ }
+
+ writer.endElement(HTML.SPAN_ELEM);
+ writer.endElement(HTML.td_ELEM);
+
}
protected Iterator getMessageIterator(FacesContext context, String forClientId, UIComponent component){
Modified: trunk/sandbox/ui/message/src/main/resources/org/richfaces/renderkit/html/css/msg.css
===================================================================
--- trunk/sandbox/ui/message/src/main/resources/org/richfaces/renderkit/html/css/msg.css 2007-07-20 15:04:22 UTC (rev 1740)
+++ trunk/sandbox/ui/message/src/main/resources/org/richfaces/renderkit/html/css/msg.css 2007-07-20 15:06:10 UTC (rev 1741)
@@ -1,18 +1,8 @@
.rich-message-marker{
- background-image : url(1.GIF);
- background-repeat: no-repeat;
- background-position: left center;
}
.rich-message{
-
}
.rich-message-label{
-
-
}
-
-.dr-msg-img{
- vertical-align: text-bottom;
-}
\ No newline at end of file
Modified: trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
===================================================================
--- trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-20 15:04:22 UTC (rev 1740)
+++ trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-20 15:06:10 UTC (rev 1741)
@@ -16,11 +16,14 @@
</h:styles>
<f:clientId var="clientId" />
-
- <div id="#{clientId}" class="rich-message #{divClass}" style="#{component.attributes['style']} #{divStyle}">
- <span class="dr-msg-img">
- <vcp:body/>
- </span>
- </div>
+
+ <table id="#{clientId}" border="0" cellpadding="0" cellspacing="0" style="#{component.attributes['style']} #{divStyle}" class="rich-message #{divClass}">
+ <tbody>
+ <tr>
+ <vcp:body/>
+ </tr>
+ </tbody>
+ </table>
+
</f:root>
\ No newline at end of file
17 years, 5 months
JBoss Rich Faces SVN: r1740 - trunk/sandbox/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-20 11:04:22 -0400 (Fri, 20 Jul 2007)
New Revision: 1740
Modified:
trunk/sandbox/ui/calendar/src/main/config/component/calendar.xml
Log:
calendar attributes added
Modified: trunk/sandbox/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/sandbox/ui/calendar/src/main/config/component/calendar.xml 2007-07-20 15:04:15 UTC (rev 1739)
+++ trunk/sandbox/ui/calendar/src/main/config/component/calendar.xml 2007-07-20 15:04:22 UTC (rev 1740)
@@ -80,5 +80,23 @@
<description></description>
<defaultvalue>java.util.Calendar.getInstance(getTimeZone()).getTime()</defaultvalue>
</property>
+ <property>
+ <name>datePattern</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ <defaultvalue>"MMM d, yyyy"</defaultvalue>
+ </property>
+ <property>
+ <name>scrollMode</name>
+ <classname>java.lang.String</classname>
+ <description></description>
+ <defaultvalue>"ajax"</defaultvalue>
+ </property>
+ <property>
+ <name>popup</name>
+ <classname>boolean</classname>
+ <description></description>
+ <defaultvalue>true</defaultvalue>
+ </property>
</component>
</components>
17 years, 5 months
JBoss Rich Faces SVN: r1739 - in trunk/sandbox/samples/rich-message-demo/src/main/webapp: image and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-20 11:04:15 -0400 (Fri, 20 Jul 2007)
New Revision: 1739
Added:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/passed.gif
Modified:
trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
Log:
extended demo app
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css 2007-07-20 14:41:00 UTC (rev 1738)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/css/app.css 2007-07-20 15:04:15 UTC (rev 1739)
@@ -3,5 +3,9 @@
}
.rich-message-marker{
- vertical-align: text-bottom;
+
+}
+
+.rich-message{
+
}
\ No newline at end of file
Added: trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/passed.gif
===================================================================
(Binary files differ)
Property changes on: trunk/sandbox/samples/rich-message-demo/src/main/webapp/image/passed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-20 14:41:00 UTC (rev 1738)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-20 15:04:15 UTC (rev 1739)
@@ -22,7 +22,7 @@
</h:selectOneMenu>
<h:commandButton value="submit"></h:commandButton>
- <r:message for="select" tooltip="true" showDetail="false" showSummary="true" markerLocation="left">
+ <r:message for="select" tooltip="true" showDetail="false" showSummary="true" markerLocation="right" passedLabel="No Error">
<f:facet name="errorMarker">
<h:graphicImage url="/image/error.gif"/>
</f:facet>
@@ -35,6 +35,9 @@
<f:facet name="warnMarker">
<h:graphicImage url="/image/warn.gif"/>
</f:facet>
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/image/passed.gif"/>
+ </f:facet>
</r:message>
</h:form>
17 years, 5 months
JBoss Rich Faces SVN: r1738 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-07-20 10:41:00 -0400 (Fri, 20 Jul 2007)
New Revision: 1738
Added:
trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.desc.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.xml
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.desc.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml
trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml
Log:
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml 2007-07-20 13:28:10 UTC (rev 1737)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/actionparam.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -84,8 +84,12 @@
<emphasis role="bold"><property><f:param></property></emphasis>, so the "name" attribute is mandatory.
Otherwise, the value will be missing due missing the request parameter name for it.
</para>
- <para>More information can be found on the <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063764"
- >Ajax4JSF Users Forum</ulink>.</para>
</section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>More information can be found on the <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063764"
+ >Ajax4JSF Users Forum</ulink>.</para>
+ </section>
</chapter>
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml 2007-07-20 13:28:10 UTC (rev 1737)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/include.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -91,8 +91,12 @@
<property><redirect/></property>,
</emphasis> AJAX submit is performed with navigation of the whole page and not only of the current view.
</para>
-<para>
-Some additional information can be found on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104158">Ajax4Jsf Users Forum.</ulink>
-</para>
</section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information can be found on the <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104158">Ajax4Jsf Users Forum.</ulink>
+ </para>
+ </section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.desc.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.desc.xml 2007-07-20 13:28:10 UTC (rev 1737)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.desc.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -3,8 +3,5 @@
<para>The <emphasis role="bold">
<property><a4j:keepAlive></property>
</emphasis> component allows to keep a state of each bean between requests.</para>
- <para>
- Some additional information about usage of components can be found <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989">here.
- </ulink>
- </para>
+
</section>
\ No newline at end of file
Added: trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.xml (rev 0)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/keepAlive.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter>
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.ajax4jsf.components.KeepAlive</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.ajax4jsf.components.AjaxKeepAlive</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.ajax4jsf.components.AjaxKeepAlive</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating on a page</title>
+
+ <para>Simple Component definition on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="XML"><![CDATA[<a4j:keepAlive beanName = "#{myClass.testBean}"/>]]></programlisting>
+ </para>
+ </section>
+
+ <section>
+ <title>Dynamical creation of a component from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="JAVA"><![CDATA[import org.ajax4jsf.ajax.AjaxKeepAlive;
+...
+AjaxKeepAlive myKeepAlive = new AjaxKeepAlive();
+...
+ ]]></programlisting>
+ </para>
+ </section>
+
+ <section>
+ <title>Key attributes and ways of usage</title>
+ <para>
+ If a managed bean is declared with 'request' scope in the configuration file with the help of 'managed-bean-scope' tag then the life-time of
+ this bean instance is valid only for the current request.
+ Any attempts to make a reference to the bean instance after the request end will throw in Illegal Argument Exception by the server.
+ To avoid these kinds of Exception, component
+ <emphasis role="bold"><property><a4j:keepAlive></property>
+ </emphasis> is used to maintain the state of the whole bean object among subsequent request.
+ </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ <programlisting role="XML"><![CDATA[<a4j:keepAlive beanName = "#{myClass.testBean}"/>]]></programlisting>
+</para>
+
+ <para>
+ Note that the attribute 'beanName' must point to a legal jsf EL expression which resolves to a managed mean instance. For example for
+ the above code the class definition may look like this:
+
+ <programlisting role="XML"><![CDATA[
+class MyClass{
+ ...
+ private TestBean testBean;
+ // Getters and Setters for testBean.
+ ...
+}
+ ]]></programlisting>
+</para>
+
+ </section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of components can be found <ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104989">here.
+ </ulink>
+ </para>
+ </section>
+</chapter>
\ No newline at end of file
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml 2007-07-20 13:28:10 UTC (rev 1737)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/outputPanel.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -126,8 +126,11 @@
on <emphasis role="bold">
<property><a4j:region></property>
</emphasis> and could help considerably speed up a response output. However, if a transient flag is kept as it is, this rapid processing could cause missing of transient components that present on view and don’t come into a component tree. Hence, for any particular case you could choose a way for you application optimization: speed up processing or redundant memory for keeping tree part earlier defined a transient. </para>
-<para>
-Some additional information about usage of component can be found <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052203#...">here</ulink>.
-</para>
</section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ Some additional information about usage of component can be found <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052203#...">here</ulink>.
+ </para>
+ </section>
</chapter>
\ No newline at end of file
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml 2007-07-20 13:28:10 UTC (rev 1737)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/page.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -83,13 +83,17 @@
<para>The component is rendered as a full HTML page template (it was shown in the example). The "<emphasis >
<property>head</property>
</emphasis>" section is defined with the help of the corresponding facet with the name="head" and also there is an attribute with the same name for contentType definition.</para>
- <para>All other component functionality is the same as of <emphasis role="bold">
+ </section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>All other component functionality is the same as of <emphasis role="bold">
<a4j:region>.
</emphasis> Its desctriprion could be found
-<member>
+ <member>
<ulink url="http://webdownload.exadel.com/downloads/ajax4jsf/documentation/tldDoc/">here</ulink>.
-</member></para>
-
-
+ </member>
+ </para>
</section>
+
</chapter>
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml 2007-07-20 13:28:10 UTC (rev 1737)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/poll.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -76,9 +76,15 @@
</emphasis> chapter attributes to provide the necessary behavior of request sending (delay, limitation of a submit and render area, requests frequency, and etc.). For detailed information on these attributes see again the <emphasis role="bold">
<property><ulink url="index.html#support"><a4j:support></ulink></property></emphasis> component description.
</para>
- <para>
-The aditional information about component usage you can find here:<ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">Ajax4Jsf Users Forum.
+
+ </section>
+
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ The aditional information about component usage you can find here:<ulink url="http://jboss.com/index.html?module=bb&op=viewtopic&t=103909">Ajax4Jsf Users Forum.
</ulink>
- </para>
+ </para>
</section>
+
</chapter>
\ No newline at end of file
Added: trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.desc.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.desc.xml (rev 0)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.desc.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<root>
+<section>
+<title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><a4j:portlet></property>
+ </emphasis>can be used in portals. The main component purpose is realization of possibility to create several instances the same portlet on
+ one page.
+ </para>
+</section>
+</root>
\ No newline at end of file
Added: trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.xml (rev 0)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/portlet.xml 2007-07-20 14:41:00 UTC (rev 1738)
@@ -0,0 +1,65 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter>
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.ajax4jsf.component.Portlet</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.ajax4jsf.component.Portlet</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.ajax4jsf.component.UIPortlet</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating on a page</title>
+ <programlisting role="XML"><![CDATA[
+<f:view>
+ <a4j:portlet>
+ ...
+ </a4j:portlet>
+</f:view>
+]]></programlisting>
+ </section>
+
+ <section>
+ <title>Dynamical creation of a component from Java code</title>
+ <programlisting role="JAVA"><![CDATA[
+import org.ajax4jsf.ajax.component.UIPortlet;
+...
+UIPortlet myPortlet = new UIPortlet();
+...]]></programlisting>
+ </section>
+
+ <section>
+ <title>Key attributes and ways of usage</title>
+ <para>
+ Portal page can include some instances of the same portlet but clientId of elements should be different for each window.
+ In that case 'namespace' is used for each portlet. The <emphasis role="bold"><property><a4j:portlet></property></emphasis>
+ implemets NaimingContainer interface and adds namespace to all componets on a page.
+ All portlet content should be wrapped by <emphasis role="bold"><property><a4j:portlet></property></emphasis> for resolving problems mentioned
+ before.
+ </para>
+
+ </section>
+</chapter>
\ No newline at end of file
17 years, 5 months
JBoss Rich Faces SVN: r1736 - trunk/ui/core/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-20 09:14:45 -0400 (Fri, 20 Jul 2007)
New Revision: 1736
Modified:
trunk/ui/core/src/main/config/component/region.xml
Log:
fixed error with default value
Modified: trunk/ui/core/src/main/config/component/region.xml
===================================================================
--- trunk/ui/core/src/main/config/component/region.xml 2007-07-20 13:12:47 UTC (rev 1735)
+++ trunk/ui/core/src/main/config/component/region.xml 2007-07-20 13:14:45 UTC (rev 1736)
@@ -74,7 +74,7 @@
"true" , no one of the components outside of region will
be included to AJAX response. If set to "false", search
for components to include in response will be performed
- on all tree. Default "true"
+ on all tree. Default "false"
</description>
<defaultvalue>false</defaultvalue>
</property>
17 years, 5 months