JBoss Rich Faces SVN: r9290 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-06-28 10:53:08 -0400 (Sat, 28 Jun 2008)
New Revision: 9290
Modified:
trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
Log:
http://jira.jboss.com/jira/browse/RF-3783 - Details of Usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-28 13:10:56 UTC (rev 9289)
+++ trunk/docs/userguide/en/src/main/docbook/included/hotKey.xml 2008-06-28 14:53:08 UTC (rev 9290)
@@ -64,8 +64,54 @@
<section>
<title>Details of Usage</title>
<para>
-
+ There are two ways to register <emphasis role="bold"><property><rich:hotKey></property></emphasis>:
</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ by attaching it to the whole page (<property>html[0] element</property>). This is default scenario.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ by attaching it with <emphasis><property>"selector"</property></emphasis> attribute to all the elements
+ defined using this selector.
+ This attribute uses defined by <ulink url="http://www.w3.org">w3c consortium</ulink> syntax for CSS rule selector
+ with some jQuery extensions.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The <emphasis><property>"key"</property></emphasis> attribute defines the hot key itself
+ which is processed by the component.
+ </para>
+ <para>
+ After the hot key has been registered and defined you could set the <emphasis><property>"handler"</property></emphasis>
+ attribute which determines a JavaScript function to be called every time when corresponding keys are pressed.
+ </para>
+
+ <para>
+ With the help of the <emphasis><property>"timing"</property></emphasis> attribute
+ you could manage <emphasis role="bold"><property><rich:hotKey></property></emphasis> registration timing.
+ There are three possible values of this attribute:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ "immediate" - the component is rendered in browser immediately
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ "onload" - the component is rendered after the page is fully loaded
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ "onregistercall" - the component is rendered only after JavaScript API for the key registration is used.
+ </para>
+ </listitem>
+ </itemizedlist>
</section>
<section>
<title>JavaScript API</title>
16 years, 6 months
JBoss Rich Faces SVN: r9289 - in trunk/ui/fileUpload/src/main: resources/org/richfaces/renderkit/html/js and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-06-28 09:10:56 -0400 (Sat, 28 Jun 2008)
New Revision: 9289
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
Log:
fix problems with http session in Flesh
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-06-28 12:57:36 UTC (rev 9288)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-06-28 13:10:56 UTC (rev 9289)
@@ -19,6 +19,7 @@
import javax.faces.context.ResponseWriter;
import javax.faces.render.RenderKit;
import javax.faces.render.RenderKitFactory;
+import javax.servlet.http.HttpSession;
import org.ajax4jsf.Filter;
import org.ajax4jsf.context.AjaxContext;
@@ -111,8 +112,13 @@
.get(Filter.REQUESTS_SESSIONS_BEAN_NAME);
MultipartRequest multipartRequest = map.get(uid);
-
+
clientId = clientId + ":file";
+
+ if (multipartRequest.getFileName(clientId) == null) {
+ clientId = "Filedata"; // Flesh mode
+ }
+
String fileName = multipartRequest.getFileName(clientId);
Object file = multipartRequest.getFile(clientId);
fileUpload.setLocalFileName(fileName);
@@ -660,6 +666,15 @@
}
return ((parameters.size() > 0) ? ScriptUtils.toScript(parameters) : JSReference.NULL);
}
+
+ public String getSessionId(FacesContext context, UIComponent component) {
+ String id = null;
+ HttpSession session = (HttpSession)context.getExternalContext().getSession(false);
+ if (session != null) {
+ id = session.getId();
+ }
+ return id;
+ }
/*
* (non-Javadoc)
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-06-28 12:57:36 UTC (rev 9288)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-28 13:10:56 UTC (rev 9289)
@@ -411,7 +411,7 @@
uploadedCount: 0,
- initialize: function(id, formId, actionUrl, stopScript, getFileSizeScript, progressBarId, classes, label, maxFiles, events, disabled, acceptedTypes, options, labels, parameters) {
+ initialize: function(id, formId, actionUrl, stopScript, getFileSizeScript, progressBarId, classes, label, maxFiles, events, disabled, acceptedTypes, options, labels, parameters, sessionId) {
this.id = id;
this.element = $(this.id);
if (formId != '') {
@@ -439,6 +439,7 @@
this.classes = classes;
this.events = events;
this.parameters = parameters;
+ this.sessionId = sessionId;
this.maxFileBatchSize = maxFiles;
this.currentInput = $(this.id + ":file");
@@ -1148,14 +1149,23 @@
this.element.fire("rich:"+eventName, object);
}
},
-
+
+ _getFleshActionUrl: function (url) {
+ if (/\?/.test(url)) {
+ var i = url.indexOf("?");
+ url = url.substring(0, i) + ";jsessionid=" + this.sessionId + url.substring(i);
+ } else {
+ url = url + ";jsessionid=" + this.sessionId;
+ }
+ return url;
+ },
+
_flashSubmitForm: function(entry) {
entry.uid = encodeURIComponent(Math.random().toString());
-
- var action = this.actionUrl + (/\?/.test(this.actionUrl) ? '&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' + encodeURI(entry.uid) + "&id=" + this.id + "&_richfaces_upload_file_indicator=true&_richfaces_send_http_error=true";
-
- var size = this.flashComponent.uploadFile(this.uploadIndex, action);
+ var action = this._getFleshActionUrl(this.actionUrl);
+ var action = action + (/\?/.test(action) ? '&_richfaces_upload_uid=' : '?_richfaces_upload_uid=') + encodeURI(entry.uid) + "&id=" + this.id + "&_richfaces_upload_file_indicator=true&_richfaces_send_http_error=true";
+ var size = this.flashComponent.uploadFile(this.uploadIndex, action,"javax.faces.ViewState=" +this.form['javax.faces.ViewState'].value+"&"+this.form.id+"="+this.form.id);
if (this.labelMarkup) {
this.progressData = new ProgressData(size);
}
Modified: trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
===================================================================
--- trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-06-28 12:57:36 UTC (rev 9288)
+++ trunk/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-06-28 13:10:56 UTC (rev 9289)
@@ -188,7 +188,7 @@
onadd : #{this:getAsEventHandler(context, component, "onadd")}
};
- new FileUpload('#{clientId}','#{formId}','#{actionUrl}',#{this:getStopScript(context, component)}, #{this:getFileSizeScript(context, component)} ,'#{this:getProgressBarId(context, component)}', FileUpload.CLASSES, #{this:getLabelMarkup(context, component)}, #{maxCount}, events, #{component.attributes["disabled"]}, #{this:getAcceptedTypes(context, component)}, {'autoclear':#{component.attributes["autoclear"]},'autoUpload':#{component.attributes["immediateUpload"]},'noDuplicate':#{component.attributes["noDuplicate"]}, 'allowFlash':'#{allowFlash}', 'flashComponentUrl':'#{flashComponent}'},#{this:_getLabels(labels)},#{this:getChildrenParams(context, component)});
+ new FileUpload('#{clientId}','#{formId}','#{actionUrl}',#{this:getStopScript(context, component)}, #{this:getFileSizeScript(context, component)} ,'#{this:getProgressBarId(context, component)}', FileUpload.CLASSES, #{this:getLabelMarkup(context, component)}, #{maxCount}, events, #{component.attributes["disabled"]}, #{this:getAcceptedTypes(context, component)}, {'autoclear':#{component.attributes["autoclear"]},'autoUpload':#{component.attributes["immediateUpload"]},'noDuplicate':#{component.attributes["noDuplicate"]}, 'allowFlash':'#{allowFlash}', 'flashComponentUrl':'#{flashComponent}'},#{this:_getLabels(labels)},#{this:getChildrenParams(context, component)},'#{this:getSessionId(context, component)}');
</script>
</span>
<f:call name="utils.encodeEndFormIfNessesary" />
16 years, 6 months
JBoss Rich Faces SVN: r9288 - in trunk/ui/scrollableDataTable/src/main: javascript/ClientUI/controls/grid and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-06-28 08:57:36 -0400 (Sat, 28 Jun 2008)
New Revision: 9288
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-2995
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-06-28 11:40:01 UTC (rev 9287)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-06-28 12:57:36 UTC (rev 9288)
@@ -616,9 +616,7 @@
protected void doDecode(FacesContext context, UIComponent component) {
super.doDecode(context, component);
-
- composite.decode(context, component);
-
+
component.getAttributes().remove(PARTIAL_UPDATE);
component.getAttributes().remove(UPDATE_HEADER);
@@ -642,7 +640,10 @@
grid.setFirst(Integer.parseInt(options.split(",")[1]));
}
}
+ int value = grid.getFirst() % grid.getRows();
+ component.getAttributes().put(ScrollableDataTableUtils.CLIENT_ROW_KEY, value);
+ composite.decode(context, component);
if(parameters.containsKey(clientId + ":sortColumn") &&
parameters.containsKey(clientId + ":sortStartRow") &&
@@ -766,7 +767,6 @@
writer.endElement("tbody");
writer.endElement("table");
-
String id = client_id+"_rows_input";
writer.startElement(HTML.INPUT_ELEM, grid);
writer.writeAttribute(HTML.TYPE_ATTR, "hidden", null);
@@ -791,8 +791,6 @@
if (shouldUpdateHeader(component)) {
ColumnWalker.iterateOverColumns(context, component, headerRenderer, writer, new ScrollableDataTableRendererState(context, null, grid));
}
-
-
}
private ScrollableDataTableScrollData createOptions(UIScrollableDataTable grid){
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-06-28 11:40:01 UTC (rev 9287)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-06-28 12:57:36 UTC (rev 9288)
@@ -333,7 +333,7 @@
var startRowIndx = 0;
var countToLoad = 0;
- this.scrollInput.value = task.pos + "," + range.start + "," + range.end;
+ this.scrollInput.value = task.pos + "," + this.currRange.start + "," + this.currRange.end;
// if we have intersepted ranges than rearrange rows
// in other case just move rows table to first position
@@ -390,6 +390,7 @@
ClientUILib.log(ClientUILogger.WARNING, "Start loading: index: " + startIndex + ", and startRow: " + startRowIndx + ", and count: " + countToLoad);
this.currRange = range;
this.currentPos = task.pos;
+ this.scrollInput.value = task.pos + "," + this.currRange.start + "," + this.currRange.end;
if (this.grid.options.hideWhenScrolling) {
16 years, 6 months
JBoss Rich Faces SVN: r9287 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-06-28 07:40:01 -0400 (Sat, 28 Jun 2008)
New Revision: 9287
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-3739
http://jira.jboss.com/jira/browse/RF-3825
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-06-28 09:26:51 UTC (rev 9286)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-06-28 11:40:01 UTC (rev 9287)
@@ -187,7 +187,9 @@
ModalPanel.panels = ModalPanel.panels.without(this);
- this.traverseSelects(true);
+ this.enableSelects();
+
+ ModalPanel.activePanels = ModalPanel.activePanels.without(this);
this.parent = null;
this.firstOutside = null;
@@ -238,55 +240,124 @@
//iframeBodyStyle.opacity = "0.5";
//iframeBodyStyle.zIndex = "99";
},
+
+ enableSelect: function(elt) {
+ if (elt._mdwProcessed) {
+ elt._mdwProcessed = undefined;
- traverseSelects: function(enable) {
+ if (elt._mdwDisabled) {
+ elt.disabled = false;
+ elt._mdwDisabled = undefined;
+ }
+
+ if (typeof elt._mdwHidden != "undefined") {
+ elt.style.visibility = elt._mdwHidden;
+ elt._mdwHidden = undefined;
+ }
+ }
+ },
+
+ disableSelect: function(elt) {
+ if (!elt._mdwProcessed) {
+ elt._mdwProcessed = true;
+
+ if ("hide" == this.selectBehavior) {
+ if (elt.style.visibility != "hidden") {
+ elt._mdwHidden = elt.style.visibility;
+ elt.style.visibility = "hidden";
+ }
+ } else {
+ if (!elt.disabled) {
+ elt.disabled = true;
+ elt._mdwDisabled = true;
+ }
+ }
+ }
+ },
+
+ enableInnerSelects: function() {
+ if (ModalPanel.disableSelects) {
+ var selects = this.id.getElementsByTagName("SELECT");
+ for (var k = 0; k < selects.length; k++) {
+ this.enableSelect(selects[k]);
+ }
+ }
+ },
+
+ disableInnerSelects: function() {
+ if (ModalPanel.disableSelects) {
+ var selects = this.id.getElementsByTagName("SELECT");
+ for (var k = 0; k < selects.length; k++) {
+ this.disableSelect(selects[k]);
+ }
+ }
+ },
+
+ enableSelects: function() {
if (!ModalPanel.disableSelects) {
return ;
}
- var children = document.body.childNodes;
- for (var k = 0; k < children.length; k++) {
- var child = children[k];
- if (child != this.id && child.getElementsByTagName) {
-
+ var lastPanel = ModalPanel.activePanels[ModalPanel.activePanels.length - 1];
+ var newLastPanel = ModalPanel.activePanels[ModalPanel.activePanels.length - 2];
+
+ if (newLastPanel) {
+ if (lastPanel == this) {
+ //we've just closed top panel, re-enable next panel if any
+ newLastPanel.enableInnerSelects();
+ }
+ } else {
+ var children = document.body.childNodes;
+ for (var k = 0; k < children.length; k++) {
+ var child = children[k];
+
+ if (!child.getElementsByTagName) {
+ continue;
+ }
+
var selects = child.getElementsByTagName("SELECT");
for (var i = 0; i < selects.length; i++) {
- var elt = selects[i];
-
- if (enable) {
- if (0 == ModalPanel.activePanels.length) {
- if (elt._mdwDisabledSet) {
- elt.disabled = elt._mdwDisabled;
- elt._mdwDisabledSet = undefined;
- }
- if (elt._mdwHiddenSet) {
- Element.setStyle(elt, { "visibility" : elt._mdwHidden });
- elt._mdwHiddenSet = undefined;
- }
- }
- } else {
- if (ModalPanel.activePanels.length > 0) {
- if ("hide" == this.selectBehavior) {
- if (!elt._mdwHiddenSet) {
- elt._mdwHidden = elt.style.visibility;
- elt._mdwHiddenSet = true;
- }
- Element.setStyle(elt, { "visibility" : "hidden" });
- } else {
- if (!elt._mdwDisabledSet) {
- elt._mdwDisabled = elt.disabled;
- elt._mdwDisabledSet = true;
- }
- elt.disabled = true;
- }
- }
- }
+ this.enableSelect(selects[i]);
}
}
}
},
+ disableOuterSelects: function() {
+ if (!ModalPanel.disableSelects) {
+ return ;
+ }
+
+ var lastPanel = ModalPanel.activePanels.last();
+
+ if (lastPanel) {
+ //we need to disable only the last opened panel
+ lastPanel.disableInnerSelects();
+ this.enableInnerSelects();
+ } else {
+ //disable all outer
+ var children = document.body.childNodes;
+ for (var k = 0; k < children.length; k++) {
+ var child = children[k];
+
+ if (child == this.id) {
+ continue;
+ }
+
+ if (!child.getElementsByTagName) {
+ continue;
+ }
+
+ var selects = child.getElementsByTagName("SELECT");
+
+ for (var i = 0; i < selects.length; i++) {
+ this.disableSelect(selects[i]);
+ }
+ }
+ }
+ },
+
setLeft: function(pos) {
var eCdiv = $(this.cdiv);
if (eCdiv.mpUseExpr) {
@@ -391,8 +462,9 @@
},
show: function(event, opts) {
- var element = this.id;
- if(this.invokeEvent("beforeshow",event,null,element)) {
+ if(!this.shown && this.invokeEvent("beforeshow",event,null,element)) {
+ var element = this.id;
+
this.preventFocus();
if (!this.floatedToBody) {
@@ -471,9 +543,9 @@
// eIframe.allowTransparency = true;
//}
+ this.disableOuterSelects();
ModalPanel.activePanels = ModalPanel.activePanels.without(this);
ModalPanel.activePanels.push(this);
- this.traverseSelects();
//this.shape.init(eCdiv, this.options);
@@ -600,13 +672,13 @@
},
hide: function(event, opts) {
- if (this.invokeEvent("beforehide",event,null,element)) {
+ if (this.shown && this.invokeEvent("beforehide",event,null,element)) {
this.restoreFocus();
+ this.enableSelects();
+
ModalPanel.activePanels = ModalPanel.activePanels.without(this);
- this.traverseSelects(true);
-
var eDiv = $(this.div);
var eCdiv = $(this.cdiv);
16 years, 6 months
JBoss Rich Faces SVN: r9286 - in trunk/ui/fileUpload/src/main: resources/org/richfaces/renderkit/html/js and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-06-28 05:26:51 -0400 (Sat, 28 Jun 2008)
New Revision: 9286
Modified:
trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/fileUploadComponent.swf
Log:
http://jira.jboss.com/jira/browse/RF-3822
Modified: trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as
===================================================================
--- trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as 2008-06-28 08:56:22 UTC (rev 9285)
+++ trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as 2008-06-28 09:26:51 UTC (rev 9286)
@@ -39,7 +39,6 @@
public function setProperties(properties:Object)
{
-
this.acceptedTypes = properties.acceptedTypes;
this.noDuplicate = properties.noDuplicate;
this.maxFiles = properties.maxFiles;
@@ -60,11 +59,12 @@
this.fileDataList.splice(index, 1);
}
- public function uploadFile(index, actionURL)
+ public function uploadFile(index, actionURL, postData)
{
var item: FileReference = fileRefList[index];
if (item)
{
+ if (postData) item["postData"] = postData;
item.upload(actionURL);
return item.size;
}
@@ -87,7 +87,6 @@
for (var i:Number = 0; i < list.length; i++) {
if (this.fileRefList.length==this.maxFiles) break;
item = list[i];
-
if (!this.checkFileType(item.type) || !this.checkDuplicated(item.name)) {
ExternalInterface.call(this.getComponentString()+"._flashFireEvent('ontyperejected', {})");
continue;
@@ -96,7 +95,6 @@
this.fileRefList.push(item);
this.fileDataList.push("{creationDate: "+this.getJSDateString(item.creationDate)+", creator: '"+item.creator+"', modificationDate: "+this.getJSDateString(item.modificationDate)+", name: '"+item.name+"', size: "+item.size+", type: '"+item.type+"'}");
}
-
ExternalInterface.call(this.getComponentString()+"._flashAdd(["+this.fileDataList.join(",")+"])");
}
@@ -143,10 +141,10 @@
return false;
}
- private function checkDuplicated (fileName) {
+ private function checkDuplicated (fileName:String) {
if (!this.noDuplicate) return true;
- for (var i = 0; i < this.fileDataList.length; i++) {
- if (fileName == this.fileDataList[i].name) {
+ for (var i = 0; i < this.fileRefList.length; i++) {
+ if (fileName == this.fileRefList[i].name) {
return false;
}
}
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-06-28 08:56:22 UTC (rev 9285)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-28 09:26:51 UTC (rev 9286)
@@ -1065,7 +1065,7 @@
var flashvars = {fileUploadId:this.id};
var params = {allowscriptaccess:true};
var attributes = {};
- swfobject.embedSWF(this.options.flashComponentUrl, oid, "0", "0", "8.0.0", false, flashvars, params, attributes);
+ swfobject.embedSWF(this.options.flashComponentUrl, oid, "0", "0", "9.0.28", false, flashvars, params, attributes);
this.currentInput.parentNode.innerHTML = '<input type="text" style="cursor: pointer; right: 0px; top: 0px; font-size: 10em; position: absolute; padding: 0px" class="rich-fileupload-hidden" id="'+this.id+':file" name="'+this.id+':file"></input>'
this.currentInput = $(this.id + ":file");
Modified: trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/fileUploadComponent.swf
===================================================================
(Binary files differ)
16 years, 6 months
JBoss Rich Faces SVN: r9285 - in trunk/docs: userguide/en/src/main/docbook/modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-06-28 04:56:22 -0400 (Sat, 28 Jun 2008)
New Revision: 9285
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
RF-672 - corrected names tags, components and attributes for faq and some section (userguide)
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-06-28 08:55:23 UTC (rev 9284)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-06-28 08:56:22 UTC (rev 9285)
@@ -29,8 +29,8 @@
<itemizedlist>
<listitem>
JBoss RichFaces Downloads area which can be found <ulink url="http://labs.jboss.com/jbossrichfaces/downloads/">here</ulink>.
- Source distribution you can see in the <property>richfaces-ui-3.2.1-src.zip</property>.
- Binary stored in <property>richfaces-ui-3.2.1-bin.zip</property>
+ Source distribution you can see in the <code>richfaces-ui-3.2.1-src.zip</code>.
+ Binary stored in <code>richfaces-ui-3.2.1-bin.zip</code>
</listitem>
<listitem>
If you use Maven, Maven knows the place where all distributions are stored.
@@ -61,10 +61,10 @@
<listitem>
<para>Open
- <property><Maven-Root>/conf/settings.xml</property>
+ <Maven-Root>/conf/settings.xml
file to edit</para>
- <para>Add into the <property><profile></property>
+ <para>Add into the <code><profile></code>
section:</para>
<programlisting role="XML"><![CDATA[
<id>RichFaces</id>
@@ -129,7 +129,7 @@
</pluginRepositories>
]]></programlisting>
<para> Add into the
- <property><activeProfiles></property> section:</para>
+ <code><activeProfiles></code> section:</para>
<programlisting role="XML"><![CDATA[<activeProfile>RichFaces</activeProfile>]]></programlisting>
</listitem>
@@ -202,7 +202,7 @@
<title>Why RichFaces library contains <rich:dataTable> component,
though there is the standard <h:dataTable>?</title>
<para>The article about <emphasis role="bold"
- ><rich:dataTable></emphasis> flexibility can be found <ulink
+ ><property><rich:dataTable></property></emphasis> flexibility can be found <ulink
url="http://labs.jboss.com/wiki/RichFacesArticleDataTable"
>here</ulink>.</para>
<para>Source code (SVN) could be found <ulink
@@ -217,8 +217,8 @@
<?dbhtml filename="Organizewizards.html"?>
<title>How to organize wizards using the <rich:modalPanel> component?</title>
<para>It's necessary to put <emphasis role="bold"
- ><a4j:include></emphasis> inside the <emphasis
- role="bold"><rich:modalPanel></emphasis> and perform
+ ><property><a4j:include></property></emphasis> inside the <emphasis
+ role="bold"><property><rich:modalPanel></property></emphasis> and perform
navigation inside it, as it's shown in the example below:</para>
<para>
@@ -266,7 +266,7 @@
]]></programlisting>
<para>The discussion about <emphasis role="bold"
- ><a4j:include></emphasis> and navigation rules can be found on
+ ><property><a4j:include></property></emphasis> and navigation rules can be found on
the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062036#..."
>Ajax Users Forum</ulink>.</para>
@@ -276,7 +276,7 @@
<?dbhtml filename="Howtopreventmodalpanelfromclosure.html"?>
<title>How to prevent modalPanel from closing when the validation inside fails?</title>
<para>Examples of validation in <emphasis role="bold"
- ><rich:modalPanel></emphasis> could be found in the
+ ><property><rich:modalPanel></property></emphasis> could be found in the
<ulink url="http://labs.jboss.com/wiki/ModalPanelValidation">Wiki
article</ulink> and on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061517"
@@ -306,7 +306,7 @@
<?dbhtml filename="Isitpossibletocreatedynamicmenu.html"?>
<title>Is it possible to create dynamic menu using <rich:dropDownMenu>
component?</title>
- <para><emphasis role="bold"><rich:dropDownMenu></emphasis> is a
+ <para><emphasis role="bold"><property><rich:dropDownMenu></property></emphasis> is a
standard JSF component. Thus, creation of the menu dynamically from the Java
Script code is the same as for any other jsf component.</para>
<para>For more information follow the <ulink
@@ -316,7 +316,7 @@
<section>
<?dbhtml filename="Isitpossibletocustomizelookofdatascroller.html"?>
- <title>Is it possible to customize the look of dataScroller (the forward/back
+ <title>Is it possible to customize the look of datascroller (the forward/back
buttons) and replace them with an images?</title>
<para>The answer is yes. </para>
<para>Component provides two controllers groups for switching:</para>
@@ -345,10 +345,10 @@
...
]]></programlisting>
<para> There are also facets used to create the disabled states:
- "first_disabled", "last_disabled",
- "next_disabled", "previous_disabled",
- "fastforward_disabled",
- "fastrewind_disabled". </para>
+ <emphasis><property>"first_disabled"</property></emphasis>, <emphasis><property>"last_disabled"</property></emphasis>,
+ <emphasis><property>"next_disabled"</property></emphasis>, <emphasis><property>"previous_disabled"</property></emphasis>,
+ <emphasis><property>"fastforward_disabled"</property></emphasis>,
+ <emphasis><property>"fastrewind_disabled"</property></emphasis>. </para>
</section>
<section>
@@ -374,7 +374,7 @@
...
]]></programlisting>
<para>Also online demo <emphasis role="bold"
- ><rich:dropDownMenu></emphasis> component is available <ulink
+ ><property><rich:dropDownMenu></property></emphasis> component is available <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf"
>here</ulink>.</para>
</section>
@@ -382,10 +382,10 @@
<section>
<?dbhtml filename="CanthedropDownMenubeincludedintreenodes.html"?>
<title>Can I use dropDownMenu as context menu?</title>
- <para>The <emphasis role="bold"><rich:dropDownMenu></emphasis> is
+ <para>The <emphasis role="bold"><property><rich:dropDownMenu></property></emphasis> is
designed keeping in mind that it should not be used for a contextMenu
purpose. We have a <emphasis role="bold"
- ><rich:contextMenu></emphasis> component in the TODO list.
+ ><property><rich:contextMenu></property></emphasis> component in the TODO list.
However, it is not schedule for the nearest versions.</para>
</section>
@@ -513,7 +513,7 @@
<section>
<?dbhtml filename="Howtoretrievethecurrentvalue.html"?>
<title>How to retrieve the current value from the inputNumberSlider?</title>
- <para>To catch the value of the inputNumberSlider from the JavaScrip, use the
+ <para>To catch the value of the inputNumberSlider from the JavaScript, use the
following approach:</para>
<para>
@@ -590,8 +590,8 @@
<para>The answer could be found on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060199#..."
>RichFaces Users Forum</ulink>.</para>
- <para>How to use <emphasis role="bold"><rich:dataTable></emphasis> and
- <emphasis role="bold"><rich:dataScroller></emphasis>
+ <para>How to use <emphasis role="bold"><property><rich:dataTable></property></emphasis> and
+ <emphasis role="bold"><property><rich:dataScroller></property></emphasis>
in a context of Extended Data Model see <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115636"
>here</ulink>.</para>
@@ -664,7 +664,7 @@
<para> Thus, this command allows loading an integrated version of the library that
includes all existing scriptaculous files except unittest.js. </para>
<para> If you don't want to load the whole library, but only the particular
- file, for example, effect.js, use the following line: </para>
+ file, for example, <code>effect.js</code>, use the following line: </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -697,7 +697,7 @@
<section>
<?dbhtml filename="Howtosaveeffectstatus.html"?>
<title>How to save <rich:effect> status?</title>
- <para><emphasis role="bold"><rich:effect></emphasis> component has
+ <para><emphasis role="bold"><property><rich:effect></property></emphasis> component has
several callback methods such as beforeStart, afterFinish. You can use them
to save the status.</para>
<para> See also <ulink
@@ -791,7 +791,7 @@
<section id="Howtoapplybuttonlable">
<?dbhtml filename="Howtoapplybuttonlable .html"?>
- <title>How to apply button lable for <rich: calendar>?</title>
+ <title>How to apply button label for <rich: calendar>?</title>
<para> Necessary information could be found on the <ulink
url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120993#..."
>RichFaces User Forum</ulink>.</para>
@@ -815,7 +815,7 @@
<title>How to check sending request conditions? Custom JavaScript before request
"OnSubmit" attribute.</title>
<para> To check on the client some terms of request sending, the <emphasis>
- <property>"onSubmit</property>
+ <property>"onSubmit"</property>
</emphasis>" attribute is added to all components, which may cause
the request. </para>
<para>
@@ -825,7 +825,7 @@
<a4j:support event="onfocus" onsubmit="doSomething();" reRender="panelToReRender"/>
</h:inputText>]]></programlisting>
<para> So in this case
- "<emphasis><property>doSomething()</property>"</emphasis>
+ "<code>doSomething()"</code>
function is executed before the Ajax request. </para>
<para> Besides, if this function returns "false", Ajax request
isn't fired. </para>
@@ -833,17 +833,13 @@
<title>Note:</title>
<para>Behavior of our <emphasis>
<property>"onsubmit"</property>
- </emphasis>slightly differs from the standard one. Do not return <emphasis>
- <property>"true"</property>
- </emphasis> if you want to fire the request - because <code><xxx><a4j:support
+ </emphasis>slightly differs from the standard one. Do not return "true" if you want to fire the request - because <code><xxx><a4j:support
event="onclick"
onsubmit="return
true;"></code> is transformed into <code><xxx onclick="return
true; A4J.Submit(.... );" ></code> and the request
isn't fired also in this case (but the standard event
- processing fired). You must only return <emphasis>
- <property>"false"</property>
- </emphasis> if your conditions weren't completed or perform
+ processing fired). You must only return "false" if your conditions weren't completed or perform
some actions (if needed) without any returns in case you need to
fire it. </para>
</note>
@@ -881,7 +877,7 @@
copy that fires the request is placed into. One may use it to get
the element instead of this. and <code>data</code> is a
variable that contains deserialized value from the
- <property>"data"</property> attribute. </para>
+ <emphasis><property>"data"</property></emphasis> attribute. </para>
</tip>
</section>
<section id="InvokeOnComponentUsingWithJSF1.2">
@@ -900,7 +896,7 @@
use-cases implemented in RichFaces, as there is a choice for
updatable components in application logic, where it's
necessary to navigate in a components tree by the native id, with
- <property>findComponent()</property> methods. </listitem>
+ <code>findComponent()</code> methods. </listitem>
</itemizedlist>
<para> Thus, for example, only entire dataTable can be updated in response (but all
Ajax core action components inside table work properly). </para>
@@ -912,7 +908,7 @@
</section>-->
<section id="keepAliveComponentGeneratesException">
<?dbhtml filename="keepAliveComponentGeneratesException.html"?>
- <title>How to avoid generating exception for "keepAlive"
+ <title>How to avoid generating exception for <a4j:keepAlive>
component?</title>
<para>To avoid exception, don't forget that the component stores beans in
serialized view, but your bean should implement <code>java.io.Serializable</code>.</para>
@@ -948,7 +944,7 @@
<section id="HowToStopPoll">
<?dbhtml filename="HowToStopPoll.html"?>
- <title>How to stop "a4j:poll"?</title>
+ <title>How to stop <a4j:poll>?</title>
<para>More information about this problem could be found on the <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=104951"
>Ajax4Jsf Users Forum. </ulink>
@@ -1000,7 +996,7 @@
<?dbhtml filename="PageRequiredOrNot.html"?>
<title>Is <a4j:page> component required or not?</title>
<para>
- <emphasis role="bold"><4j:page></emphasis> is a component used
+ <emphasis role="bold"><property><4j:page></property></emphasis> is a component used
for solving of incompatibility problems in early Ajax4jsf and MyFaces
versions. The component encodes the full html page structure. </para>
<para>More information about this problem could be found on the <ulink
@@ -1023,8 +1019,8 @@
<para>
<emphasis role="bold"><a4j:region></emphasis> can't
work inside iteration components like <emphasis role="bold"
- ><h:dataTable></emphasis> and <emphasis role="bold"
- ><a4j:repeat></emphasis>. </para>
+ ><property><h:dataTable></property></emphasis> and <emphasis role="bold"
+ ><property><a4j:repeat></property></emphasis>. </para>
<para>The details could be found <ulink
url="http://jboss.com/index.html?module=bb&op=viewtopic&t=109080"
>here. </ulink>
@@ -1079,7 +1075,7 @@
<listitem>
<para>With the rendered attribute wrap the component that is to be
hidden or rendered on Ajax in a wrapper component (e.g.
- a4j:outputPanel)</para>
+ <emphasis role="bold"><property><a4j:outputPanel></property></emphasis>)</para>
</listitem>
<listitem>
@@ -1563,7 +1559,7 @@
<para>
In order to save the state (exapnd/collapse) of the <emphasis role="bold"><property><rich:simpleTogglePanel></property></emphasis> component
you could use <emphasis><property>"opened"</property></emphasis> attribute responsible for keeping a panel state
- and <emphasis role="bold"><property><a4j:support></property></emphasis> binded to <property>onexpand</property> and <property>oncollapse</property> events.
+ and <emphasis role="bold"><property><a4j:support></property></emphasis> binded to <emphasis><property>"onexpand"</property></emphasis> and <emphasis><property>"oncollapse"</property></emphasis> events.
</para>
<para>
In the following example when you click on the toggle icon <emphasis role="bold"><property><rich:simpleTogglePanel></property></emphasis> appears and current state displays on
@@ -1635,8 +1631,8 @@
<title>How to save the state of <rich:panelMenuGroup>?</title>
<para>
With the help of the <emphasis><property>"expanded"</property></emphasis> attribute
- and <emphasis role="bold"><property><a4j:support></property></emphasis> binded to <property>onexpand</property> and <property>oncollapse</property> events
- you could keep the state (exapnd/collapse) of the <emphasis role="bold"><property><rich:panelMenuGroup></property></emphasis> component.
+ and <emphasis role="bold"><property><a4j:support></property></emphasis> binded to <emphasis><property>"onexpand"</property></emphasis> and <emphasis><property>"oncollapse"</property></emphasis> events
+ you could keep the state ("expand"/"collapse") of the <emphasis role="bold"><property><rich:panelMenuGroup></property></emphasis> component.
</para>
<para>
In the following example when you click on the toggle icon the <emphasis role="bold"><property><rich:panelMenuGroup></property></emphasis>
@@ -2175,7 +2171,7 @@
<section id="Trinidad">
<?dbhtml filename="Trinidad.html"?>
<title>RichFaces with Trinidad?</title>
- <para>Here is a stripped down version of<property> web.xml</property> that integrates RichFaces and Trinidad.</para>
+ <para>Here is a stripped down version of web.xml that integrates RichFaces and Trinidad.</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -2326,7 +2322,7 @@
The <emphasis role="bold"><property><rich:fileUpload></property></emphasis> component could work together with Seam framework.
</para>
<para>
- Initialization parameters should be defined for Seam Filter in <property>web.xml</property>.
+ Initialization parameters should be defined for Seam Filter in web.xml.
They will be automatically set up for Ajax4Jsf Filer by Seam framework on start up.
</para>
<para>
@@ -2369,8 +2365,8 @@
</listitem>
<listitem>
<para>
- All selected objects are stored under <property>suggestion.SelectedItems</property> array.
- Each array element contains of <property>text</property> and <property>object</property> properties.
+ All selected objects are stored under <code>suggestion.SelectedItems</code> array.
+ Each array element contains of <code>text</code> and <code>object</code> properties.
So, you could iterate this array, get <property>not null objects</property> and then get the property you need.
</para>
</listitem>
@@ -2381,11 +2377,11 @@
<title>How to handle ViewExpiredException?</title>
<para>
As <property>RichFaces 3.1</property> is targeted at JSF 1.1,
- you won't get <property>ViewExpiredExceptions</property> generated when using it with JSF 1.2.
+ you won't get <code>ViewExpiredExceptions</code> generated when using it with JSF 1.2.
This exception appears after session timeout.
</para>
<para>
- Fortunately there is an easy workaround. Add to your <property>web.xml</property>:
+ Fortunately there is an easy workaround. Add to your web.xml:
</para>
<programlisting role="XML"><![CDATA[...
<context-param>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2008-06-28 08:55:23 UTC (rev 9284)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2008-06-28 08:56:22 UTC (rev 9285)
@@ -29,23 +29,13 @@
<listitem><para> Unzip <emphasis>
<property>"richfaces-ui-3.2.1.GA-bin.zip"</property>
</emphasis> file to the chosen folder. </para></listitem>
- <listitem><para> Copy <emphasis>
- <property>"richfaces-api-3.2.1.jar"</property>
- </emphasis>, <emphasis>
- <property>"richfaces-impl-3.2.1.jar"</property>
- </emphasis>,<emphasis>
- <property>"richfaces-ui-3.2.1.jar"</property>
- </emphasis>files into the <emphasis>
- <property>"WEB-INF/lib"</property>
- </emphasis> folder of your application. </para></listitem>
+ <listitem><para> Copy <code>"richfaces-api-3.2.1.jar"</code>, <code>"richfaces-impl-3.2.1.jar"</code>,<code>"richfaces-ui-3.2.1.jar"</code>files into the "WEB-INF/lib" folder of your application. </para></listitem>
<!--note>
<title>Note:</title>
<para>Starting from Ajax4jsf 1.1.1, the oscache library is not required to be in the
classpath anymore. </para>
</note-->
- <listitem><para> Add the following content into the <emphasis>
- <property>"WEB-INF/web.xml"</property>
- </emphasis> file of your application: </para><programlisting role="XML"><![CDATA[...
+ <listitem><para> Add the following content into the "WEB-INF/web.xml" file of your application: </para><programlisting role="XML"><![CDATA[...
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
@@ -82,8 +72,8 @@
</itemizedlist>
<note>
<title>Note:</title>
- <para>The previous namespaces URIs (https://ajax4jsf.dev.java.net/ajax and
- http://richfaces.ajax4jsf.org/rich) are also available for backward compatibility.</para>
+ <para>The previous namespaces URLs (<ulink url="https://ajax4jsf.dev.java.net/ajax">https://ajax4jsf.dev.java.net/ajax</ulink> and
+ <ulink url="http://richfaces.ajax4jsf.org/rich">http://richfaces.ajax4jsf.org/rich</ulink>) are also available for backward compatibility.</para>
</note>
</section>
<section id="SimpleAJAXEchoProject">
@@ -144,7 +134,7 @@
</emphasis> with corresponding attributes (as it was shown in the previous example) adds an
Ajax support to the parent <emphasis role="bold">
<property><h:inputText></property>
- </emphasis> tag. This support is bound to "onkeyup" JavaScript event, so
+ </emphasis> tag. This support is bound to <emphasis><property>"onkeyup"</property></emphasis> JavaScript event, so
that each time when this event is fired on the parent tag, our application sends an Ajax
request to the server. It means that the text field pointed to our managed bean property
contains up-to-date value of our input. </para>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2008-06-28 08:55:23 UTC (rev 9284)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2008-06-28 08:56:22 UTC (rev 9285)
@@ -343,8 +343,8 @@
...
]]></programlisting>
<para>
- This is because, EAServer calls servlet init() before the
- ServletContextInitializer. Not an EAServer bug, this is in
+ This is because, EAServer calls servlet <code>init()</code> before the
+ <code>ServletContextInitializer</code>. Not an EAServer bug, this is in
Servlet 2.3 spec.
</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-06-28 08:55:23 UTC (rev 9284)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-06-28 08:56:22 UTC (rev 9285)
@@ -145,7 +145,7 @@
<para>
AjaxContainer is an interface that describes an area on
your JSF page that should be decoded during an Ajax
- request. AjaxViewRoot and AjaxRegion are implementations
+ request. <code>AjaxViewRoot</code> and <code>AjaxRegion</code> are implementations
of this interface.
</para>
</formalpara>
@@ -582,7 +582,7 @@
<property>"ajaxSingle"</property>
</emphasis>
attribute value is
- <property>"true"</property>
+ "true"
, it orders to include only a value of the current
component (along with
<emphasis role="bold">
@@ -697,7 +697,7 @@
<emphasis>
<property>"actionListener"</property>
</emphasis>
- attribute to invoke the action method and define the
+ attributes to invoke the action method and define the
action event.
</para>
<para>
@@ -791,7 +791,7 @@
<property>"onsubmit"</property>
</emphasis>
returns
- <property>"false"</property>
+ "false"
, the Ajax request is canceled. The code of
<emphasis>
<property>"onsubmit"</property>
@@ -803,9 +803,9 @@
should not has a "return" statement if you
want the Ajax request to be sent. If you are going to
invoke a JavaScript function that returns
- <property>"true"</property>
+ "true"
or
- <property>"false"</property>
+ "false"
, use the conditional statement to return something only
when you need to cancel the request. For example:
</para>
@@ -831,7 +831,7 @@
<property><a4j:commandButton></property>
</emphasis>
. If it returns
- <property>"false"</property>
+ "false"
, the Ajax request is canceled also.
</para>
<para>
@@ -854,7 +854,7 @@
<emphasis>
<property>"onbeforedomupdate"</property>
</emphasis>
- attrubute defines JavaScript code for call after Ajax
+ attribute defines JavaScript code for call after Ajax
response receiving and before updating DOM on a client
side.
</para>
@@ -1128,8 +1128,8 @@
</emphasis>
tag allows you to add Ajax functionality to standard JSF
components and send Ajax request onto a chosen
- JavaScript event: "onkeyup",
- "onmouseover", etc.
+ JavaScript event: <emphasis><property>"onkeyup"</property></emphasis>,
+ <emphasis><property>"onmouseover"</property></emphasis>, etc.
</para>
<!--para>Most important attributes of components that provide Ajax request calling features are:</para>
<itemizedlist>
@@ -1229,7 +1229,7 @@
<?dbhtml filename="DecideWhatToChange.html"?>
<title>Decide What to Change</title>
<para>
- Using IDs in the "reRender" attribute to
+ Using IDs in the <emphasis><property>"reRender"</property></emphasis> attribute to
define "AJAX zones" for update works fine in
many cases.
</para>
@@ -1273,13 +1273,13 @@
<itemizedlist>
<listitem>
<para>
- By setting the "ajaxRendered"
+ By setting the <emphasis><property>"ajaxRendered"</property></emphasis>
attribute value to "true".
</para>
</listitem>
<listitem>
<para>
- By setting the "reRender"
+ By setting the <emphasis><property>"reRender"</property></emphasis>
attribute value of an Action Component to
the output panel ID.
</para>
@@ -1557,7 +1557,7 @@
are loaded to application.
</para>
<para>
- <code>org.richfaces.LoadScriptStrategy</code>
+ <emphasis role="bold">org.richfaces.LoadScriptStrategy</emphasis>
</para>
<para>
The following declaration in your web.xml allows loading the
@@ -1607,7 +1607,7 @@
</note>
<para>
- <code>org.richfaces.LoadStyleStrategy</code>
+ <emphasis role="bold">org.richfaces.LoadStyleStrategy</emphasis>
</para>
<para>
@@ -2053,9 +2053,7 @@
<para>
To plug one in, it's necessary to specify a skin
name in the
- <emphasis>
- <code>org.richfaces.SKIN</code>
- </emphasis>
+ <code>org.richfaces.SKIN</code>
context-param.
</para>
@@ -3614,9 +3612,9 @@
XCSS file contains CSS properties and skin parameters
mappings. Mapping of a CSS selector to a skin parameter
is performed using
- <code>< u:selector ></code>
+ <emphasis role="bold"><property>< u:selector ></property></emphasis>
and
- <code>< u:style></code>
+ <emphasis role="bold"><property>< u:style></property></emphasis>
XML tags that form the mapping structure. Please study
the example below.
</para>
@@ -3645,17 +3643,17 @@
<para>
The
- <property>name</property>
- attribute of <u:selector> tag defines the CSS
+ <emphasis><property>name</property></emphasis>
+ attribute of <emphasis role="bold"><property><u:selector></property></emphasis> tag defines the CSS
selector, while
<property>"name"</property>
attribute of the
- <code><u:style></code>
+ <emphasis role="bold"><property><u:style></property></emphasis>
tag defines what skin constant is mapped to a CSS
property. The
- <property>value</property>
+ <emphasis><property>"value"</property></emphasis>
attribute of the
- <code><u:style></code>
+ <emphasis role="bold"><property><u:style></property></emphasis>
tag can also be used to assign a value to a CSS
property.
</para>
16 years, 6 months
JBoss Rich Faces SVN: r9284 - in trunk: ui/core/src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-06-28 04:55:23 -0400 (Sat, 28 Jun 2008)
New Revision: 9284
Modified:
trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_output_attributes.ent
trunk/ui/core/src/main/config/component/include.xml
trunk/ui/core/src/main/config/component/outputPanel.xml
Log:
RF-696 - corrected description for "ajaxRendered" attribute
Modified: trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_output_attributes.ent
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_output_attributes.ent 2008-06-28 08:48:13 UTC (rev 9283)
+++ trunk/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_output_attributes.ent 2008-06-28 08:55:23 UTC (rev 9284)
@@ -5,7 +5,7 @@
<defaultvalue>true</defaultvalue>
<description>
Define, must be (or not) content of this component will be included in AJAX response created by parent AJAX Container, even if not forced by reRender list of ajax action.
- ignored if component marked to output by Ajax action.
+ Ignored if component marked to output by some Ajax action component.
</description>
</property>
<property>
Modified: trunk/ui/core/src/main/config/component/include.xml
===================================================================
--- trunk/ui/core/src/main/config/component/include.xml 2008-06-28 08:48:13 UTC (rev 9283)
+++ trunk/ui/core/src/main/config/component/include.xml 2008-06-28 08:55:23 UTC (rev 9284)
@@ -69,8 +69,8 @@
<description>Defines, whether the content of this component must be
(or not) included in AJAX response created by parent
AJAX Container, even if it is not forced by reRender
- list of ajax action. Ignored if component marked to
- output by Ajax action. Default value is "false".</description>
+ list of ajax action. Ignored if component marked to output by some Ajax action component.
+ Default value is "false".</description>
</property>
<property>
<name>keepTransient</name>
Modified: trunk/ui/core/src/main/config/component/outputPanel.xml
===================================================================
--- trunk/ui/core/src/main/config/component/outputPanel.xml 2008-06-28 08:48:13 UTC (rev 9283)
+++ trunk/ui/core/src/main/config/component/outputPanel.xml 2008-06-28 08:55:23 UTC (rev 9284)
@@ -65,8 +65,8 @@
Defines, whether the content of this component must be
(or not) included in AJAX response created by parent
AJAX Container, even if it is not forced by reRender
- list of ajax action. Ignored if component marked to
- output by Ajax action. Default value is "false".
+ list of ajax action. Ignored if component marked to output by some Ajax action component.
+ Default value is "false".
</description>
<defaultvalue>false</defaultvalue>
</property>
16 years, 6 months
JBoss Rich Faces SVN: r9282 - trunk/test-applications/jsp/src/main/webapp/FileUpload.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-28 03:20:46 -0400 (Sat, 28 Jun 2008)
New Revision: 9282
Modified:
trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
Log:
-validator, because of error
Modified: trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-06-28 07:04:33 UTC (rev 9281)
+++ trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-06-28 07:20:46 UTC (rev 9282)
@@ -11,8 +11,7 @@
<f:subview id="FileUploadSubviewID">
<rich:fileUpload id="fileUploadID" status="a4jStatusID"
onadd="#{event.onadd}"
- immediate="#{fileUpload.immediate}"
- validator="fileUploadValidator"
+ immediate="#{fileUpload.immediate}"
ajaxSingle="#{fileUpload.ajaxSingle}"
uploadData="#{fileUpload.data}"
acceptedTypes="#{fileUpload.acceptedTypes}"
16 years, 6 months
JBoss Rich Faces SVN: r9281 - in trunk/test-applications/jsp/src/main: java/rich and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-28 03:04:33 -0400 (Sat, 28 Jun 2008)
New Revision: 9281
Added:
trunk/test-applications/jsp/src/main/java/fileUpload/FileUploadValidator.java
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
Modified:
trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java
trunk/test-applications/jsp/src/main/java/util/event/Event.java
trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml
trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp
Log:
FileUpload validator.
Modified: trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java 2008-06-27 17:23:07 UTC (rev 9280)
+++ trunk/test-applications/jsp/src/main/java/fileUpload/FileUpload.java 2008-06-28 07:04:33 UTC (rev 9281)
@@ -25,8 +25,7 @@
private String listHeight;
private String listWidth;
private String align;
- private String bindLabel;
-
+ private String bindLabel;
private String addButtonClass;
private String addButtonClassDisabled;
private String cancelButtonClass;
@@ -42,13 +41,22 @@
private String uploadListClass;
private String uploadListClassDisabled;
private String changedLabel;
-
-
+ private String allowFlash;
private List data;
private Integer maxFilesQuantity;
private HtmlFileUpload myFileUpload;
private boolean noDuplicate;
+ private boolean ajaxSingle;
+ private boolean immediate;
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
public String getBindLabel() {
return bindLabel;
}
@@ -95,6 +103,9 @@
uploadListClass="test";
uploadListClassDisabled="test";
noDuplicate = false;
+ allowFlash = "false";
+ ajaxSingle = false;
+ immediate = false;
}
public void fileUploadListener(UploadEvent event) throws Exception{
@@ -343,4 +354,20 @@
public void setChangedLabel(String changedLabel) {
this.changedLabel = changedLabel;
}
+
+ public String getAllowFlash() {
+ return allowFlash;
+ }
+
+ public void setAllowFlash(String allowFlash) {
+ this.allowFlash = allowFlash;
+ }
+
+ public boolean isAjaxSingle() {
+ return ajaxSingle;
+ }
+
+ public void setAjaxSingle(boolean ajaxSingle) {
+ this.ajaxSingle = ajaxSingle;
+ }
}
Added: trunk/test-applications/jsp/src/main/java/fileUpload/FileUploadValidator.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/fileUpload/FileUploadValidator.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/fileUpload/FileUploadValidator.java 2008-06-28 07:04:33 UTC (rev 9281)
@@ -0,0 +1,39 @@
+package fileUpload;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.IOException;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.validator.Validator;
+import javax.faces.validator.ValidatorException;
+import org.richfaces.model.UploadItem;
+
+
+public class FileUploadValidator implements Validator {
+
+ public void validate(FacesContext context, UIComponent component,
+ Object value) throws ValidatorException {
+
+ UploadItem upload = (UploadItem)value;
+
+ if (upload.isTempFile()) {
+ File file = upload.getFile();
+ String name = file.getName();
+ System.out.println("fileName: " + name);
+ if (name == "ExadelMinsk.avi") {
+ throw new ValidatorException(new FacesMessage("Test validator: ExadelMinsk.avi file is restricted!"));
+ }
+ } else {
+ ByteArrayOutputStream b = new ByteArrayOutputStream();
+ try {
+ b.write(upload.getData());
+ } catch (IOException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+ }
+
+}
Added: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java (rev 0)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-28 07:04:33 UTC (rev 9281)
@@ -0,0 +1,153 @@
+package rich;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.faces.model.SelectItem;
+
+//import org.richfaces.VersionBean;
+
+public class RichBean {
+ private static final String EXT = ".jsp";
+ private String version = "3.2.2"; //VersionBean.SCM_REVISION;
+ private String src;
+ private String srcContainer;
+ private MapComponent map;
+ private List<SelectItem> list;
+
+
+ public RichBean() {
+ list = new ArrayList<SelectItem>();
+ src = "Blank";
+ srcContainer = "Blank";
+ map = new MapComponent();
+ // map.add( value, add( pages_path/name_pages, array<boolean>(Property, Straightforward) );
+ map.add("Blank", add("/pages/Blank/Blank", new boolean [] {true, true, true}));
+ map.add("Calendar", add("/Calendar/Calendar", new boolean [] {true, true, true}));
+ map.add("DataFilterSlider", add("/DataFilterSlider/DataFilterSlider", new boolean [] {true, true, false}));
+ map.add("DataScroller", add("/DataScroller/DataScroller", new boolean [] {true, true, true}));
+ map.add("DataTable", add("/DataTable/DataTable", new boolean [] {true, true, true}));
+ map.add("DragAndDrop", add("/DragAndDrop/DragAndDrop", new boolean [] {false, false, false}));
+ map.add("DropDownMenu", add("/DropDownMenu/DropDownMenu", new boolean [] {false, true, true}));
+ map.add("Effect", add("/Effect/Effect", new boolean [] {false, false, false}));
+ map.add("Gmap", add("/Gmap/Gmap", new boolean [] {false, true, false}));
+ map.add("InputNumberSlider", add("/InputNumberSlider/InputNumberSlider", new boolean [] {false, true, true}));
+ map.add("InputNumberSpinner", add("/InputNumberSpinner/InputNumberSpinner", new boolean [] {false, true, true}));
+ map.add("Insert", add("/Insert/Insert", new boolean [] {false, true, false}));
+ map.add("Message", add("/Message/M essage", new boolean [] {false, true, true}));
+ map.add("ModalPanel", add("/ModalPanel/ModalPanel", new boolean [] {false, true, true}));
+ map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {false, true, true}));
+ map.add("Panel", add("/Panel/Panel", new boolean [] {false, true, true}));
+ map.add("PanelBar", add("/PanelBar/PanelBar", new boolean [] {false, true, true}));
+ map.add("PanelMenu", add("/PanelMenu/PanelMenu", new boolean [] {false, true, true}));
+ map.add("Separator", add("/Separator/Separator", new boolean [] {false, true, true}));
+ map.add("SimpleTogglePanel", add("/SimpleTogglePanel/SimpleTogglePanel", new boolean [] {false, true, true}));
+ map.add("Spacer", add("/Spacer/Spacer", new boolean [] {false, true, true}));
+ map.add("SuggestionBox", add("/SuggestionBox/SuggestionBox", new boolean [] {false, true, true}));
+ map.add("TabPanel", add("/TabPanel/TabPanel", new boolean [] {false, true, true}));
+ map.add("TogglePanel", add("/TogglePanel/TogglePanel", new boolean [] {false, true, true}));
+ map.add("ToolBar", add("/ToolBar/ToolBar", new boolean [] {false, true, false}));
+ map.add("Tooltip", add("/Tooltip/Tooltip", new boolean [] {false, true, true}));
+ map.add("Tree", add("/Tree/Tree", new boolean [] {false, true, false}));
+ map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new boolean [] {false, true, false}));
+ map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {false, true, false}));
+ map.add("jQuery", add("/jQuery/jQuery", new boolean [] {false, false, false}));
+ map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {false, true, true}));
+ map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {false, true, false}));
+ map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {false, true, false}));
+ map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {false, true, false}));
+ map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {false, true, true}));
+ map.add("ComponentControl", add("/ComponentControl/ComponentControl", new boolean [] {false, false, false}));
+ map.add("Columns", add("/Columns/Columns", new boolean [] {false, true, false}));
+ map.add("PickList", add("/PickList/PickList", new boolean [] {false, true, false}));
+ map.add("Combobox", add("/Combobox/Combobox", new boolean [] {false, true, false}));
+ map.add("ProgressBar", add("/ProgressBar/ProgressBar", new boolean [] {false, false, false}));
+ map.add("SortingAndFiltering", add("/SortingAndFiltering/SortingAndFiltering", new boolean [] {false, false, false}));
+ map.add("FileUpload", add("/FileUpload/FileUpload", new boolean [] {false, false, false}));
+ map.add("InplaceSelect", add("/InplaceSelect/InplaceSelect", new boolean [] {false, true, false}));
+ map.add("InplaceInput", add("/InplaceInput/InplaceInput", new boolean [] {false, true, false}));
+ map.add("Skinning", add("/Skinning/Skinning", new boolean [] {false, false, false}));
+ map.add("Validator", add("/Validator/Validator", new boolean [] {true, true, true}));
+ Iterator<String> iterator = map.getSet().iterator();
+ while(iterator.hasNext()){
+ list.add(new SelectItem(iterator.next()));
+ }
+ }
+
+ public String getSrc() {
+ return src;
+ }
+
+ public String getPathComponent() {
+ return map.get(src).get(0);
+ }
+
+ public String getDefaultPathComponent() {
+ return map.get(src).get(1);
+ }
+
+ public String getPathProperty() {
+ return map.get(src).get(2);
+ }
+
+ public String getPathStraightforward() {
+ return map.get(src).get(3);
+ }
+
+ public void setSrc(String src) {
+ this.src = src;
+ }
+
+ private ArrayList<String> add(String path, boolean [] arr){
+ ArrayList<String> list = new ArrayList<String>();
+ list.add(path + EXT);
+ if(arr[0]) list.add(path + "Default" + EXT); else list.add("/pages/Blank/BlankDefault" + EXT);
+ if(arr[1]) list.add(path + "Property" + EXT); else list.add("/pages/Blank/BlankProperty" + EXT);
+ if(arr[2]) list.add(path + "Straightforward" + EXT); else list.add("/pages/Blank/BlankStraightforward" + EXT);
+ return list;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public List<SelectItem> getList(){
+ return list;
+ }
+
+ public String getSrcContainer() {
+ return srcContainer;
+ }
+
+ public void setSrcContainer(String srcContainer) {
+ this.srcContainer = srcContainer;
+ }
+
+ public String getPathComponentContainer() {
+ return map.get(srcContainer).get(0);
+ }
+
+ public List<SelectItem> getListContainer() {
+ Iterator<String> iterator = map.getSet().iterator();
+ List<SelectItem> l = new ArrayList<SelectItem>();
+ String str;
+ while(iterator.hasNext()){
+ str = iterator.next();
+ if(!str.equals(src))
+ l.add(new SelectItem(str));
+ }
+ return l;
+ }
+
+ public String invalidateSession(){
+ FacesContext context = FacesContext.getCurrentInstance();
+ System.out.println("RichBean.invalidateSession()");
+ return "RichFaces";
+ }
+}
Modified: trunk/test-applications/jsp/src/main/java/util/event/Event.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/event/Event.java 2008-06-27 17:23:07 UTC (rev 9280)
+++ trunk/test-applications/jsp/src/main/java/util/event/Event.java 2008-06-28 07:04:33 UTC (rev 9281)
@@ -113,6 +113,7 @@
private String onbeforeshow;
private String opened;
private String onobjectchange;
+ private String onadd;
public String getOpened() {
return opened;
@@ -230,6 +231,7 @@
onviewactivation = "showEvent('onviewactivationInputID', 'onviewactivation work!')";
onbeforehide = "showEvent('onbeforehideInputID', 'onbeforehide work!')";
onbeforeshow = "showEvent('onbeforeshowInputID', 'onbeforeshow work!')";
+ onadd = "showEvent('onaddInputID', 'onadd work!')";
}
public String getOncontextmenu() {
@@ -1272,4 +1274,12 @@
this.onobjectchange = onobjectchange;
}
+ public String getOnadd() {
+ return onadd;
+ }
+
+ public void setOnadd(String onadd) {
+ this.onadd = onadd;
+ }
+
}
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-06-27 17:23:07 UTC (rev 9280)
+++ trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-06-28 07:04:33 UTC (rev 9281)
@@ -2,9 +2,18 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
-
+<style>
+.addButton{
+color:white;
+background-color:red;
+}
+</style>
<f:subview id="FileUploadSubviewID">
<rich:fileUpload id="fileUploadID" status="a4jStatusID"
+ onadd="#{event.onadd}"
+ immediate="#{fileUpload.immediate}"
+ validator="fileUploadValidator"
+ ajaxSingle="#{fileUpload.ajaxSingle}"
uploadData="#{fileUpload.data}"
acceptedTypes="#{fileUpload.acceptedTypes}"
disabled="#{fileUpload.disabled}" autoclear="#{fileUpload.autoclear}"
@@ -47,13 +56,14 @@
progressLabel="progress" sizeErrorLabel="sizeError"
stopControlLabel="stopControl"
stopEntryControlLabel="stopEntryControl"
- transferErrorLabel="transferError" uploadControlLabel="uploadControl">
+ transferErrorLabel="transferError" uploadControlLabel="uploadControl"
+ allowFlash="#{fileUpload.allowFlash}">
<f:facet name="label">
<h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss} ]"></h:outputText>
</f:facet>
<f:facet name="header">
<h:outputText value="some text"></h:outputText>
- </f:facet>
+ </f:facet>
</rich:fileUpload>
<h:panelGrid columns="2">
@@ -122,8 +132,26 @@
<a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
</h:selectBooleanCheckbox>
+ <h:outputText value="ajaxSingle"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.ajaxSingle}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.immediate}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
<h:outputText value="Uploaded data:"></h:outputText>
<h:outputText value="#{fileUpload.changedLabel}"></h:outputText>
+
+ <h:outputText value="allowFlash" />
+ <h:selectOneRadio value="#{fileUpload.allowFlash}">
+ <f:selectItem itemValue="true" itemLabel="true"/>
+ <f:selectItem itemValue="false" itemLabel="false"/>
+ <f:selectItem itemValue="auto" itemLabel="auto"/>
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectOneRadio>
<a4j:commandLink
onclick="$('formID:FileUploadSubviewID:fileUploadID').component.enable()"
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-06-27 17:23:07 UTC (rev 9280)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-06-28 07:04:33 UTC (rev 9281)
@@ -38,7 +38,7 @@
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..." />
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml 2008-06-27 17:23:07 UTC (rev 9280)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-FileUpload.xml 2008-06-28 07:04:33 UTC (rev 9281)
@@ -7,4 +7,8 @@
<managed-bean-class>fileUpload.FileUpload</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <validator>
+ <validator-id>fileUploadValidator</validator-id>
+ <validator-class>fileUpload.FileUploadValidator</validator-class>
+ </validator>
</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp 2008-06-27 17:23:07 UTC (rev 9280)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp 2008-06-28 07:04:33 UTC (rev 9281)
@@ -109,5 +109,6 @@
<f:verbatim><div style="position: relative"><input id="onbeforeshowInputID" type="hidden" value="don't work!" size="42" /></div></f:verbatim>
<f:verbatim><div style="position: relative"><input id="openedInputID" type="hidden" value="don't work!" size="42" /></div></f:verbatim>
<f:verbatim><div style="position: relative"><input id="onobjectchangeInputID" type="hidden" value="don't work!" size="42" /></div></f:verbatim>
+ <f:verbatim><div style="position: relative"><input id="onaddInputID" type="hidden" value="don't work!" size="42" /></div></f:verbatim>
</f:subview>
16 years, 6 months