2012-01-24 6 views
0

は、例のXPageです:ダイアログで2つの日付ピッカーコンポーネントを使用できないのはなぜですか?ここで

私は拡張ライブラリからのダイアログボックスで複数の日付ピッカーを入れしようとしています、私はこのエラーを取得します...私は、ダイアログを開いたときにページの領域を提出

問題... ID == _コンテナでウィジェットを登録しようとしましたが、そのIDはすでに登録されています。

私はなぜそれができないのか分かりません。

おかげ

<xp:button id="button1" value="Show Dialog"> 
    <xp:eventHandler event="onclick" submit="true" 
     refreshMode="complete"> 
     <xp:this.action><![CDATA[#{javascript:getComponent("dialog1").show();}]]></xp:this.action> 
    </xp:eventHandler></xp:button> 
<xp:button id="button2" value="Hide Dialog"> 
    <xp:eventHandler event="onclick" submit="true" 
     refreshMode="complete"> 
     <xp:this.action><![CDATA[#{javascript:getComponent("dialog1").hide();}]]></xp:this.action> 
    </xp:eventHandler></xp:button> 


    <xe:dialog id="dialog1"> 
    <xp:inputText value="#{doc1.field1}"> 
     <xp:this.converter> 
      <xp:convertDateTime type="date"></xp:convertDateTime> 
     </xp:this.converter> 
     <xp:dateTimeHelper></xp:dateTimeHelper> 
    </xp:inputText> 
      <xp:inputText value="#{doc1.field2}"> 
     <xp:this.converter> 
      <xp:convertDateTime type="date"></xp:convertDateTime> 
     </xp:this.converter> 
     <xp:dateTimeHelper></xp:dateTimeHelper> 
    </xp:inputText> 

</xe:dialog> 

答えて

3

いずれのxp:inputTextコントロールにもid属性はありません。

この属性をコントロールに追加すると、両方の日付ピッカーがダイアログコントロールの内側と外側の両方で正常に機能します。

ダイアログボックスの外に2つの日付ピッカーを移動した場合、あなたはまた、唯一の最初の日付ピッカーは道場ドロップダウンピッカーコントロールに

+0

本当にありがとうございました12月ではなく、私はそれを逃したかどうかはわかりになるだろうことがわかります。 .. –

関連する問題