[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:23:41 EST 2006


    [ http://jira.jboss.com/jira/browse/JBSEAM-502?page=comments#action_12347054 ] 
            
Norman Richards commented on JBSEAM-502:
----------------------------------------

Added @Namespace annotation to associate a namespace with a package.  

Assigned org.jboss.seam.core to http://jboss.com/products/seam/core

Refactored Scanner.java to allow for scanning of packages for namespaces

Updated Initialization to recognize the new XML constructs.


Example usage, for both core seam components and application components

<components  xmlns:core="http://jboss.com/products/seam/core" 
                          xmlns:pay="http://jboss.com/products/seam/examples/seampay"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <pay:PaymentController name="paymentHome">
        <pay:newInstance>#{newPayment}</pay:newInstance>
        <pay:createdMessage>Created a new payment to #{newPayment.payee}</pay:createdMessage>
    </pay:PaymentController>

    <pay:Payment name="newPayment">
        <pay:payee>Somebody</pay:payee>
        <pay:account>#{selectedAccount}</pay:account>
        <pay:paymentDate>#{currentDatetime}</pay:paymentDate>
        <pay:createdDate>#{currentDatetime}</pay:createdDate>
    </pay:Payment>

  <!-- etc... --->

    <core:init>
        <core:debug>true</core:debug>
        <core:jndiPattern>@jndiPattern@</core:jndiPattern>
    </core:init>

    <core:ejb installed="@embeddedEjb@" />
</components>

The package annotation for seampay would be:

@Namespace(value="http://jboss.com/products/seam/examples/seampay")
package org.jboss.seam.example.seampay;

import org.jboss.seam.annotations.*;




> 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