Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why h:outputScript attribute "name" is required

 
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
Saloon Keeper
Posts: 18303
56
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