Hi Igor,

I find it out!

The reason I couldn't get a child using a string component path is because
of the outdated JavaDoc sentences in MarkupContainer (Wicket 1.3.4):

"....Children can be added by calling the add() method, and they can be
looked
up using a dotted path. For example, if a container called "a" held a nested
container "b" which
held a nested component "c", then a.get("b.c") would return the Component
with id "c". ....."

It said about *dotted* path with a clear example.  And I used the dotted
path.

Now I find that the Component.PATH_SEPARATOR is used, which is ":".
We have to use a.get(b:c") in the example.

Can we confirm that the JavaDoc is updated in the next coming release of
Wicket?

Thanks,
Valentine



igor.vaynberg wrote:
> 
> no. why would it do that? visibility is a render-time condition, it
> has nothing to do with component hierarchy.
> 
> -igor
> 
> On Thu, Nov 27, 2008 at 12:01 PM, Valentine2008
> <[EMAIL PROTECTED]> wrote:
>>
>> But Component.get(pathString) will check the visibility and will return
>> null
>> if the child is invisible. Right?
>>
>> Thanks,
>> Valentine
>>
>>
>>
>>
>> igor.vaynberg wrote:
>>>
>>> iterator() does not check visibility.
>>>
>>> -igor
>>>
>>> On Thu, Nov 27, 2008 at 11:24 AM, Valentine2008
>>> <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Can we get even the invisible children?
>>>>
>>>> Seems we cannot....:-(
>>>>
>>>> igor.vaynberg wrote:
>>>>>
>>>>> iterator()
>>>>>
>>>>> -igor
>>>>>
>>>>> On Thu, Nov 27, 2008 at 10:42 AM, Valentine2008
>>>>> <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>> Use iterator(Comparator)?
>>>>>>
>>>>>> Or other ways?
>>>>>>
>>>>>> Thanks,
>>>>>> Valentine
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20723938.html
>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20724471.html
>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20724656.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20738180.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to