Fair enough :)
Seems that each component in tr:subform that is placed into
tr:panelFormLayout produces two html warnings.

Here is jsf page:
<f:view>
    <tr:form>
        <tr:panelFormLayout>
            <tr:subform>
                <tr:inputText />
            </tr:subform>
        </tr:panelFormLayout>
    </tr:form>
</f:view>

Produces (inline; i think it's necessary to send it as an attachment):

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd";><!--Start:
org.apache.myfaces.trinidad.Document["_idJsp0"]--><html dir="ltr" lang="en">
  <head>
    <meta name="generator" content="Apache Trinidad">
     
    <link rel="stylesheet" charset="UTF-8" type="text/css"
href="/ru.bpc.sandbox.trinidad/adf/styles/cache/rast-desktop-1349468388-en-gecko.css"><script
type="text/javascript">var _AdfWindowOpenError='A popup window blocker
has been detected in your browser. Popup blockers interfere with the
operation of this application. Please disable your popup blocker or
allow popups from this site.';</script><script type="text/javascript"
src="/ru.bpc.sandbox.trinidad/adf/jsLibs/DebugCommon1_0_2.js"></script><script
type="text/javascript">_defaultTZ()</script></head>
  <!--Start: org.apache.myfaces.trinidad.Document["_idJsp0"]-->

  <body onload="_checkLoad()" onunload="_checkUnload(event)"><div
id="_pprBlockingDiv" onclick="return _pprConsumeClick(event);"
style="position:absolute;left:0;top:0;width:0;height:0;cursor:wait;"
onkeydown="return false;" onkeyup="return false;" onmousedown="return
false;" onmouseup="return false;" onkeypress="return false;"></div><a
name="top"></a>
    <noscript>This page uses JavaScript and requires a JavaScript
enabled browser.Your browser is not JavaScript enabled.</noscript>
    <!--Start: org.apache.myfaces.trinidad.Form["_idJsp1"]-->
    <form id="_idJsp1" name="_idJsp1" style="margin:0px" method="POST"
onkeypress="return _submitOnEnter(event,'_idJsp1');"
action="/ru.bpc.sandbox.trinidad/faces/applicationform1.jsp"><!--Start:
org.apache.myfaces.trinidad.Panel["_idJsp2"]--><div
class="af_panelFormLayout"><table cellpadding="0" cellspacing="0"
border="0" summary="" style="width: auto"><tbody><tr>
              <td class="af_panelFormLayout_column" colspan="1"><table
cellpadding="0" cellspacing="0" border="0" width="100%"
summary=""><tbody><tr>
                      <td></td>
                       
                      <td></td>
                    </tr><tr>

                      <td></td>
                       
                      <td
class="af_panelFormLayout_content-cell"><!--INVALID HTML:--><!--Start:
org.apache.myfaces.trinidad.Input["_idJsp4"]--><tr
id="_idJsp3:_idJsp4__xc_">
                          <td class="af_inputText_label" nowrap><span
id="_idJsp3:_idJsp4::icon" style="display:none;"><a
name="_msgAnc__idJsp3:_idJsp4" title="Error"
class="AFErrorIconStyle">X</a></span></td>
                           
                          <td valign="top" nowrap
class="AFContentCell"><!--Start:
org.apache.myfaces.trinidad.Input["_idJsp4"]--><input
id="_idJsp3:_idJsp4" name="_idJsp3:_idJsp4" class="af_inputText_content"
size="30" type="text"></td>
                        </tr><!--INVALID HTML:--><!--Start:
org.apache.myfaces.trinidad.Input["_idJsp4"]--><tr>
                          <td></td>
                           
                          <td class="AFComponentMessageCell"><!--Start:
org.apache.myfaces.trinidad.Input["_idJsp4"]--><span
class="OraInlineInfoText"><span id="_idJsp3:_idJsp4::msg"
style="display:none;" class="OraInlineErrorText"></span></span></td>
                        </tr></td>

                    </tr></tbody></table></td>
            </tr></tbody></table></div><input type="hidden"
name="org.apache.myfaces.trinidad.faces.FORM" value="_idJsp1"><!--Start:
org.apache.myfaces.trinidad.Form--><span id="__idJsp1_Postscript"><input
type="hidden" name="org.apache.myfaces.trinidad.faces.STATE"
value="!1"><script type="text/javascript">function
__idJsp1Validator(){return true;}var
_idJsp1_SF={"_idJsp3":1};</script></span><script
type="text/javascript">_submitFormCheck();</script></form>
  </body>
  <!--Created by Apache Trinidad (Apache MyFaces Trinidad API -
1.0.2/Apache MyFaces Trinidad Impl - 1.0.2), skin:rast.desktop
(rast)--></html>


Thanks.

Danny Robinson wrote:
> If you can supply the source page snippet and the rendered output we
> should be able to figure out if there's a problem to report.
>
> Thx,
>
> Danny
>
> On 9/6/07, * Vadim Dmitriev* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi.
>     I was making up yet another page when noticed that when i open it
>     in the
>     browser about 10-15 warning got printed to console:
>
>     "07.09.2007 0:18:07
>     org.apache.myfaces.trinidadinternal.io.DebugHtmlResponseWriter
>     _errorWithComment
>     WARNING: Illegal HTML: cannot put a <tr> element in a <td> element."
>
>     I checked HTML and there are really some strange "<td><tr><td>"
>     blocks.
>     My question is should those warnings be reported? Or I just have
>     to set
>     logger threshold a little higher in production? :)
>
>     Thanks.
>
>
>
>
> -- 
> Chordiant Software Inc.
> www.chordiant.com <http://www.chordiant.com> 

Reply via email to