Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

#JSF1.2 RichFaces:: Dynamic Loading of Sections & Mandatory/Non-Mandatory UI fields  RSS feed

 
Harihara Sudhan Ks
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am working on RichFaces 3.x/ JSF 1.2.I am currently working on a requirement to load dynamic sections and Mandatory/Non-Mandatory UI fields in a form?
i.e. Based on one type of operation field selected in the form. I have to load the sections and fields with mandatory/non mandatory UI fields.


Is it possible to load the mandatory/Non-Mandatory fields in entire form(Around 200 elements) after selection of operation type dynamically? Note once operation type is selected it will be non-editable and subsequently, I need to load the whole page with different sets of mandatory/Non-Mandatory fields ?

Any best approach which will not affect the page performance?

Thanks in Advance

Hari
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Hari!

200 fields on a single webpage is not something I recommend for ANY platform. A form that complex will consume a lot of time and network bandwidth to construct and display, and frankly, as a use, it's probably going to make my eyes water. You should consider breaking it up into a series of webpages. If you're dealing with the common case where you're modelling a complex paper form, take advantage of the fact that most paper forms have clearly-defined sections and make each section a page. In other words, do it "wizard" style.

You can suppress sections of a form by using the "rendered=" attributes that are available on most controls in JSF. You can dynamically alter the rendering using AJAX.

Incidentally, it's not a bad idea to consider moving up to JSF2. RichFaces3 is fairly easy to adapt to JSF2, although it won't support the newer tags such as f:ajax.

Unfortunately, Red Hat did a "VB.Net" when they created RichFaces 4, so the cost of that particular upgrade is enormous. And unfortunate, since not only do you need RF4 to get the full JSF2 tagset, but also RF3 doesn't support any version of Internet Explorer higher than IE8 and they've stated that it never will.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!