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

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,

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

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 donvo...@gmail.com 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

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 bense...@googlemail.com wrote: Hi community, I've got a little problem here with a real simple form. Everything

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

Re: UrlResourceReference escapes too much?

2012-12-04 Thread Andreas Kappler
I created an issue for this: WICKET-4907 https://issues.apache.org/jira/browse/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

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

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 mgrigo...@apache.orgwrote: 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.

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

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 chr.kn...@gmail.com 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

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 mgrigo...@apache.orgwrote: 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

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 tell

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 chr.kn...@gmail.com 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

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: 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 dadisagar@gmail.com wrote: how to add form change detection behaviour to

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

Re: Read Twitter tweets

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

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

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:

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 pur...@gmail.com wrote: Hi, I need to upload a file, parse it and display its contents inside a textarea, all

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 wwx@gmail.com wrote: Hi all, I have been trying all the ways to display PDF through wicket. I

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: 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:

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 input type=file 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

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 wwx@gmail.com wrote: Hi, thanks for reply. I want to open it in a new window. --

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 FormComponentPanelAccount { private FormComponentString entity; private FormComponentString office; private

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 mgrigo...@apache.org wrote:

Re: Read Twitter tweets

2012-12-04 Thread Flemming Boller
LOL On Tue, Dec 4, 2012 at 5:17 PM, Thomas Götz t...@richmountain.de wrote: Ahm, sure: just go to http://twitter.com or use INSERT_YOUR_FAVORITE_TWITTER_CLIENT_HERE ;-) SCNR, -Tom On 04.12.2012, at 15:57, ronny.v...@consult.nordea.com wrote: Hi People Any

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 or

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 chr...@stepaheadsoftware.comwrote: 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

Re: Model is null after submit, using FormComponentPanel

2012-12-04 Thread Raul
I tried to use CompoundPropertyModel Account 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

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 chr...@stepaheadsoftware.comwrote: 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

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 chr...@stepaheadsoftware.comwrote: On Tue, Dec 4, 2012 at 11:31 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Hi Chris, I think all this is actually related to ModalWindow, not to