开发者

JSF 2.0 f:ajax problem with execute and render options

My facelet code is as below,

    <div class="notes_Innercontainer">
    <div class="notes_Innercontainer2">

        <div class="notes_headerBar">
            <div class="notes_headerBar_col1">#{msgs.note_com_date_time}</div>
            <div class="notes_headerBar_col2">#{msgs.note_com_view}</div>
        </div>

        <h:panelGroup id="notecomponent">
            <div class="scrollArea">
                <div class="scroll-pane" id="pane1">
                    <div class="notes_table">

                        <ui:repeat var="note" value="#{noteController.noteList}" varStatus="status">
                            <div class="notes_table_rw1">
                                <div class="notes_Rw_col1">#{note.createDate}</div>
                                <div class="notes_Rw_col2">
                                    <h:commandButton  image="resources/images/updateBtn.gif" class="tTip" value="Update1">
                                        <f:ajax event="click" execute="@form" render="@all" listener="#{noteController.loadEditableNoteComponent}" onevent="note_popupopener"/>
                                        <f:param value="#{note.noteTaskIdEdit}" name="noteTaskIdForEdit">
                                        </f:param>
                                    </h:commandButton>
                                </div>
                            </div>
                        </ui:repeat>

                    </div>
                </div>
            </div>
        </h:panelGroup>

    </div>
</div>

<div class="originator_ButtonContainer">
    <h:commandButton  image="resources/images/addNoteBtn.gif" border="0">
        <f:ajax event="click" execute="notecomponent" render="notecomponent" listener="#{noteController.loadAddNotePopUp}" onevent="add_note_popupopener"/>
    </h:commandButton>
</div>

When I use f:ajax for that "update" button (updateBtn) with options as execute="@form" render="@all" it works as ad-hoc way (mean some times scroll-pane not working), but my "add" button (addNoteBtn) function correctly with options execute="notecomponent" render="notecompo开发者_JAVA百科nent" options. Is there any way to give me execute, render options for "update" button as that "add" button.

Thanks

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜