RE: How to fail validation if ListMultipleChoice is empty

2011-05-02 Thread Coleman, Chris
That was my plan exactly but I didn't know of a way to tell which button was doing the form submission until now! Thanks for that Form#findSubmittingButton works beautifully! I don't even think it's a hack as that validation should only really a problem if the user is submitting the form,

wicket extensions - Palette Problem

2011-05-02 Thread bremy
Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form); ListString available = new ArrayListString(); original.add(A); original.add(B); original.add(C); original.add(D); original.add(E); PaletteString palette = new

Re: wicket extensions - Palette Problem

2011-05-02 Thread Andrea Del Bene
The same using wicket 1.5 snapshot. I'm debugging the class searching for a solution. Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form); ListString available = new ArrayListString(); original.add(A); original.add(B);

Re: Ajaxifying existing application

2011-05-02 Thread splitshade
It´s not as if I have a choice, whether this requirement should be implemented or not:(... I´m not a big ajax fan, i like the application the way it is today, but ajax is hype today, and every customer wants more of it... -- View this message in context:

Re: Problem using dynamic select with optgroups and Firefox

2011-05-02 Thread rawe
see solution in http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tp1872483p3310381.html It's also working with firefox. My problem before was just a javascript failure. greetings Ralph -- View this message in context:

Re: DataTable's view does not always update

2011-05-02 Thread James Carman
Try changing it to a servlet. There's another thread going on here just recently which gives an example. On Sun, May 1, 2011 at 10:22 PM, D D dawi...@gmail.com wrote: I have a filter in web.xml file - however I did not set it up. At the same time I've started to question the setup because I

Re: wicket extensions - Palette Problem

2011-05-02 Thread Andrea Del Bene
Ok, I think I got it. You should add to choice render an empty id and value expression, i.e. new ChoiceRenderer(, ). Without any expression any choices is recognized as selected. Hi I'm using wicket extensions 1.4.17. I came across a problem with adding selection on Palette. ... .. add(form);

Re: POST path via Ajax erratically invalid when used with #

2011-05-02 Thread Jeremy Levy
It happens consistently in Chrome and the fix is to clear cookies / JSESSIONID... Can you be more specific in the javascript where the relative path is assembled I can't find it... ? On Fri, Apr 29, 2011 at 3:10 AM, Martin Grigorov mgrigo...@apache.orgwrote: See wicketSubmitFormById() and

Re: POST path via Ajax erratically invalid when used with #

2011-05-02 Thread Martin Grigorov
I am not aware of any logic in wicket-ajax.js which changes the url passed from the server side. See org.apache.wicket.ajax.AjaxEventBehavior.generateCallbackScript(CharSequence) I gave you the names of the JavaScript functions which trigger the form submit. Use Chrome Developer Tools to debug

DataView - AjaxFallBackLink works only when outside DataView Link is once called

2011-05-02 Thread devush
Hi, I have one link within the DataView and one directly attached to the Panel. The link within the DataView is added to the item within the populateItem() method. This links gives me error when called *when* the page is created: WicketMessage: org.apache.wicket.WicketRuntimeException:

Re: DataTable's view does not always update

2011-05-02 Thread D D
FYI. I added the index.htm file to my project and everything now works. This is very strange and if anyone has an insight why this helped I would be very glad to read about it. Since I didn't try switching to servlet I'm not sure if that would have helped as well. Thank you for all of your

wicket facebook application

2011-05-02 Thread Josh Kamau
I am doing a facebook application in wicket. To get facebook authentication token, I have written a wicket filter as below: package com.mycompany.myapp.config; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import

Re: wicket facebook application

2011-05-02 Thread Peter Karich
Why not doing this directly the wicket-way with PageParameters and your own Session? FBPage(PageParameters params) { // do something with: params.getString(xy); // construct a new MySession object within the WicketApp.init method: // @Override Session newSession(Request request,

Submit non-wicket form through wicket form

2011-05-02 Thread Alec Swan
Hello, We have an interesting situation here. We have a Wicket page which we deliver to our web designer. The web designer uses this page as a template to build many pages and on each page may or may not choose to add a non-wicket form. Our webapp should collect the names and values submitted

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Igor Vaynberg
or you can write a servlet to process form submissions from all these different forms and call it a day. -igor On Mon, May 2, 2011 at 9:21 AM, Alec Swan alecs...@gmail.com wrote: Hello, We have an interesting situation here. We have a Wicket page which we deliver to our web designer. The web

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Alec Swan
Igor, we would like have access to the Wicket page model while processing the custom form submission, so using separate servlets is not a good solution for us. I started implemented the 3.1 step in our solution and immediately ran into a problem because wicket form contains a DIV with a hidden

Re: POST path via Ajax erratically invalid when used with #

2011-05-02 Thread Jeremy Levy
Thanks for the reply, as I already mentioned I've tried running this in the debugger in Chrome but it's not clear to me where the HOST part of the URL is being generated all I see is the path. The full URL that is getting posted to is:

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Clint Checketts
You could direct the non-wicket form's action to direct to a page and use the PageParameter's object to parse the input. I did that for a while until I finally learned how to use Wicket forms the right way. It worked quite well. You can parse in the values, manually checking validity (even

Re: DataTable's view does not always update

2011-05-02 Thread Clint Checketts
The reason for the 404 is the Websphere is checking for a file, then intending to filter before and after serving up the file. Since it finds no file to serve, it returns the 404. -Clint On Mon, May 2, 2011 at 9:33 AM, D D dawi...@gmail.com wrote: FYI. I added the index.htm file to my project

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Igor Vaynberg
an alternative would be to write your own form-like component. form impl doesnt use any internal hooks that you dont have access to, so its feasible you can easily write your own version that processes dynamic fields, etc. -igor On Mon, May 2, 2011 at 11:47 AM, Alec Swan alecs...@gmail.com

Re: Submit non-wicket form through wicket form

2011-05-02 Thread Alec Swan
I ended up adding an empty Wicket form to my base page and creating submitCustomForm() JavaScript function which can be called from any non-Wicket form submission. The function copies all form elements from the form being submitted to the Wicket form and submits the Wicket form. Works like a