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

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Jun 23 10:23:30 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-3104?page=all ]

Pete Muir closed JBSEAM-3104.
-----------------------------

    Resolution: Rejected

Use @In(create=true)

> 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