Questions tagged [facelet-tag]

4 questions
2
votes
1 answer

How to use a default generated ID in a Facelet tag

I've created a custom Facelet tag. I would like the ID to fall back to the default j_idtXxx just like if you would have left out the entire ID attribute when it is not set in the XHTML. So, I would like to be rendered as
Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
1
vote
1 answer

JSF2 custom component issue

I have created a custom component which is used in xhtml view and it takes the attribute value and print it(like helloworld in below code), in JSF 2.1, using Netbeans8.1 and glassfish4.1. I have created a custom component by extending…
mayank12001
  • 11
  • 1
  • 4
0
votes
1 answer

How to use beans instead of static classes in facelets taglibs?

Is it possible to use methods of spring beans instead of static methods when defining tag-lib functions? At the moment the application only uses static methods of abstract classes:
Heschoon
  • 2,915
  • 9
  • 26
  • 55
0
votes
1 answer

Access attributes valueExpression in ManagedBean

I have a custom facelet tag which simply includes an outputText. Reason for using a custom tag is to modify the value depending on the entity field. For ex: if the outputText is used for a percentage value, I want to print the value with % without…