File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why h:outputScript attribute "name" is required

 
Bupjae Lee
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote following JSF Facelet code:



But, NetBeans 7.0.1 says that "The required attribute name is missing" at line 2.
When I open this page with my browser, the inline script is worked correctly.

My question is, although my code works correctly, why my IDE complains?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know, but I'm not sure that you can safely use the "$" jQuery notation in JSF due to potential conflicts with the EL processor. It's safer to use the "jQuery" form, instead.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic