Re: Adding rows with javascript

2006-11-24 Thread Andrea Chiumenti

You are wrong using tables ;P

try to replace the whole table or better a div that contains it, and not the
row (tables are evil).

On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:



Hi ,
I tried to create addRows using tacos:AjaxDirectLink, but that html table
is
not getting updated.
if i will change the link  into DirectLink then it is working fine.

whether i am missing anything ?




karthik.nar wrote:
>
> On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:
>>
>>
>> Tacos & Ajax call seems a good solution,
>> but these hidden fields also needed to be updated using
updateComponents
>> ?
>
>
> No need
>
>
> and one more query, is  HTTPRequest available in page class ?
>
>
>
> get it through the cycle in the listener
>
>

--
View this message in context:
http://www.nabble.com/Adding-rows-with-javascript-tf2696651.html#a7525500
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Adding rows with javascript

2006-11-24 Thread jiju

Hi ,
I tried to create addRows using tacos:AjaxDirectLink, but that html table is
not getting updated.
if i will change the link  into DirectLink then it is working fine.

whether i am missing anything ?




karthik.nar wrote:
> 
> On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:
>>
>>
>> Tacos & Ajax call seems a good solution,
>> but these hidden fields also needed to be updated using updateComponents
>> ?
> 
> 
> No need
> 
> 
> and one more query, is  HTTPRequest available in page class ?
> 
> 
> 
> get it through the cycle in the listener
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-rows-with-javascript-tf2696651.html#a7525500
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding rows with javascript

2006-11-24 Thread Andrea Chiumenti

If you are looking for an edit grid I'm developing one @ www.jfly.org.
You'll find it into the svn.
Since I'm alone and working on another project I'm on it on my spare time.
Anyway I think I'll have an alpha version in the next week, after I'll solve
some problems with MSIE hell.

Kiuma

On 11/24/06, Karthik N <[EMAIL PROTECTED]> wrote:


On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:
>
>
> Tacos & Ajax call seems a good solution,
> but these hidden fields also needed to be updated using updateComponents
?


No need


and one more query, is  HTTPRequest available in page class ?



get it through the cycle in the listener




Re: Adding rows with javascript

2006-11-24 Thread Karthik N

On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:



Tacos & Ajax call seems a good solution,
but these hidden fields also needed to be updated using updateComponents ?



No need


and one more query, is  HTTPRequest available in page class ?



get it through the cycle in the listener


Re: Adding rows with javascript

2006-11-24 Thread jiju

Tacos & Ajax call seems a good solution,
but these hidden fields also needed to be updated using updateComponents ?

and one more query, is  HTTPRequest available in page class ?


karthik.nar wrote:
> 
> tapestry is not aware of your new form fields.  if you use firebug you'll
> find that these fields don't figure in the "hidden" field that tapestry
> uses
> to keep track of its meta-info used for render/rewind.
> 
> one way to solve this problem is to use Tacos and make an Ajax call.
> 
> another way is to look into the cycle for the HTTPRequest and harvest the
> new parameters from there.
> 
> a third way is to have pre-defined rows but keep display:none - so that
> they
> are "registered" as tapestry components but not visible to the user.  on
> click of Add Row they just show up because  you change display:none to
> display:block or something like that
> 
> hth
> 
> On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi All,
>> I have created a contact table(each row contains a Textfield) from a
>> collection  using forEach loop
>> now i have added one more contact using javascript & submit the form
>> but the new contact is not getting added to the collection
>>
>> but still i can MODIFY the existing contacts
>>
>> anybody know the solution for this problem ?
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Adding-rows-with-javascript-tf2696651.html#a7520075
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Thanks, Karthik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-rows-with-javascript-tf2696651.html#a7521357
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding rows with javascript

2006-11-24 Thread Karthik N

tapestry is not aware of your new form fields.  if you use firebug you'll
find that these fields don't figure in the "hidden" field that tapestry uses
to keep track of its meta-info used for render/rewind.

one way to solve this problem is to use Tacos and make an Ajax call.

another way is to look into the cycle for the HTTPRequest and harvest the
new parameters from there.

a third way is to have pre-defined rows but keep display:none - so that they
are "registered" as tapestry components but not visible to the user.  on
click of Add Row they just show up because  you change display:none to
display:block or something like that

hth

On 11/24/06, jiju <[EMAIL PROTECTED]> wrote:



Hi All,
I have created a contact table(each row contains a Textfield) from a
collection  using forEach loop
now i have added one more contact using javascript & submit the form
but the new contact is not getting added to the collection

but still i can MODIFY the existing contacts

anybody know the solution for this problem ?




--
View this message in context:
http://www.nabble.com/Adding-rows-with-javascript-tf2696651.html#a7520075
Sent from the Tapestry - User mailing list archive at Nabble.com.





--
Thanks, Karthik