facebook

JSF syntax checker error

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

    spanlink
    Member

    I have 2 files.
    – MyJsp.jsp
    – MyJspFragment.jspf

    MyJsp.jsp includes the fragment file. The syntax checker (MyEclipse 5.0 GA/Eclipse 3.2) gave me the
    following error in the <%@ include file=”MyJspFragment.jspf”%> statement:

    Multiple annotations found at this line:
    – Syntax error on token “}”, { expected
    – Syntax error, insert “Finally” to complete TryStatement

    Here is my code:
    FileName: MyJsp.jsp

    
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
        <base href="<%=basePath%>">
    
        <title>My JSF 'MyJsp.jsp' starting page</title>
        
    </head>
      
    <body>
        <f:view>
            <f:subview>
                <%@ include file="MyJspFragment.jspf"%>
            </f:subview>
        </f:view>
    </body>
    </html>
    

    FileName: MyJspFragment.jspf

    
    <%@ page language="java" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <h:panelGrid width="100%">
        <h:dataTable value="#{baseUserDto.alternateExtensions}" var="alternateExtension">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="#{screen.number}" />
                </f:facet>
                <h:outputText value="#{alternateExtension.index}" />
                <f:facet name="footer">
                    <h:panelGrid width="100%" cellspacing="1">
                        <h:outputText value=""></h:outputText>
                    </h:panelGrid>
                </f:facet>
            </h:column>
        </h:dataTable>
    </h:panelGrid>
    

    #256695 Reply

    Riyad Kalla
    Member

    This is a known bug that is occuring on some setups, we are investigating it.

    #261049 Reply

    ghamphy
    Member

    Has there been any breakthru in this regard? I am getting this error now, How do I get around It? ❓

    #261055 Reply

    HeinzSueess
    Member

    Hi

    Is there a workaround or fix for the problem?

    #261064 Reply

    Riyad Kalla
    Member

    No workaround but this will be fixed in the 5.0.3 release, we are entering the testing stage today and it should be out the 1st or 2nd week of Nov depending on how our testing and last minute tightening up of the code goes.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSF syntax checker error

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