0

ユーザーが無制限のデータを入力でき、arraylistを使用してBeanに格納されるフォームを作成したいと思います。 忙しい猫http://img832.imageshack.us/img832/917/offerride.png ユーザーがクリックボタンをクリックしたときの画像のように、その近くのテキストボックスのコンテンツを配列リストに保存し、再レンダリングして再び空白になります。このコードを使ってみました。

<td>
 <h:inputText label="Source" id="offerridepickuppts" value="#{OfferRideBacking.pickUpAdd}"/>
 <h:commandButton value="Click" action="index">
  <f:actionListener rendered="offerridepickuppoints,some" />
 </h:commandButton>
</td>

pickupAdd is another String variable in which button will be clicked its setter method will add the content in arraylist. But it seems that it is not getting stored into the list. So how can I achieve this without using ajax and all that stuffs. Thanks

4

0 に答える 0