This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why h:outputScript attribute "name" is required  RSS feed

 
Bupjae Lee
Ranch Hand
Posts: 107
  • 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
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!