[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3104) StatusMessages cannot be required

Marcell Barbacena (JIRA) jira-events at lists.jboss.org
Thu Jun 12 16:01:43 EDT 2008


StatusMessages cannot be required
---------------------------------

                 Key: JBSEAM-3104
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-3104
             Project: Seam
          Issue Type: Bug
          Components: Wicket
    Affects Versions: 2.1.0.A1
         Environment: JBoss 4.2, Wicket example
            Reporter: Marcell Barbacena


Create a generic component:

@Name("some")
public class Some {
  private @In StatusMessages statusMessages;
  public void doSome() {statusMessages.info("here");}
}

attach it to components.xml:
<event type="org.jboss.seam.security.notLoggedIn">
  <action execute="#{some.doSome}"/>
</event>

A error occur saying that statusMessages cannot be required. However, chaging it: @In(required=false), the statusMessages is injected and the message enqueued.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list