glassfish « Bean « JSF Q&A





1. Temoporarily suppress beanvalidation with JSF    stackoverflow.com

i have a User class with a field for the e-mail-address and a password.

@NotNull
@Size(min=6)
@Pattern(flags=Pattern.Flag.CASE_INSENSITIVE ,regexp="[^ ]*")
private String password = null;

@NotNull) 
@Size(max=60) 
@EmailUse // Check if the email-address is already in the ...

2. Faces Bean Validation doesn't work on Glassfish 3.1.1    stackoverflow.com

I've used bean validation in a request scoped managed bean.

@ManagedBean(name = "loginController")
@RequestScoped
public class LoginController implements Serializable {

private static final long serialVersionUID = -7174581953062231554L;

@NotNull(message = "Password!")
private String mPassword;

@NotNull
private String mUsername;
...
...
public ...

3. JSF backing bean reference    java.net

When I use this URL the Login.jsf is being mapped to the FacesServlet because the Login.jsp page is loaded and the content is present; minus any backing bean values of course, which is the problem. And I know the app server can find my classes too because when I use the jsp:useBean tag to load the backing bean manually, things work ...

6. JSF Backing Bean problem    java.net

9. POJO serialization between JSF managed bean and EJB session bean    java.net

I'd like to avoid the serialization between a JSF managed bean and a EJB session bean (Remote interface). If the JSF bean communicates with the EJB session bean the POJO is being serialized. How do I avoid that? I've heard about a config option called same-VM. Or are there any other solutions?





11. JSF Session Bean persistence    java.net

12. @EJB in JSF-managed beans in GlassFish v2?    java.net

> My local interface: > > @javax.ejb.Local > public interface Calculator { > Integer add(Integer x, Integer y); > } > > My EJB stateless session bean: > > @javax.ejb.Stateless > public class CalculatorImpl implements Calculator { > public Integer add(Integer x, Integer y) { > return (x == null || y == null) ? null : x+ y; > } ...