Re: load page in Wicket and message from web browser

2012-08-09 Thread vaibhav2012
Hi areq10,

I tried to recreate your scenario and i came across the same situation you
are facing.

One query from you : Have you specified WindowClosedCallback for your
modalWindow???

If not Specify that using this piece of code :

modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
private static final long serialVersionUID = -1991891482338549420L;

@Override
public void onClose(AjaxRequestTarget target) {
System.out.println(Modal window closed);
setResponsePage(YOURPAGE.class);
}
});

Now when your modalWindow is closed the onClose method of above code is
called, which renders your page without any alert from browser side.



-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-page-in-Wicket-and-message-from-web-browser-tp4651042p4651068.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: load page in Wicket and message from web browser

2012-08-08 Thread vaibhav2012
Hi,

I never came across such a scenario.
Can you show the exact piece of code you are using, i can try to figure out
by looking at it.



-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-page-in-Wicket-and-message-from-web-browser-tp4651042p4651051.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: AW: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread vaibhav2012
Hi Hans,

I have already tried this, but it doesn't work.
SignInPanel is a seperate class which extends 
*org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate
markup.
I am adding this SignInPanel as a Component in different wicket pages, as
mentioned in the scenario in my original question.

SignInPanel has a form, and from onSubmit() of that form, i want to reload
the page which holds this SignInPanel.
I used this.getPage() in SignInPanel's constructor, but it gives this
exception *org.apache.wicket.WicketRuntimeException: No Page found for
component [SignInPanel [Component id = signInPanel]]*

Can u suggest some other way?

Thanks,



-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097p4650099.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: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread vaibhav2012
Hi Hans,

Thanks for the information. Its working :).

-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097p4650103.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



How to reload a Wicket-page from Wicket-panel.

2012-06-19 Thread vaibhav2012
Hi,

I want to reload Wicket-page from a Wicket-panel.

The scenario is like :

1) I have a SignInPanel. I am adding this panel in different pages, lets for
example say PageA, PageB, PageC etc.

2) Now when user is in PageA, and user signs in from SignInPanel. I want the
contents of PageA to change as per user's data. For this i need to reload
PageA. 

3) Step (2) is applicable for PageB, PageC and all other pages which holds
this SignInPanel.

But i am not able to access the Page instance from within the SignInPanel. 
One approach i have thought of, is to pass the Page class to the constructor
of SignInPanel while initializing it. And i can use this Page class to
reload the particular page.

Can anyone suggest me of a cleaner approach to acheive this.

Thanks,




-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097.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



PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi all,

I am trying to server a particular error page when session timeouts to my
users.
For this i configured the error page on my Application's init method.
But this thing is not working.

*One of my concern :* Does wicket server this PageExpiredErrorPage only in
case of PageExpiredException??
I went through the logs, but wicket didn't throw any PageExpiredException.

When session timeouts wicket simply logs it as Session unbound.
I am able to listen to this Session unbound by attaching my own
UnboundListener to the session.

Please provide some help so that i can accomplish my task.

Regards,

Vaibhav,
Wicket newbie.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905.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: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin,

I called the function as u said.
But, still no success.

On session timeout wicket logs following lines:

[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
o.a.wicket.session.HttpSessionStore - Session unbound:
831D6D49C220E621761EC98C3B8943B6
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG
o.a.wicket.pageStore.DiskDataStore - Removing data for pages in session with
id '831D6D49C220E621761EC98C3B8943B6'

Is the problem coming because PageExpiredException is not thrown??

Can you provide some help on this ground?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905p4649911.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: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin,

Thanks for clearing my doubt.
But after session timeout, when i try to access any mounted page i am not
getting PageExpiredException.

I have bypassed the error page in my authorization strategy, and i dont feel
security settings are blocking this.

Please give some info.

-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905p4649914.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: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi,

I will try to create a quick start for this and will post soon.

-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905p4649918.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: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin,

Thanks alot :). That worked.

Just lil bit curious : I didn't see any PageExpiredException in the logs now
also. Why is that?

-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905p4649955.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: wicketAjaxGet is not defined javascript error }

2012-06-12 Thread vaibhav2012
I was able to resolve it.
Actually javascript was getting loaded because of my security settings.
I bypassed the security settings for javascripts and it worked :)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-is-not-defined-javascript-error-tp4649869p4649874.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



wicketAjaxGet is not defined javascript error }

2012-06-12 Thread vaibhav2012
Hi,

I am new to apache wicket.
I have added an ajaxLink to my wicket page.
But i am not able to capture the onClick event of this link.
The problem is coming because of JS error wicketAjaxGet is not defined as
monitored from firebug.

Please help me where i am getting wrong.

I am attaching the rendered html for the page.

Thanks,

Vaibhav.
http://apache-wicket.1842946.n4.nabble.com/file/n4649869/Page.html Page.html 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-is-not-defined-javascript-error-tp4649869.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