[richfaces-issues] [JBoss JIRA] (RF-11737) WARNING: Queue with name 'xxx' has already been registered

Milo van der Zee (Updated) (JIRA) jira-events at lists.jboss.org
Fri Nov 25 02:42:40 EST 2011


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

Milo van der Zee updated RF-11737:
----------------------------------

    Steps to Reproduce: 
{code:title=test.xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:vm="http://java.sun.com/jsf/composite/vm"
>

<vm:pageBody id="testje">
  <h:form>
    <a4j:commandButton>
      <a4j:attachQueue requestDelay="500"/>
    </a4j:commandButton>
  </h:form>
</vm:pageBody>
</html>
{code}

{code:title=pageBody.xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:t="http://myfaces.apache.org/tomahawk"
  xmlns:composite="http://java.sun.com/jsf/composite"
>

<composite:interface>
</composite:interface>

<composite:implementation>
  <h:head></h:head>

  <t:documentBody style="background-color: #{webSession.user.color};">
    <composite:insertChildren/>
	
    <h:form>
      <a4j:commandButton>
        <a4j:attachQueue requestDelay="500"/>
      </a4j:commandButton>
    </h:form>
  </t:documentBody>
</composite:implementation>
</html>
{code}

and put pageBody.xhtml in 'resources/vm'.

Now the Eclipse console will show the warning every time either of the buttons is pressed. As soon as the button inside the composite is removed the warnings will also go away.

  was:
{code:title=test.xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:vm="http://java.sun.com/jsf/composite/vm"
>

<vm:pageBody id="testje">
  <h:form>
    <a4j:commandButton>
      <a4j:attachQueue requestDelay="500"/>
    </a4j:commandButton>
  </h:form>
</t:documentBody>
</html>
{code}

{code:title=pageBody.xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:t="http://myfaces.apache.org/tomahawk"
  xmlns:composite="http://java.sun.com/jsf/composite"
>

<composite:interface>
</composite:interface>

<composite:implementation>
  <h:head></h:head>

  <t:documentBody style="background-color: #{webSession.user.color};">
    <composite:insertChildren/>
	
    <h:form>
      <a4j:commandButton>
        <a4j:attachQueue requestDelay="500"/>
      </a4j:commandButton>
    </h:form>
  </t:documentBody>
</composite:implementation>
</html>
{code}

and put pageBody.xhtml in 'resources/vm'.

Now the Eclipse console will show the warning every time either of the buttons is pressed. As soon as the button inside the composite is removed the warnings will also go away.


    
> WARNING: Queue with name 'xxx' has already been registered
> ----------------------------------------------------------
>
>                 Key: RF-11737
>                 URL: https://issues.jboss.org/browse/RF-11737
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 4.1.0.CR1
>         Environment: RF4.0.1.20111111RC1, Mojarry 2.1.4, Tomcat 7.0.21, Gentoo Linux
>            Reporter: Milo van der Zee
>            Assignee: Lukáš Fryč
>
> As soon as a component with a queue is put inside a composite it will create a warning as soon as the compont is used (clicking a button or firing a poller event). Even if other components outside the composite are used.

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