[jboss-user] [JBoss Seam] - Re: Simplest s:fileUpload usage

2007-04-23 Thread yuwono
Hello petemuir,

I've tried the SFSB version too, no error but still the same. Can U help?

package myapp;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | 
  | import org.jboss.seam.annotations.Begin;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.End;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Stateful
  | @Name(admin)
  | public class Admin implements AdminI {
  | private byte[] uploadedFile;
  | 
  | public void setUploadedFile(byte[] uploadedFile)
  | {
  | this.uploadedFile = uploadedFile;
  | }
  | 
  | public byte[] getUploadedFile()
  | {
  | return uploadedFile;
  | }
  | 
  | @Begin
  | public void start()
  | {
  | System.out.println(Start conversation);
  | }
  | 
  | @End
  | public void parse() throws Exception
  | {
  | if(uploadedFile != null)
  | System.out.println(size =  + uploadedFile.length);
  | else
  | System.out.println(picture is null);
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {}
  | }

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039713#4039713

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039713
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Simplest s:fileUpload usage

2007-04-23 Thread yuwono
Yes, it works for both SLSB and SFSB above. So, I can't use JSPs or it should 
be a TODO task for seam (to work along with JSP)?

Thanks Shane.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040068#4040068

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Simplest s:fileUpload usage

2007-04-19 Thread yuwono
I've been hanging around for almost two weeks just to make s:fileUpload 
working.
Simply want to add upload file capability to seam-registration. I'm using 
seam-space
sample as reference and adapt it into stateless version. Not refering to wiki's
samples cause it using tomahawk, I just want to have it plain and simple.

Environment used :
- JBoss AS 4.0.5.GA
- JBoss Seam 1.2.0.Patch1
- JBoss IDE for Eclipse
- default JBoss Seam (upload) jars - no tomahawk.jar, no icefaces, no 
commons-upload.
- jboss-seam-ui.jar included

components.xml :

?xml version=1.0 encoding=UTF-8?
  | components xmlns=http://jboss.com/products/seam/components;
  | xmlns:core=http://jboss.com/products/seam/core;
  | xmlns:web=http://jboss.com/products/seam/web;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=
  | http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.2.xsd 
  |  http://jboss.com/products/seam/web 
http://jboss.com/products/seam/web-1.2.xsd 
  |  http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.2.xsd;
  | 
  | core:init jndi-pattern=@jndiPattern@/
  | core:ejb installed=@embeddedEjb@/
  | 
  | web:multipart-filter create-temp-files=true 
  |   max-request-size=100 
  |   url-pattern=*.seam/
  | 
  | /components


web.xml :

?xml version=1.0 encoding=UTF-8?
  | 
  | web-app version=2.5
  | 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-app_2_5.xsd;
  | 
  | !-- Seam --
  | 
  | listener
  | listener-classorg.jboss.seam.servlet.SeamListener/listener-class
  | /listener
  | 
  | filter
  | filter-nameSeam Filter/filter-name
  | filter-classorg.jboss.seam.web.SeamFilter/filter-class
  | /filter
  | 
  | filter-mapping
  | filter-nameSeam Filter/filter-name
  | url-pattern/*/url-pattern
  | /filter-mapping
  | 
  | !-- MyFaces --
  | 
  | listener
  | 
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  | /listener
  | 
  | context-param
  | param-namejavax.faces.STATE_SAVING_METHOD/param-name
  | param-valueclient/param-value
  | /context-param
  | 
  | context-param
  | param-namejavax.faces.DEFAULT_SUFFIX/param-name
  | param-value.jspx/param-value
  | /context-param
  |   
  | servlet
  | servlet-nameFaces Servlet/servlet-name
  | servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  | load-on-startup1/load-on-startup
  | /servlet
  | 
  | !-- Faces Servlet Mapping --
  | servlet-mapping
  | servlet-nameFaces Servlet/servlet-name
  | url-pattern*.seam/url-pattern
  | /servlet-mapping
  | /web-app


application.xml :

?xml version=1.0 encoding=UTF-8?
  | application 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/application_5.xsd;
  |  version=5
  |  
  | display-nameMyapp/display-name
  | 
  | module
  | web
  | web-uriseam-myapp.war/web-uri
  | context-root/myapp/context-root
  | /web
  | /module
  | module
  | ejbseam-myapp.jar/ejb
  | /module
  | module
  | javajboss-seam.jar/java
  | /module
  |  module
  |   javael-api.jar/java
  |  /module
  |  module
  |   javael-ri.jar/java
  |  /module
  | 
  | /application


jboss-app.xml :

jboss-app
  |   loader-repository 
  |   seam.jboss.org:loader=myapp
  |   /loader-repository 
  | /jboss-app


the view .

index.jspx :

?xml version=1.0?
  | jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; 
  |   xmlns:h=http://java.sun.com/jsf/html;
  |   xmlns:f=http://java.sun.com/jsf/core;
  |   xmlns:s=http://jboss.com/products/seam/taglib;
  |   xmlns=http://www.w3.org/1999/xhtml;
  |   version=2.0
  | jsp:output doctype-root-element=html
  | doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
  | 
doctype-system=http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/
  | jsp:directive.page contentType=text/html/
  | html
  | body
  | f:view
  | h:form enctype=multipart/form-data
  |table width=100% border=0 cellspacing=0 cellpadding=0
  |   tr
  |  tdUpload Tasks/td
  |   /tr
  |   tr
  |  td width=100%br/File 

[jboss-user] [JBoss Seam] - s:fileUpload doesn't render

2007-04-05 Thread yuwono
I'm using seam-registration as starter, modify on one of the .jspx as follows :

?xml version=1.0?
  | jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; 
  |   xmlns:s=http://jboss.com/products/seam/taglib;
  |   xmlns:h=http://java.sun.com/jsf/html;
  |   xmlns:f=http://java.sun.com/jsf/core;
  |   xmlns=http://www.w3.org/1999/xhtml;
  |   version=2.0
  | jsp:output doctype-root-element=html
  | doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
  | 
doctype-system=http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/
  | jsp:directive.page contentType=text/html/
  | html
  | body
  | f:view
  | table
  |   tr
  |  td width=100%
  |  br/File to upload: 
  |  h:form enctype=multipart/form-data
  | s:fileUpload data=#{admin.uploadedFile}/
  |  /h:form
  |   /td
  |/tr
  | /table
  | /f:view
  | /body
  | /html
  | /jsp:root

But the file-upload control doesn't render -no error though- what is missing?

Yes, I saw working file-upload on seamspace, but I want to use .jspx rather 
than .xhtml.

Please help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4034906#4034906

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4034906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: User Input Req for 2.6 Usability and UI enhancements

2006-11-10 Thread yuwono
These are rather request than requirement :
1. I'm asking for a news ticker portlet, kind like on http://plone.org/ (news, 
upcoming events, latest release etc). I now its easy to develop, but I think 
its a common portlet, nice to see JBoss Portal have it.

2. Is it possible for CatalogPortlet to show the full tree (without drill 
down), or is there any properties I've to change? I think (again) full tree 
format is more common.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3984833#3984833

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3984833
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user