Re: Form questions

2013-07-16 Thread Sven Meier
Hi, Some problems I can't figure out. The code to create the button complains that it requires a CnavUrl but gets back a String. add(new Button(publish, model) { @Override public void onSubmit() { CnavUrl cnavUrl = (CnavUrl) getModelObject();

RE: how to add select/deselect all checkbox to wicket DataTable

2013-07-16 Thread wicket_user_100
Hi Paul Bors, thanks for you reply. I want to select all results for the entire data table. I think it's a common problem, actually. I've seen many posts in the Internet where people didn't find a simple solution for this task, so I think it will be very useful to share it with the WicketStuff's

wicket based e-mail UI

2013-07-16 Thread Ernesto Reinaldo Barreiro
Hi, Does anyone has developed an open source, easy to adapt, e-mail client UI? Of course, based on wicket. -- Regards - Ernesto Reinaldo Barreiro

Problem with wiQuery Dialog after upgrade to Wicket 6.9

2013-07-16 Thread Andrew Schetinin
Hi, I've just upgraded from Wicket 1.4 to 6.9, and (among lots of other problems) I have a trouble with porting the code that submitted a form from within a wiQuery dialog. My code is based on the sample that can be found here:

Re: Problem with wiQuery Dialog after upgrade to Wicket 6.9

2013-07-16 Thread Sebastien
Hi Andrew, You have to override your ajaxbehavior#updateAjaxAttributes() protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setMethod(Method.POST); //if you wish to post attributes.setFormId(yourFormId); } Best

Re: Problem with wiQuery Dialog after upgrade to Wicket 6.9

2013-07-16 Thread Andrew Schetinin
Hi Sebastien, Thank you for the suggestion, but the trouble with the sample (and wiQuery) is that DialogButton is not a wicket component - it is a very simple object. There is no updateAjaxAttributes() to change. As I explained, the form submit there works by a plain call from JavaScript, and

Ajax Refreshing Issue

2013-07-16 Thread dhongyt
I have created a panel that I would like to have refresh every 5 seconds. I have tried using AbstractAjaxTimerBehavior and AjaxSelfUpdatingTimerBehavior. I have created just a simple case to make sure a System.out.println(Update); to make sure that line of code is being called but is not called

Re: Ajax Refreshing Issue

2013-07-16 Thread Francois Meillet
Can you show your stacktrace ? François Meillet Formation Wicket - Développement Wicket Le 16 juil. 2013 à 19:17, dhongyt davidhtr...@gmail.com a écrit : I have created a panel that I would like to have refresh every 5 seconds. I have tried using AbstractAjaxTimerBehavior and

Re: Ajax Refreshing Issue

2013-07-16 Thread Gabriel Landon
Which version of wicket are your using? I remember AjaxSelfUpdatingTimerBehavior was not working in 6.3.0 https://issues.apache.org/jira/browse/WICKET-4886 Regards, Gabriel. -- View this message in context:

How to hide an optional Image component?

2013-07-16 Thread Stefan Renz
Hi guys, I'm desparate for your help: I just can't figure out how to suppress an Image in case its IResource yields nothing. Here's some context: A customer may have a custom logo image (in fact, there's some logic involved in determining which exact logo to use, but that's beside the point)

Re: How to hide an optional Image component?

2013-07-16 Thread Cedric Gatay
Hi, a workaround could be returning an empty 1px*1px image from your IResource. This way browsers won't complain with invalid content as you encounter. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info |

Re: How to hide an optional Image component?

2013-07-16 Thread Sven Meier
apart from asking the database _again_ for the data or presence thereof Whether the image is visible must be determined when the page is rendered. The actual loading of the image is done in another request. Thus two times to ask the databse. Alternatively you may render a default resource

Re: How to resolve this java.util.ConcurrentModificationException

2013-07-16 Thread saty
Thanks, but could you please explain how wicket handles serialization of objects that could throw this error. I could be wrong but it appears to me wicket is iterating the data structure for its serialization efforts when its being modified by other threads as well and the iteration results in

Re: How to resolve this java.util.ConcurrentModificationException

2013-07-16 Thread Dan Retzlaff
Wicket serializes access to each page instance, but provides no further synchronization. Non-transient references to application data must be synchronized by you. On Tue, Jul 16, 2013 at 2:39 PM, saty satya...@gmail.com wrote: Thanks, but could you please explain how wicket handles

Re: Problem with wiQuery Dialog after upgrade to Wicket 6.9

2013-07-16 Thread Sebastien
Hi, I think the idea is more to replace wicketSubmitFormById('form',' +formAjaxBehavior.getCallbackUrl() +', null, null, null, null,null);))); by formAjaxBehavior.getCallbackFunction() With the override mentioned bellow. #getCallbackFunction() will get you the ready-to-use javascript function. I

Re: Form questions

2013-07-16 Thread Daniel Watrous
Thanks Paul and Sven. I got the form to work and available in the onSubmit handler. Now I'm interested in splitting the form out into it's one file. So I created a class that has nothing more than the form, but I'm not sure how to include this into a page. In my class I do this: public class

RE: Form questions

2013-07-16 Thread Paul Bors
Wicket is a MVC component driven framework similar to Swing. In short, what you want to do is create your own Panel with that form file of yours and add it to another Panel as a child. See chapter 4 Keeping control over HTML of the Wicket Free Guide at: http://code.google.com/p/wicket-guide/

Re: Problem with wiQuery Dialog after upgrade to Wicket 6.9

2013-07-16 Thread Ernesto Reinaldo Barreiro
Hi, Let me see If I get a chance to look at this today... On Wed, Jul 17, 2013 at 2:54 AM, Sebastien seb...@gmail.com wrote: Hi, I think the idea is more to replace wicketSubmitFormById('form',' +formAjaxBehavior.getCallbackUrl() +', null, null, null, null,null);))); by