-
1. Re: Complete page reload with richfaces panel tag
sivaprasad9394 Oct 5, 2010 11:13 PM (in response to rsurya)1 of 1 people found this helpfultry adding
a4j:region to render only the specific region.
<a4j:outputPanel ajaxRendered="true"><a4j:region id="postpaidCustomerRegion"> -
2. Re: Complete page reload with richfaces panel tag
rsurya Oct 6, 2010 3:41 PM (in response to sivaprasad9394)Thanks Sivaprasad for replying but the solution you mentioned didnt work completely. Though it stopped the setting of other attributes in the associated model and that is good but the other main issue remains open. I have tried the following since my last post:
- a4j:region, to define the form elements which need to be processed. From the documentation I gathered that this tag defines the sections of the form which need to be processed instead of the whole form being processed. The latter being the default behaviour.
- a4j:outputPanel to define the sections where the ajax should refresh the output.
- a4j:support to define events, actions and rerender sections.
None of the above worked. And as I saw in the application, after the action is executed on the server the whole jsf is refreshed which means each and every field is recreated/reloaded. There are 20 -25 fields on the page and some are dropdown and list boxes linked to heavy lookup methods. This is a serious performance issue.
code snippet (Is there a way of pasting code on this forum? I had to retype the code below)
<a4j:region id="regionId" renderRegiononly="true">
<h:inputText value="...." id="...">
<a4j:support event="onchange" action="..." reRender="form:resolvedDescPanel" />
</h:inputText>
<a4j:region>
<a4j:outputPanel ajaxRendered="true">
<rich:panel header=".....">
<h:inputTextarea id="resolvedDescPanel" value="..." ...>
</rich:panel>
</a4j:outputPanel>
Thanks in advance
- a4j:region, to define the form elements which need to be processed. From the documentation I gathered that this tag defines the sections of the form which need to be processed instead of the whole form being processed. The latter being the default behaviour.
-
3. Re: Complete page reload with richfaces panel tag
ilya_shaikovsky Oct 7, 2010 3:53 AM (in response to rsurya)I came across an issue with the panel tag of the richfaces. The issue is that the default behaviour of this tag and probably of richfaces is to reload the page completely whenever a call to server is made through richfaces.
Hm.. panel component itself does not initiates any requests. Please show original code.
-
4. Re: Complete page reload with richfaces panel tag
rsurya Oct 7, 2010 8:13 AM (in response to ilya_shaikovsky)Hi Ilya,
That's correct the panel component by itself does not initiate any requests but it is mapped to the inputText object and this component uses a4j support to initiate an ajax request to the server and the output is displayed on the panel component. The code is pretty much what I use. On the server we have spring webflow actions which manage the flow. In the a4j:outputPanel mentioned in my code above, I think you can avoid the use of the ajaxRendered="true" as I have anyway used the reRender to map the component.