[richfaces-issues] [JBoss JIRA] Commented: (RF-899) Check that all components output single "class" attribute
Marine Wacheux (JIRA)
jira-events at lists.jboss.org
Tue Jun 24 10:18:31 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-899?page=comments#action_12418725 ]
Marine Wacheux commented on RF-899:
-----------------------------------
Hi,
I have the problem with "a4j:commandButton" component in RichFaces 3.1.5 :
it renders sometimes two attributes "class". It's a blocking problem, as HTML isn't correctly formatted, and so can't be converted to PDF, for example :
org.xml.sax.SAXParseException: Attribute "class" was already specified for element "input".
Here is source code :
<a4j:commandButton id="btnAjouter" value=" "
title="#{msgG.Ajouter}"
disabled="#{suiviMedicalHospitForm.modifOuCreationEnCours}"
action="#{suiviMedicalHospitController.ajouter}"
ajaxSingle="true"
reRender="panelListeSuiviMedical,panelCreationOuModif"
styleClass="BTN_AJOUTER" style="float:left;"/>
And HTML generated :
<input class="BTN_AJOUTER" id="body:formSuiviMedical:tableSuiviMedical:btnAjouter" name="body:formSuiviMedical:tableSuiviMedical:btnAjouter" onclick="A4J.AJAX.Submit('_viewRoot','body:formSuiviMedical',event,{'parameters':{'body:formSuiviMedical:tableSuiviMedical:btnAjouter':'body:formSuiviMedical:tableSuiviMedical:btnAjouter'} ,'actionUrl':'/gcm-web-patients/faces/jsp/operatoire/SuiviMedicalHospit.jsp?javax.portlet.faces.DirectLink=true'} );return false;" value=" " class="BTN_AJOUTER" style="float:left;" title="Ajouter" type="button" />
Is there a workaround for this ?
Thanks
> Check that all components output single "class" attribute
> ---------------------------------------------------------
>
> Key: RF-899
> URL: http://jira.jboss.com/jira/browse/RF-899
> Project: RichFaces
> Issue Type: Task
> Affects Versions: 3.1.0
> Environment: Facelets
> Reporter: Nick Belaevski
> Assigned To: Tsikhon Kuprevich
> Fix For: 3.2.0
>
>
> We have been reported about multiple cases when styleClass component attribute is written to HTML page as "class" attribute twice, thus brokening markup. We should test all components for the case
--
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