• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to turnoff/disable JSF warning messages

 
Joshua White
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

I am seeing the following warnings in my log files:



The mispelling "onZZZclick" was intentional. The html filters would not let the correct spelling go by. =(

This application is using myfaces 1.1.3 and tomahawk 1.1.2. Is there a way to "disable" these warning messages?

Regards,

Joshua
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you may be running into confusion with the JSF-aware JavaScript vs. the non-JSF JavaScript attributes.

JSF pages are XML-strict, so capitalization is important. If you exactly match case AND the JSF tag in question supports that particular JavaScript action attribute, you're OK. Check the JSF tag docs to check it.

On the other hand, you cannot add arbitrary attributes to a JSF element. Unlike HTML, which ignores them, many JSF processors will flag it as an error - possibly a fatal one. Even if the page is processed and output, there's no guarantee that the attribute will be passed through to appear in whatever HTML gets generated from the JSF tag.

In other words, if you don't honor the rules, you may end up with problems.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!