facebook

Bug in JSP validation froma dangling less than sign

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240463 Reply

    revelate
    Member

    It appears that no wanring or error is given by the JSP validator when a dangling ‘<‘ less than sign is left in the JSP source.

    This is frustrating as the myfaces impl sort of ignores the error but appends the following warning to the console.

    The problem is not so much the warning but the absence of the location of the culprit causing the warning. It would be nice if the MyEclipse validator could flag the position of such occurences. It’s the second time this has happened to me and on both occasions it took me a good 20 mins to find the problem. I have a lot of JSP/JSF code.

    2005-10-31 08:59:07,468 WARN – Component with id ‘_id13:sub_scenario_builder_elems:ScenarioBuilderView:elements_sub_view:sv_check:check_component:panel_main’ (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsps/scenario/builder.jsp][Class: javax.faces.component.html.HtmlForm,Id: _id13][Class: javax.faces.component.html.HtmlPanelGrid,Id: SplitNavPage][Class: javax.faces.component.UINamingContainer,Id: sub_scenario_builder_elems][Class: javax.faces.component.UINamingContainer,Id: ScenarioBuilderView][Class: javax.faces.component.UINamingContainer,Id: elements_sub_view][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id47][Class: javax.faces.component.html.HtmlPanelGrid,Id: tests_element_pg][Class: javax.faces.component.UINamingContainer,Id: sv_check][Class: javax.faces.component.UINamingContainer,Id: check_component][Class: javax.faces.component.html.HtmlPanelGrid,Id: panel_main]}renders it’s children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!– –> style HTML comments.
    BodyContent:
    < – *** [org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:49)]

    e.g..


    <%– TABLE view –%>
    <f:subview id=”checkDetailsTable” rendered=”#{ilrScenarioMgr.testsBean.view == ‘TABLE_VIEW’}”>
    <h:panelGrid columns=”1″ styleClass=”box_2″ cellspacing=”0″ cellpadding=”0″ width=”100%”>
    <%@include file=”tests_table.jspf”%>
    </h:panelGrid>
    </f:subview>
    <
    <%– ADDITIONAL UPLOAD view –%>
    <h:panelGrid id=”file_upload_panel”> ……
    ….

    Environment MyFaces extensions + impl, Tomcat 5.0.28 + Java 1.4.2_09

    Cheers
    Keith Lynch

    #240482

    Riyad Kalla
    Member

    Keith,
    We will look into this, thank you for the report.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Bug in JSP validation froma dangling less than sign

You must be logged in to post in the forum log in