[JBoss-user] [JBoss Seam] - Re: to upload a file with seam - do i extend SeamServletFilt

2006-04-12 Thread uhyonc
You might want to check out http://www.onjava.com/pub/a/onjava/2005/07/13/jsfupload.html I just recently tried file uploading, and it worked fine. The only issue you'll come across is with classloading issues. If you're using tomahawk, then you have to either 1) put the tomahawk.jar in jsf-libs

[JBoss-user] [JBoss Seam] - Re: Converting from EJB collections to JSF models -- techniq

2006-04-10 Thread uhyonc
I've tried it with EL functions (that is you can declare EL functions in the taglib) and it seems to work fine. I've created a a few that would make it easier to separate out the Faces code as much as possible. One of the main reasons for doing it this way is the fact that the TreeModel I'm usi

[JBoss-user] [JBoss Seam] - Re: @DataModel design issues -- JSF/HTTP dependency in EJBs?

2006-04-09 Thread uhyonc
The outjection is tougher than you'd think... The problem is that I have 3 beans that will outject the selectedItem object... I tried it with both the Page scope and the Session scope. Apparently, all 3 of the beans will outject the selectedItem, which means that a random item will get outjecte

[JBoss-user] [JBoss Seam] - Re: @DataModel design issues -- JSF/HTTP dependency in EJBs?

2006-04-09 Thread uhyonc
As to the selectedItem... It works, as long as you make sure that the bean is either a stateful session bean or it's in the page (or longer) scope and the same goes for the scope on the @Out annotation for the selectedItem. View the original post : http://www.jboss.com/index.html?module=bb&o

[JBoss-user] [JBoss Seam] - Converting from EJB collections to JSF models -- technique

2006-04-08 Thread uhyonc
I had this problem where I needed to create TreeModel (for the tree component, in fact for Oracle ADF), and I didn't want to create it directly from the EJB code. I don't think this is usually an issue since you usually separate the web code from the EJB code. I'm still pretty new to JSF, so I

[JBoss-user] [JBoss Seam] - Re: @DataModel design issues -- JSF/HTTP dependency in EJBs?

2006-04-08 Thread uhyonc
The first solution would work except that you'd have to make sure that the the @DataModel's names are all matched up. And it wouldn't work in cases where you have multiple items in a single bean, since that'd require two different selectedItem in the receiving bean. However, I hadn't realized t

[JBoss-user] [JBoss Seam] - Re: @DataModel design issues -- JSF/HTTP dependency in EJBs?

2006-04-08 Thread uhyonc
One way I thought of is to have the backing bean that contains the @DataModel have a select method that calls the injected bean's select method. For example : class Main { | @In(create=true) ItemEditor itemEditor; | @DataModel List items; | @DataModelSelection private Item selectedIt

[JBoss-user] [JBoss Seam] - Classloading issues (Seam/JBPM)

2006-04-08 Thread uhyonc
Currently the seam JAR is located in the EAR (and apparently referenced by ejb jar through the class-path attribute in the manifest.mf file). So I followed the seam example, and first put the JBPM jar in the ear and tried to have it referenced by the ejb jar the same way. Unfortunately, this doe

[JBoss-user] [JBoss Seam] - Re: @Name and abstract classes

2006-04-08 Thread uhyonc
Why would you @name abstract classes? I thought the idea of @Name was to have Seam create an instance (in the JSF namespace) of the object, but abstract classes cannot be instantiated! Or maybe I didn't quite read your posting correctly... View the original post : http://www.jboss.com/index.ht

[JBoss-user] [JBoss Seam] - @DataModel design issues -- JSF/HTTP dependency in EJBs?

2006-04-05 Thread uhyonc
I've been playing around with the issues system and I had some questions regarding the way DataModel works. The examples only show datamodels in which the data list/factory/selection are all on the same object. However, there are many cases when you would want to go to the selection from many d