[jboss-user] [JBoss Seam] - Re: own Seam component
dhinojosa
do-not-reply at jboss.com
Tue Oct 9 01:43:26 EDT 2007
OHHHH.....
Download the source from cvs and take a look at the following files to see how to extend them...
/src/main/org/jboss/seam/web/FileUploadException.java
/ui/src/main/java/org/jboss/seam/ui/component/UIFileUpload.java
/ui/src/main/java/org/jboss/seam/ui/renderkit/FileUploadRendererBase.java
/ui/target/generated-component/java/org/jboss/seam/ui/component/html/HtmlFileUpload.java
/ui/target/generated-component/java/org/jboss/seam/ui/taglib/FileUploadTag.java
Depending on what you are doing, if you just want to change the look for the FileUpload just extend the FileUploadRenderer, if you want to add other functionality to the component itself you can extend UIFileUpload.
In order to use your tag in facelets, you will need your own xml, and you can reference these file after building seam:
./ui/target/classes/META-INF/s.taglib.xml
./ui/target/generated-component/resources/META-INF/s.taglib.xml
In order to use your tag with jsp, you will need your own tld and you can reference these files from seam:
./ui/target/classes/META-INF/s.tld
./ui/target/generated-component/resources/META-INF/s.tld
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092834#4092834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092834
More information about the jboss-user
mailing list