[JBoss Seam] - Re: Request: Step by Step build it yourself tutorial
by stephen.friedrich
Pete, I don't care so much if it's an appendix or if it's chapter 2, but I have to agree that such an introduction would be very valuable.
More than once I started with some new framework/library and while the documentation clearly wet my appetite it was much too hard to get started for real.
Where's the download, what jars do I need to put where, how do I integrate with X (ajax4sf, trinidad, ...) or make it run on Y (tomcat vs jboss vs. weblogic ...)
It seems to me as long as you are using Eclipse and start with either an existing example or seamgen you are fine.
As soon as you depart from that you start to get problems.
However I am not so sure and confident that the task of writing such a manual setup documentation is feasible, regarding the pace of Seam development and the sheer number of possible combinations (Seam 1.1/1.2/1.3, JBoss 4.0.5/4.2/5.0, Myfaces/RI, JSF 1.1/1.2, Trinidad/RichFaces/ICEFaces/..., ajax4jsf/dwr/..., ).
P.S.
Just yesterday I bought the Facelets Shortcuts book(let) that you mentioned and it helped me a lot that the part describing configuration was chapter ...
... 2.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044274#4044274
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044274
19 years, 1 month
[Installation, Configuration & Deployment] - Re: JBoss 5beta1, JSF1.2 and Netbeans Visual Web Pack
by tekniklas
I also have this problem reproduced with jboss4.2CR2 with an app which works with suns app server. The attribute id is mandatory for the tag.
index.jsp:
| <%@page contentType="text/html"%>
| <%@page pageEncoding="UTF-8"%>
| <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
| <%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
| <%@taglib prefix="ui" uri="http://java.sun.com/blueprints/ui" %>
| <html>
| <head>
| <title>AJAX FileUpload Page</title>
| <script>
|
| function props(namex) {
| var listx="";
| var ob=dojo.byId(namex);
| for(xx in ob) {
| listx += xx + " = " + ob[xx] + "<br/>"
| }
| //document.write(listx);
| alert(listx);
| }
|
| function testRetFunction(type, data, evt){
| // handle successful response here
| var resultx = data.getElementsByTagName("response")[0];
| if(resultx) {
| alert("Customer AJAX Return Function Call" + '\n' +
| "Message: " + resultx.getElementsByTagName("message")[0].childNodes[0].nodeValue + '\n' +
| "Status Code: " + resultx.getElementsByTagName("status")[0].childNodes[0].nodeValue + '\n' +
| "Raw Duration Time (milliseconds): " + resultx.getElementsByTagName("duration")[0].childNodes[0].nodeValue + '\n' +
| "Duration Time String: " + resultx.getElementsByTagName("duration_string")[0].childNodes[0].nodeValue + '\n' +
| "Start Date/Time: " + resultx.getElementsByTagName("start_date")[0].childNodes[0].nodeValue + '\n' +
| "End Date/Time: " + resultx.getElementsByTagName("end_date")[0].childNodes[0].nodeValue + '\n' +
| "Byte Size of Upload: " + resultx.getElementsByTagName("upload_size")[0].childNodes[0].nodeValue);
| } else {
| alert("Customer AJAX Return Function Call");
| }
| }
|
| </script>
| </head>
| <body>
| <h1>AJAX FileUpload Page</h1>
|
| <f:view>
|
| <table border="1" colspacing="5" colpadding="5">
| <tr>
| <td>
| <br/>FileUpload Test Section 1.
| <br/>This section tests the custom return function with progress bar<br/>
| <ui:fileUploadTag id="TestFileuploadForm0" retFunction="testRetFunction" retMimeType="text/xml"
| postProcessingMethod="#{FileUploadCustomBean.postProcessingMethod}"
| progressBarDivId="progress1x" progressBarSubmitId="submit1x" progressBarSize="40">
| <input type="file" size="40" name="fileToUpload0" id="fileToUpload0Id"/><br/>
| <input type="file" size="40" name="fileToUpload1" id="fileToUpload1Id"/><br/>
| <input type="file" size="40" name="fileToUpload2" id="fileToUpload2Id"/><br/>
| <input type="submit" id="submit1x" name="submit1x" value="Submit"/><br/>
| <div id="progress1x"></div><br/>
| </ui:fileUploadTag>
| </td>
| </tr>
| <tr>
| <td>
| <br/>FileUpload Test Section 2.
| <br/>This section tests the default scenario.<br/>
| <ui:fileUploadTag id="TestFileuploadForm2" progressBarDivId="progress3x" progressBarSubmitId="submit3x">
| <input type="file" size="40" name="fileToUpload5" id="fileToUpload5Id"/><br/>
| <input type="submit" id="submit3x" name="submit3x" value="Submit"/>
| <div id="progress3x"></div><br/>
| </ui:fileUploadTag>
| </td>
| </tr>
| </table>
|
| </f:view>
| <br/><br/><br/><br/><br/><br/>
| <hr/>
| <center>
| <a href="http://blueprints.dev.java.net/">Java BluePrints</a> |
| <a href="http://sun.com">Sun Microsystems</a> © 2006 Sun Microsystems Inc. All rights reserved. Use is subject to license terms.
| </center>
| </body>
| </html>
|
|
|
web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <servlet>
| <display-name>FacesServlet</display-name>
| <servlet-name>FacesServlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>FacesServlet</servlet-name>
| <url-pattern>/faces/*</url-pattern>
| </servlet-mapping>
| <session-config>
| <session-timeout>
| 30
| </session-timeout>
| </session-config>
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| </welcome-file-list>
| </web-app>
|
|
faces-config.xml:
<?xml version='1.0' encoding='UTF-8'?>
|
| <!-- Copyright 2005 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at:
| http://developer.sun.com/berkeley_license.html
| $Id: faces-config.xml,v 1.1 2006/06/20 00:08:52 inder Exp $ -->
|
| <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
| version="1.2">
|
| <managed-bean>
| <managed-bean-name>FileUploadCustomBean</managed-bean-name>
| <managed-bean-class>com.sun.javaee.blueprints.fileupload.FileUploadCustomBean</managed-bean-class>
| <managed-bean-scope>session</managed-bean-scope>
| </managed-bean>
|
| </faces-config>
|
The error message:
| org.apache.jasper.JasperException: Unable to compile class for JSP:
|
| An error occurred at line: 51 in the jsp file: /index.jsp
| The method setId(String) in the type UIComponentClassicTagBase is not applicable for the arguments (JspValueExpression)
| 48: <td>
| 49: <br/>FileUpload Test Section 1.
| 50: <br/>This section tests the custom return function with progress bar<br/>
| 51: <ui:fileUploadTag id="TestFileuploadForm0" retFunction="testRetFunction" retMimeType="text/xml"
| 52: postProcessingMethod="#{FileUploadCustomBean.postProcessingMethod}"
| 53: progressBarDivId="progress1x" progressBarSubmitId="submit1x" progressBarSize="40">
| 54: <input type="file" size="40" name="fileToUpload0" id="fileToUpload0Id"/><br/>
|
|
| An error occurred at line: 66 in the jsp file: /index.jsp
| The method setId(String) in the type UIComponentClassicTagBase is not applicable for the arguments (JspValueExpression)
| 63: <td>
| 64: <br/>FileUpload Test Section 2.
| 65: <br/>This section tests the default scenario.<br/>
| 66: <ui:fileUploadTag id="TestFileuploadForm2" progressBarDivId="progress3x" progressBarSubmitId="submit3x">
| 67: <input type="file" size="40" name="fileToUpload5" id="fileToUpload5Id"/><br/>
| 68: <input type="submit" id="submit3x" name="submit3x" value="Submit"/>
| 69: <div id="progress3x"></div><br/>
|
|
Please let me know if you have a solution.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044266#4044266
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044266
19 years, 1 month