The best place to ask programming/development questions, imo. UPDATE: stackoverflow is the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but a great reference for finding answers.

My Music (Nickleus)

20120530

how to get rid of "Multiple annotations found at this line: Syntax error in EL, Expression must be a value expression but is a method" in jsf/xhtml files in eclipse indigo


with my minimal eclipse java ee configuration:

which eclipse plugin(s) to install in order to get F3 "go to backing bean source" functionality in jsf/xhtmlhow to configure eclipse to run jboss in debug mode using jsf 1.2, richfaces 3.3, seam 2 and ejb3


in jsf/xhtml files i get lots of errors like this:
Multiple annotations found at this line:
- Syntax error in EL
- Expression must be a value expression but is a method

to get rid of these annoying errors, that really aren't errors, do this in eclipse:
window > preferences > web > javaserver faces tools > validation > uncheck Validate EL on Build/Run Validation

then right click on your project and choose Validate. now the errors should be gone.

thanks to BalusC: http://stackoverflow.com/questions/1790749/jsp-el-expression-language-causing-problems-in-eclipse

1 comment:

  1. <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.sql.*" %>

    the error was,
    Multiple annotations found at this line:
    - The import javax.servlet cannot be
    resolved
    - The import javax.servlet cannot be
    resolved

    ReplyDelete