JBoss Rich Faces SVN: r6247 - trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-21 09:56:02 -0500 (Thu, 21 Feb 2008)
New Revision: 6247
Modified:
trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-02-21 14:43:38 UTC (rev 6246)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-02-21 14:56:02 UTC (rev 6247)
@@ -24,7 +24,7 @@
<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
- <f:selectItem itemLabel="option 9" itemValue="Miniapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
</is:inplaceSelect>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
</div>
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-02-21 14:43:38 UTC (rev 6246)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-02-21 14:56:02 UTC (rev 6247)
@@ -30,7 +30,7 @@
<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
- <f:selectItem itemLabel="option 9" itemValue="Miniapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="New York"/>
</is:inplaceSelect>
Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
</div>
16 years, 11 months
JBoss Rich Faces SVN: r6246 - trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-21 09:43:38 -0500 (Thu, 21 Feb 2008)
New Revision: 6246
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
Log:
fix add values
Modified: trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-02-21 14:42:52 UTC (rev 6245)
+++ trunk/sandbox/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-02-21 14:43:38 UTC (rev 6246)
@@ -4,6 +4,7 @@
package org.richfaces.renderkit;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -77,7 +78,7 @@
}
public void encodeItems( FacesContext context, UIComponent component) throws IOException {
- List values = getValuesList();
+ List values = new ArrayList();
ResponseWriter writer = context.getResponseWriter();
List <SelectItem> selectItems = SelectUtils.getSelectItems(context, component);
@@ -89,6 +90,7 @@
encodeSuggestion(writer, component, value, RICH_INPLACE_SELECT_CLASSES);
}
}
+ setValuesList(values);
}
@Override
16 years, 11 months
JBoss Rich Faces SVN: r6245 - trunk/ui/combobox/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-21 09:42:52 -0500 (Thu, 21 Feb 2008)
New Revision: 6245
Modified:
trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
Log:
fix add values
Modified: trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-02-21 14:07:57 UTC (rev 6244)
+++ trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-02-21 14:42:52 UTC (rev 6245)
@@ -84,7 +84,7 @@
Object suggestionValues = comboBox.getSuggestionValues();
ResponseWriter writer = context.getResponseWriter();
- List values = getValuesList();
+ List values = new ArrayList();
if (suggestionValues != null) {
if (suggestionValues instanceof Collection) {
@@ -111,10 +111,11 @@
for (Iterator <SelectItem> iterator = selectItems.iterator(); iterator.hasNext();) {
SelectItem selectItem = iterator.next();
String value = getConvertedStringValue(context, comboBox, selectItem.getValue());
- valuesList.add(value);
+ values.add(value);
encodeSuggestion(writer, comboBox, value, RICH_COMBOBOX_ITEM_CLASSES);
}
}
+ setValuesList(values);
}
@Override
@@ -222,9 +223,6 @@
}
public List getValuesList() {
- if (valuesList == null) {
- valuesList = new ArrayList();
- }
return valuesList;
}
16 years, 11 months
JBoss Rich Faces SVN: r6244 - trunk/ui/combobox/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-21 09:07:57 -0500 (Thu, 21 Feb 2008)
New Revision: 6244
Modified:
trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
Log:
item contains div now
Modified: trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java
===================================================================
--- trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-02-21 14:05:52 UTC (rev 6243)
+++ trunk/ui/combobox/src/main/java/org/richfaces/renderkit/ComboBoxBaseRenderer.java 2008-02-21 14:07:57 UTC (rev 6244)
@@ -193,10 +193,10 @@
}
public void encodeSuggestion(ResponseWriter writer, UIComponent component, String value, String classes) throws IOException{
- writer.startElement(HTML.DIV_ELEM, component);
+ writer.startElement(HTML.SPAN_ELEM, component);
writer.writeAttribute(HTML.class_ATTRIBUTE, classes, null);
writer.write(value);
- writer.endElement(HTML.DIV_ELEM);
+ writer.endElement(HTML.SPAN_ELEM);
}
public String getItemsTextAsJSArray(FacesContext context, UIComponent component) {
16 years, 11 months
JBoss Rich Faces SVN: r6243 - trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-02-21 09:05:52 -0500 (Thu, 21 Feb 2008)
New Revision: 6243
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
Log:
display block is added
Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-21 13:55:01 UTC (rev 6242)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/css/inplaceselect.xcss 2008-02-21 14:05:52 UTC (rev 6243)
@@ -115,6 +115,7 @@
.rich-inplace-select-item{
padding : 2px;
white-space : nowrap;
+ display:block;
}
.rich-inplace-select-font{
16 years, 11 months
JBoss Rich Faces SVN: r6242 - trunk/sandbox/ui/inplaceSelect/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-21 08:55:01 -0500 (Thu, 21 Feb 2008)
New Revision: 6242
Modified:
trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
Modified: trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-21 13:53:26 UTC (rev 6241)
+++ trunk/sandbox/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-02-21 13:55:01 UTC (rev 6242)
@@ -60,9 +60,9 @@
</jsp:scriptlet>
<f:resource var="spacer" name="images/spacer.gif"/>
-<span id="#{clientId}" class="rich-inplace-select-edit-state">
+<span id="#{clientId}" class="rich-inplace-select-default-state">
<input id="#{clientId}tabber" type="button" value="" style="width: 1px; position: absolute; left: -32767px;" />
- <img id="#{clientId}inplaceStrut" src="#{spacer}" class="rich-inplace-select-strut"/>
+ <img id="#{clientId}inplaceStrut" src="#{spacer}" class="rich-inplace-select-strut" style="display: none"/>
<input id="#{clientId}inplaceTmpValue"
readonly="readonly"
type="Text"
@@ -146,8 +146,8 @@
LIST : {CLASSES :{ACTIVE : "rich-inplace-select-list-scroll rich-inplace-select-list-decoration rich-inplace-select-list-position #{listClass}"},
STYLE : {ACTIVE: "#{listStyle}"}
},
- ITEM : {NORMAL : "rich-inplace-select-option #{itemClass}",
- SELECTED : "rich-inplace-select-option rich-inplace-select-item #{itemSelectedClass}"
+ ITEM : {NORMAL : "rich-inplace-select-item #{itemClass}",
+ SELECTED : "rich-inplace-select-item rich-inplace-select-selected-item #{itemSelectedClass}"
}
},
COMPONENT : {CHANGED : {NORMAL : 'rich-inplace rich-inplace-select-default-state rich-inplace-select-changed-state #{component.attributes["changedClass"]}', HOVERED : '#{component.attributes["changedHoveredClass"]}'},
16 years, 11 months
JBoss Rich Faces SVN: r6241 - trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2008-02-21 08:53:26 -0500 (Thu, 21 Feb 2008)
New Revision: 6241
Modified:
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java
Log:
additional commit for fileUploadListener
Modified: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java 2008-02-21 13:24:03 UTC (rev 6240)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/component/UIFileUpload.java 2008-02-21 13:53:26 UTC (rev 6241)
@@ -5,6 +5,8 @@
import javax.el.MethodExpression;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ActionListener;
import javax.faces.event.FacesEvent;
import org.richfaces.event.FileUploadListener;
@@ -138,21 +140,19 @@
}
public void broadcast(FacesEvent e) {
+
+ super.broadcast(e);
+
+ if (e instanceof UploadEvent) {
+ // XXX BTW, why doesn't UploadEvent accept any listeners?
- if (e instanceof UploadEvent) {
- //FIXME: Maksim -> Aleksej
- //If event needs to be broadcast to ALL of subscribed listeners.
- //Need to call super anyway
- //BTW, why doesn't UploadEvent accept any listeners?
-
FacesContext facesContext = FacesContext.getCurrentInstance();
MethodExpression binding = getFileUploadListener();
if (binding != null) {
binding.invoke(facesContext.getELContext(), new Object[] { e });
- }
- } else {
- super.broadcast(e);
- }
+ }
+
+ }
}
}
16 years, 11 months
JBoss Rich Faces SVN: r6240 - trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-21 08:24:03 -0500 (Thu, 21 Feb 2008)
New Revision: 6240
Modified:
trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-02-21 13:23:06 UTC (rev 6239)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp 2008-02-21 13:24:03 UTC (rev 6240)
@@ -13,13 +13,21 @@
<h:outputText value="Current skin: #{skinBean.skin}"/><br />
</h:form>
<h:form>
- <is:inplaceSelect>
- <f:selectItem itemLabel="option 1" itemValue="option 1"/>
- <f:selectItem itemLabel="option 2" itemValue="option 2"/>
- <f:selectItem itemLabel="option 3" itemValue="option 3"/>
- <f:selectItem itemLabel="option 4" itemValue="option 4"/>
- <f:selectItem itemLabel="option 5" itemValue="option 5"/>
- </is:inplaceSelect>
+ <div style="width: 300px">
+ Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
+ <is:inplaceSelect showControls="true" value="New York">
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="Miniapolis"/>
+ </is:inplaceSelect>
+ Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
+ </div>
</h:form>
</f:view>
</body>
Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-02-21 13:23:06 UTC (rev 6239)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml 2008-02-21 13:24:03 UTC (rev 6240)
@@ -19,13 +19,21 @@
</h:form>
<h:form>
- <is:inplaceSelect>
- <f:selectItem itemLabel="option 1" itemValue="option 1"/>
- <f:selectItem itemLabel="option 2" itemValue="option 2"/>
- <f:selectItem itemLabel="option 3" itemValue="option 3"/>
- <f:selectItem itemLabel="option 4" itemValue="option 4"/>
- <f:selectItem itemLabel="option 5" itemValue="option 5"/>
- </is:inplaceSelect>
+ <div style="width: 300px">
+ Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
+ <is:inplaceSelect showControls="true" value="New York">
+ <f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
+ <f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
+ <f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
+ <f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
+ <f:selectItem itemLabel="option 5" itemValue="Detroit"/>
+ <f:selectItem itemLabel="option 6" itemValue="Toronto"/>
+ <f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
+ <f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
+ <f:selectItem itemLabel="option 9" itemValue="Miniapolis"/>
+ </is:inplaceSelect>
+ Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
+ </div>
</h:form>
</f:view>
</body>
16 years, 11 months
JBoss Rich Faces SVN: r6239 - trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-02-21 08:23:06 -0500 (Thu, 21 Feb 2008)
New Revision: 6239
Modified:
trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
added client side handlers (onupload, onuploadcomplete, onuploadcanceled, onerror)
Modified: trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-02-21 13:21:10 UTC (rev 6238)
+++ trunk/sandbox/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-02-21 13:23:06 UTC (rev 6239)
@@ -353,9 +353,11 @@
classes: null,
+ events: null,
+
maxFileBatchSize: null,
- initialize: function(id, stopScript, getFileSizeScript, progressBarId, classes, label, maxFiles, options) {
+ initialize: function(id, stopScript, getFileSizeScript, progressBarId, classes, label, maxFiles, events, options) {
this.id = id;
this.element = $(this.id);
this._progressBar = $(progressBarId);
@@ -371,13 +373,24 @@
this.iframe = $(this.id + "_iframe");
this.items = $(this.id + ":fileItems");
this.classes = classes;
+ this.events = events;
+
this.maxFileBatchSize = maxFiles;
this.currentInput = $(this.id + ":file");
this.options = options || {};
+ this.initEvents();
this.setupAutoUpload();
},
-
+
+ initEvents : function() {
+ for (var e in this.events) {
+ if (e) {
+ this.element.observe("rich:" + e, this.events[e]);
+ }
+ }
+ },
+
getFileSize: function (data) {
if (data) {
var progressData = new ProgressData(data);
16 years, 11 months
JBoss Rich Faces SVN: r6238 - in trunk/sandbox/ui/fileUpload/src/main: java/org/richfaces/org/jboss/seam/ui/renderkit and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-02-21 08:21:10 -0500 (Thu, 21 Feb 2008)
New Revision: 6238
Modified:
trunk/sandbox/ui/fileUpload/src/main/config/component/fileUpload.xml
trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java
trunk/sandbox/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
Log:
added client side handlers (onupload, onuploadcomplete, onuploadcanceled, onerror)
Modified: trunk/sandbox/ui/fileUpload/src/main/config/component/fileUpload.xml
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/config/component/fileUpload.xml 2008-02-21 13:20:34 UTC (rev 6237)
+++ trunk/sandbox/ui/fileUpload/src/main/config/component/fileUpload.xml 2008-02-21 13:21:10 UTC (rev 6238)
@@ -148,6 +148,22 @@
MethodExpression representing an action listener method
that will be notified after file uploaded.
</description>
+ </property>
+ <property>
+ <name>onupload</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>onuploadcomplete</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>onuploadcanceled</name>
+ <classname>java.lang.String</classname>
+ </property>
+ <property>
+ <name>onerror</name>
+ <classname>java.lang.String</classname>
</property>
</component>
&listeners;
Modified: trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java 2008-02-21 13:20:34 UTC (rev 6237)
+++ trunk/sandbox/ui/fileUpload/src/main/java/org/richfaces/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java 2008-02-21 13:21:10 UTC (rev 6238)
@@ -24,6 +24,7 @@
import org.ajax4jsf.javascript.JSLiteral;
import org.ajax4jsf.javascript.JSReference;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
+import org.ajax4jsf.renderkit.RendererUtils;
import org.ajax4jsf.resource.CountingOutputWriter;
import org.richfaces.component.UIProgressBar;
import org.richfaces.event.UploadEvent;
@@ -246,6 +247,10 @@
return (result != null) ? new JSLiteral(result.toString()) : null;
}
+ public String getAsEventHandler(FacesContext context, UIComponent component, String attributeName) {
+ return RendererUtils.getInstance().getAsEventHandler(context, component, attributeName, "").toScript();
+ }
+
/**
* Finds an instance of MultipartRequest wrapped within a request or its
* (recursively) wrapped requests.
Modified: trunk/sandbox/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx
===================================================================
--- trunk/sandbox/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-02-21 13:20:34 UTC (rev 6237)
+++ trunk/sandbox/ui/fileUpload/src/main/templates/org/richfaces/fileUpload.jspx 2008-02-21 13:21:10 UTC (rev 6238)
@@ -121,9 +121,16 @@
ENABLED : 'upload_button_content upload_font upload_ico upload_ico_clear #{component.attributes["cleanStyle"]}',
DISABLED : 'upload_button_content upload_font upload_ico upload_ico_clear_dis #{component.attributes["cleanStyleDisabled"]}'
}
- };
+ };
- new FileUpload('#{clientId}', #{this:getStopScript(context, component)}, #{this:getFileSizeScript(context, component)} ,'#{this:getProgressBarId(context, component)}', FileUpload.CLASSES, #{this:getLabelMarkup(context, component)}, '#{component.attributes["maxFiles"]}');
+ var events = {
+ onupload : #{this:getAsEventHandler(context, component, "onupload")},
+ onuploadcomplete : #{this:getAsEventHandler(context, component, "onuploadcomplete")},
+ onuploadcanceled : #{this:getAsEventHandler(context, component, "onuploadcanceled")},
+ onerror : #{this:getAsEventHandler(context, component, "onerror")}
+ };
+
+ new FileUpload('#{clientId}', #{this:getStopScript(context, component)}, #{this:getFileSizeScript(context, component)} ,'#{this:getProgressBarId(context, component)}', FileUpload.CLASSES, #{this:getLabelMarkup(context, component)}, '#{component.attributes["maxFiles"]}', events);
</script>
</span>
16 years, 11 months