Re: [Wicket-user] Ajax autocompletion troubles
Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of javascript are unfortunately not being executed. Note that the id's are empty and there this weird src_ attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my JavaScript is lacking way too much for this advanced stuff. Any help is greatly appreciated. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated
[Wicket-user] little changes in markup - only via component inheritance?
Greetings! I't a beginner's question I think, but I didn't find any answers on the site. So I use AjaxFallbackDefaultDataTable component from wicket-extensions, it's a cool thing but I want to make little changes in markup - for example to make values of some columns centered while others right aligned etc. How can I do it? I doubt I should write my own AjaxFallbackDefaultDataTable class, which creates it's own toolbars (which inherit from AjaxFallbackDefaultDataTable and AjaxFallbackHeadersToolbar). Is there an easier way? -- Andrew Klochkov - 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] Problem of using border
thanks and in fact I just get confuse with the hierarchy of how should I initalized the component. At first I try to add that component at webpage level so it fail.Now it just solve after I press that component to the border component and add it at the border level then it work fine. On 11/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: Hi, i dont know what you want to press - however, if you want to get a list containing users with name, email and a link to edit you need first to iterate over the wicket:id=users tag using a ListView - example can be found here: http://wicket.sourceforge.net/ExampleGuestBook.html (there the comments are iterated over and over) Best Regards, Korbinian PS: your HTML code is invalid, as uppercase letters in tags are not allowed! (going on from XHTML 1.0, they were also deprecated in HTML from 3.01 on) -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Carfield Yim Gesendet: Mittwoch, 1. November 2006 08:11 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Problem of using border Say I have a page that using a border component like this: div wicket:id = main_border table THEAD TR TH/TH THName/TH THEmail/TH /TR /THEAD TBODY span wicket:id = users TR TDa href=# wicket:id=user_idEdit User/a/TD TDspan wicket:id=user_name/span/TD TDspan wicket:id=user_email/span/TD /TR /span /TBODY /table /div How can I press span wicket:id = users to the border? In fact this may be more than one component I like to press... Can I just press the rendered result to HTML to the border? -- --- 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=263057; dat=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 - 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] getVariation()
How about this one?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) {variant = p.getString(var);System.out.println(constructor called. The variant is now + variant);}public String getVariation() { System.out.println(getVariation() called! The value returned is + variant);return variant;}} When I request the page (three times), It prints:getVariation() called! The value returned is nullconstructor called. The variant is now earthgetVariation() called! The value returned is null constructor called. The variant is now earthgetVariation() called! The value returned is nullconstructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the varparameter returns not null. If that is the case, your code shouldwork.EelcoOn 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); } public String getVariation() { return variant; } } getVariation() always return null as if 'variant' never get set in the constructor. - 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 easierDownload 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.nethttps://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] popups
Thaks a lot,Igor!it works very nice ;)one thing: the way it works for metarget.addJavascript(window.opener.location=' + urlFor(opener.getPageMap(), MyPage.class , null) + ');and I came upon a funny thing:it's not enough to just close the popup window by _javascript_: target.addJavascript(window.close(););I need to refresh it so it will actually close target.addJavascript(window.location.reload(true););I am on Ubuntu 6.06,but i think its a Firefox thingAnyway,thanks again.AlexOn 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 11/1/06, Alex Parvulescu [EMAIL PROTECTED] wrote: Hello,I have a popup with a form.A simple ok/cancel thing.are you using popupsettings? make sure you are doing new PopupSetings(PageMap.forName(mypopuppagemap)) so the popup page doesnt expire any pages out of the browser window that opened the popup. i have been doing some _javascript_ tricks,but the redirect is giving me some headaches. you will have to be a bit more specific :) (this is for closing the current popup window,and refreshing the 'parent' window,so i can actually see what's been changed in the popup-form.)add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.opener.location.reload (true);); target.addJavascript(window.close();); target.addJavascript(window.location.reload(true););} }); Any ideas?what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup. class MyPopup extends Page { MyPopup(final Page opener) {...add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.close(););// remove the popup from the pagemap since we are closing the window anywaysgetPage().getPageMap().remove();// go to the new page in the parent window // the destination page must be created in the opener's pagemapPage destination=new DestinationPage(opener.getPageMap());target.addJavascript(window.location='+urlFor(destination)+'); } }); maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'. it depends on how thick a wrapper we want to make wicket around http. i think in this area it should be as thin as possible, like it is now, because this is getting into shady waters. there are a lot of things you might want to do and we are not really in the business of generating tons of different _javascript_. i think it is easy enough to do what you want right now without the framework having to get involved. you were almost on the right track, just have to remember that you have to deal with different pagemaps when popping up windows. -igorI am using wicket 1.2.1 Thanks,Alex -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.nethttps://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.nethttps://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 i18n
A new question about wicket:message tag, can I specific some standard postprocessing? I like to do that because the message may or may be use in Javascript. In some language there may be contain single quote that the original message don't have, which, break the javascript string. In order to prevent this I would like to run the javascript escape function for all string come from resource bundle. Can I specific some postprocessing of this tag? Or I need to create a custom tag base on wicket:message tag? How can I do that? - 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] little changes in markup - only via componentinheritance?
I haven't used AjaxDefaultDataTable though I have used other Similar components. Why not use css ids and attribute modifiers to set the ids of the columns or rows you want. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Klochkov Sent: Thursday, November 02, 2006 2:42 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] little changes in markup - only via componentinheritance? Greetings! I't a beginner's question I think, but I didn't find any answers on the site. So I use AjaxFallbackDefaultDataTable component from wicket-extensions, it's a cool thing but I want to make little changes in markup - for example to make values of some columns centered while others right aligned etc. How can I do it? I doubt I should write my own AjaxFallbackDefaultDataTable class, which creates it's own toolbars (which inherit from AjaxFallbackDefaultDataTable and AjaxFallbackHeadersToolbar). Is there an easier way? -- Andrew Klochkov - 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] session timeout listener,part 2
Hello,I decided to take Eelco's advice,and i added the Map.It works fine now,my only concern is with the number of users increasing the size of this Map.But I think its a small price to payfor this feature. One thing though: I made a minor change to this idea: i actually added the session in the map during the login process,storing only the username,not the entire Session.Thanks guys!Alex On 11/1/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 2. an extension of HttpSessionStore : class MySessionStore extends HttpSessionStore { @Override protected void onUnbind(String sessionId) { super.onUnbind(sessionId); System.out.println(session: + Session.get()); System.out.println(unbind sid + sessionId); } } -no good ,i get an error - this is called after the session is detatched,or killed,or whateverThis can work, but you need to do some custom bookkeeping. For instance:private MapString, Session sessions = new ConcurrentHashMapString, Session protected void onBind(Request request, Session newSession) {sessions.put(newSession.getId(), newSession);}protected void onUnbind(String sessionId) {Session session = sessions.remove (sessionId);...}or any alternative implementation that works for you. It is a bitinconvenient that Session.get is not available anymore in the unbindmethod. But I can't think of something that works better at this moment, due to how session binding listeners work (they are called inthe middle of the destruction process).Eelco-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 easierDownload 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.nethttps://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
[Wicket-user] Programmatically/Dynamically change html
Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - 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] Ajax autocompletion troubles
Hi Matej, You can download a quickstart here: https://omelet.zapto.org/ajaxtrouble.zip (3Mb). Regards, Erik. Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of javascript are unfortunately not being executed. Note that the id's are empty and there this weird src_ attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my JavaScript is lacking way too much for this advanced stuff. Any help is greatly appreciated. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Using Tomcat but need to do more? Need to support web services,
Re: [Wicket-user] Programmatically/Dynamically change html
font color=red Red /font Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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] Programmatically/Dynamically change html
Oops, too quick. font wicket:id=colorcomp Red /font Label l = new Label(colorcomp, Blue) add(l); l.add(new SimpleAttribyteModifier(color, blue)); Erik. Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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] Programmatically/Dynamically change html
Well I guess the main challenge lies here : span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to change this to: a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Oops, too quick. font wicket:id=colorcomp Red /font Label l = new Label(colorcomp, Blue) add(l); l.add(new SimpleAttribyteModifier(color, blue)); Erik. Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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 - 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] getVariation()
This is because the commomInit() method that is called in the constructor of WebPagealready also gets the markup to test for the body tag .But the strange thing is that this markup is not kept on to. So when rendered it should ask it again and then the variation is encountered. I dont know why that doesn't happen.The problem still is that then the body thing is wrong (if suddenly the markup is swapped...)johan On 11/2/06, Otan [EMAIL PROTECTED] wrote: How about this one?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) { variant = p.getString(var);System.out.println(constructor called. The variant is now + variant);}public String getVariation() { System.out.println(getVariation() called! The value returned is + variant);return variant;}} When I request the page (three times), It prints:getVariation() called! The value returned is nullconstructor called. The variant is now earthgetVariation() called! The value returned is null constructor called. The variant is now earthgetVariation() called! The value returned is nullconstructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the varparameter returns not null. If that is the case, your code shouldwork.EelcoOn 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); } public String getVariation() { return variant; } } getVariation() always return null as if 'variant' never get set in the constructor. - 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 easierDownload 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.nethttps://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.nethttps://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] Programmatically/Dynamically change html
Ah, I see. I think you'll have to create a panel (or a fragment) for each variation and then add the appropriate panel (fragment). Does that make sense? Erik. Shams Mahmood schreef: Well I guess the main challenge lies here : span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to change this to: a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Oops, too quick. font wicket:id=colorcomp Red /font Label l = new Label(colorcomp, Blue) add(l); l.add(new SimpleAttribyteModifier(color, blue)); Erik. Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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] Programmatically/Dynamically change html
I actually wanted to change the html source dynamically Rather than writing different panel which would limit all my variations :) Shams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:24 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Ah, I see. I think you'll have to create a panel (or a fragment) for each variation and then add the appropriate panel (fragment). Does that make sense? Erik. Shams Mahmood schreef: Well I guess the main challenge lies here : span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to change this to: a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Oops, too quick. font wicket:id=colorcomp Red /font Label l = new Label(colorcomp, Blue) add(l); l.add(new SimpleAttribyteModifier(color, blue)); Erik. Shams Mahmood schreef: Say I have something like this : font color=red Red /font span wicket:id=Label[Wicket Contents]/span a wicket:id=wicketLink Click here /a I want to chane this to: font color=blue Blue /font a wicket:id=wicketLink Click here /a span wicket:id=wicketVariable[Wicket Contents]/span Dynamically. Anyone have idea how this can be done programmatically. I guess it has something to do with updating the markup cache of the application. But I am not sure how I can update it. Thanx in advance. Shams - 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 -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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 - 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] Programmatically/Dynamically change html
Hmm. I remember that more people asked for generated templates. Don't remember an answer though. Perhaps you can investigate the class WebMarkupContainerWithAssociatedMarkup or its super classes to see how Wicket loads the templates. Good luck, Erik. Shams Mahmood schreef: I actually wanted to change the html source dynamically Rather than writing different panel which would limit all my variations :) Shams -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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] Programmatically/Dynamically change html
Thanx I check it out and post here if I get any ideas. Shams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:43 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Hmm. I remember that more people asked for generated templates. Don't remember an answer though. Perhaps you can investigate the class WebMarkupContainerWithAssociatedMarkup or its super classes to see how Wicket loads the templates. Good luck, Erik. Shams Mahmood schreef: I actually wanted to change the html source dynamically Rather than writing different panel which would limit all my variations :) Shams -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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 - 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] session timeout listener,part 2
what you also can do is make your own wicket session object and implement:HttpSessionBindingListenerthen you will get public void valueUnbound(HttpSessionBindingEvent event); callon your instance of your session. Then you can get the username of the wicket session. and then deregister that when Application.get(name) or something like that.johanOn 11/2/06, Alex Parvulescu [EMAIL PROTECTED] wrote:Hello,I decided to take Eelco's advice,and i added the Map. It works fine now,my only concern is with the number of users increasing the size of this Map.But I think its a small price to payfor this feature. One thing though: I made a minor change to this idea: i actually added the session in the map during the login process,storing only the username,not the entire Session.Thanks guys! Alex On 11/1/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 2. an extension of HttpSessionStore : class MySessionStore extends HttpSessionStore { @Override protected void onUnbind(String sessionId) { super.onUnbind(sessionId); System.out.println(session: + Session.get()); System.out.println(unbind sid + sessionId); } } -no good ,i get an error - this is called after the session is detatched,or killed,or whateverThis can work, but you need to do some custom bookkeeping. For instance:private MapString, Session sessions = new ConcurrentHashMapString, Session protected void onBind(Request request, Session newSession) {sessions.put(newSession.getId(), newSession);}protected void onUnbind(String sessionId) {Session session = sessions.remove (sessionId);...}or any alternative implementation that works for you. It is a bitinconvenient that Session.get is not available anymore in the unbindmethod. But I can't think of something that works better at this moment, due to how session binding listeners work (they are called inthe middle of the destruction process).Eelco-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 easierDownload 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.nethttps://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.nethttps://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] Customizing Paging Navigation
Could you be more specific as to what you want to customize? Martijn On 11/1/06, Scott Sauyet [EMAIL PROTECTED] wrote: Is there a simple example around of how PagingNavigation can be customized? I can't figure out what I'm doing wrong. I *think* I'm following the example in the Javadocs, but my markup never matches my code. If anyone has a live example floating around that I could examine, I would appreciate it. Thanks, -- Scott - 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 -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - 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] Programmatically/Dynamically change html
The question is how flexible you want to be. If the Components such as Label, Link etc stay the same and only the html markup changes, than you might use Component.setVariation(). It is similar to Locale and Style but it is a per component setting. The markup file name than become myComponent_myVariation.html. Juergen On 11/2/06, Shams Mahmood [EMAIL PROTECTED] wrote: Thanx I check it out and post here if I get any ideas. Shams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:43 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Hmm. I remember that more people asked for generated templates. Don't remember an answer though. Perhaps you can investigate the class WebMarkupContainerWithAssociatedMarkup or its super classes to see how Wicket loads the templates. Good luck, Erik. Shams Mahmood schreef: I actually wanted to change the html source dynamically Rather than writing different panel which would limit all my variations :) Shams -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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 - 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] Customizing Paging Navigation
Is there a simple example around of how PagingNavigation can be customized? Could you be more specific as to what you want to customize? The PagingNavigation Javadocs say that I can give my own navigation markup and code by overwriting poplulateItem(ListItem). It seems that my own markup is being read, but that populateItem is not being called. I've tried with an anonymous class, with an inner class, and with a stand-alone class. I'm clearly doing something wrong, but I just can't figure out where. What I really want to do is change from plain numbered links to links that look more like: Ab - Ce | Ci - Fa | Fa - Gu | Ha - Mc | Me - Pi | ... Or I might want to turn the navigation bar into a dropdown list that lists exactly the range of items on each page, e.g. select ... option value=0Abelson - Cestanto/option option value=1Cirilia - Fasson/option ... /select I'm not really sure. I just know that the client really doesn't like the plain numbered pages. I'm betting that this is not particularly hard. But something I'm doing just isn't working properly. Rather than asking people what I was doing wrong, I was hoping to look at an example where it's done right. But if there aren't any great examples in the wild, I'll try to post a minimal version of what I'm trying. The thing is, I can't even get it to do what PagingNavigation Javadocs describe quite simply and get 1 2 3 4 turned into first | prev | page 1 | page 2 | page 3 | page 4 | next | last So clearly I'm not ready to try my own customization. Thanks for any advice you folks can offer. -- Scott - 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] Programmatically/Dynamically change html
The ultimate breakout is custom markup reloading, of which we have an example in wicket-examples/wicket.examples.customresourceloading. Use is only recommended in 2.0, though you should consider just sticking with panels as that is how Wicket was set up. Eelco On 11/2/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: The question is how flexible you want to be. If the Components such as Label, Link etc stay the same and only the html markup changes, than you might use Component.setVariation(). It is similar to Locale and Style but it is a per component setting. The markup file name than become myComponent_myVariation.html. Juergen On 11/2/06, Shams Mahmood [EMAIL PROTECTED] wrote: Thanx I check it out and post here if I get any ideas. Shams -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Thursday, November 02, 2006 4:43 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Programmatically/Dynamically change html Hmm. I remember that more people asked for generated templates. Don't remember an answer though. Perhaps you can investigate the class WebMarkupContainerWithAssociatedMarkup or its super classes to see how Wicket loads the templates. Good luck, Erik. Shams Mahmood schreef: I actually wanted to change the html source dynamically Rather than writing different panel which would limit all my variations :) Shams -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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 - 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 - 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] session timeout listener,part 2
Yeah, that's a good one. Only works with stores that at least put the session object in the httpsession, but that's the default anyway. Eelco On 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote: what you also can do is make your own wicket session object and implement: HttpSessionBindingListener then you will get public void valueUnbound(HttpSessionBindingEvent event); call on your instance of your session. Then you can get the username of the wicket session. and then deregister that when Application.get(name) or something like that. johan On 11/2/06, Alex Parvulescu [EMAIL PROTECTED] wrote: Hello, I decided to take Eelco's advice,and i added the Map. It works fine now,my only concern is with the number of users increasing the size of this Map.But I think its a small price to pay for this feature. One thing though: I made a minor change to this idea: i actually added the session in the map during the login process, storing only the username,not the entire Session. Thanks guys! Alex On 11/1/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 2. an extension of HttpSessionStore : class MySessionStore extends HttpSessionStore { @Override protected void onUnbind(String sessionId) { super.onUnbind(sessionId); System.out.println(session: + Session.get()); System.out.println(unbind sid + sessionId); } } -no good ,i get an error - this is called after the session is detatched,or killed,or whatever This can work, but you need to do some custom bookkeeping. For instance: private MapString, Session sessions = new ConcurrentHashMapString, Session protected void onBind(Request request, Session newSession) { sessions.put(newSession.getId(), newSession); } protected void onUnbind(String sessionId) { Session session = sessions.remove (sessionId); ... } or any alternative implementation that works for you. It is a bit inconvenient that Session.get is not available anymore in the unbind method. But I can't think of something that works better at this moment, due to how session binding listeners work (they are called in the middle of the destruction process). Eelco - 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 - 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] popups
yeah, if you take a look at PopupCloseLink it does exactly that, and remove the page from the pagemap for you. so you might want to subclass that instead.-igorOn 11/2/06, Alex Parvulescu [EMAIL PROTECTED] wrote: Thaks a lot,Igor!it works very nice ;)one thing: the way it works for metarget.addJavascript(window.opener.location=' + urlFor(opener.getPageMap(), MyPage.class , null) + ');and I came upon a funny thing:it's not enough to just close the popup window by _javascript_: target.addJavascript(window.close(););I need to refresh it so it will actually close target.addJavascript(window.location.reload(true););I am on Ubuntu 6.06,but i think its a Firefox thingAnyway,thanks again.Alex On 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 11/1/06, Alex Parvulescu [EMAIL PROTECTED] wrote: Hello,I have a popup with a form.A simple ok/cancel thing.are you using popupsettings? make sure you are doing new PopupSetings(PageMap.forName(mypopuppagemap)) so the popup page doesnt expire any pages out of the browser window that opened the popup. i have been doing some _javascript_ tricks,but the redirect is giving me some headaches. you will have to be a bit more specific :) (this is for closing the current popup window,and refreshing the 'parent' window,so i can actually see what's been changed in the popup-form.)add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.opener.location.reload (true);); target.addJavascript(window.close();); target.addJavascript(window.location.reload(true););} }); Any ideas?what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup. class MyPopup extends Page { MyPopup(final Page opener) {...add(new AjaxSubmitButton(submit, this) {protected void onSubmit(AjaxRequestTarget target, Form form) { target.addJavascript(window.close(););// remove the popup from the pagemap since we are closing the window anywaysgetPage().getPageMap().remove();// go to the new page in the parent window // the destination page must be created in the opener's pagemapPage destination=new DestinationPage(opener.getPageMap());target.addJavascript(window.location='+urlFor(destination)+'); } }); maybe some changes in wicket so the popups would be controlled better,as i see it now,i have no controll over the parent page once the popup is closed,or 'closing'. it depends on how thick a wrapper we want to make wicket around http. i think in this area it should be as thin as possible, like it is now, because this is getting into shady waters. there are a lot of things you might want to do and we are not really in the business of generating tons of different _javascript_. i think it is easy enough to do what you want right now without the framework having to get involved. you were almost on the right track, just have to remember that you have to deal with different pagemaps when popping up windows. -igorI am using wicket 1.2.1 Thanks,Alex -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.nethttps://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.nethttps://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.nethttps://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
Re: [Wicket-user] Question about i18n
you need to create your own tagsee WicketMessageResolver-igorOn 11/2/06, Carfield Yim [EMAIL PROTECTED] wrote:A new question about wicket:message tag, can I specific some standard postprocessing?I like to do that because the message may or may be use in _javascript_.In some language there may be contain single quote that the originalmessage don't have, which, break the _javascript_ string. In order to prevent this I would like to run the _javascript_ escapefunction for all string come from resource bundle. Can I specific somepostprocessing of this tag? Or I need to create a custom tag base on wicket:message tag? How can I do that?-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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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] getVariation()
Yuck. As a dirty workaround you could create a custom request cycle that overrides onBeginRequest() { style = getRequest().getParameter(style); } and then: getVariation() { return MyRequestCycle.get().getStyle(); } Haven't tested it, but that should work. Eelco On 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote: This is because the commomInit() method that is called in the constructor of WebPage already also gets the markup to test for the body tag . But the strange thing is that this markup is not kept on to. So when rendered it should ask it again and then the variation is encountered. I dont know why that doesn't happen. The problem still is that then the body thing is wrong (if suddenly the markup is swapped...) johan On 11/2/06, Otan [EMAIL PROTECTED] wrote: How about this one? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); System.out.println(constructor called. The variant is now + variant); } public String getVariation() { System.out.println(getVariation() called! The value returned is + variant); return variant; } } When I request the page (three times), It prints: getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the var parameter returns not null. If that is the case, your code should work. Eelco On 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); } public String getVariation() { return variant; } } getVariation() always return null as if 'variant' never get set in the constructor. - 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 - 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 - 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
[Wicket-user] Tabbed Panel
I have a tabbed panel that extends to two lines, the upper row of tabs and the lower row. When a tab from the upper row is selected, all the tabs in the lower row shift to the right of the selected tab in the upper row. Is this the desired behavior? Shouldn't the tabs just stay in place when a tab is selected? On another note, is the sliding doors method of displaying tabs going to be implemented in Wicket? Thanks, -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - 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] Tabbed Panel
On 11/2/06, Michael Welter [EMAIL PROTECTED] wrote: I have a tabbed panel that extends to two lines, the upper row of tabsand the lower row.When a tab from the upper row is selected, all the tabs in the lower rowshift to the right of the selected tab in the upper row. Is this the desired behavior?Shouldn't the tabs just stay in placewhen a tab is selected?it is all css, so you might have to tweak that to the desired effect. On another note, is the sliding doors method of displaying tabs goingto be implemented in Wicket?doesnt tabbedpanel already use that?-igor Thanks,--Michael WelterTelecom Matters Corp.Denver, Colorado US+1.303.414.4980[EMAIL PROTECTED]www.TelecomMatters.net -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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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
[Wicket-user] Attribute of the http request
I all, I got a pretty simple question. I got an attribute in the HttpServletRequest that is accessed this way : RequestCycle rc = getPage().getRequestCycle ();WebRequest req = (WebRequest)rc.getRequest (); Object o = req.getHttpServletRequest ().getAttribute (attribute);The documentation of wicket say to not use, as possible, this way. The problem is that this attribute is set by a servlet Filter, not by another Wicket page. So it is really in the request and I can't do anything about it. I have found that there is a getAttribute method in the session. Does it do the same thing as what I want?Marc - 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] Attribute of the http request
no, getattribute on session retrieves session attributes not request attributes, i guess you are stuck doing it how you are doing now-igorOn 11/2/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I all, I got a pretty simple question. I got an attribute in the HttpServletRequest that is accessed this way : RequestCycle rc = getPage().getRequestCycle ();WebRequest req = (WebRequest)rc.getRequest (); Object o = req.getHttpServletRequest ().getAttribute (attribute);The documentation of wicket say to not use, as possible, this way. The problem is that this attribute is set by a servlet Filter, not by another Wicket page. So it is really in the request and I can't do anything about it. I have found that there is a getAttribute method in the session. Does it do the same thing as what I want?Marc -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.nethttps://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] Attribute of the http request
thanks!On 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, getattribute on session retrieves session attributes not request attributes, i guess you are stuck doing it how you are doing now-igor On 11/2/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I all, I got a pretty simple question. I got an attribute in the HttpServletRequest that is accessed this way : RequestCycle rc = getPage().getRequestCycle ();WebRequest req = (WebRequest)rc.getRequest (); Object o = req.getHttpServletRequest ().getAttribute (attribute);The documentation of wicket say to not use, as possible, this way. The problem is that this attribute is set by a servlet Filter, not by another Wicket page. So it is really in the request and I can't do anything about it. I have found that there is a getAttribute method in the session. Does it do the same thing as what I want?Marc -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.nethttps://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.nethttps://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] Tabbed Panel
Igor Vaynberg wrote: On 11/2/06, *Michael Welter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: it is all css, so you might have to tweak that to the desired effect. On another note, is the sliding doors method of displaying tabs going to be implemented in Wicket? doesnt tabbedpanel already use that? You answered yourself here: it is all css :) If you want to use sliding doors, it is your own responsibility to provide the right css. Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.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] Tabbed Panel
On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: doesnt tabbedpanel already use that?You answered yourself here: it is all css :)If you want to use sliding doors, it is your own responsibility toprovide the right css.not entirely, sliding doors does require an ul list and certain divs as far as i remember, but i thought the panel and examples in component reference do use sliding doors -igor Erik.--Erik van Oosten http://day-to-day-stuff.blogspot.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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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] Tabbed Panel
Yep, that is correct. Luckily that is all in place so you could say that TabbedPanel is Sliding-Doors-ready. I only reacted to the phrase 'TabbedPanel uses sliding doors' which is IMHO not correct. Erik. Igor Vaynberg schreef: On 11/2/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: doesnt tabbedpanel already use that? You answered yourself here: it is all css :) If you want to use sliding doors, it is your own responsibility to provide the right css. not entirely, sliding doors does require an ul list and certain divs as far as i remember, but i thought the panel and examples in component reference do use sliding doors -igor -- Erik van Oosten http://day-to-day-stuff.blogspot.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] Tabbed Panel
semantics semantics :)-igorOn 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: Yep, that is correct.Luckily that is all in place so you could say that TabbedPanel is Sliding-Doors-ready.I only reacted to the phrase 'TabbedPanel uses sliding doors' which isIMHO not correct. Erik.Igor Vaynberg schreef: On 11/2/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: doesnt tabbedpanel already use that? You answered yourself here: it is all css :) If you want to use sliding doors, it is your own responsibility to provide the right css. not entirely, sliding doors does require an ul list and certain divs as far as i remember, but i thought the panel and examples in component reference do use sliding doors -igor--Erik van Oostenhttp://day-to-day-stuff.blogspot.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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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
[Wicket-user] more on chaches, detachment
I think we can all make strong cases for situations in which detaching the ID makes sense, and depending on the needs of the app, also situations where just serializing the POJO makes sense. Shades will work with either case. What I would like, is the freedom to offer the deployer of the Phonebook, the opportunity to choose the strategy. Could we have some sort of configuration parameter that controlled the detachment strategy of DetachableContactModel? Some property like serializeOnDetach=false This would give the deployer the freedom to make the space vs. time decision. -geoff Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates (http://voice.yahoo.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] more on chaches, detachment
feel free to refactor, but i would do that in a different branch. the purpose of the phonebook is to demonstrate wicket+spring+database integration with as little overhead as possible.-igor On 11/2/06, Geoff hendrey [EMAIL PROTECTED] wrote: I think we can all make strong cases for situations in which detaching the ID makes sense, and depending on the needs of the app, also situations where just serializing the POJO makes sense. Shades will work with either case. What I would like, is the freedom to offer the deployer of the Phonebook, the opportunity to choose the strategy. Could we have some sort of configuration parameter that controlled the detachment strategy of DetachableContactModel? Some property likeserializeOnDetach=falseThis would give the deployer the freedom to make the space vs. time decision.-geoff Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates(http://voice.yahoo.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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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] more on chaches, detachment
i don't like this to much.if you don't want detaching then use another model.. (and not a DetachableModel that doesn't detach)johanOn 11/2/06, Geoff hendrey [EMAIL PROTECTED] wrote: I think we can all make strong cases for situations in which detaching the ID makes sense, and depending on the needs of the app, also situations where just serializing the POJO makes sense. Shades will work with either case. What I would like, is the freedom to offer the deployer of the Phonebook, the opportunity to choose the strategy. Could we have some sort of configuration parameter that controlled the detachment strategy of DetachableContactModel? Some property likeserializeOnDetach=falseThis would give the deployer the freedom to make the space vs. time decision.-geoff Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates(http://voice.yahoo.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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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] Ajax autocompletion troubles
This looks exactly like the problem I was having (the cause of which is, I believe WICKET-7).Check out this thread: http://www.nabble.com/Wicket-2.0%3A-Adding-a-component-via-ajax-that-contributes-_javascript_-%28like-AutoCompleteTextField%29-doesn%27t-work-correctly-in-Firefox-tf2445250.html#a6824693 On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: Hi Matej,You can download a quickstart here:https://omelet.zapto.org/ajaxtrouble.zip (3Mb).Regards,Erik.Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of _javascript_ are unfortunately not being executed. Note that the id's are empty and there this weird src_ attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my _javascript_ is lacking way too much for this advanced
Re: [Wicket-user] more on chaches, detachment
if its a model specific to the phonebook who cares?-igorOn 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote:i don't like this to much.if you don't want detaching then use another model.. (and not a DetachableModel that doesn't detach) johanOn 11/2/06, Geoff hendrey [EMAIL PROTECTED] wrote: I think we can all make strong cases for situations in which detaching the ID makes sense, and depending on the needs of the app, also situations where just serializing the POJO makes sense. Shades will work with either case. What I would like, is the freedom to offer the deployer of the Phonebook, the opportunity to choose the strategy. Could we have some sort of configuration parameter that controlled the detachment strategy of DetachableContactModel? Some property likeserializeOnDetach=falseThis would give the deployer the freedom to make the space vs. time decision.-geoff Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates(http://voice.yahoo.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 easierDownload 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 listWicket-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.nethttps://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
[Wicket-user] Set Main Component for Inherited Classes?
If I have a BasePage class that has a Component that wraps the page and the wicket:child/ tag, is there a method I can implement that will bind any inherited pages to this object instead of the page object? Below demonstrates my problem in the extended pages. BasePage { ... WebMarkupContainer body = new ... add(body); ... private void myAdd(Component c) { body.add(c); }}ExamplePage extends BasePage { ... add(myComponent); -- This really needs to be body.add(myComponent); ...}Is there a way where I can make the add() method for the ExamplePage attach components to the body container instead of the page container? Can I do this without implementing a custom method on the BasePage such as myAdd? - 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] Set Main Component for Inherited Classes?
WebMarkupContainer body = new WebMarkupContainer(...) { boolean isTransparentResolver() { return true; }}-igorOn 11/2/06, Jonathan Sharp [EMAIL PROTECTED] wrote:If I have a BasePage class that has a Component that wraps the page and the wicket:child/ tag, is there a method I can implement that will bind any inherited pages to this object instead of the page object? Below demonstrates my problem in the extended pages. BasePage { ... WebMarkupContainer body = new ... add(body); ... private void myAdd(Component c) { body.add(c); }}ExamplePage extends BasePage { ... add(myComponent); -- This really needs to be body.add(myComponent); ...}Is there a way where I can make the add() method for the ExamplePage attach components to the body container instead of the page container? Can I do this without implementing a custom method on the BasePage such as myAdd? -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.nethttps://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] Ajax autocompletion troubles
Thanks for the testcase. Can you please check if the current svn (1.x) solves your problem? (It solved the testcase). -Matej Erik van Oosten wrote: Hi Matej, You can download a quickstart here: https://omelet.zapto.org/ajaxtrouble.zip (3Mb). Regards, Erik. Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of javascript are unfortunately not being executed. Note that the id's are empty and there this weird src_ attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my JavaScript is lacking way too much for this advanced stuff. Any help is greatly appreciated. Regards, Erik.
Re: [Wicket-user] Ajax autocompletion troubles
oh, and don't forget to evict the javascript from browser cache ;-) Matej Knopp wrote: Thanks for the testcase. Can you please check if the current svn (1.x) solves your problem? (It solved the testcase). -Matej Erik van Oosten wrote: Hi Matej, You can download a quickstart here: https://omelet.zapto.org/ajaxtrouble.zip (3Mb). Regards, Erik. Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//script These pieces of javascript are unfortunately not being executed. Note that the id's are empty and there this weird src_ attribute. I am sure how FireFox treats this. Also I wonder why the scripts are so carefully commented. I guess that every browser that supports Ajax will not need these comments. I tried to debug the load phase with FireBug. Unfortunately my JavaScript is lacking way too much for this advanced stuff. Any
Re: [Wicket-user] Ajax autocompletion troubles
Is that problem still present? Could you please check current svn too? -Matej Caleb Land wrote: This looks exactly like the problem I was having (the cause of which is, I believe WICKET-7). Check out this thread: http://www.nabble.com/Wicket-2.0%3A-Adding-a-component-via-ajax-that-contributes-javascript-%28like-AutoCompleteTextField%29-doesn%27t-work-correctly-in-Firefox-tf2445250.html#a6824693 http://www.nabble.com/Wicket-2.0%253A-Adding-a-component-via-ajax-that-contributes-javascript-%2528like-AutoCompleteTextField%2529-doesn%2527t-work-correctly-in-Firefox-tf2445250.html#a6824693 On 11/2/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Matej, You can download a quickstart here: https://omelet.zapto.org/ajaxtrouble.zip (3Mb). Regards, Erik. Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new
[Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget
What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim - 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] AjaxTimerBehavior on Components added to AjaxRequestTarget
best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered ()-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim -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.nethttps://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] Ajax autocompletion troubles
On 11/2/06, Matej Knopp [EMAIL PROTECTED] wrote: Is that problem still present? Could you please check current svn too?It appears to work on my end with Wicket 2. Thanks! -MatejCaleb Land wrote: This looks exactly like the problem I was having (the cause of which is, I believe WICKET-7). Check out this thread: http://www.nabble.com/Wicket-2.0%3A-Adding-a-component-via-ajax-that-contributes-_javascript_-%28like-AutoCompleteTextField%29-doesn%27t-work-correctly-in-Firefox-tf2445250.html#a6824693 http://www.nabble.com/Wicket-2.0%253A-Adding-a-component-via-ajax-that-contributes-_javascript_-%2528like-AutoCompleteTextField%2529-doesn%2527t-work-correctly-in-Firefox-tf2445250.html#a6824693 On 11/2/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Matej, You can download a quickstart here: https://omelet.zapto.org/ajaxtrouble.zip (3Mb). Regards, Erik. Matej Knopp schreef: Can you please provide a test case? Thanks. -Matej Erik van Oosten wrote: Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still problems with autocompletion, both in IE and FireFox. In my setup I have a AJAX-loaded panel that contains form fields with autocompletion. --IE 6.0-- In IE the autocompletion works, but each autocompletion handlers is instantiated twice. When I look at the source (I use the Full source plugin), I see the autocompletion js included inline in the page. Below that you see the following: SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=null src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT SCRIPT id=undefined src_=undefined!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//SCRIPT --FireFox 2.0-- In FireFox the autocompletion only works after a submit of the form. After the first load of the panel (with Ajax) I also see autocompletion js inline in the page header. Below that you see: script src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true'); /*--]]*//scriptscript src_=undefined id=!--/*--![CDATA[/*!--*/ new Wicket.AutoComplete ('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true');
Re: [Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget
Would it work like this:* in onRendered, check if the RequestTarget is an AjaxRequestTarget, and appendJavascript* remove appendJavascript from respondthanks,jimOn 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote: best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered ()-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim -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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Jim McLaughlin Director, Software EngineeringStonewater Control Systems http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994 - 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] AjaxTimerBehavior on Components added to AjaxRequestTarget
i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered()instead of attaching the script to the onloadmodifier output it straight into the response between script tags -igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: Would it work like this:* in onRendered, check if the RequestTarget is an AjaxRequestTarget, and appendJavascript* remove appendJavascript from respondthanks,jim On 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote: best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered ()-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim -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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Jim McLaughlin Director, Software EngineeringStonewater Control Systems http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994 -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.nethttps://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] AjaxTimerBehavior on Components added to AjaxRequestTarget
sweet. works great on my side. I'll write up a couple of tests and submit a patch.thanks,jimOn 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered() instead of attaching the script to the onloadmodifier output it straight into the response between script tags -igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: Would it work like this:* in onRendered, check if the RequestTarget is an AjaxRequestTarget, and appendJavascript* remove appendJavascript from respondthanks,jim On 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote: best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered ()-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim -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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Jim McLaughlin Director, Software EngineeringStonewater Control Systems http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994 -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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Jim McLaughlin Director, Software EngineeringStonewater Control Systems http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994 - 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
[Wicket-user] Wicket performance in high availability applications?
Hi Everybody, I am currently evaluating several view frameworks for a large enterprise application that is yet to be built. One of the primary concerns of this application is response time. I have heard success stories about Tapestry being deployed successfully in a similar environment but have not been able to find similar references for Wicket (beyond http://cwiki.apache.org/WICKET/#Index-SitesusingWicket). I have a few questions: 1) Does anyone know of Wicket being used on a high traffic website? 2) What are some of the challenges related to scaling a Wicket application (beyond the general servlet recommendations of being stateless as long as possible, keeping the state small to facilitate clustering, etc)? 3) Tapestry uses page and component pooling to help achieve higher throughput... It doesn't appear like Wicket can employ such a technique due to the framework allowing direct page and component instantiation. Are pages and components so light weight pooling them is not worth the disadvantages of not being able to pass parameters via constructor or is this a known trade off? Thanks for any information you can provide! I will be sure to post the results of my investigation on this list in a week or two. Ryan - 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
[Wicket-user] Forms
I am receiving n key/value objects in a List provided by my AttributeDataProvider. n can vary from one Form to the next. Without having to allocate a td for every possible key, I would like to put the key/value pairs up on a form in order for the user to be able to modify zero or more values. Is there a Component, like DataView, that will work in a form? Thanks, - 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] AjaxTimerBehavior on Components added to AjaxRequestTarget
thanks!-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: sweet. works great on my side. I'll write up a couple of tests and submit a patch.thanks,jimOn 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered() instead of attaching the script to the onloadmodifier output it straight into the response between script tags -igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: Would it work like this:* in onRendered, check if the RequestTarget is an AjaxRequestTarget, and appendJavascript* remove appendJavascript from respondthanks,jim On 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote: best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered ()-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote: What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim -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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Jim McLaughlin Director, Software EngineeringStonewater Control Systems http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994 -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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Jim McLaughlin Director, Software EngineeringStonewater Control Systems http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994 -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.nethttps://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
Re: [Wicket-user] Forms
You can just encapsulate your key/value stuff in a Panel, then add n number of Panels to the form, depending on what the user requires. On 11/2/06, Michael Welter [EMAIL PROTECTED] wrote: I am receiving n key/value objects in a List provided by myAttributeDataProvider.n can vary from one Form to the next.Without having to allocate a td for every possible key, I would like to put the key/value pairs up on a form in order for the user to be ableto modify zero or more values.Is there a Component, like DataView, that will work in a form?Thanks,- 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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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] Wicket performance in high availability applications?
I have a few questions: 1) Does anyone know of Wicket being used on a high traffic website? I know of people building them, but the ones I know are not yet in full production. But maybe someone else on this list knows. 2) What are some of the challenges related to scaling a Wicket application (beyond the general servlet recommendations of being stateless as long as possible, keeping the state small to facilitate clustering, etc)? The only tradeoff of Wicket is that Wicket is heavy on memory. While that is not a big problem per se, it is something to keep in the back of your mind, and one of the first things you would optimize when the time comes to tweak your application. In general, try to use detachable models when you create database driven apps, tweak the number of history items kept, etc. Oh, and don't forget to set wicket to deployment: context-param param-nameconfiguration/param-name param-valuedeployment/param-value /context-param in web.xml. That'll have quite a big impact on the throughput. One thing to be careful of is Wicket with (public facing) sites with a load that is hard to predict. If you have very large peaks you probably want to keep your session time out low, and investigate stateless pages (and forms and links etc), which are most mature in Wicket 2.0 (though there is limiited support in 1.2). 3) Tapestry uses page and component pooling to help achieve higher throughput... Yeah, and whether that is a good thing is highly debatable. If you read up on optimizing Java code, object pooling is usually on top of the list of things you *should not* do, as it is likely the synchronization you need will the bottleneck and hotspot is very good in managing short lived objects. We have tested Tapestry vs Wicket performance a bit over a year ago, to look for spots we might optimize, and our results were that Wicket had a higher throughput even without optimization. It doesn't appear like Wicket can employ such a technique due to the framework allowing direct page and component instantiation. Are pages and components so light weight pooling them is not worth the disadvantages of not being able to pass parameters via constructor or is this a known trade off? Wicket's unmanaged model encompasses much more than just passing in parameters in the constructor. It means you decide on any form of construction you like, it means you can program 'just java' as you would do in other tiers of your application, and you can construct all the aggregations you want. Furthermore, like I said above, pooling is not even an advantage. Thanks for any information you can provide! I will be sure to post the results of my investigation on this list in a week or two. Ryan Sure. Maybe you want to share the exact tests you're doing too? Eelco - 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] Forms
DataView does work in a Form, and so ListView (if you call setReuseItems(false)). Eelco On 11/2/06, Michael Welter [EMAIL PROTECTED] wrote: I am receiving n key/value objects in a List provided by my AttributeDataProvider. n can vary from one Form to the next. Without having to allocate a td for every possible key, I would like to put the key/value pairs up on a form in order for the user to be able to modify zero or more values. Is there a Component, like DataView, that will work in a form? Thanks, - 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] Forms
with dataview its slightly more workyou have to call dataview.setItemReuseStrategy(ReuseIfModelsEqualStrategy.instance())and override equals/hashcode of the model that the dataprovider returns so the strategy will work correctly -igorOn 11/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote: DataView does work in a Form, and so ListView (if you callsetReuseItems(false)).EelcoOn 11/2/06, Michael Welter [EMAIL PROTECTED] wrote: I am receiving n key/value objects in a List provided by my AttributeDataProvider.n can vary from one Form to the next. Without having to allocate a td for every possible key, I would like to put the key/value pairs up on a form in order for the user to be able to modify zero or more values. Is there a Component, like DataView, that will work in a form? Thanks, - 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 easierDownload 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.nethttps://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] getVariation()
Thanks Eelco, this workaround works... but onBeginRequest() {getRequest().getParameter(style); }doesn't work if the page is mounted. Unfortunately, every page of my webapp is mounted so that I can take advantage of the nice urls. Is there any more workaround to make getVariation() return a value from a page parameter? On 03/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yuck. As a dirty workaround you could create a custom request cyclethat overridesonBeginRequest() {style = getRequest().getParameter(style);}and then:getVariation() { return MyRequestCycle.get().getStyle();}Haven't tested it, but that should work.EelcoOn 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote: This is because the commomInit() method that is called in the constructor of WebPage already also gets the markup to test for the body tag . But the strange thing is that this markup is not kept on to. So when rendered it should ask it again and then the variation is encountered. I dont know why that doesn't happen. The problem still is that then the body thing is wrong (if suddenly the markup is swapped...) johanOn 11/2/06, Otan [EMAIL PROTECTED] wrote: How about this one? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); System.out.println (constructor called. The variant is now + variant); } public String getVariation() { System.out.println(getVariation() called! The value returned is + variant); return variant; } } When I request the page (three times), It prints: getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the var parameter returns not null. If that is the case, your code should work. Eelco On 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) { variant = p.getString(var);}public String getVariation() {return variant;}} getVariation() always return null as if 'variant' never get set in theconstructor. -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 easierDownload 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.nethttps://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 - 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-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to
Re: [Wicket-user] getVariation()
getRequest().getRequestParameters().getParameter(style) -igorOn 11/2/06, Otan [EMAIL PROTECTED] wrote:Thanks Eelco, this workaround works... but onBeginRequest() {getRequest().getParameter(style); }doesn't work if the page is mounted. Unfortunately, every page of my webapp is mounted so that I can take advantage of the nice urls. Is there any more workaround to make getVariation() return a value from a page parameter? On 03/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yuck. As a dirty workaround you could create a custom request cyclethat overridesonBeginRequest() {style = getRequest().getParameter(style);}and then:getVariation() { return MyRequestCycle.get().getStyle();}Haven't tested it, but that should work.EelcoOn 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote: This is because the commomInit() method that is called in the constructor of WebPage already also gets the markup to test for the body tag . But the strange thing is that this markup is not kept on to. So when rendered it should ask it again and then the variation is encountered. I dont know why that doesn't happen. The problem still is that then the body thing is wrong (if suddenly the markup is swapped...) johanOn 11/2/06, Otan [EMAIL PROTECTED] wrote: How about this one? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); System.out.println (constructor called. The variant is now + variant); } public String getVariation() { System.out.println(getVariation() called! The value returned is + variant); return variant; } } When I request the page (three times), It prints: getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the var parameter returns not null. If that is the case, your code should work. Eelco On 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) { variant = p.getString(var);}public String getVariation() {return variant;}} getVariation() always return null as if 'variant' never get set in theconstructor. -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 easierDownload 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 - 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-Using Tomcat
[Wicket-user] A wicket book in chinese is available free
I Just finished a book about wicket. But it's a pity that it is written in chinese. Maybe most of the users in the mail list can't read. But i still hope it can help the wicket users in china. You can read this book on the following url. http://gocom.primeton.com/ The pdf version is also available.__赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.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] getVariation()
there is no getParameter(string) method in wicket.request.RequestParametersBy the way, since I cannot rely on getVariation() to return the result of the per request condition (because I'm now forced to use some data persisted in session to make it work), I realized that I should use Session.setStyle() instead. Now I wonder, what usecase getVariation() really good for?On 03/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:getRequest().getRequestParameters().getParameter(style) -igorOn 11/2/06, Otan [EMAIL PROTECTED] wrote:Thanks Eelco, this workaround works... but onBeginRequest() {getRequest().getParameter(style); }doesn't work if the page is mounted. Unfortunately, every page of my webapp is mounted so that I can take advantage of the nice urls. Is there any more workaround to make getVariation() return a value from a page parameter? On 03/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yuck. As a dirty workaround you could create a custom request cyclethat overridesonBeginRequest() {style = getRequest().getParameter(style);}and then:getVariation() { return MyRequestCycle.get().getStyle();}Haven't tested it, but that should work.EelcoOn 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote: This is because the commomInit() method that is called in the constructor of WebPage already also gets the markup to test for the body tag . But the strange thing is that this markup is not kept on to. So when rendered it should ask it again and then the variation is encountered. I dont know why that doesn't happen. The problem still is that then the body thing is wrong (if suddenly the markup is swapped...) johanOn 11/2/06, Otan [EMAIL PROTECTED] wrote: How about this one? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); System.out.println (constructor called. The variant is now + variant); } public String getVariation() { System.out.println(getVariation() called! The value returned is + variant); return variant; } } When I request the page (three times), It prints: getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the var parameter returns not null. If that is the case, your code should work. Eelco On 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) { variant = p.getString(var);}public String getVariation() {return variant;}} getVariation() always return null as if 'variant' never get set in theconstructor. -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 easierDownload 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 - 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
[Wicket-user] Bug in Wicketbench?
Hi,The issue is that remote debugging with Jetty and Maven from Eclipse doesn't work right any more if the default editor is Wicket Editor. While debugging the line of code that is executed by a thread is not shown in the editor window anymore. Only the linenumber of the thread is mentioned in the debug window.Does someone recognize this behavior?Regards,Rik- 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] Ajax autocompletion troubles
I used the 1.x branch from svn at October 1, around 14:00 CET. Do you want me to check today's svn? Erik. Matej Knopp schreef: Is that problem still present? Could you please check current svn too? -Matej -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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] Bug in Wicketbench?
On Fri, 2006-11-03 at 08:20 +0100, Rik van der Kleij wrote: Hi, The issue is that remote debugging with Jetty and Maven from Eclipse doesn't work right any more if the default editor is Wicket Editor. While debugging the line of code that is executed by a thread is not shown in the editor window anymore. Only the linenumber of the thread is mentioned in the debug window. Does someone recognize this behavior? Yes, this is a known bug. It is not possible to fix this easily in current eclipse versions. I (and some others) have reported the issue to eclipse devs and the only news i've got from them is that they wont fix it in 3.3. Let's hope it will be fixed at some point, though! A workaround is to set normal Java editor as a default editor when debugging. Joni - 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] Ajax autocompletion troubles
I just did an update and I see that relevant files have been changed. I'll try immediately. Thanks, Erik. Erik van Oosten schreef: I used the 1.x branch from svn at October 1, around 14:00 CET. Do you want me to check today's svn? Erik. Matej Knopp schreef: Is that problem still present? Could you please check current svn too? -Matej -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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
[Wicket-user] Strategy to avoid new instances of pages and panels
Hi all! I am looking for a pattern, strategy or code example how to avoid creation of new page Instances when a user reloads a page. Can someone give my a hint how to achieve following behaviour: - static pages which have only a single instance during whole application lifecycle ? - some kind of page and/or factory or proxy to reuse instances? Any best practice or some examples would be nice. Thank you very much, Maciej Bednarz - 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] getVariation()
On 11/2/06, Otan [EMAIL PROTECTED] wrote: there is no getParameter(string) method in wicket.request.RequestParametersyou know, you could spend a little bit of the time and explore the api. there is no getParameter(String), but there is a Map getParameters() By the way, since I cannot rely on getVariation() to return the result of the per request condition (because I'm now forced to use some data persisted in session to make it work), I realized that I should use Session.setStyle() instead. Now I wonder, what usecase getVariation() really good for?variation is per component instance, style is per session instance. two different scopes.-igor On 03/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:getRequest().getRequestParameters().getParameter(style) -igorOn 11/2/06, Otan [EMAIL PROTECTED] wrote:Thanks Eelco, this workaround works... but onBeginRequest() {getRequest().getParameter(style); }doesn't work if the page is mounted. Unfortunately, every page of my webapp is mounted so that I can take advantage of the nice urls. Is there any more workaround to make getVariation() return a value from a page parameter? On 03/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yuck. As a dirty workaround you could create a custom request cyclethat overridesonBeginRequest() {style = getRequest().getParameter(style);}and then:getVariation() { return MyRequestCycle.get().getStyle();}Haven't tested it, but that should work.EelcoOn 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote: This is because the commomInit() method that is called in the constructor of WebPage already also gets the markup to test for the body tag . But the strange thing is that this markup is not kept on to. So when rendered it should ask it again and then the variation is encountered. I dont know why that doesn't happen. The problem still is that then the body thing is wrong (if suddenly the markup is swapped...) johanOn 11/2/06, Otan [EMAIL PROTECTED] wrote: How about this one? public class MyPage extends WebPage { String variant; public MyPage(PageParameters p) { variant = p.getString(var); System.out.println (constructor called. The variant is now + variant); } public String getVariation() { System.out.println(getVariation() called! The value returned is + variant); return variant; } } When I request the page (three times), It prints: getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth getVariation() called! The value returned is null constructor called. The variant is now earth On 02/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Check that that constructor is actually called, and check that the var parameter returns not null. If that is the case, your code should work. Eelco On 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) { variant = p.getString(var);}public String getVariation() {return variant;}} getVariation() always return null as if 'variant' never get set in theconstructor. -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 easierDownload 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 - 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
[Wicket-user] Question on reusability
Hi All, I have a usecase but I dont know which would be the best approach to achieve it. It goes like this: 1. I have Address which is common in most of the pages. 2. I want to use the Address in Company 3. I want to use the Company with Address in MyCompany. I am not sure how to achieve it. Can anyone post me a sample how to resuse address in company and reuse company in mycompany or something similar. This is generic in most of my pages. I am not sure but Panel looks like the correct option. But do we need mutliple forms like AddressForm CompanyForm and MyCompanyForm. I am not sure if this sounds stupid or it might be my lack of wicket knowledge (newbie). I just wanted to know the correct way of doing this. Thanks in advance. -- View this message in context: http://www.nabble.com/Question-on-reusability-tf2566480.html#a7153216 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 on reusability
i create editor classes for editing compound beans. editor classes are just panels with field components added to them. that way i can drop the panel into any form and have it work.-igor On 11/2/06, sunraider [EMAIL PROTECTED] wrote: Hi All,I have a usecase but I dont know which would be the best approach to achieveit. It goes like this:1. I have Address which is common in most of the pages.2. I want to use the Address in Company 3. I want to use the Company with Address in MyCompany.I am not sure how to achieve it. Can anyone post me a sample how to resuseaddress in company and reuse company in mycompany or something similar. This is generic in most of my pages. I am not sure but Panel looks like thecorrect option. But do we need mutliple forms like AddressForm CompanyFormand MyCompanyForm. I am not sure if this sounds stupid or it might be my lack of wicket knowledge (newbie). I just wanted to know the correct way ofdoing this.Thanks in advance.--View this message in context: http://www.nabble.com/Question-on-reusability-tf2566480.html#a7153216Sent 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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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