Mocking input data while testing Panel

2009-03-17 Thread nitinkc
Input data can easily be set while testing wicket pages using FormTester. However, I am having difficulty mocking input data input when testing Panels. The panels can be started using the TestPanelSource as follows : wicketTester.startPanel(new TestPanelSource(){ private static

Re: Sorting a column populated through pupulateItem method...

2009-01-08 Thread nitinkc
As I had mentioned, the column values are not representative of the values of any property so that would not work asfernandes wrote: nitinkc wrote: I have a requirement to sort a column of a Datatable which does not have any property values. Sorting property columns is easy using

Sorting a column populated through pupulateItem method...

2009-01-07 Thread nitinkc
I have a requirement to sort a column of a Datatable which does not have any property values. Sorting property columns is easy using the getSortProperty() method. However in this case, I am populating the values in the column using the populateItem(org.apache.wicket.markup.repeater.Item

Dropdownchoice without default option choose one

2008-06-11 Thread nitinkc
I would like to remove the default choose one option from the DropDownChoice component. Does anyone know how to do this. Thanks. -- View this message in context: http://www.nabble.com/Dropdownchoice-without-default-option-%22choose-one%22-tp17782776p17782776.html Sent from the Wicket - User

Re: Dropdownchoice without default option choose one

2008-06-11 Thread nitinkc
)). Any ideas? Michael O'Cleirigh wrote: Hi nitinkc, Calling setNullValid (false) on the drop down choice should get rid of the default choose one text. If the ddc model should always have a value defined then you could set the model object to be for example the first choice. e.g

Re: Example of wicketstuff-minis' Veil

2008-06-11 Thread nitinkc
Igor, Any updates on this?? thanks! nitinkc wrote: Here is the stack trace: Root cause:java.lang.IllegalStateException: This behavior is already bound to component. An instance of this behavior cannot be reused between components. Bound component: [MarkupContainer [Component id = test

Re: Dropdownchoice without default option choose one

2008-06-11 Thread nitinkc
On Wed, Jun 11, 2008 at 6:14 PM, nitinkc [EMAIL PROTECTED] wrote: I would like to remove the default choose one option from the DropDownChoice component. Does anyone know how to do this. Thanks. -- View this message in context: http://www.nabble.com/Dropdownchoice-without-default-option

Re: Example of wicketstuff-minis' Veil

2008-06-04 Thread nitinkc
) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) I am using: wicketstuff-minis-1.3.0-SNAPSHOT.jar igor.vaynberg wrote: can you paste the stack trace please? are you using latest trunk? -igor On Tue, Jun 3, 2008 at 6:38 AM, nitinkc [EMAIL

Example of wicketstuff-minis' Veil

2008-06-03 Thread nitinkc
I need an example of wicketstuff-minis' veil behavior. I added this to one of my components but keep getting the error that the behavior is already bound to another component and cannot be reused. All I am doing is: Button button = new Button(test); button.add(new Veil()); form.add(button);

Adding behavior to rows of a datatable

2008-05-28 Thread nitinkc
I need to add a behavior(onclick event) to a row of a datatable implementation. So this will be invoked whenever the user clicks on any row of the datatable. Also, any ideas on how to change the mouse pointer icon while on the row. Thanks! -- View this message in context:

busy indicator for AjaxFormComponentUpdatingBehavior

2008-05-23 Thread nitinkc
I have added a AjaxFormComponentUpdatingBehavior to a DropDownChoice component to process the onchange request. I would like to show an ajax busy indicator while the request is processed. Any ideas? AjaxFormComponentUpdatingBehavior updateBehavior = new

unit testing setRenderResponse(new Page()) without instantiation of Page

2008-05-22 Thread nitinkc
I am looking to unit test the following: form.add(new AjaxSubmitLink(submitLink){ private static final long serialVersionUID = 3239568065916265026L; @Override protected void onSubmit(AjaxRequestTarget

Re: unit testing setRenderResponse(new Page()) without instantiation of Page

2008-05-22 Thread nitinkc
:51 AM, nitinkc [EMAIL PROTECTED] wrote: I am looking to unit test the following: form.add(new AjaxSubmitLink(submitLink){ private static final long serialVersionUID = 3239568065916265026L; @Override

Re: unit testing setRenderResponse(new Page()) without instantiation of Page

2008-05-22 Thread nitinkc
that onSubmit(AjaxRequestTarget target, Form form) is infact getting called. Any ideas? jwcarman wrote: Can those arguments be put into PageParameters? On Thu, May 22, 2008 at 11:24 AM, nitinkc [EMAIL PROTECTED] wrote: That won't work for me b'cos I am also passing constructor arguments

Re: Using the WicketTester WITHOUT rendering a response on submit

2008-05-22 Thread nitinkc
Timo, I am trying to achieve something similar. How did you manage to assign the TestingWebApplication to your WicketTester?? Thanks! mclev wrote: mclev wrote: 4. Can I test that the response page is what I expect when when I first render and when i submit my form So, call me

Re: unit testing setRenderResponse(new Page()) without instantiation of Page

2008-05-22 Thread nitinkc
Seems like bookmarkable setResponsePage will not work either. Check: http://www.nabble.com/How-to-test-setResponsePage-td16802302.html nitinkc wrote: I am not sure, but would rather not. I believe this is a standard way to create pages in Wicket(passing required arguments in constructors

Not rendering DataGrid if empty

2008-05-16 Thread nitinkc
Currently the DataGrid outputs a datatable with column headers and a message 'No Records Found' if the datalist is empty. Does anyone know if it is possible to render the datatable only if the list is not empty? Setting the visibility to 'false' is not an option as the markup is not rendered in

Re: Not rendering DataGrid if empty

2008-05-16 Thread nitinkc
That works. Thanks Matej! Matej Knopp-2 wrote: setVisible is possible, but you have to call setOutputMarkupPlaceholderTag(true) on it. -Matej On Fri, May 16, 2008 at 6:44 PM, nitinkc [EMAIL PROTECTED] wrote: Currently the DataGrid outputs a datatable with column headers

Disabling the date part in the DateTimeField component

2008-05-12 Thread nitinkc
Does anyone know if it is possible to disable just the date part in the DateTimeField component. I have a requirement to allow to user to only edit the hours and minutes. Is there another component/way to achieve this?? -- View this message in context: