JBoss Rich Faces SVN: r9753 - trunk/ui/inplaceSelect/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-07-23 11:12:09 -0400 (Wed, 23 Jul 2008)
New Revision: 9753
Modified:
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
https://jira.jboss.org/jira/browse/RF-3880
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-07-23 14:57:35 UTC (rev 9752)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-07-23 15:12:09 UTC (rev 9753)
@@ -169,7 +169,7 @@
]]>
</jsp:scriptlet>
</div>
- <div id="listParent#{clientId}" class="rich-inplace-select-width-list" style="display: none; position : absolute; height : 100px; left : 0px; top: 13px">
+ <div id="listParent#{clientId}" class="rich-inplace-select-width-list" style="display: none; position : absolute; height : 100px; left : 0px; top: 13px; z-index:1000;">
<div class="rich-inplace-select-list-shadow">
<!-- TODO welcome magic numbers! -->
<table id="shadow#{clientId}" cellpadding="0" cellspacing="0" border="0" width="257" height="109">
15 years, 10 months
JBoss Rich Faces SVN: r9752 - trunk/framework/impl/src/main/java/org/ajax4jsf/context.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-23 10:57:35 -0400 (Wed, 23 Jul 2008)
New Revision: 9752
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java
Log:
Invalid order of skin resources fixed
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java 2008-07-23 14:57:02 UTC (rev 9751)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java 2008-07-23 14:57:35 UTC (rev 9752)
@@ -156,8 +156,6 @@
private boolean useSkinning;
private boolean ajaxRequest;
- private String skinStyleSheetUri;
- private String skinExtendedStyleSheetUri;
private Skin skin;
protected ResourceRenderer getScriptRenderer() {
15 years, 10 months
JBoss Rich Faces SVN: r9751 - trunk/framework/impl/src/main/java/org/ajax4jsf/context.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-07-23 10:57:02 -0400 (Wed, 23 Jul 2008)
New Revision: 9751
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java
Log:
Invalid order of skin resources fixed
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java 2008-07-23 14:08:31 UTC (rev 9750)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/context/RenderPhaseViewResourcesVisitor.java 2008-07-23 14:57:02 UTC (rev 9751)
@@ -156,11 +156,21 @@
private boolean useSkinning;
private boolean ajaxRequest;
+ private String skinStyleSheetUri;
+ private String skinExtendedStyleSheetUri;
+ private Skin skin;
+
protected ResourceRenderer getScriptRenderer() {
+ if (scriptRenderer == null) {
+ scriptRenderer = resourceBuilder.getRenderer(".js");
+ }
return scriptRenderer;
}
protected ResourceRenderer getStyleRenderer() {
+ if (styleRenderer == null) {
+ styleRenderer = resourceBuilder.getRenderer(".css");
+ }
return styleRenderer;
}
@@ -187,8 +197,7 @@
RenderKit renderKit, InternetResourceBuilder resourceBuilder,
HeadResponseWriter component,
HeadResponseWriter user,
- ResourceRenderer scriptRenderer,
- ResourceRenderer styleRenderer, boolean ajaxRequest) {
+ boolean ajaxRequest, Skin skin) {
super();
this.processScripts = processScripts;
this.processStyles = processStyles;
@@ -197,11 +206,8 @@
this.resourceBuilder = resourceBuilder;
this.component = component;
this.user = user;
-
- this.scriptRenderer = scriptRenderer;
- this.styleRenderer = styleRenderer;
-
this.ajaxRequest = ajaxRequest;
+ this.skin = skin;
}
}
@@ -293,32 +299,20 @@
.debug("Process component tree for collect used scripts and styles");
}
- String skinStyleSheetUri = null;
- String skinExtendedStyleSheetUri = null;
-
+ Skin skin = null;
try {
- Skin skin = SkinFactory.getInstance().getSkin(context);
+ skin = SkinFactory.getInstance().getSkin(context);
// For a "NULL" skin, do not collect components stylesheets
if ("false".equals(skin.getParameter(context,
Skin.loadStyleSheets))) {
processStyles = false;
}
-
- // Set default style sheet for current skin.
- skinStyleSheetUri = (String) skin.getParameter(context,
- Skin.generalStyleSheet);
- // Set default style sheet for current skin.
- skinExtendedStyleSheetUri = (String) skin.getParameter(context,
- Skin.extendedStyleSheet);
} catch (SkinNotFoundException e) {
log.warn("Current Skin is not found", e);
}
InternetResourceBuilder internetResourceBuilder = InternetResourceBuilder
.getInstance();
- ResourceRenderer scriptRenderer = internetResourceBuilder.getRenderer(".js");
- ResourceRenderer styleRenderer = internetResourceBuilder.getRenderer(".css");
-
ResponseWriter oldResponseWriter = context.getResponseWriter();
HeadResponseWriter componentWriter = new HeadResponseWriter("component");
@@ -330,32 +324,6 @@
context.setResponseWriter(componentWriter);
- // Append Skin StyleSheet after a
- if (null != skinStyleSheetUri) {
- String resourceURL = context.getApplication()
- .getViewHandler().getResourceURL(context,
- skinStyleSheetUri);
-
- InternetResourceImpl resourceImpl = new InternetResourceImpl();
- resourceImpl.setUri(resourceURL);
- resourceImpl.setRenderer(styleRenderer);
- resourceImpl.encode(context, null);
-
- useSkinning = true;
- }
-
- if (null != skinExtendedStyleSheetUri && extendedSkinningAllowed) {
- String resourceURL = context.getApplication().getViewHandler().getResourceURL(context,
- skinExtendedStyleSheetUri);
-
- InternetResourceImpl resourceImpl = new InternetResourceImpl();
- resourceImpl.setUri(resourceURL);
- resourceImpl.setRenderer(styleRenderer);
- resourceImpl.encode(context, null, EXTENDED_SKINNING);
-
- useSkinning = true;
- }
-
// Check init parameters for a resources processing.
String scriptStrategy = externalContext
.getInitParameter(InternetResourceBuilder.LOAD_SCRIPT_STRATEGY_PARAM);
@@ -431,8 +399,7 @@
.getViewRoot().getRenderKitId());
result = new State(processScripts, processStyles, useSkinning, renderKit,
- internetResourceBuilder, componentWriter, userWriter,
- scriptRenderer, styleRenderer, ajaxRequest);
+ internetResourceBuilder, componentWriter, userWriter, ajaxRequest, skin);
}
}
return result;
@@ -539,33 +506,70 @@
Map<String,Object> requestMap = externalContext.getRequestMap();
State state = (State) object;
+ String skinStyleSheetUri = null;
+ String skinExtendedStyleSheetUri = null;
+
+ if (state.skin != null) {
+ // Set default style sheet for current skin.
+ skinStyleSheetUri = (String) state.skin.getParameter(context,
+ Skin.generalStyleSheet);
+ // Set default style sheet for current skin.
+ skinExtendedStyleSheetUri = (String) state.skin.getParameter(context,
+ Skin.extendedStyleSheet);
+ }
+
+ boolean useSkinning = state.useSkinning;
try {
- if (state.useSkinning && extendedSkinningAllowed) {
- ResponseWriter oldWriter = context.getResponseWriter();
-
- try {
- HeadResponseWriter responseWriter = state.getComponentWriter();
- if (!state.ajaxRequest) {
- //skinning levels aren't dynamic, page-level setting cannot be changed
- //by AJAX request
- responseWriter.startElement("script", null);
- responseWriter.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);
- responseWriter.writeText("window.RICH_FACES_SKINNING_ON=true;", null);
- responseWriter.endElement("script");
- }
-
- context.setResponseWriter(responseWriter);
-
- if (state.processScripts) {
- InternetResource resource = state.resourceBuilder.createResource(null,
- "/org/richfaces/renderkit/html/scripts/skinning.js");
+ ResponseWriter oldWriter = context.getResponseWriter();
- resource.encode(context, null);
- }
-
- } finally {
- context.setResponseWriter(oldWriter);
+ try {
+ HeadResponseWriter responseWriter = state.getComponentWriter();
+ context.setResponseWriter(responseWriter);
+
+ // Append Skin StyleSheet after a
+ if (null != skinStyleSheetUri) {
+ String resourceURL = context.getApplication()
+ .getViewHandler().getResourceURL(context,
+ skinStyleSheetUri);
+
+ InternetResourceImpl resourceImpl = new InternetResourceImpl();
+ resourceImpl.setUri(resourceURL);
+ resourceImpl.setRenderer(state.getStyleRenderer());
+ resourceImpl.encode(context, null);
+
+ useSkinning = true;
}
+
+ if (null != skinExtendedStyleSheetUri && extendedSkinningAllowed) {
+ String resourceURL = context.getApplication().getViewHandler().getResourceURL(context,
+ skinExtendedStyleSheetUri);
+
+ InternetResourceImpl resourceImpl = new InternetResourceImpl();
+ resourceImpl.setUri(resourceURL);
+ resourceImpl.setRenderer(state.getStyleRenderer());
+ resourceImpl.encode(context, null, EXTENDED_SKINNING);
+
+ useSkinning = true;
+ }
+
+ if (!state.ajaxRequest && useSkinning && extendedSkinningAllowed) {
+ //skinning levels aren't dynamic, page-level setting cannot be changed
+ //by AJAX request
+ responseWriter.startElement("script", null);
+ responseWriter.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);
+ responseWriter.writeText("window.RICH_FACES_SKINNING_ON=true;", null);
+ responseWriter.endElement("script");
+ }
+
+ if (state.processScripts) {
+ InternetResource resource = state.resourceBuilder.createResource(null,
+ "/org/richfaces/renderkit/html/scripts/skinning.js");
+
+ resource.encode(context, null);
+ }
+
+ } finally {
+ context.setResponseWriter(oldWriter);
}
state.getComponentWriter().endDocument();
@@ -576,7 +580,6 @@
Object[] stateEvents = state.getEvents();
- log.debug(Arrays.toString(stateEvents));
if (log.isDebugEnabled()) {
log.debug(Arrays.toString(stateEvents));
}
15 years, 10 months
JBoss Rich Faces SVN: r9750 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator: examples and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-07-23 10:08:31 -0400 (Wed, 23 Jul 2008)
New Revision: 9750
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
Removed:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
Log:
graphValidator example
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml 2008-07-23 14:08:31 UTC (rev 9750)
@@ -0,0 +1,29 @@
+<ui:composition 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <rich:graphValidator>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name"/>
+ <rich:message for="name" />
+ <h:outputText value="Email:" />
+ <h:inputText value="#{validationBean.email}" id="email"/>
+ <rich:message for="email" />
+ <h:outputText value="Age:" />
+ <h:inputText value="#{validationBean.age}" id="age"/>
+ <rich:message for="age" />
+ </h:panelGrid>
+ </rich:graphValidator>
+ <a4j:commandButton value="Store changes"/>
+ </rich:panel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Deleted: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml 2008-07-23 14:08:31 UTC (rev 9750)
@@ -1,12 +0,0 @@
-<ui:composition 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:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
-
-<p>
-Graph Validator Example
-</p>
-
-</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml 2008-07-23 14:08:31 UTC (rev 9750)
@@ -15,9 +15,9 @@
<fieldset class="demo_fieldset">
<legend class="demo_legend">Title</legend>
<div class="sample-container" >
- <ui:include src="/richfaces/graphValidator/examples/simple.xhtml"/>
+ <ui:include src="/richfaces/graphValidator/examples/hibernateValidation.xhtml"/>
<ui:include src="/templates/include/sourceview.xhtml">
- <ui:param name="sourcepath" value="/richfaces/graphValidator/examples/simple.xhtml"/>
+ <ui:param name="sourcepath" value="/richfaces/graphValidator/examples/hibernateValidation.xhtml"/>
</ui:include>
</div>
</fieldset>
15 years, 10 months
JBoss Rich Faces SVN: r9749 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/demo/ajaxsupport and 12 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-07-23 09:46:23 -0400 (Wed, 23 Jul 2008)
New Revision: 9749
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
Log:
validators demos
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2008-07-23 13:41:37 UTC (rev 9748)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/ajaxsupport/UserBean.java 2008-07-23 13:46:23 UTC (rev 9749)
@@ -10,7 +10,7 @@
private String address;
private String city;
private String zip;
-
+ private int age;
public UserBean() {
super();
}
@@ -80,4 +80,12 @@
this.zip = zip;
}
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+
}
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-07-23 13:41:37 UTC (rev 9748)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-07-23 13:46:23 UTC (rev 9749)
@@ -125,6 +125,10 @@
return ret;
}
+ public List getValidatorsComponents() {
+ return getFilteredComponents("richValidators");
+ }
+
public List getSelectComponents() {
return getFilteredComponents("richSelect");
}
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,56 @@
+/**
+ *
+ */
+package org.richfaces.demo.validation;
+
+import org.hibernate.validator.Email;
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+public class ValidationBean {
+
+ @NotEmpty
+ @Length(min=3,max=12)
+ private String name;
+ @Email
+ @NotEmpty
+ private String email;
+ @NotNull
+ @Min(18)
+ @Max(100)
+ private int age;
+
+ public ValidationBean() {
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getAge() {
+ return age;
+ }
+
+ public void setAge(int age) {
+ this.age = age;
+ }
+}
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-07-23 13:41:37 UTC (rev 9748)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2008-07-23 13:46:23 UTC (rev 9749)
@@ -83,4 +83,7 @@
fileUpload =richInputs, \t File Upload, \t\t/images/ico_FileUpload.gif, \t\t/images/cn_FileUpload.gif, fileUpload.html, jbossrichfaces/freezone/docs/tlddoc/rich/fileUpload.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIFileUpload.html, \t\t\t\t\t/richfaces/fileUpload.jsf
StandardSkinning =richMisc, \t Standard Skinning, \t\t/images/ico_StandardComponentsSkinning.gif, \t\t/images/cn_StandardComponentsSkinning.gif, ArchitectureOverview.html\#StControlsSkinning, jbossrichfaces/freezone/docs/tlddoc/rich/StandardSkinning.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html, \t\t\t\t\t/richfaces/standardSkinning.jsf
plugnskin =richMisc, \t Plug'n'Skin, \t\t/images/ico_plugnskin.gif, \t\t/images/cn_plugnskin.gif, ArchitectureOverview.html\#plugnskin, jbossrichfaces/freezone/docs/tlddoc/rich/plugnskin.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIfileUpload.html, \t\t\t\t\t/richfaces/plugnskin.jsf
-hotKey=richMisc, \t Hot Key, \t\t/images/ico_hotkey.gif, \t\t/images/cn_hotkey.gif, ArchitectureOverview.html\#hotkey, jbossrichfaces/freezone/docs/tlddoc/rich/hotkey.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/hotKey.jsf
\ No newline at end of file
+hotKey=richMisc, \t Hot Key, \t\t/images/ico_hotkey.gif, \t\t/images/cn_hotkey.gif, ArchitectureOverview.html\#hotkey, jbossrichfaces/freezone/docs/tlddoc/rich/hotkey.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/hotKey.jsf
+ajaxValidator=richValidators, \t Ajax Validator, \t\t/images/ico_ajaxValidator.gif, \t\t/images/cn_ajaxValidator.gif, ArchitectureOverview.html\#ajaxValidator, jbossrichfaces/freezone/docs/tlddoc/rich/ajaxValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/ajaxValidator.jsf
+beanValidator=richValidators, \t Bean Validator, \t\t/images/ico_beanValidator.gif, \t\t/images/cn_beanValidator.gif, ArchitectureOverview.html\#beanValidator, jbossrichfaces/freezone/docs/tlddoc/rich/beanValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/beanValidator.jsf
+graphValidator=richValidators, \t Graph Validator, \t\t/images/ico_graphValidator.gif, \t\t/images/cn_graphValidator.gif, ArchitectureOverview.html\#graphValidator, jbossrichfaces/freezone/docs/tlddoc/rich/graphValidator.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIhotkey.html, \t\t\t\t\t/richfaces/graphValidator.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-23 13:41:37 UTC (rev 9748)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -328,6 +328,11 @@
<managed-bean-class>org.richfaces.demo.tree.SimpleTreeDndBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>validationBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.validation.ValidationBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
<navigation-rule>
<from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
<navigation-case>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,32 @@
+<ui:composition 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name" required="true">
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="name" />
+ <h:outputText value="Email:" />
+ <h:inputText value="#{validationBean.email}" id="email">
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="email" />
+ <h:outputText value="Age:" />
+ <h:inputText value="#{validationBean.age}" id="age">
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="age" />
+ </h:panelGrid>
+ </rich:panel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,33 @@
+<ui:composition 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <h:form>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+
+ <h:outputText value="Name:" />
+ <h:inputText value="#{userBean.name}" id="name" required="true">
+ <f:validateLength minimum="3" maximum="12"/>
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="name" />
+
+ <h:outputText value="Age:" />
+ <h:inputText value="#{userBean.age}" id="age" required="true">
+ <f:convertNumber integerOnly="true"/>
+ <f:validateLongRange minimum="18" maximum="99"/>
+ <rich:ajaxValidator event="onblur" ajaxSingle="true" />
+ </h:inputText>
+ <rich:message for="age"/>
+
+ </h:panelGrid>
+ </rich:panel>
+ </h:form>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/usage.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Using standard JSF validators
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/ajaxValidator/examples/jsfValidation.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/ajaxValidator/examples/jsfValidation.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ <p>
+ Using Hibernate validators
+ </p>
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/ajaxValidator/examples/hibernateValidation.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/ajaxValidator/examples/hibernateValidation.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/validator/ValidatorBean.java"/>
+ <ui:param name="openlabel" value="View ValidatorBean.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Ajax Validator</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,12 @@
+<ui:composition 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<p>
+Bean Validator Example
+</p>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/usage.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Description
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/beanValidator/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/beanValidator/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Bean Validator</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/simple.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,12 @@
+<ui:composition 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<p>
+Graph Validator Example
+</p>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/usage.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ Description
+ </p>
+
+ <fieldset class="demo_fieldset">
+ <legend class="demo_legend">Title</legend>
+ <div class="sample-container" >
+ <ui:include src="/richfaces/graphValidator/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/graphValidator/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+ </fieldset>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html 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:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Graph Validator</ui:define>
+ <ui:define name="body">
+ <ui:include src="/templates/include/tab-panel.xhtml" />
+ </ui:define>
+</ui:composition>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2008-07-23 13:41:37 UTC (rev 9748)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/components-navigation.xhtml 2008-07-23 13:46:23 UTC (rev 9749)
@@ -18,6 +18,11 @@
<ui:param name="components" value="#{componentNavigator.ajaxResources}" />
</ui:include>
</rich:panelBarItem>
+ <rich:panelBarItem id="richValidators" label="Ajax Validators">
+ <ui:include src="/templates/include/components-group.xhtml" >
+ <ui:param name="components" value="#{componentNavigator.validatorsComponents}" />
+ </ui:include>
+ </rich:panelBarItem>
<rich:panelBarItem styleClass="panel_menu_bar" id="ajaxOutput" label="Ajax Output">
<ui:include src="/templates/include/components-group.xhtml" >
<ui:param name="components" value="#{componentNavigator.ajaxOutput}" />
15 years, 10 months
JBoss Rich Faces SVN: r9748 - trunk/samples/richfaces-demo.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-07-23 09:41:37 -0400 (Wed, 23 Jul 2008)
New Revision: 9748
Modified:
trunk/samples/richfaces-demo/pom.xml
Log:
update in order to use hibernate validators
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2008-07-23 13:22:15 UTC (rev 9747)
+++ trunk/samples/richfaces-demo/pom.xml 2008-07-23 13:41:37 UTC (rev 9748)
@@ -195,6 +195,16 @@
</profiles>
<dependencies>
<dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>3.1.0.CR1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ <version>1.4.2</version>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.samples</groupId>
<artifactId>laguna</artifactId>
<version>3.2.2-SNAPSHOT</version>
15 years, 10 months
JBoss Rich Faces SVN: r9747 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-07-23 09:22:15 -0400 (Wed, 23 Jul 2008)
New Revision: 9747
Modified:
trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
trunk/docs/userguide/en/src/main/docbook/included/log.xml
trunk/docs/userguide/en/src/main/docbook/included/region.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
RF-3161 - done for gmap, region,log and "RichFaces Architecture Overview" section.
Modified: trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2008-07-23 13:21:38 UTC (rev 9746)
+++ trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2008-07-23 13:22:15 UTC (rev 9747)
@@ -130,7 +130,7 @@
the following initial settings:
<code>lat = "48.44"</code>
,
- <code>lng= "2.24"</code>
+ <code>lng = "2.24"</code>
and
<code>zoom = "5"</code>
.
@@ -219,7 +219,7 @@
</para>
<para>
For example, to approximate a map for
- <code>gmapVar= "map"</code>
+ <code>gmapVar = "map"</code>
declared inside the component, call <code>map.zoomIn()</code> on an
event.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/log.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/log.xml 2008-07-23 13:21:38 UTC (rev 9746)
+++ trunk/docs/userguide/en/src/main/docbook/included/log.xml 2008-07-23 13:22:15 UTC (rev 9747)
@@ -61,7 +61,7 @@
<para>The <emphasis >
<property>"level"</property>
</emphasis>
-attribute with several possible values (FATAL, ERROR, WARN, INFO, ALL) could change a logging level.</para>
+attribute with several possible values ("FATAL", "ERROR", "WARN", "INFO", "ALL") could change a logging level.</para>
<para>The log could be generated not only in a new window, but also on the current page in a separate <emphasis role="bold"><property><div></property></emphasis>, this is also controlled with the <emphasis >
<property>"popup"</property>
</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/region.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/region.xml 2008-07-23 13:21:38 UTC (rev 9746)
+++ trunk/docs/userguide/en/src/main/docbook/included/region.xml 2008-07-23 13:22:15 UTC (rev 9747)
@@ -90,7 +90,7 @@
</a4j:region >
<!--..Some content that will be decoded on server after Ajax request.-->
</a4j:region >]]></programlisting>
- <para>Therefore, the external region is decoded for the <code>link1</code> and the internal one is decoded for the <code>link2</code>.</para>
+ <para>Therefore, the external region is decoded for the <code>"link1"</code> and the internal one is decoded for the <code>"link2"</code>.</para>
<para>RichFaces allows setting Ajax responses rendering directly basing on component tree nodes without referring to the JSP (XHTML) page code. It could be defined by<emphasis><property> "selfRendered" </property></emphasis>attribute setting to "true" on <emphasis role="bold">
<property><a4j:region></property>
</emphasis> and could help considerably speed up a response output. However, this rapid processing could cause missing of transient components that present on view and don't come into a component tree as well as omitting of <emphasis role="bold">
@@ -119,7 +119,7 @@
</h:panelGroup>
</a4j:region>]]></programlisting>
<para>This example shows that one of the regions is decoded when a link is used inside. Nevertheless,
- if after processing the <code>link1</code> is clicked, the first region passes into Encode as a root
+ if after processing the <code>"link1"</code> is clicked, the first region passes into Encode as a root
region and encode performance time is reduced. This optimization doesn't allow data update out of the
region and should be implemented very carefully. The data out of the region described with <code>renderRegionOnly="false"</code> is updated successfully.
</para>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-23 13:21:38 UTC (rev 9746)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-23 13:22:15 UTC (rev 9747)
@@ -4523,8 +4523,8 @@
<property><rich:calendar></property></emphasis> you
need to open the "calendar.xcss" file located in "P-n-S\src\main\resources\skinpackage\plugnskindemo\css\". Once, you have opened the file, please find ".rich-calendar-today" selector and amend it as follows: <code>background-color: #075ad1;</code>. The current day's background color can be considered recolored.</para>
- <para>Now we will see how font style of a standard HTML submit button can be changed. Please, open "extended.xcss" file located in "P-n-S\src\main\resources\skinpackage\plugnskindemo\css\" and put in <code>font-weight: bold;</code>inside the curly braces of these coma separated selectors </para>
- <code>button[type="button"], button[type="reset"], button[type="submit"], input[type="reset"], input[type="submit"], input[type="button"]</code>. So, the CSS code should look like this.
+ <para>Now we will see how font style of a standard HTML submit button can be changed. Please, open "extended.xcss" file located in "P-n-S\src\main\resources\skinpackage\plugnskindemo\css\" and put in <code>font-weight: bold;</code> inside the curly braces of these coma separated selectors
+ <code>button[type="button"], button[type="reset"], button[type="submit"], input[type="reset"], input[type="submit"], input[type="button"]</code>. So, the CSS code should look like this. </para>
<programlisting role="XML"><![CDATA[
15 years, 10 months
JBoss Rich Faces SVN: r9746 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-07-23 09:21:38 -0400 (Wed, 23 Jul 2008)
New Revision: 9746
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
RF-3882 - described "value" attribute (instead of "selectedDate" attribute)
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-07-23 12:43:30 UTC (rev 9745)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2008-07-23 13:21:38 UTC (rev 9746)
@@ -101,6 +101,7 @@
<para>Usage <emphasis>
<property>"currentDate"</property>
</emphasis> attribute isn't available in the popup mode.</para>
+ <para>The <emphasis><property>"value"</property></emphasis> attribute stores selected date currently.</para>
<para>With help of the <emphasis><property>"currentDate"</property></emphasis> attribute
you can define month and year which will be displayed currently.</para>
<para>The <emphasis role="bold">
@@ -132,7 +133,7 @@
<property>"preloadDateRangeBegin"</property>
</emphasis> and <emphasis>
<property>"preloadDateRangeEnd"</property>
- </emphasis> attributes was designed only for the
+ </emphasis> attributes were designed only for the
"<code>client</code>" mode to load some data initially.</para></note>
<para><emphasis>
<property>"ondataselect"</property>
15 years, 10 months
JBoss Rich Faces SVN: r9745 - in trunk/test-applications/seleniumTest/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-07-23 08:43:30 -0400 (Wed, 23 Jul 2008)
New Revision: 9745
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/pages/inplaceInput/inplaceInputTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java
Log:
some fixes
Modified: trunk/test-applications/seleniumTest/src/main/webapp/pages/inplaceInput/inplaceInputTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java 2008-07-23 12:36:11 UTC (rev 9744)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/InplaceInputTest.java 2008-07-23 12:43:30 UTC (rev 9745)
@@ -13,8 +13,10 @@
private static final String INPLACE_INPUT_DECORATED_OK = "inplaceInputDecoratedok";
- private static final String INPLACE_INPUT_FIELD_POSTFIX = "inplaceTmpValue";
+ private static final String INPLACE_INPUT_DECORATED_CANCEL = "inplaceInputDecoratedcancel";
+ private static final String INPLACE_INPUT_FIELD_POSTFIX = "tempValue";
+
private final static String EVENT_TEST_RESULT_FAILED_TEXT = "No";
private final static String EVENT_TEST_RESULT_PASSED_TEXT = "Passed";
@@ -49,9 +51,10 @@
writeStatus("Check component event triggering");
- String inplaceInputS = getParentId() + "_form:" + INPLACE_INPUT_SIMPLE;
- String inplaceInputD = getParentId() + "_form:" + INPLACE_INPUT_DECORATED;
- String inplaceInputDOk = getParentId() + "_form:" + INPLACE_INPUT_DECORATED_OK;
+ String inplaceInputS = getParentId() + "_form:" + INPLACE_INPUT_SIMPLE;
+ String inplaceInputD = getParentId() + "_form:" + INPLACE_INPUT_DECORATED;
+ String inplaceInputDOk = getParentId() + "_form:" + INPLACE_INPUT_DECORATED_OK;
+ String inplaceInputDCancel = getParentId() + "_form:" + INPLACE_INPUT_DECORATED_CANCEL;
writeStatus("Click first component being tested");
@@ -60,17 +63,21 @@
writeStatus("Stop editing first component being tested");
- selenium.windowFocus();
+ String inplaceInputSInput = inplaceInputS + INPLACE_INPUT_FIELD_POSTFIX;
+ selenium.fireEvent(inplaceInputSInput, "blur");
+
AssertTextEquals(inplaceInputS + "_view", EVENT_TEST_RESULT_PASSED_TEXT, "onviewactivated event is not fired");
writeStatus("Double-click second component being tested");
selenium.doubleClick(inplaceInputD);
AssertTextEquals(inplaceInputD + "_edit", EVENT_TEST_RESULT_PASSED_TEXT, "oneditactivated event is not fired");
-
+ type(inplaceInputSInput, "Hello");
+
writeStatus("Stop editing second component being tested");
selenium.fireEvent(inplaceInputDOk, "mousedown");
+
AssertTextEquals(inplaceInputD + "_view", EVENT_TEST_RESULT_PASSED_TEXT, "onviewactivated event is not fired");
}
15 years, 10 months
JBoss Rich Faces SVN: r9744 - Plan and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-07-23 08:36:11 -0400 (Wed, 23 Jul 2008)
New Revision: 9744
Modified:
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA1.xls
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA2.xls
Log:
Modified: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA1.xls
===================================================================
(Binary files differ)
Modified: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA2.xls
===================================================================
(Binary files differ)
15 years, 10 months