Re: Add or remove a row in RefreshingView with Ajax

2013-10-25 Thread Martin Grigorov
On Fri, Oct 25, 2013 at 4:18 AM, Colin Rogers colin.rog...@objectconsulting.com.au wrote: Hi there, Not sure what you mean by 'does not work'... so guessing the issue, and the solution. Are you updating the whole RepeatingView? If so, you need to wrap the repeater in a WebMarkupContainer

Re: unwanted DefaultPageManagerProvider

2013-10-25 Thread Sven Meier
I think we have to improve Application#setPageMangerProvider(): public synchronized final void setPageManagerProvider(final IPageManagerProvider provider) { pageManagerProvider = provider; if (pageManager != null) { synchronized (this) {

break out inlineframe with form submission

2013-10-25 Thread haiko
Dear Wicketeers, I am puzzling how to break out of an inlineFrame ( IFrame ) on an form submission. I have an a Form in a InlineFrame. The result of submitted this form should be opening a new tab/ page. The code: Form form = new Form(form) AjaxSubmitLink submitButton = new

Re: break out inlineframe with form submission

2013-10-25 Thread Sven Meier
What's your problem? Sven On 10/25/2013 10:40 AM, ha...@dds.nl wrote: Dear Wicketeers, I am puzzling how to break out of an inlineFrame ( IFrame ) on an form submission. I have an a Form in a InlineFrame. The result of submitted this form should be opening a new tab/ page. The code: Form

Re: break out inlineframe with form submission

2013-10-25 Thread Martin Grigorov
Hi, On Fri, Oct 25, 2013 at 11:40 AM, ha...@dds.nl wrote: Dear Wicketeers, I am puzzling how to break out of an inlineFrame ( IFrame ) on an form submission. I have an a Form in a InlineFrame. The result of submitted this form should be opening a new tab/ page. The code: Form form =

Re: break out inlineframe with form submission

2013-10-25 Thread haiko
Hi Martin, For clarification, the problem is that the result is rendered in the inlineFrame ( IFrame ). How can I have an Ajax submit with the same behavior as 'target=_blank'? Martin Grigorov mgrigo...@apache.org schreef: Hi, On Fri, Oct 25, 2013 at 11:40 AM, ha...@dds.nl wrote: Dear

Re: break out inlineframe with form submission

2013-10-25 Thread Martin Grigorov
On Fri, Oct 25, 2013 at 12:17 PM, ha...@dds.nl wrote: Hi Martin, For clarification, the problem is that the result is rendered in the inlineFrame ( IFrame ). I can see that. How can I have an Ajax submit with the same behavior as 'target=_blank'? The question is: does it need to be

Re: break out inlineframe with form submission

2013-10-25 Thread haiko
Hi Martin, Martin Grigorov mgrigo...@apache.org schreef: How can I have an Ajax submit with the same behavior as 'target=_blank'? The question is: does it need to be Ajax submit at all ? With non-Ajax submit the '_blank' will be used and the current page with the iframe won't be reloaded.

Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
A panel that is created with replaceWith() earlier in the code turns out to have a NULL parent. Is this normal, or are we supposed to keep links to the parent? Any explanation? Is there ever a case when an embedded panel would have a NULL parent? Thanks -- View this message in context:

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
In other words, a Read-only panel is replaced with an Editable panel after clicking Edit: panelReadOnly.replaceWith( new panelEditable()); The panelEditable is found to have a NULL Parent ID afterwards. We need to

Displaying ListView After Being Hidden

2013-10-25 Thread dhongyt
I have a drop down choice that has a OnChangeAjaxBehavior on the drop down choice. When a user selects from the drop down choice and chooses an option, it will populate and show that option on a ListView below it. That ListView is surrounded by a WebMarkupContainer in order to refresh the view in

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread Sven Meier
The replaced component is removed from the component tree, thus it no longer has a parent. Sven On 10/25/2013 05:37 PM, eugenebalt wrote: In other words, a Read-only panel is replaced with an Editable panel after clicking Edit: panelReadOnly.replaceWith(

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
Thanks Sven. I was actually talking about the new replacING component, not the old replaced one. That replacing component had NULL as its Parent. I found the solution discussed here: http://apache-wicket.1842946.n4.nabble.com/Component-parent-null-after-replace-td1890602.html The problem is it's

Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Edgar Merino
Hello, I'm having a problem with a FileUploadField, I'm using CompoundPropertyModels through my application but for this single element I would like to avoid having a model, however calling fileUploadField.setDefauiltModel(null) will not work, since it will always try to locate a

Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Edgar Merino
It seems that overriding Component#initModel() to return null does the trick! On 25/10/13 12:30, Edgar Merino wrote: Hello, I'm having a problem with a FileUploadField, I'm using CompoundPropertyModels through my application but for this single element I would like to avoid having a model,

Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Francois Meillet
FileUploadField needs a model which implements IModelListFileUpload have a look to these threads http://apache-wicket.1842946.n4.nabble.com/file-upload-in-nested-form-with-CPM-needs-dummy-model-td4660468.html

RE: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Paul Bors
Take a look over Section 11.7 File upload of the Wicket Guide: http://wicket.apache.org/guide/guide/chapter11.html#chapter11_7 You need something like this: fileUploadField = new FileUploadField(fileUploadField); Form form = new Form(form){ @Override

Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Edgar Merino
Thank you Francois, but as I mentioned in an earlier post overriding FileUploadField#initModel() to return null did the trick and seems a bit cleaner that creating a Dummy model. Overriding initModel() makes sure the model won't be looked up in the component parents. Edgar Merino On

Re: Displaying ListView After Being Hidden

2013-10-25 Thread Jared Sol
Give setting the outputMarkupPlaceholderId to true a shot on the webMarkupContainer. On Oct 25, 2013, at 9:13 AM, dhongyt davidhtr...@gmail.com wrote: I have a drop down choice that has a OnChangeAjaxBehavior on the drop down choice. When a user selects from the drop down choice and chooses

Re: Displaying ListView After Being Hidden

2013-10-25 Thread dhongyt
Thanks you! That worked for me. What is the reason for this? Is this so that it would it would hold the placeholder with in wmc? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Displaying-ListView-After-Being-Hidden-tp4661963p4661972.html Sent from the Users forum

Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Francois Meillet
sounds good ! François Meillet Formation Wicket - Développement Wicket Le 25 oct. 2013 à 20:13, Edgar Merino donvo...@gmail.com a écrit : Thank you Francois, but as I mentioned in an earlier post overriding FileUploadField#initModel() to return null did the trick and seems a bit

Re: Add or remove a row in RefreshingView with Ajax

2013-10-25 Thread MartinoSuperman
Hi, Thanks for the advice. You're right. I also read those pages. I already implemented it. But now my question is: I put the RefreshingView in a panel. And that panel is situated a WebMarkupContainer. After I pressed the button on submit of Ajax, the RefreshingView should refresh, but still

Re: Displaying ListView After Being Hidden

2013-10-25 Thread Jared Sol
No problem. I'm not exactly sure. I just know when hiding an element and then unhiding it you have to tell the component to keep a placeholder so it doesn't lose access to the component when you hide it. Might have something to do with keeping it around in the dom and using display=none. I

Re: unwanted DefaultPageManagerProvider

2013-10-25 Thread uwe schaefer
On 10/25/2013 09:39 AM, Sven Meier wrote: Hi Sven, I think we have to improve Application#setPageMangerProvider(): public synchronized final void setPageManagerProvider(final IPageManagerProvider provider) WDYT? better, but to my understanding, not quite there yet. while that helps