facebook

myeclipse can’t reconcile html tags mixed with myfaces tags

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #256142 Reply

    hello everyone,

    I’m running eclipse 3.2 and myeclipse 5.0M2

    jsps that I’m working on use myfaces/tomahawk tags, and they are mixed with

    <f:verbatim>

    tags to wrap standard html tags.

    myeclipse cannot reconcile the begin and end html tags when they are
    separated by verbatim and myfaces tags.

    hence a typical jsp is flooded with error indications, even though the jsp will
    run fine. But the flood of errors can mask real errors.

    note that there is no problem with the myfaces tags; they are recognized
    and content assist works.

    Is there a way to configure myeclipse to reconcile this mix of tags?

    Thanks for your help in advance. I’ve googled without success but maybe I haven’t
    found the right combination of keywords that would lead me to something.

    Tom

    #256144 Reply

    Riyad Kalla
    Member

    Tom,
    Can you post a small example JSP page that exhibits the problem and let me know which libraries you have in the build path?

    #256158 Reply

    thanks for your response…here is a small jsp sample

    
    <%@ include file="/common/includes.jsp"%>
    
                <f:verbatim>
            <div class="tab-container" id="container1">
                </f:verbatim>
                    
                    <f:verbatim>
                <ul class="tabs">
                    <li><a href="#" onClick="return showPane('applicationComponent', 'applicationComponentDetailTab', this)" id="tab1">
                    </f:verbatim>
                        <h:outputText value="#{messages.componentsTab}"/>
                    <f:verbatim></a></li>
                </ul>
                    </f:verbatim>
        
                <f:verbatim>
            <div class="tab-panes">
                </f:verbatim>
    
                    <f:verbatim>
                <div id="applicationComponentDetailTab" class="tab-pane">
                    </f:verbatim>
                    <%@ include file="/application/forms/applicationComponentDetailForm.jsp"%>
                    <f:verbatim>
                </div>
                    </f:verbatim>
    
        <f:verbatim>
           </div>
        </div>
    
        <script type="text/javascript">
            <!--
            initPageTabs("applicationComponent", "container1", "tab1");
            //-->
        </script>
        </f:verbatim>
    

    here is the include if needed…

    
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="x"%>
    
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
    
    <%@ taglib prefix="authz" uri="http://acegisecurity.org/authz"%>
    
    <f:loadBundle basename="ApplicationMessages" var="messages" />
    
    #258031 Reply

    Paul Baker
    Member

    I have a similar problem…

    Both MyEclipse JSP Editor and MyEclipse JSP Designer reports:

    Information warning: No End Tag (</center>).
    for line: <f:verbatim><center></f:verbatim>

    Error: No Start Tag (<center>).
    for line: <f:verbatim></center></f:verbatim>

    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    
    <f:subview id="menuSubView">
        <h:form id="menuForm">
            <f:verbatim><center></f:verbatim>
            <f:loadBundle basename="com.baker.bundles.labels" var="labels" />
            <h:commandLink action="#{tripBean.dispTrip}" > 
                <h:outputText value="Retrieve Trip" styleClass="commandLink"/>
            </h:commandLink>
            <f:verbatim></center></f:verbatim>       
        </h:form>
    </f:subview>
    #258033 Reply

    Riyad Kalla
    Member

    Guys,
    I have filed this bug, in the mean time you can turn off the HTML validator to get rid of these errors. The problem is that the HTML validator just isn’t aware of what these taglibs are doing and is getting very confused. Sorry for the noise.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: myeclipse can’t reconcile html tags mixed with myfaces tags

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