"nickarls" wrote : Well, if its not auto-create it will be null the first time 
referenced. Add a create=true to the @In annotation.

public class RegisterAction {
  |     @In(create=true )
  |     private User user;

2008-1-29 16:54:00 com.sun.facelets.FaceletViewHandler handleRenderException
  | 严重: Error Rendering View[/register.xhtml]
  | javax.faces.FacesException: javax.el.ELException: 
//D:/app/eclipse/framework/PROJECT_SRC/TestWeb/WebRoot/register.xhtml @82,76 
value="#{register.verify}": org.jboss.seam.RequiredException: @In attribute 
requires non-null value: register.user
  |     at javax.faces.component.UIOutput.getValue(UIOutput.java:187)
  |     at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124300#4124300

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124300

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to