Re: testing MultiFileUploadField

2010-08-09 Thread Loic

Hi,
i have the same issue...
did you find a way to make it work?

thanks, regards 

Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/testing-MultiFileUploadField-tp1887475p2318631.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: WicketTester and Palette component

2010-08-03 Thread loic

It seems good but i would really like to be able to test Palette without a
new framework 

Is it really impossible to test Palette with wicket-tester?

Regards
Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2312048.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: WicketTester and Palette component

2010-08-02 Thread loic

Hi Kent, thanks a lot i will take a look a this

Regards,
Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2310424.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: FormComponentPanel Behavior

2010-07-30 Thread loic

Hello Bernard,
why did you ask a new question in this topic?

I think my issue is lost now :)

Dos anybody have an idea for the original question?

Thanks

Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2307708.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



WicketTester and Palette component

2010-07-29 Thread loic

Hello,
i'm trying to test a form with a Palette component, with WicketTester.

I don't know how to make a selection into the palette.
I did all the stuff i need to fill the Palette with some values, so it
should not be empty.

If i do 

formTester.selectMultiple(myPalette, new int[] {0});

I get a palette cannot be cast to FormComponent error.

Palette contains a recorder component, which is a FormComponent (it
extends TextField)

if i try 

formTester.select(myPalette:recorder, 0 );

or 
formTester.selectMultiple(myPalette:recorder, new int[] {0});

I get a Trying to select on null component error ...

Thanks for your help!

Loic


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2306743.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



WicketTester, navigate into tabs

2010-07-28 Thread loic

Hello,
i 'm trying to write unit tests with WicketTester (wicket-test).

I have a little problem : i'm trying to access to components into a
tabbedpanel.

My page looks like this : 

html
h2/h2
div wicket:id=tabbedPanel class=tabpanel/
/html

In this page, i have several tabs. In the first tab, i have a form. I would
like to access to this form from my test.

The first tab looks like this :

html
  wicket:panel  
  form wicket:id=form
  blabla
  /form
  /wicket:panel
/html

I've tried to write a test like :

tester.startPage(new MyPage());
tester.assertRenderedPage(MyPage.class);
FormTester formTester = tester.newFormTester(tabbedPanel:form);

No surprise, I get an error,  'tabbedPanel:form' does not exists for page
MyPage 

Do you know how i could make this kind of test?

Thanks, regards 

Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304649.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: WicketTester, navigate into tabs

2010-07-28 Thread loic

Thanks i try this!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304700.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: WicketTester, navigate into tabs

2010-07-28 Thread loic

I'm not sure to understand how wicketTester.debugComponentTrees() works, it
does not output anything in the console.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304914.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: WicketTester, navigate into tabs

2010-07-28 Thread loic

If i write 

tester.startPage(new MyPage()); 
tester.assertRenderedPage(MyPage.class); 
tester.debugComponentTrees();

I juste have this in the console output : 

log4j:WARN No appenders could be found for logger
(org.apache.wicket.protocol.http.pagestore.FileChannelPool).
log4j:WARN Please initialize the log4j system properly.

*** WARNING: Wicket is running in DEVELOPMENT mode.  ***
***   ^^^***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***


maybe the problem comes from log4j, maybe i must define the appender?

Regards

Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2305026.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: WicketTester, navigate into tabs

2010-07-28 Thread loic

I've added a log4j.xml file in my src/test/resources folder, it works now,
thanks a lot
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2305094.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Datatable Internationalization

2009-02-24 Thread Loic Descotte
Nobody knows how to do that?
In the source code i've found this comment :

The message can be overridden using the codeNavigatorLabel/code property
key, the default message is used is of the
 format codeShowing ${from} to ${to} of ${of}/code
So i guess it should work, i must have missed something...



On Mon, Feb 23, 2009 at 10:15 AM, Loic Descotte loic.desco...@gmail.comwrote:

 Hi all,
 I have a question about Wicket Datatable Component Internationalization.
 In the datatable, in don't find how to change the text Showing 1 to 10 of
 N in the navigation toolbar.

 The Datatable component is associated to a NavigatorToolBar component, wich
 is associated to a NavigatorLabel.
 I've found this code in the NavigatorLabel.java file :

 new StringResourceModel(NavigatorLabel, this,
 new ModelLabelModelObject(new LabelModelObject(table)),
 Showing ${from} to ${to} of ${of})

 I've tried to redefine NavigatorLabel in my properties files, but it
 does'nt work, the text the Showing 1 to 10 of N does'nt change.

 I've tried this :

 NavigatorLabel = Lignes ${from} à ${to} sur ${of}
 and

 NavigatorLabel = Lignes ${0} à ${1} sur ${2}

 Do anyone knows how to make this work?

 Thanks a lot

 --
 Loïc Descotte
 9 rue Sébastien Gryphe
 69007 Lyon

 06 23 23 36 80




-- 
Loïc Descotte
9 rue Sébastien Gryphe
69007 Lyon

06 23 23 36 80


Datatable Internationalization

2009-02-23 Thread Loic Descotte
Hi all,
I have a question about Wicket Datatable Component Internationalization.
In the datatable, in don't find how to change the text Showing 1 to 10 of
N in the navigation toolbar.

The Datatable component is associated to a NavigatorToolBar component, wich
is associated to a NavigatorLabel.
I've found this code in the NavigatorLabel.java file :

new StringResourceModel(NavigatorLabel, this,
new ModelLabelModelObject(new LabelModelObject(table)),
Showing ${from} to ${to} of ${of})

I've tried to redefine NavigatorLabel in my properties files, but it
does'nt work, the text the Showing 1 to 10 of N does'nt change.

I've tried this :

NavigatorLabel = Lignes ${from} à ${to} sur ${of}
and

NavigatorLabel = Lignes ${0} à ${1} sur ${2}

Do anyone knows how to make this work?

Thanks a lot

-- 
Loïc Descotte
9 rue Sébastien Gryphe
69007 Lyon

06 23 23 36 80


Re: What IDE best fits with Wicket?

2009-02-23 Thread Loic Descotte
Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

On Mon, Feb 23, 2009 at 9:57 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 This is my choice, too, but the most concrete reason I have is I like it
 and it works well *for me*.  Find one that fits those criteria for you,
 and you'll be happy :)

 On Mon, Feb 23, 2009 at 2:48 PM, Brill Pappin br...@pappin.ca wrote:

  your choices are pretty limited based on criteria... however I'm an
 Eclipse
  fan.
  I use Eclipse with maven2...
 
  - Brill
 
 
 
  On 23-Feb-09, at 2:19 PM, Eduardo Nunes wrote:
 
   Hello guys,
 
  I don't want to generate a flame war but I want to know your opinion
  about what IDE best fits with Wicket?
 
  The basic requirements are: free and the set of plug-ins free too.
 
  Thanks,
  Eduardo S. Nunes
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Jeremy Thomerson
 http://www.wickettraining.com




-- 
Loïc Descotte
9 rue Sébastien Gryphe
69007 Lyon

06 23 23 36 80