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

is .tldJ files are also required to change while migrating JSF 1.2 to JSF2 Migration ?  RSS feed

 
kishi kiran
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am doing the migration of JSF 1.2 to JSF 2.0, in my web application i have jsf_core.tld, html_basic.tld, mojarra_ext.tld files in m WEB-INF folder which are of version 1.2
I have some questions here like,
1. whether should we remove these *.tld files from WEB_INF?
2. should we replace with JSF2.0 version tlds in WEB_INF folder? (Here i have googled i didnot find any tlds related to JSF2.0)
3. After removing the html_basic.tld file JSF html tags are not recognised in my xhtml pages (h:form, h:outputLabe, h:inputTextl etc,. are showing red color warnings)

can some one guide me on this how to do proper migration from JSF1.2 to JSF2.0


Thanks in Advance!

Kiran.
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's actually a very confusing issue. I've seen indications that tlds are either ignored or optional in JSF, depending on what implementation you're using, while on the other hand, there are entirely different files needed to define custom tags for JSF2's facelets framework.

You can always check the docs for your particular JSF2 implementation if it worries you, but I just gave up and left them in.

Traditional TLDs are of limited use in JSF2, since the JSF2 tags are not servlet tags, they're special entities in their own right. Plus JSF2 doesn't enforce attribute names the way that older systems did (using TLDs to determine what attributes were valid). I also gave up on IDEs being able to make sense of that mess. I have enough trouble with getting Eclipse to edit HTML or XML without stalling or even occasionally crashing, so the lack of visual cues isn't at the top of my priority list.
 
kishi kiran
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, then I will replace the tlds inplace and i will check it once.

Thanks for the replay.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!