JBoss Rich Faces SVN: r8586 - trunk/ui/dataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-05-15 01:58:07 -0400 (Thu, 15 May 2008)
New Revision: 8586
Modified:
trunk/ui/dataTable/src/main/config/component/dataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-3299 dataOrderedList:following attributes are erroneus present in Rich Faces developer guide:footerClass and headerClass
Modified: trunk/ui/dataTable/src/main/config/component/dataTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataTable.xml 2008-05-14 21:37:07 UTC (rev 8585)
+++ trunk/ui/dataTable/src/main/config/component/dataTable.xml 2008-05-15 05:58:07 UTC (rev 8586)
@@ -92,7 +92,7 @@
<classname>java.lang.String</classname>
<description>CSS style(s) is/are to be applied to caption when this component is rendered</description>
</property>
- <!-- following attributes are not implemented for dataOrderedList component; see JIRA task RF-3299 for details
+
<property>
<name>headerClass</name>
<classname>java.lang.String</classname>
@@ -107,7 +107,7 @@
</description>
<defaultvalue>""</defaultvalue>
</property>
- -->
+
<property>
<name>componentState</name>
<classname>org.ajax4jsf.model.DataComponentState</classname>
16 years, 8 months
JBoss Rich Faces SVN: r8585 - in trunk: docs/faq and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-05-14 17:37:07 -0400 (Wed, 14 May 2008)
New Revision: 8585
Modified:
trunk/docs/faq/en/pom.xml
trunk/docs/faq/pom.xml
trunk/docs/migrationguide/en/pom.xml
trunk/docs/migrationguide/pom.xml
trunk/docs/userguide/en/pom.xml
trunk/docs/userguide/pom.xml
trunk/pom.xml
trunk/ui/assembly/pom.xml
Log:
http://jira.jboss.com/jira/browse/RF-3189 - Build with new version of maven-jdocbook-plugin was fixed.
Modified: trunk/docs/faq/en/pom.xml
===================================================================
--- trunk/docs/faq/en/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/docs/faq/en/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -11,7 +11,7 @@
<groupId>org.richfaces.docs.faq</groupId>
<artifactId>${translation}</artifactId>
<version>3.2.1-SNAPSHOT</version>
- <packaging>jdocbook</packaging>
+ <packaging>jar</packaging>
<name>Richfaces Manual (${translation})</name>
<properties>
Modified: trunk/docs/faq/pom.xml
===================================================================
--- trunk/docs/faq/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/docs/faq/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -34,22 +34,29 @@
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
<version>2.0.0</version>
- <!--
<executions>
- <execution>
- <id>generate</id>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- <execution>
- <id>resources</id>
- <goals>
- <goal>resources</goal>
- </goals>
- </execution>
+ <execution>
+ <id>jdocbook:generate</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>bundle</goal>
+ </goals>
+ </execution>
</executions>
- -->
<dependencies>
<dependency>
<groupId>org.jboss</groupId>
Modified: trunk/docs/migrationguide/en/pom.xml
===================================================================
--- trunk/docs/migrationguide/en/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/docs/migrationguide/en/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -11,7 +11,7 @@
<groupId>org.richfaces.docs.migration</groupId>
<artifactId>${translation}</artifactId>
<version>3.2.1-SNAPSHOT</version>
- <packaging>jdocbook</packaging>
+ <packaging>jar</packaging>
<name>RichFaces Migration Guide (${translation})</name>
<properties>
Modified: trunk/docs/migrationguide/pom.xml
===================================================================
--- trunk/docs/migrationguide/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/docs/migrationguide/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -35,6 +35,29 @@
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
<version>2.0.0</version>
+ <executions>
+ <execution>
+ <id>jdocbook:generate</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>bundle</goal>
+ </goals>
+ </execution>
+ </executions>
<dependencies>
<dependency>
<groupId>org.jboss</groupId>
Modified: trunk/docs/userguide/en/pom.xml
===================================================================
--- trunk/docs/userguide/en/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/docs/userguide/en/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -11,7 +11,7 @@
<groupId>org.richfaces.docs.userguide</groupId>
<artifactId>${translation}</artifactId>
<version>3.2.1-SNAPSHOT</version>
- <packaging>jdocbook</packaging>
+ <packaging>jar</packaging>
<name>Richfaces Manual (${translation})</name>
<properties>
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/docs/userguide/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -693,22 +693,29 @@
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
<version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
- <!--
<executions>
- <execution>
- <id>generate</id>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- <execution>
- <id>resources</id>
- <goals>
- <goal>resources</goal>
- </goals>
- </execution>
+ <execution>
+ <id>jdocbook:generate</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:resources</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jdocbook:bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>bundle</goal>
+ </goals>
+ </execution>
</executions>
- -->
<dependencies>
<dependency>
<groupId>org.jboss</groupId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -76,7 +76,7 @@
<module>framework</module>
<module>ui</module>
<module>extensions</module>
- <!--<module>docs</module>-->
+ <module>docs</module>
<module>ui/assembly</module>
<module>samples</module>
<!--
Modified: trunk/ui/assembly/pom.xml
===================================================================
--- trunk/ui/assembly/pom.xml 2008-05-14 18:44:25 UTC (rev 8584)
+++ trunk/ui/assembly/pom.xml 2008-05-14 21:37:07 UTC (rev 8585)
@@ -292,8 +292,8 @@
<version>
${project.version}
</version>
- <type>war</type>
- <classifier>pdf</classifier>
+ <type>jar</type>
+ <!--classifier>pdf</classifier-->
<outputDirectory>
${project.build.directory}/docs/userguide/en
</outputDirectory>
@@ -306,8 +306,8 @@
<version>
${project.version}
</version>
- <type>war</type>
- <classifier>pdf</classifier>
+ <type>jar</type>
+ <!--classifier>pdf</classifier-->
<outputDirectory>
${project.build.directory}/docs/faq/en
</outputDirectory>
16 years, 8 months
JBoss Rich Faces SVN: r8584 - trunk/test-applications/jsp/src/main/webapp/ContextMenu.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-05-14 14:44:25 -0400 (Wed, 14 May 2008)
New Revision: 8584
Modified:
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
Log:
RF-3375
Modified: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-05-14 18:12:06 UTC (rev 8583)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2008-05-14 18:44:25 UTC (rev 8584)
@@ -45,14 +45,13 @@
</rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
-
</rich:panel>
<rich:panel id="cmPanelID" style="width: 130px; height: 50px; background-color: #98FB98;">
<h:outputText value="panel with contextMenu(attachTo)" />
</rich:panel>
- <rich:contextMenu attachTo="cmPanelID" id="contextMenuID" attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}"
+ <rich:contextMenu attachTo="cmPanelID" id="contextMenuID" attachTiming="onavailable" submitMode="#{contextMenu.submitMode}"
event="#{contextMenu.event}" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}"
hideDelay="#{contextMenu.hideDelay}" showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
<rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
16 years, 8 months
JBoss Rich Faces SVN: r8583 - trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-05-14 14:12:06 -0400 (Wed, 14 May 2008)
New Revision: 8583
Modified:
trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
Log:
RF-3374
Modified: trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java
===================================================================
--- trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2008-05-14 16:30:56 UTC (rev 8582)
+++ trunk/ui/panelbar/src/main/java/org/richfaces/renderkit/html/PanelBarRendererBase.java 2008-05-14 18:12:06 UTC (rev 8583)
@@ -71,11 +71,7 @@
String value = (String)panelbar.getValue();
ValueBinding valueBinding = panelbar.getValueBinding("selectedPanel");
if (value != null && valueBinding == null) {
- UIComponent item = component.findComponent(value);
- if (item != null) {
- panelbar.setValue(item.getClientId(context));
- return item.getClientId(context);
- }
+ return value;
} else {
Object selected = panelbar.getSelectedPanel();
if (selected != null) {
16 years, 8 months
JBoss Rich Faces SVN: r8582 - trunk/ui/dataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-05-14 12:30:56 -0400 (Wed, 14 May 2008)
New Revision: 8582
Modified:
trunk/ui/dataTable/src/main/config/component/dataTable.xml
Log:
RF-3299--dataOrderedList: following attribute errorneous present in RichFaces Deleloper Guide:footerClass & headerClass
Modified: trunk/ui/dataTable/src/main/config/component/dataTable.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataTable.xml 2008-05-14 16:04:09 UTC (rev 8581)
+++ trunk/ui/dataTable/src/main/config/component/dataTable.xml 2008-05-14 16:30:56 UTC (rev 8582)
@@ -92,7 +92,8 @@
<classname>java.lang.String</classname>
<description>CSS style(s) is/are to be applied to caption when this component is rendered</description>
</property>
- <property>
+ <!-- following attributes are not implemented for dataOrderedList component; see JIRA task RF-3299 for details
+ <property>
<name>headerClass</name>
<classname>java.lang.String</classname>
<description>Space-separated list of CSS style class(es) that are be applied to header for this component
@@ -106,7 +107,7 @@
</description>
<defaultvalue>""</defaultvalue>
</property>
-
+ -->
<property>
<name>componentState</name>
<classname>org.ajax4jsf.model.DataComponentState</classname>
16 years, 8 months
JBoss Rich Faces SVN: r8581 - in trunk/framework/impl/src/main/java/org/richfaces/renderkit/html: images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-05-14 12:04:09 -0400 (Wed, 14 May 2008)
New Revision: 8581
Modified:
trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/BaseGradient.java
trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/CustomizeableGradient.java
trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/GradientType.java
Log:
CustomizeableGradient refactoring & trimming for parameter values added
Modified: trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/BaseGradient.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/BaseGradient.java 2008-05-14 15:49:12 UTC (rev 8580)
+++ trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/BaseGradient.java 2008-05-14 16:04:09 UTC (rev 8581)
@@ -244,7 +244,7 @@
gradientTypeString = getValueParameter(context, Skin.gradientType);
}
- data.setGradientType(GradientType.getBySkinParameter(gradientTypeString));
+ data.setGradientType(GradientType.getByParameter(gradientTypeString));
}
protected Object getDataToStore(FacesContext context, Object data) {
Modified: trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/CustomizeableGradient.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/CustomizeableGradient.java 2008-05-14 15:49:12 UTC (rev 8580)
+++ trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/CustomizeableGradient.java 2008-05-14 16:04:09 UTC (rev 8581)
@@ -190,6 +190,10 @@
return null;
}
}
+
+ protected static String safeTrim(String s) {
+ return s != null ? s.trim() : null;
+ }
protected Object getDataToStore(FacesContext context, Object parameterData) {
Data data = new Data();
@@ -204,8 +208,8 @@
if (parameterData instanceof Map<?, ?>) {
Map<?, ?> map = (Map<?, ?>) parameterData;
- gradientTypeString = (String) map.get(Skin.gradientType);
- alignmentString = (String) map.get("valign");
+ gradientTypeString = safeTrim((String) map.get(Skin.gradientType));
+ alignmentString = safeTrim((String) map.get("valign"));
baseIntColor = decodeColor((String) map.get("baseColor"));
gradientIntColor = decodeColor((String) map.get("gradientColor"));
gradientHeight = decodeHeight((String) map.get("gradientHeight"));
@@ -224,10 +228,10 @@
data.setGradientHeight(gradientHeight);
if (gradientTypeString == null || gradientTypeString.length() == 0) {
- gradientTypeString = getValueParameter(context, Skin.gradientType);
+ gradientTypeString = safeTrim(getValueParameter(context, Skin.gradientType));
}
- data.setGradientType(GradientType.getBySkinParameter(gradientTypeString));
+ data.setGradientType(GradientType.getByParameter(gradientTypeString));
data.setGradientAlignment(GradientAlignment.getByParameter(alignmentString));
return data.toByteArray();
Modified: trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/GradientType.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/GradientType.java 2008-05-14 15:49:12 UTC (rev 8580)
+++ trunk/framework/impl/src/main/java/org/richfaces/renderkit/html/images/GradientType.java 2008-05-14 16:04:09 UTC (rev 8581)
@@ -91,7 +91,7 @@
};
- public static final GradientType getBySkinParameter(String string) {
+ public static final GradientType getByParameter(String string) {
if (string == null || string.length() == 0) {
return PLAIN;
}
16 years, 8 months
JBoss Rich Faces SVN: r8580 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-05-14 11:49:12 -0400 (Wed, 14 May 2008)
New Revision: 8580
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-3409
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-05-14 15:17:12 UTC (rev 8579)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-05-14 15:49:12 UTC (rev 8580)
@@ -187,7 +187,7 @@
},
clear: function() {
- this._clearInput();
+ this._clearInput();
this._clearEntry();
},
@@ -275,26 +275,39 @@
LoadWatcher = Class.create();
Object.extend(LoadWatcher.prototype, {
initialize: function(iframe, callback, viewStateUpdater) {
- this.iframe = iframe;
+ this.iframe = $(iframe.id);
this.callback = callback;
this.viewStateUpdater = viewStateUpdater;
+
this.loadObserver = function() {
if (!this.stopped) {
this.stop();
this.onload();
}
+ return false;
}.bind(this);
-
+
Event.observe(this.iframe, 'load', this.loadObserver);
- this.interval = setInterval(function() {
+ this.isError = function() {
+ try {
+ if (this.iframe.contentWindow && this.iframe.contentWindow.document) {
+ this.iframe.contentWindow.document.readyState;
+ }
+ }catch(e) {
+ return true;
+ }
+ return false;
+ }.bind(this);
+
+ this.interval = window.setInterval(function() {
if (!this.stopped) {
var loaded = false;
var error = null;
try {
- if (this.iframe.contentWindow && this.iframe.contentWindow.document) {
+ if (!Prototype.Browser.Opera && this.iframe.contentWindow && this.iframe.contentWindow.document) {
loaded = /complete/.test(this.iframe.contentWindow.document.readyState);
}
} catch (e) {
@@ -304,50 +317,57 @@
if (error) {
this.stop();
this.onerror();
- } else if (loaded) {
- this.stop();
- this.onload();
- }
+ }
}
- }.bind(this), 200);
+ return false;
+ }.bind(this),200);
+
},
-
+
onerror: function() {
this.callback(FileUploadEntry.UPLOAD_TRANSFER_ERROR);
},
onload: function() {
+ if (this.isError()) {
+ this.callback(FileUploadEntry.UPLOAD_TRANSFER_ERROR);
+ return;
+ }
var iframeDocument = this.iframe.contentWindow.document;
var elt = iframeDocument.getElementById('_richfaces_file_upload_stopped');
var restr = iframeDocument.getElementById('_richfaces_file_upload_size_restricted');
var forb = iframeDocument.getElementById('_richfaces_file_upload_forbidden');
+ var state = iframeDocument.getElementById("javax.faces.ViewState");
+ if (!state && this.iframe.document) {
+ state = this.iframe.document.getElementById("javax.faces.ViewState")
+ }
+
if (elt) {
this.callback(FileUploadEntry.UPLOAD_CANCELED);
} else if (restr) {
this.callback(FileUploadEntry.UPLOAD_SIZE_ERROR);
} else if (forb) {
this.callback(FileUploadEntry.UPLOAD_SIZE_ERROR);
+ } else if (state) {
+ this.viewStateUpdater(state.value);
+ this.callback(FileUploadEntry.UPLOAD_SUCCESS);
} else {
- var state = iframeDocument.getElementById('javax.faces.ViewState');
- if (state) {
- this.viewStateUpdater(state.value);
- }
- this.callback(FileUploadEntry.UPLOAD_SUCCESS);
+ this.callback(FileUploadEntry.UPLOAD_TRANSFER_ERROR);
}
},
stop: function() {
this.stopped = true;
+ if (this.interval) {
+ window.clearInterval(this.interval);
+ this.interval = null;
+ }
+
if (this.loadObserver) {
Event.stopObserving(this.iframe, 'load', this.loadObserver);
this.loadObserver = null;
}
-
- if (this.interval) {
- clearInterval(this.interval);
- this.interval = null;
- }
}
});
@@ -596,7 +616,6 @@
if (this.runUpload) {
this.upload();
}
-
},
remove: function(entry) {
@@ -635,6 +654,7 @@
}
}
}
+ return false;
},
stop: function() {
@@ -644,6 +664,7 @@
if (this.activeEntry) {
this.activeEntry.stop();
}
+ return false;
},
clear: function(entry) {
@@ -675,6 +696,7 @@
this.setupAutoUpload();
}
this.processButtons();
+ return false;
},
processButtons: function () {
@@ -718,13 +740,13 @@
var d = $(this.id + ":upload2");
d.innerHTML = FileUploadEntry.LABELS['stop'];
d.onclick = function () {
- this.stop();
+ return this.stop();
}.bind(this);
}else {
var d = $(this.id + ":upload2");
d.innerHTML = FileUploadEntry.LABELS['upload'];;
d.onclick = function () {
- this.upload();
+ return this.upload();
}.bind(this);
}
},
16 years, 8 months
JBoss Rich Faces SVN: r8579 - in trunk: ui/contextMenu/src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-05-14 11:17:12 -0400 (Wed, 14 May 2008)
New Revision: 8579
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
trunk/ui/contextMenu/src/main/config/component/contextMenu.xml
Log:
RF-3326--contextMenu usege particularity
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-05-14 14:43:16 UTC (rev 8578)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-05-14 15:17:12 UTC (rev 8579)
@@ -299,7 +299,7 @@
<note>
<title>Note:</title>
- <para>When using the
+ <para>When using
<emphasis role="bold">
<property><rich:contextMenu></property>
</emphasis> component with
@@ -314,7 +314,7 @@
</emphasis> out from
<emphasis role="bold">
<property><h:outputText></property>
- </emphasis>component to provide component's correct work.
+ </emphasis>to provide component's correct work.
</para>
</note>
Modified: trunk/ui/contextMenu/src/main/config/component/contextMenu.xml
===================================================================
--- trunk/ui/contextMenu/src/main/config/component/contextMenu.xml 2008-05-14 14:43:16 UTC (rev 8578)
+++ trunk/ui/contextMenu/src/main/config/component/contextMenu.xml 2008-05-14 15:17:12 UTC (rev 8579)
@@ -30,7 +30,7 @@
<classname>java.lang.String</classname>
<description>
Sets the submission mode for all menu items of the menu except
- those where this attribute redefined. Possible value are "ajax","server", "none". Default value is "sever".
+ those where this attribute redefined. Possible value are "ajax","server", "none". Default value is "server".
</description>
<defaultvalue>"server"</defaultvalue>
</property>
16 years, 8 months
JBoss Rich Faces SVN: r8578 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-05-14 10:43:16 -0400 (Wed, 14 May 2008)
New Revision: 8578
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
RF-3326--contextMenu usege particularity
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-05-14 14:36:24 UTC (rev 8577)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-05-14 14:43:16 UTC (rev 8578)
@@ -296,6 +296,29 @@
</emphasis> and <emphasis role="bold">
<property></h:form></property>
</emphasis> tags.</para></note>
+
+ <note>
+ <title>Note:</title>
+ <para>When using the
+ <emphasis role="bold">
+ <property><rich:contextMenu></property>
+ </emphasis> component with
+ <emphasis role="bold">
+ <property><h:outputText></property>
+ </emphasis> JSF component, specify id for
+ <emphasis role="bold">
+ <property><h:outputText></property>
+ </emphasis> or move
+ <emphasis role="bold">
+ <property><rich:contextMenu></property>
+ </emphasis> out from
+ <emphasis role="bold">
+ <property><h:outputText></property>
+ </emphasis>component to provide component's correct work.
+ </para>
+ </note>
+
+
<!-- <para>It's possible to handle events for contextMenu from JavaScript code. A simplest example of usage JavaScript API is placed below:</para>
<para>
16 years, 8 months
JBoss Rich Faces SVN: r8577 - trunk/test-applications/facelets/src/main/webapp/ModalPanel.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-05-14 10:36:24 -0400 (Wed, 14 May 2008)
New Revision: 8577
Modified:
trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
Log:
+applet
Modified: trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2008-05-14 14:11:50 UTC (rev 8576)
+++ trunk/test-applications/facelets/src/main/webapp/ModalPanel/ModalPanel.xhtml 2008-05-14 14:36:24 UTC (rev 8577)
@@ -10,7 +10,9 @@
<f:selectItems value="#{richBean.listContainer}" />
</h:selectOneMenu>
- <rich:modalPanel id="modalPanelID" minHeight="#{modalPanel.minHeight}"
+ <rich:modalPanel id="modalPanelID"
+ left="#{modalPanel.left}"
+ top="#{modalPanel.top}" minHeight="#{modalPanel.minHeight}"
minWidth="#{modalPanel.minWidth}" height="#{modalPanel.height}"
width="#{modalPanel.width}" moveable="#{modalPanel.moveable}"
resizeable="#{modalPanel.resizeable}"
@@ -19,7 +21,8 @@
autosized="#{modalPanel.autosized}"
shadowDepth="#{modalPanel.shadowDepth}"
shadowOpacity="#{modalPanel.shadowOpacity}"
- showWhenRendered="#{modalPanel.showWhenRendered}"
+ showWhenRendered="#{modalPanel.showWhenRendered}"
+ headerClass="#{style.headerClass}" styleClass="#{style.styleClass}"
onhide="#{event.onhide}" onmaskclick="#{event.onmaskclick}"
onmaskcontextmenu="#{event.onmaskcontextmenu}"
onmaskdblclick="#{event.onmaskdblclick}"
@@ -28,20 +31,19 @@
onmaskmouseout="#{event.onmaskmouseout}"
onmaskmouseover="#{event.onmaskmouseover}"
onmaskmouseup="#{event.onmaskmouseup}" onmove="#{event.onmove}"
- onresize="#{event.onresize}" onshow="#{event.onshow}">
+ onresize="#{event.onresize}" onshow="#{event.onshow}"
+ >
<f:facet name="header">
<h:outputText value="Heder goes here..." />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="/pics/error.gif"
onclick="Richfaces.hideModalPanel('modalPanelID');return false;" />
- <h:form>
- <a4j:commandLink action="#"
- oncomplete="Richfaces.hideModalPanel('modalPanelID')" value="close" />
- </h:form>
</f:facet>
<h:outputText value="This is Modal Panel example" styleClass="text1" />
- <h:inputText value="#{modalPanel.inputTextTest}" />
+ <h:selectOneMenu value="#{richBean.srcContainer}" onchange="submit();">
+ <f:selectItems value="#{richBean.listContainer}" />
+ </h:selectOneMenu>
<applet code="ArcTest.class" width="400" height="400"
@@ -51,6 +53,7 @@
Your browser is completely ignoring the <APPLET> tag!
</applet>
+ <h:inputText value="#{modalPanel.inputTextTest}" />
<h:selectOneListbox value="#{modalPanel.selectOneListboxTest}">
<f:selectItem itemLabel="1" itemValue="1" />
<f:selectItem itemLabel="2" itemValue="2" />
@@ -61,7 +64,8 @@
<br />
<br />
</f:verbatim>
-
+ <rich:spacer width="20" height="20"></rich:spacer>
+ <a4j:commandButton value="submit" onclick="submit"></a4j:commandButton>
<h:outputLink value="http://www.jboss.com/">
<f:verbatim>Link</f:verbatim>
</h:outputLink>
@@ -71,17 +75,60 @@
<br />
</f:verbatim>
+ <a4j:commandLink
+ onclick="Richfaces.showModalPanel('modalPanel2ID');return false;"
+ value="show ModalPanel 2">
+ </a4j:commandLink>
+ <f:verbatim>
+ <br />
+ <br />
+ </f:verbatim>
<h:outputLink
onclick="Richfaces.hideModalPanel('modalPanelID');return false;"
value="Close">
<f:verbatim>Close</f:verbatim>
</h:outputLink>
-
- <ui:include src="${richBean.pathComponentContainer}" />
+
</rich:modalPanel>
-
+
+ <rich:modalPanel id="modalPanelID2">
+ <f:facet name="controls">
+ <h:graphicImage value="/pics/error.gif"
+ onclick="Richfaces.hideModalPanel('modalPanelID2');return false;" />
+ <h:form>
+ <a4j:commandLink action="#"
+ oncomplete="Richfaces.hideModalPanel('modalPanelID2')" value="close" />
+ </h:form>
+ </f:facet>
+ <h:inputText value="#{sb.property}" id="text" />
+ <rich:suggestionbox id="suggestionBoxId" eventsQueue="myEventsQueue" ajaxSingle="#{sb.ajaxSingle}" dir="#{sb.dir}"
+ rendered="#{sb.rendered}" requestDelay="#{sb.requestDelay}" selfRendered="#{sb.selfRendered}" value="#{sb.value}" for="text"
+ var="result" fetchValue="#{result.text}" suggestionAction="#{sb.autocomplete}" width="#{sb.width}" height="#{sb.height}"
+ border="#{sb.border}" zindex="#{sb.zindex}" rules="#{sb.rules}" cellpadding="#{sb.cellpadding}"
+ cellspacing="#{sb.cellspacing}" first="#{sb.first}" minChars="#{sb.minchars}" tokens="#{sb.tokens}" bgcolor="#{sb.bgColor}"
+ focus="#{sb.forcus}" title="#{result.text}" summary="summary" shadowOpacity="#{sb.shadowOpacity}"
+ shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove" frequency="#{sb.frequency}" nothingLabel="nothingLabel work! "
+ entryClass="#{style.entryClass}" popupClass="#{style.popupClass}" popupStyle="#{style.popupStyle}" style="#{style.style}" styleClass="#{style.styleClass}" selectedClass="#{style.selectedClass}" rowClasses="#{style.rowClasses}"
+ oncomplete="#{event.oncomplete}" onselect="#{event.onselect}" onbeforedomupdate="#{event.onbeforedomupdate}" onsubmit="#{event.onsubmit}">
+ <h:column>
+ <h:outputText value="#{result.city}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.contry}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.flag}" />
+ </h:column>
+ <h:column>
+ <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ </h:column>
+ </rich:suggestionbox>
+ </rich:modalPanel>
<a onclick="Richfaces.showModalPanel('modalPanelID');" href="#">Show
MP</a>
+ <br/>
+ <a onclick="Richfaces.showModalPanel('modalPanelID2');" href="#">Show
+ MP2</a>
<f:verbatim>
<br />
16 years, 8 months