This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How rerender a JSF component from an included page?!

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

I've developed a new application using JSF and Ajax4JSF. After developed a little pages I realized that there is a search that I could separate in a different component and share this new JSF page with the others. I'm including this page using the <a4j:include> tag. The problem is that when the user finishes the query I want to rerender the page (or maybe a component inside this page) that included it.

Do you guys have any suggestion to me?! What approach could I use?

P.S.: I was thinking about using the DWR library (Reverse Ajax) but I think that's not a good idea because ajax4jsf is already into the project. And I don't know if I could integrate DWR with JSF.

Thanks a lot,
Francisco.
 
a
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
give your a4j:include an explicit id (e.g. id="searchInclude"). If the user sumbits his search, use the a4j:commandButton and take the reRender tag (reRender="searchInclude") to reRender your include. For further infos take a look into the a4j developers guide.

Cu
Alex
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic