[richfaces-issues] [JBoss JIRA] (RF-12606) rich:calendar bad Html syntaxe a table is under span, wich is not allowed (cause ajax error?('error at malformedXML'))

Adrien Adrien (JIRA) jira-events at lists.jboss.org
Sun Nov 11 14:54:18 EST 2012


Adrien Adrien created RF-12606:
----------------------------------

             Summary: rich:calendar bad Html syntaxe a  table is under span, wich is not  allowed (cause ajax error?('error at malformedXML'))
                 Key: RF-12606
                 URL: https://issues.jboss.org/browse/RF-12606
             Project: RichFaces
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: component-input
    Affects Versions: 4.3.0.M2
         Environment: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=calendar&skin=blueSky
            Reporter: Adrien Adrien
             Fix For: 4.3.0.M2


In html code rich:calendar has table under span.

Seem to cause error (a4j:log) in my code during ajax refresh :
--------------------------------------------------------------
error[20:47:12.191]: Received 'error at malformedXML' event from <input ...
error[20:47:12.192]: [200] undefined: undefined

Example
-------------
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=calendar&skin=blueSky

W3c don't detect error , but it's visible with firebug when you inspect rich:calendar

Use firefox plugin  HTML Validor http://users.skynet.be/mgueury/mozilla/
---------------------------------------------------------------------- 
validate page after javascript excecution
line 101 column 986 - Erreur: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag



code:
<span style="width:200px" id="j_idt1578:calendar">

<span style="white-space: nowrap;" id="j_idt1578:calendarPopup"><input type="text" style="vertical-align: middle; " readonly="readonly" name="j_idt1578:calendarInputDate" id="j_idt1578:calendarInputDate" class="rf-cal-inp "><img style="vertical-align: middle" src="/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.3.Final/PackedCompressed/blueSky/org.richfaces.images/calendarIcon.png" id="j_idt1578:calendarPopupButton" class="rf-cal-btn " alt=""><input type="hidden" value="11/2012" style="display:none" name="j_idt1578:calendarInputCurrentDate" id="j_idt1578:calendarInputCurrentDate" autocomplete="off"></span>

<table cellspacing="0" cellpadding="0" border="0" onclick="RichFaces.$('j_idt1578:calendar').skipEventOnCollapse=true;" style="display:none; position:absolute;z-index: 3" class="rf-cal-extr rf-cal-popup undefined" id="j_idt1578:calendarContent"><tbody><tr><td 

...blablabla
</table>
</span>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list