File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF 1.2 Input Custom Component. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 1.2 Input Custom Component." Watch "JSF 1.2 Input Custom Component." New topic

JSF 1.2 Input Custom Component.

prashanth chaitanya

Joined: Nov 29, 2009
Posts: 15
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

Joined: Nov 29, 2009
Posts: 15
Can anyone help me on this please.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

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.

An IDE is no substitute for an Intelligent Developer.
prashanth chaitanya

Joined: Nov 29, 2009
Posts: 15
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

Joined: Oct 13, 2010
Posts: 11
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.

I agree. Here's the link:
subject: JSF 1.2 Input Custom Component.
It's not a secret anymore!