You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by thobile <nn...@gmail.com> on 2010/11/16 11:02:11 UTC

Wicketter with ModalWindow

I have a link that I click and new Modal window is poping up, I am having
difficulties on testing my new Modal window components. Basically I a using
Modal window popup to upload the file,  Please help I have tried google
examples but still I cant get it right, how can I test a modal with my own
cutomized components.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketter-with-ModalWindow-tp3044511p3044511.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicketter with ModalWindow

Posted by Andrea Del Bene <ad...@ciseonweb.it>.
Hi,

using firebug I've saved window's HTML and I noticed that this component 
assigns the following path to its children:

<window path>:content:form<component's id inside window>.

So maybe you should just put :content:form between window path and the 
desired component.

> Hi Andrea
>
> Thank you for your response, I really appreciate it. Have a look at
> the following example
>
> //Here I click the upload link and check if no error message
> getWicketTester().clickLink("main-container:scorecard-page-web-markup-container:ee-file-upload-list-view-panel:crud-listview-form:entity-row:0:file-attachment:dynamic-web-markup-container:file-upload-link",
> true);
>              getWicketTester().assertNoErrorMessage();
>
> //Then I check if the Modal window is accessible , so far no problem
> getWicketTester().assertComponent("main-container:scorecard-page-web-markup-container:ee-file-upload-list-view-panel:crud-listview-form:entity-row:0:file-attachment:dynamic-web-markup-container:file-upload-modal-window",
> FileUploadModalWindow.class);
>
> //But as I try to access window model components it fails complains
> about the path that does not exists, here is the sample
> getWicketTester().assertComponent("main-container:scorecard-page-web-markup-container:ee-file-upload-list-view-panel:crud-listview-form:entity-row:0:file-attachment:dynamic-web-markup-container:file-upload-modal-window:file-upload-panel",
> Panel.class);
>
> //and I have tried to assert almost every component on the ModalWindow
> but gives me same error, path does not exists, is the anything that I
> miss or doing wrong please help me.
>
> Thank you
>
>
> On Tue, Nov 16, 2010 at 7:03 PM, Andrea Del Bene-2 [via Apache Wicket]
> <ml...@n4.nabble.com>  wrote:
>    
>> Hi!
>>
>> What's  your problem, exactly? Can you display modal window or it
>> doesn't open at all?
>>
>> On 16/11/10 11:02, thobile wrote:
>>      
>>> I have a link that I click and new Modal window is poping up, I am having
>>> difficulties on testing my new Modal window components. Basically I a
>>> using
>>> Modal window popup to upload the file,  Please help I have tried google
>>> examples but still I cant get it right, how can I test a modal with my own
>>> cutomized components.
>>>
>>>        
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>> ________________________________
>> View message @
>> http://apache-wicket.1842946.n4.nabble.com/Wicketter-with-ModalWindow-tp3044511p3045233.html
>> To unsubscribe from Wicketter with ModalWindow, click here.
>>
>>      
>    


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


Re: Wicketter with ModalWindow

Posted by thobile <nn...@gmail.com>.
Hi Andrea

Thank you for your response, I really appreciate it. Have a look at
the following example

//Here I click the upload link and check if no error message
getWicketTester().clickLink("main-container:scorecard-page-web-markup-container:ee-file-upload-list-view-panel:crud-listview-form:entity-row:0:file-attachment:dynamic-web-markup-container:file-upload-link",
true);
            getWicketTester().assertNoErrorMessage();

//Then I check if the Modal window is accessible , so far no problem
getWicketTester().assertComponent("main-container:scorecard-page-web-markup-container:ee-file-upload-list-view-panel:crud-listview-form:entity-row:0:file-attachment:dynamic-web-markup-container:file-upload-modal-window",
FileUploadModalWindow.class);

//But as I try to access window model components it fails complains
about the path that does not exists, here is the sample
getWicketTester().assertComponent("main-container:scorecard-page-web-markup-container:ee-file-upload-list-view-panel:crud-listview-form:entity-row:0:file-attachment:dynamic-web-markup-container:file-upload-modal-window:file-upload-panel",
Panel.class);

//and I have tried to assert almost every component on the ModalWindow
but gives me same error, path does not exists, is the anything that I
miss or doing wrong please help me.

Thank you


On Tue, Nov 16, 2010 at 7:03 PM, Andrea Del Bene-2 [via Apache Wicket]
<ml...@n4.nabble.com> wrote:
> Hi!
>
> What's  your problem, exactly? Can you display modal window or it
> doesn't open at all?
>
> On 16/11/10 11:02, thobile wrote:
>> I have a link that I click and new Modal window is poping up, I am having
>> difficulties on testing my new Modal window components. Basically I a
>> using
>> Modal window popup to upload the file,  Please help I have tried google
>> examples but still I cant get it right, how can I test a modal with my own
>> cutomized components.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
> ________________________________
> View message @
> http://apache-wicket.1842946.n4.nabble.com/Wicketter-with-ModalWindow-tp3044511p3045233.html
> To unsubscribe from Wicketter with ModalWindow, click here.
>

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketter-with-ModalWindow-tp3044511p3046164.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicketter with ModalWindow

Posted by Andrea Del Bene <ad...@ciseonweb.it>.
Hi!

What's  your problem, exactly? Can you display modal window or it 
doesn't open at all?

On 16/11/10 11:02, thobile wrote:
> I have a link that I click and new Modal window is poping up, I am having
> difficulties on testing my new Modal window components. Basically I a using
> Modal window popup to upload the file,  Please help I have tried google
> examples but still I cant get it right, how can I test a modal with my own
> cutomized components.
>    


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