RE: Help with URL Rewrite in IFrame!
Hi Dan, Yes, I believe you are right, and that's prettymuch what I am looking for. One of the developer who was trying to prototype the FB app with wicket, mentioned that we could override the WebResponse, and achieve this: https://cwiki.apache.org/WICKET/wicket-form-submits-fbml-and-redirects.html However, I am unable to get this to work for the IFrame (InlineFrame) I have. Highly appreciate your response Thanks Kuga From: Dan Retzlaff [via Apache Wicket] [mailto:ml-node+s1842946n3837770...@n4.nabble.com] Sent: Friday, September 23, 2011 12:05 PM To: Kugaprakash Visagamani Subject: Re: Help with URL Rewrite in IFrame! It sounds like you want to make a request to your internal, third party web app and render the response to an external user. That's not typically called URL rewriting. To accomplish that, from your Wicket page/resource you'll need to make a new HTTP request using the JDK or a library like http://hc.apache.org/, and copy the internal app's response into your Jetty response. On Thu, Sep 22, 2011 at 9:57 PM, kugaprakash [hidden email]/user/SendEmail.jtp?type=nodenode=3837770i=0wrote: Hi, Appreciate the response. Is there any way to redirect the URL when wicket gets it? Is there a URL rewriting capability? NOTE: Need to rewrite the URL only for the IFrame, and not the whole page. thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3835738.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=3837770i=1 For additional commands, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=3837770i=2 If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837770.html To unsubscribe from Help with URL Rewrite in IFrame!, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3835409code=a3Zpc2FnYW1hbmlAaW5mb2Jsb3guY29tfDM4MzU0MDl8NjM0MjQ4MjIx. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837820.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: Help with URL Rewrite in IFrame!
Thanks a lot for the response. I was also thinking along the similar lines. However, have a question: How is the authentication done? Doesnt this kind of proxy mean that, any request with that URL from any browser gets forwarded via this proxy? Sorry for repeating emails Regards Kuga On Sep 23, 2011, at 12:20 PM, Dan Retzlaff [via Apache Wicket] ml-node+s1842946n3837827...@n4.nabble.commailto:ml-node+s1842946n3837827...@n4.nabble.com wrote: This use case is more typically handled by setting up a reverse proxy. We use http://httpd.apache.org/docs/2.2/mod/mod_proxy.html http://httpd.apache.org/docs/2.2/mod/mod_proxy.html. For trivial content making the request yourself might be okay, but as soon as the page refers to other images/CSS/etc, you'll be reinventing the wheel. :) On Fri, Sep 23, 2011 at 12:17 PM, kugaprakash [hidden email]/user/SendEmail.jtp?type=nodenode=3837827i=0wrote: Hi Dan, Yes, I believe you are right, and that's prettymuch what I am looking for. One of the developer who was trying to prototype the FB app with wicket, mentioned that we could override the WebResponse, and achieve this: https://cwiki.apache.org/WICKET/wicket-form-submits-fbml-and-redirects.html https://cwiki.apache.org/WICKET/wicket-form-submits-fbml-and-redirects.html However, I am unable to get this to work for the IFrame (InlineFrame) I have. Highly appreciate your response Thanks Kuga From: Dan Retzlaff [via Apache Wicket] [mailto: [hidden email]/user/SendEmail.jtp?type=nodenode=3837827i=1] Sent: Friday, September 23, 2011 12:05 PM To: Kugaprakash Visagamani Subject: Re: Help with URL Rewrite in IFrame! It sounds like you want to make a request to your internal, third party web app and render the response to an external user. That's not typically called URL rewriting. To accomplish that, from your Wicket page/resource you'll need to make a new HTTP request using the JDK or a library like http://hc.apache.org/ http://hc.apache.org/, and copy the internal app's response into your Jetty response. On Thu, Sep 22, 2011 at 9:57 PM, kugaprakash [hidden email]/user/SendEmail.jtp?type=nodenode=3837770i=0wrote: Hi, Appreciate the response. Is there any way to redirect the URL when wicket gets it? Is there a URL rewriting capability? NOTE: Need to rewrite the URL only for the IFrame, and not the whole page. thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3835738.html http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3835738.html Sent from the Users forum mailing list archive at Nabble.comhttp://Nabble.com. - To unsubscribe, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=3837770i=1 For additional commands, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=3837770i=2 If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837770.html http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837770.html To unsubscribe from Help with URL Rewrite in IFrame!, click here . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837820.html http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837820.html Sent from the Users forum mailing list archive at Nabble.comhttp://Nabble.com. - To unsubscribe, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=3837827i=2 For additional commands, e-mail: [hidden email]/user/SendEmail.jtp?type=nodenode=3837827i=3 If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837827.htmlhttp://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837827.html To unsubscribe from Help with URL Rewrite in IFrame!, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3835409code=a3Zpc2FnYW1hbmlAaW5mb2Jsb3guY29tfDM4MzU0MDl8NjM0MjQ4MjIx. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3837860.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
Help with URL Rewrite in IFrame!
Hi, I would like to request your help with the following question: Have a Wicket application running on Jetty webserver. We also have a 3rd party software which is running in another web container, and they have their own web GUI. We would like to render parts of their GUI in our wicket application. As such I have added a Wicket’s Panel, and added a IFrame, however, for the IFrame we cannot give the 3rd party server’s URL due to security issues. So provided the URL for our application, once the IFrame request comes to the Wicket application, we need to actually rewrite the URL to the 3rd party server which will be sent via our VPN, so no issues on security. Can anyone please let me know of any possible approaches we can do such stuff in wicket? Any sample code would be appreciated. Thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3835409.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: Help with URL Rewrite in IFrame!
Hi, Appreciate the response. Is there any way to redirect the URL when wicket gets it? Is there a URL rewriting capability? NOTE: Need to rewrite the URL only for the IFrame, and not the whole page. thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-with-URL-Rewrite-in-IFrame-tp3835409p3835738.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: inlineframe usage
Hi, Can you please let me know if you had a solution? Also would appreciate any sample code. we have a similar issue, I have a wicket panel, with few components and then have an IFrame. Thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inlineframe-usage-tp1860124p3835767.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: wicket osgi (not Pax)
Hi, I have multiple Wicket Applications running on different servers, each of them runs on OSGI/Jetty, and a Master Wicket Application also runs on OSGI/Jetty. Master wicket application, has its own server, where it gets the data from the sub servers. Do you recommend Pax Wicket for such architechture? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-osgi-not-Pax-tp1893713p2991185.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: Integrating Separate Different Wicket Applications Into One
Hi, Can you please let me know? thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Separate-Different-Wicket-Applications-Into-One-tp1889319p2990281.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: Integrating Separate Different Wicket Applications Into One
Hi, I am trying to solve similar problem as the Original Post. Can you please share some details of your ideas that you done? Much appreciated. Best Regards -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Separate-Different-Wicket-Applications-Into-One-tp1889319p2968802.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: Problem with Crypted URL
Actually I should say, that it is not force re-directing even on using the recommended approach. It still stays in the same current page. Am I doing something wrong here? I tried to remove the finally block {Session.get().invalidate(); } and moved that code to detach(), still no success. Please let me know if there is some thing wrong being done here. Thanks in Advance. Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp1875435p2243721.html Sent from the Wicket - User 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: Problem with Crypted URL
Thanks for the response, I am trying to implement your recommended solution, however, It goes into the respond method and I did the following public void respond(RequestCycle requestCycle) { PageParameters param = new PageParameters(); param.add(error, errorMessage); //$NON-NLS-1$ try { ((WebResponse)requestCycle.getResponse()).getHttpServletResponse(). sendRedirect(requestCycle.urlFor(pageClass, param).toString()); Session.get().invalidate(); } catch (IOException e) { log.error(Error while redirecting to global error page, e); //$NON-NLS-1$ } } Please let me know if the above is correct. However, I am seeing the following issue: 1. When the session expires, the session expiry page appears, and when click on Browser back button, it takes me to previous page, but doesnt complete rendering, as there are decode exceptions, but this time it does not render the SessionExpiry page. 2. We also have a Global error page, when the application gets an RunTime exception, we report it to global error page, I tried to use the same concept there, but for this case, it does not redirect to the Global error page, rather, just stays in the current page, as though it has consumed the click. Please let me know if you have any thoughts. Thanks in advance Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp1875435p2242335.html Sent from the Wicket - User 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: Problem with Crypted URL
Can anybody help me with this question? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp1875435p2240647.html Sent from the Wicket - User 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: Problem with Crypted URL
Hi, Thanks much and appreciate your response. Yes, like I mentioned in the code snippet above, in the WebRequestCycleRequestProcesser.respond(), I override this method and handle the page expiration exception in the following way: if(e instanceof PageExpiredException || e instanceof HackAttackException){ Session.get().invalidate(); throw new RestartResponseException(SessionExpiryPage.class); } Which I believe will result in a bookmarkable page request target. Do you mean to say that I should not invalidate the session at above line, rather invalidate it in the SessionExpiryPage.onAfterRender() If the above is not what it is, can you please let me know with a little code sample? Thanks Kuga From: Igor Vaynberg-2 [via Apache Wicket] [mailto:ml-node+2240861-1232253215-230...@n4.nabble.com] Sent: Wednesday, June 02, 2010 2:30 PM To: Kugaprakash Visagamani Subject: Re: Problem with Crypted URL maybe because you are invalidating the session, which happens after the page is rendered. i would instead invalidate the session and reditect to a bookmarkable url that points to the sessionexpiry page -igor On Wed, Jun 2, 2010 at 12:03 PM, kugaprakash [hidden email] wrote: Can anybody help me with this question? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp18 75435p2240647.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] View message @ http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp18 75435p2240861.html To unsubscribe from Re: Problem with Crypted URL, click here http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jt p?code=a3Zpc2FnYW1hbmlAaW5mb2Jsb3guY29tfDIyNDA2NDd8NTcwMDE4MzI5 . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp1875435p2240905.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Problem with Crypted URL
We are using Wicket 1.3.5 (Unable to upgrade to latest Wicket release, due to a CSRF fix needed for a previous release build) and I am doing the following: protected IRequestCodingStrategy newRequestCodingStrategy(){ return new CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()){ @Override protected String onError(final Exception ex) { throw new WicketRuntimeException(Session Expired, new PageExpiredException(Session Expired)); } } Still does not work, In our WebRequestCycleProcessor, we override the respond method and do the following: if(e instanceof PageExpiredException || e instanceof HackAttackException){ Session.get().invalidate(); throw new RestartResponseException(new SessionExpiryPage()); } In SessionExpiryPage.html - we have CSS Logo resources, which is not getting rendered. If you happened to resolve this, please let me know. Any help is much appreciated Thanks in advance. Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-Crypted-URL-tp1875435p2232645.html Sent from the Wicket - User 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
Issue with AjaxLinks in ListView
Hi, I have a page that has a panel with ListViewAjaxLink (Listview contains AjaxLink's). I go to that page, click on a links - does an ajax update of one section in a page, and then I do a target.addComponent(listViewPanel) to update the link selection background. This works fine so far. Now I click on the second link in that listview, I am getting the below exception: org.apache.wicket.WicketRuntimeException: component heading:menu:subMenuBar:topmenuitems:2:menuitemfragment:linkfragment:lin kid not found on page com.infoblox.nios.ui.page.datamgt.DataManagePage[id = 3], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerI nterfaceTarget(AbstractRequestCycleProcessor.java:416) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedP age(AbstractRequestCycleProcessor.java:461) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequ estCycleProcessor.java:139) at com.infoblox.nios.app.NiosApplication$RedirectRequestCycleProcess.resolv e(MYApplication.java:232) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355 ) NOTE: THIS PROBLEM IS VERY INTERMITTENT, I am unable to determine the main cause for this. However, if I re-login, everything is fine (atleast was able to click on the links multiple times, and did not see any issues). I am using Wicket 1.3.5 Please let me know if you have any ideas, any pointers would be highly appreciated. Best Regards Thanks in Advance, Kuga
Wicket Wizard window question!
Hi, I was browsing through the wicket forums, for one of the problems I am having using Wicket wizard in ModalWindow. Wondering if anyone could help me with any possible solutions. Greatly appreciate you time and response. I have changed the WizardButtons to use Ajax buttons. The following is the behavior: In the wizard Ajax button I added the following: protected void onSubmit(AjaxRequestTarget target, Form form) { onClick(target); target.addComponent((Wizard)wizard); } 1. I have added 3 IWizardStep to the model 2. Added the wizard to a panel, and then added this panel to the ModalWindow. 3. Lauched the modalwindow, a. Observed the right behavior (button enabled state) of the buttons at launch b. Now Clicked on Next button - traverses to the next step. c. Now clicked on the Previous button - instead of going to Previous - I got the annoying alert message. d. added the javascript (Wicket.windo.unloadConfirmatoin = false; e. Adding the above scrip was just suppressing the alert message, and just closes the wizard window without going to the previous screen. Not really sure where I am going wrong. Have been trying to Debug, but since the previous button doesn't get the onClick() due to closing, could not even debug this issue. Can you please let me know about your experience in solving this issue, and also if you feel that I am doing any mistake, please let me know. Thanks Best Regards Kuga