• Post Reply Bookmark Topic Watch Topic
  • New Topic

A JSF newbie: some random questions  RSS feed

 
alrem mashayekhi
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JAVA EE 6


1. I have this code in my jsf page:




I get the error

/reservation.xhtml at line 60 and column 86 <f:passThroughAttributes> Tag Library supports namespace: http://java.sun.com/jsf/core, but no tag was defined for name: passThroughAttributes



Does the f:passThroughAttributes only work in JSF 2.2 only? If yes is the answer, what could I substitute for it to make this run in JSF2.0? (JSF2.0 since i am running JAVA EE 6)



2. Question #2: I am confused with these two labels:

a. http://xmlns.jcp.org/jsf/ and http://java.sun.com/jsf/. When should one use which? Should I always use the latter if I am using JAVA EE 6?


thanks that will be all. Good day.
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the docs provided by Oracle (and inherited from Sun) weren't so horrible, they might have included a "since" annotation and I'd be able to tell.

Not having heard of those particular tags before however, I'll just have to assume that yes, they're new since JSF 2.2.

You are evidently using a xmlns:f="http://java.sun.com/jsf/core" that's defined for JSF 2.0 or earlier. It's probably bundled in with the JSF implementation library you're using.

JCP is the Java Community Process and I'd expect it to mostly apply to experimental stuff, so given the choice, go with a sun (or oracle) namespace definition unless you're playing on the bleeding edge.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!