[richfaces-issues] [JBoss JIRA] Created: (RF-3319) Duplicate class attribute

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu May 1 19:46:18 EDT 2008


Duplicate class attribute
-------------------------

                 Key: RF-3319
                 URL: http://jira.jboss.com/jira/browse/RF-3319
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.1.5
            Reporter: Nick Belaevski
         Assigned To: Nick Belaevski
             Fix For: 3.1.6


We have been investigating upgrading to richfaces 3.1.5 or 3.2.0 sp1.  In our testing of 3.1.5, we found a strange situation where any page with an a4j:commandButton that has a styleClass set will not render.  The rendered page has an XML parsing error with two class attributes set in the <input> tag.

Here's the error:
XML Parsing Error: duplicate attribute
Location: http://localhost/sec ure/alua/a4jTest.seam?cid=2
Line Number 262, Column 301:<input class="buttonClassTestCase" id="j_id144:j_id145" name="j_id144:j_id145" onclick="A4J.AJAX.Submit('_viewRoot','j_id144',event,{'parameters':{'j_id14 4:j_id145':'j_id144:j_id145'} ,'actionUrl':'/secure/alua/a4jTest.seam?javax.portlet.faces.DirectLink=true '} );return false;" value="Does Nothing" class="buttonClassTestCase" type="button" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="_id3" />

Here's the xhtml page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w 3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
               xmlns:s="http://jboss.com/products/seam /taglib"
               xmlns:ui="http://java.sun.com/jsf/facelets"
               xmlns:f="http://java.sun.com/jsf/core"
               xmlns:h="http://java.sun.com/jsf/html"
               xmlns:rich="http://richfaces.ajax4jsf.org/ric h"
               xmlns:a4j="https://ajax4jsf.dev.java.net/aja x"
               xmlns:app="http://www.aluapaddockpro.com/jsf< /a>"
               template="../template/nonAjaxLayout.xhtml">
  <ui:define name="content">
     <style>

       .buttonClassTestCase
       {
          width: 190px
       }

   </style>

       <h:form>
             <a4j:commandButton   value="Does Nothing"
                                  styleClass="buttonClassTestCase"/>   
       </h:form>                         
 </ui:define>
</ui:composition>

We see this error only in FireFox and using richFaces 3.1.5.  Not in 3.1.4 or 3.2.0.


-- 
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 richfaces-issues mailing list