-
1. Re: how do I update the table without refreshing the whole p
alexanderbelov May 17, 2007 2:35 AM (in response to vh)Place your table inside div or span tag (for example, h:panelGroup) and set it's id manually.
Use ajax4jsf commandButton component to close your dialog window. Set attibute reRender as id of parent table component. Set limitToList as true.
This works fine. -
2. Re: how do I update the table without refreshing the whole p
vh May 17, 2007 1:58 PM (in response to vh)I tried it, and it didn't work. I kind of suspect that the 2 windows make it not working. Since I am trying to rerender a component in a different window.
Any way I can do this? -
3. Re: how do I update the table without refreshing the whole p
ilya_shaikovsky May 18, 2007 8:27 AM (in response to vh)For me reRendering from the modalPanel whole dataTable works fine. Describe your precise environment and pages.
-
4. Re: how do I update the table without refreshing the whole p
vh May 18, 2007 12:25 PM (in response to vh)Here is my main window, I have a link to launch a new window and a table.
<rich:panel bodyClass="configPanel">
<h:outputLink id="addVC" value="#" onclick="openAddVCWindow();">
<h:outputText value="#{bundle.Add}"/>
</h:outputLink>
.....
<rich:dataTable
....
</rich:dataTable>
Here is the js to lanuch new window.
function openAddVCWindow() {
var url = "./editVC.jsf";
var features = "width=350,height=250";
window.open(url, "VCEditWindow", features);
return false;
}