[OT] HackAttackException in CryptedUrlWebRequestCodingStrategy, line 606
Just wanna say that i like the name: HackAttackException :) it is in CryptedUrlWebRequestCodingStrategy, line 606 Bye -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
FileUploadException wrapped in wiketRuntime exception, why? is that a good practice?
Hi there, i have a question about FileUploadException. In line 80 of MultipartServletWebRequest, the constructor throws FileUploadException which is checked, and then in line 500 of ServletWebRequest, it was wrapped to a wickerRuntimeException, @Override public WebRequest newMultipartWebRequest(Bytes maxsize) { try { MultipartServletWebRequest multipart = new MultipartServletWebRequest( httpServletRequest, maxsize); multipart.setRequestParameters(getRequestParameters()); return multipart; } catch (FileUploadException e) { throw new WicketRuntimeException(e); } } is that a good practice?, why FileUploadException is a checked exception? because it could be runtime exception because then it is wrapped anyway. does anybody knows? Thanks NM -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: Welcome Martin Grigorov as a core team member
Hey! congratulations! On Mon, Jul 19, 2010 at 10:12 PM, Eelco Hillenius eelco.hillen...@gmail.com wrote: Welcome Martin, and thanks a bunch for keeping the project alive and kicking! Eelco On Mon, Jul 19, 2010 at 2:51 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Grats Martin :) 2010/7/19 Jeremy Thomerson jer...@wickettraining.com The Wicket team is happy to announce that Martin Grigorov was invited to join the Wicket team as a committer and PMC member, and he accepted! Martin's relentless patience, high quality patches and sustained energy haven't gone unnoticed. He has continually provided valuable insights and put a lot of effort into the project. He helps out many on the mailing lists and IRC channel. In Martin's first two days with access, he's already made 16 commits and closed several JIRA issues. We look forward to his continued contributions. Please join me in welcoming Martin to the team! -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: one session for standAloneApp or one session for FacebookApp
sounds like Authetication rules On Thu, Jun 24, 2010 at 3:37 PM, Fernando Wermus fernando.wer...@gmail.comwrote: Hi all, Users can login into my site in stand alone mode or with facebook connect. Thus, I would like to have two polimorphic session according to how the user decides to login. Could I switch the session in wicket when this happen? I was looking at Session.replaceSession() thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: OT: html validator that parses add'l dtd's?
set up your app en deployment mode, or copy the development mode setup of wicket and modify it in order to not show wicket:id tag On Fri, Jun 11, 2010 at 3:36 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Can anyone recommend a validator (browser plugin, online, or eclipse plugin) that won't complain about wicket tags when dtd is declared properly. W3C complains about those tags even if the following is declared: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; xml:lang=en lang=en thanks, -nikita -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: Re: RE: Rich Text Editors and Wicket
Strange... It is in google app engine, are you from china? NM 2010/5/30 wicketyan wicket...@gmail.com sorry.can't see http://www.clasificad.com.ar/clasificadoNuevo . Even I used proxy,there is no rich text editors,just a publica file page. 2010-05-30 wicketyan 发件人: nicolas melendez 发送时间: 2010-05-30 02:56:14 收件人: users 抄送: 主题: Re: RE: Rich Text Editors and Wicket I also use use YUI editor with wicket, see: http://www.clasificad.com.ar/clasificadoNuevo http://www.clasificad.com.ar/clasificadoNuevoNM On Sat, May 29, 2010 at 7:10 AM, wicketyan wicket...@gmail.com wrote: thanks Hammer,I'm learning. 2010-05-29 wicketyan 发件人: M. Hammer 发送时间: 2010-05-29 15:54:09 收件人: users 抄送: 主题: RE: Rich Text Editors and Wicket Quoting Chris Colman chr...@stepaheadsoftware.com: Is your YUI/Wicket component/integration code publicly available or could it be? I've written a blog post on the integration: http://www.hammersoft.de/blog/?p=31 Maybe a FckEditor integration can be done in a similar manner. Keep me posted if you do this, I am not entirely happy with YUI either. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: RE: Rich Text Editors and Wicket
I also use use YUI editor with wicket, see: http://www.clasificad.com.ar/clasificadoNuevo http://www.clasificad.com.ar/clasificadoNuevoNM On Sat, May 29, 2010 at 7:10 AM, wicketyan wicket...@gmail.com wrote: thanks Hammer,I'm learning. 2010-05-29 wicketyan 发件人: M. Hammer 发送时间: 2010-05-29 15:54:09 收件人: users 抄送: 主题: RE: Rich Text Editors and Wicket Quoting Chris Colman chr...@stepaheadsoftware.com: Is your YUI/Wicket component/integration code publicly available or could it be? I've written a blog post on the integration: http://www.hammersoft.de/blog/?p=31 Maybe a FckEditor integration can be done in a similar manner. Keep me posted if you do this, I am not entirely happy with YUI either. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: Small doubt about wicket and Html
you should use HTML/CSS for desing and java for GUI logic, like make something invisible or visible. On Tue, May 18, 2010 at 4:36 PM, Victor_Trapiello vic...@trapiello.netwrote: Thank you very much guys -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2221787.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- NM (Nicolás Meléndez) Java Software Developer A) Google App Engine works: 1) http://www.clasificad.com.ar - Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI 2) http://www.chessk.com - Massive multiplayer chess online - GAE/J + Applets + Wicket B) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
Re: firefox 3.5.9
when you enter to gmail, with firebug activated, a warning appear! haha On Tue, May 18, 2010 at 12:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Are you using firebug? 2010/5/18 Douglas Ferguson doug...@douglasferguson.us: Where are experiencing some strange latency with ajax (even the indicator gif stops spining), so far we've only seen it on windows firefox 3.5.9 Are there any know issues? D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- NM (Nicolás Meléndez) Java Software Developer A) Google App Engine works: 1) http://www.clasificad.com.ar - Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI 2) http://www.chessk.com - Massive multiplayer chess online - GAE/J + Applets + Wicket B) Linkedin: http://ar.linkedin.com/in/nicolasmelendez
how can i add my site developed in wicket + GAE to Websites based on Wicket?
How can i add my site developed in wicket + GAE to Websites based on Wicket in the wiki? NM
Re: Big Problem with TinyMCE
hey! do this: add to the page a hidden ajaxSubmitLink and se it an id, for example: submitToServer. In the onclick java method of the hidden ajaxSubmitLink do your java magic server-side. Then in your submit button of the html page, add a small javascript that save HTML and then clicks the hidden link, for example: function() { tinyMCE.triggerSave(true,true); document.getElementById('submitToServer').onclick(); }; Your problem is that wicket recive the information that is in a hidden textfield, but you have to say to tinyMce, to save in the hidden textfield the html the user have been writing (thats what tinyMCE.triggerSave do) then, when the data is saved in the textfield, you submit your form to the server, and in the wicket code, you use it like a normal textfield. NM On Mon, May 3, 2010 at 11:49 AM, Fernando Wermus fernando.wer...@gmail.comwrote: I run into the same problem. I cant see the text written in text area. Could show the code you have written? thanks in advance On Mon, May 3, 2010 at 4:04 AM, Robert Kimotho kimot...@gmail.com wrote: On your AjaxButton add TinyMceAjaxSubmitModifier. Kimotho. On Fri, Apr 30, 2010 at 12:53 AM, Brad Grier brad.gr...@salusnovus.com wrote: I'm trying to use a TinyMCE editor on a form (itself belonging to a panel added to a page via Ajax). The form is submitted via an AjaxButton. From other posts here and elsewhere I found I had to call tinyMCE.triggerSave(true,true); before the submit to get the data into the textarea's model and then tinyMCE.idCounter=0; after the submit. I used an IAjaxCallDecorator to add these functions to the submit button. The problem is that the form only submits with every other press of the button. When it fails, it looks like no script appended after the triggerSave runs. Can anyone help me out? I'm stuck. Thanks, Brad -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: YUI 3 anyone?
+1 YUI. I have been working with it, and it is a very good js framework, non intrusive with the markup, also was easy (i mean REALLY easy) to integrate to wicket. i used YUI components, like rich text editor or modal windows. I don't know the ajax how it is, because i use wicket ajax. NM On Wed, Apr 28, 2010 at 10:59 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc the new implementation of Wicket ajax is slated for post 1.5. Something with too many irons in the fire... Martijn On Wed, Apr 28, 2010 at 3:50 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I also agree that we should use jQuery. jQuery seems more aligned with Wicket than YUI. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 28, 2010 at 8:34 AM, Fernando Wermus fernando.wer...@gmail.comwrote: +1 Jquery I mean On Wed, Apr 28, 2010 at 10:34 AM, Fernando Wermus fernando.wer...@gmail.com wrote: +1 On Tue, Apr 27, 2010 at 8:02 PM, Joe Fawzy joewic...@gmail.com wrote: Hi i hope the dev team to consider jQuery , it seams it is the standard now , used by all the big companies , even microsoft and although YUI is great, Yahoo has its own problem these days and we cannot consider the commited to the lib, they dropped support for many of their products and abandond many projects in the last 2 years this is my opinion only, u may make a vote or poll or something , or just pick YUI thanks Joe On Tue, Apr 27, 2010 at 6:13 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Yes, it's experimental, and it is not 100% decided that YUI will be used. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Apr 26, 2010 at 6:03 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Isn't this an experimental branch? Ernesto On Mon, Apr 26, 2010 at 12:34 PM, danisevsky danisev...@gmail.com wrote: I think wicket 1.5 will use YUI 3. You can look to svn: http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/ajax/ 2010/4/26 Istvan Soos istvan.s...@gmail.com Hi, Is there a cool best-practice or even better an integration library to use YUI 3? I know the standard generic way, I'm interested specifically in YUI 3... Thanks, Istvan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Wicket changed my life !
programming web applications with wicket is as funny as play a game :). And with GAE, you don't need to paid for expensive Hosting :) . NM On Sat, Feb 20, 2010 at 2:18 AM, Ben Tilford bentilf...@gmail.com wrote: Models are the hardest part to learn... Because they are really models. On Sat, Feb 20, 2010 at 12:05 AM, Eelco Hillenius eelco.hillen...@gmail.com wrote: Thanks for the kind words people. Definitively a key part of Wicket's success has been an enthusiastic community. The learning curve was slightly steep once we started doing interesting UI interactions (and also that really annoying LazyLoad exception during tests that I still can't figure out), but it's worth the effort. Detachable models are your friend. Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Wicket changed my life !
serious traffic means that the business is fine. On Sat, Feb 20, 2010 at 8:10 PM, Riyad Kalla rka...@gmail.com wrote: That depends on how much traffic your app gets. GAE isn't cheap if you start getting serious traffic and depends on the services you tie into. On Sat, Feb 20, 2010 at 1:38 PM, nicolas melendez nfmelen...@gmail.com wrote: programming web applications with wicket is as funny as play a game :). And with GAE, you don't need to paid for expensive Hosting :) . NM On Sat, Feb 20, 2010 at 2:18 AM, Ben Tilford bentilf...@gmail.com wrote: Models are the hardest part to learn... Because they are really models. On Sat, Feb 20, 2010 at 12:05 AM, Eelco Hillenius eelco.hillen...@gmail.com wrote: Thanks for the kind words people. Definitively a key part of Wicket's success has been an enthusiastic community. The learning curve was slightly steep once we started doing interesting UI interactions (and also that really annoying LazyLoad exception during tests that I still can't figure out), but it's worth the effort. Detachable models are your friend. Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Create Wikcet Filter
Here an example : ?xml version=1.0 encoding=utf-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 filter filter-name*WicketFilter*/filter-name filter-classorg.apache.wicket.protocol.http.*WicketFilter* /filter-class init-param param-nameapplicationClassName/param-name param-valuenm.mp3rapidshare.WicketApplication/param-value /init-param /filter filter-mapping filter-name*WicketFilter*/filter-name url-pattern/*/url-pattern /filter-mapping /web-app NM On Fri, Feb 19, 2010 at 3:19 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Would you like to ask something or are you just fine? 2010/2/18 Matías G. Tito mt...@zauber.com.ar: I'm loking for creatting a basic wicket filter for / - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems with FileUpload (on GAE) - how to avoid DiskFileItem?
There is one already done. Someone post it in the official GAE mail list. Try to look for it. I will try too. NM On Tue, Feb 16, 2010 at 6:00 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: noep, haven't looked at that stuff in a while. -igor On Tuesday, February 16, 2010, Andreas Maza andr.m...@gmail.com wrote: Thanks for that quick response, igor. I created now a very basic and (bad ,-) implementation of FileItemFactory, does not write to disk and doesn't spawn threads. With respect to using common-fileupload on GAE, I read about fileupload's new Streaming API. However, I have currently no clue how to integrate it with Wicket. Do you have any hints for that? thanks, andr On Tue, Feb 16, 2010 at 7:51 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: MultipartServletWebRequest has a constructor that allows you to pass in your own fileitemfactory WebRequest has a newMultipartWebRequest that you can override to create a multipartservletwebrequest with your own fileitemfactory... -igor On Tue, Feb 16, 2010 at 10:21 AM, A. Maza andr.m...@gmail.com wrote: Hello, I trying to implement a file upload for my wicket application, which should be deployed on Google App Engine (GAE). Since GAE does not allow to spawn new threads, I cannot make use of DiskFileItem due to its use of FileCleaner. The problem is that a DiskFileItem gets instantiated in the MultipartServletWebRequest, which results in an AccessControlException even before the submit method is called (which would allow to parse the request by hand) Thus, I would like to ask if anyone has a hint how to deal with that problem and avoid the instantiation of DiskFileItem? Thanks a lot in advance, andr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PropertyModels *without* strings
very cool, i like propertyModels more than Compounds :) NM On Thu, Nov 26, 2009 at 11:09 AM, James Carman jcar...@carmanconsulting.com wrote: I figured there had to be support for that. Very cool On Thu, Nov 26, 2009 at 8:14 AM, Johan Compagner jcompag...@gmail.com wrote: http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html On Thu, Nov 26, 2009 at 13:52, James Carman jcar...@carmanconsulting.comwrote: Refactoring could definitely be supported in IDEA. With the Hibernate support, when you change a property name it will change your mapping hbm.xml (yes, we still use them) files for you automatically. Same thing happens with the Spring support. The configuration files are changed for you. I don't know how eclipse works with this kind of stuff, but IDEA definitely has hooks for this kind of stuff. On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If refactoring is not supported it is just easier to use string constants, which do not break. ** Martin 2009/11/26 Gerolf Seitz gerolf.se...@gmail.com: as far as i have read, the binding methods aren't automatically refactored (eg. renamed), but you get compiler errors in the code where you use the old names. so it should be fairly easy to fix your own code (in contrast to some strings) On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Is refactoring available for bindgen? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Mittwoch, 25. November 2009 22:56 An: users@wicket.apache.org; d...@wicket.apache.org Betreff: PropertyModels *without* strings http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ -igor - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: css not managed by wicket
hi, consider use this annotations: http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-merged-resources here a blog which explains the features it has: http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html#more-128 it will help i hope. bye On Mon, Nov 23, 2009 at 2:14 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Just put /style.css Otherwise wicket is trying to guess the relative url. In most cases it guesses wrong so I have adopted the practice of using resource urls relative to the root of the domain. ** Martin 2009/11/23 Ilya German ilja.germ...@parex.lv: Hello! I'm trying to make my web application to use a .css stylesheet. As far as I understood reading http://cwiki.apache.org/WICKET/including-css-resources.html and Wicket in Action book I should be able to make any html page to work in the following configuration: say, Base.html includes: head link rel=stylesheet type=text/css href=style.css/ /head and to put the css file into web app directory (root of your war file). So the deployed project structure (say, in tomcat) would be like this: tomcat webapps/myapp --/META-INF --/WEB-INF /classes /pages -/Base.html -/Base.java -/Page1.html -/Page1.java - extends Base --/style.css However, when I access my Page1 page in browser (which extends Base page both in java and html and seems to be working), I see, that the URL to css is rewritten to ../style.css, which tries to reach style.css directly in tomcat webapps and doesn't find it there. Could anyone explain me what am I doing wrong? Thanks in advance, Ilya - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Exceptions and Ajax Events
Hi there, i want to keep alive this thread. Nobody knows how to access the component which generates the exception in his event from the onRuntimeException method? For example: I have a *Link*, and in his* onclick()* method throw a RuntimeException. So then in the onRuntimeException method, i want to access that especific * Link*. Thanks in advance. NM On Thu, Oct 8, 2009 at 2:43 PM, Nicolas Melendez nmelen...@getsense.com.arwrote: Any clues or suggestions on this issue. Thinks. NM On Thu, Oct 1, 2009 at 11:22 PM, Esteban Masoero emaso...@getsense.com.ar wrote: Hi: We found out we need something else. Is there a way we can access to the component asociated to the listener that was processing the event? (of course it only applies to ajax events), becase from onRuntimeException we ony have the Page. Thanks, Esteban Jeremy Thomerson escribió: something like this in your application should work: @Override public RequestCycle newRequestCycle(Request request, Response response) { return new WebRequestCycle(this, (WebRequest)request, (WebResponse)response) { @Override public Page onRuntimeException(Page page, RuntimeException e) { if (RequestCycle.get().getRequestTarget() instanceof AjaxRequestTarget) { // do something with ajax request targets } return super.onRuntimeException(page, e); } }; } -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 1, 2009 at 1:59 PM, Nicolas Melendez nmelen...@getsense.com.arwrote: Hi there,Our team was discussing about if there is a place where all exceptions, that come from an ajax behaviour, can be catched. We want to do this because we strongly belive that exceptions should be catched in one place, but now we have to catch the exception in every ajax method( onSubmit, onChance, etc) in the application. Is there one place in wicket where we can do that? Thank in advance. Our team. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setup for stepping into wicket source in eclipse
is your build automatically checked? On Mon, Oct 26, 2009 at 1:07 AM, Flavius flav...@silverlion.com wrote: I am trying to debug an issue and am trying to step into wicket from my project. However, the line numbers are not matching up with the source I have. I've done this several times with other projects and this is indicative of having the wrong version of the source vs. the jar file. I am using eclipse version 3.5.0.v20090611a. I'm also using jdk1.6.0_14. My project is setup as a java web project and I have a webapp/ WEB-INF/lib dir with my jars. These include wicket-1.4.3.jar, wicket-extensions-1.4.3.jar, and wicket-datetime-1.4.3.jar. If I remove the wicket jar, the project can no longer identify any of the org.apache.wicket.* imports. This tells me that it isn't getting a reference to derived classes. If I then either put the wicket jar back and set the source to the wicket-sources.jar or simply link to the apache-wicket-1.4.3\src\wicket\src\main\java, I still get the same result. As an example, when I CTRL-click on setDefaultModelObject(), it takes me to Component.class line 3022. I can see it going to wicket-1.4.3.jar org.apache.wicket.Component in my Package Explorer. However, when I actually run the code and step into that method (having attached the wicket-sources.jar), the method setDefaultModelObject is actually on line 3031. I've gone into the wicket src dir for wicket 1.4.3 and built the wicket jar and sources and pulled them from the target dir and still get the same results. Can anybody offer any insight into this? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Eclipse plugin, is there another?
Hi, is there another wicket plugin for eclipse?Wicket Bench project seems to have low activity. Any sugestion? Thanks. NM
Re: Wicket Eclipse plugin, is there another?
I'm not very fan of netbeans :) Thanks, for answer. another sugggestion? On Wed, Oct 21, 2009 at 6:57 PM, Fernando Wermus fernando.wer...@gmail.comwrote: I know, but I havent tested it, that netbeans comes with a plug in for wicket. On Wed, Oct 21, 2009 at 1:00 PM, Nicolas Melendez nmelen...@getsense.com.ar wrote: Hi, is there another wicket plugin for eclipse?Wicket Bench project seems to have low activity. Any sugestion? Thanks. NM -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: ListView for only one element. Something wrong.
Hi,Thanks for your answer. (i reed it a time ago, but i never said thanks) NM On Fri, Oct 9, 2009 at 6:51 AM, Sven Meier s...@meiers.net wrote: Hi Nicolas, use more models: -- class MyPage: private IModelList businessObjects; private MyPanel myPanel; myPanel = new MyPanel(businessObjects); this.add(myPanel); - class MyPanel(final IModelList businessObjects): this.add(new SomeComponent(new AbstractReadOnlyModel() { public Object getObject() { return businessObjects.getObject().get(0); } })); this.add(new ListView(new AbstractReadOnlyModel() { public Object getObject() { return businessObjects.getObject().subList(1, businessObjects.getObject().size()); } }) { ... }); -- HTH Sven Nicolas Melendez schrieb: Hi: Sven, thanks for replying! I've added some code below. -- class MyPage: private List businessObjectList; private MyPanel myPanel; list is populated somehow myPanel = new MyPanel(businessObjectList); this.add(myPanel); ... on some behavior - target.addComponent(myPanel); - class MyPanel(businessObjectList): this.add(SomeComponent(first element of businessObjectList)); this.add(new ListView(businessObjectList wihout first element){ ... }); -- I'm aware that as the panel receives a modelObject and not a model, then when it's refreshed it will show the previous list. So, I was thinking about myPanel receiving a PropertyModel(this, businessObjectList), but the thing is: how can it retrieve the first business object (which needs to be shown differently) in a dynamic way so when the panel is refreshed, it will take it from the new list (I could use another repeater that will loop only once, but I was hoping there's a nicer way). Thanks again, NM On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier s...@meiers.net wrote: Hi Nicolas, you can just use a WebMarkupContainer and recreate its children on each request in #onBeforeRender(). But the question is: why do you need to refresh your components at all? It seems you don't use models correctly. Show us some code. Sven Nicolas Melendez wrote: Hi, i want to use a ListView to use the onpopulate method so when the panel refresh i can see the new data.But the listView has always one element and i think it was made for lots of elements. Something is wrong in the way i am thinking. Any suggestion? NM - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ListView for only one element. Something wrong.
Hi, i want to use a ListView to use the onpopulate method so when the panel refresh i can see the new data.But the listView has always one element and i think it was made for lots of elements. Something is wrong in the way i am thinking. Any suggestion? NM
Re: Exceptions and Ajax Events
Any clues or suggestions on this issue.Thinks. NM On Thu, Oct 1, 2009 at 11:22 PM, Esteban Masoero emaso...@getsense.com.arwrote: Hi: We found out we need something else. Is there a way we can access to the component asociated to the listener that was processing the event? (of course it only applies to ajax events), becase from onRuntimeException we ony have the Page. Thanks, Esteban Jeremy Thomerson escribió: something like this in your application should work: @Override public RequestCycle newRequestCycle(Request request, Response response) { return new WebRequestCycle(this, (WebRequest)request, (WebResponse)response) { @Override public Page onRuntimeException(Page page, RuntimeException e) { if (RequestCycle.get().getRequestTarget() instanceof AjaxRequestTarget) { // do something with ajax request targets } return super.onRuntimeException(page, e); } }; } -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 1, 2009 at 1:59 PM, Nicolas Melendez nmelen...@getsense.com.arwrote: Hi there,Our team was discussing about if there is a place where all exceptions, that come from an ajax behaviour, can be catched. We want to do this because we strongly belive that exceptions should be catched in one place, but now we have to catch the exception in every ajax method( onSubmit, onChance, etc) in the application. Is there one place in wicket where we can do that? Thank in advance. Our team. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ListView for only one element. Something wrong.
Hi: Sven, thanks for replying! I've added some code below. -- class MyPage: private List businessObjectList; private MyPanel myPanel; list is populated somehow myPanel = new MyPanel(businessObjectList); this.add(myPanel); ... on some behavior - target.addComponent(myPanel); - class MyPanel(businessObjectList): this.add(SomeComponent(first element of businessObjectList)); this.add(new ListView(businessObjectList wihout first element){ ... }); -- I'm aware that as the panel receives a modelObject and not a model, then when it's refreshed it will show the previous list. So, I was thinking about myPanel receiving a PropertyModel(this, businessObjectList), but the thing is: how can it retrieve the first business object (which needs to be shown differently) in a dynamic way so when the panel is refreshed, it will take it from the new list (I could use another repeater that will loop only once, but I was hoping there's a nicer way). Thanks again, NM On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier s...@meiers.net wrote: Hi Nicolas, you can just use a WebMarkupContainer and recreate its children on each request in #onBeforeRender(). But the question is: why do you need to refresh your components at all? It seems you don't use models correctly. Show us some code. Sven Nicolas Melendez wrote: Hi, i want to use a ListView to use the onpopulate method so when the panel refresh i can see the new data.But the listView has always one element and i think it was made for lots of elements. Something is wrong in the way i am thinking. Any suggestion? NM - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event, Saturday November 21st
When a Wicket Event in Buenos Aires, Argentina ?? We also have lots of pubs :) On Wed, Oct 7, 2009 at 5:21 PM, Ioannis Mavroukakis imavrouka...@gameaccount.com wrote: If my mate can't lend me his handheld, I'll see about perhaps renting something for the day... Y. On 7 Oct 2009, at 16:15, Igor Vaynberg wrote: until i see some video proof i will continue to operate under my assumption - there are no presentations, this is just an excuse to get out of the house and go to a pub :) -igor On Wed, Oct 7, 2009 at 3:42 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: User name validation - how to check database to find if a name has already been taken?
Thanks Igor.Always is good another point of view. NM On Wed, Sep 30, 2009 at 5:14 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: actually you got it completely wrong. especially as your project, and the number of devs who work on it, grows exceptions are a much more scalable way of handling errors. 1) the compiler tells you exactly what the exceptions are right off the bat 2) exception class name gives you a clue as to what the error is without reading javadoc 3) exception classes can contain error-related data that is easy to retrieve 4) you cannot forget to handle a checked exception 5) if someone adds a new error code you do not have to hunt down all the places that now need to be changed - once again you get a compile time error 6) a bunch of other stuff i dont feel like typing out -igor On Wed, Sep 30, 2009 at 7:55 AM, Nicolas Melendez nmelen...@getsense.com.ar wrote: why do you use an exception for user already exits?Don`t you think that return true/false, could be better? i said that, because if the application start growing, you will have lot of exceptions class. thanks, NM On Wed, Sep 30, 2009 at 4:43 PM, Paul Huang paulhuan...@gmail.com wrote: igor.vaynberg wrote: form { onsubmit() { try { users.persist(getmodelobject()); } catch (usernamealreadyexistsexception e) { error(error.username.exists); } } } -igor Thanks, it works like a charm. I did not know I could show an error message by calling Component.error and then use a filter to catch all error messages targeting a specific FormComponent. -- View this message in context: http://www.nabble.com/User-name-validation---how-to-check-database-to-find-if-a-name-has--already-been-taken--tp25614625p25682499.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Exceptions and Ajax Events
Hi there,Our team was discussing about if there is a place where all exceptions, that come from an ajax behaviour, can be catched. We want to do this because we strongly belive that exceptions should be catched in one place, but now we have to catch the exception in every ajax method( onSubmit, onChance, etc) in the application. Is there one place in wicket where we can do that? Thank in advance. Our team.
Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor
hi, in your example, there aren't behaviours, or where are they? On Thu, Sep 24, 2009 at 5:54 AM, jWeekend jweekend_for...@cabouge.comwrote: Chris, The fact that you've chosen to use Wicket probably shows there's not so much danger of that! To better see what's going on, try the snippet below in the project you attached // ... mark t2 final and // append this to your BasePage constructor con.add(t2.setOutputMarkupId(true)); add(new AjaxLink(toggleVisiblity){ @Override public void onClick(AjaxRequestTarget target) { t2.setVisible(!t2.isVisible()); target.addComponent(t2); } }); Fix your BasePage.html accordingly eg, add an anchor to the body with wicket:id=toggleVisiblity. When you fire up your app, click on that link once and you can use FireBug in Firefox to verify that the onblur code you wanted is indeed in place. Is that the effect you were after? Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com PS Nabble is not showing posts to our list (I think it's pointing back to SourceForge again!) so I am replying here in case you need a solution quickly and this happens to be the actual issue you are faced with! maybe i'm to stupid to understand what you mean. so please provide an example. thx -Ursprüngliche Nachricht- Von: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com] Gesendet: Do 24.09.2009 02:45 An: users@wicket.apache.org Betreff: AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor - Hide quoted text - well, it makes no sense to add the javascript to another container. how should i validate the textfields if the javascript points to a different component? or could you give me an example? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Do 24.09.2009 02:32 An: users@wicket.apache.org Betreff: Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor i meant add the javascript to a container that is visible. components that are not visible do not render their javascript, it wouldnt make any sense for them to do otherwise. -igor On Wed, Sep 23, 2009 at 5:16 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: i'm sorry, but doesn't work. i attached a simple project. i added the needed components to a webmarkupcontainer. instead of panels this time i used requiredtextfields to keep it as simple as possible. one textfield is visible the other invisible. here is the generated markup: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; head meta http-equiv=Content-Type content=text/html; charset=UTF-8/ titleWicket Demo/title link rel=stylesheet type=text/css href=/css/style.css/ script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script script type=text/javascript id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/ wicketAjaxDebugEnable=true; /*--]]*//script script type=text/javascript id=org.wicketstuff.dojo.AbstractDefaultDojoBehavior/debug!--/*--![CDATA[/*!--*/ var djConfig = {}; djConfig.isDebug = true; djConfig.parseWidgets = false; djConfig.searchIds = [] /*--]]*//script script type=text/javascript src=resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior/dojo-0.4/dojo.js/script script type=text/javascript src=resources/org.wicketstuff.dojo.AbstractRequireDojoBehavior/dojo-wicket/dojoWicket.js/script script type=text/javascript id=org.wicketstuff.dojo.AbstractDefaultDojoBehavior/namespaces/wicketstuff!--/*--![CDATA[/*!--*/ dojo.registerModulePath(wicketstuff, ../../../resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior); /*--]]*//script script type=text/javascript id=org.wicketstuff.dojo.AbstractDefaultDojoBehavior/consoleDebug!--/*--![CDATA[/*!--*/ dojo.require(dojo.debug.console); dojo.require(dojo.widget.Tree); /*--]]*//script script type=text/javascript id=org.wicketstuff.dojo.AbstractRequireDojoBehavior!--/*--![CDATA[/*!--*/ dojo.require(dojo.lfx.*); dojo.require(dojo.gfx.*); dojo.require(dojo.html.*); /*--]]*//script script type=text/javascript id=txt11DojoParse!--/*--![CDATA[/*!--*/ djConfig.searchIds.push(txt11); /*--]]*//script script language='JavaScript' type='text/javascript' var txt11_first = false; function txt11_validate(type) { with(dojo.byId('txt11').style){backgroundColor = '#FFF';}
Re: User name validation - how to check database to find if a name has already been taken?
why do you use an exception for user already exits?Don`t you think that return true/false, could be better? i said that, because if the application start growing, you will have lot of exceptions class. thanks, NM On Wed, Sep 30, 2009 at 4:43 PM, Paul Huang paulhuan...@gmail.com wrote: igor.vaynberg wrote: form { onsubmit() { try { users.persist(getmodelobject()); } catch (usernamealreadyexistsexception e) { error(error.username.exists); } } } -igor Thanks, it works like a charm. I did not know I could show an error message by calling Component.error and then use a filter to catch all error messages targeting a specific FormComponent. -- View this message in context: http://www.nabble.com/User-name-validation---how-to-check-database-to-find-if-a-name-has--already-been-taken--tp25614625p25682499.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is it the best way to code a Link depending on a condition
ok, i understand, thanks, NM On Tue, Sep 22, 2009 at 9:45 PM, Jeremy Thomerson jer...@wickettraining.com wrote: It's the same reason you shouldn't use new Label(id object.getSomeText());. See this example: public MyPage () { Person p = getPersonFromSomewhere(); Label l = new Label(numberOfPhoneNumbers, p.getPhoneNumbers().size()); l.setVisible(p.getPhoneNumbers().size() 0); new Link(addPhoneNumber) { onClick() { p.addPhoneNumber(123-456-7890); } } } When you add the phone number, it would not show up. Not only would your label not be able to get the new value for the size of the phone numbers, but it would also not change it's visibility. Why? Because you statically set both of those in the constructor. They can't change unless you go to a completely new instance of the page. But clicking that link (or performing some ajax operation) won't create a new page - they'll use the one you're already on. Synopsis: You should use models and override isVisible because they always retrieve the latest information for every render. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Sep 22, 2009 at 8:18 AM, Nicolas Melendez nmelen...@getsense.com.ar wrote: Jeremy:you say 2 - don't call setEnabled() - override isEnabled why is better override isEnable then setEnable? thanks NM On Mon, Sep 21, 2009 at 9:44 AM, cmoulliard cmoulli...@gmail.com wrote: Joseph, Can you explain a little bit what you mean by provide it with attribute (IModelString) ? private Label labelTitle; public static Label createLabelTitle(String title) { return new Label(title,new Model( title )); } -- becomes private Label labelTitle; public static Label createLabelTitle(String title) { return new Label(title,new PropertyModel( ModelClass, title )); } Is it right what I create ? Joseph Pachod wrote: cmoulliard wrote: What I have done to avoid to repeat the creation of the labels is to define and use static method private Label labelTitle; public static Label getLabelTitle(String title) { return new Label(title,new Model( title )); } I personally would name this method createLabelTitle(String title) or getNewLabelTitle(String title), for explicitness. Furthermore, I would directly provide it with a final IModelString title attribute, not to dictate how the data has to be provided (dynamic or not for example). In the end, this method is fine for just a label, but for anything more complex a panel would be the way to go I would say. The main exception here I see right now is the case of pages. For example, if we're speaking of a page title, then I would define it in my base page and make an abstract String getTitle() method in the base page so I'm sure everyone set it up later on. I would do the same if it's a specific kind of structured page, for example an abstract class ContentHoldingPage extend TheBasePage. ++ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Charles Moulliard SOA Architect My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- View this message in context: http://www.nabble.com/Is-it-the-best-way-to-code-a-Link-depending-on-a-condition-tp25488603p25530206.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: + key as alternative for tab key
In every field information goes to the server to validate and then go back? Seems dificult to implement.please, tell us your experience when your are done NM On Mon, Sep 21, 2009 at 3:28 PM, Pedro Santos pedros...@gmail.com wrote: Good question, pretty much javascript work. I'm curios know your final solution. One fine solution is to create an subclass of AjaxFormComponentUpdatingBehavior to onchange event. On this behavior you can put your javascript rules. Take a look at OnChangeAjaxBehavior to see how it could be done. On Mon, Sep 21, 2009 at 10:03 AM, Boydens Joeri (OZ) joeri.boyd...@oz.be wrote: Hi, We are rewriting an old fat client application to a more elegant web application based on Wicket. In the requirements they state that the users of the fat client application do all input with the right side of their keyboard and want to keep it that way. One special requirement is that navigating between fields should be done with the ' + ' symbol on the right hand keypad instead of the 'tab' key. When navigating between fields there is also happing validation on the server side, so an ajax call will be necessary. How would you do this in an elegant and generic way ? Joeri
Re: Is it the best way to code a Link depending on a condition
Jeremy:you say 2 - don't call setEnabled() - override isEnabled why is better override isEnable then setEnable? thanks NM On Mon, Sep 21, 2009 at 9:44 AM, cmoulliard cmoulli...@gmail.com wrote: Joseph, Can you explain a little bit what you mean by provide it with attribute (IModelString) ? private Label labelTitle; public static Label createLabelTitle(String title) { return new Label(title,new Model( title )); } -- becomes private Label labelTitle; public static Label createLabelTitle(String title) { return new Label(title,new PropertyModel( ModelClass, title )); } Is it right what I create ? Joseph Pachod wrote: cmoulliard wrote: What I have done to avoid to repeat the creation of the labels is to define and use static method private Label labelTitle; public static Label getLabelTitle(String title) { return new Label(title,new Model( title )); } I personally would name this method createLabelTitle(String title) or getNewLabelTitle(String title), for explicitness. Furthermore, I would directly provide it with a final IModelString title attribute, not to dictate how the data has to be provided (dynamic or not for example). In the end, this method is fine for just a label, but for anything more complex a panel would be the way to go I would say. The main exception here I see right now is the case of pages. For example, if we're speaking of a page title, then I would define it in my base page and make an abstract String getTitle() method in the base page so I'm sure everyone set it up later on. I would do the same if it's a specific kind of structured page, for example an abstract class ContentHoldingPage extend TheBasePage. ++ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Charles Moulliard SOA Architect My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- View this message in context: http://www.nabble.com/Is-it-the-best-way-to-code-a-Link-depending-on-a-condition-tp25488603p25530206.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JavaBooks.org launches
Hope JavaBooks.org was made in wicket. if not, maybe it is spam :)NM On Mon, Sep 21, 2009 at 11:06 AM, Objelean Alex alex.objel...@gmail.comwrote: JavaBooks.org's goal is to centralize, categorize and offer meta-information in the form of ratings, comments and reviews for all Java related publications. By joining the JavaBooks community you'll be able to stay informed about the latest Java publications, search for the right book or magazine to help you learn, read user comments and reviews to make up your mind, buy and take advantage of the discounts offered and share your thoughts on the books you've read. There you'll be able to find also wicket related books. It would be nice if you would make a review of Wicket in Action, Pro Wicket or any other book you have read. Thanks! Alex Objelean - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Stuff Core 1.4.1 Release[ing]
very slow build :) On Mon, Aug 31, 2009 at 9:07 PM, Jeremy Thomersonjer...@wickettraining.com wrote: Wicket Stuff Core 1.4.1 is now released: [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 204 minutes 20 seconds [INFO] Finished at: Mon Aug 31 14:04:09 CDT 2009 [INFO] Final Memory: 218M/929M [INFO] -- Jeremy Thomerson http://www.wickettraining.com On Mon, Aug 31, 2009 at 10:38 AM, Jeremy Thomerson jer...@wickettraining.com wrote: That was only in the event that we really needed an interim release. The plan still is that we will release to match Wicket releases. PS - I have to try to start the deploy over again: [INFO] Retrieving previous metadata from wicketstuff-org-maven [INFO] Uploading repository metadata for: 'artifact org.wicketstuff:sitemap-xml' [INFO] Uploading project information for sitemap-xml 1.4.1 Uploading: scpexe:// wicketstuff.org/home/wicket/tomcat/webapps/maven/repository/org/wicketstuff/sitemap-xml/1.4.1/sitemap-xml-1.4.1-sources.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Error executing command for transfer Exit code 255 - Write failed: Connection timed out [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 601 minutes 35 seconds [INFO] Finished at: Mon Aug 31 10:33:31 CDT 2009 [INFO] Final Memory: 221M/902M [INFO] [INFO] [ERROR] BUILD ERROR -- Jeremy Thomerson http://www.wickettraining.com On Mon, Aug 31, 2009 at 3:36 AM, Maarten Bosteelsmbosteels@gmail.com wrote: Hi Jeremy, Great to see another release of Wicket Stuff Core !! Some weeks ago you suggested : I think that the best solution is that we have 1.4.1.X where X is our release number. Did you change your mind about this ? http://www.mail-archive.com/users@wicket.apache.org/msg40780.html Regards, Maarten On Mon, Aug 31, 2009 at 8:03 AM, Jeremy Thomerson jer...@wickettraining.com wrote: I successfully built Wicket Stuff Core 1.4.1 today. It is in the (very very slow) process of doing a release:perform (currently uploading all of the necessary files to wicketstuff repo). Hopefully by the time you read this, your project will be available as 1.4.1. Here are a couple that seem to have already made it up: http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-core/1.4.1/ http://wicketstuff.org/maven/repository/org/wicketstuff/gmap2/1.4.1/ http://wicketstuff.org/maven/repository/org/wicketstuff/calendarviews-parent/1.4.1/ -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need Wicket Book
Live Examples + Book + Blog + Source = wicket learning. the book in only one variable there... On Tue, Aug 18, 2009 at 10:35 PM, Marcel Bonnetmarcelbon...@gmail.com wrote: 2009/8/18 Ernesto Reinaldo Barreiro reier...@gmail.com: Or try to the questions yourself! Wicket is OpenSource and the source is the best documentation you can ask for;-) You're right, that's why I started to acess the SVN and read the code. What I wanted was clarify that the book is good, but don't go to deeper (because when we start, like the guy that asked for help, we believe the book is a complete salvation!). So, the SVN is a second recommendation (http://svn.apache.org/repos/asf/wicket/trunk). Ernesto On Tue, Aug 18, 2009 at 8:56 PM, Michael Mosmann mich...@mosmann.de wrote: Am Dienstag, den 18.08.2009, 15:32 -0300 schrieb Marcel Bonnet: Wicket in Action is really good, but it doesn't go too depper. If you have some questions, just ask. I would say: visit my blog, but's only in german... (http://www.wicket-praxis.de/blog/) I also wrote a book about wicket (http://www.hanser.de/buch.asp?isbn=3-446-41909-8area=Computer (but only in german language)) .. so back to my first point: If you have some questions about wicket, which go deeper, then feel free to ask. michael mosmann - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Get Wicket Variable Inside Applet
remember, you can only do TCP/IP request to the server from the applet came from, if you do to another IP, you will have problem with the sandbox. if you want to do the request to another IP, the applet should be sing, and the user should accept a molest Dialog. On Thu, Jul 16, 2009 at 8:03 PM, Joshua Martinjosmar52...@gmail.com wrote: Actually, it may not be necessary to pass the object... I'm creating an Applet that will enable remote desktop within my Wicket application (it's a new Systems Management application). The application uses JXTA for networking so that NAT and firewalls will be much less of a problem. Normally, you can't have two JXTA network managers, but I didn't realize that it won't matter since the Applet is separate from Wicket. I couldn't get JXTA to work - so I assumed it was because of two managers... Turns out, it was just an Applet security issue... On Thu, Jul 16, 2009 at 1:53 PM, Joshua Martinjosmar52...@gmail.com wrote: Yeah, I know how to pass a String, but I need to somehow pass an object... add(new WebMarkupContainer(appletId).add(new SimpleAttributeModifier(value, yourValue))); On Thu, Jul 16, 2009 at 1:50 PM, Nicolas Melendeznmelen...@getsense.com.ar wrote: Remember the applet is in client-side, but wicket is server-side ( except javascript(ajax inclusive) ). Comunication through HTTP is with Strings, so i think you can't access to a variable of wicket without parsing it. Applets can use a javascript function o connect thorugh http to the server. it can also have inicial values, but you can't change them futher. i hope i help, bye NM - Software Developer - buenos aires - Argentina On Thu, Jul 16, 2009 at 7:39 PM, Joshua Martinjosmar52...@gmail.com wrote: Rephrase that... How can I access a non-String variable in the Wicket Application class from an Applet? On Thu, Jul 16, 2009 at 1:37 PM, Joshua Martinjosmar52...@gmail.com wrote: How can I access a variable in the Wicket Application class from inside my Java Applet on a Wicket page? -- _ Joshua S. Martin -- _ Joshua S. Martin CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney client or other legal privileges, and or proprietary non public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- _ Joshua S. Martin CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney client or other legal privileges, and or proprietary non public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _ Joshua S. Martin CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney client or other legal privileges, and or proprietary non public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: debug mode
dont' use vista, desactivate antivirus and stop playing street fighter IV while you are programming ;) On Wed, Jul 15, 2009 at 9:14 AM, Emond Papegaaijemond.papega...@topicus.nl wrote: I've had similar problems when using method breakpoints on inner classes. Removing the breakpoint speeds up the entire application dramatically (the breakpoint also doesn't work). So try removing your breakpoints. Emond On Tuesday 14 July 2009 19:15:02 John Ipson wrote: Has anyone ever run across extremely slow debug mode in wicket/eclipse integration? Eclipse 3.4 Wicket 1.4 When choosing Run as..., the application is very fast. When choosing Debug as... the application is 20 times slower. I watch each jar get loaded into the application at a very slow rate. I've run the application in Jetty and JBoss, so I believe it is a wicket thing. I wonder if there is a setting in wicket. Thanks, John - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ModalWindow and IE8 question
And if the reset button doesn't work, please click the Format C: button :P On Wed, Jun 24, 2009 at 9:37 AM, Per Lundholm per.lundh...@gmail.comwrote: A reset button! Should we laugh or cry? :-/ /Per On Tue, Jun 23, 2009 at 10:26 PM, Flaviusflav...@silverlion.com wrote: I cleared all cache and it still wasn't prompting the modal window. What I did do was go and reset IE8 by going to tools - Internet Options - Advanced tab and pressing the Reset button. Apparently this makes it just like a fresh install and that fixed it! Don't ask me why clearing the cache didn't do it but that did, unless clearing the cache and closing the browser really doesn't clear the cache completely. I did uncheck the Preserve Favorites website data in the Delete Browsing History dialog. Anyway, thanks Matej! I appreciate your help. Matej Knopp-2 wrote: couldn't it be old javascript file in your browser cache? -Matej On Tue, Jun 23, 2009 at 8:25 PM, Per Lundholmper.lundh...@gmail.com wrote: I don't know if it helps, but it works with IE8 on XP so there is something nasty about Vista /Per On Tue, Jun 23, 2009 at 8:17 PM, Flaviusflav...@silverlion.com wrote: I'm starting to get users running Vista with IE8 (8.0.6001.18783) report that they can't open modal dialog boxes. I searched through nabble and jira. I found issue 2207 which I understood to correct this: https://issues.apache.org/jira/browse/WICKET-2207 However, I'm testing with Wicket 1.3.6 (and extensions and datetime 1.3.6 as well) and the modal dialog is not opening. I also tested this with 1.4-rc4 and it's not working there either. I put the examples up here: http://68.15.93.72/wicket-examples-1.3.6/ajax/modal-window http://68.15.93.72/wicket-examples-1.4-rc4/ajax/modal-window If I go here and try to open these with IE8 on Vista, they don't open. It works with other browsers I've tested with (ff, safari 3/4, IE6/7). Can anybody give me any insight to this? Thanks very much. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/ModalWindow-and-IE8-question-tp24171801p24173623.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JDeveloper - Can I get a show of hands?
god used Eclipse 1.0 to develop universe. NM Software Developer - Buenos aires, Argentina. On Fri, Jun 19, 2009 at 5:44 PM, Martijn Reuvers martijn.reuv...@gmail.comwrote: You might want to try Netbeans for UML (there is a single plugin, install it and it works fine). I have not had any problems with it, it has quite some features (similar to the ones in JDeveloper). Use SQLDeveloper (of Oracle as well) if you need to replace Toad, however keep in mind it does not have all the dba features Toad provides, no free tool has these in fact. Well Apex is Apex, it cannot be replaced easily as its tied so closely to the oracle database and its pl/sql. As soon as you use Maven there is no need anymore for JDeveloper, at least not for running/building the project. If you really require specific features for instance for Apex you can still create a single workspace next to the normal maven one and use that separately. As for weblogic, just deploy a war manually through its console if you need to test it. However for faster testing I'd use Jetty with mvn jetty:run (you can always add a weblogic*.xml to the final war to override some libraries or so). On Fri, Jun 19, 2009 at 5:26 PM, Dane Lavertydanelave...@gmail.com wrote: I've really enjoyed getting to use Maven on my recent projects. I'm no Maven expert, but I'm finding that I don't have to be -- it really just does a great job. Getting Maven working with JDeveloper has not been going well so far, so that's been one hangup. There are a few reasons for the department-wide IDE mandate. Our manager has just discovered UML (I don't know anything about it, to be honest), and JDeveloper provides UML functionality out of the box, while any of the free Eclipse UML plugins I could find required a mountain of dependencies and don't appear to work as smoothly as the JDev one. Also, we're trying to replace TOAD as our database tool, and JDev looks like it can do that. The third reason is that most of our applications are Oracle ApEx, and JDev has stuff for that too. I'm trying to port my existing apps to JDeveloper, but without much success. The main problems so far are: - How do I import a Wicket project using the Maven standard directory layout? (I am aware of the Maven JDev plugin for JDev 10, but it has issues with JDev 11) - How do I run a Wicket app in JDeveloper using the internal WebLogic server? - Does JDeveloper have some sort of Maven-like functionality for project lifecycle management? I imagine (hope) that most of these questions have easy answers, but I'm just not finding a lot of relevant online documentation/discussion. Most of the JDeveloper web app documentation is focused on EJBs or basic Servlet/JSP-based apps. On Fri, Jun 19, 2009 at 3:53 AM, James Carmanjcar...@carmanconsulting.com wrote: +1 on using Maven. Most folks at our job site use eclipse, but I'm an IntelliJ junkie (they got me hooked many years ago and I can't break free). For the most part, we don't have issues between environments, provided folks have their plugins set up correctly. On Fri, Jun 19, 2009 at 6:39 AM, Martijn Reuvers martijn.reuv...@gmail.com wrote: When you use ADF, then stick to JDeveloper you'll get a lot of integration for your application and can really build applications fast. However if you use open-source frameworks like wicket, you're better off using one of the other IDE's (Netbeans, Eclipse, IntelliJ). Just use maven or so, then your management has nothing to say, as it does not really matter what IDE you use. I always say: Use whatever gets the job done. =) On Fri, Jun 19, 2009 at 1:00 AM, Dane Lavertydanelave...@gmail.com wrote: Our management has chosen to make JDeveloper 11g the required IDE for the department. Searching the Wicket mailing list archives, I find that there is very little discussion about JDev. I'd be interested to know, are any of you currently using JDeveloper as your main Wicket IDE? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail:
Re: Who went to the GWT vs Wicket presentation in Normandy and wants to share their findings?
Interesting. Thank you. NM - Software Developer - Buenos Aires, Argentina. On Thu, Jun 18, 2009 at 3:21 PM, Yann PETIT yann.pe...@gmail.com wrote: Hi Martjin and all of you Wicket fans, I was there ! (as president of Normandy Java User Group) It was our first JUG meeting in a small French countryside city (Rouen in Normandie) we had around 35 attendees. (great success for us, preceding IT meetings organized in our area never drove more than 10 attendees ) I'll try to summarize what was said by our two local but brillant speakers : - Youen Chene as GWT fighter (http://www.youenchene.fr) - Nicolas Giard as Wicket knight (http://www.noocodecommit.com) Here's a short list of the slides : - A brief history of the two frameworks. - The differences in the scope covered by GWT and Wicket (technically speaking Ajax, javascript, etc.) - How it works ( GWT = coding Java compiled in JS generating HTML / Wicket = coding Java + HTML) - Differences of projects structures (packages... pictures of the exploded war treeview in eclipse) - Server integration with other technologies like (Spring, EJB, Hibernate etc. using wicket-stuff in one hand or projects like gwtrpc-spring or Gilead in the other). - Available widgets natively or by sub projects (Google vizualization, gears, Ext GWT... vs Wicket stuff, Wiquery ...) - CSS or How the design layer is handled comparison. - Browsers compatibility (generated code plus handmade code). - Localization support (different JS by language for GWT, use of properties, xml or database ...) - Accessibly (GWT following ARIA since 1.5 versus Best Practice applied by the HTML developer for Wicket) - Performances (GWT = heavy compilation and long first load, Wicket depends mainly on the developer's code quality ) - Tools (GWT has many plugins for integration with Eclipse, some exist for Wicket but aren't really useful since Wicket keeps things simple). - Maven integration (difficult for GWT but possible, some latency on dependencies. While very easy for Wicket and up to date archetypes). - Advantages : - GWT (backward compatibility, stability, code optimization, keyboard interaction) - Wicket (development mad simple again, very enthusiast and attractive community) - Drawbacks - GWT (very long loading the first time, very difficult to reference as it's JS based... very strange coming from a Search Engine company ^^ ) - Wicket (lacks of notoriety, documentation is sometimes poor, performances strongly tighten to the code quality) - Next release / Roadmap - Why use one or the other : - GWT for rich applications but not for content websites (blog, e-commerce...) due to inability to reference it on search engines. - Wicket for content web sites first, but why not for rich applications ? - Who uses GWT or Wicket (Lombardi, MyERP, Compiere... vs Artifactory, JTrac, JAlbum, Alfresco GUI, Hippo CMS...) - How to fill the lacks : - Use subproject for widgets like SmartGWT, mix GWT with other framework (velocity, JSF) for referencement. - Use JQuery instead of prototype, more native widgets using Wiquery ? - Wicket + GWT = 3 Love ? (or is it possible to mix both) It seems possible but might be long and hard. - Some links to go ahead Maybe we'll try to translate the presentation slides in English (depends on time we'll have for that). For french reading ones we will publish the slides on our JUG site : * http://www.normandyjug.org/* I think the most important thing that should be retained is that GWT and Wicket should be chosen depending on what we want. A rich application that doesn't need search engine referencement = GWT A content website with also some dynamic behaviors and referencement needs = Wicket . This presentation was done by a user of GWT and one of Wicket. They didn't know the other one technology by themselves, and even didn't know each others a few weeks ago. So congratulation to them because it was a real challenge to make this comparison in very few days. It' goal was to explain in few minutes what are GWT and Wicket, and to give attendees the desire to go ahead with one technology or the other. Any comments or feedbacks appreciated . Yann On Thu, Jun 18, 2009 at 12:08 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: There's been quite some announcements going across twitter, but no conclusion... Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Creating a page hierarchy
I think reflect site hierarchy to package hierarchy, is good idea because when the application is big, it is easy to find the panels. i always use like this. Application Module view NM On Wed, Jun 17, 2009 at 2:07 PM, Frank Tegtmeyer f...@fte.to wrote: Hi, is there one established way to generate a page hierarchy? Or some best practices? I like to have a website (also a dynamic one) organized in a hierarchical way like traditional static websites. This way users can go to their desired functionality quickly and may be able to even remember the associated URL. I assume I have to use bookmarkable pages somehow. Some questions remain for me: 1. Do I have to mount each single page or is there some wildcard/regexp/inheritance mechanism like in Django? 2. How do I organize my source files? Does it make sense to reflect the site hierarchy in a package hierarchy? 3. The site I develop has to use authorization. Is it possible to get a user back to the bookmarked page that he accessed after asking for authentication? I think yes, but am not sure. Regards, Frank - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket-like JavaScript Components
GWT is a good framework.You can code in java and then it is translated to javascript. NM On Tue, Jun 16, 2009 at 4:05 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: You can also have a look at wicketstuff and see what integrations already exists :) 2009/6/15 Dane Laverty danelave...@gmail.com: I'm working on a small project where I'm limited to using only JavaScript. I love the Wicket programming model, especially reusable components. Is anyone aware of a JavaScript framework or JavaScript techniques that would allow me to approximate Wicket components? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio group selection not being saved if page submit fails due to validation errors...
Here is the URL of the ListView: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/list/ListView.html - NM On Thu, Jun 11, 2009 at 10:11 PM, Jen Van Orman jvanor...@gmail.com wrote: Igor, Thank you; this makes sense now, it was a matter of getting straightened out on the real problem (the list view) instead of focusing on the radio group as the problem. I appreciate your help very much! Jen P.S. And it always helps to look at the most recent version of the javadoc ;) On Thu, Jun 11, 2009 at 2:06 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the problem is not the radiogroup, it is the listview. listview has a section in its javadoc that talks about this - have a look there first and feel free to come back here with any further questions. -igor On Thu, Jun 11, 2009 at 12:47 PM, Jen Van Ormanjvanor...@gmail.com wrote: Thank you! setReuseItems(true) was the ticket! Can you please explain the wicket concept behind this feature? It seems that most other input types automatically retain information if the page is rerendered; How is the radio button different? Just trying to understand for future reference! Thanks, Jen On Thu, Jun 11, 2009 at 12:49 PM, Jen Van Orman jvanor...@gmail.com wrote: Radios are in a listview, and I will try setreuseitems(true). Thank you! Jen On Thu, Jun 11, 2009 at 12:47 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: are radios in a listview? did you call setreuseitems(true)? -igor On Thu, Jun 11, 2009 at 11:42 AM, Jen Van Ormanjvanor...@gmail.com wrote: Hello everyone, I have a radio group and if the form validation fails on submit, the selection is lost. When the page re-renders, the bound value is null. How can I insure that the selected value is retained if form validation fails? Thanks much for your help, Jen Van Orman -- Quis custodiet ipsos custodes? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Quis custodiet ipsos custodes? -- Quis custodiet ipsos custodes? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Quis custodiet ipsos custodes?
Re: refresh page
Hi, i would use the Session, but also use it as a Context. Context should be coded. So you use the context in your page, and the context use the Session to store data. I don't think using the database is good idea. NM 2009/6/11 Dorothée Giernoth dorothee.giern...@kds-kg.de I dunno if I understand correctly, but how about constantly saving a session-state user-specific in a database as soon as a component loses the focus? If the site is refreshed, the session-id would be still valid and the pre-refresh-session-state can be loaded? After the user logs out correctly you can set a flag to true, to mark the session as completed ... if for a reason the user is not logged out in a yes, I would like to leave and please save my changes-way, this flag would not be changed and saved for the user in the database. The user could reload the session after he re-logs in as his changes are saved. Dunno if that would be an acceptable approach or if that helps you at all. - dg -Ursprüngliche Nachricht- Von: Luther Baker [mailto:lutherba...@gmail.com] Gesendet: Donnerstag, 11. Juni 2009 15:22 An: users@wicket.apache.org Betreff: Re: refresh page So it turns out I'm going to want to display these values as a list ul ... li etc. My 'input' approach won't be adequate. Back to the Session idea ... (smells already). WIA has a security chapter that goes into storing a User in session - but does anyone have a good resource that dives a bit deeper into best practices with respect to Sessions? What about logical concepts/scopes like request, flash, conversational, etc - and how wicket facilitates them? Eg: I'd like to accumulate/remember page specific things while the user is visits a particular url. Ideally, the transient info is dropped when the user navigates away. I could create a POJO that represents the info and add getters and setters to the wicket session object I extended from the WIA security chapter ... but that smells bad. It seems heavy --- and I'm not sure it makes sense to use that pattern everywhere I have Ajax buttons putting rendering new values to the screen. Is there a more generalize Wicket mechanism for this type of thing? A localized, managed, short term, minimal, user specific, page specific type of state management? Or, given my issue, is there another way to think of this (out of box)? Again, I am user's adding a few values (tags, categories) to the screen with Ajax buttons and I need to make sure that information survives browser behaviors like page refreshes. Thanks, -Luther On Thu, Jun 11, 2009 at 7:07 AM, Luther Baker lutherba...@gmail.com wrote: I think you're right - I would need to use the Session or the Database on each Ajax invocation to add these values. But it also seems that if I store the new, dynamic, page specific values into a TextField (as opposed to a div) - they survive a page refresh. I'm not sure if that is robust or formally a standard across all browsers - so I will do a bit more research but that seems to be the behavior I'm after. Thanks, -Luther 2009/6/11 Dorothée Giernoth dorothee.giern...@kds-kg.de Hmm, is that possible ... you can't like store session-data in the browser, do you? You can only store session-details in the database on the fly with ajax while the user still fills out the form to allow the user to re-create the session on next login or something like this if he accidently hits reload (but even then I am not sure if that works ... maybe if you write the not yet submitted but in the form included information back into the fields when the site is rendered) ... Does that make sense ... or I am not understanding the question ;) - dg -Ursprüngliche Nachricht- Von: Luther Baker [mailto:lutherba...@gmail.com] Gesendet: Donnerstag, 11. Juni 2009 13:27 An: users@wicket.apache.org Betreff: refresh page If I add a few values to a page div ala an Ajax button - and the user hits refresh on the page, the new values I've added go away. The user is completing a form - but hasn't formally submitted the form yet - so there is nothing stored in the database yet. The browser naturally re-renders the textarea and input values to the screen - but wipes out content to any divs I might have dynamically added data to. What would be the wicket way to allow these dynamic divs to survive a page refresh? Maybe on the a 'wicket-example'? Thanks, -Luther - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org