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.
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.