ClassCastException with MetaDataEntry
Hello everybody, after upgrading to the latest trunk, none of my pages render anymore. The Exception I get is below. Before upgrading, everything worked fine, so I don't think it's in my code (but you never know). I'll get back to beta4 for now I guess... 2007-10-18 09:22:40 ERROR: RequestCycle.logRuntimeException - Exception in rendering component: [MarkupContainer [Component id = bodyContainer, page = de.indyphone.logokits.wicket.LogoKitOverviewPage, path = 0:bodyContainer.IndyPage$3, isVisible = true, isVersioned = true]] org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = bodyContainer, page = de.indyphone.logokits.wicket.LogoKitOverviewPage, path = 0:bodyContainer.IndyPage$3, isVisible = true, isVersioned = true]] at org.apache.wicket.Component.renderComponent(Component.java:2301) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1348) at org.apache.wicket.Component.render(Component.java:2113) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1234) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1364) at org.apache.wicket.Page.onRender(Page.java:1362) at org.apache.wicket.Component.render(Component.java:2113) at org.apache.wicket.Page.renderPage(Page.java:858) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1097) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:325) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:175) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.ClassCastException: org.apache.wicket.MetaDataEntry cannot be cast to org.apache.wicket.behavior.IBehavior at org.apache.wicket.Component.render(Component.java:2130) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1234) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1401) at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1338) at org.apache.wicket.Component.renderComponent(Component.java:2267) ... 35 more -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
A little more detail: the component having the MetaDataEntry is a Webmarkupcontainer which also has a WicketAjaxIndicatorAppender. Not sure if this is related. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RadioChoice vs. RepeatingView inside RadioGroup
Why do you *need* to add a class to the label? span wicket:id=radiogroup class=myradiogroupclass ... /span css: .myradiogroupclass label { color : red; font-size : 72px; } Martijn On 10/18/07, Daniel Kröger [EMAIL PROTECTED] wrote: Hi, using a RadioChoice within my project is out of question because RadioChoice seems to render the label-tag behind the input type=radio-Tag statically, but i need to add a class-attribute to that label-tag. So one attempt could be using a RepeatingView inside the RadioGroup to dynamically generate the Radios as proposed here: http://www.nabble.com/Re%3A-Customizing-RadioChoice-p13067505.html Unfortunately I'm a bit stuck there since I'm quite new to Wicket. Can someone please provide me with an example for how to use RepeatingView inside RadioGroup? Or is there a better way to achieve the desired behavior? Thanks in advance! Best regards Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
Hi, we are experimenting a little with component data representation right now in order to improve memory consumption, so the trunk might be a little unstable though. But so far I am unable to reproduce your exception. Sorry for inconvenience. -Matej On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: A little more detail: the component having the MetaDataEntry is a Webmarkupcontainer which also has a WicketAjaxIndicatorAppender. Not sure if this is related. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RadioChoice vs. RepeatingView inside RadioGroup
Oh, you're right Martijn. How could I not even think about that!?! ;) Thanks! Daniel -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 11:13 AM To: users@wicket.apache.org Subject: Re: RadioChoice vs. RepeatingView inside RadioGroup Why do you *need* to add a class to the label? span wicket:id=radiogroup class=myradiogroupclass ... /span css: .myradiogroupclass label { color : red; font-size : 72px; } Martijn On 10/18/07, Daniel Kröger [EMAIL PROTECTED] wrote: Hi, using a RadioChoice within my project is out of question because RadioChoice seems to render the label-tag behind the input type=radio-Tag statically, but i need to add a class-attribute to that label-tag. So one attempt could be using a RepeatingView inside the RadioGroup to dynamically generate the Radios as proposed here: http://www.nabble.com/Re%3A-Customizing-RadioChoice-p13067505.html Unfortunately I'm a bit stuck there since I'm quite new to Wicket. Can someone please provide me with an example for how to use RepeatingView inside RadioGroup? Or is there a better way to achieve the desired behavior? Thanks in advance! Best regards Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! johan On 10/18/07, Matej Knopp [EMAIL PROTECTED] wrote: Hi, we are experimenting a little with component data representation right now in order to improve memory consumption, so the trunk might be a little unstable though. But so far I am unable to reproduce your exception. Sorry for inconvenience. -Matej On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: A little more detail: the component having the MetaDataEntry is a Webmarkupcontainer which also has a WicketAjaxIndicatorAppender. Not sure if this is related. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
Hello Matej, 2007/10/18, Matej Knopp [EMAIL PROTECTED]: Hi, we are experimenting a little with component data representation right now in order to improve memory consumption, so the trunk might be a little unstable though. But so far I am unable to reproduce your exception. Sorry for inconvenience. Ok, I'll stay with beta4 for now, no problem. Thanks to maven this is an easy switch. Trunk not being stable all the time is what it's for after all. Just a little nerve-wracking when this happens mere hours before launching a site (more on that later) *laughs manically* -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Presentation at the Java User Group Hamburg, Germany
Hi, just wanted to let you know that I had a quite successful presentation yesterday evening at the Java User Group Hamburg, Germany. 25 interested Java Developers attended at the presentation and we had a detailed discussion afterwards on what Wicket can do and especially can do better than other frameworks - which continued when we went for a drink later the evening. ;-) What I learned from the presentation was that the basic example within the presentation was good as an entry. But the attendants didn't get the global vision. I presented a small dummy-app afterwards with acegi-login, guice-injection and a datatable feeded by ibatis - that was the point where most of the people got the 'Ahaa' and where the interesting discussions began. You'll find yesterday's slides in the wiki: http://cwiki.apache.org/confluence/display/WICKET/Slides+and+presentations Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File download and page refresh
Hi everyone! Is it possible to build a form button which triggers a download *and* a page refresh? Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Can't promise anything, these days are so packed already. But maybe I'll find some time this evening to make a quickstart and/or testcase. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Ok, a simple test failed very early, I feared I had to reproduce a lot of my application. I created https://issues.apache.org/jira/browse/WICKET-1081 where I attached a TestCase. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
thx, i fixed it. Please let me know if this first works for you johan On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: 2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Ok, a simple test failed very early, I feared I had to reproduce a lot of my application. I created https://issues.apache.org/jira/browse/WICKET-1081 where I attached a TestCase. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (OT) Calendar UI?
Hi, We're working on a wicket based calendar atm. It's not just a UI but rather a whole calendar application. Still, perhaps it can be of use to you. Our UI is currently being redesigned and should be comparable with google calendar's in a short while. Check it out at http://www.webical.org (the demo is on http://demo.webical.org) and see if it's something you can use. Input is very much appreciated as well btw. Regards, Ivo van Dongen On 10/17/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: A bit off-topic, but I need to port an event calendar on our site to Wicket (as part of our overall conversion). The backend stuff is all a piece of cake. But does anyone know of a good component or UI kit that will make a nice looking calendar UI easy? Something that looks like Google calendar would be good. Jeremy Thomerson -- sent from a wireless device - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500
Re: Ajax question
Hi, what wicket version are you using and how do you re-invoke the javascript on ajax update? if you are using wicket 1.3 the best way to do invoke the javascript is using IHeaderResponse.renderOnDomReadyJavascript (works on regular page refresh and also on ajax update). -Matej On 10/18/07, Doug Leeper [EMAIL PROTECTED] wrote: I have a question that I hopefully someone will be able to answer. I have created a Wicket based framework on top of YUI Context menu in wicketstuff (menu2). Everything works as expected. It can be used on Tree/Table for those that are interested. However, the issue that I have come across is that the menu stops working when I send back the component that the contextmenu is listening on. I understand that the DOM has changed and the menu needs to be recreated to reestablish its association. What I don't know is what is the best way to reestablish the contextmenu. I resend the Javascript to recreate the menu but that doesn't work. Is there something that I am missing? How do I have the YUI ContextMenu (in Javascript) re-listen on the recently sent component? Thanks in advance, - Doug P.S. If you are interested in having a ContextMenu for your Wicket Application, please check out package org.wicketstuff.yui.markup.html.menu2.contextMenu. Please be aware that this is a work in progress but does work. There is also a working example in the wicketstuff-yui-examples. I hope to have an example for Tree up very soon. -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13267305 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to change format in DateTimeField?
there is a good example about use DateTextfield in : http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField(dateTextField, new PropertyModel(this,date), new StyleDateConverter(S-, true)), but DateTimeField only has a constructor: new DateTimeField(dateTimeFromTextField, new PropertyModel(this, date)) so I don't know how to change its format, also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I might asking dump question becuase I am too new to wicket (I use asp.net before). Many thanks! -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13272285 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
You mean DateTextField (instead of DateTimeField). It has also this constructor: DateTextField(String id, IModel model, String datePattern) where datePattern can be: mm/DD/. Alex raybristol wrote: there is a good example about use DateTextfield in : http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField(dateTextField, new PropertyModel(this,date), new StyleDateConverter(S-, true)), but DateTimeField only has a constructor: new DateTimeField(dateTimeFromTextField, new PropertyModel(this, date)) so I don't know how to change its format, also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I might asking dump question becuase I am too new to wicket (I use asp.net before). Many thanks! -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13274525 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portlet howto
Charly wrote: Hello, I have the beginning of a solution ! Cool ! My code is based on Liferay's struts support with some adaptations. At this time, Guestbook portlet sample is ok, and I've made a modification in wicket to get Navomatic and other bookmarkablePage working. The main point is that Liferay want a new HttpServletRequest (from theirs object) in ServletContextProvider implementation of ServletContextProvider and we must copy the request's parameters from the original request to the new one. Weird, but I guess it is something Liferay specific. I translate also the _wu (WicketPortlet.WICKET_URL_PORTLET_PARAMETER) parameter into differents parameters Why? The WicketPortlet dispatches to the servlet/filter using this url, so the underlying web container (e.g. catalina) should already provide the query string parameters as request parameters (as required by the servlet spec). You can have a look to my 3 classes at the end of this mail. I notice that you don't set the provided Map portletArg arguments on the created PortletURLImpl in createResourceURL method. You probably should... I've got a problem for all bookmarkablePage, because the argument are encoded by Wicket, and Liferay encode it second time. Liferay shouldn't be doing that: you should get back the parameters previously set on a PortletURL exactly the same. Seems like a Liferay bug to me. The parameter received is like %3Aorg.apache.wicket.examples.navomatic.Page2. So I add a call to decode function from org.apache.wicket.protocol.http.RequestUtils Here is my code modification (it's maybe possible to find a another solution too) in the class org.apache.wicket.protocol.http.request.WebRequestCodingStrategy, method addBookmarkablePageParameters(final Request request, final RequestParameters parameters) (line : 521 / SVN revision : 585043) I change from final String[] components = Strings.split(requestString, Component.PATH_SEPARATOR); to final String[] components = Strings.split(RequestUtils.decode(requestString),Component.PATH_SEPARATOR); (Note: I test it with jetspeed and it works) The main remaining problem is about Ajax portlet. I have this Error : === 15:38:53,248 ERROR [[default]:731] Servlet.service() pour la servlet default a lancé une exception java.lang.NullPointerException at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:204) at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66) Seems like a strange NPE to me. Looking at WebResponse.java:204, the only null reference in that code line could be the url string itself, but as the stacktrace indicates, the redirect is called from BufferedWebResponse.java:66 and there it only does that *if* the url != null. Can you further debug this? Ate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Presentation at the Java User Group Hamburg, Germany
Looks good though my german is very rusty. Thanx for sharing. Frank On 10/18/07, Jan Kriesten [EMAIL PROTECTED] wrote: Hi, just wanted to let you know that I had a quite successful presentation yesterday evening at the Java User Group Hamburg, Germany. 25 interested Java Developers attended at the presentation and we had a detailed discussion afterwards on what Wicket can do and especially can do better than other frameworks - which continued when we went for a drink later the evening. ;-) What I learned from the presentation was that the basic example within the presentation was good as an entry. But the attendants didn't get the global vision. I presented a small dummy-app afterwards with acegi-login, guice-injection and a datatable feeded by ibatis - that was the point where most of the people got the 'Ahaa' and where the interesting discussions began. You'll find yesterday's slides in the wiki: http://cwiki.apache.org/confluence/display/WICKET/Slides+and+presentations Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
Thanks for your reply, I actually mean DateTimeField and I want to do the same thing as in DateTextField, because I need no only the date but the time as well. Many thanks Ray Alex Objelean wrote: You mean DateTextField (instead of DateTimeField). It has also this constructor: DateTextField(String id, IModel model, String datePattern) where datePattern can be: dd/MM/. Alex raybristol wrote: there is a good example about use DateTextfield in : http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField(dateTextField, new PropertyModel(this,date), new StyleDateConverter(S-, true)), but DateTimeField only has a constructor: new DateTimeField(dateTimeFromTextField, new PropertyModel(this, date)) so I don't know how to change its format, also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I might asking dump question becuase I am too new to wicket (I use asp.net before). Many thanks! -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13276631 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (OT) Calendar UI?
Great. I for one like it. On 10/18/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We're working on a wicket based calendar atm. It's not just a UI but rather a whole calendar application. Still, perhaps it can be of use to you. Our UI is currently being redesigned and should be comparable with google calendar's in a short while. Check it out at http://www.webical.org (the demo is on http://demo.webical.org) and see if it's something you can use. Input is very much appreciated as well btw. Regards, Ivo van Dongen On 10/17/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: A bit off-topic, but I need to port an event calendar on our site to Wicket (as part of our overall conversion). The backend stuff is all a piece of cake. But does anyone know of a good component or UI kit that will make a nice looking calendar UI easy? Something that looks like Google calendar would be good. Jeremy Thomerson -- sent from a wireless device - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500
Re: Ajax question
I am using 1.3 (Trunk). I am calling AjaxRequestTarget.target.appendJavascript() right after i call AjaxRequestTarget.target.addComponent(). Is this the right approach? Do I have access to IHeaderResponse in an Ajax call? Thanks - Doug -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13277031 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
adding (prepending) Javascript to onchange
I have a drop down that submits the form when the selection changes (wantOnSelectionChangedNotifications returns true). I would like to add some javascript to display a please wait message before the form is submitted. How can I do that? Thanks, Adam
Input Text Mask?
Is anyone interested in using the mask script (below) to a component in a Wicket extension? The script prevents invalid input in a text field as the user types (similar to the Atlas version: http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I didn't see a component in Wicket that would accomplish this out-of-the-box and thought it would be a cool addition to Wicket. For example to force the input to mask a phone number: input type=text onfocus=InputTextMask.processMaskFocus(this, (999)999-, true); / /** * InputTextMask script used for mask/regexp operations. * Mask Individual Character Usage: * 9 - designates only numeric values * L - designates only uppercase letter values * l - designates only lowercase letter values * A - designates only alphanumeric values * X - denotes that a custom client script regular expression is specified/li * All other characters are assumed to be special characters used to mask * the input component * Example 1: * (999)999- only numeric values can be entered where the the character * position value is 9. Parenthesis and dash are non-editable/mask characters. * Example 2: * 99L-ll-X[^A-C]X only numeric values for the first two characters, * uppercase values for the third character, lowercase letters for the * fifth/sixth characters, and the last character X[^A-C]X together counts * as the eighth character regular expression that would allow all characters * but A, B, and C. Dashes outside the regular expression are * non-editable/mask characters. */ var InputTextMask = { processMaskFocus: function(input, mask, clearWhenInvalid){ // create an input mask and register it on the specified input (if it hasnt already been added by a previous call InputTextMask.createInputMask(input, mask, clearWhenInvalid); if(input.value.length == 0){ // when the input value is empty populate it with the viewing mask and move the cursor to the // beginning of the input field var cursorPos = InputTextMask.getCursorPosition(input, input.value); input.value = input.mask.viewMask; InputTextMask.moveCursorToPosition(input, null, cursorPos); } }, getEvent: function(e) { // get the event either from the window or from the passed event return (typeof event != 'undefined')? event: e; }, handleEventBubble: function(keyEvent, keyCode){ // this method ensures that the key enterned by the user is not propagated unless it is a tab or arrow key try { if(keyCode (keyCode.isTab || keyCode.isLeftOrRightArrow)){ // allow all tab/arrow keys by returning true- no further action required return true; } keyEvent.cancelBubble = true; if(keyEvent.stopPropagation){ // prevent other event triggers keyEvent.stopPropagation(); } if(keyEvent.preventDefault){ // prevent the default event from firing. in this case it is propagation of the keyed input keyEvent.preventDefault(); } return false; } catch(e) { alert(e.message); } }, createInputMask: function(input, mask, clearWhenInvalid) { // if this input hasnt already registered its mask go ahead and do so now. This only needs to be performed the // first time the input is encountered when it gains focus. It will attach the MaskType object to the input object // add add all of the appropriate event listeners to ensure that the mask is applied if(!input.mask || input.mask.rawMask != mask){ input.mask = new InputTextMask.MaskType(input, mask, clearWhenInvalid); // add the event listeners that will ensure that when the input contains an incomplete mask it will be remove. // Also, make sure that the keydown event is fired from this point forward thus invoking the mask format. if(input.addEventListener){ // most doms input.addEventListener('blur', function(){input.mask.removeValueWhenInvalid();}, false); input.addEventListener('keydown', function(e){return input.mask.processMaskFormatting(e);}, false); if(window.opera){ // in opera- need to ensure that the keypress event
RE: Wicket Meetup: 33 attendees and counting
Excellent idea. I've contacted Klaasjan Tukker and he says we can send out a mailing over the NLJUG mailinglist. All I need is a nice design :) Arje - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Presentation at the Java User Group Hamburg, Germany
I just used your presentation to prove if I've understood the key-concepts of wicket - as it turns out I did ;-) thanks for sharing Michael Jan Kriesten wrote: Hi, just wanted to let you know that I had a quite successful presentation yesterday evening at the Java User Group Hamburg, Germany. 25 interested Java Developers attended at the presentation and we had a detailed discussion afterwards on what Wicket can do and especially can do better than other frameworks - which continued when we went for a drink later the evening. ;-) What I learned from the presentation was that the basic example within the presentation was good as an entry. But the attendants didn't get the global vision. I presented a small dummy-app afterwards with acegi-login, guice-injection and a datatable feeded by ibatis - that was the point where most of the people got the 'Ahaa' and where the interesting discussions began. You'll find yesterday's slides in the wiki: http://cwiki.apache.org/confluence/display/WICKET/Slides+and+presentations Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wicket-Presentation-at-the-Java-User-Group-Hamburg%2C-Germany-tf4646019.html#a13278152 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax question
FYI...there is a working example of this problem in the wicketstuff-yui-examples project under Context Menu 2 - Tree -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13278196 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax question
On 10/18/07, Doug Leeper [EMAIL PROTECTED] wrote: I am using 1.3 (Trunk). I am calling AjaxRequestTarget.target.appendJavascript() right after i call AjaxRequestTarget.target.addComponent(). Is this the right approach? Do I have access to IHeaderResponse in an Ajax call? Have your component implement IHeaderContributor and override void renderHead(final IHeaderResponse response); Thanks - Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File download and page refresh
you can redirect to a page that has a meta refresh pointing to a file... -igor On 10/18/07, Federico Fanton [EMAIL PROTECTED] wrote: Hi everyone! Is it possible to build a form button which triggers a download *and* a page refresh? Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding (prepending) Javascript to onchange
override oncomponenttag and add your javascript there? -igor On 10/18/07, Adam Koch [EMAIL PROTECTED] wrote: I have a drop down that submits the form when the selection changes (wantOnSelectionChangedNotifications returns true). I would like to add some javascript to display a please wait message before the form is submitted. How can I do that? Thanks, Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input Text Mask?
would you be interested in making this a subclass of textfield and throwing it into wicketstuff-minis project which is in wicket-stuff? -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Is anyone interested in using the mask script (below) to a component in a Wicket extension? The script prevents invalid input in a text field as the user types (similar to the Atlas version: http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I didn't see a component in Wicket that would accomplish this out-of-the-box and thought it would be a cool addition to Wicket. For example to force the input to mask a phone number: input type=text onfocus=InputTextMask.processMaskFocus(this, (999)999-, true); / /** * InputTextMask script used for mask/regexp operations. * Mask Individual Character Usage: * 9 - designates only numeric values * L - designates only uppercase letter values * l - designates only lowercase letter values * A - designates only alphanumeric values * X - denotes that a custom client script regular expression is specified/li * All other characters are assumed to be special characters used to mask * the input component * Example 1: * (999)999- only numeric values can be entered where the the character * position value is 9. Parenthesis and dash are non-editable/mask characters. * Example 2: * 99L-ll-X[^A-C]X only numeric values for the first two characters, * uppercase values for the third character, lowercase letters for the * fifth/sixth characters, and the last character X[^A-C]X together counts * as the eighth character regular expression that would allow all characters * but A, B, and C. Dashes outside the regular expression are * non-editable/mask characters. */ var InputTextMask = { processMaskFocus: function(input, mask, clearWhenInvalid){ // create an input mask and register it on the specified input (if it hasnt already been added by a previous call InputTextMask.createInputMask(input, mask, clearWhenInvalid); if(input.value.length == 0){ // when the input value is empty populate it with the viewing mask and move the cursor to the // beginning of the input field var cursorPos = InputTextMask.getCursorPosition(input, input.value); input.value = input.mask.viewMask; InputTextMask.moveCursorToPosition(input, null, cursorPos); } }, getEvent: function(e) { // get the event either from the window or from the passed event return (typeof event != 'undefined')? event: e; }, handleEventBubble: function(keyEvent, keyCode){ // this method ensures that the key enterned by the user is not propagated unless it is a tab or arrow key try { if(keyCode (keyCode.isTab || keyCode.isLeftOrRightArrow)){ // allow all tab/arrow keys by returning true- no further action required return true; } keyEvent.cancelBubble = true; if(keyEvent.stopPropagation){ // prevent other event triggers keyEvent.stopPropagation(); } if(keyEvent.preventDefault){ // prevent the default event from firing. in this case it is propagation of the keyed input keyEvent.preventDefault(); } return false; } catch(e) { alert(e.message); } }, createInputMask: function(input, mask, clearWhenInvalid) { // if this input hasnt already registered its mask go ahead and do so now. This only needs to be performed the // first time the input is encountered when it gains focus. It will attach the MaskType object to the input object // add add all of the appropriate event listeners to ensure that the mask is applied if(!input.mask || input.mask.rawMask != mask){ input.mask = new InputTextMask.MaskType(input, mask, clearWhenInvalid); // add the event listeners that will ensure that when the input contains an incomplete mask it will be remove. // Also, make sure that the keydown event is fired from this point forward thus invoking the mask format. if(input.addEventListener){ // most doms input.addEventListener('blur',
Re: how to change format in DateTimeField?
however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField(dateTextField, new PropertyModel(this,date), new StyleDateConverter(S-, true)), but DateTimeField only has a constructor: new DateTimeField(dateTimeFromTextField, new PropertyModel(this, date)) so I don't know how to change its format, Provide a custom datetextfield by overriding newDateTextField(String, PropertyModel) also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I think there's an open issue for that. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax question
I just found this. With a AjaxRequestTarget, you can get the HeaderResponse. Unfortunately, it still doesn't work :-( -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13279426 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax update of component screws up
Hi, There was an interesting case recently, whereby Wicket seemed to be not updating my page properly with an ajax request. I have 3 classes, A, which is a page, B and C which are panels. A will add B initially, and after an ajax request (triggered by a button), replace B with C. The parent container will be added as an ajax component update. Once updated, the content after the component all disappeared. My markup look like something below A.html html body div[some content]/div span wicket:id=container span wicket:id=bb/span /span div[more content]/div /body /html B.html html body wicket:panel div[even more content]/div div class=something / /wicket:panel /body /html C.html html body wicket:panel div[even even more content]/div div class=something / /wicket:panel /body /html I did managed to resolve the issue, by replacing div class=something / with div class=something/div. It seemed that somehow wicket just went on ahead to remove all the tags after div class=something / as well. Does anyone have the same issue? I am using 1.3 beta 4. Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax update of component screws up
kent lai wrote: Hi, There was an interesting case recently, whereby Wicket seemed to be not updating my page properly with an ajax request. I have 3 classes, A, which is a page, B and C which are panels. A will add B initially, and after an ajax request (triggered by a button), replace B with C. The parent container will be added as an ajax component update. Once updated, the content after the component all disappeared. My markup look like something below A.html html body div[some content]/div span wicket:id=container span wicket:id=bb/span /span div[more content]/div /body /html B.html html body wicket:panel div[even more content]/div div class=something / /wicket:panel /body /html C.html html body wicket:panel div[even even more content]/div div class=something / /wicket:panel /body /html I did managed to resolve the issue, by replacing div class=something / with div class=something/div. It seemed that somehow wicket just went on ahead to remove all the tags after div class=something / as well. Does anyone have the same issue? I am using 1.3 beta 4. Kent I don't remember where I saw it, but this morning either in an email or one of the forums, I saw a note that basically said that wicket will not work (in the situation you describe) unless you have separate div and /div tags... nbc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Input Text Mask?
Sure. How would I go about doing so? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:11 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? would you be interested in making this a subclass of textfield and throwing it into wicketstuff-minis project which is in wicket-stuff? -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Is anyone interested in using the mask script (below) to a component in a Wicket extension? The script prevents invalid input in a text field as the user types (similar to the Atlas version: http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I didn't see a component in Wicket that would accomplish this out-of-the-box and thought it would be a cool addition to Wicket. For example to force the input to mask a phone number: input type=text onfocus=InputTextMask.processMaskFocus(this, (999)999-, true); / /** * InputTextMask script used for mask/regexp operations. * Mask Individual Character Usage: * 9 - designates only numeric values * L - designates only uppercase letter values * l - designates only lowercase letter values * A - designates only alphanumeric values * X - denotes that a custom client script regular expression is specified/li * All other characters are assumed to be special characters used to mask * the input component * Example 1: * (999)999- only numeric values can be entered where the the character * position value is 9. Parenthesis and dash are non-editable/mask characters. * Example 2: * 99L-ll-X[^A-C]X only numeric values for the first two characters, * uppercase values for the third character, lowercase letters for the * fifth/sixth characters, and the last character X[^A-C]X together counts * as the eighth character regular expression that would allow all characters * but A, B, and C. Dashes outside the regular expression are * non-editable/mask characters. */ var InputTextMask = { processMaskFocus: function(input, mask, clearWhenInvalid){ // create an input mask and register it on the specified input (if it hasnt already been added by a previous call InputTextMask.createInputMask(input, mask, clearWhenInvalid); if(input.value.length == 0){ // when the input value is empty populate it with the viewing mask and move the cursor to the // beginning of the input field var cursorPos = InputTextMask.getCursorPosition(input, input.value); input.value = input.mask.viewMask; InputTextMask.moveCursorToPosition(input, null, cursorPos); } }, getEvent: function(e) { // get the event either from the window or from the passed event return (typeof event != 'undefined')? event: e; }, handleEventBubble: function(keyEvent, keyCode){ // this method ensures that the key enterned by the user is not propagated unless it is a tab or arrow key try { if(keyCode (keyCode.isTab || keyCode.isLeftOrRightArrow)){ // allow all tab/arrow keys by returning true- no further action required return true; } keyEvent.cancelBubble = true; if(keyEvent.stopPropagation){ // prevent other event triggers keyEvent.stopPropagation(); } if(keyEvent.preventDefault){ // prevent the default event from firing. in this case it is propagation of the keyed input keyEvent.preventDefault(); } return false; } catch(e) { alert(e.message); } }, createInputMask: function(input, mask, clearWhenInvalid) { // if this input hasnt already registered its mask go ahead and do so now. This only needs to be performed the // first time the input is encountered when it gains focus. It will attach the MaskType object to the input object // add add all of the appropriate event listeners to ensure that the mask is applied if(!input.mask || input.mask.rawMask != mask){ input.mask = new InputTextMask.MaskType(input, mask, clearWhenInvalid); // add the event listeners that will ensure that when the input contains an incomplete mask it will be remove. // Also, make sure that the keydown event is fired from this point forward thus invoking the mask
Re: how to change format in DateTimeField?
On 10/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote: also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I think there's an open issue for that. maybe we could use the input text mask ( http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx) which was mentioned by william in a thread recently. but then it would have to be in a wicket core project (eg. wicket-extensions) instead of the suggested wicketstuff-minis... Gerolf
Re: Ajax question
You should make your component implement IHeaderContributor. Or your behavior, depends on how you implement your menu. Then you don't have to worry about AjaxRequestTarget. -Matej On 10/18/07, Doug Leeper [EMAIL PROTECTED] wrote: I just found this. With a AjaxRequestTarget, you can get the HeaderResponse. Unfortunately, it still doesn't work :-( -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13279426 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to change format in DateTimeField?
Would it make more sense to add it to extensions instead? -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:39 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? On 10/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote: also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I think there's an open issue for that. maybe we could use the input text mask ( http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx) which was mentioned by william in a thread recently. but then it would have to be in a wicket core project (eg. wicket-extensions) instead of the suggested wicketstuff-minis... Gerolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
Does it work well? Any issues with licenses/ dependencies? If it is a big improvement, I'd be ok with it if the rest agrees. A good mask component imho would fit wicket-extensions. Though we have to be careful not get ourselves into more maintenance obligations. yep, i totally agree with. also, thanks for pointing out possible limitations/restrictions/concerns, which i should have done in the first place. Gerolf
wicket:message does not honor xmlns
With the following markup, html xmlns=http://www.w3.org/1999/xhtml; xmlns:w=http://wicket.apache.org ... img w:message=alt:home_image alt=Home width=97 height=82src=images/mainmenu- home.jpg / ... /html w:message does not work as wicket:message. The following is reported in the logs: INFO - MarkupResourceData - You are using a non-standard component name: w
Re: how to change format in DateTimeField?
On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: There are no licenses or dependencies. This is in itself a problem :). You really should pick a license, or make it public domain. But the best way of ensuring compatibility with the rest of the world is to make it BSD or MIT licensed. Picking a (L)GPL license will ensure Wicket can't ever distribute it in the core. I also think wicketstuff-minis won't accept the contribution if you use (L)GPL. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to change format in DateTimeField?
I see... Not sure how the licensing works, but whatever is the suggested license is fine with me. I'm not much of a business guru and wouldn't mind leaving it up to you Wicket folks ;o) I just need to know what the next step is so that others can make use of it :o) -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 2:57 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: There are no licenses or dependencies. This is in itself a problem :). You really should pick a license, or make it public domain. But the best way of ensuring compatibility with the rest of the world is to make it BSD or MIT licensed. Picking a (L)GPL license will ensure Wicket can't ever distribute it in the core. I also think wicketstuff-minis won't accept the contribution if you use (L)GPL. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
There is no difference, you still can use DateTextField . All you have to do is update the datePattern to support also the time, like this: dd/MM/yyy HH:mm:ss Alex raybristol wrote: Thanks for your reply, I actually mean DateTimeField and I want to do the same thing as in DateTextField, because I need no only the date but the time as well. Many thanks Ray Alex Objelean wrote: You mean DateTextField (instead of DateTimeField). It has also this constructor: DateTextField(String id, IModel model, String datePattern) where datePattern can be: dd/MM/. Alex raybristol wrote: there is a good example about use DateTextfield in : http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField(dateTextField, new PropertyModel(this,date), new StyleDateConverter(S-, true)), but DateTimeField only has a constructor: new DateTimeField(dateTimeFromTextField, new PropertyModel(this, date)) so I don't know how to change its format, also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I might asking dump question becuase I am too new to wicket (I use asp.net before). Many thanks! -- View this message in context: http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13281652 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change format in DateTimeField?
It is your code, so we can't legally license it ;-) If you don't mind people taking your code without contributing back the following licenses are rather equivalent: - BSD (http://www.opensource.org/licenses/bsd-license.php) - MIT (http://www.opensource.org/licenses/mit-license.php) If you do mind people taking your code without contributing back, the (L)GPL is what you are looking for. But that will hinder adoption with for instance Wicket. If you want maximum compatibility with Wicket, then you should choose the Apache license. The easiest way to contribute it would be to attach it to a JIRA issue, and check the 'may be used in the project' checkmark. I see you already have possible sponsors in Eelco and Gerolf, so inclusion in wicket-extensions wouldn't be too far off. This all assumes of course that you are the owner of the copyright of your contribution and didn't use another javascript library as a base. Please note that I'm not implying anything wrong, but it is easy to mess things up, and messy to clean up after the fact. Martijn On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: I see... Not sure how the licensing works, but whatever is the suggested license is fine with me. I'm not much of a business guru and wouldn't mind leaving it up to you Wicket folks ;o) I just need to know what the next step is so that others can make use of it :o) -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input Text Mask?
create a sf.net account and i will give you commit access to wicketstuff repo. -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Sure. How would I go about doing so? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:11 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? would you be interested in making this a subclass of textfield and throwing it into wicketstuff-minis project which is in wicket-stuff? -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Is anyone interested in using the mask script (below) to a component in a Wicket extension? The script prevents invalid input in a text field as the user types (similar to the Atlas version: http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I didn't see a component in Wicket that would accomplish this out-of-the-box and thought it would be a cool addition to Wicket. For example to force the input to mask a phone number: input type=text onfocus=InputTextMask.processMaskFocus(this, (999)999-, true); / /** * InputTextMask script used for mask/regexp operations. * Mask Individual Character Usage: * 9 - designates only numeric values * L - designates only uppercase letter values * l - designates only lowercase letter values * A - designates only alphanumeric values * X - denotes that a custom client script regular expression is specified/li * All other characters are assumed to be special characters used to mask * the input component * Example 1: * (999)999- only numeric values can be entered where the the character * position value is 9. Parenthesis and dash are non-editable/mask characters. * Example 2: * 99L-ll-X[^A-C]X only numeric values for the first two characters, * uppercase values for the third character, lowercase letters for the * fifth/sixth characters, and the last character X[^A-C]X together counts * as the eighth character regular expression that would allow all characters * but A, B, and C. Dashes outside the regular expression are * non-editable/mask characters. */ var InputTextMask = { processMaskFocus: function(input, mask, clearWhenInvalid){ // create an input mask and register it on the specified input (if it hasnt already been added by a previous call InputTextMask.createInputMask(input, mask, clearWhenInvalid); if(input.value.length == 0){ // when the input value is empty populate it with the viewing mask and move the cursor to the // beginning of the input field var cursorPos = InputTextMask.getCursorPosition(input, input.value); input.value = input.mask.viewMask; InputTextMask.moveCursorToPosition(input, null, cursorPos); } }, getEvent: function(e) { // get the event either from the window or from the passed event return (typeof event != 'undefined')? event: e; }, handleEventBubble: function(keyEvent, keyCode){ // this method ensures that the key enterned by the user is not propagated unless it is a tab or arrow key try { if(keyCode (keyCode.isTab || keyCode.isLeftOrRightArrow)){ // allow all tab/arrow keys by returning true- no further action required return true; } keyEvent.cancelBubble = true; if(keyEvent.stopPropagation){ // prevent other event triggers keyEvent.stopPropagation(); } if(keyEvent.preventDefault){ // prevent the default event from firing. in this case it is propagation of the keyed input keyEvent.preventDefault(); } return false; } catch(e) { alert(e.message); } }, createInputMask: function(input, mask, clearWhenInvalid) { // if this input hasnt already registered its mask go ahead and do so now. This only needs to be performed the // first time the input is encountered when it gains focus. It will attach the MaskType object to the input object // add add all of the appropriate event listeners to ensure that the mask is applied if(!input.mask || input.mask.rawMask != mask){ input.mask = new InputTextMask.MaskType(input, mask, clearWhenInvalid);
Library Samples
I tried to re-build the library sample on quick start project but I got HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/librarytest/ If I remove the sign in, how to make this thing work? I copied all the files from the examples folder to my quick start project AuthenticatedWebPage.java Book.java BookDetails.html BookDetails.java BookDetails.properties EditBook.html EditBook.java EditBook.properties Home.html Home.java Home.properties LibraryApplication.java LibraryApplicationBorder.html LibraryApplicationBorder.java LibrarySession.java SignIn.html SignIn.java SignIn.properties User.java
Implementation question of WebMarkupContainer
I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a link from a menu the html is then pulled from the database and displayed. I have created a custom object extending WebMarkupContainer. I override the onComponentTagBody method to get the response object and write the html to the response. Is this the correct way to do this?, meaning clean and reusable, or should I be looking at creating a resource and adding it with the application object. Thanks Bushby -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13282634 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementation question of WebMarkupContainer
Use: add(new Label(contents, contentsFromDatabase).setEscapeModelStrings(false))); instead. Martijn On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a link from a menu the html is then pulled from the database and displayed. I have created a custom object extending WebMarkupContainer. I override the onComponentTagBody method to get the response object and write the html to the response. Is this the correct way to do this?, meaning clean and reusable, or should I be looking at creating a resource and adding it with the application object. Thanks Bushby -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13282634 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementation question of WebMarkupContainer
I missed a piece of the functionality. If the user were to select another menu item, I need to replace the html. So I could create a new label with the new html, replace the label within the container, and then render the container? Thanks Bushby Martijn Dashorst wrote: Use: add(new Label(contents, contentsFromDatabase).setEscapeModelStrings(false))); instead. Martijn On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a link from a menu the html is then pulled from the database and displayed. I have created a custom object extending WebMarkupContainer. I override the onComponentTagBody method to get the response object and write the html to the response. Is this the correct way to do this?, meaning clean and reusable, or should I be looking at creating a resource and adding it with the application object. Thanks Bushby -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13282634 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13283133 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trunk stability
I've commited bunch of memory optimization that significantly reduce memory usage. On the pages I've tested it the consumption was reduced by up to 40% (live objects size). You rock! Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trunk stability
Hi all, I've commited bunch of memory optimization that significantly reduce memory usage. On the pages I've tested it the consumption was reduced by up to 40% (live objects size). The downside is that the changes touches component internals and there might be some issues with it, so if you spot anything suspicious with Wicket trunk, a problem that you haven't seen before, please notify me as this could be related. Thanks -Matej - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementation question of WebMarkupContainer
Read up on models [1]. The user selects a menu item, so probably your page has something like this: class mypage extends webpage { private MenuItem selectedMenuItem = null; } If the menuitem class has a property called itemMarkup you can do this: add(new Label(contents, new PropertyModel(mypage.this, selectedMenuItem.itemMarkup)).setEscapeModelStrings(false)); Martijn On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I missed a piece of the functionality. If the user were to select another menu item, I need to replace the html. So I could create a new label with the new html, replace the label within the container, and then render the container? Thanks Bushby Martijn Dashorst wrote: Use: add(new Label(contents, contentsFromDatabase).setEscapeModelStrings(false))); instead. Martijn On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a link from a menu the html is then pulled from the database and displayed. I have created a custom object extending WebMarkupContainer. I override the onComponentTagBody method to get the response object and write the html to the response. Is this the correct way to do this?, meaning clean and reusable, or should I be looking at creating a resource and adding it with the application object. Thanks Bushby -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13282634 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13283133 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementation question of WebMarkupContainer
Use a model on the label instead. If the content changes the label will pull the latest from the model. Frank On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I missed a piece of the functionality. If the user were to select another menu item, I need to replace the html. So I could create a new label with the new html, replace the label within the container, and then render the container? Thanks Bushby Martijn Dashorst wrote: Use: add(new Label(contents, contentsFromDatabase).setEscapeModelStrings(false))); instead. Martijn On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a link from a menu the html is then pulled from the database and displayed. I have created a custom object extending WebMarkupContainer. I override the onComponentTagBody method to get the response object and write the html to the response. Is this the correct way to do this?, meaning clean and reusable, or should I be looking at creating a resource and adding it with the application object. Thanks Bushby -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13282634 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Implementation-question-of-WebMarkupContainer-tf4649417.html#a13283133 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to change format in DateTimeField?
I went ahead and added the Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with the attached code granting the license. All the code is original and unborrowed except the trivial public domain snippet that adds an escape function to JavaScript's RegExp. Let me know if there is anything else I need to do- thanks for the help! -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 3:34 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? It is your code, so we can't legally license it ;-) If you don't mind people taking your code without contributing back the following licenses are rather equivalent: - BSD (http://www.opensource.org/licenses/bsd-license.php) - MIT (http://www.opensource.org/licenses/mit-license.php) If you do mind people taking your code without contributing back, the (L)GPL is what you are looking for. But that will hinder adoption with for instance Wicket. If you want maximum compatibility with Wicket, then you should choose the Apache license. The easiest way to contribute it would be to attach it to a JIRA issue, and check the 'may be used in the project' checkmark. I see you already have possible sponsors in Eelco and Gerolf, so inclusion in wicket-extensions wouldn't be too far off. This all assumes of course that you are the owner of the copyright of your contribution and didn't use another javascript library as a base. Please note that I'm not implying anything wrong, but it is easy to mess things up, and messy to clean up after the fact. Martijn On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: I see... Not sure how the licensing works, but whatever is the suggested license is fine with me. I'm not much of a business guru and wouldn't mind leaving it up to you Wicket folks ;o) I just need to know what the next step is so that others can make use of it :o) -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Input Text Mask?
I created a Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with attached source. I placed the issue under extensions as others suggested. Would I still have to go through sf.net? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 3:57 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? create a sf.net account and i will give you commit access to wicketstuff repo. -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Sure. How would I go about doing so? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:11 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? would you be interested in making this a subclass of textfield and throwing it into wicketstuff-minis project which is in wicket-stuff? -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Is anyone interested in using the mask script (below) to a component in a Wicket extension? The script prevents invalid input in a text field as the user types (similar to the Atlas version: http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I didn't see a component in Wicket that would accomplish this out-of-the-box and thought it would be a cool addition to Wicket. For example to force the input to mask a phone number: input type=text onfocus=InputTextMask.processMaskFocus(this, (999)999-, true); / /** * InputTextMask script used for mask/regexp operations. * Mask Individual Character Usage: * 9 - designates only numeric values * L - designates only uppercase letter values * l - designates only lowercase letter values * A - designates only alphanumeric values * X - denotes that a custom client script regular expression is specified/li * All other characters are assumed to be special characters used to mask * the input component * Example 1: * (999)999- only numeric values can be entered where the the character * position value is 9. Parenthesis and dash are non-editable/mask characters. * Example 2: * 99L-ll-X[^A-C]X only numeric values for the first two characters, * uppercase values for the third character, lowercase letters for the * fifth/sixth characters, and the last character X[^A-C]X together counts * as the eighth character regular expression that would allow all characters * but A, B, and C. Dashes outside the regular expression are * non-editable/mask characters. */ var InputTextMask = { processMaskFocus: function(input, mask, clearWhenInvalid){ // create an input mask and register it on the specified input (if it hasnt already been added by a previous call InputTextMask.createInputMask(input, mask, clearWhenInvalid); if(input.value.length == 0){ // when the input value is empty populate it with the viewing mask and move the cursor to the // beginning of the input field var cursorPos = InputTextMask.getCursorPosition(input, input.value); input.value = input.mask.viewMask; InputTextMask.moveCursorToPosition(input, null, cursorPos); } }, getEvent: function(e) { // get the event either from the window or from the passed event return (typeof event != 'undefined')? event: e; }, handleEventBubble: function(keyEvent, keyCode){ // this method ensures that the key enterned by the user is not propagated unless it is a tab or arrow key try { if(keyCode (keyCode.isTab || keyCode.isLeftOrRightArrow)){ // allow all tab/arrow keys by returning true- no further action required return true; } keyEvent.cancelBubble = true; if(keyEvent.stopPropagation){ // prevent other event triggers keyEvent.stopPropagation(); } if(keyEvent.preventDefault){ // prevent the default event from firing. in this case it is propagation of the keyed input keyEvent.preventDefault(); } return false; } catch(e) { alert(e.message); } }, createInputMask: function(input, mask, clearWhenInvalid) { // if this input hasnt already registered its mask go ahead and do so now. This only needs to be performed the // first time the input is
London Wicket User Group, Nov 6 (host required)
Our next http://jweekend.co.uk/dev/LWUGReg/ London Wicket User Group event is on 6 November. If you or your company would like to host our event (and get linked to form jWeekend.co.uk), ideally in a location able to seat accommodate) 12-20 people, http://www.jweekend.co.uk/dev/ContactUsBody/ drop us a line . It has to be in central London as some of our guests need to travel from far off lands (like Leicester) and therefore need quick and easy access to the main-line stations. Al and I will discuss and publish presentation topics next week, but in the meantime, remember that we are looking for other guests to contribute, so let us know if you have a topic you'd like to talk about or just raise for discussion. There will also be a proze-draw for 1 free MEAPS access to Manning's upcoming http://manning.com/dashorst/ Wicket In Action so you can keep up with the latest chapters as http://chillenious.wordpress.com/ Eelco and http://www.jroller.com/dashorst/ Martijn make them available. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk -- View this message in context: http://www.nabble.com/London-Wicket-User-Group%2C-Nov-6-%28host-required%29-tf4649631.html#a13283319 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trunk stability
Well, that was a joint effort with Johan! -Matej On 10/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I've commited bunch of memory optimization that significantly reduce memory usage. On the pages I've tested it the consumption was reduced by up to 40% (live objects size). You rock! Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input Text Mask?
On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: I created a Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with attached source. I placed the issue under extensions as others suggested. Thanks. Would I still have to go through sf.net? It would either be put in wicket-stuff minis - in which case you can maintain it directly yourself after you get access to the wicket-stuff project - or if we want to use it for the date field components, and all comitters agree, we can put it in extensions. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: London Wicket User Group, Nov 6 (host required)
Correction: my blog is on: http://martijndashorst.com/blog, not jroller (I abandoned that blogging system a while ago). Otherwise, thanks for buying so many copies Cemal! :) Martijn On 10/18/07, jweekend [EMAIL PROTECTED] wrote: Our next http://jweekend.co.uk/dev/LWUGReg/ London Wicket User Group event is on 6 November. If you or your company would like to host our event (and get linked to form jWeekend.co.uk), ideally in a location able to seat accommodate) 12-20 people, http://www.jweekend.co.uk/dev/ContactUsBody/ drop us a line . It has to be in central London as some of our guests need to travel from far off lands (like Leicester) and therefore need quick and easy access to the main-line stations. Al and I will discuss and publish presentation topics next week, but in the meantime, remember that we are looking for other guests to contribute, so let us know if you have a topic you'd like to talk about or just raise for discussion. There will also be a proze-draw for 1 free MEAPS access to Manning's upcoming http://manning.com/dashorst/ Wicket In Action so you can keep up with the latest chapters as http://chillenious.wordpress.com/ Eelco and http://www.jroller.com/dashorst/ Martijn make them available. Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk -- View this message in context: http://www.nabble.com/London-Wicket-User-Group%2C-Nov-6-%28host-required%29-tf4649631.html#a13283319 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
Hello Johan, yes, this worked for me. Thanks a lot for such a quick fix! However, I had to build with maven tests disabled. And there was an error on some of my pages, where I use BookmarkablePageLinks with parameters: Caused by: java.lang.NullPointerException at org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(BookmarkablePageLink.java:219) Most probably one of the test cases already caught this; the debugger showed that parameters was indeed null. Sorry, can't go anymore into this at the moment. And for me, beta4 is working fine for the moment. -- greetings from Berlin, Rüdiger Schulz www.2rue.de 2007/10/18, Johan Compagner [EMAIL PROTECTED]: thx, i fixed it. Please let me know if this first works for you johan On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: 2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Ok, a simple test failed very early, I feared I had to reproduce a lot of my application. I created https://issues.apache.org/jira/browse/WICKET-1081 where I attached a TestCase. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Input Text Mask?
Okay, sounds good... I assume I will be notified on which approach that will be decided by the committers at some point in the process? -Original Message- From: Eelco Hillenius [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 5:08 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: I created a Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with attached source. I placed the issue under extensions as others suggested. Thanks. Would I still have to go through sf.net? It would either be put in wicket-stuff minis - in which case you can maintain it directly yourself after you get access to the wicket-stuff project - or if we want to use it for the date field components, and all comitters agree, we can put it in extensions. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClassCastException with MetaDataEntry
This should be fixed already in the latest trunk. -Matej On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello Johan, yes, this worked for me. Thanks a lot for such a quick fix! However, I had to build with maven tests disabled. And there was an error on some of my pages, where I use BookmarkablePageLinks with parameters: Caused by: java.lang.NullPointerException at org.apache.wicket.markup.html.link.BookmarkablePageLink.setParameter(BookmarkablePageLink.java:219) Most probably one of the test cases already caught this; the debugger showed that parameters was indeed null. Sorry, can't go anymore into this at the moment. And for me, beta4 is working fine for the moment. -- greetings from Berlin, Rüdiger Schulz www.2rue.de 2007/10/18, Johan Compagner [EMAIL PROTECTED]: thx, i fixed it. Please let me know if this first works for you johan On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: 2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Ok, a simple test failed very early, I feared I had to reproduce a lot of my application. I created https://issues.apache.org/jira/browse/WICKET-1081 where I attached a TestCase. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input Text Mask?
On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Okay, sounds good... I assume I will be notified on which approach that will be decided by the committers at some point in the process? Of course. We'll discuss in public anyway. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wicket:message error when using custom namespace (xmlns:w=http://wicket.apache.org)
wicket:message does not honor defined namespace (for example, xmlns:w= http://wicket.apache.org) With the following markup, html xmlns= http://www.w3.org/1999/xhtml xmlns:w= http://wicket.apache.org; ... img src=images/mainmenu-home.jpg w:message=alt:home_image alt=Home name=home width=97 height=82 border=0 id=home / ... /html w:message does not work as wicket:message. The following is reported in the logs: INFO - MarkupResourceData - You are using a non-standard component name: w
is it a bug? (using beta 4)
I'm using wicket beta 4 release. Images source path is wrong when my wicket filter is mapped to the url /* The reason is because the src path of each images changes into something with double dot (..) Example: my wicket filter: filter description /description filter-nameWicket/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter /filter-class init-param param-nameapplicationClassName/param-name param-valuefackage.MyApplication/param-value /init-param /filter filter-mapping filter-nameWicket/filter-name url-pattern/*/url-pattern /filter-mapping the html... !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.apache.org; head title~/title /head body div img src=images/kulafu.jpg alt= / /div /body /html then the img tag in the html becomes... img alt= src=../images/kulafu.jpg/ the rendered src path is wrong because of the extra dot-dot-slash. But it's correct if the wicket filter is mapped with /something/* If it's not a bug, am I discouraged to map my filter using /* ?
Re: Ajax question
My Behavior extends AbstractDefaultAjaxBehavior which implements IHeaderContributor. There are no components involved except the one that is to be listened in on for client side clicks. At this point, I am not sure what I need to do to debug. Is there any JS debugging tools that I could use in Firefox that anyone would recommend? -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13288186 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax update of component screws up
Ok I have managed to reproduce the issue as a standalone project, and uploaded to http://s3.amazonaws.com/technoriment/WicketTest.zip , about 140kb big. As can be seen from the project, the single page contains a header content, the central container for panel, and then a footer. The original content, from Content1, ends with a div / in the panel content. When asked to perform an ajax update, replacing Content1 with Content2, the page's footer content disappears. Anyone can give it a try? Thanks Kent On 19 Oct 2007, at 2:10 AM, Oli Evans wrote: Do you mean the panel content failed to render? If so then from the wiki FAQ's that's a feature: http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs- Mymarkupelementdoesnotgetrendered http://cwiki.apache.org/ confluence/display/WICKET/FAQs#FAQs-Mymarkupelementdoesnotgetrendered If you mean an ajax update on a single panel caused markup outside of that panel to go missing then something has gone very wrong... Oli kent lai wrote: Hi, There was an interesting case recently, whereby Wicket seemed to be not updating my page properly with an ajax request. I have 3 classes, A, which is a page, B and C which are panels. A will add B initially, and after an ajax request (triggered by a button), replace B with C. The parent container will be added as an ajax component update. Once updated, the content after the component all disappeared. My markup look like something below A.html html body div[some content]/div span wicket:id=container span wicket:id=bb/span /span div[more content]/div /body /html B.html html body wicket:panel div[even more content]/div div class=something / /wicket:panel /body /html C.html html body wicket:panel div[even even more content]/div div class=something / /wicket:panel /body /html I did managed to resolve the issue, by replacing div class=something / with div class=something/div. It seemed that somehow wicket just went on ahead to remove all the tags after div class=something / as well. Does anyone have the same issue? I am using 1.3 beta 4. Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax update of component screws up
Hi, it's the latter, where the update on a single panel caused markup outside of that panel to go missing I'll see if I can get a sample project up to verify this Kent On 19 Oct 2007, at 2:10 AM, Oli Evans wrote: Do you mean the panel content failed to render? If so then from the wiki FAQ's that's a feature: http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs- Mymarkupelementdoesnotgetrendered http://cwiki.apache.org/ confluence/display/WICKET/FAQs#FAQs-Mymarkupelementdoesnotgetrendered If you mean an ajax update on a single panel caused markup outside of that panel to go missing then something has gone very wrong... Oli kent lai wrote: Hi, There was an interesting case recently, whereby Wicket seemed to be not updating my page properly with an ajax request. I have 3 classes, A, which is a page, B and C which are panels. A will add B initially, and after an ajax request (triggered by a button), replace B with C. The parent container will be added as an ajax component update. Once updated, the content after the component all disappeared. My markup look like something below A.html html body div[some content]/div span wicket:id=container span wicket:id=bb/span /span div[more content]/div /body /html B.html html body wicket:panel div[even more content]/div div class=something / /wicket:panel /body /html C.html html body wicket:panel div[even even more content]/div div class=something / /wicket:panel /body /html I did managed to resolve the issue, by replacing div class=something / with div class=something/div. It seemed that somehow wicket just went on ahead to remove all the tags after div class=something / as well. Does anyone have the same issue? I am using 1.3 beta 4. Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New public Wicket based site online: www.indyphone.de
Hello everybody, it is done - the side project I was working on for all these months has finally reached the public beta stage www.indyphone.de What started as a simple PHP script evolved into a full Java web application. On the way, several known-before techniques were tested (JBoss, JSP, JSF, EJB3) and replaced by what was working a lot better: the WiSH come true (Wicket, Spring, Hibernate) and lots of other OSS stuff, with development on Jetty and hosting on Apache / Tomcat. As this is the Wicket users list, I'll share with you some of the reasons why we not only chose Wicket for our web-layer, but also loved it all the way (in case you still need any): * no XML-hell. I never liked Struts because of that. JSF was even worse. * easy setup with quick development-round-trips. * full object orientated programming: when I started learning Java all those years ago, it was with Applets, AWT and Swing. So having a Link with a onClick method, and adding components in a hierarchie felt natural from the very beginning. I really had enough of low level request parameter parsing. * nicely integrated AJAX support: although we're not using that much of it, it was all very easy to use. Replacing a Link with AjaxLink for the first time was really cool. * no special XML-like tags that no designer understands - just HTML with some extra tags. That was a real productivity enhancement, as I work with someone who does very little programming. We were using Dreamweaver for offline prototyping, and to make it work with Wicket, we more or less just had to add unobstrusive tags and attributes (I already blogged about this). * great community and support, as has been proved again just today. Bugs sometimes get fixed withing the hour, and discussion on this list is almost always very friendly and helpful. I cannot remember a single question I had which was not answered until I had a solution - no matter how strange. So, thank you very, very much to all the Wicket developers for creating such a great piece of software! The page would not have been possible like this without it. I hope it will make its stand against the so called industry giants. And of course you're all invited to take a look at indyphone.de, which will certainly keep on evolving - I just hope we found all the bugs for now. If you have any question about how this or that feature was done, feel free to ask. I'm more than willing to share my knowledge and give something back. -- greetings from Berlin, Rüdiger Schulz www.2rue.de www.indyphone.de - Coole Handy Logos einfach selber bauen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: body onload contribution
Something I have noticed with renderOnLoad with my site is that it stopped being called after I added some Javascript for banner ads. Maybe their included script replaced the wicket function. I had to revert to using onLoad which makes gives the impression that the maps load more slowly. I have been thinking about creating a panel to include at the bottom of the page that renders scripts etc. Anyone tried something like this? On 8 Oct 2007, at 08:15, Matej Knopp wrote: What wicket version are you using? In 1.3 there's much better way to do this. Just use renderOnLoad/renderOnDomReady javascript on IHeaderResponse. -Matej On 10/8/07, Evan Chooly [EMAIL PROTECTED] wrote: I used the following in my page constructor, but I'm not seeing the change in the HTML. What am I missing? add(new BodyTagAttributeModifier(onload, true, new Model (foo()), this)); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax update of component screws up
Ok I have managed to reproduce the issue as a standalone project, and uploaded to http://s3.amazonaws.com/technoriment/WicketTest.zip , about 140kb big. As can be seen from the project, the single page contains a header content, the central container for panel, and then a footer. The original content, from Content1, ends with a div / in the panel content. When asked to perform an ajax update, replacing Content1 with Content2, the page's footer content disappears. Anyone can give it a try? Could you please create a JIRA issue for this and attach the zip to it? Thanks, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]