You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Kriesten <ja...@renitence.de> on 2007/11/11 15:35:41 UTC

Unsafe child warning

Hi,

I get this warning with my Repeater:

---8<---
Child component of repeater TestPanel$2:componentlist has a non-safe child id of
-501221721. Safe child ids must be composed of digits only.
---8<---

I have to use Random generated ID's for a certain purpose. So, why does wicket
insist on numbers (actually, this is one)?

Best regards, --- Jan.


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


Re: Unsafe child warning

Posted by Jan Kriesten <ja...@renitence.de>.
Hi Johan,

> why would you do that?

I need a ListView which can insert Items in the middle of the list during
editing and still reuse it's Items. To accomplish that I generate random
ID's which identify the items in the map. The List just contains those id's so I
can insert items without losing the reusability.

This is used to insert items in a List using Ajax.

Regards, --- Jan.



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


Re: Unsafe child warning

Posted by Johan Compagner <jc...@gmail.com>.
why would you do that?

On Nov 11, 2007 3:56 PM, Jan Kriesten <ja...@renitence.de> wrote:

>
> > why do you use a negative number?
>
> cause it's returned be the random-number-generator?!
>
> regards, --- jan.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Unsafe child warning

Posted by Jan Kriesten <ja...@renitence.de>.
> why do you use a negative number?

cause it's returned be the random-number-generator?!

regards, --- jan.



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


Re: Unsafe child warning

Posted by Thijs <cr...@mytweakers.net>.
why do you use a negative number?

Jan Kriesten wrote:
> Hi,
>
> I get this warning with my Repeater:
>
> ---8<---
> Child component of repeater TestPanel$2:componentlist has a non-safe child id of
> -501221721. Safe child ids must be composed of digits only.
> ---8<---
>
> I have to use Random generated ID's for a certain purpose. So, why does wicket
> insist on numbers (actually, this is one)?
>
> Best regards, --- Jan.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   


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