Re: [Wicket-user] How to reload page from within ajax call
Have you tried something like the following? new AjaxFallBackLink(id) { public void onClick(AjaxTargetRequest target) { page.replace(changedComponent); if (target != null) { target.addComponent(changedComponent); } } } Regards, Erik. De Soca schreef: Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage(ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- 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] JackRabbit and Wicket
Hi all,I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. greets,Ted - 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] How to reload page from within ajax call
Hmm, which browser(s) are you using? You could also take a look at this site to see the browsers that *has* been tested with our AJAX implementation: http://www.wicket-wiki.org.uk/wiki/index.php/FAQs#Which_browsers_have_been_tested_with_Wicket_AJAXFrankOn 10/17/06, De Soca [EMAIL PROTECTED] wrote:Sorry,I am using version 1.2.2 igor.vaynberg wrote: what version of wicket are you using? i thought we added support for setResponsePage() from an ajax call in 1.2.2, but maybe im wrong and it will be in 1.2.3 -Igor On 10/16/06, De Soca [EMAIL PROTECTED] wrote: Hello all, I may be missing something basic, however I have a dirty flag within a page so that if the data has changed, on the next request the page is refreshed. The link clicked is an Ajax link within the AjaxTabbedPanel. Everything else works fine. I have tried the following: 1. setResponsePage() 2. RequestCycle rc = RequestCycle.get(); rc.setResponsePage (ClientMasterPage.class); Neither of which provide the desired result. Any suggestions are welcome. Thanks to all. -- View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6842823 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 - 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--View this message in context: http://www.nabble.com/How-to-reload-page-from-within-ajax-call-tf2455071.html#a6846807 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 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] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p. greets, Ted - 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] Netscape 8.1.2 problems
Strange. It seems that getResponseHeader throws an exception in netscape if the requested header is not there. I added a try/catch block there so it should work now. -Matej Allen James wrote: Has anyone run into issues using AJAX behaviour with Netscape 8.1.2 using the Firefox rendering mode? I am currently using wicket 1.2.2. At first I thought it was maybe just my app, but I tried to run the ajax examples off of http://www.wicket-library.com/wicket-examples/, and I can't get the to run properly either. I can see the initial request get made through the debugger, but then it stalls and the subsequent calls get postponed due to the channel being busy. When I run in IE rendering mode it appears to work just fine. Any tips or help on what I may have setup incorrectly would be appreciated. _ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us - 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] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
Well, it seems like a bug, the question is how to fix it? The problem is that rendered() should be called after component is rendered. But we do call it even after header is rendered, because we need to do some cleanup there. So for 2.0 I think we need something like IBehavior.cleanup() - where the cleanup will be done IBehavior.componentRendered() - after the component has been rendered - we print the autocomplete script here For 1.2 we need some kind of dirty hack perhaps? :) -Matej Igor Vaynberg wrote: yes its a bug, please file it -igor On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using Wicket 2.0 The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX. When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called: The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ). The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any javascript that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax. If this is a bug I can add it to the JIRA. -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user 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] Wicket 2.0: Adding a component via ajax that contributes javascript (like AutoCompleteTextField) doesn't work correctly in Firefox
It fails to execute because the header javascript is executed before the elements are inserted to DOM. The solution would be not to render the javascript to head, question is how to determine whether header is being rendered or not. -Matej Caleb Land wrote: For some reason if the javascript is rendered in the component's onRender(MarkupStream) method (as opposed to rendering the javascript through a behavior) the javascript is executed correctly. This is strange because when I look at the ajax debug window and compare the ajax responses of the two methods there isn't anything different other than rendering in a behavior causes the script to be rendered in a header-contribution as well as being rendered alongside the component. I think this is caused by the issue I mention in my latest email IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX. If I prevent Wicket from calling IBehavior#rendered() (as mentioned in the above referenced mail) twice on a component during an AJAX request by commenting out the call to component.renderedBehaviors(); (AjaxRequestTarget.java line 524) then the javascript is executed correctly in firefox, and that javascript is not added as a header-contribution in the ajax response. I don't understand why having the javascript in a header-contribution as well as a component in the response would cause it not to execute correctly. On 10/15/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Okay. I'm making this up as I go along, so this could be the worst idea ever, but what about scanning a component's response for script tag, putting the contents in the AjaxRequestTarget as javascripts, and removing the script tag from the normal component output? From my reading of the source code, the evaluation of those scripts is controlled by the wicket ajax system (since a call to eval() is made when processing them). I'm a Wicket/Web development newbie so I can't see far enough ahead to see potential problems with a solution like this. On 10/15/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, I'll try to look at it later today (or tomorrow). The problem is that firefox executes the script automatically, while in other browsers we need to call the scripts in the fragment manually. So I can't affect the order in which the scripts are bing called. I'll see what I can do about it. -Matej Caleb Land wrote: I've created the same testcase using wicket 1.2.2 and it works correctly in Firefox: http://www.granfalloon.com/~caleb/wicket-quickstart-1.2.2.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart-1.2.2.zip http://www.granfalloon.com/%7Ecaleb/wicket-quickstart-1.2.2.zip I'm looking into the cause of it... On 10/15/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using the 2.0 trunk. I think he was referring to the header contribution working when added via ajax. That does appear to work (the correct script reference is made to the autocomplete javascript library), however the code that actually calls the library to create the field in the browser is being called before the field is placed on the page in Firefox (it works correctly in the other browsers I tried). On 10/15/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This is the same problem I reported a few days ago for Wicket 1.2.2. Igor wrote that it was already solved in th 1.x trunk. So maybe this is also the case for the 2.x trunk. Regards, Erik. Caleb Land schreef: When I add a component via ajax that contributes javascript to be executed (like the AutoCompleteTextField from wicket-extensions) the javascript is executed before the component elements are added to the page in Firefox ( 1.5.0.7 http://1.5.0.7 http://1.5.0.7 http://1.5.0.7 http://1.5.0.7). The same code works correctly in Safari, Opera, and IE7 (I haven't tests 6.x). In the case of the
Re: [Wicket-user] Move to Apache: Namespace?
The reason why this is relevant is because we determine the namespace from this statement. Meaning xmlns:wicket=http://wicket.sourceforge.net/ is our current default. But xmlns:xxx=http://wicket.sourceforge.net/ will change Wickets namespace to xxx. So instead of wicket:id you can write xxx:id. But be carefull, that hasn't been fully tested. In that sense xmlns:wicket=http://www.wicketframework.org; has no effect on Wicket whatsoever and xmlns:xxx=http://www.wicketframework.org; will not change the namespace. But I agree we should change the url to http://www.wicketframework.org. And yes, that change would go in 2.0 only Juergen On 10/16/06, Upayavira [EMAIL PROTECTED] wrote: Frank Bille wrote: I normally use xmlns:wicket=http://www.wicketframework.org; and IMHO it will stay the same. Frank On 10/16/06, * Stefan Lindner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This question is currently not so very imnportant but, for XHTML users, will the xmlns:wicket=http://wicket.sourceforge.net/ wicket namespace change too? If it does, it will change with a major version - 2.0 or 3.0, not a minor version, I would say. Regards, Upayavira - 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] wicket-contrib-data-ejb3
No plans from the core devs. But anyone from the list of wicket-stuff committers could take it up if they like. Eelco On 10/17/06, cowwoc [EMAIL PROTECTED] wrote: Hi, There exists a module called wicket-contrib-data-hibernate-3.0. Are there plans for releasing wicket-contrib-data-ejb3 in the near future? I know Cheeser was working on one but I don't know how far along it is. Thanks, Gili - 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] Open Popup via Ajax
Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that "return false;" in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName("contentEditorPageMap")).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget("'" + url + "'");if(target != null) tag.put("ondblclick", target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;// Member Variablesprivate String url; /** * Constructor. */public DoubleClickEditorAjaxBehavior(String url){super("onDblClick");this.url = "">} /** * Opens the [EMAIL PROTECTED] SnippetEditorPopupPage}. * * @see wicket.ajax.AjaxEventBehavior#onEvent(wicket.ajax.AjaxRequestTarget) */@Overrideprotected void onEvent(AjaxRequestTarget target){PopupSettings popupSettings = new PopupSettings(PageMap.forName("contentEditorPageMap")).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget("'" + url + "'");if(target != null)target.appendJavascript(popupSettings.getPopupJavaScript());}} It doesn't seem to do anything, though the Ajax debug window shows the following every time I double click: INFO:INFO: Initiating Ajax GET request on /doh?wicket:interface=:0:dynamicPageContent::IBehaviorListenerwicket:behaviorId=3random=0.5027223472182086INFO: Invoking pre-call handler(s)...INFO: Received ajax response (354 characters)INFO:?xml version="1.0" encoding="UTF-8"?ajax-responseevaluate![CDATA[window.open('/doh?wicket:bookmarkablePage=:simplepersistence.feature.dynamicPages.SnippetEditorPopupPage0=karl1=1', 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false;]]/evaluate/ajax-responseINFO: Response parsed. Now invoking steps...ERROR: Exception evaluating _javascript_: SyntaxError: invalid returnINFO: Response processed successfully.INFO: Invoking post-call handler(s)... Can anyone point out what I might be doing wrong or a better way to go about this? Thanks, Karl-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.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] Move to Apache: Namespace?
and 1.3? Martijn On 10/17/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: The reason why this is relevant is because we determine the namespace from this statement. Meaning xmlns:wicket=http://wicket.sourceforge.net/ is our current default. But xmlns:xxx=http://wicket.sourceforge.net/ will change Wickets namespace to xxx. So instead of wicket:id you can write xxx:id. But be carefull, that hasn't been fully tested. In that sense xmlns:wicket=http://www.wicketframework.org; has no effect on Wicket whatsoever and xmlns:xxx=http://www.wicketframework.org; will not change the namespace. But I agree we should change the url to http://www.wicketframework.org. And yes, that change would go in 2.0 only Juergen On 10/16/06, Upayavira [EMAIL PROTECTED] wrote: Frank Bille wrote: I normally use xmlns:wicket=http://www.wicketframework.org; and IMHO it will stay the same. Frank On 10/16/06, * Stefan Lindner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This question is currently not so very imnportant but, for XHTML users, will the xmlns:wicket=http://wicket.sourceforge.net/ wicket namespace change too? If it does, it will change with a major version - 2.0 or 3.0, not a minor version, I would say. Regards, Upayavira - 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 -- 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] wicket-contrib-data-ejb3
And since you now have an underused, working sf.net account... :-) (underused because the security breach was a couple of months ago ;-) Martijn On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: No plans from the core devs. But anyone from the list of wicket-stuff committers could take it up if they like. Eelco On 10/17/06, cowwoc [EMAIL PROTECTED] wrote: Hi, There exists a module called wicket-contrib-data-hibernate-3.0. Are there plans for releasing wicket-contrib-data-ejb3 in the near future? I know Cheeser was working on one but I don't know how far along it is. Thanks, Gili - 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 -- 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] deprecated methods in current SVN version
Don't worry too much about them. Most of those deprecation warnings are there to help people migrate to 2.0. They will be supported for 1.2.x and 1.3.x. Usually the deprecation javadoc tag will say what the replacement is. Though there are/ have been a few tags where the lazy bum dev who put it in, didn't give such a description... if you find those, please report an issue so that it can be fixed. In your case: IExceptionSettings: /** * @return Returns the unexpectedExceptionDisplay. * @deprecated will be moved to [EMAIL PROTECTED] IApplicationSettings} in 2.0 */ UnexpectedExceptionDisplay getUnexpectedExceptionDisplay(); Though this concrete deprecation is still voted upon. Eelco On 10/17/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: After switching to current SVN version, I get lots of warnings for deprecated methods. The problem is I can't find any replacement for setUnexpectedExceptionDisplay What are we supposed to use to replace : getApplicationSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); I also get deprecation warnings on all Ajax links : [deprecation]getImplementationId() in wicket.behavior.AbstractAjaxBehavior has been deprecated although I do not use this directly. Are we suppose to change something in the way Ajax links are used ? Pierre-Yves - 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] JackRabbit and Wicket
Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?greetsTed2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems.In the past, I have been looking at using Wicket and JCR when buildingInfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to dealwith inherent problems of developing an app, but nothing else :-)../alex--.w( the_mindstorm )p. greets, Ted - 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] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? As I already think I have answered you on the Jackrabbit list: the JCR Session is better fitted to the request and not in the Http Session. And to clarify one point: I was investigating Wicket usage at that point, not that I was really building with it. ./alex -- .w( the_mindstorm )p. greets Ted 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p. greets, Ted - 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] JackRabbit and Wicket
Oh yeah Sorry, i did't realize that it was you. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?As I already think I have answered you on the Jackrabbit list: the JCR Session is better fitted to the request and not in the Http Session.And to clarify one point: I was investigating Wicket usage at thatpoint, not that I was really building with it../alex--.w( the_mindstorm )p. greets Ted 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p. greets, Ted - 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 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] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Oh yeah Sorry, i did't realize that it was you. Oh yes that's me everywhere :-D. ./alex -- .w( the_mindstorm )p. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? As I already think I have answered you on the Jackrabbit list: the JCR Session is better fitted to the request and not in the Http Session. And to clarify one point: I was investigating Wicket usage at that point, not that I was really building with it. ./alex -- .w( the_mindstorm )p. greets Ted 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p. greets, Ted - 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 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] JackRabbit and Wicket
Do you even need to keep a reference to it? Get a session when you need it or let it get injected. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? greets Ted 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p. greets, Ted - 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] JackRabbit and Wicket
It could be easy to keep a reference, else we have to work with or something like it, because if you have create a session everytime you need it, your performance is shot to hell2006/10/17, Eelco Hillenius [EMAIL PROTECTED]:Do you even need to keep a reference to it? Get a session when you need it or let it get injected.EelcoOn 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? greets Ted 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p.greets, Ted - 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 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] JackRabbit and Wicket
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get injected. Eelco The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). ./alex -- .w( the_mindstorm )p. On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? greets Ted 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I don't think there is something to worry about the combination of the 2, so most probably you will just have to deal with inherent problems of developing an app, but nothing else :-). ./alex -- .w( the_mindstorm )p. greets, Ted - 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 list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JackRabbit and Wicket
The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). Heh. If a session is thread bound (though I wouldn't see the point of that, but I don't Jackrabbit very well), you could follow a threadlocal pattern like you'd do with Hibernate. A servlet filter or request cycle for managing the thread local would make sense then. And the repository looks like something you would define for an application scope to me. 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
[Wicket-user] 希望合作!
您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; 互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广 告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付 款的方式与贵司合作! 联系人:陈小姐 电话 :13510678960 - 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] JackRabbit and Wicket
I really want it to be threadsafe, but at this point i don't have a good picture of how that is done.2006/10/17, Alexandru Popescu [EMAIL PROTECTED]:On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get injected. EelcoThe only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible inWicket, but I am still waiting for your book to go out so that I cangive better answers to this :-)../alex--.w( the_mindstorm )p. - 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] Re: [Wicket-user] 希望合作!
:? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; 互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广 告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付 款的方式与贵司合作! 联系人:陈小姐 电话 :13510678960 - 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] JackRabbit and Wicket
Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some pooling yourself, though I'd be surprised if other people haven't thought of that before. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I really want it to be threadsafe, but at this point i don't have a good picture of how that is done. - 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] Re: [Wicket-user] Re: [Wicket-user] 希望合作!
That's our localization test of the email list ;) Eelco On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote: :? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; - 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] Re: [Wicket-user] Re: [Wicket -user] Re: [Wicket-user] 希望合作!
hon! da isu zu mit su bi shi kawa zaki dae wo! ya ta... ;) On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That's our localization test of the email list ;) Eelco On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote: :? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; - 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] JackRabbit and Wicket
I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can take more than 10 seconds to load the page. 2006/10/17, Eelco Hillenius [EMAIL PROTECTED]: Requests and components are thread safe in Wicket. The pattern you arelooking for might be a thread local (maybe with a servlet filter orcustom request cycle). I don't know how expensive sessions are tocreate, and whether a pool of them is maintained by a repository. You might have to do some pooling yourself, though I'd be surprised ifother people haven't thought of that before.EelcoOn 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I really want it to be threadsafe, but at this pointi don't have a good picture of how that is done.-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] JackRabbit and Wicket
Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449. That might work, though I don't know how well it scales. That depends on the resources a session holds on to. If it does hold on to resources directly, a pool would be a better option. Though if you're just creating a proof of concept, you might start with a session based one to keep things simple. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can take more than 10 seconds to load the page. 2006/10/17, Eelco Hillenius [EMAIL PROTECTED]: Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some pooling yourself, though I'd be surprised if other people haven't thought of that before. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I really want it to be threadsafe, but at this point i don't have a good picture of how that is done. - 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] JackRabbit and Wicket
It is going to be a first version of the CMS, so we can change it later.I'll take a look at the article. Thanks2006/10/17, Eelco Hillenius [EMAIL PROTECTED]:Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449.That might work, though I don't know how well it scales. That depends on the resources a session holds on to. If it does hold on toresources directly, a pool would be a better option. Though if you'rejust creating a proof of concept, you might start with a session basedone to keep things simple. EelcoOn 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can take more than 10 seconds to load the page. 2006/10/17, Eelco Hillenius [EMAIL PROTECTED]: Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some pooling yourself, though I'd be surprised if other people haven't thought of that before. EelcoOn 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I really want it to be threadsafe, but at this pointi don't have a good picture of how that is done. - 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 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] JackRabbit and Wicket
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). Heh. If a session is thread bound (though I wouldn't see the point of that, but I don't Jackrabbit very well), you could follow a threadlocal pattern like you'd do with Hibernate. A servlet filter or request cycle for managing the thread local would make sense then. And the repository looks like something you would define for an application scope to me. Exactly my point :-). And yes, JCR Sessions are not thread-safe so in many cases (and as a best practice) you need to make sure it is thread-confined. ./alex -- .w( the_mindstorm )p. 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
Re: [Wicket-user] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can take more than 10 seconds to load the page. I am very sure you are doing something wrong. I have profiled it and getting a JCR Session is an almost 0ms operation. Maybe you have used a transient repository, in which case if no JCR Sessions are alive then the repository is shutdown and it is started all over again for the next JCR Session. ./alex -- .w( the_mindstorm )p. 2006/10/17, Eelco Hillenius [EMAIL PROTECTED]: Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some pooling yourself, though I'd be surprised if other people haven't thought of that before. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I really want it to be threadsafe, but at this point i don't have a good picture of how that is done. - 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] JackRabbit and Wicket
Exactly my point :-). And yes, JCR Sessions are not thread-safe so inmany cases (and as a best practice) you need to make sure it isthread-confined. ./alex--.w( the_mindstorm )p.I just asked that on the JackRabbit userlist, as you know, and i got a completely different answer - 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] JackRabbit and Wicket
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449. That might work, though I don't know how well it scales. That depends on the resources a session holds on to. If it does hold on to resources directly, a pool would be a better option. Though if you're just creating a proof of concept, you might start with a session based one to keep things simple. Eelco It pretty much depends on which are the most operations. In case you have concurrent read-writes I really think the JCR Session - HTTP Session will prove itself not so efficient not to mention the complexity of the code. I agree that for scenarios where reads are the main operations then this approach may work. ./alex -- .w( the_mindstorm )p. On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can take more than 10 seconds to load the page. 2006/10/17, Eelco Hillenius [EMAIL PROTECTED]: Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some pooling yourself, though I'd be surprised if other people haven't thought of that before. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I really want it to be threadsafe, but at this point i don't have a good picture of how that is done. - 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] JackRabbit and Wicket
You are right, i did you a transientrepository. So when i use a different one, the performance should be better? - 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] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Exactly my point :-). And yes, JCR Sessions are not thread-safe so in many cases (and as a best practice) you need to make sure it is thread-confined. ./alex -- .w( the_mindstorm )p. I just asked that on the JackRabbit userlist, as you know, and i got a completely different answer Just for clarification, you have received only 2 type of answers: - JCR Session - thread-confined (Tobias - Jackrabbit developer and myself) - JCR Session with a pool (but used in the same thread-confined mode; another user). ./alex -- .w( the_mindstorm )p. - 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] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, i did you a transientrepository. So when i use a different one, the performance should be better? Maybe you should start trying things by your own, as long as it looks you don't believe most of the answers you are getting on the mailing lists. ./alex -- .w( the_mindstorm )p. - 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] JackRabbit and Wicket
You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learningWicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, i did you a transientrepository. So when i use a different one, the performance should be better? Maybe you should start trying things by your own, as long as it looksyou don't believe most of the answers you are getting on the mailinglists../alex--.w( the_mindstorm )p. - 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] JackRabbit and Wicket
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learning Wicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much. And now start coding; you'll learn more by doing than by talking! ;) 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] JackRabbit and Wicket
You're absolutely right Eelco, we are starting with the Design, so you'll see it soon.Than it can be judged by you all, LOL - 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] Role authorization per page
OK, so narrowing down my thought process... Attempting to play with the application or Session AuthorizationStrategy doesn't seem to be a good idea because it I would need to somehow inject the current page into the Authorization Process. So, I am back to adding the AuthorizationStrategy to the Page. Now, is there a good reason why component.isActionAuthorized() is final (1.2-SNAPSHOT)? To try an work out my solution, I will remove the final modifier from the codebase, then have my Page class override it to include a check to a Page level IAuthorizationStrategy as well as the Application check. While I am on the topic is there any reason why MetaDataRoleAuthorizationStrategy (or AbstractRoleAuthorizationStrategy) do not implement Serializable? Thanks for any insight that you can offer! ChuckDeal wrote: I am using the RoleAuthorizationStrategy (which uses MetaDataRoleAuthorizationStrategyinternally) in my app and it works fine. I have a user object that has a list of valid roles in the application. What I want to do now is make my pages role-based. For example, if you are an originator, you would have access to more fields (some enabled, some visible). In this case, the role depends not only on the User, but also the specific data being viewed. It looks like I could use the MetaDataRoleAuthorizationStrategy (MDRAS) with a different IRoleCheckingStrategy (maybe implemented by the page) to accomplish this. If anyone has implmeneted a finer-grained, data-based role system as opposed to a coarser-grained, application role system, would you mind sharing your strategy? As far as what I am going to look into... I can see the way to register the MDRAS with the Application (add() method on CompoundAuthorizationStrategy). I'm pretty sure that I would want to unregister the instance when the page is done so that the authorization checking didn't get slowed down by unneeded Authorization Strategies (AS) (maybe make a new version of CompoundAuthorizationStrategy that has a remove() method). But when would I unregister the AS for the page? When the request is done? What about AJAX calls? Any suggestions? -- View this message in context: http://www.nabble.com/Role-authorization-per-page-tf2453766.html#a6855030 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
[Wicket-user] Re: [Wicket-user] Re: [Wicket-user] Re : [Wicket-user] Re: [Wicket-user] 希望合作!
Babel Fish says... Hello! Because I take charge of the income to be more and many enterprises and company's request: Provides each month remaining sum bill to outside; The reciprocal benefit mutually benefits by Xie Guisi the service operates ` to make up account ` to make the account the urgent matter; Provides the following bill service: * The ordinary commodity/transportation/is broad Considers/the construction and installation/service industry and so on each kind of receipt to be allowed to provide to outside, the tax rate is 1-2%; After and may access the net the inquiry or the tax affairs confirms pays Funds way and expensive department cooperation! Contact person: Miss Chen telephone :-) /Gwyn On 17/10/06, Manuel Barzi [EMAIL PROTECTED] wrote: hon! da isu zu mit su bi shi kawa zaki dae wo! ya ta... ;) On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That's our localization test of the email list ;) Eelco On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote: :? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; - 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 -- Download Wicket 1.2.2 now! - http://wicketframework.org - 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] How to test validators?
Hello, I wrote a custom validator for Dutch burger service numbers. However, whatever I try, I can't seem to be able to write a JUnit test for the onValidate method. An abstract of the code is included below. I tried using EasyMock to mock the form component. However this is not possible because the error method I am calling from my validator is final. Any suggestions on how to test this thing? Regards, Erik. 8--- public class SofiNummerValidator extends NumberValidator { public void onValidate(FormComponent formComponent, Number value) { if (value.longValue() 1000L) { error(formComponent, SofiNummerValidator.TooSmall, messageModel(formComponent)); } int sum = ..some number magic..; if (sum != 0) { error(formComponent, SofiNummerValidator.NotValid, messageModel(formComponent)); } } } 8--- -- 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] ajax refresh on date picker
and to add to the confusion, 1.x will first become 1.2.3 as soon as we fix those damn bugs. 1.3 (or 1.2.4) will follow quickly. Martijn On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Yeah, sorry, I meant 1.x. -Matej Pierre-Yves Saumont wrote: Hi Matej, I suppose 1.3 is current branch 1.x ? I checked out this, and it works. It still don't work with 1.2.2, but never mind. I hope it will continue working as I add functionnalities to the application ;-) Thanks, Pierre-Yves Matej Knopp a écrit : Hi Pierre-Yvers, I've tested your example with IE, FF and Opera, in all browsers it worked well. I've tested it wicket current svn (branch 1.3). So if there really is a bug, I still can't reproduce it :( However, there is one bug your example helped me to find, and that is AjaxTabbedPanel being versioned (it throwed exceptions on page refresh). -Matej Pierre-Yves Saumont wrote: Hi Matej, I eventually was able to make a stripped down version of my app. It still contains lot of unusefull stuff for the test case, but it is only 270kb. I removed the jars in the lib directory to reduce the size. You just have to copy the standard quickstart jars to make it work (and rename the zip file since zip archive are not allowed in this list). For user name and password, use wicket/wicket. There is a datepicker on the first page. You can then click on any tab (inner or outer) and go back to the first tab to experiment the problem. After an Ajax call, the datePicker still opens, but it is not possible to select a date. Pierre-Yves Matej Knopp a écrit : Well, the modification basically restored the behavior from before the speed optimization was done. It shouldn't really change anything, definitely not cause null instead of AjaxRequest (which probably means that you're using fallback links and for some reason they are not fired using Ajax). Anyway, are you able to provide a test case from any of this? All these issues you are facing seem to be related to your application quite closely, and I'm not able to reproduce any of it on my own. -Matej Pierre-Yves Saumont wrote: Hi Matej, With this modification, some Ajax link are seeing there onClick methods called with a null target. In the page I load, there is a top menu bar that loaded Ajax pages. In this pages there is genrally a ajax tabbed panel. The inner ajax links are working and the datepicker also works. When I try to activate an outer link to display another ajax page, I get the null target exception. So I cannot test the datepicker on the other pages. Pierre-Yves Matej Knopp a écrit : This is very unfortunate. I'm not able to reproduce the stack overflow problem even with huge ajax responses. Can you plese replace the processNext method with this: processNext: function() { if (this.current this.functions.length) { var f = this.functions[this.current]; var run = function() { f(this.notify.bind(this)); }.bind(this); this.current++; window.setTimeout(run, 1); } so that we can be sure that this is the problem. -Matej Pierre-Yves Saumont wrote: I changed the value to 10. It does not change anything. I don't know if it can be usefull, but I added the line: alert(this.depth); before line 120. When loading the Ajax response that contains the datepicker, this alert is displayed 10 times with values 0 to 9. Pierre-Yves Matej Knopp a écrit : That's not really the problem. The javascript _is_ included only once. Problem is the performance improvement I did, calling the run method from call stack instead of scheduling it on window.setTimeout(). The latter is very slow, because it redraws browser window. Anyway, it should no longer cause problem. Please make sure you've cleaned browsers cache. If this is the case, please try to change the number in wicket-ajax.js on line 120 (if (this.depth 50 || Wicket.Browser.isKHTML try to set it to lower number, like 10 to see if it helps. Perhaps I'm still overestimating the stack size? It's strange because I've tested the code on large ajax updates and it worked well. -Matej igor.vaynberg wrote: is it possible to change calendar.js and include an include_only_once logic? -Igor Pierre-Yves Saumont wrote: Hello Matej, I eventually found the updated file. (I was looking for the calendar.js file, and not for wicket-ajax.js). It doesn't change anything. I still have a too much recursion error at line 1796 of calendar.js Pierre-Yves Matej Knopp a ?crit : I assume there's something wrong with your svn setup. The revision of wicket-ajax.js in svn is 7534, it's 3 days old
Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
why not do the cleanup in detach() ?-IgorOn 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Well, it seems like a bug, the question is how to fix it?The problem is that rendered() should be called after component isrendered. But we do call it even after header is rendered, because weneed to do some cleanup there. So for 2.0 I think we need something likeIBehavior.cleanup() - where the cleanup will be doneIBehavior.componentRendered() - after the component has been rendered -we print the autocomplete script here For 1.2 we need some kind of dirty hack perhaps? :)-MatejIgor Vaynberg wrote: yes its a bug, please file it -igor On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using Wicket 2.0 The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX.When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called: The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ). The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any _javascript_ that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax. If this is a bug I can add it to the JIRA. -- Caleb Land ( [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]) -- Caleb Land ( [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]) - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user 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 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] Open Popup via Ajax
this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igprOn 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false; And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that return false; in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget(' + url + ');if(target != null) tag.put(ondblclick, target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;// Member Variablesprivate String url; /** * Constructor. */public DoubleClickEditorAjaxBehavior(String url){super(onDblClick);this.url = "">} /** * Opens the [EMAIL PROTECTED] SnippetEditorPopupPage}. * * @see wicket.ajax.AjaxEventBehavior#onEvent(wicket.ajax.AjaxRequestTarget) */@Overrideprotected void onEvent(AjaxRequestTarget target){PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget(' + url + ');if(target != null)target.appendJavascript(popupSettings.getPopupJavaScript());}} It doesn't seem to do anything, though the Ajax debug window shows the following every time I double click: INFO:INFO: Initiating Ajax GET request on /doh?wicket:interface=:0:dynamicPageContent::IBehaviorListenerwicket:behaviorId=3random=0.5027223472182086INFO: Invoking pre-call handler(s)...INFO: Received ajax response (354 characters)INFO:?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[window.open('/doh?wicket:bookmarkablePage=:simplepersistence.feature.dynamicPages.SnippetEditorPopupPage0=karl1=1', 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false;]]/evaluate/ajax-responseINFO: Response parsed. Now invoking steps...ERROR: Exception evaluating _javascript_: SyntaxError: invalid returnINFO: Response processed successfully.INFO: Invoking post-call handler(s)... Can anyone point out what I might be doing wrong or a better way to go about this? Thanks, Karl-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
Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
Well, as far as I can see there's only detachModels in IBehavior. Is this the place? -Matej Igor Vaynberg wrote: why not do the cleanup in detach() ? -Igor On 10/17/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, it seems like a bug, the question is how to fix it? The problem is that rendered() should be called after component is rendered. But we do call it even after header is rendered, because we need to do some cleanup there. So for 2.0 I think we need something like IBehavior.cleanup() - where the cleanup will be done IBehavior.componentRendered() - after the component has been rendered - we print the autocomplete script here For 1.2 we need some kind of dirty hack perhaps? :) -Matej Igor Vaynberg wrote: yes its a bug, please file it -igor On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using Wicket 2.0 The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX. When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called: The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ). The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any javascript that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax. If this is a bug I can add it to the JIRA. -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list
Re: [Wicket-user] JackRabbit and Wicket
Do you plan on using Spring?If so, spring modules support JCR.https://springmodules.dev.java.net/docs/reference/0.6/html/jcr.html The sub projects wicket-spring and wicket-spring-annot make injecting spring managed beans into your pages EXTREMELY easy. If you ever used spring to manage anything before, this is no different.If you go this route you get so many features for free. 1. Session/Transaction management: spring will manage2. Simple Integration: In a Wicket Page annotate a field to be able to use your service on the page. @Spring MyService service;3. JCR configuration flexibility: Then your users can use spring to manage the creation and configuration of JCR rather than you provide I don't know exactly what a 'JCR Session' is, but if its serializable then you could store it in the session. So that would mean the connection to the repository is resolved before each use. If its not serializable that means it probably holds some kind of connection to non-serializable objects (probably the repository, whether it be local or remote). Also if its not serializable then you can't keep it in the session because it needs to be able to be replicated to another computer for load balancing/fail-over. In either case, connecting to the repository on every request is trivial, especially if its local. From the documentation, it looks like spring does it this way.On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You're absolutely right Eelco, we are starting with the Design, so you'll see it soon.Than it can be judged by you all, LOL -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] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
im not sure why we have detachModel() as opposed to detach() maybe we should just add detach(), it seems logical to me-IgorOn 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote:Well, as far as I can see there's only detachModels in IBehavior. Is this the place?-MatejIgor Vaynberg wrote: why not do the cleanup in detach() ? -Igor On 10/17/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, it seems like a bug, the question is how to fix it? The problem is that rendered() should be called after component is rendered. But we do call it even after header is rendered, because we need to do some cleanup there. So for 2.0 I think we need something like IBehavior.cleanup() - where the cleanup will be done IBehavior.componentRendered() - after the component has been rendered - we print the autocomplete script here For 1.2 we need some kind of dirty hack perhaps? :) -Matej Igor Vaynberg wrote: yes its a bug, please file it -igor On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using Wicket 2.0 The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX.When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called: The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ). The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any _javascript_ that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax. If this is a bug I can add it to the JIRA. -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]) -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]) - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Netscape 8.1.2 problems
I can see that the Gecko version used is 1.7.5 which AFAIR corresponds to FireFox 1.0 which I don't think works with our AJAX at the moment. Frank On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Strange. It seems that getResponseHeader throws an exception in netscape if the requested header is not there. I added a try/catch block there so it should work now. -Matej Allen James wrote: Has anyone run into issues using AJAX behaviour with Netscape 8.1.2 using the Firefox rendering mode? I am currently using wicket 1.2.2. At first I thought it was maybe just my app, but I tried to run the ajax examples off of http://www.wicket-library.com/wicket-examples/, and I can't get the to run properly either. I can see the initial request get made through the debugger, but then it stalls and the subsequent calls get postponed due to the channel being busy. When I run in IE rendering mode it appears to work just fine. Any tips or help on what I may have setup incorrectly would be appreciated. _ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us - 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] JackRabbit and Wicket
2006/10/17, Pierre-Yves Saumont [EMAIL PROTECTED]: Hi Ted,Unless you already found them, you might be interested by these articles: http://www.onjava.com/pub/a/onjava/2006/10/04/what-is-java-content-repository.html?page=1http://www-128.ibm.com/developerworks/java/library/j-jcr/ Pierre-Yves I had already seen them, but thanks anyway. - 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] Netscape 8.1.2 problems
I don't know if ff 1.0 works, but Netscape 8.1.2 does, after I fixed it :) Frank Bille wrote: I can see that the Gecko version used is 1.7.5 which AFAIR corresponds to FireFox 1.0 which I don't think works with our AJAX at the moment. Frank On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Strange. It seems that getResponseHeader throws an exception in netscape if the requested header is not there. I added a try/catch block there so it should work now. -Matej Allen James wrote: Has anyone run into issues using AJAX behaviour with Netscape 8.1.2 using the Firefox rendering mode? I am currently using wicket 1.2.2. At first I thought it was maybe just my app, but I tried to run the ajax examples off of http://www.wicket-library.com/wicket-examples/, and I can't get the to run properly either. I can see the initial request get made through the debugger, but then it stalls and the subsequent calls get postponed due to the channel being busy. When I run in IE rendering mode it appears to work just fine. Any tips or help on what I may have setup incorrectly would be appreciated. _ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us - 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] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.
Okay. For 2.0 we can have detach(Component component).. or maybe componentDetached(Component component), and we can call the cleanup() from there. I wouldn't mind. But what to do for 1.2? One solution would be to call cleanup() from AbstractBehavior.detachModel(), the only thing that bothers me is that it wont be entirely backwards compatible (in case someone has overriden detachModel and doesn't call super.detachModel) WDYT? -Matej Igor Vaynberg wrote: im not sure why we have detachModel() as opposed to detach() maybe we should just add detach(), it seems logical to me -Igor On 10/17/06, *Matej Knopp * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, as far as I can see there's only detachModels in IBehavior. Is this the place? -Matej Igor Vaynberg wrote: why not do the cleanup in detach() ? -Igor On 10/17/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, it seems like a bug, the question is how to fix it? The problem is that rendered() should be called after component is rendered. But we do call it even after header is rendered, because we need to do some cleanup there. So for 2.0 I think we need something like IBehavior.cleanup() - where the cleanup will be done IBehavior.componentRendered() - after the component has been rendered - we print the autocomplete script here For 1.2 we need some kind of dirty hack perhaps? :) -Matej Igor Vaynberg wrote: yes its a bug, please file it -igor On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 10/16/06, *Caleb Land* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using Wicket 2.0 The IBehavior#rendered() method is called twice when a component that has that behavior is rendered via AJAX. When rendering the component though the normal process (not ajax) it is only called once. Here are the two places it's getting called: The AjaxRequestTarget#respondComponent() method calls component.renderComponent() which tells the behaviors that the component was rendered (line 464 of AjaxRequestTarget.java ). The AjaxRequestTarget#respondHeaderContribution() method goes calls each component's renderedBehaviors() method which ends up calling IBehavior#rendered() (lines 538 and 549 of AjaxRequestTarget.java). That should be lines 513 and 524 of AjaxRequestTarget.java The result of this is that Firefox, Safari, and Opera (I don't know about IE) end up executing any javascript that's rendered through a behavior twice. The example I tested was adding an AutoCompleteTextField to a page through ajax. If this is a bug I can add it to the JIRA. -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) -- Caleb Land ( [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology
Re: [Wicket-user] How to test validators?
Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associated with a form and then, using the FormTester, submit the form and check the messages. A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly. Frank On 10/17/06, Erik van Oosten [EMAIL PROTECTED] wrote: Hello, I wrote a custom validator for Dutch burger service numbers. However, whatever I try, I can't seem to be able to write a JUnit test for the onValidate method. An abstract of the code is included below. I tried using EasyMock to mock the form component. However this is not possible because the error method I am calling from my validator is final. Any suggestions on how to test this thing? Regards, Erik. 8--- public class SofiNummerValidator extends NumberValidator { public void onValidate(FormComponent formComponent, Number value) { if (value.longValue() 1000L) { error(formComponent, SofiNummerValidator.TooSmall, messageModel(formComponent)); } int sum = ..some number magic..; if (sum != 0) { error(formComponent, SofiNummerValidator.NotValid, messageModel(formComponent)); } } } 8--- -- 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] Netscape 8.1.2 problems
Hurray. then we can (perhaps) update the faq to also include Netscape 8.1.2. Allen, if you're in the mood for it you are very welcome to try to test the AJAX examples out (with latest 1.x branch) and if it works we would appreciate if you update the FAQ :) Frank On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: I don't know if ff 1.0 works, but Netscape 8.1.2 does, after I fixed it :) Frank Bille wrote: I can see that the Gecko version used is 1.7.5 which AFAIR corresponds to FireFox 1.0 which I don't think works with our AJAX at the moment. Frank On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Strange. It seems that getResponseHeader throws an exception in netscape if the requested header is not there. I added a try/catch block there so it should work now. -Matej Allen James wrote: Has anyone run into issues using AJAX behaviour with Netscape 8.1.2 using the Firefox rendering mode? I am currently using wicket 1.2.2. At first I thought it was maybe just my app, but I tried to run the ajax examples off of http://www.wicket-library.com/wicket-examples/, and I can't get the to run properly either. I can see the initial request get made through the debugger, but then it stalls and the subsequent calls get postponed due to the channel being busy. When I run in IE rendering mode it appears to work just fine. Any tips or help on what I may have setup incorrectly would be appreciated. _ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us - 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 list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to test validators?
in 2.0 the validators are decoupled so it should be trivial to test them fwiw :)-IgorOn 10/17/06, Frank Bille [EMAIL PROTECTED] wrote:Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associatedwith a form and then, using the FormTester, submit the form and checkthe messages.A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly.FrankOn 10/17/06, Erik van Oosten [EMAIL PROTECTED] wrote: Hello, I wrote a custom validator for Dutch burger service numbers. However, whatever I try, I can't seem to be able to write a JUnit test for the onValidate method. An abstract of the code is included below. I tried using EasyMock to mock the form component. However this is not possible because the error method I am calling from my validator is final. Any suggestions on how to test this thing? Regards,Erik. 8--- public class SofiNummerValidator extends NumberValidator { public void onValidate(FormComponent formComponent, Number value) { if (value.longValue() 1000L) { error(formComponent, SofiNummerValidator.TooSmall, messageModel(formComponent)); } int sum = ..some number magic..; if (sum != 0) { error(formComponent, SofiNummerValidator.NotValid, messageModel(formComponent)); } } } 8--- -- 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 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] Ajax refresh feedback
I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death. I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button. But, in our application, there is a lot of different Ajax call then simple link. Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel. All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail. When you change from one place to the other, it is an ajax call and the page does not relad completly. But the browser give sign that it is loading something like if it were a click on a normal link. I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now?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] Ajax refresh feedback
I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page.Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death. I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button. But, in our application, there is a lot of different Ajax call then simple link. Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel. All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail. When you change from one place to the other, it is an ajax call and the page does not relad completly. But the browser give sign that it is loading something like if it were a click on a normal link. I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now?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] Ajax refresh feedback
yesyou need to write your own _javascript_ - wicket has hooks thereseeWicket.Ajax.registerPre/PostCallHandlerandWicket.Ajax.registerFailureHandlerin wicket-ajax.jsyou can use those to toggle visibility of some page-wide loading... indicator -IgorOn 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page.Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death. I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button. But, in our application, there is a lot of different Ajax call then simple link. Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel. All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail. When you change from one place to the other, it is an ajax call and the page does not relad completly. But the browser give sign that it is loading something like if it were a click on a normal link. I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now?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] Ajax refresh feedback
Thanks, it is what I was looking for. I'm not sure I am ready to dive directly into _javascript_ like that, but to know it is possible is interesting.Thanks a lot for the quick answer.Marc On 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yesyou need to write your own _javascript_ - wicket has hooks thereseeWicket.Ajax.registerPre/PostCallHandlerandWicket.Ajax.registerFailureHandlerin wicket-ajax.jsyou can use those to toggle visibility of some page-wide loading... indicator -IgorOn 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page.Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death. I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button. But, in our application, there is a lot of different Ajax call then simple link. Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel. All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail. When you change from one place to the other, it is an ajax call and the page does not relad completly. But the browser give sign that it is loading something like if it were a click on a normal link. I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now?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] Ajax refresh feedback
there is really nothing to itsomewhere in body havediv wicket:id=ajaxindicator style=display:none;LOADING.../divand before your body tag havescript Wicket.Ajax.registerPreCallHandler(function() { document.getElementById(ajaxindicaotor).styles.display=; }Wicket.Ajax.registerPostCallHandler(function() { document.getElementById(ajaxindicaotor).styles.display=none; } -IgorOn 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: Thanks, it is what I was looking for. I'm not sure I am ready to dive directly into _javascript_ like that, but to know it is possible is interesting.Thanks a lot for the quick answer.Marc On 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yesyou need to write your own _javascript_ - wicket has hooks thereseeWicket.Ajax.registerPre/PostCallHandlerandWicket.Ajax.registerFailureHandlerin wicket-ajax.jsyou can use those to toggle visibility of some page-wide loading... indicator -IgorOn 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page.Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death. I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button. But, in our application, there is a lot of different Ajax call then simple link. Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel. All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail. When you change from one place to the other, it is an ajax call and the page does not relad completly. But the browser give sign that it is loading something like if it were a click on a normal link. I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now?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.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] How to test validators?
Frank Bille wrote: Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associated with a form and then, using the FormTester, submit the form and check the messages. That looks like a bit of overkill. But thanks for the suggestion. A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly. This is not possible as all the error methods are final. I solved the problem by extracting my validation code to another method. The only problem with this is that I can not test whether error is called. But that is a very low risk. Thanks, 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] How to test validators?
Nice improvement. Erik. Igor Vaynberg wrote: in 2.0 the validators are decoupled so it should be trivial to test them fwiw :) -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] Wicket-CMS Templates
Perhaps we need to define the problem better... A typical article has an author, date written, date last modified, tags, content, summary, keywords, title, subtitle, etc. Some people like to show everything on their blogs, so you get in a Wicket template: div wicket:id=article h1 wicket:id=title[title]/h1 div wicket:id=header span wicket:id=author/span span wicket:id=lastModified/span span wicket:id=published/span /div div wicket:id=content/div /div Now if someone doesn't like the author, then they would in a PHP world just remove the declaration... In Wicket, we have a component hierarchy where the components need to line up. Remove a component definition form the markup, then you have to modify the Java code as well... How do we solve this? 1. use Wicket templates, but use blocks, which are panels. In an admin interface you get to modify the visibility flag of the blocks on the template. The template's hierarchy remains fixed, but you can modify it to some extent. 2. use Wicket templates, but create additional, CMS specific tags for 'auto-include' of components. 3. drop Wicket type templates but rely on a specific templating solution altogether, and use Wicket for the maintenance screens Martijn On 10/11/06, middledot [EMAIL PROTECTED] wrote: I don't know but if you want a powerful scripting language then you should look at JRuby. If however you are concerned about users, then you could do it entiry using JavaScript. In fact that might open the door for a numer of widgets already in the public domain, yui being one of them. Les Matej Knopp wrote: The part where wicket would really shine is the part of application where you manage content, etc. For the part where you show the content, I'd consider multiple approaches. You definitely need different templating engine (like freemarker), or maybe some scripting language. I'm not sure that using just wicket to do this part would be best approach, since it would limit the usability for users not familiar with wicket. -Matej Ted Roeloffzen wrote: The reason that Joomla and Drupal are so popular is that it is relatively easy to make custom templates and modules. But when we use Wicket and Velocity, it becomes a little too difficult for a normal user. Someone who has little or no programming experience. Then there is another problem. Wicket is very strickt about what it shows on the page. If something is in the HTML and not in the Code, and vice versa, it doesn't work. How could we solve this problem? greets Ted On 10/11/06, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Yep. Look at the wicket-velocity-contrib and wicket-contrib-examples in wicket-stuff. Eelco On 10/10/06, Ted Roeloffzen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: We've never used that. Are there any examples available when using it with Wicket? On 10/10/06, Nick Heudecker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: What about using Velocity templates for markup? On 10/10/06, Gwyn Evans [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: My inclination would be to do as much as you can via CSS, but if you need to add scripting, I'd (a) go with Jython (b) make a major effort on examples documentation! /Gwyn On 10/10/06, Ted Roeloffzen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: hello all, Some of you may know that we're working on a Wicket-CMS as our grad project. We've been thinking about the use of templates. About how we are going to let people create their own templates. As we saw in Drupal and Joomla, there templates are full of PHP-code. If we're going to do the same with Java code, that means that we force the users the learn Java and perhaps even Wicket. This is not very user friendly. We could use only CSS-files and generate the HTML-page and put all the data in DIV's and SPANs. Do any of you have ideas on how to make the templates as user-friendly as possible? greets, Ted -- Download Wicket 1.2.2 now! - http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash
Re: [Wicket-user] How to test validators?
On 10/17/06, Erik van Oosten [EMAIL PROTECTED] wrote: A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly.This is not possible as all the error methods are final. Hmm are you sure of that? http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error(wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map)shows that at least the error method you are using is not final. (In fact are all the error methods in abstract validator not final) Frank - 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] How to test validators?
Yes you are right. The error methods are final on FormComponent not in AbstractValidator. Thanks Frank, Erik. Frank Bille schreef: On 10/17/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly. This is not possible as all the error methods are final. Hmm are you sure of that? http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error(wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error%28wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map%29 shows that at least the error method you are using is not final. (In fact are all the error methods in abstract validator not final) Frank -- 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
[Wicket-user] adding class to listview
I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template:ol !-- want to add a class=foo to this li! -- li wicket:id=itemtext goes here/li /olcode:populateItem(Item item) { //how to add a class to this li? item.addClass(foo);} - 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] adding class to listview
item.add(new SimpleAttributeModifier(class, foo));-IgorOn 10/17/06, Ryan Sonnek [EMAIL PROTECTED] wrote:I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template:ol !-- want to add a class=foo to this li! -- li wicket:id=itemtext goes here/li /olcode:populateItem(Item item) { //how to add a class to this li? item.addClass(foo);} -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] adding class to listview
item.add(new SimpleAttributeModifier(class, foo)); ? Eelco On 10/17/06, Ryan Sonnek [EMAIL PROTECTED] wrote: I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template: ol !-- want to add a class=foo to this li! -- li wicket:id=itemtext goes here/li /ol code: populateItem(Item item) { //how to add a class to this li? item.addClass(foo); } - 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
[Wicket-user] Safari yes, Firefox no
This is a very strange problem. In Firefox, the page display is more or less normal. However, if I display the source, I see the Page Expired source. Clicking on any of the links on the page takes me to the Page Expired page. Using Safari, I don't have this problem. Has anyone seen this before? 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] Safari yes, Firefox no
What version of Firefox are you using?On 10/17/06, Michael Welter [EMAIL PROTECTED] wrote: This is a very strange problem.In Firefox, the page display is more orless normal.However, if I display the source, I see the Page Expired source.Clicking on any of the links on the page takes me to the PageExpired page.Using Safari, I don't have this problem.Has anyone seen this before?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] Ajax refresh feedback
I found there are sevral things that I missed with Ajax links: indicating that some activity is occuring, preventing the user to click several times on the link, and warning the user if something is going wrong (most often, the session has expired). So I extended AjaxLink : public abstract class WaitingAjaxLink extends AjaxLink { final StringResourceModel sessionExpiredModel; protected WaitingAjaxLink(final String id) { super(id); // Load a message for expired session sessionExpiredModel = new StringResourceModel(MyApplication.sessionExpired, this, null); } protected wicket.ajax.IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateOnSuccessScript(CharSequence script) { return ajaxSuccess(); } public CharSequence decorateOnFailureScript(CharSequence script) { String onFailureMessage = WaitingAjaxLink.this.sessionExpiredModel.getString(); return ajaxFailure(' + onFailureMessage + '); } public CharSequence decorateScript(CharSequence script) { return beforeAjaxCall(); + script; } }; } } Here are the JavaScript fucntions: function ajaxFailure(message) { if (document.getElementById) { Mask = document.getElementById('ajaxCallMask'); Mask.style.display = 'none'; } alert(message); } function ajaxSuccess() { if (document.getElementById) { Mask = document.getElementById('ajaxCallMask'); Mask.style.display = 'none'; } } function beforeAjaxCall() { if (document.getElementById) { Mask = document.getElementById('ajaxCallMask'); Mask.style.display = 'block'; } } The element called 'ajaxCallMask' is a div that cover the whole page to prevent the user from clicking on anything. It can contain an animated gif showing activity. Pierre-Yves Marc-Andre Houle a écrit : Thanks, it is what I was looking for. I'm not sure I am ready to dive directly into Javascript like that, but to know it is possible is interesting. Thanks a lot for the quick answer. Marc On 10/17/06, *Igor Vaynberg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: yes you need to write your own javascript - wicket has hooks there see Wicket.Ajax.registerPre/PostCallHandler and Wicket.Ajax.registerFailureHandler in wicket-ajax.js you can use those to toggle visibility of some page-wide loading... indicator -Igor On 10/17/06, *Marc-Andre Houle* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page. Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, *Marc-Andre Houle* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call. I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death. I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button. But, in our application, there is a lot of different Ajax call then simple link. Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel. All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail. When you change from one place to the other, it is an ajax call and the page does not relad completly. But the browser give sign that it is loading something like if it were a click on a normal link. I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now? 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
Re: [Wicket-user] Open Popup via Ajax
Wow, that was idiotic of me. I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not. Is there a way to have _javascript_ open a popup to a page that is not bookmarkable? Looking through the Wicket source I don't see anything quite as simple as urlFor(...) that takes a reference to a Page. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 7:23 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that "return false;" in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName("contentEditorPageMap")).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget("'" + url + "'");if(target != null) tag.put("ondblclick", target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;// Member Variablesprivate String url; /** * Constructor. */public DoubleClickEditorAjaxBehavior(String url){super("onDblClick");this.url = "">} /** * Opens the [EMAIL PROTECTED] SnippetEditorPopupPage}. * * @see wicket.ajax.AjaxEventBehavior#onEvent(wicket.ajax.AjaxRequestTarget) */@Overrideprotected void onEvent(AjaxRequestTarget target){PopupSettings popupSettings = new PopupSettings(PageMap.forName("contentEditorPageMap")).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget("'" + url + "'");if(target != null)target.appendJavascript(popupSettings.getPopupJavaScript());}} It doesn't seem to do anything, though the Ajax debug window shows the following every time I double click: INFO:INFO: Initiating Ajax GET request on /doh?wicket:interface=:0:dynamicPageContent::IBehaviorListenerwicket:behaviorId=3random=0.5027223472182086INFO: Invoking pre-call handler(s)...INFO: Received ajax response (354 characters)INFO:?xml version="1.0" encoding="UTF-8"?ajax-responseevaluate![CDATA[window.open('/doh?wicket:bookmarkablePage=:simplepersistence.feature.dynamicPages.SnippetEditorPopupPage0=karl1=1', 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false;]]/evaluate/ajax-responseINFO: Response parsed. Now invoking steps...ERROR: Exception evaluating _javascript_: SyntaxError: invalid returnINFO: Response processed successfully.INFO: Invoking post-call handler(s)... Can anyone point out what I might be doing wrong or a better way to go about this? Thanks, Karl-Using Tomcat but need to do more? Need to support web services,
Re: [Wicket-user] Ajax refresh feedback
too bad you are blocking the entire window.wicket has ajax channels with different channel modes such as queue/disregard. that way you can disable certain groups of components only by assigning them to the same ajax channel. -IgorOn 10/17/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I found there are sevral things that I missed with Ajax links:indicating that some activity is occuring, preventing the user to clickseveral times on the link, and warning the user if something is goingwrong (most often, the session has expired). So I extended AjaxLink : public abstract class WaitingAjaxLink extends AjaxLink { final StringResourceModel sessionExpiredModel; protected WaitingAjaxLink(final String id) { super(id); // Load a message for expired session sessionExpiredModel = newStringResourceModel(MyApplication.sessionExpired, this, null); } protected wicket.ajax.IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateOnSuccessScript(CharSequence script) { return ajaxSuccess(); } public CharSequence decorateOnFailureScript(CharSequence script) { String >WaitingAjaxLink.this.sessionExpiredModel.getString(); return ajaxFailure(' + onFailureMessage + '); } public CharSequence decorateScript(CharSequence script) { return beforeAjaxCall(); + script; } }; }}Here are the _javascript_ fucntions: function ajaxFailure(message) { if (document.getElementById) { Mask = document.getElementById('ajaxCallMask'); Mask.style.display = 'none'; } alert(message); } function ajaxSuccess() { if (document.getElementById) { Mask = document.getElementById('ajaxCallMask'); Mask.style.display = 'none'; } } function beforeAjaxCall() { if (document.getElementById) { Mask = document.getElementById ('ajaxCallMask'); Mask.style.display = 'block'; } }The element called 'ajaxCallMask' is a div that cover the whole page toprevent the user from clicking on anything. It can contain an animated gif showing activity.Pierre-YvesMarc-Andre Houle a écrit : Thanks, it is what I was looking for.I'm not sure I am ready to dive directly into _javascript_ like that, but to know it is possible is interesting. Thanks a lot for the quick answer. Marc On 10/17/06, *Igor Vaynberg* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: yes you need to write your own _javascript_ - wicket has hooks there see Wicket.Ajax.registerPre/PostCallHandler and Wicket.Ajax.registerFailureHandler in wicket-ajax.js you can use those to toggle visibility of some page-wide loading... indicator -Igor On 10/17/06, *Marc-Andre Houle* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: I was looking at Gmail and I think my example is bad.I think I just said another stupid thing and gmail is actually changing all the page. Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, *Marc-Andre Houle* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call. I want the browser to react like if something is happening during an ajax Call.The fact is : when the server is loaded and the response time is high, I don't want the user to think everything is death.I want the user to think something is happening, the answer will be there shortly. For this, there are IndicatingAjaxLink and the same for submit button.But, in our application, there is a lot of different Ajax call then simple link.Like we have an AJAX tree with links, we use the AjaxPagingNavigator and Ajax tab panel.All those, I'm not sure I want to reimplement them. What I am looking for is maybe something a little like Gmail.When you change from one place to the other, it is an ajax call and the page does not relad completly.But the browser give sign that it is loading something like if it were a click on a normal link.I'm not sure I am clear on this, but for me, it would be something really interesting to have a way identical for each ajax call to tell the user the page is currently refreshing. Is there something like that that exist right now? 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to
Re: [Wicket-user] Open Popup via Ajax
if its not bookmarkable then you can just put that code into attribute modifier and attach it to the link. js poupup settings generates should work fine there.-IgorOn 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Wow, that was idiotic of me. I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not. Is there a way to have _javascript_ open a popup to a page that is not bookmarkable? Looking through the Wicket source I don't see anything quite as simple as urlFor(...) that takes a reference to a Page. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 7:23 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false; And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that return false; in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget(' + url + ');if(target != null) tag.put(ondblclick, target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;// Member Variablesprivate String url; /** * Constructor. */public DoubleClickEditorAjaxBehavior(String url){super(onDblClick);this.url = "">} /** * Opens the [EMAIL PROTECTED] SnippetEditorPopupPage}. * * @see wicket.ajax.AjaxEventBehavior#onEvent(wicket.ajax.AjaxRequestTarget) */@Overrideprotected void onEvent(AjaxRequestTarget target){PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget (' + url + ');if(target != null)target.appendJavascript(popupSettings.getPopupJavaScript());}} It doesn't seem to do anything, though the Ajax debug window shows the following every time I double click: INFO:INFO: Initiating Ajax GET request on /doh?wicket:interface=:0:dynamicPageContent::IBehaviorListenerwicket:behaviorId=3random=0.5027223472182086INFO: Invoking pre-call handler(s)...INFO: Received ajax response (354 characters)INFO:?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[window.open('/doh?wicket:bookmarkablePage=:simplepersistence.feature.dynamicPages.SnippetEditorPopupPage0=karl1=1', 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false;]]/evaluate/ajax-responseINFO: Response parsed. Now invoking steps...ERROR: Exception evaluating _javascript_: SyntaxError: invalid returnINFO:
Re: [Wicket-user] Open Popup via Ajax
erm, the problem is the url - if the page is not bookmarkable you cannot create a url to it without having a page instance. that would be bad cause you would be precreating the page instance so you have its url available in the page that calls it. what is the usecase? does the link do something different if it is single clicked?-IgorOn 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:if its not bookmarkable then you can just put that code into attribute modifier and attach it to the link. js poupup settings generates should work fine there. -IgorOn 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Wow, that was idiotic of me. I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not. Is there a way to have _javascript_ open a popup to a page that is not bookmarkable? Looking through the Wicket source I don't see anything quite as simple as urlFor(...) that takes a reference to a Page. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 7:23 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false; And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that return false; in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget(' + url + ');if(target != null) tag.put(ondblclick, target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;// Member Variablesprivate String url; /** * Constructor. */public DoubleClickEditorAjaxBehavior(String url){super(onDblClick);this.url = "">} /** * Opens the [EMAIL PROTECTED] SnippetEditorPopupPage}. * * @see wicket.ajax.AjaxEventBehavior#onEvent(wicket.ajax.AjaxRequestTarget) */@Overrideprotected void onEvent(AjaxRequestTarget target){PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget (' + url + ');if(target != null)target.appendJavascript(popupSettings.getPopupJavaScript());}} It doesn't seem to do anything, though the Ajax debug window shows the following every time I double click: INFO:INFO: Initiating Ajax GET request on /doh?wicket:interface=:0:dynamicPageContent::IBehaviorListenerwicket:behaviorId=3random=0.5027223472182086INFO: Invoking pre-call handler(s)...INFO: Received ajax response (354 characters)INFO:?xml version=1.0
Re: [Wicket-user] Open Popup via Ajax
Igor, I'm trying to have a Label (not a link) that opens a popup when double-clicked. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 4:53 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax erm, the problem is the url - if the page is not bookmarkable you cannot create a url to it without having a page instance. that would be bad cause you would be precreating the page instance so you have its url available in the page that calls it. what is the usecase? does the link do something different if it is single clicked?-Igor On 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote: if its not bookmarkable then you can just put that code into attribute modifier and attach it to the link. js poupup settings generates should work fine there. -Igor On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Wow, that was idiotic of me. I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not. Is there a way to have _javascript_ open a popup to a page that is not bookmarkable? Looking through the Wicket source I don't see anything quite as simple as urlFor(...) that takes a reference to a Page. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 7:23 AM To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that "return false;" in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName("contentEditorPageMap")).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget("'" + url + "'");if(target != null) tag.put("ondblclick", target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;// Member Variablesprivate String url; /** * Constructor. */public DoubleClickEditorAjaxBehavior(String url){super("onDblClick");this.url = "">} /** * Opens the [EMAIL PROTECTED] SnippetEditorPopupPage}. * * @see wicket.ajax.AjaxEventBehavior#onEvent(wicket.ajax.AjaxRequestTarget) */@Overrideprotected void onEvent(AjaxRequestTarget target){PopupSettings popupSettings = new
Re: [Wicket-user] Open Popup via Ajax
easiest thing to do is probably to reuse Link as it is.abstract class MyLabel extends Panel {MyLabel(String id, IModel model) { Link link=new Link(link) { onclick() { MyLabel.this.onclick(); }} link.add(new SimpleAttributeModifier(ondblclick, this.onclick();); link.setPopupSettings(PageMap.forName(my-label-pagemap).); link.add(new Label(label, model)); }wicket:panela wicket:id=link href="" wicket:id=label[[label]]/span/a/wicket:panel-Igor On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, I'm trying to have a Label (not a link) that opens a popup when double-clicked. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 4:53 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax erm, the problem is the url - if the page is not bookmarkable you cannot create a url to it without having a page instance. that would be bad cause you would be precreating the page instance so you have its url available in the page that calls it. what is the usecase? does the link do something different if it is single clicked?-Igor On 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote: if its not bookmarkable then you can just put that code into attribute modifier and attach it to the link. js poupup settings generates should work fine there. -Igor On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Wow, that was idiotic of me. I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not. Is there a way to have _javascript_ open a popup to a page that is not bookmarkable? Looking through the Wicket source I don't see anything quite as simple as urlFor(...) that takes a reference to a Page. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 7:23 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Open Popup via Ajax this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is: 'contentEditorPageMap', 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no,width=750,height=550'); return false; And I get a java.lang.NoSuchMethodException: simplepersistence.feature.dynamicPages.SnippetEditorPopupPage.init() exception when opening the popup. Is there a better way that I should be trying to do all of this? Something a little less hacky than abusing PopupSettings like this, perhaps? -- Karl From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Igor VaynbergSent: Monday, October 16, 2006 9:16 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup via Ajax you are kinda abusing popup settings class, its not meant to generate _javascript_ for that usecase. the problem is that return false; in the js it generates which is mean to abort he current click event.you def dont need ajax to do this, try whats belowprivate static class DoubleClickEditorBehavior extends AbstractBehavior {void onComponentTag(ComponentTag tag) {PopupSettings popupSettings = new PopupSettings(PageMap.forName(contentEditorPageMap)).setHeight(SnippetEditorPopupPage.WINDOWS_HEIGHT).setWidth(SnippetEditorPopupPage.WINDOW_WIDTH);popupSettings.setTarget (' + url + ');if(target != null) tag.put(ondblclick, target.appendJavascript(popupSettings.getPopupJavaScript());}}-igor On 10/16/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, What I'm trying to do is have a Label that I can double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I just need it to work. However, Ajax seemed easiest so I've added the following Ajax behavior to a Label: private static class DoubleClickEditorAjaxBehavior extends AjaxEventBehavior{// Constantsprivate static final long serialVersionUID = 460292942456978352L;//
Re: [Wicket-user] Safari yes, Firefox no
Firefox v1.5.0.7 Nick Heudecker wrote: What version of Firefox are you using? On 10/17/06, *Michael Welter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This is a very strange problem. In Firefox, the page display is more or less normal. However, if I display the source, I see the Page Expired source. Clicking on any of the links on the page takes me to the Page Expired page. Using Safari, I don't have this problem. Has anyone seen this before? 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user 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 -- 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
[Wicket-user] Programatically access to CSS
Hi everybody, I have my .css file in web context directory i.e webapp/style/abc.css since this .css is used by plain html and wicket , i can't place it in my wicket webpages directory. I want to access this .css file in my webpage. i know , we can access is using HeaderContributor.forCss(Class scope,String path) but it seems it alway need class for scope. so it expect .css in relative to scope Class. how do I access .css from my application context i.e.webapp/style/abc.css thanks in advance, marsh -- View this message in context: http://www.nabble.com/Programatically-access-to-CSS-tf2463427.html#a6867612 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] Programatically access to CSS
the best way is to build the path manually by doing /+contextpath+/style/abc.css you can get the contextpath from the httpservletrequest object ((WebRequest)getRequest()).getHttpServletRequest().getContextPath() -IgorOn 10/17/06, wicketmarsh [EMAIL PROTECTED] wrote: Hi everybody,I have my .css file in web context directory i.e webapp/style/abc.css sincethis .css is used by plain html and wicket , i can't place it in my wicketwebpages directory.I want to access this .css file in my webpage. i know , we can access is using HeaderContributor.forCss(Class scope,String path) but it seems italway need class for scope. so it expect .css in relativeto scope Class.how do I access .css from my application context i.e.webapp/style/abc.css thanks in advance,marsh--View this message in context: http://www.nabble.com/Programatically-access-to-CSS-tf2463427.html#a6867612 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 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] Safari yes, Firefox no
Can you refresh the page ? Does it bring up the Page Expired again ? Try it with ie. I guess that shouldn't have any problems as well. On 10/18/06, Michael Welter [EMAIL PROTECTED] wrote: This is a very strange problem. In Firefox, the page display is more or less normal. However, if I display the source, I see the Page Expired source. Clicking on any of the links on the page takes me to the Page Expired page. Using Safari, I don't have this problem. Has anyone seen this before? 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
[Wicket-user] they'll cashmere
The drug-resistant strains, which are virtually untreatable, already have killed people in the United States and Eastern Europe. This agreement represents another positive step in preventing Michigan children from becoming addicted to tobacco. Cosgrove III, Governor Jon S. Currently, the site includes information about lawmakers from Arizona, California, Connecticut, Illinois, Maryland, New Jersey, New York, North Carolina, Ohio and Pennsylvania. This agreement represents another positive step in preventing Michigan children from becoming addicted to tobacco. This was a long hard fight. The agreement also imposes significant marketing restrictions that make it virtually impossible for Reynolds to market a flavored cigarette to youth in the future. Bereket Simon is advisor to Ethiopian Prime Minister Meles Zenawi. King And Others Reach Settlement With R. Marine Corps Lance Corporal Christopher B. The agreement also imposes significant marketing restrictions that make it virtually impossible for Reynolds to market a flavored cigarette to youth in the future. SNOW: All right, welcome. However, to develop these applications, researchers must fill gaps in the fundamental understanding of enzymatic processes. Interactive charts are available on a Web site that details the amount of contributions from lobbyists and political action committees to federal lawmakers. A federal grant awarded by the U. He tells VOA English to Africa reporter James Butty he hopes the Islamists will think carefully before putting their Jihad threat into action. Marine Corps Lance Corporal Christopher B. Redox enzymes, those targeted in the new project, are essential to all life forms because they enable reaction cycles of reduction and oxidation through electron transfer within cells. A recent analysis by that United Nations organization found that new strains, known as extreme-drug-resistant tuberculosis, or XDR-TB, have been identified on every continent. Redox enzymes, those targeted in the new project, are essential to all life forms because they enable reaction cycles of reduction and oxidation through electron transfer within cells. SNOW: All right, welcome. The agreement also imposes significant marketing restrictions that make it virtually impossible for Reynolds to market a flavored cigarette to youth in the future. Research shows that healthier students have higher attendance rates, better behavior, and superior test scores. Currently, the site includes information about lawmakers from Arizona, California, Connecticut, Illinois, Maryland, New Jersey, New York, North Carolina, Ohio and Pennsylvania. This clearly indicates the provocative nature of the fundamentalist groups in Somalia. However, to develop these applications, researchers must fill gaps in the fundamental understanding of enzymatic processes. Their work will save lives, transform our economy and open the doors to the jobs of the future. The agreement also imposes significant marketing restrictions that make it virtually impossible for Reynolds to market a flavored cigarette to youth in the future. Democrats remain committed to a foreign policy that is both tough and smart. It is now clear we expected too much of them. Cosgrove III, Governor Jon S. Over the last four years, the Bush Administration has outsourced our diplomacy with North Korea to other nations and failed to take the lead in making sure America remains safe and secure. The full text of the Executive Order is below. Over the last four years, the Bush Administration has outsourced our diplomacy with North Korea to other nations and failed to take the lead in making sure America remains safe and secure. But we did expect them to protect our kids. This agreement represents another positive step in preventing Michigan children from becoming addicted to tobacco. Interactive charts are available on a Web site that details the amount of contributions from lobbyists and political action committees to federal lawmakers. King And Others Reach Settlement With R. Reynolds to discontinue the cigarettes. - 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] Where can i find hibernate integration example
Hi, Can you pleaes tell me where i can find wicket andhibernate integration example ? Thank you. - 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] Where can i find hibernate integration example
we have wicket-phonebook in wicket-stuff project on sf.net in svn. it is wicket+spring+hibernate.if you want just wicket+hibernate google databinder-igor On 10/17/06, ying lcs [EMAIL PROTECTED] wrote: Hi,Can you pleaes tell me where i can find wicket andhibernateintegrationexample ?Thank you.-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