hello
no job so far compares to this i get paid everyday with this program i know that your efforts are going to pay off im so excited to receive my first pay check http://www.b2cnbc3y.com/
RequiresHttps and Apache mod_ssl
Hi, Trying to get some pages of the application to be secured using SSL. But want SSL to be handled by Apache in the production env. Is there a way to Configure Pages to require the https:// url without having to handle ssl in the app. thanks, Ed _ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
localizing images
Hi, Wanted to see how one could localize images. Esp if they are not in the same folder as the src code. wicket:link seems to only want to look in the local folder. If I specify the path in the src attribute that doesn't work. wicket:link img src=/go/to/a/different/location/myimg.gif / /wicket:link thx, Ed _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
RE: localizing images
Could you explain that a bit. thx! From: cika...@gmail.com Date: Wed, 12 May 2010 15:47:56 -0700 Subject: Re: localizing images To: users@wicket.apache.org Use parameterized ResourceReference's Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Wed, May 12, 2010 at 3:38 PM, Ed _ ed_b...@hotmail.com wrote: Hi, Wanted to see how one could localize images. Esp if they are not in the same folder as the src code. wicket:link seems to only want to look in the local folder. If I specify the path in the src attribute that doesn't work. wicket:link img src=/go/to/a/different/location/myimg.gif / /wicket:link thx, Ed _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
converting xml list into un numbered list
Hello, I have a list of items in a xml document. What is the best way to convert them into a list on an page. xml itemnameapple/nameitem itemnameorange/nameitem itemnamecarrot/nameitem /xml ul liapple/li lioragnge/li licarrot/li /ul Should I extract into an Array and then use ListView ? Or is there a better way thank _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/
Closing ModalWindows on page with multiple modal windows
Hi, I have a page with several panels each of them them have links that open modal windows. Essentially there are a number of modal windows on the page most are hidden. They all open up and I am able to close them with the Cross (X) link. In one of the modal windows the content has an ajaxLink that closes the modal window. AjaxLink cancelSyncLink = new AjaxLink(CloseWindowLink) { @Override public void onClick(AjaxRequestTarget target) { log.info(CloseWindowLink called); modalWindow.closeCurrent(target); // modalWindow.close(target); } }; The function gets called but the modal window does not close. I have tried both closeCurrent and close calls. The same works on a page that has only one ModalWindow. Any ideas how I can fix this. thanks! _ Windows Live Hotmail gives you a free,exclusive gift. http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_7:092009
RE: Closing ModalWindows on page with multiple modal windows
Using version 1.4.3 Would really ppreciate suggestions. From: ed_b...@hotmail.com To: users@wicket.apache.org Subject: Closing ModalWindows on page with multiple modal windows Date: Fri, 4 Dec 2009 15:09:22 -0800 Hi, I have a page with several panels each of them them have links that open modal windows. Essentially there are a number of modal windows on the page most are hidden. They all open up and I am able to close them with the Cross (X) link. In one of the modal windows the content has an ajaxLink that closes the modal window. AjaxLink cancelSyncLink = new AjaxLink(CloseWindowLink) { @Override public void onClick(AjaxRequestTarget target) { log.info(CloseWindowLink called); modalWindow.closeCurrent(target); // modalWindow.close(target); } }; The function gets called but the modal window does not close. I have tried both closeCurrent and close calls. The same works on a page that has only one ModalWindow. Any ideas how I can fix this. thanks! _ Windows Live Hotmail gives you a free,exclusive gift. http://www.microsoft.com/windows/windowslive/hotmail_bl1/hotmail_bl1.aspx?ocid=PID23879::T:WLMTAGL:ON:WL:en-ww:WM_IMHM_7:092009 _ Windows 7: Unclutter your desktop. Learn more. http://www.microsoft.com/windows/windows-7/videos-tours.aspx?h=7secslideid=1media=aero-shake-7secondlistid=1stop=1ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_7secdemo:122009
RE: Closing ModalWindows on page with multiple modal windows
And the application is throwing an exception. On repeated tries to close the ModalWindow via the AjaxLink [2009-12-04 16:45:34,942]ERROR [http-8080-4] (RequestCycle.java:1521) - org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap modal-dialog-pagemap is still locked by: Thread[http-8080-6,5,main], giving up trying to get the page for path: 2:CloseWindowLink Begin of stack trace of Thread[http-8080-6,5,main] java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:474) org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442) java.lang.Thread.run(Thread.java:613) End of stack trace of Thread[http-8080-6,5,main] org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap modal-dialog-pagemap is still locked by: Thread[http-8080-6,5,main], giving up trying to get the page for path: 2:CloseWindowLink Begin of stack trace of Thread[http-8080-6,5,main] java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:474) org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442) java.lang.Thread.run(Thread.java:613) End of stack trace of Thread[http-8080-6,5,main] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:262) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Caused by: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap modal-dialog-pagemap is still locked by: Thread[http-8080-6,5,main], giving up trying to get the page for path: 2:CloseWindowLink Begin of stack trace of Thread[http-8080-6,5,main] java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:474) org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442) java.lang.Thread.run(Thread.java:613) End of stack trace of Thread[http-8080-6,5,main] at org.apache.wicket.Session.getPage(Session.java:769) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:458) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) ... 20 more From: ed_b...@hotmail.com To: users@wicket.apache.org Subject: RE: Closing ModalWindows on page with multiple modal windows Date: Fri, 4 Dec 2009 15:21:36 -0800 Using version 1.4.3 Would really ppreciate suggestions. From: ed_b...@hotmail.com To: users@wicket.apache.org Subject: Closing ModalWindows on page with multiple modal windows Date: Fri, 4 Dec 2009 15:09:22 -0800 Hi, I have a page with several panels each of them them have links that open modal windows. Essentially there are a number of modal windows on the page most are hidden. They all open up and I am able to close them with the Cross (X) link. In one of the modal windows the content has an ajaxLink that closes the modal window. AjaxLink cancelSyncLink = new AjaxLink(CloseWindowLink) { @Override public void onClick(AjaxRequestTarget target) {
wicket:head header contribution via panel in a ModalWindow
I am trying to add some javascript via a panel that gets opened in a Modal Window. The same panel on a web page adds the js to the head section of the page. But does not when opened in a Modal Window. is there a way to do this? thx, Ed _ Bing brings you maps, menus, and reviews organized in one place. http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1
dynamic adding media player files
I am trying to dynamically add a media player to a page. How to I add the content to the html since the media files are going to be picked from the db. Is there a way to use WebMarkUpContainerWithAssociatedMarkup for this. Essentially want to provide the contents of a div. thanks! _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/
RE: dynamic adding media player files
I need to add the following in a div script type=text/javascript AudioPlayer.embed(player, { soundFile: /mylocation/mymusic.mp3 }); /script wtithe the soundFile dynamically changing. thx From: ed_b...@hotmail.com To: users@wicket.apache.org Subject: dynamic adding media player files Date: Thu, 26 Nov 2009 10:11:06 -0800 I am trying to dynamically add a media player to a page. How to I add the content to the html since the media files are going to be picked from the db. Is there a way to use WebMarkUpContainerWithAssociatedMarkup for this. Essentially want to provide the contents of a div. thanks! _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/ _ Bing brings you maps, menus, and reviews organized in one place. http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1
RE: dynamic adding media player files
http://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html found the solution here. _ Windows 7: It works the way you want. Learn more. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2
xmlhttp to another domain
Hi, I have an application A that needs to make a call via the browser and not the backend to a go across an internal subdomain applicationB to get the status of a user and update the session of the main application A. Is there a way to add xmlhttpRequest from a panel on the page rendered by A to application B and feed the into the session of application A. thanks! _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/
RE: Modal window (1.4.1) and IE - Slow load times
Not too many. but is heavy on javascript. Ed From: jcar...@carmanconsulting.com Date: Sat, 14 Nov 2009 20:47:53 -0500 Subject: Re: Modal window (1.4.1) and IE - Slow load times To: users@wicket.apache.org Does your page have a lot of links on it? On Sat, Nov 14, 2009 at 6:36 PM, Ed _ ed_b...@hotmail.com wrote: Hi, I am using version 1.4.1 of wickets. P Contents of a Modal Window take extremely long time upto 10-20 sec to load on Internet Explorer 8. FireFox or Chrome on the same machine are really fast. with load times of 2-3 sec on a slow connection. Any one else seen this issue or has suggestion around fixing it. thanks, Ed _ Windows 7: It works the way you want. Learn more. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org _ Bing brings you maps, menus, and reviews organized in one place. http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1
Modal window (1.4.1) and IE - Slow load times
Hi, I am using version 1.4.1 of wickets. P Contents of a Modal Window take extremely long time upto 10-20 sec to load on Internet Explorer 8. FireFox or Chrome on the same machine are really fast. with load times of 2-3 sec on a slow connection. Any one else seen this issue or has suggestion around fixing it. thanks, Ed _ Windows 7: It works the way you want. Learn more. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2
Unable to close ModalWindow 1.4.1
Looking for hints to debug the situation I am in. Thanks. Using wickets 1.4.1 I have tried a simple scenario - opening a page in a modal window and then using a link in the page to close the window. Works fine. Now I am opening a more complicated page with its own javascript - performing a bunch of operations on that page using js while it is opened in a modal window. At the end of the operations I hide all the divs and then show a div that has a close link The link does not close the modal window - I see the request coming to the server I call close(target) tried ModalWindow.close(target) too but nothing happens. The window closes with the X close button on the top right. the wicket debug shows the operation / at least being able to fetch the code to shut the window down succeeding . http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:random=0.3818687947575885 ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluateevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluate/ajax-response _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/
RE: Unable to close ModalWindow 1.4.1
Thanks for the suggestion. I have been using close(target) - unfortunately attached a run when I was using both methods. Even with one ajax response appended it doesn't work. New to JS - can you tell me how to test the variables. If I add var status = window.parent.Wicket.Window; as part of my JS - I get permission denied exception as reported by firebug. My html file includes a head section with my javascript and the markup has wicket elements viz where the close links are rendered. I have two such links - both of which are rendered useless when used in this configuration - although the main close button of the modalwindow continues to work. thanks Date: Tue, 15 Sep 2009 18:00:47 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org by close(target) or ModalWindow.close(target) -- use close(target), to maintain ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos pedros...@gmail.com wrote: On this ajax response, we can see that the close script was appended 2 times. Make sure that it appended only once, by close(target) or ModalWindow.close(target). Before click the close link, in a moment that was causing trouble, see if these variables are not null: Wicket.Window.current window.parent.Wicket.Window.current If so, look at what moment they are nullified. The close method called on response: win.current.close() depends on these variables. On Tue, Sep 15, 2009 at 4:54 PM, Ed _ ed_b...@hotmail.com wrote: Looking for hints to debug the situation I am in. Thanks. Using wickets 1.4.1 I have tried a simple scenario - opening a page in a modal window and then using a link in the page to close the window. Works fine. Now I am opening a more complicated page with its own javascript - performing a bunch of operations on that page using js while it is opened in a modal window. At the end of the operations I hide all the divs and then show a div that has a close link The link does not close the modal window - I see the request coming to the server I call close(target) tried ModalWindow.close(target) too but nothing happens. The window closes with the X close button on the top right. the wicket debug shows the operation / at least being able to fetch the code to shut the window down succeeding . http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:random=0.3818687947575885 ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluateevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluate/ajax-response _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/ _ Bing brings you health info from trusted sources. http://www.bing.com/search?q=pet+allergyform=MHEINApubl=WLHMTAGcrea=TXT_MHEINA_Health_Health_PetAllergy_1x1
RE: Unable to close ModalWindow 1.4.1
Here is the wicket AJax Debug INFO: focus set on cancelUpdatea8INFO: Using XMLHttpRequest transportINFO: INFO: Initiating Ajax GET request on ?wicket:interface=modal-dialog-pagemap:26:cancelUpdate::IBehaviorListener:0:random=0.5391539823210829INFO: Invoking pre-call handler(s)...INFO: Received ajax response (541 characters)INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluate/ajax-responseINFO: Response parsed. Now invoking steps...INFO: Response processed successfully.INFO: Invoking post-call handler(s)...INFO: refocus last focused component not needed/allowedINFO: focus removed from cancelUpdatea8 Date: Tue, 15 Sep 2009 18:00:47 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org by close(target) or ModalWindow.close(target) -- use close(target), to maintain ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos pedros...@gmail.com wrote: On this ajax response, we can see that the close script was appended 2 times. Make sure that it appended only once, by close(target) or ModalWindow.close(target). Before click the close link, in a moment that was causing trouble, see if these variables are not null: Wicket.Window.current window.parent.Wicket.Window.current If so, look at what moment they are nullified. The close method called on response: win.current.close() depends on these variables. On Tue, Sep 15, 2009 at 4:54 PM, Ed _ ed_b...@hotmail.com wrote: Looking for hints to debug the situation I am in. Thanks. Using wickets 1.4.1 I have tried a simple scenario - opening a page in a modal window and then using a link in the page to close the window. Works fine. Now I am opening a more complicated page with its own javascript - performing a bunch of operations on that page using js while it is opened in a modal window. At the end of the operations I hide all the divs and then show a div that has a close link The link does not close the modal window - I see the request coming to the server I call close(target) tried ModalWindow.close(target) too but nothing happens. The window closes with the X close button on the top right. the wicket debug shows the operation / at least being able to fetch the code to shut the window down succeeding . http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:random=0.3818687947575885 ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluateevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluate/ajax-response _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/ _ Bing brings you health info from trusted sources. http://www.bing.com/search?q=pet+allergyform=MHEINApubl=WLHMTAGcrea=TXT_MHEINA_Health_Health_PetAllergy_1x1
RE: Unable to close ModalWindow 1.4.1
Ok I added this to the html script type=text/javascript alert(window.parent.Wicket.Window.current); /script of my simple page example and the alert poped up with [object Object] When I add it to my actual page - I get permission denied. :( alert(Wicket.Window.current) - shows up as an error - undefined in the test page. Thanks Date: Tue, 15 Sep 2009 21:45:34 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org - I get permission denied exception as reported by firebug. - head section with my javascript The firebug firefox plugging has an javascript console. Execute on him ( maybe you will not to get permission denied here): alert(Wicket.Window.current) alert(window.parent.Wicket.Window.current) at the end of the javascript operations you report: At the end of the operations I hide all the divs and then show a div that has a close link and let us to know what value then have. call the alerts to output the values, On Tue, Sep 15, 2009 at 9:13 PM, Ed _ ed_b...@hotmail.com wrote: Thanks for the suggestion. I have been using close(target) - unfortunately attached a run when I was using both methods. Even with one ajax response appended it doesn't work. New to JS - can you tell me how to test the variables. If I add var status = window.parent.Wicket.Window; as part of my JS - I get permission denied exception as reported by firebug. My html file includes a head section with my javascript and the markup has wicket elements viz where the close links are rendered. I have two such links - both of which are rendered useless when used in this configuration - although the main close button of the modalwindow continues to work. thanks Date: Tue, 15 Sep 2009 18:00:47 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org by close(target) or ModalWindow.close(target) -- use close(target), to maintain ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos pedros...@gmail.com wrote: On this ajax response, we can see that the close script was appended 2 times. Make sure that it appended only once, by close(target) or ModalWindow.close(target). Before click the close link, in a moment that was causing trouble, see if these variables are not null: Wicket.Window.current window.parent.Wicket.Window.current If so, look at what moment they are nullified. The close method called on response: win.current.close() depends on these variables. On Tue, Sep 15, 2009 at 4:54 PM, Ed _ ed_b...@hotmail.com wrote: Looking for hints to debug the situation I am in. Thanks. Using wickets 1.4.1 I have tried a simple scenario - opening a page in a modal window and then using a link in the page to close the window. Works fine. Now I am opening a more complicated page with its own javascript - performing a bunch of operations on that page using js while it is opened in a modal window. At the end of the operations I hide all the divs and then show a div that has a close link The link does not close the modal window - I see the request coming to the server I call close(target) tried ModalWindow.close(target) too but nothing happens. The window closes with the X close button on the top right. the wicket debug shows the operation / at least being able to fetch the code to shut the window down succeeding . http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:random=0.3818687947575885 ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluateevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluate/ajax-response _ Hotmail: Free
RE: Unable to close ModalWindow 1.4.1
Permission denied for http://domain.com to get property Window.Wicket from http://subdomain.domain.com:8080. http://subdomain.domain.com:8080/?wicket:interface=modal-dialog-pagemap:15 Line 265 wonder why it thinks that the domains are different ? can I force domain.doc value somehow thx Date: Tue, 15 Sep 2009 21:45:34 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org - I get permission denied exception as reported by firebug. - head section with my javascript The firebug firefox plugging has an javascript console. Execute on him ( maybe you will not to get permission denied here): alert(Wicket.Window.current) alert(window.parent.Wicket.Window.current) at the end of the javascript operations you report: At the end of the operations I hide all the divs and then show a div that has a close link and let us to know what value then have. call the alerts to output the values, On Tue, Sep 15, 2009 at 9:13 PM, Ed _ ed_b...@hotmail.com wrote: Thanks for the suggestion. I have been using close(target) - unfortunately attached a run when I was using both methods. Even with one ajax response appended it doesn't work. New to JS - can you tell me how to test the variables. If I add var status = window.parent.Wicket.Window; as part of my JS - I get permission denied exception as reported by firebug. My html file includes a head section with my javascript and the markup has wicket elements viz where the close links are rendered. I have two such links - both of which are rendered useless when used in this configuration - although the main close button of the modalwindow continues to work. thanks Date: Tue, 15 Sep 2009 18:00:47 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org by close(target) or ModalWindow.close(target) -- use close(target), to maintain ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos pedros...@gmail.com wrote: On this ajax response, we can see that the close script was appended 2 times. Make sure that it appended only once, by close(target) or ModalWindow.close(target). Before click the close link, in a moment that was causing trouble, see if these variables are not null: Wicket.Window.current window.parent.Wicket.Window.current If so, look at what moment they are nullified. The close method called on response: win.current.close() depends on these variables. On Tue, Sep 15, 2009 at 4:54 PM, Ed _ ed_b...@hotmail.com wrote: Looking for hints to debug the situation I am in. Thanks. Using wickets 1.4.1 I have tried a simple scenario - opening a page in a modal window and then using a link in the page to close the window. Works fine. Now I am opening a more complicated page with its own javascript - performing a bunch of operations on that page using js while it is opened in a modal window. At the end of the operations I hide all the divs and then show a div that has a close link The link does not close the modal window - I see the request coming to the server I call close(target) tried ModalWindow.close(target) too but nothing happens. The window closes with the X close button on the top right. the wicket debug shows the operation / at least being able to fetch the code to shut the window down succeeding . http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:random=0.3818687947575885 ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluateevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluate/ajax-response _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com
RE: Unable to close ModalWindow 1.4.1
For cross (sub) domain reasons - I am adding document.domain to my page. Is there a way to make modalwindow / Wickets Ajax links to work with it? thx From: ed_b...@hotmail.com To: users@wicket.apache.org Subject: RE: Unable to close ModalWindow 1.4.1 Date: Tue, 15 Sep 2009 18:49:03 -0700 Permission denied for http://domain.com to get property Window.Wicket from http://subdomain.domain.com:8080. http://subdomain.domain.com:8080/?wicket:interface=modal-dialog-pagemap:15 Line 265 wonder why it thinks that the domains are different ? can I force domain.doc value somehow thx Date: Tue, 15 Sep 2009 21:45:34 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org - I get permission denied exception as reported by firebug. - head section with my javascript The firebug firefox plugging has an javascript console. Execute on him ( maybe you will not to get permission denied here): alert(Wicket.Window.current) alert(window.parent.Wicket.Window.current) at the end of the javascript operations you report: At the end of the operations I hide all the divs and then show a div that has a close link and let us to know what value then have. call the alerts to output the values, On Tue, Sep 15, 2009 at 9:13 PM, Ed _ ed_b...@hotmail.com wrote: Thanks for the suggestion. I have been using close(target) - unfortunately attached a run when I was using both methods. Even with one ajax response appended it doesn't work. New to JS - can you tell me how to test the variables. If I add var status = window.parent.Wicket.Window; as part of my JS - I get permission denied exception as reported by firebug. My html file includes a head section with my javascript and the markup has wicket elements viz where the close links are rendered. I have two such links - both of which are rendered useless when used in this configuration - although the main close button of the modalwindow continues to work. thanks Date: Tue, 15 Sep 2009 18:00:47 -0300 Subject: Re: Unable to close ModalWindow 1.4.1 From: pedros...@gmail.com To: users@wicket.apache.org by close(target) or ModalWindow.close(target) -- use close(target), to maintain ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos pedros...@gmail.com wrote: On this ajax response, we can see that the close script was appended 2 times. Make sure that it appended only once, by close(target) or ModalWindow.close(target). Before click the close link, in a moment that was causing trouble, see if these variables are not null: Wicket.Window.current window.parent.Wicket.Window.current If so, look at what moment they are nullified. The close method called on response: win.current.close() depends on these variables. On Tue, Sep 15, 2009 at 4:54 PM, Ed _ ed_b...@hotmail.com wrote: Looking for hints to debug the situation I am in. Thanks. Using wickets 1.4.1 I have tried a simple scenario - opening a page in a modal window and then using a link in the page to close the window. Works fine. Now I am opening a more complicated page with its own javascript - performing a bunch of operations on that page using js while it is opened in a modal window. At the end of the operations I hide all the divs and then show a div that has a close link The link does not close the modal window - I see the request coming to the server I call close(target) tried ModalWindow.close(target) too but nothing happens. The window closes with the X close button on the top right. the wicket debug shows the operation / at least being able to fetch the code to shut the window down succeeding . http://hostname/?wicket:interface=mymodalWindow:3:doneInstall::IBehaviorListener:0:random=0.3818687947575885 ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { var close = function(w) { w.setTimeout(function() { win.current.close(); }, 0); } try { close(window.parent); } catch (ignore) { close(window); }; }]]/evaluateevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window
Javascript within ModalWindow Panel
I was doing some cross subdomain javascript within a Panel on a Page. Something simple as setting a variable in the parent window. When I move the same Panel to a modal window I am running into permission issues Permission denied to set variable Doing a page source the javascript and variables do not show up on the main page. Is there an additional level of indirection added cause of the modal window. where in Parent.variable = xyz now needs to be parent.modalwindow.variable=xyz. thx, Ed _ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/171222985/direct/01/
Customizing signinpanel
Hi, I am using the SignInPanel - was wondering if there is a way to customize the labels of the fields - like change the username to just name and password to key. Also what is the Reset functionality - is there a way to get rid of that button too. thanks, Ed _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
FileUpload in a Panel
Is it possible to do a file upload within a Panel ? Or can it only be done in a WebPage? I have seen some solutions using IFrames within panels to get around this. ERROR [http-8080-1] (RequestCycle.java:1072) - there was an error cleaning up target org.apache.wicket.request.target.component.listener.listenerinterfacerequesttar...@654004161[page class = com.mydomain.admin.Admin, id = 0, version = 0]-fileUpload-interface org.apache.wicket.markup.html.form.IFormSubmitListener.IFormSubmitListener (request paramaters: [RequestParameters componentPath=0:xPanel:fileUpload pageMapName=null versionNumber=0 interfaceName=IFormSubmitListener componentId=null behaviorId=null urlDepth=-1 parameters={} onlyProcessIfPathActive=false]). java.lang.IllegalStateException: Attempt to set model object on null model of component: xPanel:fileUpload:fileInput at org.apache.wicket.Component.setDefaultModelObject(Component.java:2933) thanks, Ed _ Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009
create clickable icons (serving as external links) - Sends server into a endless loop
I am trying to create clickable icons that would link to an external page. I came across - http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html - But the server just goes into an endless loop. pointers? Ed ExternalLink link = new ExternalLink(partnerLink, partnerLink); StaticImage sImg = new StaticImage(partnerIcon, new Model(partnerIconUrl)); link.add(sImg); add(link); html xmlns:wicket wicket:panel div class=partner_panel a href=# wicket:id=partnerLink img wicket:id=partnerIcon width=50 height=35 src=# / /a /div /wicket:panel /html class StaticImage extends WebComponent { public StaticImage(String id, IModel model) { super(id, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } _ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008
RE: create clickable icons (serving as external links) - Sends server into a endless loop
The problem occers when it is rendering. The images / page render fine when the src is hardcoded in the html file. It also works when I use the web markupcontainer and manipulate the src attribute as shown below. ExternalLink link = new ExternalLink(partnerLink, partnerLink); final String imageUrl = partnerIconUrl; WebMarkupContainer srcTag = new WebMarkupContainer(partnerIcon); IModel mediaSrc = new AbstractReadOnlyModel(){ @Override public String getObject(){ return imageUrl; } }; srcTag.add(new AttributeModifier(src, mediaSrc)); link.add(srcTag); add(link); Date: Fri, 5 Dec 2008 16:59:17 -0600 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: create clickable icons (serving as external links) - Sends server into a endless loop I don't see anything right away wrong with your code below. So, maybe a couple questions will help: Goes into an endless loop when? When it's rendering? When loading image? When clicking on link? Also - what HTML does your code below produce? -- Jeremy Thomerson http://www.wickettraining.com On Fri, Dec 5, 2008 at 4:49 PM, Ed _ [EMAIL PROTECTED] wrote: I am trying to create clickable icons that would link to an external page. I came across - http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html - But the server just goes into an endless loop. pointers? Ed ExternalLink link = new ExternalLink(partnerLink, partnerLink); StaticImage sImg = new StaticImage(partnerIcon, new Model(partnerIconUrl)); link.add(sImg); add(link); html xmlns:wicket wicket:panel div class=partner_panel a href=# wicket:id=partnerLink img wicket:id=partnerIcon width=50 height=35 src=# / /a /div /wicket:panel /html class StaticImage extends WebComponent { public StaticImage(String id, IModel model) { super(id, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } _ Suspicious message? There's an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008 _ You live life online. So we put Windows on the web. http://clk.atdmt.com/MRT/go/127032869/direct/01/
GridView and PagingNavigator - issue in page navigation
Hi, I am using GridView and PagingNavigator to render a series of podcast elements in my database. I am using wickets 1.3.5 with Hibernate and Tomcat. The first page renders fine but in trying to navigate using the Paging Navigator - It looks like the state is lost and I get the following error INFO [http-8080-1] (RequestListenerInterface.java:278) - registered listener interface [RequestListenerInterface name=INewBrowserWindowListener, method=public abstract void org.apache.wicket.markup.html.INewBrowserWindowListener.onNewBrowserWindow()] INFO [http-8080-1] (PodcastDataProvider.java:64) - PodcastDataProvider: Category:null, Num of entries:0 INFO [http-8080-1] (RequestListenerInterface.java:174) - component not enabled or visible; ignoring call. Component: [MarkupContainer [Component id = pageLink]] INFO [http-8080-1] (PodcastDataProvider.java:64) - PodcastDataProvider: Category:null, Num of entries:0 INFO [http-8080-1] (PodcastDataProvider.java:41) - Iterator - first:0, count:0 Here is my code - pretty much from the wickets grid example - public GridPanel(String id, String category){ super(id); log.info(GridPanel - Category: + category); add(new Label(CategoryLabel, category)); IDataProvider dataProvider = new PodcastDataProvider(category); GridView gridView = new GridView(rows, dataProvider){ protected void populateItem(Item item) { final PodcastTbl podTbl = (PodcastTbl)item.getModelObject(); item.add(new Label(PodcastPanel, podId)); } protected void populateEmptyItem(Item item) { item.add(new Label(PodcastPanel, *empty*)); } }; gridView.setRows(4); gridView.setColumns(3); add(gridView); add(new PagingNavigator(navigator, gridView)); ---html ===- div class=grid span wicket:id=navigator[dataview navigator]/span table cellspacing=0 cellpadding=2 tr wicket:id=rows td wicket:id=colsspan wicket:id=PodcastPanel[Podcast Id]/span/td /tr /table /div -- Appreciate any pointers. thx, Ed _ Color coding for safety: Windows Live Hotmail alerts you to suspicious email. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
FileResourceStream
I end up using FileResourceStream to serve up static web pages from a Wicket page. But I am having issues with the fact that the page gets cached and - returning clients with different url params - keep getting served the original static page. Is there a way for me to force a refresh and make sure the newMarkupResourceStream() gets called each time. thanks! _ Make i'm yours. Create a custom banner to support your cause. http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours
RE: modal window question - opening a modal window on page load
Thanks Ryan, First pass this has worked well for me. Appreciate your detailed instructions. Maybe these can be added to the open issue history itself for other folks till the issue gets closed. I assume you have to be developer to make changes to the change history. -ed From: [EMAIL PROTECTED] Subject: Re: modal window question - opening a modal window on page load Date: Sun, 9 Sep 2007 22:24:03 -0700 To: users@wicket.apache.org There is an open issue about this: http://issues.apache.org/jira/ browse/WICKET-12 Read the discussion for some background and possible solutions. I needed to do the same thing on a couple of pages. First, I tried using getWindowOpenJavascript() on the modal window (called via reflection as it's a private method) to get the needed JS, but I think I ran into a few issues which I've now forgotten (private 'shown' variable wasn't set?). What I ended up doing was to use JavaScript to call the onclick() method of a link that opens the modal window from my page's onload function. Since the modal window is a JavaScript construct anyway I don't think using JS for the auto-open behavior is weird. The following model ensures that a component is clicked only one time, when the page is initially loaded (probably a common use case). If you want to open the modal window on every page load, just check out the JavaScript and the basic concept. This is written for Wicket 1.2 but a similar approach should work for 1.3. public class ClickOnceOnLoadModel extends AbstractReadOnlyModel { private final Component component; private boolean clicked = false; public ClickOnceOnLoadModel(Component component) { this.component = component; } @Override public Object getObject(Component cmp) { if ( !this.clicked ) { this.clicked = true; return getClickJs(); } return null; } private String getClickJs() { StringBuilder sb = new StringBuilder( 64 ); sb.append( var e=document.getElementById(' ); sb.append( this.component.getMarkupId() ); sb.append( ');e.onclick(); ); return sb.toString(); } } You would use it like this: // Page constructor public MyPage() { getBodyContainer().addOnLoadModifier( new ClickOnceOnLoadModel( modalWindowOpeningLink ), null ); } This of course requires a link on your page that opens the same modal window you want to open automatically. If you really don't want such a link, you could always hide it with CSS. If there are more elegant solutions (and I'm sure there are), you'll probably hear about them soon... -Ryan On Sep 9, 2007, at 8:04 PM, Ed _ wrote: I want to bring up a modal window when I load a page, ie without clicking a link. I want to use it to prompt the user to enter some data on the home page before he can proceed. So somehow I have to enable the show function, how do I do that. I tried to do something as follows - FormPanel form = new FormPanel(modal.getContentId(), StoreBasePath, strId, title); form.setOutputMarkupId(true); modal.setContent(form); modal.setTitle(This is modal window with panel content.); modal.setCookieName(modalform); AjaxRequestTarget target = new AjaxRequestTarget(); modal.show(target); java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = ModalWindow, page = No Page, path = FormPanel:ModalWindow.ModalWindow]] at wicket.Component.getPage(Component.java:1037) at wicket.RequestCycle.urlFor(RequestCycle.java:655) at wicket.Component.urlFor(Component.java:2307) at wicket.behavior.AbstractAjaxBehavior.getCallbackUrl (AbstractAjaxBehavior.java:143) at wicket.ajax.AbstractDefaultAjaxBehavior.getCallbackScript (AbstractDefaultAjaxBehavior.java:131) is there a way to do this. thanks _ Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2
RE: wicket extension examples site down?
But the extension examples - e.g. the modal window examples are not hosted there. I did try to extrapolate from an earlier email referring to example for 1.3 - but did not find the extention examples on either of those pages. -Ed Date: Mon, 10 Sep 2007 00:32:52 +0200 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: wicket extension examples site down? hi ed, as an alternative, you can find the examples for wicket at the following locations: http://wicketstuff.org/wicket12/ - Wicket 1.2.x http://wicketstuff.org/wicket13/ - Wicket 1.3.0 gerolf On 9/10/07, Ed _ [EMAIL PROTECTED] wrote: Hi, Trying to access the wicket extension examples - looks like the site is down. http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.modal.ModalWindowPage Is this part of the move to apache? It may be in transition - Just wanted to bring to notice of the group just in case this got left out. It was up earlier in the day. Ed _ Kick back and relax with hot games and cool activities at the Messenger Café. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline _ More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907