-
1. Re: Global adressing to an id(like :id) with reRender
sergeysmirnov Sep 18, 2007 2:03 PM (in response to j-pro)what the version of RichFaces you are working with ?
-
2. Re: Global adressing to an id(like :id) with reRender
j-pro Sep 18, 2007 2:09 PM (in response to j-pro)3.1.0 GA
-
3. Re: Global adressing to an id(like :id) with reRender
sergeysmirnov Sep 18, 2007 2:34 PM (in response to j-pro)Read about reRender at http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxAttributes.jsf?c=ajaxattributes
The explanation of the syntax of reRender is there.
":relativesTable" means search in the root. However, it is not in the root, but in the form. Form component define a new namespace.
for:
<h:form id="mynextform">
<rich:dataTable id="relativesTable" .......
try reRender=":mynextform:relativesTable"
or just leave it as
reRender = "relativesTable" -
4. Re: Global adressing to an id(like :id) with reRender
j-pro Sep 18, 2007 2:39 PM (in response to j-pro)Hmm.. thanks for getting me into.
But about "reRender = "relativesTable"" - somebody on this forum told me that if I wish to reRender an element, which is in the other form than the commandButton, I should use ':'. Is it true? Because if so - there is the one and only way: "reRender=":mynextform:relativesTable"". Is it right?
Thanks. -
5. Re: Global adressing to an id(like :id) with reRender
j-pro Sep 18, 2007 3:40 PM (in response to j-pro)Sergey, what's about the second question? Why does this button(I mean the button in THIS form), refreshes(reRenders) elements in the other forms, which are situated in other tabs? I've found it out by checking JBoss logs, there are a lot of strings like(for every field I have in my tabs):
2007-09-18 20:31:02,303 DEBUG [org.ajax4jsf.renderkit.AjaxChildrenRenderer] AjaxView encodeChild component for AJAX request with at path :j_id262: ID salaryStartEdit
and I know for 100% that "salaryStartEdit" is in the other tab and it's: <h:inputText id="salaryStartEdit" value="#{amBean.job.salaryStart}" /> -
6. Re: Global adressing to an id(like :id) with reRender
sergeysmirnov Sep 18, 2007 5:41 PM (in response to j-pro)richfaces does not rendered the components that are not marked for re-rendering. However, it walks through the component tree searching the component for re-rendering. So, the log shows this walking process.
-
7. Re: Global adressing to an id(like :id) with reRender
j-pro Sep 18, 2007 5:46 PM (in response to j-pro)Understand, thanks.
I've just thought that there's something wrong I did and that's why AJAX requests work slow, working with the entire page. Now I see, thanks.