This content has been marked as final.
Show 5 replies
-
1. Re: rich:dataTable very sensitive to ajax request?
moldovan May 15, 2008 7:47 AM (in response to dxxvi)hy dxxvi!
the first purpose is clear:
You are not sending an ajax request, you are performing a full page refresh with the <h:commandLink>'s. Use ajaxSubmit="true" in your a4j:form if you want to perform an ajax-request with normal h:commandLink. -
2. Re: rich:dataTable very sensitive to ajax request?
ilya_shaikovsky May 15, 2008 9:32 AM (in response to dxxvi)and about the second:
you should wrap the controls with the a4j:region and renderRegionOnly=true specified. Without this - all the view will be encoded(in order to have possibility to update something outside the region ;) ). But in this case you can't update nothing outside this region. -
3. Re: rich:dataTable very sensitive to ajax request?
ilya_shaikovsky May 15, 2008 9:41 AM (in response to dxxvi)sorry.. I've take you wrong advice. All should be ok in second case if you not specified the component in reRender but http://jira.jboss.com/jira/browse/RF-3341
-
4. Re: rich:dataTable very sensitive to ajax request?
ilya_shaikovsky May 15, 2008 9:42 AM (in response to dxxvi)but the first works as it should as moldovan told you
-
5. Re: rich:dataTable very sensitive to ajax request?
dxxvi May 15, 2008 10:00 AM (in response to dxxvi)"moldovan" wrote:
You are not sending an ajax request, you are performing a full page refresh with the <h:commandLink>'s. Use ajaxSubmit="true" in your a4j:form if you want to perform an ajax-request with normal h:commandLink.
Thanks, Moldovan. You broadened my knowledge. I gave it a couple of tries and noticed that <h:commandLink ...><<a4j:actionparam name="skin" value="deepMarine" assignTo="#{skinBean.skin}"/></h:commandLink> in a h:form or an a4j:form without ajaxSubmit="true" is the only way to change the skin. Is there any other way to change the skin with an ajax request?"ilya_shaikovsky" wrote:
and about the second:
you should wrap the controls with the a4j:region and renderRegionOnly=true specified. Without this - all the view will be encoded(in order to have possibility to update something outside the region ;) ). But in this case you can't update nothing outside this region.
Thanks, Ilya. What I am trying to do is something like a CRUD application. The upper part of the JSF page allows us to add a new row to the database table. The lower part is a rich:dataTable having all the data in the database table. If I use a4j:region, no way to refresh the rich:dataTable after a successful new row addition. Anyway to implement a CRUD app like the one I'm trying to do?