facebook

Validation errors in 5.0M2

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #255539 Reply

    dsurber
    Member

    I am getting lots of bogus validation errors in JSPs, and JavaScript.

    I know next to zip about JavaScript, but I’m using calendar widget I downloaded from

    http://dynarch.com/mishoo/calendar.epl

    I tested the hell out of it before I settled on using this particular calendar widget and it never broke on me. Maybe there are problems with the JS, but the browsers are all digesting it fine.

    Mostly it is complaining about invalid characters. I think the problem is that the JS files contain non-ASCII characters for things like name of day or name of month in non-English languages. It is annoying to have to look at the errors, but since I don’t write JS, it doesn’t bother me a lot.

    The JSP errors are a bigger problem. It complains about EL syntax errors at the last equal in

    <span class="RegNumber">ESC-${(dog.registrationNumber=='')?'<i>None</i>':dog.registrationNumber}</span>
    

    Once it has gone south with that error it stays confused for the next several lines . It seems to have a hard time with EL expressions that are in body text. Being confused also hoses up the auto-format. <cntl-I> is a bad thing. I must point out that I’m confident that all my EL and JSP syntax is correct because it all renders correctly.

    Here’s another line that get invalid EL syntax and causes many following lines to fail

    <span class="DOB">DOB: ${dateOfWhelp}</span><br>
    

    This same line appears in other places without causing problems.

    Almost all of my JSP files are marked with multiple errors, yet they all render. It has made the validation practically useless.

    Douglas

    #255656 Reply

    Riyad Kalla
    Member

    I tested the hell out of it before I settled on using this particular calendar widget and it never broke on me. Maybe there are problems with the JS, but the browsers are all digesting it fine.

    Our JS validator isn’t as smart as it should be yet. It’s not aware of a lot of the newer implicit objects in browsers JS implementations.

    Mostly it is complaining about invalid characters. I think the problem is that the JS files contain non-ASCII characters for things like name of day or name of month in non-English languages. It is annoying to have to look at the errors, but since I don’t write JS, it doesn’t bother me a lot.

    Disable the JS validator (there is a bug that sometimes pops up where the validator won’t turn off in Milestone 2, that will be fixed in GA).

    <span class=”RegNumber”>ESC-${(dog.registrationNumber==”)?'<i>None</i>’:dog.registrationNumber}</span>

    The EL validator is new as well so these may just be bugs that need to get ironed out, I will file this use case for dev team to look at.

    This same line appears in other places without causing problems.

    Almost all of my JSP files are marked with multiple errors, yet they all render. It has made the validation practically useless.

    I believe the EL validator is geared more towards the upcomming JSF/JSP EL (#{notation}) and not the older style, that might also explain why it’s marking up everything. I will file all these for investigation.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Validation errors in 5.0M2

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