• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to make JSF page fully configured?

 
zenius lee
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

Let me explain my question. Can we read configurations files or database to get all the enough information for each JSF componment and display them on the page? For example, is it a input field or a dropdown list tag, where to put this tag and so on. Is there any framework which can achieve this?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to programatically control where components go, based on various files and database entries, you might want to go the route of creating your own custom JSF tag to accomplish such a thing.

I have an online exam, and sometimes for a multi-answer question, I use checkboxes, and for single answer questions, I use radio buttons. I have a little custom tag that evaluates each question, and renders the question using the appropriate HTML field.

But I might be worried that you might be putting way too much information into configuration files. Remember, you've got to strike a balance. You never want to overly complicate your GUI design.

Perhaps Tiles, which work well with JSF, might provide some templating and page design features that might help you.

-Cameron McKenzie
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!