[JBoss Seam] - Re: own Seam component
by rajesh2win
"rajesh2win" wrote : "dhinojosa" wrote : 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
| Thans 4 tht,
| exactly i did the same thing..wht am doing is am trying to add one new attribure <s:fileUpload> .the new attribute is going for tag just befire of <s:fileUpload>.
| can u suggest anything for this.Actully what am trying is to upload multiple files ..frm client,so i need to change the <s:fileUpload> functionality to my own logic ..any suggestions ..
| Thanks,
i.e new attribute is adding to span tag...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092838#4092838
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092838
18Â years, 7Â months
[JBoss Seam] - Re: own Seam component
by rajesh2win
"dhinojosa" wrote : 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
Thans 4 tht,
exactly i did the same thing..wht am doing is am trying to add one new attribure <s:fileUpload> .the new attribute is going for tag just befire of <s:fileUpload>.
can u suggest anything for this.Actully what am trying is to upload multiple files ..frm client,so i need to change the <s:fileUpload> functionality to my own logic ..any suggestions ..
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092837#4092837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092837
18Â years, 7Â months
[JBoss Tools (users)] - Re: WTP2.0.1, JBossAS-Tools-1.0.0.beta4 not publishing corre
by dlmiles
"rob.stryker(a)jboss.com" wrote : i'm still unable to reproduce the problems you mentioned at the beginning of the thread.
Thanks for the feedback that it works with your setups (Max/Rob), so I have investigated some more. I have confirmed I am running beta4 (just to be sure).
My conclusion is that there is indeed a problem when the JBoss runtime is not on the same file system as the "project build area". As I setup another runtime in my home directory and that published with the JBossTools-AS fine.
I then moved this same runtime instance to another file system, and manually cleaned the servers/default/deploy/MyEAR.ear/ directory from it and proceeded to setup a new runtime in this location too (I could not edit the runtime home on the existing instance it would not let me). When I published I got the directory tree created and the MyJAR.jar (a Utility JAR for the EAR classpath) but none of the other files were created.
So I would guess that you too are not doing a file copy but a rename, just to be clear its only the final step of making the file visible to the runtime that interests me and indeed is what this thread concerns, you can use whatever method/algorithm you like in preparation for that final setup.
I shall find or open a new JIRA now, I don't think its difficult to recreate, type 'df' from linux to understand your filesystem layout and then use 'df /home/myuser/workspace' and 'df /somewhere/jboss-4.2.1.GA' to verify the two locations are on different file system.
If you don't have a big enough alternative filesystem with your linux install, then create a loopback one:
dd if=/dev/zero of=/tmp/bigfile.ext2 bs=1k count=163840
| /sbin/mke2fs /tmp/bigfile.ext2
| # Say Yes to proceed
| mkdir /mnt/loop
| su
| # Enter root password
| /bin/mount -o loop -t ext2 /tmp/bigfile.ext2 /mnt/loop
| df /mnt/loop
| cd /mnt/loop
| unzip jboss-4.2.1.GA.zip
|
| # To tear it down as root
| /bin/umount /mnt/loop
| rm /tmp/bigfile.ext2
|
I can't speak for Windows, but I would have expected using different drive letters would have the same effect.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092835#4092835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092835
18Â years, 7Â months
[JBoss Seam] - Re: own Seam component
by dhinojosa
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
18Â years, 7Â months