Re: Any interest in a Wicket User Group meeting in The Netherlands?
On 9/15/07, Johan Compagner [EMAIL PROTECTED] wrote: because it seems there can be quite a lot of people i have to look around where to do it. and also what kind of day because this many people then 2,3 hours in the evening is maybe a bit to little time. what about a WicketOne (obviously derived from JavaOne, SpringOne, et.al.)? This (WicketOne) could also serve as the release party for 1.3.0 final? just an idea that came to my mind. gerolf we could do it in a weekend on saturday (afternoon) and then maybe later on getting something to eat with the people who want that. ofcourse we could also do it on a weekday (Friday) and start at 4. But then getting some room is even more difficult. johan On 9/14/07, Arje Cahn [EMAIL PROTECTED] wrote: Added a Bookmarkable link (http://cwiki.apache.org/WICKET/community-meetups.html), flagging the URL to the static page that should be used to reduce the load on the wiki itself! Thanks, Gwyn :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Number of available parameters in IndexedParamUrlCodingStrategy
james yong wrote: I am using IndexedParamUrlCodingStrategy. Is there is a good way to check the number of available parameters? Currently i have to use getString(0), getString(1) etc. to check for null before I arrived at the size of the available parameters. Have you tried: PageParameters pp; ... pp.size(); -- View this message in context: http://www.nabble.com/Number-of-available-parameters-in-IndexedParamUrlCodingStrategy-tf4436939.html#a12697314 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: Question With Detachable Models
we're just quibbling over what stored in the session means. if we mean (as it seems obvious i did) is it reachable through the wicket session on the web node and does it take up memory on that node then yes it is in some sense it is stored in the (wicket) session (it's there in the debugger and taking up session-associated resources). if on the other hand we mean (as it's obvious you did) is it is part of the (container) replicated session, as reconstructed from disk or on other web nodes via serialization then it's obviously not stored in the (container) session because nothing transient can ever be serialized by definition. we were just talking past each other. Kent Tong wrote: Jonathan Locke wrote: Your QueryDetachableModel will break under clustering. The transient instance Object will become null when the container deserializes it and your load method will be unable to reload the object. If you're using these QueryDetachableModels, yes, the object instance is being stored in your session. But no, it will not be replicated correctly. Are you sure about that? If the default item reuse strategy is used, new models and new items will be created just before the page is rendered. In addition, as the object instance is marked as transient, it shouldn't be stored in the session. -- View this message in context: http://www.nabble.com/Question-With-Detachable-Models-tf4446686.html#a12697727 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inter Application Session (Same Context)
Hi, In the same context, how can I provide inter application session? when I reach to new application with wicket.Link session is passing to new application, when I try this with html link it needs signin again. a href=# wicket:id='linkToREQ001A'request/a a href=req001arequest/a - Yahoo! kullaniyor musunuz? Istenmeyen postadan biktiniz mi? Istenmeyen postadan en iyi korunma Yahoo! Posta'da http://tr.mail.yahoo.com
Re: Any interest in a Wicket User Group meeting in The Netherlands?
On 9/16/07, C. Bergström [EMAIL PROTECTED] wrote: Can we get a link from http://wicket.apache.org/community.html to http://cwiki.apache.org/confluence/display/WICKET/Community+meetups Done. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling Methods based on page parameters
My expectation would be that it wouldn't be significant/noticeable, but it should be easy enough to knock up a test to confirm and quantify that... Of course, if you can just use numbers, then you can just use switch()... /Gwyn On Sunday, September 16, 2007, 1:01:02 PM, darrengreer [EMAIL PROTECTED] wrote: Thanks David. On implementing the first method you mention here below, I have one follow-up question. If, at some point, I have a 50+ different if/then statements, would there be a noticeable performance impact? David Bernard-2 wrote: To implement the method, I see 2 ways: 1/ a list of if/else if (up.equals(panelType)) { return new UserPanel(id); } if( xx.equals(panelType)) { ... } /Gwyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add image to DropDownChoice
Yeah, you can do it but afaik it doesn't work with IE. -Matej On 9/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote: which you can apply with css and offset the text so it looks like option has an icon asociated with it ala jira. -igor On 9/16/07, Matej Knopp [EMAIL PROTECTED] wrote: Images inside drop down choices? I don't think any browser supports such thing. Maybe some could support background-image attribute of option... -Matej On 9/16/07, bebetu [EMAIL PROTECTED] wrote: I am trying to embed images into options of a DropDownChoice but I haven't succeeded so far nor I could find examples regarding this. Any idea how to do this? Thanks! florin -- View this message in context: http://www.nabble.com/Add-image-to-DropDownChoice-tf4449619.html#a12695493 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: Wicket Web Beans 1.0-rc1 Released
Dan Syrstad wrote: Sounds like this may be a caching issue - I'm not sure. Can you send me your beanprops file directly? -Dan Its the following, where marca field gets it options from database, and temperaturaArmazenagem gets them from an enum: Produtos { actions: incluir, gravar; props: produtos { colspan: 3 }, action.incluir { labelImage: images/add.png }, action.gravar { labelImage: images/accept.png }; } Produto { actions: remover; props: nome, marca { fieldType : com.everyware.fsw.web.ui.MarcaField }, temperaturaArmazenagem { default : AMBIENTE }, descricao { fieldType : wicket.contrib.webbeans.fields.TextAreaField ; rows : 3; cols : 40 }, action.remover { confirm : Confirma remoção do item?; labelImage: images/delete.png }, -id; } Thanks for the help! -- View this message in context: http://www.nabble.com/Re%3A-Wicket-Web-Beans-1.0-rc1-Released-tf4431603.html#a12701667 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: Wicket Web Beans 1.0-rc1 Released
For me databinder helps cut the boilerplate code, just as WWB. I just add annotations to my domain model, and databinder does the rest. It's WWB for the database side of the app! Imagine putting both working together. I was able to create CRUD pages with the least amount of code ever. Less than that and it would need to read my mind... ;) Annotations have been a big win for Java. Many of their success stories have come out of their usage for configuration or metadata. I think that WWB may be a cantidate for using annotations instead of the beanprops file!
Re: Calling Methods based on page parameters
Thanks to all. Here is what I ended up with, that is working well: Factory Class: public static Panel newComponent(int moduleId, String id) { switch (moduleId) { case 1: return new UserPanel(id); case 2: return new SignInPanel(id); default: return new UserPanel(id); } } BasePage: String module = parameters.getString(m); System.out.println(Module: + module); if (module==null) { module = 999; } try { Panel contentPanel = PanelFactory.newComponent(Integer.parseInt(module), contentPanel); add(contentPanel); } catch(Exception e) { System.out.println(e); } -- View this message in context: http://www.nabble.com/Calling-Methods-based-on-page-parameters-tf4448115.html#a12711488 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Capturing Form Data into Nice URL !
I have simple form: = private class SearchForm extends Form { private final ValueMap properties = new ValueMap(); private TextField querystring; public SearchForm(String id){ super(id); add(querystring = new TextField(querystring, new PropertyModel(properties, q))); } public final void onSubmit(){ setResponsePage(SearchPage.class); } } === When I enter the text 'keyword' into the text field and press Submit it happily forwards to: https://lilo:8443/whisky/app/search How do i embed the form data into the forwarded url like this: https://lilo:8443/whisky/app/search/q/keyword Any pointer in right direction is appreciated, thanks.. -- View this message in context: http://www.nabble.com/Capturing-Form-Data-into-Nice-URL-%21-tf4461968.html#a12723634 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: Wicket Web Beans 1.0-rc1 Released
Although it may blur the lines between view and model, there are a number of reasons that it still could be the right direction. * centralized configuration. all view configuration is in the same file as your model code. * leverage Java syntax instead of custom DSL. easy for users to get up and going when they have autocomplete for annotation configuration. * annotations are metadata, and this configuration *is* metadata for the view layer. * configuration by exception works well with annotations. Hibernate applies the same principle. you only need to declare annotations when you want to change the default behavior. I do understand your disagreement. It's a very natural Java architecture to create abstractions and try to build to design patterns. Realistically though, there are times when it's just plain overboard. You could make the same argument that Hibernate annotations don't really belong in the model code since it's configuring the back end setup, but the beauty of annotations is that it's metadata that *any* layer has access to. I recently published a wicket/hibernate component that leverages the hibernate annotations to enforce view layer behavior (requiredness/max length). Talk about blurring the lines... I'm really impressed with your work, and just want to impart what's worked *really* well for me. Good luck with whatever direction you take. On 9/16/07, Dan Syrstad [EMAIL PROTECTED] wrote: Ryan: The WWB beanprops/metadata is a view abstraction, while your bean is a part of the model. It's my opinion that putting view-based annotations on your model is Not a Good Thing. It confuses the separation of concerns. -Dan On 9/16/07, Ryan Sonnek [EMAIL PROTECTED] wrote: For me databinder helps cut the boilerplate code, just as WWB. I just add annotations to my domain model, and databinder does the rest. It's WWB for the database side of the app! Imagine putting both working together. I was able to create CRUD pages with the least amount of code ever. Less than that and it would need to read my mind... ;) Annotations have been a big win for Java. Many of their success stories have come out of their usage for configuration or metadata. I think that WWB may be a cantidate for using annotations instead of the beanprops file!
Re: Capturing Form Data into Nice URL !
setresponsepage(searchpage.class, new pageparamters(proeprties)); -igor On 9/16/07, chickabee [EMAIL PROTECTED] wrote: I have simple form: = private class SearchForm extends Form { private final ValueMap properties = new ValueMap(); private TextField querystring; public SearchForm(String id){ super(id); add(querystring = new TextField(querystring, new PropertyModel(properties, q))); } public final void onSubmit(){ setResponsePage(SearchPage.class); } } === When I enter the text 'keyword' into the text field and press Submit it happily forwards to: https://lilo:8443/whisky/app/search How do i embed the form data into the forwarded url like this: https://lilo:8443/whisky/app/search/q/keyword Any pointer in right direction is appreciated, thanks.. -- View this message in context: http://www.nabble.com/Capturing-Form-Data-into-Nice-URL-%21-tf4461968.html#a12723634 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: Wicket Web Beans 1.0-rc1 Released
I do control my crud list and detail pages with annotations on the model, and it works quite nice (although I can't say the panels constructing the data table and form belongs in the category pretty code, at least there isn't a lot of it). I find I often use multiple views of the same model objects though, and for the non-trivial views the annotations become less useful, although it's still nice to tie in validation and some of the simpler jpa annotations, using them for layout loses the point here. Johan Ryan Sonnek wrote: Although it may blur the lines between view and model, there are a number of reasons that it still could be the right direction. * centralized configuration. all view configuration is in the same file as your model code. * leverage Java syntax instead of custom DSL. easy for users to get up and going when they have autocomplete for annotation configuration. * annotations are metadata, and this configuration *is* metadata for the view layer. * configuration by exception works well with annotations. Hibernate applies the same principle. you only need to declare annotations when you want to change the default behavior. I do understand your disagreement. It's a very natural Java architecture to create abstractions and try to build to design patterns. Realistically though, there are times when it's just plain overboard. You could make the same argument that Hibernate annotations don't really belong in the model code since it's configuring the back end setup, but the beauty of annotations is that it's metadata that *any* layer has access to. I recently published a wicket/hibernate component that leverages the hibernate annotations to enforce view layer behavior (requiredness/max length). Talk about blurring the lines... I'm really impressed with your work, and just want to impart what's worked *really* well for me. Good luck with whatever direction you take. On 9/16/07, Dan Syrstad [EMAIL PROTECTED] wrote: Ryan: The WWB beanprops/metadata is a view abstraction, while your bean is a part of the model. It's my opinion that putting view-based annotations on your model is Not a Good Thing. It confuses the separation of concerns. -Dan On 9/16/07, Ryan Sonnek [EMAIL PROTECTED] wrote: For me databinder helps cut the boilerplate code, just as WWB. I just add annotations to my domain model, and databinder does the rest. It's WWB for the database side of the app! Imagine putting both working together. I was able to create CRUD pages with the least amount of code ever. Less than that and it would need to read my mind... ;) Annotations have been a big win for Java. Many of their success stories have come out of their usage for configuration or metadata. I think that WWB may be a cantidate for using annotations instead of the beanprops file! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Web Beans 1.0-rc1 Released
I'm really impressed with your work, and just want to impart what's worked *really* well for me. Good luck with whatever direction you take. One thing Dan could consider is to abstract enough so that both strategies could be supported. Doesn't mean he should ship annotations support, but it might help if things are set up in such a way that this can be build in. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DropDownChoice.setSelected(Object object)
Hi, I am looking for an equivalent to: DropDownChoice.setSelected(Object object) I looked into API docs but can't figure it out. I have drop down with 18 different choices and I want to select one from either on the available values based on a PageParameter received. Help please! Thanks!! -- View this message in context: http://www.nabble.com/DropDownChoice.setSelected%28Object-object%29-tf4462708.html#a12725679 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: DropDownChoice.setSelected(Object object)
Have you read http://wicket.apache.org/exampledropdownchoice.html ? Martijn On 9/16/07, chickabee [EMAIL PROTECTED] wrote: Hi, I am looking for an equivalent to: DropDownChoice.setSelected(Object object) I looked into API docs but can't figure it out. I have drop down with 18 different choices and I want to select one from either on the available values based on a PageParameter received. Help please! Thanks!! -- View this message in context: http://www.nabble.com/DropDownChoice.setSelected%28Object-object%29-tf4462708.html#a12725679 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling Methods based on page parameters
Using the case system, putting them at top would be interesting. I'd have to constantly reclassify. Unless of course, I were to start at say 500, and work my way down. Thanks again. David Bernard-2 wrote: If you use if or switch, put at the top the most used. Using if/else could seem longer than reflection, but in the case of reflection you need to write 50+ properties. -- View this message in context: http://www.nabble.com/Calling-Methods-based-on-page-parameters-tf4448115.html#a12725909 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: DropDownChoice.setSelected(Object object)
to state the obvious (after the replies of eelco and martijn): you'd only use the approach i mentioned before if you don't use CompoundPropertyModel or PropertyModel. gerolf On 9/16/07, Gerolf Seitz [EMAIL PROTECTED] wrote: you have to set the model of the dropdownchoice. let's say you initiated the drowdownchoice with a list of strings (eg. a, b, c) and you want to pre-select b, you call: choice.setModelObject(b); that's it... the same concept applies if you have complex datatypes (eg a pojo). hth, gerolf On 9/16/07, chickabee [EMAIL PROTECTED] wrote: Hi, I am looking for an equivalent to: DropDownChoice.setSelected(Object object) I looked into API docs but can't figure it out. I have drop down with 18 different choices and I want to select one from either on the available values based on a PageParameter received. Help please! Thanks!! -- View this message in context: http://www.nabble.com/DropDownChoice.setSelected%28Object-object%29-tf4462708.html#a12725679 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: Wicket Web Beans 1.0-rc1 Released
Ryan: One thing I started considering today after your comments was to place annotations, similar to beanprops, on the component level (e.g., Page). Currently beanprops are associated with the Page anyway, so this would be natural and provide type-safeness without bluring the view/model line. I think that Hibernate annotations suchs as required and max length are actually useful for both the model and the view. But possible annotations such as label', fieldType, and presentation order are definitely view-related. Jonathan and others have suggested a Java API and one of the consultants I have worked with actually started on this. But it needs to be finished. -Dan On 9/16/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm really impressed with your work, and just want to impart what's worked *really* well for me. Good luck with whatever direction you take. One thing Dan could consider is to abstract enough so that both strategies could be supported. Doesn't mean he should ship annotations support, but it might help if things are set up in such a way that this can be build in. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to render character entities such as nbsp
Thanks to all for the feedback on this. I ended up solving my issue with a combination of the two approaches. I hadn't noticed the setEscapeModelStrings method, so I definitely appreciate you pointing it out. Very handy. -- Jason Eelco Hillenius wrote: Is it possible to render a character entity such as nbsp; in a Label? I've tried a few things, but I can't seem to get it to happen. setEscapeModelStrings(false) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/How-to-render-character-entities-such-as-nbsp-tf4433127.html#a12727886 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]