[JBoss-user] [JBoss Seam] - Entities with one/many_to_many relationships and SEAM

2006-07-10 Thread trouby
Hey guys, I was wondering, Assuming I have an entity with one_to_many relationship, i.e: | class X { | String name; | CollectionY yList; | |@Column(name=NAME) |public long getName() { |return name; |} | | public void setName(String name) {

[JBoss-user] [JBoss Seam] - Re: selectBooleanCheckbox with a dataTable

2006-07-10 Thread trouby
Hey, Nothing, no errors in h:messages/, nothing at the backend (server logs), but as I said, it's for sure related to the checkboxes, no clue what... any way to debug such a situation? i'm clueless... thanks for answering :) Asaf. View the original post :

[JBoss-user] [JBoss Seam] - Re: selectBooleanCheckbox with a dataTable

2006-07-10 Thread trouby
Hey, I dont think this is the problem, the stateless bean is accessible ( I use a DataModel to display the dataTable where each of its rows is a checkbox ) and the methods are accessible, the problem -ONLY- occures when I use a 'selectBooleanCheckbox' where its value is an array! when the

[JBoss-user] [JBoss Seam] - Re: dataTable with method execution per row

2006-07-10 Thread trouby
Cool, but thanks, I'll stick with the @Transient pre-loaded data options for now... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956687#3956687 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956687

[JBoss-user] [JBoss Seam] - Re: selectBooleanCheckbox with a dataTable

2006-07-10 Thread trouby
I'm not sure, but probably... Is there any way to see if the Map i'm trying to set is really outjected? Seems like JSF fails before the invoke-application phase if the property is not available... This is the property in the Statless bean: | @Out(scope=ScopeType.EVENT,required=false) |

[JBoss-user] [JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM

2006-07-10 Thread trouby
What? this one? http://www.jboss.com/index.html?module=bbop=viewtopict=78323 These annotations are nice, but I'd like to see (if possible) a demonstration of multiple selection of objects, and not only values out of a collection. Cheers. View the original post :

[JBoss-user] [JBoss Seam] - selectBooleanCheckbox with a dataTable

2006-07-08 Thread trouby
Hello, I have a datatable with a 'selectBooleanCheckbox' per row: | t:dataTable id=accountsForUserDataTableList | var=account | value=#{user.accounts} | | h:column |

[JBoss-user] [JBoss Seam] - Re: @SelectItems and @SelectItemsSelection annotations?

2006-07-06 Thread trouby
Hey, there's a parameter for the 'SelectItems' annotation named 'valueMethod' which accept as a parameter the method name to set the 'value' for each of the selections, A little bug there, instead of using valueMethod, there's a user of labelMethod, So, in class SelectItemsBinder, line

[JBoss-user] [JBoss Seam] - dataTable with method execution per row

2006-07-06 Thread trouby
Hey, I have a dataTable of 'user' objects which iterate thorugh a list, i.e: | t:dataTable id=rolesDataTableList | var=user | value=#{userList} | rows=10 | |

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-05 Thread trouby
Hey, back to this, I still confused a little bit, Using pull MVC style, th search screen in the blog example use @CREATE/@UNWRAP annotations in order to set the result and outject the blogEntry list, This fits when you have such a 'search service' which is dedicated for the 'search action'

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-02 Thread trouby
Hey, back to this, if someone is interested, I found two options (as directed by Gavin) 1) using factory method for outjecting the selected entity, but since I already have too much factory methods I passed away 2) outjecting the selected object by handling the ID of the selected object as a

[JBoss-user] [JBoss Seam] - 'edit' object through datatable page

2006-07-01 Thread trouby
Hey, I have a simple question regarding object editing, I have a page containing a 'datatable' tag which fetches several objects via an EJB3, I want two simple actions: delete per row/ edit per row, by adding tag per row: | 'h:commandButton value=delete action=#{myEjbBean.deleteObject} /'

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-01 Thread trouby
Eh, I'm sorry, here are some more details: injected means 'DataModelSelection' my 'DataModelSelection' object code (the intersting part) | @Scope(ScopeType.EVENT) | @Name(role) | | @Table(name=ROLE) | @Entity | public class Role implements Serializable { | private long

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-01 Thread trouby
Hey again, It is actually almost empty, I just added one input tag to see if the selected 'role' from last page is accessible... | div class=entry | div class=labelh:outputLabel for=description#{msgs.description}/h:outputLabel/div | div class=input | h:inputText id=description

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-01 Thread trouby
Hey again, '@In(create=true) @Valid Role role' is irrelevant for this, I have another page named 'roleAdd.xhtml' which its data is submitted to this entity, I hope it is valid... I did post the code for that class... see above, it is the class with the @entity / @name(role); annotations.

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-01 Thread trouby
yeah, I see the problem... Well, I looked at both examples, I couldnt find any example that links from a datatable selected row to another page without passing through an action... :-/ Thanks a lot. View the original post :

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-01 Thread trouby
yeah, I see the problem... Well, I looked at both examples, blog example has two actions, delete/select, both use an action at the backend and make a usage of the 'DataModelSelection' object, I couldnt find any example that links from a datatable selected row to another page without passing

[JBoss-user] [JBoss Seam] - Re: 'edit' object through datatable page

2006-07-01 Thread trouby
Cool, that what I'm looking for, it's really a waste of an action / navigation-rule for raising an 'edit' form for the selected @DataObjectSelection entity, Are there any examples for this? it'll be nice to see a simple CRUD app, I appriciate your help. View the original post :

[JBoss-user] [EJB 3.0] - EJB injection dependencies failure...

2006-06-24 Thread trouby
Hello, I'm trying to deploy an EAR file with some EJBs into Jboss 4.0.4GA, I have two Stateless beans: AccountBean/UserBean, As it seems, if no EJB injection is done between those two, both are deployed correctly, even if one EJB is injected into another things work fine, But at the moment I