• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How would you populate only a section of a page?

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic