[JBoss Seam] - New fileUpload component
by shane.bryzak@jboss.com
I've committed a basic working version of a fileUpload tag to CVS. It doesn't need all the additional jar files that the tomahawk component requires, and is greatly simplified from the 17 levels of abstraction that the Apache version implements. Usage is as such:
page:
<s:fileUpload id="picture" value="#{register.picture}"/>
web.xml:
<filter>
| <filter-name>Seam Multipart Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamMultipartFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Multipart Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
action class:
| @Name("register")
| public class RegisterAction implements Register
| {
| private byte[] picture;
|
| public void setPicture(byte[] picture)
| {
| this.picture = picture;
| }
|
| public byte[] getPicture()
| {
| return picture;
| }
| }
|
That's all there is to it. It doesn't do anything fancy yet such as progress notification, etc, or for that matter even store the filename. It would be nice though if someone could give it a try and report back any issues/feature requests either in this thread, or on the following JIRA page:
http://jira.jboss.org/jira/browse/JBSEAM-630
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004872#4004872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004872
19 years, 3 months
[JBoss jBPM] - Allocate Transitions / States to Swimlanes
by woollybarr
Hi all,
I'm trying to model a process where I would like to allocate not only tasks, but also transitions and states to swimlanes. The reason is that if the model reaches a particular state-node/task-node, and there is more than one transition out of the state, I only want particular users to be able to choose particular transitions.
For example, if I was modelling the process of producing content for a website, I might have a process that goes:
Start -> Created -> Authored -> Reviewed
At the "Reviewed" stage, there are transitions called "fail review", "pass review" and "delete".
I want "standard" users to be able to choose the transitions "fail review" and "pass review", but "admin" users are also able to choose "delete".
Is this kind of thing possible?
Cheers,
Phil.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004861#4004861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004861
19 years, 3 months