[jboss-user] [JBoss Seam] - Accessing Enum with EL

2008-01-03 Thread menashe
How do i access Enum from EL here is enum package mypackage; | public enum Status {GOOD, BAD} here the object package mypackage; | @Name(user) | public class User { | private Status status; | | public Status getStatus() | {return status;} | | public void

[jboss-user] [JBoss Seam] - Re: Accessing Enum with EL

2008-01-03 Thread menashe
that is what i do now but this is not very efficient since it had to create enum object from string all the time (i can add each enum constant to the named class but it can be tedious when there are lots of enums) public boolean isGood(final String value) { | return

[jboss-user] [JBoss Seam] - EntityHome with a trivial restriction

2008-01-02 Thread menashe
Hi How is it possible to setup EntityHome with a trivial restriction in the flowing case. There is a table user that has userID, and a tables item that has itemID and userID, later being a foreign key to user table. When user request to edit itemID=xx the EntityHome should check to see that

[jboss-user] [JBoss Seam] - Re: Search entity doesn't need to be validated

2007-12-23 Thread menashe
[EMAIL PROTECTED] wrote : | No, you are completely correct. Don't use s:validate/s:validateAll in your search form, and don't try to persist the entity you are using to hold your search data and it won't be validated. | Oh, I was using the template=edit.xhtm and it has s:validateAll, fix

[jboss-user] [JBoss Seam] - Re: Search entity doesn't need to be validated

2007-12-18 Thread menashe
it is not s:validate it is hibernate validator that is the problem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4114052#4114052 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114052

[jboss-user] [JBoss Seam] - Re: Search entity doesn't need to be validated

2007-12-18 Thread menashe
date range point well-taken jazir1979 wrote : | Another thing I'd point out is that using an entity for search values only works in the simplest of cases - you can't easily do date ranges, for example. | | menashe wrote : it is not s:validate it is hibernate validator

[jboss-user] [JBoss Seam] - Search entity doesn't need to be validated

2007-12-18 Thread menashe
After looking at the seam examples and seamgen code on how the search is done. It seams to me that there is a shortcoming in seam, since, seam search uses a new entyty of the search class but if it works only if there are no validation on the class. When this is used with any class that uses