Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF 1.2 Custom Component  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building a custom tld library to hold and <input> element and a <form> element.

completed the tld file with all attributes included. I am having a problem on how to go around the Client ID.

My input has an hard coded name attribute and a value attribute that will be embedded in the form element at all times. My form element has an ID Attribute. JSF generates a custom ID which makes it look messy.

I'm writing a Renderer's class extending an HTMLBasicRenderer but I dont know if I am headed the right direction..
 
Ranch Foreman
Posts: 475
3
Android Eclipse IDE Java
  • X Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like you are asking in the wrong forum. This forum is for Java, not HTML.
 
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 3064
248
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to other forums.
 
Java Cowboy
Sheriff
Posts: 16078
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a special reason why you are using JSF 1.2? That is really old. The JSF 2.x versions are much better and easier to use than JSF 1.x.

If you're doing this just for learning and you can choose the JSF version yourself, then go with the current version, JSF 2.2, instead of JSF 1.2.
 
T Adeoye
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frits Walraven wrote:Moved to other forums.



Thanks  for fixing this for me.
 
T Adeoye
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jesper de Jong wrote:Is there a special reason why you are using JSF 1.2? That is really old. The JSF 2.x versions are much better and easier to use than JSF 1.x.

If you're doing this just for learning and you can choose the JSF version yourself, then go with the current version, JSF 2.2, instead of JSF 1.2.



I am working on refactoring some legacy code . I would have been done if I was working on 2.x , I guess we wont be switching to that any time in the nearest future. Thanks for recommending .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!