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) {
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 :
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
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
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)
|
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 :
Hello,
I have a datatable with a 'selectBooleanCheckbox' per row:
| t:dataTable id=accountsForUserDataTableList
| var=account
| value=#{user.accounts}
|
| h:column
|
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
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
|
|
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'
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
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} /'
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
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
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.
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 :
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
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 :
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
19 matches
Mail list logo