[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-502) add package namespaces to simplify component XML configuration
Norman Richards (JIRA)
jira-events at jboss.com
Wed Nov 15 01:32:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBSEAM-502?page=comments#action_12347055 ]
Norman Richards commented on JBSEAM-502:
----------------------------------------
Some further notes. In the above example, if the PaymentController class has the annotation @Name("paymentHome"), we could also use:
<pay:paymentHome>
<pay:newInstance>#{newPayment}</pay:newInstance>
<pay:createdMessage>Created a new payment to #{newPayment.payee}</pay:createdMessage>
</pay:paymentHome>
If the components have a namespace associated with name like @Name("org.jboss.seam.core.init"), then it is necessary to use the prefix attribute of @Namespace to qualify the name to configure based on component name instead of class name. For example:
@Namespace(value="http://jboss.com/products/seam/core", prefix="org.jboss.seam.core")
package org.jboss.seam.core;
This allows to <core:init> to map to "org.jboss.seam.core.init". Without the prefix, you would have to use <core:Init name="org.jboss.seam.core.init"> to match on the class name.
> add package namespaces to simplify component XML configuration
> --------------------------------------------------------------
>
> Key: JBSEAM-502
> URL: http://jira.jboss.com/jira/browse/JBSEAM-502
> Project: JBoss Seam
> Issue Type: Feature Request
> Affects Versions: 1.1.0.CR1
> Reporter: Norman Richards
> Assigned To: Norman Richards
>
> This fix is for updates to components.xml to allow namespaces to be used to simplify component configuration. The ultimate goal is to be able to configure components like this:
> <core:init>
> <core:debug>true</core:debug>
> <core:jndiPattern>@jndiPattern@</core:jndiPattern>
> </core:init>
--
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