Re: Ajax appends to a Table

2009-05-23 Thread Luther Baker
On Fri, May 22, 2009 at 10:01 AM, Igor Vaynberg wrote:

> better approach is outlined in one of the articles on wicketinaction.com
>
> -igor
>


http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/

Thanks Igor.

-Luther


Re: Ajax appends to a Table

2009-05-22 Thread Igor Vaynberg
better approach is outlined in one of the articles on wicketinaction.com

-igor

On Fri, May 22, 2009 at 4:11 AM, Joe Fawzy  wrote:
> hi dearwicket ajax support is designed and optimised for **updating** or
> replacing existing components not appending
> actually u will find appending table raw a buggy feature in IE
> i use a work around ,by adding several invisible rows then upon need i
> update them one by one
>
> Waiting for a better approach
>
> Joe
>
> On Fri, May 22, 2009 at 1:59 PM, James Carman
> wrote:
>
>> You usually have to update the whole table via Ajax when doing
>> modifications to it.
>>
>> On Fri, May 22, 2009 at 1:32 AM, Luther Baker 
>> wrote:
>> > Hi,
>> >
>> > I have an 'Add Row' Ajax link and a Table. The table contains a list of
>> > todos.
>> >
>> > To 'add' a todo, I have created a single  full of 's and > > that, via Ajax, get shown when someone clicks on the aforementioned 'Add
>> > Row' link.
>> >
>> > Now, on submission of said row, I'd like to append it to the bottom of
>> the
>> > table such that, one might be able to add 'another' row.
>> >
>> > Is there an easy way to do this or would I simply want to encapsulate the
>> > entire table and refresh it via Ajax. I'm not sure that'd be as easy as I
>> > hoped either since, I'd be creating the markup, etc in the Java class for
>> > the extra row.
>> >
>> > Also, to be true to form, is it normal to show that  of > without
>> > a formal encapsulating  tag or should I wrap the table in a big
>> form
>> > to be sure any inputs in the table are formally encapsulated by a form.
>> >
>> > Just looking for some pointers in the right direction on basically, how
>> to,
>> > via Ajax, create blank rows, allow submissions and then append said rows
>> to
>> > a table without formally GET or POSTing the entire page. Many thanks.
>> >
>> > -Luther
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax appends to a Table

2009-05-22 Thread Joe Fawzy
hi dearwicket ajax support is designed and optimised for **updating** or
replacing existing components not appending
actually u will find appending table raw a buggy feature in IE
i use a work around ,by adding several invisible rows then upon need i
update them one by one

Waiting for a better approach

Joe

On Fri, May 22, 2009 at 1:59 PM, James Carman
wrote:

> You usually have to update the whole table via Ajax when doing
> modifications to it.
>
> On Fri, May 22, 2009 at 1:32 AM, Luther Baker 
> wrote:
> > Hi,
> >
> > I have an 'Add Row' Ajax link and a Table. The table contains a list of
> > todos.
> >
> > To 'add' a todo, I have created a single  full of 's and  > that, via Ajax, get shown when someone clicks on the aforementioned 'Add
> > Row' link.
> >
> > Now, on submission of said row, I'd like to append it to the bottom of
> the
> > table such that, one might be able to add 'another' row.
> >
> > Is there an easy way to do this or would I simply want to encapsulate the
> > entire table and refresh it via Ajax. I'm not sure that'd be as easy as I
> > hoped either since, I'd be creating the markup, etc in the Java class for
> > the extra row.
> >
> > Also, to be true to form, is it normal to show that  of  without
> > a formal encapsulating  tag or should I wrap the table in a big
> form
> > to be sure any inputs in the table are formally encapsulated by a form.
> >
> > Just looking for some pointers in the right direction on basically, how
> to,
> > via Ajax, create blank rows, allow submissions and then append said rows
> to
> > a table without formally GET or POSTing the entire page. Many thanks.
> >
> > -Luther
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Ajax appends to a Table

2009-05-22 Thread James Carman
You usually have to update the whole table via Ajax when doing
modifications to it.

On Fri, May 22, 2009 at 1:32 AM, Luther Baker  wrote:
> Hi,
>
> I have an 'Add Row' Ajax link and a Table. The table contains a list of
> todos.
>
> To 'add' a todo, I have created a single  full of 's and  that, via Ajax, get shown when someone clicks on the aforementioned 'Add
> Row' link.
>
> Now, on submission of said row, I'd like to append it to the bottom of the
> table such that, one might be able to add 'another' row.
>
> Is there an easy way to do this or would I simply want to encapsulate the
> entire table and refresh it via Ajax. I'm not sure that'd be as easy as I
> hoped either since, I'd be creating the markup, etc in the Java class for
> the extra row.
>
> Also, to be true to form, is it normal to show that  of  a formal encapsulating  tag or should I wrap the table in a big form
> to be sure any inputs in the table are formally encapsulated by a form.
>
> Just looking for some pointers in the right direction on basically, how to,
> via Ajax, create blank rows, allow submissions and then append said rows to
> a table without formally GET or POSTing the entire page. Many thanks.
>
> -Luther
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Ajax appends to a Table

2009-05-21 Thread Luther Baker
Hi,

I have an 'Add Row' Ajax link and a Table. The table contains a list of
todos.

To 'add' a todo, I have created a single  full of 's and  of  tag or should I wrap the table in a big form
to be sure any inputs in the table are formally encapsulated by a form.

Just looking for some pointers in the right direction on basically, how to,
via Ajax, create blank rows, allow submissions and then append said rows to
a table without formally GET or POSTing the entire page. Many thanks.

-Luther