[richfaces-svn-commits] JBoss Rich Faces SVN: r6339 - trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Feb 26 06:57:05 EST 2008
Author: dsvyatobatsko
Date: 2008-02-26 06:57:05 -0500 (Tue, 26 Feb 2008)
New Revision: 6339
Modified:
trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp
Log:
a sample js error fix
Modified: trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp 2008-02-26 09:41:32 UTC (rev 6338)
+++ trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp 2008-02-26 11:57:05 UTC (rev 6339)
@@ -3,7 +3,7 @@
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/fileUpload"
prefix="fu"%>
-<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/progressBar" prefix="progressBar" %>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/progressBar" prefix="progressBar" %>
<html>
<head>
<title></title>
@@ -29,7 +29,7 @@
<tr><td>Upload List Width:</td><td>
<h:inputText value="#{bean.width}"></h:inputText></td></tr>
<tr><td>Upload List Height:</td><td>
-<h:inputText value="#{bean.height}"></h:inputText></td></tr>
+<h:inputText id="bonus" value="#{bean.height}"></h:inputText></td></tr>
</table><br/>
<a4j:commandButton reRender="upload1" value="Accept"></a4j:commandButton>
</h:form>
@@ -65,8 +65,8 @@
</h:dataTable>
<br/><br/><br/>
-<input type="button" onclick="$('j_id_jsp_223736782_7:upload1').component.enable();" value="Enable" />
-<input type="button" onclick="$('j_id_jsp_223736782_7:upload1').component.disable();" value="Disable" /><br/>
+<input type="button" onclick="$(this.form.id + ':upload1').component.enable();" value="Enable" />
+<input type="button" onclick="$(this.form.id + ':upload1').component.disable();" value="Disable" /><br/>
</h:form>
</f:view>
</body>
More information about the richfaces-svn-commits
mailing list