JBoss Rich Faces SVN: r21463 - trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-04 12:59:50 -0500 (Fri, 04 Feb 2011)
New Revision: 21463
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
Log:
https://issues.jboss.org/browse/RF-10320
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-02-04 17:57:55 UTC (rev 21462)
+++ trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-02-04 17:59:50 UTC (rev 21463)
@@ -198,6 +198,8 @@
this.__addUserEventHandler("collapse");
this.__addUserEventHandler("beforeexpand");
this.__addUserEventHandler("expand");
+ this.__addUserEventHandler("beforeswitch");
+ this.__addUserEventHandler("switch");
}
},
13 years, 4 months
JBoss Rich Faces SVN: r21462 - trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-04 12:57:55 -0500 (Fri, 04 Feb 2011)
New Revision: 21462
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
Log:
https://issues.jboss.org/browse/RF-10320
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-02-04 17:19:54 UTC (rev 21461)
+++ trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/panelMenuGroup.js 2011-02-04 17:57:55 UTC (rev 21462)
@@ -96,7 +96,7 @@
group.collapse();
}
- return group.__fireSwitch();
+ return group.__fireEvent("switch");
},
/**
@@ -194,7 +194,9 @@
});
}
+ this.__addUserEventHandler("beforecollapse");
this.__addUserEventHandler("collapse");
+ this.__addUserEventHandler("beforeexpand");
this.__addUserEventHandler("expand");
}
},
@@ -207,9 +209,13 @@
},
expand : function () {
+ if (!this.__fireEvent("beforeexpand")) {
+ return false;
+ }
+
this.__expand();
- return this.__fireExpand();
+ return this.__fireEvent("expand");
},
__expand : function () {
@@ -226,14 +232,18 @@
},
collapse : function () {
- this.__collapse();
+ if (!this.__fireEvent("beforecollapse")) {
+ return false;
+ }
+ this.__collapse();
+
this.__childGroups().each (function(index, group) {
//TODO nick - why not group.collapse()?
rf.$(group.id).__collapse();
});
- this.__fireCollapse();
+ this.__fireEvent("collapse");
},
__collapse : function () {
@@ -253,7 +263,7 @@
* @return {void} TODO ...
*/
switchExpantion : function () { // TODO rename
- var continueProcess = this.__fireBeforeSwitch();
+ var continueProcess = this.__fireEvent("beforeswitch");
if (!continueProcess) {
return false;
}
@@ -346,36 +356,15 @@
}
},
- __fireSwitch : function () {
- return new rf.Event.fireById(this.id, "switch", {
- id: this.id
- });
- },
-
__isMyEvent: function (event) {
return this.id == event.target.id;
},
- __fireBeforeSwitch : function () {
- return rf.Event.fireById(this.id, "beforeswitch", {
- id: this.id
- });
+ __fireEvent: function(eventName) {
+ var data = {id: this.id};
+ return rf.Event.fireById(this.id, eventName, data);
},
-
- __fireCollapse : function () {
- //TODO nick - 'new' should be removed
- return new rf.Event.fireById(this.id, "collapse", {
- id: this.id
- });
- },
-
- __fireExpand : function () {
- //TODO nick - 'new' should be removed
- return new rf.Event.fireById(this.id, "expand", {
- id: this.id
- });
- },
-
+
destroy: function () {
rf.Event.unbindById(this.id, "."+this.namespace);
13 years, 4 months
JBoss Rich Faces SVN: r21461 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-02-04 12:19:54 -0500 (Fri, 04 Feb 2011)
New Revision: 21461
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect/TestRichSelect.java
Log:
* fixed tests for rich:select
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect/TestRichSelect.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect/TestRichSelect.java 2011-02-04 17:17:21 UTC (rev 21460)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect/TestRichSelect.java 2011-02-04 17:19:54 UTC (rev 21461)
@@ -54,7 +54,7 @@
private AttributeLocator inputValue = input.getAttribute(Attribute.VALUE);
private JQueryLocator popup = jq("div.rf-sel-lst-cord");
private JQueryLocator options = jq("div.rf-sel-opt:eq({0})"); // 00..49
- private JQueryLocator button = pjq("div.rf-sel-btn");
+ private JQueryLocator button = pjq("span.rf-sel-btn");
private JQueryLocator output = pjq("span[id$=output]");
@Override
@@ -209,7 +209,7 @@
selenium.mouseDown(button);
selenium.mouseUp(button);
assertTrue(selenium.isVisible(popup), "Popup should be displayed.");
-
+
assertEquals(selenium.getElementHeight(jq("div.rf-sel-lst-scrl")), 100, "Height of list did not change");
}
13 years, 4 months
JBoss Rich Faces SVN: r21460 - trunk/examples/richfaces-showcase.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2011-02-04 12:17:21 -0500 (Fri, 04 Feb 2011)
New Revision: 21460
Modified:
trunk/examples/richfaces-showcase/pom.xml
Log:
RF-10032: richfaces-showcase pom.xml is fixed
Modified: trunk/examples/richfaces-showcase/pom.xml
===================================================================
--- trunk/examples/richfaces-showcase/pom.xml 2011-02-04 16:02:58 UTC (rev 21459)
+++ trunk/examples/richfaces-showcase/pom.xml 2011-02-04 17:17:21 UTC (rev 21460)
@@ -93,12 +93,6 @@
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
- <webResources>
- <resource>
- <directory>${basedir}/src/main/java</directory>
- <targetPath>/WEB-INF/src</targetPath>
- </resource>
- </webResources>
</configuration>
</plugin>
<plugin>
13 years, 4 months
JBoss Rich Faces SVN: r21459 - trunk/dist.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2011-02-04 11:02:58 -0500 (Fri, 04 Feb 2011)
New Revision: 21459
Modified:
trunk/dist/readme-ui.txt
Log:
dependencies correction
Modified: trunk/dist/readme-ui.txt
===================================================================
--- trunk/dist/readme-ui.txt 2011-02-04 16:00:42 UTC (rev 21458)
+++ trunk/dist/readme-ui.txt 2011-02-04 16:02:58 UTC (rev 21459)
@@ -17,7 +17,7 @@
1.7) annotations.jar from org.richfaces.cdk
- It's optional and only needs to be added if RichFaces components will be
created/accessed dynamically in your apps actions/listeners.
- 1.8) validation-api.jar - if it's not present in application classpath (already included into Java EE 6 servers)
+ 1.8) validation-api.jar and any implementation like hibernate-validators.jar - It's optional and should be added if you using Client or Graph Validation. Should be added only if it's not provided by server(Java EE 6 servers)
For optimal performance it's recommended to add one of these caching frameworks to application classpath: EhCache, JBoss Cache, OsCache.
13 years, 4 months
JBoss Rich Faces SVN: r21458 - trunk/dist.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2011-02-04 11:00:42 -0500 (Fri, 04 Feb 2011)
New Revision: 21458
Modified:
trunk/dist/readme-ui.txt
Log:
readme's updated with CSV tags.
Modified: trunk/dist/readme-ui.txt
===================================================================
--- trunk/dist/readme-ui.txt 2011-02-04 15:40:33 UTC (rev 21457)
+++ trunk/dist/readme-ui.txt 2011-02-04 16:00:42 UTC (rev 21458)
@@ -94,6 +94,9 @@
rich:itemChangeListener
rich:accordion
rich:accordionItem
+rich:panelMenu
+rich:panelMenuGroup
+rich:panelMenuItem
rich:progressBar
rich:tooltip
rich:message
@@ -140,8 +143,13 @@
rich:dropTarget
rich:dragIndicator
+---------------------------------
+Validation:
+---------------------------------
+rich:validator
+rich:graphValidator
Learn more
----------
RichFaces Project - http://www.jboss.org/richfaces
-RichFaces 4.0 Wiki - http://www.jboss.org/community/wiki/RichFaces40Planning
\ No newline at end of file
+RichFaces 4.0 Wiki - http://www.jboss.org/community/wiki/RichFaces40Planning
13 years, 4 months
JBoss Rich Faces SVN: r21457 - trunk/ui/input/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-04 10:40:33 -0500 (Fri, 04 Feb 2011)
New Revision: 21457
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java
Log:
https://issues.jboss.org/browse/RF-10410
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java 2011-02-04 15:21:32 UTC (rev 21456)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java 2011-02-04 15:40:33 UTC (rev 21457)
@@ -56,7 +56,6 @@
@Attribute(defaultValue="true")
public abstract boolean isSaveOnBlur();
- @Attribute
public abstract InplaceState getState();
@Attribute
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java 2011-02-04 15:21:32 UTC (rev 21456)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java 2011-02-04 15:40:33 UTC (rev 21457)
@@ -51,7 +51,6 @@
@Attribute
public abstract String getInputWidth();
- @Attribute
public abstract InplaceState getState();
@Attribute
13 years, 4 months
JBoss Rich Faces SVN: r21456 - trunk/ui/output/ui/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2011-02-04 10:21:32 -0500 (Fri, 04 Feb 2011)
New Revision: 21456
Modified:
trunk/ui/output/ui/src/main/templates/popupPanel.template.xml
Log:
RF-10398: popupPanel shade is fixed to support proper z-index in order to support multiple panels overlaps
Modified: trunk/ui/output/ui/src/main/templates/popupPanel.template.xml
===================================================================
--- trunk/ui/output/ui/src/main/templates/popupPanel.template.xml 2011-02-04 15:08:06 UTC (rev 21455)
+++ trunk/ui/output/ui/src/main/templates/popupPanel.template.xml 2011-02-04 15:21:32 UTC (rev 21456)
@@ -26,7 +26,7 @@
onmousedown="#{component.attributes['onmaskmousedown']}"
onmousemove="#{component.attributes['onmaskmousemove']}"
onmouseover="#{component.attributes['onmaskmouseover']}"
- onmouseout="#{component.attributes['onmaskmouseout']}" class="rf-pp-shade">
+ onmouseout="#{component.attributes['onmaskmouseout']}" class="rf-pp-shade" style="z-index:#{zindex};">
<button class="rf-pp-btn" id="#{clientId}FirstHref"></button>
</div>
13 years, 4 months
JBoss Rich Faces SVN: r21455 - trunk/ui/input/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2011-02-04 10:08:06 -0500 (Fri, 04 Feb 2011)
New Revision: 21455
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java
Log:
https://issues.jboss.org/browse/RF-10411
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java 2011-02-04 14:55:49 UTC (rev 21454)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java 2011-02-04 15:08:06 UTC (rev 21455)
@@ -38,7 +38,8 @@
family = AbstractInplaceInput.COMPONENT_FAMILY,
generate = "org.richfaces.component.UIInplaceInput",
renderer = @JsfRenderer(type = "org.richfaces.InplaceInputRenderer"),
- tag = @Tag(name="inplaceInput")
+ tag = @Tag(name="inplaceInput"),
+ attributes = "core-props.xml"
)
public abstract class AbstractInplaceInput extends UIInput implements InplaceComponent {
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java 2011-02-04 14:55:49 UTC (rev 21454)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java 2011-02-04 15:08:06 UTC (rev 21455)
@@ -39,7 +39,8 @@
family = AbstractInplaceSelect.COMPONENT_FAMILY,
generate = "org.richfaces.component.UIInplaceSelect",
renderer = @JsfRenderer(type = "org.richfaces.InplaceSelectRenderer"),
- tag = @Tag(name="inplaceSelect")
+ tag = @Tag(name="inplaceSelect"),
+ attributes = "core-props.xml"
)
public abstract class AbstractInplaceSelect extends AbstractSelectComponent implements InplaceComponent {
@@ -82,7 +83,22 @@
@Override
@Attribute
public abstract String getListClass();
+
+ @Attribute
+ public abstract String getChangedStateClass();
+ @Attribute
+ public abstract String getDefaultLabel();
+
+ @Attribute
+ public abstract String getDisabledStateClass();
+
+ @Attribute
+ public abstract String getEditStateClass();
+
+ @Attribute
+ public abstract String getReadyStateClass();
+
@Attribute()
public abstract String getEditEvent();
13 years, 4 months
JBoss Rich Faces SVN: r21454 - in trunk/examples/richfaces-showcase/src/main: webapp/richfaces/clientValidation and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2011-02-04 09:55:49 -0500 (Fri, 04 Feb 2011)
New Revision: 21454
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsfValidators.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml
Log:
corrections to CSV demos
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2011-02-04 14:51:15 UTC (rev 21453)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2011-02-04 14:55:49 UTC (rev 21454)
@@ -6,16 +6,15 @@
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
+import javax.validation.constraints.Size;
-import org.hibernate.validator.constraints.Length;
-
@ManagedBean
@RequestScoped
public class ValidationBean {
- @Length(min = 3, max = 12)
+ @Size(min=3, max=12)
private String name = null;
- @Pattern(regexp = "^[\\w\\-]([\\.\\w])+[\\w]+(a)([\\w\\-]+\\.)+[a-zA-Z]{2,4}$")
+ @Pattern(regexp = "^[\\w\\-]([\\.\\w])+[\\w]+(a)([\\w\\-]+\\.)+[a-zA-Z]{2,4}$" , message="Bad email")
private String email = null;
@Min(value = 18)
@Max(value = 99)
@@ -23,7 +22,7 @@
private String country;
private String jobTitle;
@AssertTrue
- private boolean agreed;
+ private boolean agreed = true;
public boolean isAgreed() {
return agreed;
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsfValidators.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsfValidators.xhtml 2011-02-04 14:51:15 UTC (rev 21453)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsfValidators.xhtml 2011-02-04 14:55:49 UTC (rev 21454)
@@ -16,8 +16,7 @@
client vlidators available and then send Ajax request for unknown to
get results from server side.</p>
<p>In that sample - pay attention that no requests fired when
- typing wrong values in first two fields. And Ajax request used to
- validate the last one.</p>
+ typing wrong values in first the fields. </p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
@@ -28,7 +27,7 @@
<fieldset>
<legend><b>Notes:</b></legend>
<ul>
- <li>Some validators still not implemented. Them will start work transparently for you after new snapshots with implementations added</li>
+ <li>Some JSR-303 validators still not implemented. Them will start work transparently for you after new snapshots with implementations added</li>
<li>We will provide information about how to provide client validation for custom validators soon!</li>
</ul>
</fieldset>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml 2011-02-04 14:51:15 UTC (rev 21453)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/jsr303.xhtml 2011-02-04 14:55:49 UTC (rev 21454)
@@ -16,8 +16,8 @@
client vlidators available and then send Ajax request for unknown to
get results from server side.</p>
<p>In that sample - pay attention that no requests fired when
- typing wrong values in first two fields. And Ajax request used to
- validate the last one.</p>
+ typing wrong values in all the fields and only checkbox activation
+ causes Ajax fallback.</p>
<ui:include src="#{demoNavigator.sampleIncludeURI}" />
<ui:include src="/templates/includes/source-view.xhtml">
<ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
@@ -25,19 +25,29 @@
<ui:param name="openLabel" value="View Source" />
<ui:param name="hideLabel" value="Hide Source" />
</ui:include>
- <fieldset>
- <legend><b>Notes:</b></legend>
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src" value="/WEB-INF/src/org/richfaces/demo/validation/ValidationBean.java" />
+ <ui:param name="sourceType" value="java" />
+ <ui:param name="openLabel" value="View ValidationBean Source" />
+ <ui:param name="hideLabel" value="Hide ValidationBean Source" />
+ </ui:include>
+ <fieldset><legend><b>Notes:</b></legend>
<ul>
- <li>Some validators still not implemented. Them will start work transparently for you after new snapshots with implementations added</li>
- <li>We will provide information about how to provide client validation for custom validators soon!</li>
+ <li>Some JSR-303 validators still not implemented. Them will
+ start work transparently for you after new snapshots with
+ implementations added</li>
+ <li>We will provide information about how to provide client
+ validation for custom validators soon!</li>
</ul>
</fieldset>
- <fieldset>
- <legend><b>What to expect additionally:</b></legend>
- After we will complete all standard validators migration and instructions for custom ones we plan to work on next features:
+ <fieldset><legend><b>What to expect
+ additionally:</b></legend> After we will complete all standard validators migration
+ and instructions for custom ones we plan to work on next features:
<ul>
- <li>Client Validation for submit components to perform bulk form validation.</li>
- <li>Ways of default validation definitions without usage of <b><rich:validator/></b> tag for every input.</li>
+ <li>Client Validation for submit components to perform bulk form
+ validation.</li>
+ <li>Ways of default validation definitions without usage of <b><rich:validator/></b>
+ tag for every input.</li>
</ul>
</fieldset>
</ui:composition>
13 years, 4 months