Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF 1.2 Input Custom Component.

 
prashanth chaitanya
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i know there are some differences in building custom components with JSF1.1 and JSF 1.2. I have been trying to build a simple Input Custom Component with JSF1.2 and not able to figure out what is going wrong.Can some one give me a link or place where i can go and search for the procedure for building JSF 1.2 Custom Input Components.This is pretty important as i am stuck on this.
 
prashanth chaitanya
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me on this please.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a section in Kito Mann's "JSF in Action" book (Manning Press) that describes how to build custom JSF components. They're a lot more complicated than JSP custom tags, partly because they split logic and rendering into 2 separate sub-components.
 
prashanth chaitanya
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the book discusses about JSF 1.1. There are pretty much changes between JSF1.1 and JSF1.2.Can you please tell where i can find required documentation about JSF1.2.
 
Tommaso Tama
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the same problem ... I needed to write the content of an input text if the input text itself was readonly.

I solved in this way:




After you have to modify faces-config.xml adding :





Then, create a new xml file and put it under your web-inf folder (i.e. customTag.xml)




If you use RichFaces, you have to add to your web.xml


Then use it in your page:




I Hope it helps.

Bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic