문제

I know there is a attribute called "update", I can use it like this, update="another component's id", but this doesn't work when they are in different <h:form> tags.

For example, the code like this,

<ui:composition>
    <ui:define name="">

        <div>

        <h:form>

            <p:panel header="">
                <h:panelGrid id="display">
                </h:panelGrid>
            </p:panel>

        </h:form>

        <h:form>

            <p:dialog id="dialog">
                <p:dataTable onRowSelectUpdate="aa.bb.display"></p:dataTable>
            </p:dialog>

        </h:form>

        </div>

    </ui:define>
</ui:composition>

I mean, how can I write in the site of "aa.bb.display", it will re-render the panelGrid of "display" ?

도움이 되었습니까?

해결책

You should give an id to the <h:form>. It is important, since you HAVE TO reference like formId:display

My question on this: Absolute reRendering using RichFaces, check my answer. I tested this also in PrimeFaces.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top