Re: Encoding for wicket:message tag

2010-06-18 Thread Kent Tong
We are using wicket:message tag to generate content for WAP. Wap is strict XML so it does not allow special characters. Is there a way to force wicket:message tag to escape encode its message? I think you've found an enhancement opportunity for Wicket. You may file an enhancement request for

SV: Dynamic Resources, Properties

2010-06-18 Thread Wilhelmsen Tor Iver
add(new Label(weatherMessage, new StringResourceModel(weather.message, this, null))); If you put a property weather.message into the page's properties file then it will load from there (even if you provide a default in the panel's properties file). Is that what you mean? Properties are

Re: Confirmation dialog during file upload

2010-06-18 Thread Kent Tong
I have a form which allows a user to upload a file. The form is patterned after upload Wicket example. If the file being uploaded will overwrite an existing file I need to prompt the user if they want to replace the existing file or not. What's the best way to implement this functionality?

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-18 Thread bht
Hi, You could have the files in a sibling directory in the web directory that is hidden by the wicket filter mapping. Has many benefits. Allows web developers to freely edit and view files in context with links that actually work. FInally HTML refactoring will work. Can someone suggest how to

Re: inconsistency in property expression when using . for self reference

2010-06-18 Thread Joseph Pachod
Jeremy Thomerson wrote: Please attach to a JIRA [https://issues.apache.org/jira/browse/WICKET] so that it doesn't get lost. done : https://issues.apache.org/jira/browse/WICKET-2919 ++ - To unsubscribe, e-mail:

Re: Wicket Ajax Event on Component with Parameters

2010-06-18 Thread MattyDE
Igoor... i need your help please :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2259861.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Confirmation dialog during file upload

2010-06-18 Thread Kent Tong
Sorry, there is a bug in the code: You should never keep a FileUpload object across requests. So, you need to copy the data into somewhere else. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

AJAX Button does not submit form if RequiredTextField is empty

2010-06-18 Thread vov
FormVoid form = new FormVoid(form); form.add(new RequiredTextFieldString(filed)); final TextFieldString textField; form.add(textField = new TextFieldString(filed2, new ModelString())); form.add(new AjaxButton(button) { @Override protected void

RE: AJAX Button does not submit form if RequiredTextField is empty

2010-06-18 Thread Stefan Lindner
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/Form.html -Ursprüngliche Nachricht- Von: vov [mailto:vov...@mail.ru] Gesendet: Freitag, 18. Juni 2010 12:11 An: users@wicket.apache.org Betreff: AJAX Button does not submit form if RequiredTextField is empty

RE: AJAX Button does not submit form if RequiredTextField is empty

2010-06-18 Thread vov
Thanks for replay Stefan. Nestet form is a good idea for my example. But am so sorry that simplified it. In some cases there is not easy to make markup using this way. For example I want to use in my onSubmit method model value from 2 or 3 different TextFields or other FormComponents. And all of

Re: modalWindow can not be closed

2010-06-18 Thread Jeremy Thomerson
What shows up in the ajax debug window? Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jun 17, 2010 10:59 PM, 蔡茂昌 caimaochang.c...@gmail.com wrote: i have set a breakpoint on modalWindow.close(target) ,, it reached ,but modalWindow still could not

Re: Wicket Ajax Event on Component with Parameters

2010-06-18 Thread Jeremy Thomerson
On Fri, Jun 18, 2010 at 3:21 AM, MattyDE ufer.mar...@gmail.com wrote: Igoor... i need your help please :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Event-on-Component-with-Parameters-tp2251592p2259861.html Sent from the Wicket - User mailing

Re: gmail like file upload

2010-06-18 Thread fachhoch
I mean gmail like GwtUpload. here link for a simple tutorial for GwtUpload http://code.google.com/p/gwtupload/wiki/GwtUpload_GettingStarted -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/gmail-like-file-upload-tp2251270p2260176.html Sent from the

Autoupdate Components of a ParentPage within a Ajax Request

2010-06-18 Thread peer
Hi Wickets, My initial situation: A ParentPage which contains a TabbedPanel with tabs. On the Parent Page is a Feedbackpanel which works globally and displays every error message. The tabs in the TabbedPanel don't know anything about the Feedbackpanel of the parent and all request on the tab are

Re: gmail like file upload

2010-06-18 Thread Martin Grigorov
On Fri, 2010-06-18 at 06:21 -0700, fachhoch wrote: I mean gmail like GwtUpload. here link for a simple tutorial for GwtUpload http://code.google.com/p/gwtupload/wiki/GwtUpload_GettingStarted According to http://code.google.com/p/gwtupload/ , section 'How it works' it looks just like:

Re: Autoupdate Components of a ParentPage within a Ajax Request

2010-06-18 Thread Martin Grigorov
On Fri, 2010-06-18 at 06:43 -0700, peer wrote: Hi Wickets, My initial situation: A ParentPage which contains a TabbedPanel with tabs. On the Parent Page is a Feedbackpanel which works globally and displays every error message. The tabs in the TabbedPanel don't know anything about the

Re: Autoupdate Components of a ParentPage within a Ajax Request

2010-06-18 Thread peer
Martin Grigorov wrote: On Fri, 2010-06-18 at 06:43 -0700, peer wrote: Hi Wickets, My initial situation: A ParentPage which contains a TabbedPanel with tabs. On the Parent Page is a Feedbackpanel which works globally and displays every error message. The tabs in the TabbedPanel don't

Re: Autoupdate Components of a ParentPage within a Ajax Request

2010-06-18 Thread Martin Grigorov
On Fri, 2010-06-18 at 07:31 -0700, peer wrote: Martin Grigorov wrote: On Fri, 2010-06-18 at 06:43 -0700, peer wrote: Hi Wickets, My initial situation: A ParentPage which contains a TabbedPanel with tabs. On the Parent Page is a Feedbackpanel which works globally and displays

Re: Wicket Ajax Event on Component with Parameters

2010-06-18 Thread MattyDE
Hi Jeremy, Thanks for your reply. It looks like what i've looking for. But i need this with POST not with GET. Cause the GET-URL is to limited to internet standards and i have to transfer a bunch of more data back to the server-side. Any hint for POST? Thanks -- View this message in context:

Re: Wicket Ajax Event on Component with Parameters

2010-06-18 Thread Martin Grigorov
On Fri, 2010-06-18 at 08:01 -0700, MattyDE wrote: Hi Jeremy, Thanks for your reply. It looks like what i've looking for. But i need this with POST not with GET. Cause the GET-URL is to limited to internet standards and i have to transfer a bunch of more data back to the server-side. Any

Re: Autoupdate Components of a ParentPage within a Ajax Request

2010-06-18 Thread Michael O'Cleirigh
On 06/18/2010 09:43 AM, peer wrote: Hi Wickets, My initial situation: A ParentPage which contains a TabbedPanel with tabs. On the Parent Page is a Feedbackpanel which works globally and displays every error message. The tabs in the TabbedPanel don't know anything about the Feedbackpanel of the

Re: Confirmation dialog during file upload

2010-06-18 Thread Alec Swan
Hello, If I understand your approach correctly, then the user would have to click Upload button again after being redirected MyPage to ConfirmSavePage, which is not desirable. I would like to implement the following interaction: 1. User clicks Upload button and form submission request is sent

ListView + dynamic rows: always remove last row...

2010-06-18 Thread jOki
Hi!! Im trying to implement a dynamic Form, where you can add textfields and remove as you want. The add button works fine, but the remove button always remove the last testfield and not the selected field. For example: Textfield1 add remove Textfield2 add remove Textfield3 add remove click on

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-18 Thread Fernando Wermus
The solution I found: application.init getResourceSettings().addResourceFolder(/WEB-INF/html); Your resources will be protected by web-inf and the configuration is the same in local development machine and in the remote development machine, where you can give permits to your web designers. Not

Re: gmail like file upload

2010-06-18 Thread fachhoch
but GwtUpload is ajax and wicket is not . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/gmail-like-file-upload-tp2251270p2260591.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-18 Thread bht
Hi Fernando, obviously quite a few including yourself are separating markup from Java packages to make it accessable to HTML developers. How do you cope with the fact that Wicket markup, when rendered in any folder without flattening the package structure, gets broken images? That is what I am

Anchor, not jumping in Mozilla

2010-06-18 Thread Anna Simbirtsev
Hi, I have a SubmitLink that submits the form and returns to the same page. But I need it to jump to the result section. I added an anchor: form = new ShinyForm(myForm) { private static final long serialVersionUID = -4058461619493381294L; protected void

Suggestion about wicket's Wizard

2010-06-18 Thread David Chang
I have been playing wicket's Wizard (1.4.9) and feel it is quite helpful but lacking in some ways. Here is what I suggest: 1. Add a method (called size or something else) to WizardModel to provide the number of wizard steps it contains. 2. Add a method to Wizard or WizardModel to provide the

Re: Confirmation dialog during file upload

2010-06-18 Thread Kent Tong
1. User clicks Upload button and form submission request is sent to the server 2. The code on the server detect the file name collision and causes a ModalWindow to display These can be done with an AjaxButton to send the upload request. Then show the ModalWindow in onSubmit(). 3.1 If the