Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

How would you populate only a section of a page?  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,


Suppose, I only needed repopulate a small section of a page. Is there a way to do this? What I basically need is for the user to click a button, and only for example two or three display values to change. However, I don't want to resubmit the entire page, because then I would have to resubmit all the request parameters, etc.

Grae

 
Saloon Keeper
Posts: 20502
115
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use the JBoss RichFaces extension tagset, many of their tags support a "reRender" attribute. If you fire an action with reRender values, then only the elements whose ids match the reRender list will be refreshed.
 
Grae Cullen
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim,

Someone else on another board also recommended RichFaces. I have heard mixing two component libraries is a major problem.
I think my component library has some AJAX, which will have to be enough.

Thanks,
Grae
 
Greenhorn
Posts: 24
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<ui:include src="#{Bean.include}" />

If you use this you can alternate between predefined .xhtml files and re-render the include tag via f:ajax.
 
Grae Cullen
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ekrem Dkyc,

That is not exactly what I am looking for. However, that is a nice trick I will keep it in mind. I don't really need to change the structure of the page, just reprocess the bean values. I found the components library I have, does have some AJAX support for dialogs, so I am going to work on that a bit.

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