This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes Why h:outputScript attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Why h:outputScript attribute "name" is required" Watch "Why h:outputScript attribute "name" is required" New topic
Author

Why h:outputScript attribute "name" is required

Bupjae Lee
Ranch Hand

Joined: May 14, 2007
Posts: 107
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

Joined: Jun 25, 2001
Posts: 14561
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why h:outputScript attribute "name" is required
 
Similar Threads
Problem while Tag lib Up gradation
Custom tags doubt
Custom Tag doubt
JSTL & EL, not resolving my ${identifier} syntax?
[JSF 2] Ajax : where is jsf.js ?