Re: WicketTester and Palette component

2010-07-31 Thread Kent Tong
Hi Loic, If you use wicket page test (http://wicketpagetest.sourceforge.net), you can test it like: DefaultSelenium selenium = WebPageTestContext.getSelenium(); WicketSelenium ws = new WicketSelenium(selenium); ws.openBookmarkablePage(PalettePage.class); String[] allProducts = selenium.g

Re: Disabling serialization in wicket tester....

2010-07-31 Thread Kent Tong
> I would like very much to disable serialization in wicket tester. I > am using pages with mockito mocks that are not serializable (and why > should they in a unit test). I am using workarounds now. You can take a look at http://wicketpagetest.sourceforge.net which allows you to inject non-seria

Re: Closing of tags

2010-07-31 Thread Abdul Qadir
I'm controlling the content of my tags with an AttributeAppender and in my markup they are closed with /> WebComponent keywords = new WebComponent("metaKeywords"); StringResourceModel keyModel = new StringResourceModel("meta.standard-keywords", this, new Model(this)); keywords.add(new Attribu

Re: Disabling serialization in wicket tester....

2010-07-31 Thread James Carman
Will mockito let you mock more than one class at once? If so, you can add Serializable to the list. On Jul 31, 2010 5:40 PM, "Erik Brakkee" wrote: > That my tests will not be equivalent is no big problem. In this case I am > really unit testing the pages while mocking the backend. That allows m

Re: Disabling serialization in wicket tester....

2010-07-31 Thread Erik Brakkee
That my tests will not be equivalent is no big problem. In this case I am really unit testing the pages while mocking the backend. That allows me to also test anomalous behavior of the backend. In addition, I am also doing unit integration testing with rendering wicket pages with an actual JPA bac

Re: Disabling serialization in wicket tester....

2010-07-31 Thread Martin Makundi
Your tests will not be equivalent .. ** Martin 2010/8/1 Erik Brakkee : > Hi, > > > I would like very much to disable serialization in wicket tester. I am using > pages with mockito mocks that are not serializable (and why should they in a > unit test). I am using workarounds now. > > Is there an

Disabling serialization in wicket tester....

2010-07-31 Thread Erik Brakkee
Hi, I would like very much to disable serialization in wicket tester. I am using pages with mockito mocks that are not serializable (and why should they in a unit test). I am using workarounds now. Is there an easy way in wicket tester to disable the serializations that occur? Cheers Erik

Re: DateField throwing runtime error in IE only

2010-07-31 Thread shetc
I went with catrina84's solution by using a date text field out of the form, and a related hidden text in the form. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateField-throwing-runtime-error-in-IE-only-tp1872555p2309086.html Sent from the Wicket - User mailing

Re: FileUploadException wrapped in wiketRuntime exception, why? is that a good practice?

2010-07-31 Thread Igor Vaynberg
its checked because it came from commons-upload, we didnt write it. open a jira to create a runtime version of it and wrap it in that. -igor On Sat, Jul 31, 2010 at 5:48 AM, nicolas melendez wrote: > Hi there, i have a question about FileUploadException. > > In line 80 of MultipartServletWebReq

Re: Wicket and JEE6

2010-07-31 Thread Erik Brakkee
It appears that I ran into an existing Glassfish V3 issue. The same issue occurs with passivation of regular EJBs that have an entitymanager injected. See https://glassfish.dev.java.net/issues/show_bug.cgi?id=11356

FileUploadException wrapped in wiketRuntime exception, why? is that a good practice?

2010-07-31 Thread nicolas melendez
Hi there, i have a question about FileUploadException. In line 80 of MultipartServletWebRequest, the constructor throws FileUploadException which is checked, and then in line 500 of ServletWebRequest, it was wrapped to a wickerRuntimeException, @Override public WebRequest newMultipartWebR

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Martin Makundi
Wicket is wicked ;) ** Martin 2010/7/31 Mark Doyle : > Yeah, I actually messed up the behaviour because I never noticed the > rendOnLoad method. > > I've done as you suggested in the behaviour and then simply added that to > the component.  It works perfectly, thanks Martin. > > > The progression

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Mark Doyle
Yeah, I actually messed up the behaviour because I never noticed the rendOnLoad method. I've done as you suggested in the behaviour and then simply added that to the component. It works perfectly, thanks Martin. The progression to more advanced Wicket certainly requires more web specific knowle

wicketstuff-push

2010-07-31 Thread Takeo Hosomi
I'm interested in implementing an authentication feature with wicketstuff-push (1.4.9.2), and it works with slight modifications. I share what I did. I basically implements written at http://cometd.org/documentation/howtos/authentication. What I change is two methods. (1) CometdAbstractBehavior#

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Martin Makundi
Headercontribution can be added to many things ... 2010/7/31 Mark Doyle : > Ah ok, I'll test that.  I never thought of just adding it to the Page. > > > What, if any, is the difference between this and adding the behaviour to the > WebPage which is a kind of Component? > > > On Fri, Jul 30, 2010 a

Re: Trouble creating a behaviour that adds JS and also a Body onLoad event

2010-07-31 Thread Mark Doyle
Ah ok, I'll test that. I never thought of just adding it to the Page. What, if any, is the difference between this and adding the behaviour to the WebPage which is a kind of Component? On Fri, Jul 30, 2010 at 7:03 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > You c