You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by bansi <ma...@yahoo.com> on 2007/10/16 23:11:12 UTC
Ajax4JSF Re-render Entire Form
I have a situation where reRender attribute reRenders the whole form. Here is
the snippet
<a4j:outputPanel>
<h:inputText id="description" size="75"
value="#{manageAddrBlkBean.addressBlock.description}" >
<a4j:support event="onfocus" reRender="usrGrpList"/>
</h:inputText>
</a4j:outputPanel>
The moment inputText component gets the Focus the JSF form hangs for a while
then i observed from the Log file its reRendering the whole form
The reRender happens on closing of pop-up window as shown in the following
snippet
<a4j:region>
<h:panelGrid columns="4" styleClass="detail" columnClasses="label">
<h:outputText value="Users/User Group" />
<h:selectOneMenu id="usrGrpList"
value="#{manageAddrBlkBean.selectedUserGroup}" >
<f:selectItem itemLabel="" itemValue="" />
<f:selectItems value="#{manageAddrBlkBean.userGroupList}" />
</h:selectOneMenu>
<h:commandButton id="findUserAndGroup" value="Manage User/UserGroup"
immediate="true"
onmousedown="createPopUp('userAndGroupLookup','find')"
onclick="return false">
</h:commandButton>
<h:message for="usrGrpList" />
</h:panelGrid>
</a4j:region>
Any pointers/suggestions to avoid reRendering of whole form using a4j
reRender attribute will be highly appreciated
--
View this message in context: http://www.nabble.com/Ajax4JSF-Re-render-Entire-Form-tf4636814.html#a13242526
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Ajax4JSF Re-render Entire Form
Posted by Matt Cooper <ma...@gmail.com>.
I am confused, how does your email pertain to Apache MyFaces? I would
recommend that you post your question to the A4J board instead.
Regards,
Matt
On 10/16/07, bansi <ma...@yahoo.com> wrote:
>
>
> I have a situation where reRender attribute reRenders the whole form. Here
> is
> the snippet
> <a4j:outputPanel>
> <h:inputText id="description" size="75"
> value="#{manageAddrBlkBean.addressBlock.description}" >
> <a4j:support event="onfocus"
> reRender="usrGrpList"/>
> </h:inputText>
> </a4j:outputPanel>
>
> The moment inputText component gets the Focus the JSF form hangs for a
> while
> then i observed from the Log file its reRendering the whole form
>
> The reRender happens on closing of pop-up window as shown in the following
> snippet
> <a4j:region>
> <h:panelGrid columns="4" styleClass="detail"
> columnClasses="label">
> <h:outputText value="Users/User Group" />
>
> <h:selectOneMenu id="usrGrpList"
> value="#{manageAddrBlkBean.selectedUserGroup}" >
> <f:selectItem itemLabel="" itemValue="" />
> <f:selectItems value="#{
> manageAddrBlkBean.userGroupList}" />
> </h:selectOneMenu>
>
> <h:commandButton id="findUserAndGroup" value="Manage
> User/UserGroup"
> immediate="true"
>
> onmousedown="createPopUp('userAndGroupLookup','find')"
> onclick="return
> false">
> </h:commandButton>
> <h:message for="usrGrpList" />
>
> </h:panelGrid>
> </a4j:region>
>
> Any pointers/suggestions to avoid reRendering of whole form using a4j
> reRender attribute will be highly appreciated
> --
> View this message in context:
> http://www.nabble.com/Ajax4JSF-Re-render-Entire-Form-tf4636814.html#a13242526
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>