[jboss-jira] [JBoss JIRA] (AS7-4366) Facelets and JSF composite components doesn't work together on JBoss 7.1.1.Final

Hendy Irawan (JIRA) jira-events at lists.jboss.org
Fri Apr 6 17:28:47 EDT 2012


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

Hendy Irawan commented on AS7-4366:
-----------------------------------

Stack overflow thread: http://stackoverflow.com/questions/9735593/nested-composite-component-broken-in-jboss-7-1-1

Workaround :

Valentinx in this thread ( https://community.jboss.org/message/724991 ) found a workaround.

The idea is to put the faulty namespace declarations on the <composite:implementation> itself, so

{code}
<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:cc="http://java.sun.com/jsf/composite"
  xmlns:my="http://java.sun.com/jsf/composite/components/my" >
<cc:interface />
<cc:implementation>
     <my:nestedComponent content="a text" />
</cc:implementation>
</html>
{code}

becomes

{code}
<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:cc="http://java.sun.com/jsf/composite" >
<cc:interface />
<cc:implementation xmlns:my="http://java.sun.com/jsf/composite/components/my">
     <my:nestedComponent content="a text" />
</cc:implementation>
</html>
{code}

(notice the <cc:implementation xmlns:my="http://java.sun.com/jsf/composite/components/my"> tag)

This works like a charm!
                
> Facelets and JSF composite components doesn't work together on JBoss 7.1.1.Final
> --------------------------------------------------------------------------------
>
>                 Key: AS7-4366
>                 URL: https://issues.jboss.org/browse/AS7-4366
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 7.1.1.Final
>         Environment: Operating System: Redhat 5.5 Linux; Firefox browser on redhat Linux
>            Reporter: Devinder Singh
>            Assignee: Stan Silvert
>            Priority: Critical
>
> Facelets and composite components doesn't work together with 7.1.1 final. Same code use to work with Jboss 7.1.0 release. Below link to the forum has all the details. 
> This is a critical bug that can prevent us from migrating to 7.1.1 Final

--
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 jboss-jira mailing list