Fire the debugger and see what happens.

On Tue, Jun 19, 2012 at 8:56 PM, Alec Swan <[email protected]> wrote:
> Martin, if there was a problem with repeater wouldn't I have had
> multiple myPanel components? Yet, tester.getTagByWicketId("myPanel")
> works.
>
> On Tue, Jun 19, 2012 at 9:46 AM, Alec Swan <[email protected]> wrote:
>> getTagByWicketId(..) JavaDoc says that if there are multiple
>> components with this wicket:id it will return the first one. Besides,
>> we only have one cell in the table, so there should be only one
>> myImage element.
>>
>> On Tue, Jun 19, 2012 at 9:37 AM, Martin Grigorov <[email protected]> 
>> wrote:
>>> On Tue, Jun 19, 2012 at 6:26 PM, Alec Swan <[email protected]> wrote:
>>>> Martin, this method works fine on the top page elements but not on the
>>>> nested panel's elements. I need to get the HREF attribute of
>>>> "myForm:rows:1:cols:2:myPanel:myImage" on the top page.
>>>
>>> '2' is the component id of an item inside a repeater.
>>> That means you have several components with id 'myImage'
>>>
>>>>
>>>> THIS WORKS: tester.getTagByWicketId("myForm")
>>>> THIS WORKS: tester.getTagByWicketId("rows")
>>>> THIS WORKS: tester.getTagByWicketId("myPanel")
>>>>
>>>> THIS DOES NOT WORK: tester.getTagByWicketId("myImage")
>>>> THIS DOES NOT WORK: tester.getTagByWicketId("myPanel:myImage")
>>>>
>>>> Thoughts?
>>>>
>>>> Thanks,
>>>>
>>>> Alec
>>>>
>>>> On Tue, Jun 19, 2012 at 8:42 AM, Martin Grigorov <[email protected]> 
>>>> wrote:
>>>>> See #getTagBy*** methods.
>>>>> This way you get a TagTester and then you can check the attributes.
>>>>>
>>>>> On Tue, Jun 19, 2012 at 5:39 PM, Alec Swan <[email protected]> wrote:
>>>>>> Hello,
>>>>>>
>>>>>> How can I access and verify the HREF attribute of an Image with 
>>>>>> WicketTester?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Alec
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>> For additional commands, e-mail: [email protected]
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Martin Grigorov
>>>>> jWeekend
>>>>> Training, Consulting, Development
>>>>> http://jWeekend.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]
>>>>
>>>
>>>
>>>
>>> --
>>> Martin Grigorov
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.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]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to