DB lookup time-out within DataTable Iterator

2010-09-07 Thread Frank Prins
Hi guys! Breaking my head on the following, hopefully someone might be able to give me a hint? In a page which serves a view on a log database with quite a lot of rows, I am using a DataTable to show the rows. The data for the table is being served by a SortableDataProvider which looks a bit

Re: DB lookup time-out within DataTable Iterator

2010-09-07 Thread Ernesto Reinaldo Barreiro
Hi Frank, Just an idea... If you do the filtering via AJAX you could use the same AJAX request to: 1- display a modal window in case you get the timeout error: just place the ModalWindow on your page do modalWindow.addOrReplace(new MyErrorMessagePanel(modalWindow.getContentId())); and use

Re: checkGroup - 2 out of 5?

2010-09-07 Thread nino martinez wael
you an also do it server side... just check your model on submit etc.. 2010/9/6 Zeldor pgronkiew...@gmail.com Oh, I hoped that it can be avoided. So anyone has AJAX example at hand? -- View this message in context:

Re: checkGroup - 2 out of 5?

2010-09-07 Thread Xavier López
I'd do it with a component validator. That would avoid the Form's onSubmit being called and getting the model updated with incorrect user data. Or also with a FormValidator. If I remember correctly, you can call getConvertedInput to get the Checkgroup's list of selected values. Cheers, Xavi

Re: StringResourceModel - On the Fly

2010-09-07 Thread Matthias Keller
Hi Why not use one of the various methods on the localizer? getLocalizer().getString(...) Or if not in a component Application.get().getResourceSettings().getLocalizer().getString(...) Matt On 2010-09-06 19:26, msantos wrote: Thats solve the problem. I already have a resource bundle on the

Re: checkGroup - 2 out of 5?

2010-09-07 Thread nino martinez wael
yup validator's more correct 2010/9/7 Xavier López xavil...@gmail.com I'd do it with a component validator. That would avoid the Form's onSubmit being called and getting the model updated with incorrect user data. Or also with a FormValidator. If I remember correctly, you can call

Re: checkGroup - 2 out of 5?

2010-09-07 Thread Xavier López
To switch the last check with the first checked in case there are two of them checked already, you could also use an AjaxFormComponentUpdatingBehavior to do it server-side, though that would only be disadvantages. I remember some nasty issues with the onchange event on checkboxes with IE, and the

issue using executeAjaxEvent for a test

2010-09-07 Thread Antonio Mauriello
Hi All, I have an issue trying to test an ajax event. I have two different wicket classes which need to talk each other. Both classes have a TextField plus a ListMultipleChoice. When the user types a word into the class A textField the items of the class A list get filtered and, based on the new

Inmethod datagrid adding aggregate rows

2010-09-07 Thread pieter_degraeuwe
Hi, I'm looking for some hints for doing the following: I have an Inmethod datagrid, which has the columns 'amount', 'product', 'detail', 'price'. I would like to have at the bottom of the table (just above the paging toolbar) an extra row which shows me the sum (total) of all prices in the

Architect

2010-09-07 Thread Amber Miller
Hello I have a position in Chicago, IL for a Java/Wicket Architect. Take a look at the job description and let me know if you are interested. This is a 6+ month gig for a client of mine. Interviews can happen within 24 hours of submission and phone interviews are all that is needed.

How to run some JS only once after Ajax rendering is done ?

2010-09-07 Thread Joseph Pachod
hi I've some components which require some client side javascript which require one init call (for all) to be initialized. In fact, this init call uses selectors to get at the components to work one. My issues is with Ajax. It happens that, during it, some new components required this init

Re: Inmethod datagrid adding aggregate rows

2010-09-07 Thread Branislav Kalas
Hi i also tried this. I ended up by positioning aggregation toolbar right after column headers. (as custom toolbar which extends AbstractHeaderToolbar). I think it is not easy to have this toolbar at the bottom (specially when you have enabled column resizing, because you have to bind somehow

Re: Inmethod datagrid adding aggregate rows

2010-09-07 Thread Charles Deal
My team solved the problem the same way, by using a custom Header Toolbar under the header labels. Couldn't find a clean way to create a footer toolbar that matched the columns. On Tue, Sep 7, 2010 at 9:49 AM, Branislav Kalas bka...@gmail.com wrote: Hi i also tried this. I ended up by

Re: How to run some JS only once after Ajax rendering is done ?

2010-09-07 Thread Fabrice BUQUET
Maybe you can try IHeaderResponse.renderOnDomReadyJavascript 2010/9/7 Joseph Pachod j...@thomas-daily.de hi I've some components which require some client side javascript which require one init call (for all) to be initialized. In fact, this init call uses selectors to get at the components

DiskPageStore with Terracotta

2010-09-07 Thread Jeremy Levy
When using Terracotta WebSessions 3.3.0 with Wicket 1.4.9 on JBoss 4.2 / Tomcat6 the DiskPageStore grows infinitely. After a few days our jboss/server/myserver/work/jboss.web/localhost/[context]/[filtername]-filestore is filled with gigabytes of data. The terracotta folks say that they aren't

Re: How to run some JS only once after Ajax rendering is done ?

2010-09-07 Thread Andrea Del Bene
Joseph Pachod jp at thomas-daily.de writes: When trying to reach this goal, I tried to run the init call through an header contributor, but the call is then done before my content is put on the page, making it useless: public abstract class AbstractEditBehavior extends AbstractBehavior {

Re: Radio buttons in modal window in IE6

2010-09-07 Thread Andrea Del Bene
Grafas martynas.jurkus at gmail.com writes: ... But every time I submit that form model object is NAME and in browser radio button jumps from whatever I checked to the first one although I never relaod the radio button part. Only search result container is added to a target to display

Re: Radio buttons in modal window in IE6

2010-09-07 Thread Grafas
Strange... Yes, AJAX work perfectly - we are using AJAX in many places... Also we use other modal windows with forms and text fields, text areas and dropdowns in it and they work just fine... This modal window is the only with radio buttons Andrea, are you using Wicket 1.3.5 for your tests?

Re: DiskPageStore with Terracotta

2010-09-07 Thread Igor Vaynberg
i believe the cleanup happens on session timeout. so if terractotta is preserving sessions forever then wicket will not cleanup the filestore. this is without me actually checking the code. you can force a size of each file, but that file is per session, so if you have unlimited sessions i dont

Error in FormTester with 1.4 but not with 1.5

2010-09-07 Thread Andrea Selva
Hi list with the following test public void testFormAndLinkAreSubmitted() { WicketTester tester = new WicketTester(); tester.startPage(FormPage.class); FormPage page = (FormPage)tester.getLastRenderedPage(); Assert.assertFalse(page.isSubmitLinkSubmitted());

Re: DB lookup time-out within DataTable Iterator

2010-09-07 Thread Michael O'Cleirigh
Hi Frank , Are you sure that your dao is setting max results on the underlying query? The provider.iterator(...) should only be returning the current page values and typically the page size would be small like 25 to 100. Also it depends on your backend database since I know that some

Re: DB lookup time-out within DataTable Iterator

2010-09-07 Thread James Carman
It could be returning only 25 rows, but the criteria itself is what makes the query slow. In that case, I'd recommend looking at your indexes. Sometimes indexing doesn't help very much, though. On Tue, Sep 7, 2010 at 2:43 PM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote:  Hi Frank ,

Re: rendering a page for an email: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-09-07 Thread Jeremy Thomerson
On Fri, Sep 3, 2010 at 12:10 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, I have coded the following to render a mail, Application app; try{ app=MyApplication.get(); }catch(Exception e){ app=new WicketTester().getApplication(); } final Application app2=app; final

Re: Error in FormTester with 1.4 but not with 1.5

2010-09-07 Thread Igor Vaynberg
wicket tester in trunk and in 1.4.10 have diverged a lot due to changes in trunk. there may not even be anything to backport, this bug may have been fixed as part of making wickettester work with changes in trunk. -igor On Tue, Sep 7, 2010 at 11:46 AM, Andrea Selva selva.an...@gmail.com wrote:

Re: Replicating tinyMCE

2010-09-07 Thread David Hendrix
05.09.2010 13:49, Bas Gooren: Hi Bas, thanks a lot! This looks like the missing part. As soon as I got this working, I'll come back to you with the results (it's a weekend project so I didn't try this right now). David David, You can see an example (plus javascript code required to

Re: Radio buttons in modal window in IE6

2010-09-07 Thread andrea del bene
On 09/07/2010 07:42 PM, Grafas wrote: Strange... Yes, AJAX work perfectly - we are using AJAX in many places... Also we use other modal windows with forms and text fields, text areas and dropdowns in it and they work just fine... This modal window is the only with radio buttons Andrea, are

wicketstuff repo down again

2010-09-07 Thread Steve Swinsburg
Hi all, The wicketstuff repo is down again. Is there any chance the tagged artifacts from the wicketstuff repo can be synced to a more reliable Maven repo (central even)? I have the ones I need in my own remote repo but this doesn't work for others that build my project. Thanks, Steve

Re: wicketstuff repo down again

2010-09-07 Thread Michael O'Cleirigh
Hi Steve, Wicketstuff-core artifacts have been released through the oss.sonatype.org repository and into central since version 1.4.7. (with the latest being 1.4.10.1) See: http://repo2.maven.org/maven2/org/wicketstuff/ Snapshots are here:

Prompt on file upload

2010-09-07 Thread Alec Swan
Hello, I would like to have an upload form (org.apache.wicket.markup.html.form.Form) to prompt the user to confirm their upload decision. I tried attaching a new AjaxEventBehavior(onsubmit) to the form, but it does not get called. How can I prompt the user when they initiate the upload? Thanks,

Re: Prompt on file upload

2010-09-07 Thread Jeremy Thomerson
On Tue, Sep 7, 2010 at 11:35 PM, Alec Swan alecs...@gmail.com wrote: Hello, I would like to have an upload form (org.apache.wicket.markup.html.form.Form) to prompt the user to confirm their upload decision. I tried attaching a new AjaxEventBehavior(onsubmit) to the form, but it does not get

Re: How to run some JS only once after Ajax rendering is done ?

2010-09-07 Thread Bernhard Schauer
I think you could do it as follows. The js function 'bindYourEvent()' is called after the the components that are added to the AjaxRequestTarget are 're-painted'. form.add(new AjaxButton(set) { @Override protected void onSubmit(final AjaxRequestTarget target,