You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Wahyu Nengsih <wy...@nwa.iao.co.id> on 2003/07/07 07:28:33 UTC
how parse value to checkbox in foreach
i have checkbox that inside in foreach.
this's my example :
cek kode
[] 101
[] 102
[] 103
<page-specification class="simpel.Negara">
<component id="form" type="Form">
<binding name="listener" expression="listeners.formSubmit"/>
<binding name="stateful" expression="false"/>
</component>
<component id="eachCountry" type="Foreach">
<binding name="source" expression="projectPage"/>
<binding name="value" expression="master"/>
</component>
<component id="cek" type="Checkbox">
<binding name="selected" expression="master.cekkode"/>
</component>
<component id="insertKode" type="Insert">
<binding name="value" expression="master.kode"/>
</component>
</page-specification>
i want to check kode: 101
if checked i want to delete 101 from database
how i got the value in checkbox that the code is 101 and how i know that
101 check is true?
pls somebody help me.
regards,
wahyu
RE: how parse value to checkbox in foreach
Posted by Mind Bridge <mi...@yahoo.com>.
Hi,
Here is a response on this topic with example code snippets -- it should answer your questions:
http://article.gmane.org/gmane.comp.java.tapestry.user/615/
In general, the archives of this mailing list are a rich source of information -- it can be very helpful and will probably answer many of your queries.
You can search through the archives here:
http://news.gmane.org/thread.php?group=gmane.comp.java.tapestry.user
Of course, this is just a helpful tool. If you cannot find what you need or simply cannot find your way, do write.
Best regards,
-mb
-----Original Message-----
From: Wahyu Nengsih [mailto:wyu@nwa.iao.co.id]
Sent: Monday, July 07, 2003 8:29 AM
To: tapestry-user@jakarta.apache.org
Subject: how parse value to checkbox in foreach
i have checkbox that inside in foreach.
this's my example :
cek kode
[] 101
[] 102
[] 103
<page-specification class="simpel.Negara">
<component id="form" type="Form">
<binding name="listener" expression="listeners.formSubmit"/>
<binding name="stateful" expression="false"/>
</component>
<component id="eachCountry" type="Foreach">
<binding name="source" expression="projectPage"/>
<binding name="value" expression="master"/>
</component>
<component id="cek" type="Checkbox">
<binding name="selected" expression="master.cekkode"/>
</component>
<component id="insertKode" type="Insert">
<binding name="value" expression="master.kode"/>
</component>
</page-specification>
i want to check kode: 101
if checked i want to delete 101 from database
how i got the value in checkbox that the code is 101 and how i know that
101 check is true?
pls somebody help me.
regards,
wahyu