That looks quite promising.  

  Is there a way to access the requestCycle, or even better, the response?  I'm 
in a test started by WicketTester.startPanel(TestPanelSource) and all instances 
of the requestCycle seem to be null.   The API states I shouldn't create one 
myself anyway.

  []s Gus



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: April 11, 2006 3:49 PM
To: [email protected]
Subject: Re: [Wicket-user] Testing attribute modifiers


you can partially render components, ajax does this, have a look at 
AjaxResponseTarget.respondComponent()

-Igor



On 4/11/06, Gustavo Hexsel < [EMAIL PROTECTED]> wrote:
  So there's no way to generate the output of a set of components and compare?  
Generating the page is overkill for my case, but I suppose I could use a 
String.indexOf to search for my tag...

  []s Gus



-----Original Message-----
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]
Sent: April 11, 2006 3:44 PM
To: [email protected]
Subject: Re: [Wicket-user] Testing attribute modifiers 


see our unit tests.
Just generate the page output in a WicketUnitTest and compare it what you 
expect.

johan



On 4/11/06, Gustavo Hexsel < [EMAIL PROTECTED] > wrote:
  Is there a way to test the final result of an attribute modifier?  I'm using 
them to set the src attribute of some <img> tags, set parameters on certain 
javascript functions, etc.  But I haven't seen any example of how to validate 
if it's working correctly. 

  Thanks!

    []s Gus


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast 
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast 
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to