1

JSF2.0とOpenFacesを使用しているim<o:tabbedPane>

タブの変更に問題があります。4つのjsfページを含むインデックスがあります。

このような

<o:tabbedPane  loadingMode="client" tabGapWidth="3"  id="pestana"
                    tabClass="tab_form" rolloverTabClass="tab_form2" selectedTabClass="tab_form3"
                    tabAlignment="bottomOrRight" 
                    style="width:100%;" binding="#{GeneralBean.panelTabs}">
      <o:subPanel caption="1" styleClass="pestanas">
        <ui:include src="/datosDeLaCotizacion.jsf"/>

      </o:subPanel>
      <o:subPanel caption="2" styleClass="pestanas" disabled="true">
        <ui:include src="/datosDelProducto.jsf"/>    

      </o:subPanel>
      <o:subPanel caption="3" styleClass="pestanas" disabled="true">
          <ui:include src="/coberturas.jsf"/>

      </o:subPanel>

      <o:subPanel caption="4" styleClass="pestanas" disabled="true">
        <ui:include src="/confirmacion.jsf"/>

      </o:subPanel>
    </o:tabbedPane>

<h:commandButton>jsfページ内..私はこのようなフォームを持っています

<h:commandButton value="Continuar" id="botonContinuar"
                             actionListener="#{GeneralBean.continuarCotizacionPaso1}"
                             action='Forms!form.Refresh'>
            </h:commandButton> 

BeanのactionListenerに最初に行くと、最初は正常に機能します...そして<o:tabbedPane>2番目に変更します<o:subPanel>が!<h:commandButton>2番目のを使用すると<o:subPanel>機能しません...BeanのactionListenerに到達していません...

私が間違っていることを知っているなら私を助けてください...ありがとう!

4

1 に答える 1

2

まず、<o:tabbedPane>フォーム内に配置する必要があることに注意してください(あなたの場合フォーム内にあると思います)。次に、JSFページ内にボタンのあるフォームがあることに言及しています。<o:subPanel>これらはタブ付きペインに含まれているページですか?

もしそうなら、あなたは実際にあなたのページに結果としてネストされたフォームを持っていますが、それは許可されていません。これが当てはまる場合、この場合の解決策は、含まれているサブページからフォームタグを削除するのと同じくらい簡単です。

于 2011-12-17T14:05:03.367 に答える