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 cleanly shutting down the unwanted (default) 
PageManagerProvider, imho, we should make sure, that the user has the 
chance to register his PageManagerProvider, before the get-call is being 
issued.


in our case, with the above fix, we still have a call originating from 
sessionUnbound, that tries to work with the default PMP, which then 
complains about the file/directory he thinks is associated to the 
session being unbound, does not exist. (because, we dont use the 
DiskPageManager, duh :) )


how about registering to the container AFTER wicket init() has been 
executed, so that the application has had the chance to swap the default 
PMP for some other before it is called first?


for a quick workaround we introduced an application state flag being 
flipped from INITIALIZING to RUNNING at the end of init() and just 
return from sessionUnbound unless this flag is RUNNING.


not quite as elegant - in other words hacky - but works for now.

cu uwe

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 haven't looked into the 
details.

Sent from my iPhone

> On Oct 25, 2013, at 11:45 AM, dhongyt  wrote:
> 
> 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 mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 it does not work.

Which commands do I have to use to make that refreshing possible? Do I have
to replace the whole RefreshingView for example?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-or-remove-a-row-in-RefreshingView-with-Ajax-tp4661944p4661960.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  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 
> cleaner that creating a Dummy model. Overriding initModel() makes sure the 
> model won't be looked up in the component parents.
> 
> 
> Edgar Merino
> 
> On 25/10/13 13:03, Francois Meillet wrote:
>> FileUploadField needs a model which implements IModel>
>> 
>> 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
>> http://apache-wicket.1842946.n4.nabble.com/AW-file-upload-in-nested-form-with-CPM-needs-dummy-model-td4660609.html
>> 
>> 
>> François Meillet
>> Formation Wicket - Développement Wicket
>> 
>> 
>> 
>> 
>> 
>> Le 25 oct. 2013 à 19:30, Edgar Merino  a écrit :
>> 
>>> 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 CompoundPropertyModel, is there a way to avoid this?
>>> 
>>> Thanks in advance.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



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 mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  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 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 an Ajax way.
> 
> 
> 
> I would like to hide the WebMarkupContainer if that ListView does not
> contain anything. So I set the visibility to false using .setVisibility on
> "wmc". Which hides it properly.
> So when I reveal it again because of the OnChangeAjaxBehavior was called I
> get an error.
> 
> ERROR: Wicket.Ajax.Call.processComponent: Component with id [[wmc24]] was
> not found while trying to perform markup update. Make sure you called
> component.setOutputMarkupId(true) on the component whose markup you are
> trying to update.
> ERROR: Cannot find element with id: deleteLink25
> 
> 
> 
> When you set the visibility to true again in the OnChangeAjaxBehavior, does
> it not render the ListView markup? Seems like it may not hence the error?
> How can I resolve this issue?
> 
> 
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Displaying-ListView-After-Being-Hidden-tp4661963.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 25/10/13 13:03, Francois Meillet wrote:

FileUploadField needs a model which implements IModel>

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
http://apache-wicket.1842946.n4.nabble.com/AW-file-upload-in-nested-form-with-CPM-needs-dummy-model-td4660609.html


François Meillet
Formation Wicket - Développement Wicket





Le 25 oct. 2013 à 19:30, Edgar Merino  a écrit :


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 CompoundPropertyModel, is there a way to avoid this?

Thanks in advance.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Francois Meillet
FileUploadField needs a model which implements IModel>

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
http://apache-wicket.1842946.n4.nabble.com/AW-file-upload-in-nested-form-with-CPM-needs-dummy-model-td4660609.html


François Meillet
Formation Wicket - Développement Wicket





Le 25 oct. 2013 à 19:30, Edgar Merino  a écrit :

> 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 CompoundPropertyModel, is there a way to avoid this?
> 
> Thanks in advance.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



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
protected void onSubmit() {
  super.onSubmit();
  FileUpload fileUpload = fileUploadField.getFileUpload();
try {
File file = new
File(System.getProperty("java.io.tmpdir") + "/" +
 
fileUpload.getClientFileName());
fileUpload.writeTo(file);
} catch (IOException e) {
   e.printStackTrace();
 }
}
};


~ Thank you,
  Paul Bors

-Original Message-
From: Edgar Merino [mailto:donvo...@gmail.com] 
Sent: Friday, October 25, 2013 1:30 PM
To: users@wicket.apache.org
Subject: Problems with FileUploadFile and CompoundPropertyModels

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 CompoundPropertyModel, is there a way to avoid this?

Thanks in advance.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, however calling 
fileUploadField.setDefauiltModel(null) will not work, since it will 
always try to locate a CompoundPropertyModel, is there a way to avoid 
this?


Thanks in advance.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 CompoundPropertyModel, is there a way to avoid this?


Thanks in advance.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 not enough to do replaceWith(), you also have to reset
the reference.

panel.replaceWith(temp);
panel = temp;



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-s-getParent-returns-NULL-after-replaceWith-tp4661961p4661965.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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(
new panelEditable());


The panelEditable is found to have a NULL Parent ID afterwards. We need to
keep track of certain fields only accessible through the parent.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-s-getParent-returns-NULL-after-replaceWith-tp4661961p4661962.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 an Ajax way.



I would like to hide the WebMarkupContainer if that ListView does not
contain anything. So I set the visibility to false using .setVisibility on
"wmc". Which hides it properly.
So when I reveal it again because of the OnChangeAjaxBehavior was called I
get an error.

ERROR: Wicket.Ajax.Call.processComponent: Component with id [[wmc24]] was
not found while trying to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.
ERROR: Cannot find element with id: deleteLink25



When you set the visibility to true again in the OnChangeAjaxBehavior, does
it not render the ListView markup? Seems like it may not hence the error?
How can I resolve this issue?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Displaying-ListView-After-Being-Hidden-tp4661963.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
keep track of certain fields only accessible through the parent.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-s-getParent-returns-NULL-after-replaceWith-tp4661961p4661962.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/Panel-s-getParent-returns-NULL-after-replaceWith-tp4661961.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: break out inlineframe with form submission

2013-10-25 Thread haiko

Hi Martin,

Martin Grigorov  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.

If you want to be Ajax submit then do something like:
target.appendJavaScript("window.open('', "+newUrl+")")




For rendering on errors I need ajax behavior in the InlineFrame, so I  
will try the javascript option. Thanks for your feedback.


Haiko




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: break out inlineframe with form submission

2013-10-25 Thread Martin Grigorov
On Fri, Oct 25, 2013 at 12:17 PM,  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 Ajax submit at all ? With non-Ajax
submit the '_blank' will be used and the current page with the iframe won't
be reloaded.

If you want to be Ajax submit then do something like:
target.appendJavaScript("window.open('', "+newUrl+")")


>
>
> Martin Grigorov  schreef:
>
>  Hi,
>>
>>
>> On Fri, Oct 25, 2013 at 11:40 AM,  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 = new Form("form")
>>>
>>> 
>>>
>>> AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {
>>>
>>> @Override
>>> protected void onSubmit(AjaxRequestTarget target, Form form) {
>>>
>>>
>>> getRequestCycle().scheduleRequestHandlerAfterCurrent(new
>>> RedirectRequestHandler(newUrl));
>>>
>>> }
>>>   }
>>>
>>> HTML:
>>>
>>> 
>>>
>>>
>> The problem is that you use AjaxSubmit and thus 'target="_blank"' is not
>> used at all.
>>
>>
>>  
>>>  >> type="submit"/>
>>> 
>>>
>>>
>>> Has anyone dealt with such an issue or has any pointers how to approach
>>> this issue?
>>>
>>> Regards,
>>>
>>> Haiko
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --**
>>> --**-
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@wicket.**apa**che.org
>>> 
>>> >
>>>
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>
>
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


Hi,


On Fri, Oct 25, 2013 at 11:40 AM,  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 = new Form("form")



AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {


getRequestCycle().**scheduleRequestHandlerAfterCur**rent(new
RedirectRequestHandler(newUrl)**);
}
  }

HTML:





The problem is that you use AjaxSubmit and thus 'target="_blank"' is not
used at all.




 



Has anyone dealt with such an issue or has any pointers how to approach
this issue?

Regards,

Haiko









--**--**-
To unsubscribe, e-mail:  
users-unsubscribe@wicket.**apache.org

For additional commands, e-mail: users-h...@wicket.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: break out inlineframe with form submission

2013-10-25 Thread Martin Grigorov
Hi,


On Fri, Oct 25, 2013 at 11:40 AM,  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 = new Form("form")
>
> 
>
> AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {
>
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
>
>
> getRequestCycle().**scheduleRequestHandlerAfterCur**rent(new
> RedirectRequestHandler(newUrl)**);
> }
>   }
>
> HTML:
>
> 
>

The problem is that you use AjaxSubmit and thus 'target="_blank"' is not
used at all.


> 
>  
> 
>
>
> Has anyone dealt with such an issue or has any pointers how to approach
> this issue?
>
> Regards,
>
> Haiko
>
>
>
>
>
>
>
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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 form = new Form("form")



AjaxSubmitLink submitButton = new AjaxSubmitLink("submitButton", form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {


getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
RedirectRequestHandler(newUrl));

}
  }

HTML:



 type="submit"/>




Has anyone dealt with such an issue or has any pointers how to 
approach this issue?


Regards,

Haiko









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 AjaxSubmitLink("submitButton", form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {


	getRequestCycle().scheduleRequestHandlerAfterCurrent(new  
RedirectRequestHandler(newUrl));

}
  }

HTML:



 



Has anyone dealt with such an issue or has any pointers how to  
approach this issue?


Regards,

Haiko









-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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)
{
if (pageManager == null)
{
pageManager.destroy();
pageManager = null;
}
}
}
}

WDYT?

Sven

On 10/25/2013 12:14 AM, uwe schaefer wrote:

On 22.10.2013 10:22, Sven Meier wrote:

Hi Sven,


currently there's no way to change the PageManager once it's fetched in
Application#internalGetPageManager().


agreed.


Do you have a stacktrace for the code triggering
Application.getPageManagerProvider().get() ? Besides devutils I don't
see any call to this from Wicket.


it is the sessionUnbound method that supposedly was triggered by the 
container doing its clustering while wicket still initializes;


Application:478
public void sessionUnbound(final String sessionId){
  internalGetPageManager().sessionExpired(sessionId);
  ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
}

cu uwe

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 and refresh that (remembering to
> setOutputMarkupId to true etc.)
>
> I don't know the reason why, but repeaters have to be updated via their
> parent container.
>

The reason is because repeaters' have no markup. The markup you provide is
used for the repeater's items.

Check
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/


>
> Cheers,
> Col.
>
> -Original Message-
> From: MartinoSuperman [mailto:martinosuper...@live.nl]
> Sent: Friday, October 25, 2013 3:36 AM
> To: users@wicket.apache.org
> Subject: Add or remove a row in RefreshingView with Ajax
>
> Hi,
>
> I have a RefreshingView, which consists of TextFields, Labels and a
> DownloadLink.
>
> When a button is pressed, a new row should be added with the help of Ajax.
>
> Unfortunately, this does not work.
>
> Can somebody tell me what I have to program to make adding and removing
> rows in RefreshingView possible?
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Add-or-remove-a-row-in-RefreshingView-with-Ajax-tp4661944.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
> EMAIL DISCLAIMER This email message and its attachments are confidential
> and may also contain copyright or privileged material. If you are not the
> intended recipient, you may not forward the email or disclose or use the
> information contained in it. If you have received this email message in
> error, please advise the sender immediately by replying to this email and
> delete the message and any associated attachments. Any views, opinions,
> conclusions, advice or statements expressed in this email message are those
> of the individual sender and should not be relied upon as the considered
> view, opinion, conclusions, advice or statement of this company except
> where the sender expressly, and with authority, states them to be the
> considered view, opinion, conclusions, advice or statement of this company.
> Every care is taken but we recommend that you scan any attachments for
> viruses.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>