Jsf 2 JSF2.0F:执行和呈现选项的ajax问题

Jsf 2 JSF2.0F:执行和呈现选项的ajax问题,jsf-2,Jsf 2,我的facelet代码如下所示 <div class="notes_Innercontainer"> <div class="notes_Innercontainer2"> <div class="notes_headerBar"> <div class="notes_headerBar_col1">#{msgs.note_com_date_time}</div>

我的facelet代码如下所示

    <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>

#{msgs.note\u com\u date\u time}
#{msgs.note_com_view}
#{note.createDate}
当我将f:ajax用于选项为execute=“@form”render=“@all”的“update”按钮(updateBtn)时,它以特殊方式工作(有时意味着滚动窗格不工作),但我的“add”按钮(addNoteBtn)与选项execute=“notecomponent”render=“notecomponent”选项一起正常工作。有没有办法给我执行,渲染选项为“更新”按钮的“添加”按钮


谢谢

我很难理解具体的问题。你能编辑并澄清你当前的问题吗?例如,你所说的“它作为一种特殊的方式工作”是什么意思?到底发生了什么,为什么会有问题?嗨,巴鲁克!很抱歉让您感到不方便,特别的方式意味着,我要将两个facelets包含到一个facelets中,就像我在那些灌输的facelets(action_list_component.xhtml,note_component.xhtml)中使用上述代码时的情况一样,然后如果我在“action_list_component”上对记录执行一些更新操作(使用上面的f:ajax update按钮选项),“note_component”组件丢失了它包含的所有记录。