开发者

ReRendering with a4j:commandButton

开发者 https://www.devze.com 2023-01-26 18:36 出处:网络
Does the nesting of elements and multiple forms affect the capabilities of rerendering with a a4j:commandButton?

Does the nesting of elements and multiple forms affect the capabilities of rerendering with a a4j:commandButton?

i have something like:

<ui:panelGrid>
    <h:form id="1开发者_开发技巧">
         <a4j:commandButton rerender="1,2,3" />
    </h:form>
</ui:panelGrid>
<ui:panelGrid>
    <h:form id="2">
    </h:form>
    <h:form id="3">
    </h:form>
</ui:panelGrid>

Currently it does not want to reRender anything, only the action on it will get executed. Also i have in my forms . Would that affect anything ? I use the same bean name in every keepAlive tag I'm new to all these.


I got it to work by reRendering the form's parent. It's strange. Why wouldn't it rerender only the form or a element in a form?

0

精彩评论

暂无评论...
验证码 换一张
取 消