org.apache.wicket.WicketRuntimeException: Unable to write the response

2010-06-29 Thread tommaso
Hello, This is my first post. I am not a web developer, I usually develop other kinds of systems, but for a quick project I have to do, I looked at JSF and I really did not like it. Finally, I have come across wicket and it was love at first sight. Now, so far everything has been

Re: org.apache.wicket.WicketRuntimeException: Unable to write the response

2010-06-29 Thread Martijn Dashorst
Don't let the user wait. Use a lazy panel to render the long stuff in the background, or if it even takes longer than that, calculate your model data in a background thread and use a timer to poll and see if the thread has finished, and use the result in a panel that you replace on your page.

Asynchronous tree

2010-06-29 Thread Bilgin Ibryam
Hi, Is there any wicket tree component which loads its children nodes asynchronously ie after expanding a branch - children are loaded with ajax? I need this in order to prevent the long initial delay, caused by loading all the nodes. In the examples I saw, all the child nodes were loaded at the

Re: Reading cookies on first/each request

2010-06-29 Thread Bilgin Ibryam
Thanks guys. This will solve my problem. Bilgin On Tue, Jun 29, 2010 at 6:10 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: alternatively requestcycle#onbeginrequest() is also a good place -igor On Mon, Jun 28, 2010 at 7:05 AM, M. Hammer nab...@hammer-tour.com wrote: Quoting Bilgin

Delete page map on close browser window

2010-06-29 Thread Branislav Kalas
Hi, in my apllication,users can open items from menu in new tabs/windows. When user opens item in new window system creates new page map for it. When user close window, pagemap is still in session. Is it somehow posibble to delete page map when user close browser window? Thanks.

Re: handling error in DataProvider

2010-06-29 Thread Decebal Suiu
Thanks again, I will try to profile my code. Another question is where I can clean my flags with errors (I keep in session a Map with widget's id as key and Exception as value)? I understand that onAfterRender method is not a good candidate because it's called on abort exception also. -- View

problem with two ListChoices connected each other

2010-06-29 Thread Java Programmer
Hello, I need a solution if such component exists: 1) first ListChoice have categories about 1-2k options 2) second ListChoice is empty 3) there are arrows which can move elements from first to second ListChoice, and the way back Main problem in such scenario would be with sending lot of

Re: OutOfMemoryError with lots of unit tests

2010-06-29 Thread Swanthe Lindgren
Thank you, it works //Swanthe On 2010-06-28 11:14, Major Péter wrote: Hi, Try something like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId inheritedtrue/inherited configuration skipTestsfalse/skipTests

java.util.ConcurrentModificationException from DefaultObjectStreamFactory

2010-06-29 Thread Michał Letyński
Hi. I got such error today Long time ago i had similar problem but with ClassCastException while deserialization. It was because i kept references from one page inside another. Nowdays i dont have such navigation, im using: RequestCycle.get().setResponsePage(xxxPage.class) Any ideas ? Hints

wicket:panel to datatable

2010-06-29 Thread midikem
hi! I am wondering how to add a wicket:panel/wicket:panel to a datatable. works to add my panel likte this add(new TestPanel(test)); But how do i add it as an iterating panel in the datatable. My datatable looks like this ListIColumnTest columns = new ArrayListIColumnTest();

@SpringBean not working for IModel implementations?

2010-06-29 Thread David Meulemans
Hi I've got an implementation of the IModel interface and I want to inject a Spring bean in it. In the method public String getObject(); this object is null. Is it impossible to inject Spring beans with @SpringBean? thx in advance! David

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread James Carman
Try using InjectorHolder.getInjector().inject(this); inside your model implementation's constructor. On Tue, Jun 29, 2010 at 9:30 AM, David Meulemans meulemans.da...@gmail.com wrote: Hi I've got an implementation of the IModel interface and I want to inject a Spring bean in it. In the

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread Ernesto Reinaldo Barreiro
I think component instantiation listener will only scan wicket components. Just try InjectorHolder.getInjector().inject(this); on constructor of the model to get your dependencies injected. Best, Ernesto On Tue, Jun 29, 2010 at 3:30 PM, David Meulemans meulemans.da...@gmail.com wrote: Hi

ListChoice - generics for model defined wrong

2010-06-29 Thread Douglas Ferguson
I was just attempt to use the ListChoice and it seems to me that the constructor signatures are wrong. The model for this should be List? extends T not ListT, otherwise you can't select more than one item (T), which is the point.. D/

Re: wicket:panel to datatable

2010-06-29 Thread vov
columns.add(new AbstractColumnTest(new Model()) { @Override public void populateItem(ItemICellPopulatorTest cellItem, String componentId, IModelTest rowModel) { cellItem.add(new TestPanel(componentId)); } }); -- View this message in context:

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-29 Thread dannyboy
Dear Igor, We are experiencing serious synchronization problems here. I have added a screenshot of our yourkit. It the same with all blocked threads. If you need more proof/information please let me know. Info of our system: Description: Solaris 10 Vendor : Sun Microsystems

Re: extending AbstractFormValidator as a validation adapter

2010-06-29 Thread Ray Weidner
Thanks, Igor, I now see the methods you are talking about, and your explanation makes perfect sense. On Tue, Jun 29, 2010 at 1:16 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Mon, Jun 28, 2010 at 9:27 PM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Hi all, The application

Re-rendering javascript in behavior

2010-06-29 Thread Muro Copenhagen
Hi, I have a small behavior that prevents doubleclick on buttons. It is added to Modal popups on a page. The problem i have is that if the Modal window appears twice on a page, the javascript variable value of the first popup is used. This is because i am using: response.renderJavascript(...);

Best practice: AJAX and how to implement state indicator image?

2010-06-29 Thread Erich W Schreiner
Dear all, I am trying to find the best way to implement a state indicator that shows different images. The state of the model object can be changed by the user, resulting in an AJAX update being sent the server and a re-rendering of the model object, which should show the correct state image

Re: Re-rendering javascript in behavior

2010-06-29 Thread Igor Vaynberg
the javascript contributions are filtered by the id given in the second parameter, in your case: pdcJS. since your ids are constant only the first contribution makes it. using UUID.random() will fix it it as far as header contributions go. -igor On Tue, Jun 29, 2010 at 7:45 AM, Muro Copenhagen

Re: Best practice: AJAX and how to implement state indicator image?

2010-06-29 Thread Igor Vaynberg
the resourcereference you give your image can serve different images based on some condition. -igor On Tue, Jun 29, 2010 at 7:47 AM, Erich W Schreiner eschrei...@yahoo.com wrote: Dear all, I am trying to find the best way to implement a state indicator that shows different images. The state

Pagination in wicket, DataTable, DataView or DataGrid

2010-06-29 Thread adp
Friends, you can do with dataTable pagination, DataView or DataGrid with wicket? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pagination-in-wicket-DataTable-DataView-or-DataGrid-tp2272370p2272370.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: ListChoice - generics for model defined wrong

2010-06-29 Thread James Carman
ListChoice doesn't allow you to choose multiple. You want ListMultipleChoice. On Tue, Jun 29, 2010 at 8:29 AM, Douglas Ferguson doug...@buzzstream.com wrote: I was just attempt to use the ListChoice and it seems to me that the constructor signatures are wrong. The model for this should be

Re: Pagination in wicket, DataTable, DataView or DataGrid

2010-06-29 Thread Jeremy Thomerson
Yes. See DefaultDataTable. On Tue, Jun 29, 2010 at 10:41 AM, adp adp1...@gmail.com wrote: Friends, you can do with dataTable pagination, DataView or DataGrid with wicket? -- View this message in context:

Re: Re-rendering javascript in behavior

2010-06-29 Thread Jeremy Thomerson
Of course, you'll still have the issue that you are using a single global variable for multiple things on the page. On Tue, Jun 29, 2010 at 10:24 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: the javascript contributions are filtered by the id given in the second parameter, in your case:

Re: passing a map into PageParameters

2010-06-29 Thread Fernando Wermus
Ray, I haven't had any succeded either. I am working with fb rest (facebook) which has some classes that work with json to store several kind of objects. In my case, I need my page to be bookmarkable. thanks anyway On Tue, Jun 29, 2010 at 1:47 AM, Ray Weidner ray.weidner.develo...@gmail.com

Re: question about adding synchronized on mountsOnPath at WebRequestCodingStrategy

2010-06-29 Thread Igor Vaynberg
optimized, try with latest branch build. -igor On Tue, Jun 29, 2010 at 7:18 AM, dannyboy danny.bolla...@gmail.com wrote: Dear Igor, We are experiencing serious synchronization problems here. I have added a screenshot of our yourkit. It the same with all blocked threads. If you need more

Re: Pagination in wicket, DataTable, DataView or DataGrid

2010-06-29 Thread adp
friend, I can not see the information you sent me the link does not open. The problem is that I must carry large amounts of data, and I can not do in memory, which is why I must find a way to do pagination with either a DataTable, DataView or DataGrid. Thanks for responding. -- View this message

Re: Pagination in wicket, DataTable, DataView or DataGrid

2010-06-29 Thread adp
Thank you for responding, I'm coming to see the link you sent me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pagination-in-wicket-DataTable-DataView-or-DataGrid-tp2272370p2272428.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Pagination in wicket, DataTable, DataView or DataGrid

2010-06-29 Thread Jeremy Thomerson
There's not a link that I sent you. I meant try using the DefaultDataTable. Look at how it does pagination. On Tue, Jun 29, 2010 at 11:41 AM, adp adp1...@gmail.com wrote: friend, I can not see the information you sent me the link does not open. The problem is that I must carry large amounts

Re: Pagination in wicket, DataTable, DataView or DataGrid

2010-06-29 Thread adp
You are right, sorry, thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pagination-in-wicket-DataTable-DataView-or-DataGrid-tp2272370p2272561.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Delete page map on close browser window

2010-06-29 Thread Branislav Kalas
On 06/29/2010 11:38 AM, Branislav Kalas wrote: Hi, in my apllication,users can open items from menu in new tabs/windows. When user opens item in new window system creates new page map for it. When user close window, pagemap is still in session. Is it somehow posibble to delete page map when

How to access above hierarchy in the markup

2010-06-29 Thread Brown, Berlin [GCG-PFS]
Pseudo Code: CompoundPropertyModelString labelModel = new CompoundPropertyModelString(labelProps); panel.setDefaultModel(labelModel); /* Load labels at the PANEL level */ panel.add(new Label(label[1])); form = new Form(new CompoundPropertyModel(myObj)) /* Load data at the form level */

Re: Delete page map on close browser window

2010-06-29 Thread Branislav Kalas
On 06/29/2010 08:48 PM, Branislav Kalas wrote: On 06/29/2010 11:38 AM, Branislav Kalas wrote: Hi, in my apllication,users can open items from menu in new tabs/windows. When user opens item in new window system creates new page map for it. When user close window, pagemap is still in session.

Re: Delete page map on close browser window

2010-06-29 Thread Branislav Kalas
On 06/29/2010 09:03 PM, Branislav Kalas wrote: On 06/29/2010 08:48 PM, Branislav Kalas wrote: On 06/29/2010 11:38 AM, Branislav Kalas wrote: Hi, in my apllication,users can open items from menu in new tabs/windows. When user opens item in new window system creates new page map for it. When

Testing CheckBox.onSelectionChanged(Object newSelection) using FormTester

2010-06-29 Thread Michael Small
I'm currently trying to test my implementation of CheckBox.onSelectionChanged(Object newSelection) ... I've created my CheckBox as follows ... item.add(new CheckBox(checkBoxId) // note that model object comes thru compound property model { @Override protected void

Re: @SpringBean not working for IModel implementations?

2010-06-29 Thread david_
Thanks, I'll give it a try! 2010/6/29 Ernesto Reinaldo Barreiro-4 [via Apache Wicket] ml-node+2272202-1574848512-232...@n4.nabble.comml-node%2b2272202-1574848512-232...@n4.nabble.com I think component instantiation listener will only scan wicket components. Just try

Re: Testing CheckBox.onSelectionChanged(Object newSelection) using FormTester

2010-06-29 Thread Ernesto Reinaldo Barreiro
Isn't CheckBox using JavaScript, executed on the client, to generate the onclick callback? See CheckBox.onComponentTag... e.g. tag.put(onclick, window.location.href=' + url + (url.toString().indexOf('?') -1 ? amp; : ?) + getInputName() +

Model not Updating on Multiple Form Submits

2010-06-29 Thread jbrookover
Hey all, I have a component, ResponseArea, that get's a HibernateObjectModelResponse. This ResponseArea then passes that same model down to it's sub components (ResponseEditor, ResponseViewer). ResponseEditor passes this model further down to a FormResponse. I have some jQuery script that

Re: Model not Updating on Multiple Form Submits

2010-06-29 Thread jbrookover
To clarify even further, I did try to hack it so I changed the model of the form directly (even though, I presume, it's all the same model propagated up and down the hierarchy). That also did not work. Nothing I've done will force the Form to take a new object before its next submission.

Re: org.apache.wicket.WicketRuntimeException: Unable to write the response

2010-06-29 Thread tommaso
Marjin, Thanks, I suppose that solves part of my problem. The wait is only 1 sec or so, so using a lazy panel is a great idea, but does not eliminate my underliying problem. For instance the user can still press the refresh button causing the same exception and the same problem (some sort of

how to pass parameters to javascript function?

2010-06-29 Thread Gustavo Henrique
Hi! I need to put in the page a javascript function with name and Id of customer. I'm using a label component because I don't know others solutions. Any idea? Thanks!

Mulitple Forms in ListView

2010-06-29 Thread TH Lim
Hi, I have multiple forms in a ListView. So in order not to show the same error messages in all feedback panels I use ContainerFeedbackMessageFilter to filter the error messages. This didn't work and the warning was Component-targetted feedback message was left unrendered. This could be because

Re: how to pass parameters to javascript function?

2010-06-29 Thread Jeremy Thomerson
On Tue, Jun 29, 2010 at 9:44 PM, Gustavo Henrique gustavo...@gmail.comwrote: Hi! I need to put in the page a javascript function with name and Id of customer. I'm using a label component because I don't know others solutions. Any idea? Thanks! AbstractBehavior#renderHead -- Jeremy

Re: Model not Updating on Multiple Form Submits

2010-06-29 Thread Jeremy Thomerson
Too many variables to debug without seeing the actual code. The best thing for you to do would be to create a quickstart so that we could try to run it. Of course, most people find their problem while creating the quickstart. On Tue, Jun 29, 2010 at 3:56 PM, jbrookover jbrooko...@cast.org

Re: How to access above hierarchy in the markup

2010-06-29 Thread Jeremy Thomerson
The hierarchy must match. If you want to use the label in the form, add it to the form, not the panel. On Tue, Jun 29, 2010 at 1:59 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Pseudo Code: CompoundPropertyModelString labelModel = new

Re: extending AbstractFormValidator as a validation adapter

2010-06-29 Thread Ray Weidner
Igor (or anyone else who knows the answer), There is one problem with my implementation of the FormValidator in the code that I included earlier. It performs validation using the Form's model object, which is a problem because the input hasn't been mapped onto it at this stage of validation.

Re: extending AbstractFormValidator as a validation adapter

2010-06-29 Thread Jeremy Thomerson
If you need to validate after the data has been pushed to the model, then just validate in the onSubmit and call error on the individual components for the form. Leave the form validator out of it. On Tue, Jun 29, 2010 at 11:03 PM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Igor (or

Re: problem with two ListChoices connected each other

2010-06-29 Thread Igor Vaynberg
See the palette component -igor On Jun 29, 2010 3:11 AM, Java Programmer jprogrami...@gmail.com wrote: Hello, I need a solution if such component exists: 1) first ListChoice have categories about 1-2k options 2) second ListChoice is empty 3) there are arrows which can move elements from first

Re: handling error in DataProvider

2010-06-29 Thread Igor Vaynberg
RequestCycle#onBeginRequest() may be a good place On Jun 29, 2010 3:04 AM, Decebal Suiu decebal.s...@asf.ro wrote: Thanks again, I will try to profile my code. Another question is where I can clean my flags with errors (I keep in session a Map with widget's id as key and Exception as value)? I

Re: passing a map into PageParameters

2010-06-29 Thread Igor Vaynberg
Page parameters only support strings, so you will have to encode and decode yourself -igor On Jun 29, 2010 9:49 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Ray, I haven't had any succeded either. I am working with fb rest (facebook) which has some classes that work with json to

wiQuery grid row expander

2010-06-29 Thread John Armstrong
Back in march there was a thread titled wiQuery components with server side state - live demo On that thread Richard Poway and I corresponded about a Grid Row Expander. I never saw the reply but in a recent google for this I can across a link he posted in that thread

static or nonstatic inner classes

2010-06-29 Thread Sigmar Muuga
Hello, while designing pages for my app, I was thinking, if there is some difference, when I use static or nonstatic classes in my page classes? For example: public class MyPage extends Page { some code private /** Should it be static or not? */ class MyForm extends Form { } } Best

Re: wiQuery grid row expander

2010-06-29 Thread Ernesto Reinaldo Barreiro
John, See [1] and in particular the answer from Cemal (the one on Jun 16...) That might answer part of your question. Some time ago I have started [2], the implementation there is not that complete yet but at least it could give you a starting point. And, of course, patches and contributions are