0

I have created a facelet page with one inputtext and datatable. This datatable will populate data from DB based on the input-text, We are going to use this facelet for look-up function in our application, and this will be used in more than one page or form. My question here is can we make that look-up facelet as a custom 'SearchButton' tag so that developers will add this SearchButton tag with two attributes (columns to populate and DB-tablename) to populate data. Also note that my look-up facelet has been made with Primefaces UI component.

Please throw some light to develop this custom JSF component.

Rgds Balaji

1 Answer 1

1

Make it either a tag file or a composite component.

See also:

2
  • Thanks, sure will try this out. I have another question is there any component in primefaces or JSF to capture some-data (for e.g., in my lookup case developer should pass tablename and columnames to populate in grid) so that it will be bind to ManagedBean and this component wont get rendered in HTML. Please advise.
    – Balaji
    Commented Oct 5, 2012 at 6:53
  • You can use rendered attribute of JSF component to specify whether it should be rendered or not.
    – BalusC
    Commented Oct 5, 2012 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.