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

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

 
Grae Cullen
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

 
Tim Holloway
Bartender
Posts: 18531
61
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
 
Abdullah Dokuyucu
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!