[richfaces-issues] [JBoss JIRA] (RF-12008) Add RichFaces AS7 module to distribution

Radim Hanus (JIRA) jira-events at lists.jboss.org
Mon Feb 27 11:15:37 EST 2012


    [ https://issues.jboss.org/browse/RF-12008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671248#comment-12671248 ] 

Radim Hanus edited comment on RF-12008 at 2/27/12 11:15 AM:
------------------------------------------------------------

how to setup richfaces-4.2.0.Final as a module in jboss-7.1.0.Final:
1.) create module dir jboss-7.1.0.Final/modules/org/richfaces/4.2.0.Final
2.) copy there richfaces jars from richfaces-4.2.0.Final.zip distribution:
richfaces-components-api-4.2.0.Final.jar
richfaces-components-ui-4.2.0.Final.jar
richfaces-core-api-4.2.0.Final.jar
richfaces-core-impl-4.2.0.Final.jar
3.) add following module.xml:
<module xmlns="urn:jboss:module:1.1" name="org.richfaces" slot="4.2.0.Final">
    <resources>
        <resource-root path="richfaces-components-api-4.2.0.Final.jar"/>
        <resource-root path="richfaces-components-ui-4.2.0.Final.jar"/>
        <resource-root path="richfaces-core-api-4.2.0.Final.jar"/>
        <resource-root path="richfaces-core-impl-4.2.0.Final.jar"/>
        <!-- Insert resources here -->
    </resources>
    <dependencies>
      <module name="org.w3c.css.sac"/>
      <module name="net.sourceforge.cssparser"/>
      <module name="com.sun.jsf-impl"/>
      <module name="javax.api"/>
      <module name="javax.faces.api"/>
      <module name="javax.xml.bind.api"/>
      <module name="javax.xml.jaxp-provider"/>
      <module name="com.google.guava"/>
    </dependencies>
</module>

how to reference richfaces-4.2.0.Final module from an ear deployment using descriptor jboss-deployment-structure.xml:
<jboss-deployment-structure>
   <sub-deployment name="webapp.war">
      <dependencies>
       <module name="org.richfaces" slot="4.2.0.Final">
          <imports>
             <include path="**"/>
          </imports>
       </module>
      </dependencies>
   </sub-deployment>
</jboss-deployment-structure>

                
      was (Author: rhanus):
    how to setup richfaces-4.2.0.Final as a module in jboss-7.1.0.Final:
1.) create jboss-7.1.0.Final/modules/org/richfaces/4.2.0.Final
2.) copy there richfaces jars from richfaces-4.2.0.Final.zip distribution: richfaces-components-api-4.2.0.Final.jar,richfaces-components-ui-4.2.0.Final.jar,richfaces-core-api-4.2.0.Final.jar,richfaces-core-impl-4.2.0.Final.jar
3.) add following module.xml:
<module xmlns="urn:jboss:module:1.1" name="org.richfaces" slot="4.2.0.Final">
    <resources>
        <resource-root path="richfaces-components-api-4.2.0.Final.jar"/>
        <resource-root path="richfaces-components-ui-4.2.0.Final.jar"/>
        <resource-root path="richfaces-core-api-4.2.0.Final.jar"/>
        <resource-root path="richfaces-core-impl-4.2.0.Final.jar"/>
        <!-- Insert resources here -->
    </resources>
    <dependencies>
      <module name="org.w3c.css.sac"/>
      <module name="net.sourceforge.cssparser"/>
      <module name="com.sun.jsf-impl"/>
      <module name="javax.api"/>
      <module name="javax.faces.api"/>
      <module name="javax.xml.bind.api"/>
      <module name="javax.xml.jaxp-provider"/>
      <module name="com.google.guava"/>
    </dependencies>
</module>

how to reference richfaces-4.2.0.Final module from a deployment using descriptor jboss-deployment-structure.xml:
<jboss-deployment-structure>
   <sub-deployment name="webapp.war">
      <dependencies>
       <module name="org.richfaces" slot="4.2.0.Final">
          <imports>
             <include path="**"/>
          </imports>
       </module>
      </dependencies>
   </sub-deployment>
</jboss-deployment-structure>

                  
> Add RichFaces AS7 module to distribution
> ----------------------------------------
>
>                 Key: RF-12008
>                 URL: https://issues.jboss.org/browse/RF-12008
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: build/distribution
>            Reporter: Lukáš Fryč
>             Fix For: 4.Future
>
>
> It would be nice to have RichFaces packed as JBoss AS7 module, so it could be just grabbed and inserted to  {{modules}} directory (similary to SnowDrop distribution [1]).
> It would allow to reuse RichFaces between projects and make the WARs really skinny for those who are deploying several RichFaces-based applications to the AS7.
> [1] https://docs.jboss.org/author/display/SNOWDROP/The+Spring+Deployer

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list