Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
Bartender
Posts: 19725
92
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!