0

私はjsf 1.2とicefaces 1.8で作業しています

ポップアップがあり、そこでウィザードを作成しています。

ac:forEach を使用して、ステップ 2 でユーザーにいくつかの入力を表示しています。問題は、ステップ 1 に戻るときに別のオプションを選択し、ステップ 2 で別の入力セットを表示することです。入力コンポーネントの初期 ID の一部が保持されます。 ...

メイン div の子を削除する方法はありますか?

私の構造は次のようなものです:

    <ice:panelGroup binding="#{addServiceResourcesBean.wrapperDiv}">

      <c:forEach
                    var="index"
                    begin="0"
                    end="#{addServiceResourcesBean.attribsListSize}"
                    step="1"
                    varStatus="status">

          //inputs rendered
     </c:forEach>
    </ice:panelGroup>

wrapperDiv からすべての子を削除すると、jsf サイク​​ルが強制的に他の ID で最初から再作成されることを願っています...

4

1 に答える 1

1

これは私のために働いた、ただ電話getChildrenしてそしてそれからclear

<h:form id="form1">
  <h:panelGroup id="panel1">
      .... forEach ...

  </h:panelGroup>
</h:form>
String clientId = "form1:panel1";
UIComponent comp = FacesContext.getCurrentInstance().getViewRoot().findComponent(clientId);
// here there is the call
comp.getChildren().clear();
于 2012-09-27T11:33:08.817 に答える