[richfaces-issues] [JBoss JIRA] (RF-11815) RichFaces version not displayed via EL expression #{a4j} on JBoss AS 7

Brian Leathem (Updated) (JIRA) jira-events at lists.jboss.org
Fri Dec 23 16:08:09 EST 2011


     [ https://issues.jboss.org/browse/RF-11815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11815:
-------------------------------

        Summary: RichFaces version not displayed via EL expression #{a4j} on JBoss AS 7  (was: Showcase no longer displays the RichFaces version on the page)
    Description: 
The EL expression _#{a4j}_ is defined in _richfaces-core-impl_, and is used to display the RichFaces version on a page.

This is visible on the showcase as the line along the bottom:
{quote}
RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.1-SNAPSHOT SVN r.unknown
{quote}

This does not work on JBoss AS.  It should be re-instated.

  was:
The showcase used to have the line along the bottom:
{quote}
RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.1-SNAPSHOT SVN r.unknown
{quote}
This has been lost in the latest release.  It (or something similar) should be re-instated.

       Priority: Major  (was: Trivial)


It does not work on JBoss AS, because the URL returned from:
{code}
CodeSource codeSource = domain.getCodeSource();
URL url = codeSource.getLocation();
{code}
uses the _vfs_ protocol, whereas it uses the _jar_ protocol in non-vfs containers.

As such, the stream file built up with :
{code}
manifestFileUrl = new URL(url, JarFile.MANIFEST_NAME);
{code}
strips the jar filename from the URL context when building up the URL object.

The solution to this is to ask the codeSource URL for it's protocol, and if it is VFS, build the Manifest File URL string manually, as in:
{code}
String manifestFile = String.format("%s/%s", url.toExternalForm(), JarFile.MANIFEST_NAME);
manifestFileUrl = new URL(manifestFile);
{code}
                
> RichFaces version not displayed via EL expression #{a4j} on JBoss AS 7
> ----------------------------------------------------------------------
>
>                 Key: RF-11815
>                 URL: https://issues.jboss.org/browse/RF-11815
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: showcase
>    Affects Versions: 4.1.0.Final
>            Reporter: Brian Leathem
>            Assignee: Brian Leathem
>             Fix For: 4.1.1.Final
>
>
> The EL expression _#{a4j}_ is defined in _richfaces-core-impl_, and is used to display the RichFaces version on a page.
> This is visible on the showcase as the line along the bottom:
> {quote}
> RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.1-SNAPSHOT SVN r.unknown
> {quote}
> This does not work on JBoss AS.  It should be re-instated.

--
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