[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3104) StatusMessages cannot be required
Marcell Barbacena (JIRA)
jira-events at lists.jboss.org
Mon Jun 23 21:28:28 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-3104?page=comments#action_12418627 ]
Marcell Barbacena commented on JBSEAM-3104:
-------------------------------------------
Shouldn't WicketStatusMessages have a @AutoCreate instead of having to specify the create attribute at the injection? It is expected by default that this component is already created, isn't it?
> 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