[JBoss Seam] - Re: Application-exception handling
by matt.drees
"parszab" wrote :
| So if just someone could tell me where I should look for that in Seam I'd be really grateful!
Start looking in ui/src/main/java/org.jboss.seam.ui.validator.ModelValidator.java, though the real cool stuff is in src/main/org.jboss.seam.core.Validators.
It's probably only going to be helpful to you if you're doing field-level validation, but not validating combinations of fields (which I'm guessing is what you're after).
So, if Seam's exception handling isn't what you need (and, btw, it does handle messages and redirects to the same page. But it'll break the conversation, IIRC, so you shouldn't use it for validation-ish stuff) maybe in your pojo action classes you should catch the appropriate exceptions explicitly and respond appropriately (messages, etc).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123797#4123797
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123797
18 years, 3 months
[JBoss Seam] - @Restrict on POJOs?
by EricJava
Looking at the Seam documentation, it says:
anonymous wrote : Javabeans may be used just like a stateless or stateful session bean. However, they do not provide the functionality of a session bean (declarative transaction demarcation, declarative security, efficient clustered state replication, EJB 3.0 persistence, timeout methods, etc).
And yet, in the Seam examples, such as wiki/src/main/org/jboss/seam/wiki/core/action/UserHome.java and wiki/src/main/org/jboss/seam/wiki/core/action/NodeHistory.java we see a @Restrict annotation used on a POJO.
What's the deal? Are the docs wrong, or are the examples wrong, or am I misunderstanding this?
This is quite important for me because I need to put @Restrict annotations on basically all the components in my app, to go with a detailed rules file to define who can do what to what.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123791#4123791
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123791
18 years, 3 months