Re: Best way to trap Enter key in a form in a modal window

2012-12-04 Thread Martin Grigorov
OK, please send a patch for ModalWindow's javadoc. On Wed, Dec 5, 2012 at 1:41 AM, Chris Colman wrote: > >On Tue, Dec 4, 2012 at 11:31 PM, Chris Colman > >wrote: > > > >> >Hi Chris, > >> > > >> >I think all this is actually related to ModalWindow, not to Form. > >> >You don't close the Form, you

RE: Best way to trap Enter key in a form in a modal window

2012-12-04 Thread Chris Colman
>On Tue, Dec 4, 2012 at 11:31 PM, Chris Colman >wrote: > >> >Hi Chris, >> > >> >I think all this is actually related to ModalWindow, not to Form. >> >You don't close the Form, you close the ModalWindow. >> >ModalWindow#close() accepts AjaxRequestTarget (ART) so it is clear that >> it >> >needs to b

Re: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Raul
I tried to use CompoundPropertyModel in CustomerAccountCode object constructor, and similarly -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654490.html Sent from the Users forum mailing list archive at

Re: Best way to trap Enter key in a form in a modal window

2012-12-04 Thread Martin Grigorov
On Tue, Dec 4, 2012 at 11:31 PM, Chris Colman wrote: > >Hi Chris, > > > >I think all this is actually related to ModalWindow, not to Form. > >You don't close the Form, you close the ModalWindow. > >ModalWindow#close() accepts AjaxRequestTarget (ART) so it is clear that > it > >needs to be in Ajax

RE: Best way to trap Enter key in a form in a modal window

2012-12-04 Thread Chris Colman
>Hi Chris, > >I think all this is actually related to ModalWindow, not to Form. >You don't close the Form, you close the ModalWindow. >ModalWindow#close() accepts AjaxRequestTarget (ART) so it is clear that it >needs to be in Ajax request, no ? >The form is just a component in the ModalWindow. With

Re: Read Twitter tweets

2012-12-04 Thread Flemming Boller
LOL On Tue, Dec 4, 2012 at 5:17 PM, Thomas Götz wrote: > Ahm, sure: just go to http://twitter.com or use > ;-) > > SCNR, >-Tom > > > On 04.12.2012, at 15:57, wrote: > > > Hi People > > > > Any experience/recommendation on subject? > > > > Thanks in advance > > > > Regards > > /Ronny > > >

Re: a question on different data grid components available for wicket

2012-12-04 Thread Martin Grigorov
I compared it against http://www.wicket-library.com/inmethod-grid/data-grid/simple?0 - this uses InMethod Grid 1.5 though On Tue, Dec 4, 2012 at 8:24 PM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Martin, > > On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov >wrote: > > > Great work

Re: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Joachim Schrod
Raul wrote: > Thank Col, But I have no validation, my component code is the code of the > component is > > public class CustomerAccountCode extends > FormComponentPanel { > > private FormComponent entity; > private FormComponent office; > private FormComponent dc;

Re: How to display PDF in wicket 6.0?

2012-12-04 Thread Martin Grigorov
Hi, You cannot return the PDF data in the Ajax response. Read https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html for a solution. On Tue, Dec 4, 2012 at 6:20 PM, appwicket wrote: > Hi, > thanks for reply. > I want to open it in a new window. > > > > > -- > View this

Re: Upload file and display its contents using AJAX

2012-12-04 Thread pureza
Hi again, I was able to get the desired result by putting an AjaxButton on the form containing the component. So, the user selects a file, presses submit and everything works. However, I'd prefer if the upload would start immediately after the user selects a file. Can I get rid of the button? T

Re: Upload file and display its contents using AJAX

2012-12-04 Thread pureza
Nick, As I said on my previous email, I can't access the file contents within an AjaxBehavior, because FileInputField.getModelObject() is always null (maybe I'm not setting it up correctly when I instantiate the FileInputField?). -- View this message in context: http://apache-wicket.1842946.n4

Re: How to display PDF in wicket 6.0?

2012-12-04 Thread appwicket
Hi, thanks for reply. I want to open it in a new window. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-display-PDF-in-wicket-6-0-tp4654471p4654476.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: How to display PDF in wicket 6.0?

2012-12-04 Thread Nick Pratt
Do you want to display the PDF on screen, or provide a PDF download so that the file could be opened in Acrobat Reader (or PDF viewer of your choice)? On Tue, Dec 4, 2012 at 11:06 AM, appwicket wrote: > Hi all, > I have been trying all the ways to display PDF through wicket. > I have my pdf reso

Re: Upload file and display its contents using AJAX

2012-12-04 Thread Nick Pratt
Once the file is uploaded, set the contents of the IModel backing the TextArea, and then add the Form(or TextArea) to the AjaxRequestTarget. On Tue, Dec 4, 2012 at 11:51 AM, pureza wrote: > Hi, > > I need to upload a file, parse it and display its contents inside a > textarea, all this using aja

How to display PDF in wicket 6.0?

2012-12-04 Thread appwicket
Hi all, I have been trying all the ways to display PDF through wicket. I have my pdf resource in Byte[]. I tried the following methods in my AjaxButton's onSubmit method: 1. this gives me exception: Header was already written to response! Wicket.Ajax.Call.failure: Error while parsing response: Erro

Upload file and display its contents using AJAX

2012-12-04 Thread pureza
Hi, I need to upload a file, parse it and display its contents inside a textarea, all this using ajax. At first I tried to use jquery-file-upload, and I was able to upload the file to an IResource as explained at http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/. However, I h

Re: Read Twitter tweets

2012-12-04 Thread Thomas Götz
Ahm, sure: just go to http://twitter.com or use ;-) SCNR, -Tom On 04.12.2012, at 15:57, wrote: > Hi People > > Any experience/recommendation on subject? > > Thanks in advance > > Regards > /Ronny > - To unsubscribe,

wicket-stuff progressbar problem in Wicket 6.3

2012-12-04 Thread hsteisjo
Hi all, I've really banged my head with this problem for some time now, and hopefully someone can point me in the right direction. I have a base popup class which is extended from ModalWindow. Most actions requires some sort of visual response to the user that actions are taking place so this pop

Re: Form change detection behaviour in Wicket

2012-12-04 Thread Martin Grigorov
Hi, Your question is pure JavaScript related. In this article Wicket is used only to contribute the .js file. http://lmgtfy.com/?q=javascript+form+elements+change+detection On Tue, Dec 4, 2012 at 12:32 PM, Ganesh wrote: > how to add form change detection behaviour to all form's of my applicat

Form change detection behaviour in Wicket

2012-12-04 Thread Ganesh
how to add form change detection behaviour to all form's of my application using wicket framework,I am using "http://www.jroller.com/karthikg/date/20061003"; to detect form change but it's not detecting for file components and also when we use hide / show functionality for form using ajax.I want it

Re: Syncing files with designers

2012-12-04 Thread Jan Riehn
Hello Edgar, Yes, this is how it works. For the best separation of the responsibilities, you may store the resources outside of the web application (Think about a complete physical separation). We've made a good experience to break-off with wicket's given package structure - wicket's resource

Re: Wicket and Struts together have a problem when not adding mountpath to the Wicket-Page

2012-12-04 Thread Martin Grigorov
On Tue, Dec 4, 2012 at 10:29 AM, cknafl wrote: > I am currently overwriting getNamespace(). But that is really dirty. When I > make this method to return "" everytime, then my css, js and so on cannot > be > found anymore, that I added with renderHead(..). > So I implemented an if-else logic: > i

RE: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Raul
Thank Col, But I have no validation, my component code is the code of the component is public class CustomerAccountCode extends FormComponentPanel { private FormComponent entity; private FormComponent office; private FormComponent dc; private FormCo

Re: Wicket and Struts together have a problem when not adding mountpath to the Wicket-Page

2012-12-04 Thread cknafl
I am currently overwriting getNamespace(). But that is really dirty. When I make this method to return "" everytime, then my css, js and so on cannot be found anymore, that I added with renderHead(..). So I implemented an if-else logic: if(path.contains("resource") return "wicket"; ... Can you

Re: understanding ajax response

2012-12-04 Thread Martin Grigorov
see https://issues.apache.org/jira/browse/WICKET-4881 On Fri, Nov 30, 2012 at 8:23 PM, Martin Grigorov wrote: > I see a solution for this case. > If you can provide a quickstart app then please attach it to a ticket in > our Jira so I can test with it. > > > On Fri, Nov 30, 2012 at 7:45 PM, saty

Re: Wicket and Struts together have a problem when not adding mountpath to the Wicket-Page

2012-12-04 Thread Martin Grigorov
On Tue, Dec 4, 2012 at 9:58 AM, cknafl wrote: > Could be a possibility. I am trying it right now, I have to overwrite > newUrlRenderer in RequestCycle but how do I set my own RequestCycle? > > What I do not understand is that this behavior changed from wicket1.4 to > wicket6. > I'm not sure that

Re: Wicket and Struts together have a problem when not adding mountpath to the Wicket-Page

2012-12-04 Thread cknafl
Could be a possibility. I am trying it right now, I have to overwrite newUrlRenderer in RequestCycle but how do I set my own RequestCycle? What I do not understand is that this behavior changed from wicket1.4 to wicket6. When I call a page with mountpath(value="bla") then I get a URL like http://

Re: a question on different data grid components available for wicket

2012-12-04 Thread Ernesto Reinaldo Barreiro
Martin, On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov wrote: > Great work, Ernesto ! > > I just tried the samples application and the only problem that I've found > is related to the editable grids. > In both Editable Grid and Editable TreeGrid the 'ESC' keypress doesn't > work. > In Editable T

Re: a question on different data grid components available for wicket

2012-12-04 Thread Martin Grigorov
Great work, Ernesto ! I just tried the samples application and the only problem that I've found is related to the editable grids. In both Editable Grid and Editable TreeGrid the 'ESC' keypress doesn't work. In Editable TreeGrid I can edit only folders but I can't edit leafs. Other than this I fin

Re: UrlResourceReference escapes too much?

2012-12-04 Thread Andreas Kappler
I created an issue for this: WICKET-4907 Best Regards, Andreas Am 03.12.2012 16:21, schrieb Martin Grigorov: I'm not sure. I have to debug it to be able to say what happens. On Mon, Dec 3, 2012 at 4:16 PM, Andreas Kappler < andreas.kapp...@

Re: Serialization of anonymous classes?

2012-12-04 Thread Julio Gonnet
Actually, it can be quite a problem when you pass anonymous classes between pages/requests. Example: user opens a dialog to search for a specific value to set in the parent page. the parent page creates and passes an anonymous callback instance to the dialog, which the dialog calls once the the des

Re: Form Validation not called

2012-12-04 Thread Martin Grigorov
Hi, Your validator needs to implement org.apache.wicket.markup.html.form.validation.IFormValidator to be able to validate on form level. On Mon, Dec 3, 2012 at 11:04 PM, ttboy_01 wrote: > Hi community, > > I've got a little problem here with a real simple form. Everything is > working fine exc

Re: Syncing files with designers

2012-12-04 Thread Martin Grigorov
Hi Edgar, Yes, this is the way to go. On Tue, Dec 4, 2012 at 9:04 AM, Edgar Merino wrote: > Hello, I would like our designers to work with a simple folder structure > on our application pages markup, and we would like to avoid including java > source code files with the files we share with the

Re: Best way to trap Enter key in a form in a modal window

2012-12-04 Thread Martin Grigorov
Hi Chris, I think all this is actually related to ModalWindow, not to Form. You don't close the Form, you close the ModalWindow. ModalWindow#close() accepts AjaxRequestTarget (ART) so it is clear that it needs to be in Ajax request, no ? The form is just a component in the ModalWindow. With or wit

Syncing files with designers

2012-12-04 Thread Edgar Merino
Hello, I would like our designers to work with a simple folder structure on our application pages markup, and we would like to avoid including java source code files with the files we share with them. What is the best way to do this? I though about implementing a custom ResourceStreamLocator, s

Re: a weird exception when update Panel

2012-12-04 Thread Martin Grigorov
Hi, What is the type of component with id 'includeMain' ? The exception says that the second request cannot find a behavior to execute at position one in component 'includeMain'. To understand why this happens we need to know what happens in onXyz() callback in the first request/click. I think y