You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by CarstenM <Ca...@1822-s-inform.de> on 2007/11/19 16:14:15 UTC

T5.0.6: Table with input fields inside a form?

Hello,

I'd like to create a table with input fields (checkbox, textfield) inside a
form.
Does someone have an example?

Help would be very nice. Need a solution for it to finish first version of
my application.

(Asked for that in other threads already, but nobody answered......
probably more important things to do.....)

Thanks a lot
Carsten
-- 
View this message in context: http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13838044
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.6: Table with input fields inside a form?

Posted by CarstenM <Ca...@1822-s-inform.de>.
Alright, found a possibilty even without using Grid component.
Using a table and a loop.........should be ok for this task.



CarstenM wrote:
> 
> Hello,
> 
> I'd like to create a table with input fields (checkbox, textfield) inside
> a form.
> Does someone have an example?
> 
> Help would be very nice. Need a solution for it to finish first version of
> my application.
> 
> (Asked for that in other threads already, but nobody answered......
> probably more important things to do.....)
> 
> Thanks a lot
> Carsten
> 

-- 
View this message in context: http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13840414
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.6: Table with input fields inside a form?

Posted by CarstenM <Ca...@1822-s-inform.de>.
Hi Jeffrey,

thanks for your help. Found a quite similar solution at the same time of
your suggestion. :-)

Carsten



jeffrey ai wrote:
> 
> I wouldn't suggest you to use Grid component. The easiest way is to use
> <table> directly with some tapestry components. Your template will be like
> below:
> ==========
> <table>
>  <colgroup>
>   ...
>  </colgroup>
> 
>  <tr class="header">
>   ...
>  </tr>
> 
>  <t:loop source="your_value_list" value="your_value" t:volatile="true">
>   <tr>
>     <td class="required">
>      <input t:type="checkbox" value="your_value.boolean_value"/>
>     </td>
> 
>     <td class="string">${your_value.label}</td>
> 
>     <td class="required">
>     <input t:type="textfield" value="your_value.text_value"/>
>     </td>
>    </tr>
>  </t:loop>
> </table>
> ========
> 
> 
> The posted data in your action request will be automatically populated to
> <your_value_list>.
> 
> cheers,
> Jeffrey Ai
> 
> 
> 
> CarstenM wrote:
>> 
>> Hello,
>> 
>> I'd like to create a table with input fields (checkbox, textfield) inside
>> a form.
>> Does someone have an example?
>> 
>> Help would be very nice. Need a solution for it to finish first version
>> of my application.
>> 
>> (Asked for that in other threads already, but nobody answered......
>> probably more important things to do.....)
>> 
>> Thanks a lot
>> Carsten
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13840739
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.0.6: Table with input fields inside a form?

Posted by jeffrey ai <jf...@gmail.com>.
I wouldn't suggest you to use Grid component. The easiest way is to use
<table> directly with some tapestry components. Your template will be like
below:
==========
<table>
 <colgroup>
  ...
 </colgroup>

 <tr class="header">
  ...
 </tr>

 <t:loop source="your_value_list" value="your_value" t:volatile="true">
  <tr>
    <td class="required">
     <input t:type="checkbox" value="your_value.boolean_value"/>
    </td>

    <td class="string">${your_value.label}</td>

    <td class="required">
    <input t:type="textfield" value="your_value.text_value"/>
    </td>
   </tr>
 </t:loop>
</table>
========


The posted data in your action request will be automatically populated to
<your_value_list>.

cheers,
Jeffrey Ai



CarstenM wrote:
> 
> Hello,
> 
> I'd like to create a table with input fields (checkbox, textfield) inside
> a form.
> Does someone have an example?
> 
> Help would be very nice. Need a solution for it to finish first version of
> my application.
> 
> (Asked for that in other threads already, but nobody answered......
> probably more important things to do.....)
> 
> Thanks a lot
> Carsten
> 

-- 
View this message in context: http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13840415
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org