Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-10 Thread Carfield Yim
On 2/10/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Hi.

 The major problem is (amongst other problems) that you have page from
 another host in modal window. Generally, this is going to cause some
 trouble, because it's cross site scripting. The browsers are trying to
 prevent that.

I have to do that because I need to read a file of that host...

 Another thing is that I don't understand how you can submit wicket form
 to another host. Because to submit form in wicket (unless the form is
 stateless, which is possibility only 1.x or 2.0) you need first to
 create page instance, and then use the instance number in the post url,
 as well as the FormSubmitListener listener and form component path.

I guess you think what I do is something like

form action=http://host2/app/page; method=post

But I am not, in fact, I just use an iframe for now:

iframe src=http://host2/app/page;/iframe

It ok to display page , but after I submit at page, it show page
expire, and only IE have this problem

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-10 Thread Igor Vaynberg

i remember there was a discussion about this...embedding wicket pages in
iframes. and i believe the deal was that IE doesnt pass the cookies to the
iframe so it cannot find the session on a submit. you have to enable url
rewriting i guess.

-igor


On 2/10/07, Carfield Yim [EMAIL PROTECTED] wrote:


On 2/10/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Hi.

 The major problem is (amongst other problems) that you have page from
 another host in modal window. Generally, this is going to cause some
 trouble, because it's cross site scripting. The browsers are trying to
 prevent that.

I have to do that because I need to read a file of that host...

 Another thing is that I don't understand how you can submit wicket form
 to another host. Because to submit form in wicket (unless the form is
 stateless, which is possibility only 1.x or 2.0) you need first to
 create page instance, and then use the instance number in the post url,
 as well as the FormSubmitListener listener and form component path.

I guess you think what I do is something like

form action=http://host2/app/page; method=post

But I am not, in fact, I just use an iframe for now:

iframe src=http://host2/app/page;/iframe

It ok to display page , but after I submit at page, it show page
expire, and only IE have this problem

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-10 Thread Carfield Yim
On 2/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i remember there was a discussion about this...embedding wicket pages in
 iframes. and i believe the deal was that IE doesnt pass the cookies to the
 iframe so it cannot find the session on a submit. you have to enable url
 rewriting i guess.

I see, would you let me know more information like rewrite what?
Include the sessionid in URL? Will you still remember the subject
words of that discuss so that I can search?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-10 Thread Igor Vaynberg

here is the thread

http://www.nabble.com/Session-management-tf2175800.html#a6015910

the rewriting im talking about is in your servlet container, tell it not to
use cookies to track session and it will append sessionid to every url

-igor


On 2/10/07, Carfield Yim [EMAIL PROTECTED] wrote:


On 2/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i remember there was a discussion about this...embedding wicket pages in
 iframes. and i believe the deal was that IE doesnt pass the cookies to
the
 iframe so it cannot find the session on a submit. you have to enable url
 rewriting i guess.

I see, would you let me know more information like rewrite what?
Include the sessionid in URL? Will you still remember the subject
words of that discuss so that I can search?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-09 Thread Carfield Yim
Still have problem with this issue... I 've to include the page in a
iframe but still not working.

On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Is that a wicket form? Is it a completely different application? How it
  is related to modal window?
 
 Yes, it is wicket form at completely difference application
 (difference host). One application call that page through ModalWindow
 and RedirectPage, the code is


 final ModalWindow modal = new ModalWindow(ajaxpanel);
 modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
 modal.setPageCreator(new PageCreator() {
 private static final long serialVersionUID = 1L;
 public Page createPage() {
 return  new RedirectPage(http://host2/app/tickdatasearch;);
 }
 });
 add(modal);
 add(new AjaxFallbackLink(tickdatasearch) {
 private static final long serialVersionUID = 1L;
 public void onClick(AjaxRequestTarget target) {
 modal.show(target);
 }
 });


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-09 Thread Matej Knopp
Hi.

The major problem is (amongst other problems) that you have page from 
another host in modal window. Generally, this is going to cause some 
trouble, because it's cross site scripting. The browsers are trying to 
prevent that.

Another thing is that I don't understand how you can submit wicket form 
to another host. Because to submit form in wicket (unless the form is 
stateless, which is possibility only 1.x or 2.0) you need first to 
create page instance, and then use the instance number in the post url, 
as well as the FormSubmitListener listener and form component path.

-Matej

Carfield Yim wrote:
 you'd need to use some distributed session mechanism. Just a guess...

 Might be, Can I just include the sessionid as hidden field / url to
 fix that? I probably cannot have too complicate distributed session
 mechanism
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread Carfield Yim
On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 The target of the RedirectPage is another wicket form running at
 difference host. In firefox it work ok but in IE it always show page
 expire after I submit the form. Does anybody experience this also?

Hi, have asked this several day before... no one have similar problem?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread beboris

Is it possible that your session expired comes from the second host because
it knows nothing about your session on the first host? If that's the case
you'd need to use some distributed session mechanism. Just a guess...


Carfield Yim-2 wrote:
 
 By the way, I just deploy the application of another host to my
 localhost and test, it work ok. Does anyone know the reason of this
 happening?
 
 On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Is that a wicket form? Is it a completely different application? How it
  is related to modal window?
 
 Yes, it is wicket form at completely difference application
 (difference host). One application call that page through ModalWindow
 and RedirectPage, the code is


 final ModalWindow modal = new ModalWindow(ajaxpanel);
 modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
 modal.setPageCreator(new PageCreator() {
 private static final long serialVersionUID = 1L;
 public Page createPage() {
 return  new
 RedirectPage(http://host2/app/tickdatasearch;);
 }
 });
 add(modal);
 add(new AjaxFallbackLink(tickdatasearch) {
 private static final long serialVersionUID = 1L;
 public void onClick(AjaxRequestTarget target) {
 modal.show(target);
 }
 });

 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--Question-about-using-RedirectPage-in-a-modalwindow-tf3121251.html#a8761067
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread Carfield Yim
 you'd need to use some distributed session mechanism. Just a guess...

Might be, Can I just include the sessionid as hidden field / url to
fix that? I probably cannot have too complicate distributed session
mechanism

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-01-26 Thread Matej Knopp
Is that a wicket form? Is it a completely different application? How it 
is related to modal window?

-Matej

Carfield Yim wrote:
 The target of the RedirectPage is another wicket form running at
 difference host. In firefox it work ok but in IE it always show page
 expire after I submit the form. Does anybody experience this also?
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-01-26 Thread Carfield Yim
On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Is that a wicket form? Is it a completely different application? How it
 is related to modal window?

Yes, it is wicket form at completely difference application
(difference host). One application call that page through ModalWindow
and RedirectPage, the code is


final ModalWindow modal = new ModalWindow(ajaxpanel);
modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
modal.setPageCreator(new PageCreator() {
private static final long serialVersionUID = 1L;
public Page createPage() {
return  new RedirectPage(http://host2/app/tickdatasearch;);
}
});
add(modal);
add(new AjaxFallbackLink(tickdatasearch) {
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
modal.show(target);
}
});

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-01-26 Thread Carfield Yim
By the way, I just deploy the application of another host to my
localhost and test, it work ok. Does anyone know the reason of this
happening?

On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Is that a wicket form? Is it a completely different application? How it
  is related to modal window?
 
 Yes, it is wicket form at completely difference application
 (difference host). One application call that page through ModalWindow
 and RedirectPage, the code is


 final ModalWindow modal = new ModalWindow(ajaxpanel);
 modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
 modal.setPageCreator(new PageCreator() {
 private static final long serialVersionUID = 1L;
 public Page createPage() {
 return  new RedirectPage(http://host2/app/tickdatasearch;);
 }
 });
 add(modal);
 add(new AjaxFallbackLink(tickdatasearch) {
 private static final long serialVersionUID = 1L;
 public void onClick(AjaxRequestTarget target) {
 modal.show(target);
 }
 });


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user