• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF 1.2 Input Custom Component.

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone help me on this please.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic