Re: stream content with an IndicatingAjaxLink
Ok, thanks. Are you streaming the photo directly to the output stream of the request that came in from clicking the link? Yes I am ... but it does not work. Apparently no one is doing that, so it is not the way to do it. I try with the normal link and and some kind of javascript then ... Regards, Renaud Timo Rantalaiho wrote: On Mon, 19 May 2008, renaud.houver wrote: I have a download picture link which take a bit of time. Result is that the user is impatiently clicking several time. I would like to have a kind of timer showing process and I tried to use IndicatingAjaxLink which does the job. But I cant find out to stream to the outputstream with an ajax link. ... Here is the onClick method with a normal link.That works fine. public void onClick() { final byte[] bytes = getDirectDownloadBytes(phot); Take on account that in Ajax, the browser does not make a normal HTTP request, but an XmlHttpRequest from Javascript, and then expects an XML fragment as a response (a piece of DOM tree as far as I know). I cannot imagine how could you transmit an image via Ajax, but if it is possible, please let me know :) In AJAX debug console (shown on the page when running Wicket in development mode), you can see the requests going in, the responses coming back, and whether there were errors. I think that you would be best off by ripping the javascript of showing the indicator wheel and attaching it to a normal link instead of an Ajax link. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/stream-content-with-an-IndicatingAjaxLink-tp17316702p17334149.html 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: Strange problem cancelling out of a modal
Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close. Debugger shows that the cancel button's onSubmit() method doesn't even get called, unless I fill out all the fields and select all the radios. The AJAX panel doesn't show any errors either, neither does the feedback panel. I suspect this has to do with those components being set to required, but I never had a problem like that before. Any idea what's going on here? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contribution for Wicket
I think Matej can give you his paypal number ;) But kidding aside i dont know if this happens with individual apache projects. The thing i could think of is that you sponsor a wicket meeting or the apache foundation in general. Johan On 5/20/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I was wondering how I could make a contribution for wicket. I'm not talking about a code contribution but rather a small money contribution. I have got a lot of help here on this forum and in fact I don't think I have ever experienced this kind of help elsewhere! -- View this message in context: http://www.nabble.com/Contribution-for-Wicket-tp17330946p17330946.html 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: stream content with an IndicatingAjaxLink
Take on account that in Ajax, the browser does not make a normal HTTP request, but an XmlHttpRequest from Javascript, and then expects an XML fragment as a response (a piece of DOM tree as far as I know). I cannot imagine how could you transmit an image via Ajax, but if it is possible, please let me know :) The name XmlHttpRequest is a mite misleading: You are doing a HTTP request, but the response need not be XML. For image data you could return it as a Base64-encoded string and get it using the request object's responseText attribute. However, the issue with using Ajax to retrieve images is that the standard for inline images in't supported by MSIE, so its utility is limited to Firefox, Opera and (possibly) Safari/KHTML users, using a data protocol URL. http://www.sweeting.org/mark/blog/2005/07/12/base64-encoded-images-embed ded-in-html So in your callback handler for success you would put something like getElementById('theImage').src = 'data:image/jpeg;base64,' . this.responseText; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contribution for Wicket
Well, the 'official' Apache line is at http://www.apache.org/foundation/contributing.html - the Apache Swag! at http://www.cafepress.com/meepzor/230676 looks interesting, but there's no Wicket stuff there yet! :-) Have you got a copy of Wicket in Action? /Gwyn On Tue, May 20, 2008 at 8:12 AM, Johan Compagner [EMAIL PROTECTED] wrote: I think Matej can give you his paypal number ;) But kidding aside i dont know if this happens with individual apache projects. The thing i could think of is that you sponsor a wicket meeting or the apache foundation in general. Johan On 5/20/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I was wondering how I could make a contribution for wicket. I'm not talking about a code contribution but rather a small money contribution. I have got a lot of help here on this forum and in fact I don't think I have ever experienced this kind of help elsewhere! -- View this message in context: http://www.nabble.com/Contribution-for-Wicket-tp17330946p17330946.html 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [JUG] Advanced Wicket - Cincinnati, OH (tonight)
On Mon, May 19, 2008 at 6:48 PM, James Carman [EMAIL PROTECTED] wrote: I'll ask the place that's hosting if they have video equipment. They do video conferencing all the time. That would be cool if I could webcast it! +1 :-) Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contribution for Wicket
Since Wicket is an offical Apache project you can donate to Apache. But I'm not sure if that will be of enough interest for you. In my personal opinion, you could donate to Literacy Bridge (a project to promote literacy in 3rd world countries through developing a device that allows for cheap ebook reading, aiui). Literacy bridge is founded by an Apache Member, so it is close to home, so to speak. Other than that, I think the organizations helping in Myanmar and other disaster areas can use the funds too. Martijn On 5/20/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I was wondering how I could make a contribution for wicket. I'm not talking about a code contribution but rather a small money contribution. I have got a lot of help here on this forum and in fact I don't think I have ever experienced this kind of help elsewhere! -- View this message in context: http://www.nabble.com/Contribution-for-Wicket-tp17330946p17330946.html 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problem when deploying on production server
Hi Sébastien, If by resource files you mean .properties files, you cannot encode them in utf-8. java.util.Properties always assumes ISO 8859-1 encoding when loading .properties files Thomas On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien [EMAIL PROTECTED] wrote: Hello guys, I have a problem with the encoding of some text, on my deployment server (Unix/Linux). I use wicket to generate the body of emails, with this code: StringResponse stringResponse = new StringResponse(); Response originalResponse = RequestCycle.get().getResponse(); try { RequestCycle.get().setResponse(stringResponse); render(); } finally { RequestCycle.get().setResponse(originalResponse); } return stringResponse.toString(); All of my resources files are encoded with UTF8. When I use it on my development workstation, everything works fine. Every chars are properly rendered. But on the production server, it seems that the email is converted to ISO8859-1 (and special chars are not rendered properly in UTF8). But others web pages are properly rendered (I only have a problem when dealing with responses) Have you guys any idea on how to fix it? Do I have to do someting on the server config? Thank you vm! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contribution for Wicket
A big +1 from me. Frank On Tue, May 20, 2008 at 10:32 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Since Wicket is an offical Apache project you can donate to Apache. But I'm not sure if that will be of enough interest for you. In my personal opinion, you could donate to Literacy Bridge (a project to promote literacy in 3rd world countries through developing a device that allows for cheap ebook reading, aiui). Literacy bridge is founded by an Apache Member, so it is close to home, so to speak. Other than that, I think the organizations helping in Myanmar and other disaster areas can use the funds too. Martijn On 5/20/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I was wondering how I could make a contribution for wicket. I'm not talking about a code contribution but rather a small money contribution. I have got a lot of help here on this forum and in fact I don't think I have ever experienced this kind of help elsewhere! -- View this message in context: http://www.nabble.com/Contribution-for-Wicket-tp17330946p17330946.html 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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: Encoding problem when deploying on production server
Hi Thomas, my files aren't .properties, they are .xml, encoded in utf8: ?xml version=1.0 encoding=UTF-8? !DOCTYPE properties SYSTEM http://java.sun.com/dtd/properties.dtd; properties entry key=nullidnull/entry entry key=submitSubmit/entry entry key=cancelCancel/entry ... /properties But it isn't properly rendered when I use the StringResponse object, so I guess it use some default system charset to... As said before, I'll ask my hoster for some infos on how to override this default setting. Thx Thomas Mäder a écrit : Hi Sébastien, If by resource files you mean .properties files, you cannot encode them in utf-8. java.util.Properties always assumes ISO 8859-1 encoding when loading .properties files Thomas On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contribution for Wicket
When I was still writing Open Source software, rounds of beer at conferences were always welcome ;-) Thomas On Tue, May 20, 2008 at 9:12 AM, Johan Compagner [EMAIL PROTECTED] wrote: I think Matej can give you his paypal number ;) But kidding aside i dont know if this happens with individual apache projects. The thing i could think of is that you sponsor a wicket meeting or the apache foundation in general. Johan On 5/20/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I was wondering how I could make a contribution for wicket. I'm not talking about a code contribution but rather a small money contribution. I have got a lot of help here on this forum and in fact I don't think I have ever experienced this kind of help elsewhere! -- View this message in context: http://www.nabble.com/Contribution-for-Wicket-tp17330946p17330946.html 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]
Html mail representation
I'm developing a simple webmail application...i want to render in HTML what is in a MIME multipart message...now here is the code: GetMessage.java public abstract class GetMessage extends Panel { private MultiLineLabel text; private String type; public GetMessage(String id,Message msg,int index) throws MessagingException, IOException { super(id); add(new Label(num,String.valueOf(index))); add(new Label(sub,msg.getSubject().toString())); add(new Label(sender,msg.getFrom()[0].toString())); add(new Label(dat,msg.getSentDate().toString())); Object content = msg.getContent(); if( content instanceof String){ text=new MultiLineLabel(content,content.toString()); }else{ Multipart multi = (Multipart)content; for(int j=0; jmulti.getCount(); ++j){ BodyPart part = multi.getBodyPart(j); type = part.getContentType(); content = part.getContent(); if( content instanceof String){ text=new MultiLineLabel(content, content.toString()); } } } add(text); add(new Label(prova1,type)); } } GetMessage.html wicket:panel table trth#/thtd class=even wicket:id=num/td/tr trthSubject/thtd class=odd wicket:id=sub/td/tr trthSender/thtd class=even wicket:id=sender/td/tr trthDate/thtd class=odd wicket:id=dat/td/tr trtd colspan=2div wicket:id=content/div/td/tr /table LAbel /wicket:panel The problem is the MultiLineLabel shows not the HTML resulting rendering, but the HTML code itself! My target is to render the html code in the content.toString() -- View this message in context: http://www.nabble.com/Html-mail-representation-tp17337174p17337174.html 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: Html mail representation
try label.setEscapeModelStrings(true) Davidoff wrote: I'm developing a simple webmail application...i want to render in HTML what is in a MIME multipart message...now here is the code: GetMessage.java public abstract class GetMessage extends Panel { private MultiLineLabel text; private String type; public GetMessage(String id,Message msg,int index) throws MessagingException, IOException { super(id); add(new Label(num,String.valueOf(index))); add(new Label(sub,msg.getSubject().toString())); add(new Label(sender,msg.getFrom()[0].toString())); add(new Label(dat,msg.getSentDate().toString())); Object content = msg.getContent(); if( content instanceof String){ text=new MultiLineLabel(content,content.toString()); }else{ Multipart multi = (Multipart)content; for(int j=0; jmulti.getCount(); ++j){ BodyPart part = multi.getBodyPart(j); type = part.getContentType(); content = part.getContent(); if( content instanceof String){ text=new MultiLineLabel(content, content.toString()); } } } add(text); add(new Label(prova1,type)); } } GetMessage.html wicket:panel table trth#/thtd class=even wicket:id=num/td/tr trthSubject/thtd class=odd wicket:id=sub/td/tr trthSender/thtd class=even wicket:id=sender/td/tr trthDate/thtd class=odd wicket:id=dat/td/tr trtd colspan=2div wicket:id=content/div/td/tr /table LAbel /wicket:panel The problem is the MultiLineLabel shows not the HTML resulting rendering, but the HTML code itself! My target is to render the html code that is in the content.toString() - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Html-mail-representation-tp17337174p17337437.html 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: Html mail representation
i mean label.setEscapeModelStrings(false) ;-) Michael Sparer wrote: try label.setEscapeModelStrings(true) Davidoff wrote: I'm developing a simple webmail application...i want to render in HTML what is in a MIME multipart message...now here is the code: GetMessage.java public abstract class GetMessage extends Panel { private MultiLineLabel text; private String type; public GetMessage(String id,Message msg,int index) throws MessagingException, IOException { super(id); add(new Label(num,String.valueOf(index))); add(new Label(sub,msg.getSubject().toString())); add(new Label(sender,msg.getFrom()[0].toString())); add(new Label(dat,msg.getSentDate().toString())); Object content = msg.getContent(); if( content instanceof String){ text=new MultiLineLabel(content,content.toString()); }else{ Multipart multi = (Multipart)content; for(int j=0; jmulti.getCount(); ++j){ BodyPart part = multi.getBodyPart(j); type = part.getContentType(); content = part.getContent(); if( content instanceof String){ text=new MultiLineLabel(content, content.toString()); } } } add(text); add(new Label(prova1,type)); } } GetMessage.html wicket:panel table trth#/thtd class=even wicket:id=num/td/tr trthSubject/thtd class=odd wicket:id=sub/td/tr trthSender/thtd class=even wicket:id=sender/td/tr trthDate/thtd class=odd wicket:id=dat/td/tr trtd colspan=2div wicket:id=content/div/td/tr /table LAbel /wicket:panel The problem is the MultiLineLabel shows not the HTML resulting rendering, but the HTML code itself! My target is to render the html code that is in the content.toString() - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Html-mail-representation-tp17337174p17337440.html 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: Html mail representation
wonderful...the problem now is that some mail do not render completely...i don't see any tags now, i see the rendered mail, but some mails are half rendered, maybe a part of these contain text/plain? Michael Sparer wrote: i mean label.setEscapeModelStrings(false) ;-) Michael Sparer wrote: try label.setEscapeModelStrings(true) Davidoff wrote: I'm developing a simple webmail application...i want to render in HTML what is in a MIME multipart message...now here is the code: GetMessage.java public abstract class GetMessage extends Panel { private MultiLineLabel text; private String type; public GetMessage(String id,Message msg,int index) throws MessagingException, IOException { super(id); add(new Label(num,String.valueOf(index))); add(new Label(sub,msg.getSubject().toString())); add(new Label(sender,msg.getFrom()[0].toString())); add(new Label(dat,msg.getSentDate().toString())); Object content = msg.getContent(); if( content instanceof String){ text=new MultiLineLabel(content,content.toString()); }else{ Multipart multi = (Multipart)content; for(int j=0; jmulti.getCount(); ++j){ BodyPart part = multi.getBodyPart(j); type = part.getContentType(); content = part.getContent(); if( content instanceof String){ text=new MultiLineLabel(content, content.toString()); } } } add(text); add(new Label(prova1,type)); } } GetMessage.html wicket:panel table trth#/thtd class=even wicket:id=num/td/tr trthSubject/thtd class=odd wicket:id=sub/td/tr trthSender/thtd class=even wicket:id=sender/td/tr trthDate/thtd class=odd wicket:id=dat/td/tr trtd colspan=2div wicket:id=content/div/td/tr /table LAbel /wicket:panel The problem is the MultiLineLabel shows not the HTML resulting rendering, but the HTML code itself! My target is to render the html code that is in the content.toString() -- View this message in context: http://www.nabble.com/Html-mail-representation-tp17337174p17337580.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[announce] JavaRanch promotion: Wicket in Action
Eelco and myself will be joining the JavaRanch this week and we will answer questions asked in the Application Frameworks forum. When you ask a question you may win a copy of Wicket in Action! You are invited to ask us questions and of course participate in the ongoing discussions, or even answer a question yourself. From the official JavaRanch announcement: We are thrilled to have Martijn Dashorst Eelco Hillenius on the ranch to promote the book Wicket in Action. The promotion will be held in the Application Frameworks forum which can be found here: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forumf=83 Participate in this week's giveaway by asking Martijn Dashorst Eelco Hillenius a question or two and you may win a copy of the book! * The giveaway starts on Tuesday, May 20th 2008. * The drawing will be held on Friday, May 23rd 2008. See you on the ranch! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deployment vs development session
Hello, Today I tested an application on a number of computers (if it's useful know that they were in the same network). What I found out is that the wicket session was shared among them when wicket was started in dev mode. When I started the application in deploy mode, everything was as needed - a session object was created for each client. Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2. Thank you, Cristi Manole
Re: [JUG] Advanced Wicket - Cincinnati, OH (tonight)
It went pretty well. I think with a little practice (I sometimes forgot where I was in the code), it could be a good presentation. I've never tried to present that way before, but I think I like it better than the slides. When folks ask questions, since I'm in my IDE anyway, I can just tinker around right in front of them and show them what happens. They were very impressed when I told them that I went through all of my user stories in just 8 hours (with a little extra work preparing for the presentation of course). So, we may soon have some new Wicketeers! One company here in Cincinnati is currently evaluating web technologies and they had someone there last night. On Tue, May 20, 2008 at 4:31 AM, Frank Bille [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 6:48 PM, James Carman [EMAIL PROTECTED] wrote: I'll ask the place that's hosting if they have video equipment. They do video conferencing all the time. That would be cool if I could webcast it! +1 :-) Frank - 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: Html mail representation
How are you spitting out the contents of the mail? Are you using a stream of some sort? Are you forgetting to flush/close the stream? On Tue, May 20, 2008 at 6:45 AM, Davidoff [EMAIL PROTECTED] wrote: wonderful...the problem now is that some mail do not render completely...i don't see any tags now, i see the rendered mail, but some mails are half rendered, maybe a part of these contain text/plain? Michael Sparer wrote: i mean label.setEscapeModelStrings(false) ;-) Michael Sparer wrote: try label.setEscapeModelStrings(true) Davidoff wrote: I'm developing a simple webmail application...i want to render in HTML what is in a MIME multipart message...now here is the code: GetMessage.java public abstract class GetMessage extends Panel { private MultiLineLabel text; private String type; public GetMessage(String id,Message msg,int index) throws MessagingException, IOException { super(id); add(new Label(num,String.valueOf(index))); add(new Label(sub,msg.getSubject().toString())); add(new Label(sender,msg.getFrom()[0].toString())); add(new Label(dat,msg.getSentDate().toString())); Object content = msg.getContent(); if( content instanceof String){ text=new MultiLineLabel(content,content.toString()); }else{ Multipart multi = (Multipart)content; for(int j=0; jmulti.getCount(); ++j){ BodyPart part = multi.getBodyPart(j); type = part.getContentType(); content = part.getContent(); if( content instanceof String){ text=new MultiLineLabel(content, content.toString()); } } } add(text); add(new Label(prova1,type)); } } GetMessage.html wicket:panel table trth#/thtd class=even wicket:id=num/td/tr trthSubject/thtd class=odd wicket:id=sub/td/tr trthSender/thtd class=even wicket:id=sender/td/tr trthDate/thtd class=odd wicket:id=dat/td/tr trtd colspan=2div wicket:id=content/div/td/tr /table LAbel /wicket:panel The problem is the MultiLineLabel shows not the HTML resulting rendering, but the HTML code itself! My target is to render the html code that is in the content.toString() -- View this message in context: http://www.nabble.com/Html-mail-representation-tp17337174p17337580.html 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]
GMap2 problem with displaying in IE 6/7
Hello, I have problem with GMap2 on IE 6/7 - in Firefox 2.x/3.x Maps are shown correctly, but in IE I have JS error lack of definition WicketMap2, and map was not shown. I'm pretty sure that maps were shown some time before maybe some Microsoft update caused problems? I use 1.3-SNAPSHOT build, and Wicket 1.3.2, I can't probably switch project to 1.4 now, because of it near to end state. Problem seems to appear near line: Wicket.Event.add(window, domready, function() { new WicketMap2('map4d'); ... which is followed by: script type=text/javascript src=../../../../resources/wicket.contrib.gmap.GMap2/wicket-gmap.js/script Anybody can help with that, or have same problem? Best regards, Adr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment vs development session
No, that is not how it is supposed to work. Each user should always get his/her own session regardless. development mode is for quick reloading of markupfiles etc without redeploying. Not sure how you managed that but we use dev mode all the time and we have never seen this behavior. Maurice On Tue, May 20, 2008 at 12:55 PM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, Today I tested an application on a number of computers (if it's useful know that they were in the same network). What I found out is that the wicket session was shared among them when wicket was started in dev mode. When I started the application in deploy mode, everything was as needed - a session object was created for each client. Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2. Thank you, Cristi Manole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GMap2 problem with displaying in IE 6/7
Found bug in that version comma after 'marker': overlayID, in addGOverlayListener click event, probably repaired in earlier versions, sorry for troubling you :(. Best regards, Adr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problem when deploying on production server
Hi Timo, About the locale, I made a small jsp to show them. - For the request, it is mine ( fr ) - For the response, it is specified as en_US. But does the locale have an impact on how the character are encoded? PS: I have asked my hosting, they swore me that everything is setted to UTF-8 on theire side... I really don't understand what's going on... I did everything utf8, they did everything utf8, and in the end I got iso88591... Thank you for your time Timo Rantalaiho a écrit : What are the locales of the machines (or the users running the server software on the machines)? I think that by default, Java assumes the character encoding it gets from the operating system, but you can override it by explicitly setting the relevant system property, -Dfile.encoding=utf-8 or something like that. The root problem is that property files are plain text files that do not contain any metadata such as what encoding they are written in, so anybody reading them just needs to assume something. The same goes for Java source files. The problem of property files is partially solved by using property XML files, though it is a pity to lose the nice, simple property file syntax with the change. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[PROPOSAL] wicketstuff SVN reorganization...
All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [PROPOSAL] wicketstuff SVN reorganization...
With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [PROPOSAL] wicketstuff SVN reorganization...
So, is the philosophy of wicket-stuff that all of the projects kind of mirror Wicket's release schedule? On Tue, May 20, 2008 at 9:06 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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: [PROPOSAL] wicketstuff SVN reorganization...
If you want your project to be used, I think it is wise to do so. A higher release schedule is also nice, but lower seems to indicate a bit of a dead end imo. Martijn On Tue, May 20, 2008 at 3:13 PM, James Carman [EMAIL PROTECTED] wrote: So, is the philosophy of wicket-stuff that all of the projects kind of mirror Wicket's release schedule? On Tue, May 20, 2008 at 9:06 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [PROPOSAL] wicketstuff SVN reorganization...
So, the aim is for all wicketstuff projects to stay up-to-date with the current wicket release, correct? I was thinking of wicketstuff kind of like Apache Commons, a grouping of useful, self-contained projects (that just happen to all be based on Wicket). The way we handle upgrading across commons is to make changes to the parent pom and release that. Projects wishing to use the newer version have to upgrade in their poms. On Tue, May 20, 2008 at 9:16 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: If you want your project to be used, I think it is wise to do so. A higher release schedule is also nice, but lower seems to indicate a bit of a dead end imo. Martijn On Tue, May 20, 2008 at 3:13 PM, James Carman [EMAIL PROTECTED] wrote: So, is the philosophy of wicket-stuff that all of the projects kind of mirror Wicket's release schedule? On Tue, May 20, 2008 at 9:06 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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: [PROPOSAL] wicketstuff SVN reorganization...
But then, the wicketstuff maven repository is never deployed with these builds following the wicket releases. Everything in the maven repository follows wicket snapshot. This is really a pain, I have to maintain a private wicketstuff code base, just to give the projects proper release #, and proper dependency on wicket releases, rather than wicket-SNAPSHOT. may be someone needs to introduce the mvn deploy command to the wicketstuff developers ;). Martijn Dashorst wrote: If you want your project to be used, I think it is wise to do so. A higher release schedule is also nice, but lower seems to indicate a bit of a dead end imo. Martijn On Tue, May 20, 2008 at 3:13 PM, James Carman [EMAIL PROTECTED] wrote: So, is the philosophy of wicket-stuff that all of the projects kind of mirror Wicket's release schedule? On Tue, May 20, 2008 at 9:06 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-PROPOSAL--wicketstuff-SVN-reorganization...-tp17339733p17340319.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hiding a border on a RepeatingView
Hi, I have a border I've applied to a repeater. When items are removed from the repeater - and its effectively empty, I'd like to hide the border. I'm not sure how to go about doing this. I assume i should override isVisible on the border, but I'm unsure whats the best way of checking if it has an empty or unused RepeatingView. Rgds Ned -- View this message in context: http://www.nabble.com/Hiding-a-border-on-a-RepeatingView-tp17340483p17340483.html 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: [PROPOSAL] wicketstuff SVN reorganization...
or you could volunteer to build those releases for the wicket stuff projects :D Martijn On Tue, May 20, 2008 at 3:35 PM, gumnaam23 [EMAIL PROTECTED] wrote: But then, the wicketstuff maven repository is never deployed with these builds following the wicket releases. Everything in the maven repository follows wicket snapshot. This is really a pain, I have to maintain a private wicketstuff code base, just to give the projects proper release #, and proper dependency on wicket releases, rather than wicket-SNAPSHOT. may be someone needs to introduce the mvn deploy command to the wicketstuff developers ;). Martijn Dashorst wrote: If you want your project to be used, I think it is wise to do so. A higher release schedule is also nice, but lower seems to indicate a bit of a dead end imo. Martijn On Tue, May 20, 2008 at 3:13 PM, James Carman [EMAIL PROTECTED] wrote: So, is the philosophy of wicket-stuff that all of the projects kind of mirror Wicket's release schedule? On Tue, May 20, 2008 at 9:06 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-PROPOSAL--wicketstuff-SVN-reorganization...-tp17339733p17340319.html 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problem when deploying on production server
what are you doing with that StringResponse? Because that string response still is just java so UTF when that string is streamed or converted to bytes you should do something.. johan On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien [EMAIL PROTECTED] wrote: Hello guys, I have a problem with the encoding of some text, on my deployment server (Unix/Linux). I use wicket to generate the body of emails, with this code: StringResponse stringResponse = new StringResponse(); Response originalResponse = RequestCycle.get().getResponse(); try { RequestCycle.get().setResponse(stringResponse); render(); } finally { RequestCycle.get().setResponse(originalResponse); } return stringResponse.toString(); All of my resources files are encoded with UTF8. When I use it on my development workstation, everything works fine. Every chars are properly rendered. But on the production server, it seems that the email is converted to ISO8859-1 (and special chars are not rendered properly in UTF8). But others web pages are properly rendered (I only have a problem when dealing with responses) Have you guys any idea on how to fix it? Do I have to do someting on the server config? Thank you vm! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Providing IModel to Validators
What does everyone think about updating the Wicket core validators to contain an optional IModel? Simple Use Case: # properties file label.myminimum=My Object at row: {0} with value '${input}' must be smaller than ${minimum} ... final RefreshingView myView = new RefreshingView(tr-my-object-view) { protected final void populateItem(final Item item) { ... final TextField myTextField = new TextField(input-text-field); final IModel myMinValidatorModel = new StringResourceModel(label.myminimum, item, null, new Object[] { item.getIndex() }); myTextField.add(NumberValidator.MinimumValidator.minimum(10L, myMinValidatorModel); ... } }; ... So, instead of seeing a very general message that could apply to any number of fields that may contain the same value: ... '0' is smaller than the minimum of 10. '0' is smaller than the minimum of 10. '0' is smaller than the minimum of 10. ... You would see this: ... My Object at row: 1 with value '0' must be smaller than 10 My Object at row: 12 with value '0' must be smaller than 10 My Object at row: 20 with value '0' must be smaller than 10 ... The problem with just overriding the NumberValidator.minimum resource in this example is that makes it difficult to add custom property values (i.e. the index in example). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stream content with an IndicatingAjaxLink
what do you want to do with that picture? what should happen? a save dialog? (attachement?) if that is the case then the best thing i guess to do is use a normal link or use an ajax link that sets the window.location.href = xxx in a piece of javascript. (maybe inside a iframe?) johan On Mon, May 19, 2008 at 3:42 PM, renaud.houver [EMAIL PROTECTED] wrote: I have a download picture link which take a bit of time. Result is that the user is impatiently clicking several time. I would like to have a kind of timer showing process and I tried to use IndicatingAjaxLink which does the job. But I cant find out to stream to the outputstream with an ajax link. I tried both to get outputStream from ajax target. public void onClick(AjaxRequestTarget target) { target.getHeaderResponse().getResponse().getOutputStream(); ... or from a new target on requestCycle from page public void onClick(AjaxRequestTarget target) { public void onClick(AjaxRequestTarget target) { target.getHeaderResponse().getResponse().getOutputStream(); target.getPage().getRequestCycle().setRequestTarget(new IRequestTarget(){ public void respond(RequestCycle requestCycle) { ((WebResponse)requestCycle.getResponse()).getOutputStream(); ... None works ... Any advice ? Something with resources maybe ? Here is the onClick method with a normal link.That works fine. public void onClick() { final byte[] bytes = getDirectDownloadBytes(phot); if(bytes != null bytes.length 0) { getRequestCycle().setRequestTarget(new IRequestTarget() { public void respond(RequestCycle requestCycle) { WebResponse r = (WebResponse)requestCycle.getResponse(); r.setAttachmentHeader(fileName); try { r.getOutputStream().write(bytes); } catch (IOException e) { throw new RuntimeException(e); } finally { } } }); } } -- View this message in context: http://www.nabble.com/stream-content-with-an-IndicatingAjaxLink-tp17316702p17316702.html 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: Deployment vs development session
On Tue, May 20, 2008 at 3:55 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, Today I tested an application on a number of computers (if it's useful know that they were in the same network). What I found out is that the wicket session was shared among them when wicket was started in dev mode. what symptoms of this did you see? does it also happen with a plain wicket-quickstart? what kind of server did you have running? what kind of cluster topology? what replication tech did you use? you cant just tell us something interesting like this and leave us hanging! -igor When I started the application in deploy mode, everything was as needed - a session object was created for each client. Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2. Thank you, Cristi Manole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Providing IModel to Validators
we kind of have that support in AbstractValidator protected Map variablesMap(IValidatable validatable) { final Map resourceModel = new HashMap(1); return resourceModel; } the problem is that somehow it should do a call back to the IValidatable (which is FormComponent most of the time) so that that will also fill in stuff.. protected Map variablesMap(IValidatable validatable) { final Map resourceModel = new HashMap(3); validatable.fillVariablesMap(resourceModel); return resourceModel; } then it will be very easy for people to do that. Igor what do you think? Those parts are mostly your code and i guess having a IModel inside the IValidator is not what you want :) johan On Tue, May 20, 2008 at 4:14 PM, Hoover, William [EMAIL PROTECTED] wrote: What does everyone think about updating the Wicket core validators to contain an optional IModel? Simple Use Case: # properties file label.myminimum=My Object at row: {0} with value '${input}' must be smaller than ${minimum} ... final RefreshingView myView = new RefreshingView(tr-my-object-view) { protected final void populateItem(final Item item) { ... final TextField myTextField = new TextField(input-text-field); final IModel myMinValidatorModel = new StringResourceModel(label.myminimum, item, null, new Object[] { item.getIndex() }); myTextField.add(NumberValidator.MinimumValidator.minimum(10L, myMinValidatorModel); ... } }; ... So, instead of seeing a very general message that could apply to any number of fields that may contain the same value: ... '0' is smaller than the minimum of 10. '0' is smaller than the minimum of 10. '0' is smaller than the minimum of 10. ... You would see this: ... My Object at row: 1 with value '0' must be smaller than 10 My Object at row: 12 with value '0' must be smaller than 10 My Object at row: 20 with value '0' must be smaller than 10 ... The problem with just overriding the NumberValidator.minimum resource in this example is that makes it difficult to add custom property values (i.e. the index in example). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stream content with an IndicatingAjaxLink
On Tue, 20 May 2008, Wilhelmsen Tor Iver wrote: http://www.sweeting.org/mark/blog/2005/07/12/base64-encoded-images-embed ded-in-html So in your callback handler for success you would put something like getElementById('theImage').src = 'data:image/jpeg;base64,' . this.responseText; Far out! Thanks for sharing this. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment vs development session
well, i figured it was just me... so I quit bothering you guys with something that's ... just me... :) i'm using tomcat, no clustering. this is my websession class: package com.fx.core; import java.security.NoSuchAlgorithmException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.wicket.Request; import org.apache.wicket.authentication.AuthenticatedWebApplication; import org.apache.wicket.authentication.AuthenticatedWebSession; import org.apache.wicket.authorization.strategies.role.Roles; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.spring.injection.annot.SpringBean; import com.fx.utils.crypt.UltraPasswordHasher; @SuppressWarnings(serial) public class WebSession extends AuthenticatedWebSession { private static final Log log = LogFactory.getLog(WebSession.class); @SpringBean private JdbcUtilizatori jdbcUtilizatori; private Utilizator utilizator; public WebSession(final AuthenticatedWebApplication application, Request request) { super(request); InjectorHolder.getInjector().inject(this); //don't get spring by default in sessions... } @Override *public boolean authenticate(final String username, final String password) { if(utilizator == null) { *UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(username); if(dao != null) { try { if(new UltraPasswordHasher().verifyPassword(password.getBytes(), dao.getParola())) { utilizator = new Utilizator(dao.getId(), username, dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip()); utilizator.addRole(AUTHENTICATED); } } catch (NoSuchAlgorithmException e) { log.error(ERROR:, e); return false; } } } return utilizator != null; } public void logOut() { utilizator = null; signOut(); } @Override public Roles getRoles() { if (isSignedIn()) { // If the user is signed in, they have these roles return new Roles((String[])utilizator.getRoles().toArray(new String[0])); } return null; } public Utilizator getUtilizator() { return utilizator; } public Utilizator getUtilizatorFor(String password) { UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(password); if(dao == null) { return null; } else { return new Utilizator(dao.getId(), dao.getUser(), dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip()); } } } in dev mode, running from two stations, same network (didn't test otherwise), utilizator is not null for the second user after the first has logged in (see bolded text above). And no matter what he puts in the login, it will get logged in with the others credential. *I really think I'm doing something stupid* cause this is the first time I get this and I've been developing quite a few web apps in wicket (then again i rarely develop in dev mode). Tks, Cristi Manole On Tue, May 20, 2008 at 5:23 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Tue, May 20, 2008 at 3:55 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, Today I tested an application on a number of computers (if it's useful know that they were in the same network). What I found out is that the wicket session was shared among them when wicket was started in dev mode. what symptoms of this did you see? does it also happen with a plain wicket-quickstart? what kind of server did you have running? what kind of cluster topology? what replication tech did you use? you cant just tell us something interesting like this and leave us hanging! -igor When I started the application in deploy mode, everything was as needed - a session object was created for each client. Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2. Thank you, Cristi Manole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hiding a border on a RepeatingView
repeatingview.size() should do it -igor On Tue, May 20, 2008 at 6:39 AM, Ned Collyer [EMAIL PROTECTED] wrote: Hi, I have a border I've applied to a repeater. When items are removed from the repeater - and its effectively empty, I'd like to hide the border. I'm not sure how to go about doing this. I assume i should override isVisible on the border, but I'm unsure whats the best way of checking if it has an empty or unused RepeatingView. Rgds Ned -- View this message in context: http://www.nabble.com/Hiding-a-border-on-a-RepeatingView-tp17340483p17340483.html 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]
Creating Image from local directory outside project
Hi, I have a repository storing many images somewhere on the server. The hierarchy is like : C:\Images\\MM\DD.jpg I want to be able to create a dynamic Image object (or ContextImage or whatever works with i-m-g wicket:id=fooImage /) with one of the images stored in my repository. I can't figure out how to do it, can someone help? -- View this message in context: http://www.nabble.com/Creating-Image-from-local-directory-outside-project-tp17342679p17342679.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Panel's LoadableDetachableModel not being loaded
I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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: Encoding problem when deploying on production server
Hi Johan, Well, I then use the string returned by StringResponse#toString on Javamail, with that code: BodyPart htmlBodyPart = new MimeBodyPart(); htmlBodyPart.setContent(htmlBody, text/html); multipart.addBodyPart(htmlBodyPart); ... Is it possible to be a javamail issue? I guess can you please confirm or infirm this? Thank you ;) Johan Compagner a écrit : what are you doing with that StringResponse? Because that string response still is just java so UTF when that string is streamed or converted to bytes you should do something.. johan On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's LoadableDetachableModel not being loaded
Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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: Panel's LoadableDetachableModel not being loaded
When you don't use the model, it is not used. A panel doesn't do anything by itself. When you add a label, the model is needed to render the label value, so it will retrieve the data, and hence use the load() method. Martijn On Tue, May 20, 2008 at 5:19 PM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's LoadableDetachableModel not being loaded
No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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: Hiding a border on a RepeatingView
Thanks Igor, I'd been checking all the api for getXXX and skipped that. How do I get the scope to the repeater inside the isVisible of the Border? igor.vaynberg wrote: repeatingview.size() should do it -igor On Tue, May 20, 2008 at 6:39 AM, Ned Collyer [EMAIL PROTECTED] wrote: Hi, I have a border I've applied to a repeater. When items are removed from the repeater - and its effectively empty, I'd like to hide the border. I'm not sure how to go about doing this. I assume i should override isVisible on the border, but I'm unsure whats the best way of checking if it has an empty or unused RepeatingView. Rgds Ned -- View this message in context: http://www.nabble.com/Hiding-a-border-on-a-RepeatingView-tp17340483p17340483.html 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] -- View this message in context: http://www.nabble.com/Hiding-a-border-on-a-RepeatingView-tp17340483p17343184.html 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: Panel's LoadableDetachableModel not being loaded
If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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: Panel's LoadableDetachableModel not being loaded
I certainly understand from a performance standpoint, but all the documentation (reference and API) makes no reference to this subtlety. In fact, the reference documentation implies that you can attach a detachable model to any component and it will auto-magically handle the load on all requests. Maybe just some clarification in the documentation would help. I apologize in advance if this is documented and I missed it. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343628.html 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: Panel's LoadableDetachableModel not being loaded
And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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: Panel's LoadableDetachableModel not being loaded
Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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: [PROPOSAL] wicketstuff SVN reorganization...
But when a component can't be used with a recent Wicket release, there is little or no use for it IMO. I like the fact that many folks have contributed to wicket stuff, but I think there is little reality in giving each project its own release cycle. Though for popular javascript libraries such as prototype, scriptaculous and jquery it may be beneficial to have release cycles that follow those projects as well, I think that most libraries could benefit of at least being compiled against the latest current wicket development version, and given a cut-off when a new Wicket release has been created. But that is my vision for wicket stuff. I hope to give some sweet loving care to those projects someday, in the form of downloadable releases, and proper release management to the central repository. But I have to release a book , and take some time off after that before I can commit any time to this. Martijn On Tue, May 20, 2008 at 3:33 PM, James Carman [EMAIL PROTECTED] wrote: So, the aim is for all wicketstuff projects to stay up-to-date with the current wicket release, correct? I was thinking of wicketstuff kind of like Apache Commons, a grouping of useful, self-contained projects (that just happen to all be based on Wicket). The way we handle upgrading across commons is to make changes to the parent pom and release that. Projects wishing to use the newer version have to upgrade in their poms. On Tue, May 20, 2008 at 9:16 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: If you want your project to be used, I think it is wise to do so. A higher release schedule is also nice, but lower seems to indicate a bit of a dead end imo. Martijn On Tue, May 20, 2008 at 3:13 PM, James Carman [EMAIL PROTECTED] wrote: So, is the philosophy of wicket-stuff that all of the projects kind of mirror Wicket's release schedule? On Tue, May 20, 2008 at 9:06 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: With that proposal it is very hard to upgrade a version of a project to a newer version of Wicket. Each maintainer has do create and maintain the branches. Currently we split off the projects in one go when we upgrade Wicket. In an ideal world all projects are constantly rebuilt when Wicket has an update in core (for a lot of projects this is already the case with our new teamcity), so maintenance on each project would in most cases require ensuring api compatibility. Martijn On Tue, May 20, 2008 at 2:59 PM, James Carman [EMAIL PROTECTED] wrote: All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang off of the trunk of the root wicket-stuff (should we rename that wicketstuff?) trunk. It would seem to be better if we let each subproject have their own trunk/branches/tags triad like this: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/trunk http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/branches http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/wicket-persistence-template/tags What do you think? James - 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - 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] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's LoadableDetachableModel not being loaded
Yes. I'm just invoking the load method directly in my overriding onBeforeRender method of the panel. Works just fine ... I just expected the component to handle without my manual involvement. jwcarman wrote: Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343892.html 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: Panel's LoadableDetachableModel not being loaded
But why? In any case, you can just call getModelObject() on the panel to get the loaded object. Which is much better from an encapsulation pov. Martijn On Tue, May 20, 2008 at 5:55 PM, msmall [EMAIL PROTECTED] wrote: Yes. I'm just invoking the load method directly in my overriding onBeforeRender method of the panel. Works just fine ... I just expected the component to handle without my manual involvement. jwcarman wrote: Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343892.html 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's LoadableDetachableModel not being loaded
I think maybe you're using models incorrectly, then. If you need the model object, call panel.getModelObject() and that will, in turn, call the load() method. On Tue, May 20, 2008 at 11:55 AM, msmall [EMAIL PROTECTED] wrote: Yes. I'm just invoking the load method directly in my overriding onBeforeRender method of the panel. Works just fine ... I just expected the component to handle without my manual involvement. jwcarman wrote: Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343892.html 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: Panel's LoadableDetachableModel not being loaded
I have a parent panel that has several sub panels that are indirectly dependent on their parent's model. By that I mean the parent panel's model needs to load data that is independent of the data loaded in the sub panels, but the sub panels are dependent on the data loaded by the parent to load their specific data. I think this falls outside of the normal use of models (LoadableDetachableModels that are separate but dependent on a chain of other LoadableDetachableModels), but I thought I'd use the auto-magically loading feature to easy the coding. Martijn Dashorst wrote: But why? In any case, you can just call getModelObject() on the panel to get the loaded object. Which is much better from an encapsulation pov. Martijn On Tue, May 20, 2008 at 5:55 PM, msmall [EMAIL PROTECTED] wrote: Yes. I'm just invoking the load method directly in my overriding onBeforeRender method of the panel. Works just fine ... I just expected the component to handle without my manual involvement. jwcarman wrote: Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343892.html 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.3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17344191.html 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: Panel's LoadableDetachableModel not being loaded
Thanks for the encapsulation suggestion ... as I described in my previous reply, this situation might be a bit out of the normal for models, but the encapsulation helps. jwcarman wrote: I think maybe you're using models incorrectly, then. If you need the model object, call panel.getModelObject() and that will, in turn, call the load() method. On Tue, May 20, 2008 at 11:55 AM, msmall [EMAIL PROTECTED] wrote: Yes. I'm just invoking the load method directly in my overriding onBeforeRender method of the panel. Works just fine ... I just expected the component to handle without my manual involvement. jwcarman wrote: Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343892.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17344218.html 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: ListItem queries
where do you want get the first panel? On Tue, May 20, 2008 at 5:46 AM, Ned Collyer [EMAIL PROTECTED] wrote: Hi, I need to get access to the first panel added to a list item in onBeforeRender from its parent. I have the following ListView featuresList = new ListView(listView, myList) { protected void populateItem(ListItem item) { MyPanel panel = new MyPanel(panel, item.getModelObject())); item.add(panel); } }.setReuseItems(true); How would I go about getting the first panel added? Rgds Ned -- View this message in context: http://www.nabble.com/ListItem-queries-tp17332693p17332693.html 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: ListItem queries
final MyPanel[] firstPanel =new MyPanel[1]; ListView featuresList = new ListView(listView, myList) { protected void populateItem(ListItem item) { MyPanel panel = new MyPanel(panel, item.getModelObject())); if (firstPanel[0] == null) firstPanel[0] = panel; item.add(panel); } }.setReuseItems(true); On Tue, May 20, 2008 at 6:22 AM, Scott Swank [EMAIL PROTECTED] wrote: MyPanel firstPanel = null; ListView featuresList = new ListView(listView, myList) { protected void populateItem(ListItem item) { MyPanel panel = new MyPanel(panel, item.getModelObject())); if (firstPanel == null) firstPanel = panel; item.add(panel); } }.setReuseItems(true); On Mon, May 19, 2008 at 8:46 PM, Ned Collyer [EMAIL PROTECTED] wrote: Hi, I need to get access to the first panel added to a list item in onBeforeRender from its parent. I have the following ListView featuresList = new ListView(listView, myList) { protected void populateItem(ListItem item) { MyPanel panel = new MyPanel(panel, item.getModelObject())); item.add(panel); } }.setReuseItems(true); How would I go about getting the first panel added? Rgds Ned -- View this message in context: http://www.nabble.com/ListItem-queries-tp17332693p17332693.html 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]
Forum?
hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Providing IModel to Validators
that is why formcomponents have a setLabel(IModelString) whose text is then available via ${label} place holder. -igor On Tue, May 20, 2008 at 7:14 AM, Hoover, William [EMAIL PROTECTED] wrote: What does everyone think about updating the Wicket core validators to contain an optional IModel? Simple Use Case: # properties file label.myminimum=My Object at row: {0} with value '${input}' must be smaller than ${minimum} ... final RefreshingView myView = new RefreshingView(tr-my-object-view) { protected final void populateItem(final Item item) { ... final TextField myTextField = new TextField(input-text-field); final IModel myMinValidatorModel = new StringResourceModel(label.myminimum, item, null, new Object[] { item.getIndex() }); myTextField.add(NumberValidator.MinimumValidator.minimum(10L, myMinValidatorModel); ... } }; ... So, instead of seeing a very general message that could apply to any number of fields that may contain the same value: ... '0' is smaller than the minimum of 10. '0' is smaller than the minimum of 10. '0' is smaller than the minimum of 10. ... You would see this: ... My Object at row: 1 with value '0' must be smaller than 10 My Object at row: 12 with value '0' must be smaller than 10 My Object at row: 20 with value '0' must be smaller than 10 ... The problem with just overriding the NumberValidator.minimum resource in this example is that makes it difficult to add custom property values (i.e. the index in example). - 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: Deployment vs development session
do the two users have different session ids? try printing it out from your authenticate method. -igor On Tue, May 20, 2008 at 7:59 AM, Cristi Manole [EMAIL PROTECTED] wrote: well, i figured it was just me... so I quit bothering you guys with something that's ... just me... :) i'm using tomcat, no clustering. this is my websession class: package com.fx.core; import java.security.NoSuchAlgorithmException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.wicket.Request; import org.apache.wicket.authentication.AuthenticatedWebApplication; import org.apache.wicket.authentication.AuthenticatedWebSession; import org.apache.wicket.authorization.strategies.role.Roles; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.spring.injection.annot.SpringBean; import com.fx.utils.crypt.UltraPasswordHasher; @SuppressWarnings(serial) public class WebSession extends AuthenticatedWebSession { private static final Log log = LogFactory.getLog(WebSession.class); @SpringBean private JdbcUtilizatori jdbcUtilizatori; private Utilizator utilizator; public WebSession(final AuthenticatedWebApplication application, Request request) { super(request); InjectorHolder.getInjector().inject(this); //don't get spring by default in sessions... } @Override *public boolean authenticate(final String username, final String password) { if(utilizator == null) { *UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(username); if(dao != null) { try { if(new UltraPasswordHasher().verifyPassword(password.getBytes(), dao.getParola())) { utilizator = new Utilizator(dao.getId(), username, dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip()); utilizator.addRole(AUTHENTICATED); } } catch (NoSuchAlgorithmException e) { log.error(ERROR:, e); return false; } } } return utilizator != null; } public void logOut() { utilizator = null; signOut(); } @Override public Roles getRoles() { if (isSignedIn()) { // If the user is signed in, they have these roles return new Roles((String[])utilizator.getRoles().toArray(new String[0])); } return null; } public Utilizator getUtilizator() { return utilizator; } public Utilizator getUtilizatorFor(String password) { UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(password); if(dao == null) { return null; } else { return new Utilizator(dao.getId(), dao.getUser(), dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip()); } } } in dev mode, running from two stations, same network (didn't test otherwise), utilizator is not null for the second user after the first has logged in (see bolded text above). And no matter what he puts in the login, it will get logged in with the others credential. *I really think I'm doing something stupid* cause this is the first time I get this and I've been developing quite a few web apps in wicket (then again i rarely develop in dev mode). Tks, Cristi Manole On Tue, May 20, 2008 at 5:23 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Tue, May 20, 2008 at 3:55 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, Today I tested an application on a number of computers (if it's useful know that they were in the same network). What I found out is that the wicket session was shared among them when wicket was started in dev mode. what symptoms of this did you see? does it also happen with a plain wicket-quickstart? what kind of server did you have running? what kind of cluster topology? what replication tech did you use? you cant just tell us something interesting like this and leave us hanging! -igor When I started the application in deploy mode, everything was as needed - a session object was created for each client. Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2. Thank you, Cristi Manole - 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: Hiding a border on a RepeatingView
On Tue, May 20, 2008 at 8:27 AM, Ned Collyer [EMAIL PROTECTED] wrote: Thanks Igor, I'd been checking all the api for getXXX and skipped that. How do I get the scope to the repeater inside the isVisible of the Border? pass it in and keep it as a field? make it an anonymous class and a final variable? this is just java and these things are just java objects, so its entirely up to you. -igor igor.vaynberg wrote: repeatingview.size() should do it -igor On Tue, May 20, 2008 at 6:39 AM, Ned Collyer [EMAIL PROTECTED] wrote: Hi, I have a border I've applied to a repeater. When items are removed from the repeater - and its effectively empty, I'd like to hide the border. I'm not sure how to go about doing this. I assume i should override isVisible on the border, but I'm unsure whats the best way of checking if it has an empty or unused RepeatingView. Rgds Ned -- View this message in context: http://www.nabble.com/Hiding-a-border-on-a-RepeatingView-tp17340483p17340483.html 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] -- View this message in context: http://www.nabble.com/Hiding-a-border-on-a-RepeatingView-tp17340483p17343184.html 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]
AjaxFormComponentUpdatingBehavior not working in IE7 using Wicket 1.3.3
AjaxFormComponentUpdatingBehavior works with Firefox, but not IE7. The error in the wicket debug window is: Could not locate ajax transport. Your browser does not support the required XMLHttpRequest object or wicket could not gain access to it. I created this simple example to demonstrate the issue: Example.java package example.page; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.CompoundPropertyModel; import org.apache.wicket.model.PropertyModel; public class Example extends WebPage { private int age; public Example() { Form form = new Form(form, new CompoundPropertyModel(this)); add(form); final Label label = new Label(label, new PropertyModel(this, age)); label.setOutputMarkupId(true); add(label); final TextField age = new TextField(age); age.add(new AjaxFormComponentUpdatingBehavior(onblur) { /** * */ private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { System.out.println(onUpdate triggered); target.addComponent(label); } }); form.add(age); } public int getAge() { return age; } public void setAge(int age) { this.age = age; } } Example.html == html head titleTest/title /head body div label wicket:id=labelMy Label Goes Here/label /div form wicket:id=form divAge: input type=text wicket:id=age //div div input type=submit value=Submit / /div /form /body /html Thanks, Jarmar Fowler -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBehavior-not-working-in-IE7-using-Wicket-1.3.3-tp17346965p17346965.html 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: AjaxFormComponentUpdatingBehavior not working in IE7 using Wicket 1.3.3
our jira is a much better place for bug reportsissues.apache.org -igor On Tue, May 20, 2008 at 11:12 AM, jfowler06 [EMAIL PROTECTED] wrote: AjaxFormComponentUpdatingBehavior works with Firefox, but not IE7. The error in the wicket debug window is: Could not locate ajax transport. Your browser does not support the required XMLHttpRequest object or wicket could not gain access to it. I created this simple example to demonstrate the issue: Example.java package example.page; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.CompoundPropertyModel; import org.apache.wicket.model.PropertyModel; public class Example extends WebPage { private int age; public Example() { Form form = new Form(form, new CompoundPropertyModel(this)); add(form); final Label label = new Label(label, new PropertyModel(this, age)); label.setOutputMarkupId(true); add(label); final TextField age = new TextField(age); age.add(new AjaxFormComponentUpdatingBehavior(onblur) { /** * */ private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { System.out.println(onUpdate triggered); target.addComponent(label); } }); form.add(age); } public int getAge() { return age; } public void setAge(int age) { this.age = age; } } Example.html == html head titleTest/title /head body div label wicket:id=labelMy Label Goes Here/label /div form wicket:id=form divAge: input type=text wicket:id=age //div div input type=submit value=Submit / /div /form /body /html Thanks, Jarmar Fowler -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBehavior-not-working-in-IE7-using-Wicket-1.3.3-tp17346965p17346965.html 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: AjaxFormComponentUpdatingBehavior not working in IE7 using Wicket 1.3.3
Agreed. I will open a new bug report. - Jarmar igor.vaynberg wrote: our jira is a much better place for bug reportsissues.apache.org -igor On Tue, May 20, 2008 at 11:12 AM, jfowler06 [EMAIL PROTECTED] wrote: AjaxFormComponentUpdatingBehavior works with Firefox, but not IE7. The error in the wicket debug window is: Could not locate ajax transport. Your browser does not support the required XMLHttpRequest object or wicket could not gain access to it. I created this simple example to demonstrate the issue: Example.java package example.page; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; import org.apache.wicket.model.CompoundPropertyModel; import org.apache.wicket.model.PropertyModel; public class Example extends WebPage { private int age; public Example() { Form form = new Form(form, new CompoundPropertyModel(this)); add(form); final Label label = new Label(label, new PropertyModel(this, age)); label.setOutputMarkupId(true); add(label); final TextField age = new TextField(age); age.add(new AjaxFormComponentUpdatingBehavior(onblur) { /** * */ private static final long serialVersionUID = 1L; protected void onUpdate(AjaxRequestTarget target) { System.out.println(onUpdate triggered); target.addComponent(label); } }); form.add(age); } public int getAge() { return age; } public void setAge(int age) { this.age = age; } } Example.html == html head titleTest/title /head body div label wicket:id=labelMy Label Goes Here/label /div form wicket:id=form divAge: input type=text wicket:id=age //div div input type=submit value=Submit / /div /form /body /html Thanks, Jarmar Fowler -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBehavior-not-working-in-IE7-using-Wicket-1.3.3-tp17346965p17346965.html 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] -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBehavior-not-working-in-IE7-using-Wicket-1.3.3-tp17346965p17347316.html 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: Strange problem cancelling out of a modal
Not that I am aware of - don't know that setting. What would that do exactly? -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:02 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close. Debugger shows that the cancel button's onSubmit() method doesn't even get called, unless I fill out all the fields and select all the radios. The AJAX panel doesn't show any errors either, neither does the feedback panel. I suspect this has to do with those components being set to required, but I never had a problem like that before. Any idea what's going on here? Michael - 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]
AutoCompleteTextField question
Hello, I'm interested in the following behavior for an auto complete text field, which is to contain a phone number: - when the user starts typing a phone number in the text field, the autocomplete will present information structured like this [number] - [name]. - when the user selects a [number] - [name] record, the text field should be filled only with [number]. What I managed so far is something like this: phone.add(new AjaxFormComponentUpdatingBehavior(onchange){ @Override public void onUpdate(AjaxRequestTarget target){ phone.setModelObject(telefon.getModelObjectAsString().substring(0, 10)); target.addComponent(phone); } }); but i'm sure there must be another, nicer way. Tks, Cristi Manole
Re: Strange problem cancelling out of a modal
It turns off form validating and model updating, giving you full control to this yourself or skip it all together. In the case of a cancel button the latter is generally what you want. Alternatively you can use a plain link so your form does not even get submitted. Maurice On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not that I am aware of - don't know that setting. What would that do exactly? -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:02 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close. Debugger shows that the cancel button's onSubmit() method doesn't even get called, unless I fill out all the fields and select all the radios. The AJAX panel doesn't show any errors either, neither does the feedback panel. I suspect this has to do with those components being set to required, but I never had a problem like that before. Any idea what's going on here? Michael - 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: Strange problem cancelling out of a modal
I looked for that call, but couldn't find it - could you please point me in the right direction? Also, I assume setting this in the cancel button's event handler would be sufficient? Thanks for your input. -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 11:47 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal It turns off form validating and model updating, giving you full control to this yourself or skip it all together. In the case of a cancel button the latter is generally what you want. Alternatively you can use a plain link so your form does not even get submitted. Maurice On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not that I am aware of - don't know that setting. What would that do exactly? -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:02 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close. Debugger shows that the cancel button's onSubmit() method doesn't even get called, unless I fill out all the fields and select all the radios. The AJAX panel doesn't show any errors either, neither does the feedback panel. I suspect this has to do with those components being set to required, but I never had a problem like that before. Any idea what's going on here? Michael - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel's LoadableDetachableModel not being loaded
Or you can wrap the LDM in a CompoundPropertyModel and set that as the model of parent panel, that way your subpanels do not need to have there own model and they will trigger a load on the LDM. Maurice On Tue, May 20, 2008 at 6:23 PM, Johan Compagner [EMAIL PROTECTED] wrote: so you have Panel SubPanel1 SubPanel2 all three of them have a LoadableModel and the 2 subs depend on the Parent panel? But does the parent panel itself do anything with the data? do you call getModelObject on it? or getModel().getObject() ? if not that you dont need to give that panel the loadable model If you say that the 2 subs need models and those depend on the parent model then you could give the SubPanels a model like this: public class MySpecialSubPanelModel { MySpecialSubPanelModel(LoadableModel parentModel) {} getObject() { Object object = parentmodel.getObect() /// do something with that object to create another object?? return otherObject; } } johan On Tue, May 20, 2008 at 6:08 PM, msmall [EMAIL PROTECTED] wrote: I have a parent panel that has several sub panels that are indirectly dependent on their parent's model. By that I mean the parent panel's model needs to load data that is independent of the data loaded in the sub panels, but the sub panels are dependent on the data loaded by the parent to load their specific data. I think this falls outside of the normal use of models (LoadableDetachableModels that are separate but dependent on a chain of other LoadableDetachableModels), but I thought I'd use the auto-magically loading feature to easy the coding. Martijn Dashorst wrote: But why? In any case, you can just call getModelObject() on the panel to get the loaded object. Which is much better from an encapsulation pov. Martijn On Tue, May 20, 2008 at 5:55 PM, msmall [EMAIL PROTECTED] wrote: Yes. I'm just invoking the load method directly in my overriding onBeforeRender method of the panel. Works just fine ... I just expected the component to handle without my manual involvement. jwcarman wrote: Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall [EMAIL PROTECTED] wrote: And thanks for the help. jwcarman wrote: If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall [EMAIL PROTECTED] wrote: No, I'm just wiring up the panel so it does not have any subcomponents yet. Regardless, I'm confused as to why Panel, as a Component, would not handle this on its own. jwcarman wrote: Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall [EMAIL PROTECTED] wrote: I have a panel that has a LoadableDetachableModel as its model (i.e. I'm calling this.setModel(new LoadableDetachableModel() { ... }) in the constructor of my panel, but this load method of the model is never invoked. If I use that model in another component, such as a Label, it works correctly. Do panels not support detachable models? -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343003.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343131.html 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] -- View this message in context: http://www.nabble.com/Panel%27s-LoadableDetachableModel-not-being-loaded-tp17343003p17343660.html 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] -- View this message in context:
Re: Strange problem cancelling out of a modal
See Button#setDefaultFormProcessing and you would call it either in the constructor of the button or directly after constructing the button. onsubmit is too late. Maurice On Tue, May 20, 2008 at 8:49 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I looked for that call, but couldn't find it - could you please point me in the right direction? Also, I assume setting this in the cancel button's event handler would be sufficient? Thanks for your input. -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 11:47 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal It turns off form validating and model updating, giving you full control to this yourself or skip it all together. In the case of a cancel button the latter is generally what you want. Alternatively you can use a plain link so your form does not even get submitted. Maurice On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not that I am aware of - don't know that setting. What would that do exactly? -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:02 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close. Debugger shows that the cancel button's onSubmit() method doesn't even get called, unless I fill out all the fields and select all the radios. The AJAX panel doesn't show any errors either, neither does the feedback panel. I suspect this has to do with those components being set to required, but I never had a problem like that before. Any idea what's going on here? Michael - 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] - 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: Forum?
Which security framework do you plan on using? ;) Maurice 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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: Strange problem cancelling out of a modal
That seems to be working fine now. It's sometimes easy to ignore/forget the underpinnings of how wicket works. Obviously, to wicket this is a submit button and the form was being processed prior to closing the modal. Thanks a lot for your help :-) Michael -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 11:56 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal See Button#setDefaultFormProcessing and you would call it either in the constructor of the button or directly after constructing the button. onsubmit is too late. Maurice On Tue, May 20, 2008 at 8:49 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I looked for that call, but couldn't find it - could you please point me in the right direction? Also, I assume setting this in the cancel button's event handler would be sufficient? Thanks for your input. -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 11:47 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal It turns off form validating and model updating, giving you full control to this yourself or skip it all together. In the case of a cancel button the latter is generally what you want. Alternatively you can use a plain link so your form does not even get submitted. Maurice On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Not that I am aware of - don't know that setting. What would that do exactly? -Original Message- From: Maurice Marrink [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:02 AM To: users@wicket.apache.org Subject: Re: Strange problem cancelling out of a modal Does your cancel button have default formprocessing set to false? Maurice On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I've got a strange problem cancelling out of a modal. Unless I make selections on all my form components inside that modal, it just won't close. Debugger shows that the cancel button's onSubmit() method doesn't even get called, unless I fill out all the fields and select all the radios. The AJAX panel doesn't show any errors either, neither does the feedback panel. I suspect this has to do with those components being set to required, but I never had a problem like that before. Any idea what's going on here? Michael - 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] - 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: Deployment vs development session
no, nothing fancy there... anyways, I can't seem to replicate it easily now and I don't have time for further investigation. sorry for your time and also thank you for it. i will definitely try later. On Tue, May 20, 2008 at 8:59 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: also, what does your code look like that creates a new instance of session (application.newsession()) -igor On Tue, May 20, 2008 at 10:58 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: do the two users have different session ids? try printing it out from your authenticate method. -igor On Tue, May 20, 2008 at 7:59 AM, Cristi Manole [EMAIL PROTECTED] wrote: well, i figured it was just me... so I quit bothering you guys with something that's ... just me... :) i'm using tomcat, no clustering. this is my websession class: package com.fx.core; import java.security.NoSuchAlgorithmException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.wicket.Request; import org.apache.wicket.authentication.AuthenticatedWebApplication; import org.apache.wicket.authentication.AuthenticatedWebSession; import org.apache.wicket.authorization.strategies.role.Roles; import org.apache.wicket.injection.web.InjectorHolder; import org.apache.wicket.spring.injection.annot.SpringBean; import com.fx.utils.crypt.UltraPasswordHasher; @SuppressWarnings(serial) public class WebSession extends AuthenticatedWebSession { private static final Log log = LogFactory.getLog(WebSession.class); @SpringBean private JdbcUtilizatori jdbcUtilizatori; private Utilizator utilizator; public WebSession(final AuthenticatedWebApplication application, Request request) { super(request); InjectorHolder.getInjector().inject(this); //don't get spring by default in sessions... } @Override *public boolean authenticate(final String username, final String password) { if(utilizator == null) { *UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(username); if(dao != null) { try { if(new UltraPasswordHasher().verifyPassword(password.getBytes(), dao.getParola())) { utilizator = new Utilizator(dao.getId(), username, dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip()); utilizator.addRole(AUTHENTICATED); } } catch (NoSuchAlgorithmException e) { log.error(ERROR:, e); return false; } } } return utilizator != null; } public void logOut() { utilizator = null; signOut(); } @Override public Roles getRoles() { if (isSignedIn()) { // If the user is signed in, they have these roles return new Roles((String[])utilizator.getRoles().toArray(new String[0])); } return null; } public Utilizator getUtilizator() { return utilizator; } public Utilizator getUtilizatorFor(String password) { UtilizatorDAO dao = jdbcUtilizatori.getUtilizator(password); if(dao == null) { return null; } else { return new Utilizator(dao.getId(), dao.getUser(), dao.getParola(), dao.getNume(), dao.getPrenume(), dao.getTip()); } } } in dev mode, running from two stations, same network (didn't test otherwise), utilizator is not null for the second user after the first has logged in (see bolded text above). And no matter what he puts in the login, it will get logged in with the others credential. *I really think I'm doing something stupid* cause this is the first time I get this and I've been developing quite a few web apps in wicket (then again i rarely develop in dev mode). Tks, Cristi Manole On Tue, May 20, 2008 at 5:23 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Tue, May 20, 2008 at 3:55 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, Today I tested an application on a number of computers (if it's useful know that they were in the same network). What I found out is that the wicket session was shared among them when wicket was started in dev mode. what symptoms of this did you see? does it also happen with a plain wicket-quickstart? what kind of server did you have running? what kind of cluster topology? what replication tech did you use? you cant just tell us something interesting like this and leave us hanging! -igor When I started the application in deploy mode, everything was as needed - a session object was created for each client. Is this how it's suppose to work in dev mode? I'm using wicket 1.3.2. Thank you, Cristi Manole
Getting an IllegalStateException when refreshing a WebMarkupContainer containing a AjaxFallbackDefaultDataTable with one of the columns is a AjaxEditableLabel which refreshes the markup container on s
Getting the following error. Not sure what I am doing wrong. I've seen other JIRA issues opened along the same lines. IllegalStateException when refreshing a WebMarkupContainer containing a AjaxFallbackDefaultDataTable where one of the columns is a AjaxEditableLabel which refreshes the markup container on submit Attached is the html + page + component to recreate the issue. Stack Trace as follows: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = cell, page = No Page, path = 1:cells:5:cell.QuantityLabel]] at org.apache.wicket.Component.getPage(Component.java:1658) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:689) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:605) at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1172) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) package da.web.wicket.test; //~--- non-JDK imports import java.util.ArrayList; import java.util.List; import da.web.wicket.structure.MainPageWithBorder; import da.web.wicket.test.datatable.SortableContactDataProvider; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel; import org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable; import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.repeater.Item; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings(value=all) public class TestAjaxDataTable extends MainPageWithBorder { /** * */ private static final long serialVersionUID = 1L; static Logger logger = LoggerFactory.getLogger(TestAjaxDataTable.class); public TestAjaxDataTable() { List columns = new ArrayList(); /* columns.add(new AbstractColumn(new Model(Actions)) { public void populateItem(Item cellItem, String componentId, IModel model) { cellItem.add(new ActionPanel(componentId, model)); } }); */ WebMarkupContainer wmc = new WebMarkupContainer(container); wmc.setOutputMarkupId(true); add(wmc); columns.add(new PropertyColumn(new Model(ID), id)); columns.add(new PropertyColumn(new Model(First Name), firstName, firstName)); columns.add(new PropertyColumn(new Model(Last Name), lastName, lastName)); columns.add(new PropertyColumn(new Model(Home Phone), homePhone)); EditableQuantityPropertyColumn eqpc = new EditableQuantityPropertyColumn(new Model(Cell Phone), cellPhone); eqpc.setCartContainer(wmc); columns.add(eqpc); wmc.add(new AjaxFallbackDefaultDataTable(table, columns, new SortableContactDataProvider(), 8)); /* AjaxFallbackDefaultDataTable dt = new AjaxFallbackDefaultDataTable(table); add(dt); */ } } class EditableQuantityPropertyColumn extends PropertyColumn { QuantityLabel ql; WebMarkupContainer cartData; /** * */ private static final long serialVersionUID = 1L; static Logger logger = LoggerFactory.getLogger(EditableQuantityPropertyColumn.class); public EditableQuantityPropertyColumn(IModel model, String propertyExpression) { super(model, propertyExpression); } public EditableQuantityPropertyColumn(IModel model, String sortOrder, String propertyExpression) { super(model, sortOrder, propertyExpression); } public void populateItem(Item item, String componentId, IModel model) { IModel labelmodel = createLabelModel(model); ql = new QuantityLabel(componentId, labelmodel, model); ql.setCartContainer(getCartContainer()); item.add(ql); } protected IModel createLabelModel(IModel embeddedModel) { IModel m = super.createLabelModel(embeddedModel); return m; } public void setCartContainer(WebMarkupContainer d) { cartData = d; } public WebMarkupContainer getCartContainer() { return cartData; } } class QuantityLabel extends AjaxEditableLabel { /** * */ private static final long serialVersionUID = 1L; static Logger logger = LoggerFactory.getLogger(QuantityLabel.class); IModel originalmodel; public QuantityLabel(String id, IModel model, IModel originalmodel) {
Re: Encoding problem when deploying on production server
Try setHeader(Content-Type,text/plain;charset=utf-8); on your message for JavaMail. Thanks, Eirik Rude http://www.i18now.com On Tue, May 20, 2008 at 12:13 PM, Johan Compagner [EMAIL PROTECTED] wrote: i think that is the place where you should look If you give it as a String to java mail then there is where the encoding takes place. johan On Tue, May 20, 2008 at 5:21 PM, Piller Sébastien [EMAIL PROTECTED] wrote: Hi Johan, Well, I then use the string returned by StringResponse#toString on Javamail, with that code: BodyPart htmlBodyPart = new MimeBodyPart(); htmlBodyPart.setContent(htmlBody, text/html); multipart.addBodyPart(htmlBodyPart); ... Is it possible to be a javamail issue? I guess can you please confirm or infirm this? Thank you ;) Johan Compagner a écrit : what are you doing with that StringResponse? Because that string response still is just java so UTF when that string is streamed or converted to bytes you should do something.. johan On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problem when deploying on production server
Make sure to do the same for body and subject. body.setContent(msgtext, text/html;charset=utf-8); Thanks, Eirik Rude http://www.i18now.com On Tue, May 20, 2008 at 3:23 PM, Eirik Rude [EMAIL PROTECTED] wrote: Try setHeader(Content-Type,text/plain;charset=utf-8); on your message for JavaMail. Thanks, Eirik Rude http://www.i18now.com On Tue, May 20, 2008 at 12:13 PM, Johan Compagner [EMAIL PROTECTED] wrote: i think that is the place where you should look If you give it as a String to java mail then there is where the encoding takes place. johan On Tue, May 20, 2008 at 5:21 PM, Piller Sébastien [EMAIL PROTECTED] wrote: Hi Johan, Well, I then use the string returned by StringResponse#toString on Javamail, with that code: BodyPart htmlBodyPart = new MimeBodyPart(); htmlBodyPart.setContent(htmlBody, text/html); multipart.addBodyPart(htmlBodyPart); ... Is it possible to be a javamail issue? I guess can you please confirm or infirm this? Thank you ;) Johan Compagner a écrit : what are you doing with that StringResponse? Because that string response still is just java so UTF when that string is streamed or converted to bytes you should do something.. johan On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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: Forum?
Don't forget to make it language independent so it runs on C#, Scala, Fortran or Algol 68 as well :-) Am 20.05.2008 um 22:15 schrieb James Carman: If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
I am interested in helping out. And I am sure others are too. I hope you keep going with this idea. Cristi Manole On Tue, May 20, 2008 at 11:26 PM, Peter Ertl [EMAIL PROTECTED] wrote: Don't forget to make it language independent so it runs on C#, Scala, Fortran or Algol 68 as well :-) Am 20.05.2008 um 22:15 schrieb James Carman: If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
I'm interested. I just don't know about making it ORM and container agnostic. There are too many things you can do with Spring that I can't live without (like @Transactional annotations). On Tue, May 20, 2008 at 4:29 PM, Cristi Manole [EMAIL PROTECTED] wrote: I am interested in helping out. And I am sure others are too. I hope you keep going with this idea. Cristi Manole On Tue, May 20, 2008 at 11:26 PM, Peter Ertl [EMAIL PROTECTED] wrote: Don't forget to make it language independent so it runs on C#, Scala, Fortran or Algol 68 as well :-) Am 20.05.2008 um 22:15 schrieb James Carman: If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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] - 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]
Checkbox inside the Dropdown
Hi, Does wicket have a component that gives the ability to nest the various choices with checkboxes as dropdown options. I want to be able to put checkboxes in the dropdown along with other text from compnent's model and user should be able to make selections by checking one or multiple check boxes. Its kind of putting the ListView with Checkboxes inside the dropdown. An example demo is here http://easylistbox.com/demoMultiDropDown.aspx Can some one give me a pointer? Thanks, -- View this message in context: http://www.nabble.com/Checkbox-inside-the-Dropdown-tp17350248p17350248.html 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: Forum?
guice DOES support @Transactional (and any other AOP Alliance interceptor) it's called AbstractModule.bindInterceptor() Am 20.05.2008 um 22:33 schrieb James Carman: I'm interested. I just don't know about making it ORM and container agnostic. There are too many things you can do with Spring that I can't live without (like @Transactional annotations). On Tue, May 20, 2008 at 4:29 PM, Cristi Manole [EMAIL PROTECTED] wrote: I am interested in helping out. And I am sure others are too. I hope you keep going with this idea. Cristi Manole On Tue, May 20, 2008 at 11:26 PM, Peter Ertl [EMAIL PROTECTED] wrote: Don't forget to make it language independent so it runs on C#, Scala, Fortran or Algol 68 as well :-) Am 20.05.2008 um 22:15 schrieb James Carman: If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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] - 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 wiki page: Simple FBML redirect with Wicket
Hi all - I ended up summarizing some of my day here: http://cwiki.apache.org/WICKET/simple-fbml-redirect-with-wicket.html Check it out if you're interested. I'd also like to get in touch with other Wicket developers doing apps for social networks. I searched the archives for facebook, fbml, bebo, opensocial etc and didn't find a whole lot. I'm not sure how to interpret this - are there not very many of us, or does everyone manage without any help? :) -- LL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DateField strangeness
I'm adding a DateField like this: DateField endTimeField = new DateField(eventSchedule.endTime); Now, when I open my page I see two fields - one with the id eventSchedule.endTime and one next to it, before the JS calendar icon called 'date83'. All I want to do is to show one field followed by the JS calendar icon. Is there something I'm missing here? Michael
Re: DateField strangeness
iirc, that happens when the corresponding markup of the DateField is an input tag and not a div tag. DateField is a Panel (or FormComponentPanel), but not a FormComponent like TextField. hth, Gerolf On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm adding a DateField like this: DateField endTimeField = new DateField(eventSchedule.endTime); Now, when I open my page I see two fields - one with the id eventSchedule.endTime and one next to it, before the JS calendar icon called 'date83'. All I want to do is to show one field followed by the JS calendar icon. Is there something I'm missing here? Michael
RE: DateField strangeness
Grrr - of course!! I originally mocked it as a TextField. Thanks :-) Michael -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 1:52 PM To: users@wicket.apache.org Subject: Re: DateField strangeness iirc, that happens when the corresponding markup of the DateField is an input tag and not a div tag. DateField is a Panel (or FormComponentPanel), but not a FormComponent like TextField. hth, Gerolf On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm adding a DateField like this: DateField endTimeField = new DateField(eventSchedule.endTime); Now, when I open my page I see two fields - one with the id eventSchedule.endTime and one next to it, before the JS calendar icon called 'date83'. All I want to do is to show one field followed by the JS calendar icon. Is there something I'm missing here? Michael
Re: stream content with an IndicatingAjaxLink
Yes, a save dialog. Just a normal standard download but, as there is some time consuming processing related to the download, I want some busy icon to tell the user that something is happening. There not all so good to see the browser status bar and they click again and again until the save dialog box finally pop up. Maybe a normal link with some ajax events to control the link icon could do it. Chang to busy icon when onclik and change it back when onload . Could that do it ? Javascript and ajax is not my strong side, any suggestion appreciated. Thanks. Johan Compagner wrote: what do you want to do with that picture? what should happen? a save dialog? (attachement?) if that is the case then the best thing i guess to do is use a normal link or use an ajax link that sets the window.location.href = xxx in a piece of javascript. (maybe inside a iframe?) johan On Mon, May 19, 2008 at 3:42 PM, renaud.houver [EMAIL PROTECTED] wrote: I have a download picture link which take a bit of time. Result is that the user is impatiently clicking several time. I would like to have a kind of timer showing process and I tried to use IndicatingAjaxLink which does the job. But I cant find out to stream to the outputstream with an ajax link. I tried both to get outputStream from ajax target. public void onClick(AjaxRequestTarget target) { target.getHeaderResponse().getResponse().getOutputStream(); ... or from a new target on requestCycle from page public void onClick(AjaxRequestTarget target) { public void onClick(AjaxRequestTarget target) { target.getHeaderResponse().getResponse().getOutputStream(); target.getPage().getRequestCycle().setRequestTarget(new IRequestTarget(){ public void respond(RequestCycle requestCycle) { ((WebResponse)requestCycle.getResponse()).getOutputStream(); ... None works ... Any advice ? Something with resources maybe ? Here is the onClick method with a normal link.That works fine. public void onClick() { final byte[] bytes = getDirectDownloadBytes(phot); if(bytes != null bytes.length 0) { getRequestCycle().setRequestTarget(new IRequestTarget() { public void respond(RequestCycle requestCycle) { WebResponse r = (WebResponse)requestCycle.getResponse(); r.setAttachmentHeader(fileName); try { r.getOutputStream().write(bytes); } catch (IOException e) { throw new RuntimeException(e); } finally { } } }); } } -- View this message in context: http://www.nabble.com/stream-content-with-an-IndicatingAjaxLink-tp17316702p17316702.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/stream-content-with-an-IndicatingAjaxLink-tp17316702p17350702.html 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: Forum?
Maurice Marrink schrieb: Which security framework do you plan on using? ;) *g* actually, it could use a homegrowkn one, which essentially is a bunch of interfaces (together with a trivial impl). sorry, that i did not (yet?) choose swarm for frontend permission handling, but i needed something like that unrelated to the GUI framework used quite some time ago. feel free, to convert me ;) cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main
I am trying to instantiate a Panel according to an specific object. I thought this was something related to reflection, but the panel is throwing this exception. Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main I developed a test with junit to be assured that this works. I think this is the problem. If this is the case, how can I do a test to guarantee that this works without the server running? -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/
Re: Forum?
James Carman schrieb: If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? i do not intend to build an off-the-shelf, plug-and-run product. if you want smth like that, use JForum. what i want to create is a barebone and easy to customize, extend and integrate forum in wicket, because - well - i just need one, and it could be fun :) in order to make it useful to as many people as possible, i just though reducing 'hard' dependencies to a bare minimum would be a good idea. it would be nice to make this useful no matter what your frameworks of choice are. Do you think a site admin will honestly care which container you use (or ORM API for that matter)? not in the off-the-shelf product case. cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
Peter Ertl schrieb: Don't forget to make it language independent so it runs on C#, Scala, Fortran or Algol 68 as well :-) well, at least scala runs on the JVM, so: no 1: checked ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkbox inside the Dropdown
no, wicket does not have a component like this out of the box, but you can easily create one yourself by wrapping the javascript on the example page. there are plenty of javascript driven components you can use as examples in wicket-stuff -igor On Tue, May 20, 2008 at 1:35 PM, nanotech [EMAIL PROTECTED] wrote: Hi, Does wicket have a component that gives the ability to nest the various choices with checkboxes as dropdown options. I want to be able to put checkboxes in the dropdown along with other text from compnent's model and user should be able to make selections by checking one or multiple check boxes. Its kind of putting the ListView with Checkboxes inside the dropdown. An example demo is here http://easylistbox.com/demoMultiDropDown.aspx Can some one give me a pointer? Thanks, -- View this message in context: http://www.nabble.com/Checkbox-inside-the-Dropdown-tp17350248p17350248.html 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: DateField strangeness
you should make it check what tag it is attached to :) -igor On Tue, May 20, 2008 at 1:52 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: iirc, that happens when the corresponding markup of the DateField is an input tag and not a div tag. DateField is a Panel (or FormComponentPanel), but not a FormComponent like TextField. hth, Gerolf On Tue, May 20, 2008 at 10:47 PM, Michael Mehrle [EMAIL PROTECTED] wrote: I'm adding a DateField like this: DateField endTimeField = new DateField(eventSchedule.endTime); Now, when I open my page I see two fields - one with the id eventSchedule.endTime and one next to it, before the JS calendar icon called 'date83'. All I want to do is to show one field followed by the JS calendar icon. Is there something I'm missing here? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
Peter Ertl schrieb: guice DOES support @Transactional (and any other AOP Alliance interceptor) it's called AbstractModule.bindInterceptor() actually, there are quite a few frameworks on top of guice using this to implement the exact same @Transactional behaviour. shouldn´t it be quite simple to opt this out? if not, i could live with JPA Guice, because this is *my* current toolset ;) seriously: guice can happyly coexist with spring afaik, and any serious ORM implements JPA1.0 (hope, those JDO guys wont strike me down now). would it be an option to choose guice for INTERNAL DI and rely on JPA? @Spring guys: yes, we´d have @Tranactional, OpenEMInView and something similar to JPATemplate as well as a little criteria API, then. cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
But, if you're already using spring as a dependency (by using @Transactional), then why use another IoC container? On Tue, May 20, 2008 at 4:42 PM, Peter Ertl [EMAIL PROTECTED] wrote: guice DOES support @Transactional (and any other AOP Alliance interceptor) it's called AbstractModule.bindInterceptor() Am 20.05.2008 um 22:33 schrieb James Carman: I'm interested. I just don't know about making it ORM and container agnostic. There are too many things you can do with Spring that I can't live without (like @Transactional annotations). On Tue, May 20, 2008 at 4:29 PM, Cristi Manole [EMAIL PROTECTED] wrote: I am interested in helping out. And I am sure others are too. I hope you keep going with this idea. Cristi Manole On Tue, May 20, 2008 at 11:26 PM, Peter Ertl [EMAIL PROTECTED] wrote: Don't forget to make it language independent so it runs on C#, Scala, Fortran or Algol 68 as well :-) Am 20.05.2008 um 22:15 schrieb James Carman: If you are creating a product, why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer [EMAIL PROTECTED]: hi i remember someone asking for a wicket based forum few weeks ago. i plan to build one within the next few months. is there anyone interested in contributing code, ideas, reviews, tests or criticism? it is going to be as modular as i can get it, and should play nicely with guice as well as spring, jpa as well as hibernate or ibatis, etc... anyone interested in helping out? cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
if you make it pragmatically configurable then it shouldnt matter what IOC you use, after all thats the point. i think @Transactional is pretty much a standard by now and you can make that work via guice or spring or any other aspect you want to have in your environment -igor On Tue, May 20, 2008 at 2:54 PM, Uwe Schäfer [EMAIL PROTECTED] wrote: Peter Ertl schrieb: guice DOES support @Transactional (and any other AOP Alliance interceptor) it's called AbstractModule.bindInterceptor() actually, there are quite a few frameworks on top of guice using this to implement the exact same @Transactional behaviour. shouldn´t it be quite simple to opt this out? if not, i could live with JPA Guice, because this is *my* current toolset ;) seriously: guice can happyly coexist with spring afaik, and any serious ORM implements JPA1.0 (hope, those JDO guys wont strike me down now). would it be an option to choose guice for INTERNAL DI and rely on JPA? @Spring guys: yes, we´d have @Tranactional, OpenEMInView and something similar to JPATemplate as well as a little criteria API, then. cu uwe - 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: Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main
Take a look on WicketTester. Frank On Tue, May 20, 2008 at 11:20 PM, Fernando Wermus [EMAIL PROTECTED] wrote: I am trying to instantiate a Panel according to an specific object. I thought this was something related to reflection, but the panel is throwing this exception. Caused by: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread main I developed a test with junit to be assured that this works. I think this is the problem. If this is the case, how can I do a test to guarantee that this works without the server running? -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
James Carman schrieb: But, if you're already using spring as a dependency (by using @Transactional), then why use another IoC container? nope, don´t. others can define @Transactional annotations as well ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forum?
On Tue, May 20, 2008 at 11:38 PM, Uwe Schäfer [EMAIL PROTECTED] wrote: Maurice Marrink schrieb: Which security framework do you plan on using? ;) *g* actually, it could use a homegrowkn one, which essentially is a bunch of interfaces (together with a trivial impl). sorry, that i did not (yet?) choose swarm for frontend permission handling, but i needed something like that unrelated to the GUI framework used quite some time ago. As of 1.3.1 the actual permission handling is completely decoupled from wicket feel free, to convert me ;) I am not good at converting people, either you see the light or you don't :P One of the strong points of swarm (imo ;)) is the ease with which it lets you create complex authorization schemes, while still giving the end user full control to create there own user roles. Yes i think a forum warrants a complex authorization scheme :) just thinking of the top of my head i can come up with admins, moderators, power users, users and guests all having different permissions using swarm you can define permissions down to the individual components on the pages (not that you would want to do that on every page :) but you could) administrators can then choose which permissions to grant to each role and or define there own roles. But even if you want to keep it simple you just define 2 roles admin and user and not a single line of code needs to change :) Maurice cu uwe - 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]