ResourceModel class isn't extensible
Althought it is not final and does not contain final methods it is still not so extensible as expected. The idea is to delegate the real work from AssignmentWrapper back to ResourceModel class, for instance: private class AssignmentWrapper extends AbstractReadOnlyModel implements IWrapModel { private final Component component; public AssignmentWrapper(Component component) { this.component = component; } public void detach() { super.detach(); ResourceModel.this.detach(); } public Object getObject() { return ResourceModel.this.getResourceString(component); } public IModel getWrappedModel() { return ResourceModel.this; } } public class ResourceModel() { public String getResourceString(Component component) { return Application.get().getResourceSettings().getLocalizer().getString(getKey(), component, getDefaultValue(); } the latter use getters instead of access to fields to allow overriding the way how keys are constructed. As the result it won't be difficult to extend ResourceModel to provide localization for bean property names, menu item labels and so forth. Actually it is not so difficult to accomplish the same with my own class but it clutters the code and does not make classes consistent, so I had to replace the use of basic ResourceModel class with my own one. -- View this message in context: http://www.nabble.com/ResourceModel-class-isn%27t-extensible-tp22675204p22675204.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
wicket-auth-roles documentation
Quick question, where can I find the documentation for wicket-auth-roles? So far all I've been able to find is where I could download it. Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-auth-roles documentation
There are examples in the Wicket-examples project. And Wicket in Action has a short chapter on wicket security, together with a section on wicket-auth-roles. Martijn On Tue, Mar 24, 2009 at 9:53 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Quick question, where can I find the documentation for wicket-auth-roles? So far all I've been able to find is where I could download it. Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-auth-roles documentation
Thanks! Martijn Dashorst wrote: There are examples in the Wicket-examples project. And Wicket in Action has a short chapter on wicket security, together with a section on wicket-auth-roles. Martijn On Tue, Mar 24, 2009 at 9:53 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Quick question, where can I find the documentation for wicket-auth-roles? So far all I've been able to find is where I could download it. Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.25/2019 - Release Date: 03/23/09 18:51:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Meetup Tonight in Amsterdam!
The Apache Wicket Meetup in Amsterdam tonight (24 March) has grown considerably: over 70 people have already registered! Our program is still growing and just this morning we got an additional presentation! The Meetup is free thanks to our generous sponsors: - Hippo (http://onehippo.com) - Func (http://func.nl) - Topicus (http://topicus.nl) You can still join us between 19:00 and 22:00 in the Moevenpick hotel in Amsterdam. Register for free here: https://spreadsheets.google.com/viewform?formkey=cDFlMTdSV3dKT1lkYUlVa2lWUFdkQXc6MA Route to the venue: http://maps.google.com/maps?client=safarirls=en-usoe=UTF-8um=1ie=UTF-8cid=0,0,16474381925794425644fb=1split=1dq=moevenpick+hotel+amsterdam+piet+heinkadedaddr=Piet+Heinkade+11,+1019+BR+Amsterdam,+Netherlandsgeocode=10995011565374881002,52.378048,4.914107ei=e5fISb-PIsS4-Qb1_tGZAwsa=Xoi=local_resultresnum=1ct=directions-to Program: - Introduction to Wicket - Wicket Scala - Surprise - Wicket JDave - Automated integration testing for Wicket apps - Wicket DB4O - Getting your app production ready and in production Of course there is room for questions to the core team (Timo, Johan and Martijn are present), getting your book signed or just have a beer. See you tonight! -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Meetup Tonight in Amsterdam!
What's the surprise?! I'm very curious now, can't wait! See you all tonight... Regards, Daan van Etten Op 24 mrt 2009, om 10:22 heeft Martijn Dashorst het volgende geschreven: The Apache Wicket Meetup in Amsterdam tonight (24 March) has grown considerably: over 70 people have already registered! Our program is still growing and just this morning we got an additional presentation! The Meetup is free thanks to our generous sponsors: - Hippo (http://onehippo.com) - Func (http://func.nl) - Topicus (http://topicus.nl) You can still join us between 19:00 and 22:00 in the Moevenpick hotel in Amsterdam. Register for free here: https://spreadsheets.google.com/viewform?formkey=cDFlMTdSV3dKT1lkYUlVa2lWUFdkQXc6MA Route to the venue: http://maps.google.com/maps?client=safarirls=en-usoe=UTF-8um=1ie=UTF-8cid=0,0,16474381925794425644fb=1split=1dq=moevenpick+hotel+amsterdam+piet+heinkadedaddr=Piet+Heinkade+11,+1019+BR+Amsterdam,+Netherlandsgeocode=10995011565374881002,52.378048,4.914107ei=e5fISb-PIsS4-Qb1_tGZAwsa=Xoi=local_resultresnum=1ct=directions-to Program: - Introduction to Wicket - Wicket Scala - Surprise - Wicket JDave - Automated integration testing for Wicket apps - Wicket DB4O - Getting your app production ready and in production Of course there is room for questions to the core team (Timo, Johan and Martijn are present), getting your book signed or just have a beer. See you tonight! -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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: Wicket Meetup Tonight in Amsterdam!
You'll just have to wait for them to surprise you! ;) Daan van Etten wrote: What's the surprise?! I'm very curious now, can't wait! See you all tonight... Regards, Daan van Etten Op 24 mrt 2009, om 10:22 heeft Martijn Dashorst het volgende geschreven: The Apache Wicket Meetup in Amsterdam tonight (24 March) has grown considerably: over 70 people have already registered! Our program is still growing and just this morning we got an additional presentation! The Meetup is free thanks to our generous sponsors: - Hippo (http://onehippo.com) - Func (http://func.nl) - Topicus (http://topicus.nl) You can still join us between 19:00 and 22:00 in the Moevenpick hotel in Amsterdam. Register for free here: https://spreadsheets.google.com/viewform?formkey=cDFlMTdSV3dKT1lkYUlVa2lWUFdkQXc6MA Route to the venue: http://maps.google.com/maps?client=safarirls=en-usoe=UTF-8um=1ie=UTF-8cid=0,0,16474381925794425644fb=1split=1dq=moevenpick+hotel+amsterdam+piet+heinkadedaddr=Piet+Heinkade+11,+1019+BR+Amsterdam,+Netherlandsgeocode=10995011565374881002,52.378048,4.914107ei=e5fISb-PIsS4-Qb1_tGZAwsa=Xoi=local_resultresnum=1ct=directions-to Program: - Introduction to Wicket - Wicket Scala - Surprise - Wicket JDave - Automated integration testing for Wicket apps - Wicket DB4O - Getting your app production ready and in production Of course there is room for questions to the core team (Timo, Johan and Martijn are present), getting your book signed or just have a beer. See you tonight! -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.25/2019 - Release Date: 03/23/09 18:51:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Client-side models for zero-state scalability
After reviewing the Wicket feature list, I accidentally noticed the following statement: The next version of Wicket will support client-side models for zero-state scalability. I am wondering if this feature will be indeed implemented in (which?) next version or this is just some feature which sounds great for marketability and will never by implemented? Thank you! Alex -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22677847.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: Client-side models for zero-state scalability
Well, there possibly will be extended support for stateless application - something like we implemented in brix. So in a way the statement is true. But there is no timeline for it. -Matej On Tue, Mar 24, 2009 at 11:47 AM, Alex Objelean alex_objel...@yahoo.com wrote: After reviewing the Wicket feature list, I accidentally noticed the following statement: The next version of Wicket will support client-side models for zero-state scalability. I am wondering if this feature will be indeed implemented in (which?) next version or this is just some feature which sounds great for marketability and will never by implemented? Thank you! Alex -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22677847.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: Client-side models for zero-state scalability
Matej, thank you for your reply! Could you provide some examples (links) where I can see how it works? Thank you! Alex Matej Knopp-2 wrote: Well, there possibly will be extended support for stateless application - something like we implemented in brix. So in a way the statement is true. But there is no timeline for it. -Matej On Tue, Mar 24, 2009 at 11:47 AM, Alex Objelean alex_objel...@yahoo.com wrote: After reviewing the Wicket feature list, I accidentally noticed the following statement: The next version of Wicket will support client-side models for zero-state scalability. I am wondering if this feature will be indeed implemented in (which?) next version or this is just some feature which sounds great for marketability and will never by implemented? Thank you! Alex -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22677847.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 -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22678056.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: Client-side models for zero-state scalability
http://code.google.com/p/brix-cms/source/browse/trunk/brix-demo/src/main/java/brix/demo/web/tile/stockquote/stateless/StatelessStockQuotePanel.java -Matej On Tue, Mar 24, 2009 at 12:01 PM, Alex Objelean alex_objel...@yahoo.com wrote: Matej, thank you for your reply! Could you provide some examples (links) where I can see how it works? Thank you! Alex Matej Knopp-2 wrote: Well, there possibly will be extended support for stateless application - something like we implemented in brix. So in a way the statement is true. But there is no timeline for it. -Matej On Tue, Mar 24, 2009 at 11:47 AM, Alex Objelean alex_objel...@yahoo.com wrote: After reviewing the Wicket feature list, I accidentally noticed the following statement: The next version of Wicket will support client-side models for zero-state scalability. I am wondering if this feature will be indeed implemented in (which?) next version or this is just some feature which sounds great for marketability and will never by implemented? Thank you! Alex -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22677847.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 -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22678056.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: Client-side models for zero-state scalability
Our first try just failed. Because that had pretty huge performance issues and the pages are way bigger because of the serialized state everything needs then to be rewritten like a post, the list goes on and on. At that point we just came the the conclusion that this was not the way to go. Currently the only stateless way of doing stuff is doing it a bit your self and push state into links/forms a bit that you then get back from the submit this will be improved in 1.5 (then we have better support for building the urls that you click on and so on) johan On Tue, Mar 24, 2009 at 11:47, Alex Objelean alex_objel...@yahoo.comwrote: After reviewing the Wicket feature list, I accidentally noticed the following statement: The next version of Wicket will support client-side models for zero-state scalability. I am wondering if this feature will be indeed implemented in (which?) next version or this is just some feature which sounds great for marketability and will never by implemented? Thank you! Alex -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22677847.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
Bingind a bean that has getters, but no setters
Hi, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class: http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html?is-external=true This class has getters for minX,minY,maxX,maxY, but has no setters for them, you're supposed to call init(x1,x2,y1,y2) instead. Has anyone an idea of how to bind four text fields so that the model of my Panel is the JTS Envelope, the fields use the Envelope corners, but the update takes place as a single shot instead of a field by field basis (that I cannot do given the lack of setters?) Cheers Andrea - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
The latest code in 1.3 and 1.4 are working with private fields and only getters If you have a property model on those fields it will use the field reference directly to set it. johan On Tue, Mar 24, 2009 at 13:15, Andrea Aime aa...@opengeo.org wrote: Hi, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class: http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html?is-external=true This class has getters for minX,minY,maxX,maxY, but has no setters for them, you're supposed to call init(x1,x2,y1,y2) instead. Has anyone an idea of how to bind four text fields so that the model of my Panel is the JTS Envelope, the fields use the Envelope corners, but the update takes place as a single shot instead of a field by field basis (that I cannot do given the lack of setters?) Cheers Andrea - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
what is the state of wicket-contrib?
I'm concerned about where I can get wicket-contrib-yui? Sourceforge download page privide several outdated projects and does not provide wicket-contrib-yui at all. -- View this message in context: http://www.nabble.com/what-is-the-state-of-wicket-contrib--tp22679385p22679385.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
HTML tags case sensitive in Wicket?
Is it true that HTML tags have become case sensitive in Wicket? I just tried to link to a page that I knew existed TestPage.html with a wicket link. It gave me a resource not found message when I had the following link: wicket:link A HREF=TestPage.htmlTest/A /wicket:link If this is true, is it deliberate? Regards, Linda - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making wicket work with Dynamically created html
Thanks for the replies. I experimented with wicket-velocity, it was very easy to get started.. The velocity template is pretty good at displaying the html elements dynamically, but im not finding an easy way to bind the data back... The model I have is dynamic , ie I do not know beforehand the names of the wicket ids. I may have to keep the values in a Map String, String. For eg map(firstName, xxx) etc, the corresponding wicket:id is firstName. When I bind a CompoundPropertyModel() back to the form, I get an error firstName property not found. If I have an empty model bound I get IllegalStateException: model may be null. I understand why this is happening, so the qtn is there any other Model I can use which binds to a Map ? Like if wicket:id is firstName, it should update map.put(firstName, newValue) ? On 3/21/09, Jan Kriesten kries...@mail.footprint.de wrote: Hi Vasya, How do I then map my html to panels which wicket wants ? If there is a template/example that would help. take a look at the wicket-velocity project where velocity templates are used for components. That should be similar to what you want. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards, Vasu Srinivasan
Re: Making wicket work with Dynamically created html
Hi Vasya, The velocity template is pretty good at displaying the html elements dynamically, but im not finding an easy way to bind the data back... I'm not really sure what you're trying to accomplish. You can't use the velocity to create wicket-components on the fly and have them bound to a form, that'll not work. If you want to create some dynamic form you should use repeaters and build them up using them - and bind the formcomponents directly to the model (maybe you need to write some specialized model yourself). I did something like that with XML specifying the form and having a ElementModel binding the form elements to JDOM nodes. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Security Framework that best fits to Wicket
Hi guys, This is another of my posts best fits to Wicket. Now my doubt is about security frameworks. I came from the JEE world (jboss and glassfish) and I'm used to work with JAAS and Spring acegi (tomcat). Now I'm taking a easy/fast to development set of frameworks, I'm using Jetty, Google Guice, Warp-persist and Wicket. Considering this set of frameworks I'm tending to choose JSecurity as security framework because Acegi (spring security) uses spring internally and if I would use spring for security I would use it to dependency injection too. Ok, backing to the real point... In your opinion which security framework best fits to Wicket + Guice? What wicket plugin should I use to integrate with jsecurity or spring security? Should I use the security framework for authentication and authorization or do you recommend to use just to authorization? Thing to consider: - At the moment I'm not using a JEE AS but it could happen in the future. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
James Carman ha scritto: Or, you could provide a wrapper A wrapper... how? In particular, how is the wrapper notified that it's time to set all the properties back in the envelope? (sorry, model rookie here). Btw, Johan suggestion works, but bombs out in the case the envelope is null which is another case I have to handle, if the user did not enter any values in the text fields, it should stay null. How is this handled? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
Hi Andrea Did you use the openlayers integration project? just curious... regards Nino 2009/3/24 Andrea Aime aa...@opengeo.org Hi, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class: http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html?is-external=true This class has getters for minX,minY,maxX,maxY, but has no setters for them, you're supposed to call init(x1,x2,y1,y2) instead. Has anyone an idea of how to bind four text fields so that the model of my Panel is the JTS Envelope, the fields use the Envelope corners, but the update takes place as a single shot instead of a field by field basis (that I cannot do given the lack of setters?) Cheers Andrea - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Client-side models for zero-state scalability
Hi Matej, sounds interesting, also the approach with PageParametersAware (and PageParametersForm). Do you thought about writing a short description of how this approach works? This would be really helpful, as I don't see the whole picture until now. Cheers, Martin On Tue, 2009-03-24 at 12:04 +0100, Matej Knopp wrote: http://code.google.com/p/brix-cms/source/browse/trunk/brix-demo/src/main/java/brix/demo/web/tile/stockquote/stateless/StatelessStockQuotePanel.java -Matej On Tue, Mar 24, 2009 at 12:01 PM, Alex Objelean alex_objel...@yahoo.com wrote: Matej, thank you for your reply! Could you provide some examples (links) where I can see how it works? Thank you! Alex Matej Knopp-2 wrote: Well, there possibly will be extended support for stateless application - something like we implemented in brix. So in a way the statement is true. But there is no timeline for it. -Matej On Tue, Mar 24, 2009 at 11:47 AM, Alex Objelean alex_objel...@yahoo.com wrote: After reviewing the Wicket feature list, I accidentally noticed the following statement: The next version of Wicket will support client-side models for zero-state scalability. I am wondering if this feature will be indeed implemented in (which?) next version or this is just some feature which sounds great for marketability and will never by implemented? Thank you! Alex -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22677847.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 -- View this message in context: http://www.nabble.com/Client-side-models-for-zero-state-scalability-tp22677847p22678056.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 signature.asc Description: This is a digitally signed message part
Xml models [Was: Making wicket work with Dynamically created html]
Interesting. I think we have something similar. We do stuff like new TextField(/addresses/address[1]/street) and this will automatically bind the text field to a node in the XML document that was attached to the form. Regards, Erik. Jan Kriesten wrote: I did something like that with XML specifying the form and having a ElementModel binding the form elements to JDOM nodes. Best regards, --- Jan. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
nino martinez wael ha scritto: Hi Andrea Did you use the openlayers integration project? just curious... Nope, so far I did not. GeoServer has its own way to generate a OL client preview page which uses FreeMarker templates. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
Ok, was just because the openlayer integration exposes the JTD objects... No problem there.. 2009/3/24 Andrea Aime aa...@opengeo.org nino martinez wael ha scritto: Hi Andrea Did you use the openlayers integration project? just curious... Nope, so far I did not. GeoServer has its own way to generate a OL client preview page which uses FreeMarker templates. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
I guess you could look into the integration for inspiration on howto use wicket it does some of the same stuf you are talking about 2009/3/24 nino martinez wael nino.martinez.w...@gmail.com Ok, was just because the openlayer integration exposes the JTD objects... No problem there.. 2009/3/24 Andrea Aime aa...@opengeo.org nino martinez wael ha scritto: Hi Andrea Did you use the openlayers integration project? just curious... Nope, so far I did not. GeoServer has its own way to generate a OL client preview page which uses FreeMarker templates. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
hmm normally i think we try to create the object by calling the default constructor And i see it does have a default constructor But is that Envelope object really your model object? Do you have a simple test case that i can add to the PropertyResolverTest ? On Tue, Mar 24, 2009 at 15:11, Andrea Aime aa...@opengeo.org wrote: James Carman ha scritto: Or, you could provide a wrapper A wrapper... how? In particular, how is the wrapper notified that it's time to set all the properties back in the envelope? (sorry, model rookie here). Btw, Johan suggestion works, but bombs out in the case the envelope is null which is another case I have to handle, if the user did not enter any values in the text fields, it should stay null. How is this handled? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
Johan Compagner ha scritto: hmm normally i think we try to create the object by calling the default constructor And i see it does have a default constructor But is that Envelope object really your model object? Well, it's actually a property of a larger object, which I provide to my panel using another PropertyModel Do you have a simple test case that i can add to the PropertyResolverTest ? Not at the moment, I'm facing a number of errors that I cannot sort out and which are probably related to my improper usage of Wicket. I'll try to figure out what's going on and will let you know Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Bingind a bean that has getters, but no setters
Hi Andrea, I'm trying to make a component that edits the corners of a rectangle. The model of this component should be a JTS Envelope class: http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html?is-external=true This class has getters for minX,minY,maxX,maxY, but has no setters for them, you're supposed to call init(x1,x2,y1,y2) instead. Has anyone an idea of how to bind four text fields so that the model of my Panel is the JTS Envelope, the fields use the Envelope corners, but the update takes place as a single shot instead of a field by field basis (that I cannot do given the lack of setters?) I think you should use a FormComponentPanelEnvelope as the base of your panel. That way you can have a ModelEnvelope and manually pull out the parts (in panel.onBeforeRender) for the text fields into their ModelInteger models. Overriding panel.convertInput() will allow out to build a new instance (i..e calling init(x1,x2,y1,y2) when the containing form submits. something like: @Override protected void convertInput() { Integer x1 = x1TextField.getObject(); . . . Envelope e = Envelope.init (x1, ...); setConvertedInput (e); } Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ajax request and reload the datview model
I have a dataview in my page , a delete or add action should repaint or rerender the dataview , to acheieve this I am adding the dataview container to AjaxRequestTarget, the method populateItem of dataview gets called but not the constructor , the constructor loads the data from database , so any change to my database is not reflecting in the dataview becasue its not reloading the data , so please suggest me how can i tell the dataview component to reload the data ? -- View this message in context: http://www.nabble.com/ajax-request-and-reload-the--datview-model-tp22682290p22682290.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
Form validation without a form component
One of my forms is used to dynamically construct a linked list using Ajax. I would like to apply some form of validation to this form that will show an error unless the size of the list is greater than 0. The trouble is that there is no form component that I can add my validator to. Is there a sensible way to do this? -- View this message in context: http://www.nabble.com/Form-validation-without-a-form-component-tp22682572p22682572.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: Wicket Meetup Tonight in Amsterdam!
Enjoy yourselves tonight and remember that you are all invited to our http://jweekend.com/dev/LWUGReg/ London Wicket Event next Wednesday evening too! Regards - Cemal http://jWeekend.com jWeekend Martijn Dashorst wrote: The Apache Wicket Meetup in Amsterdam tonight (24 March) has grown considerably: over 70 people have already registered! Our program is still growing and just this morning we got an additional presentation! The Meetup is free thanks to our generous sponsors: - Hippo (http://onehippo.com) - Func (http://func.nl) - Topicus (http://topicus.nl) You can still join us between 19:00 and 22:00 in the Moevenpick hotel in Amsterdam. Register for free here: https://spreadsheets.google.com/viewform?formkey=cDFlMTdSV3dKT1lkYUlVa2lWUFdkQXc6MA Route to the venue: http://maps.google.com/maps?client=safarirls=en-usoe=UTF-8um=1ie=UTF-8cid=0,0,16474381925794425644fb=1split=1dq=moevenpick+hotel+amsterdam+piet+heinkadedaddr=Piet+Heinkade+11,+1019+BR+Amsterdam,+Netherlandsgeocode=10995011565374881002,52.378048,4.914107ei=e5fISb-PIsS4-Qb1_tGZAwsa=Xoi=local_resultresnum=1ct=directions-to Program: - Introduction to Wicket - Wicket Scala - Surprise - Wicket JDave - Automated integration testing for Wicket apps - Wicket DB4O - Getting your app production ready and in production Of course there is room for questions to the core team (Timo, Johan and Martijn are present), getting your book signed or just have a beer. See you tonight! -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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/Wicket-Meetup-Tonight-in-Amsterdam%21-tp22676632p22683019.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: Form validation without a form component
You could try adding a hidden field and register a validator to that field... I have no idea if that would work though Martijn On Tue, Mar 24, 2009 at 4:12 PM, triswork tristan.k...@gmail.com wrote: One of my forms is used to dynamically construct a linked list using Ajax. I would like to apply some form of validation to this form that will show an error unless the size of the list is greater than 0. The trouble is that there is no form component that I can add my validator to. Is there a sensible way to do this? -- View this message in context: http://www.nabble.com/Form-validation-without-a-form-component-tp22682572p22682572.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 -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
OT: How to connect Wicket layer to underlying service layer
I am trying to figure out the architecture of a prototype application. In it, the presentation layer (Wicket) needs to work with a service layer to display and edit lists (among other things). The service layer also exposes some Web Services via SOAP/REST which I intend to use for a Flash/Flex component that will be on the pages served by Wicket and will display the lists in a graphical and interactive way. What options do I have to connect the presentation and middle layer? - RMI between Wicket and the service layer: This would allow them to run separately (e.g., we can work on the presentation without taking down the service layer who is running background processes). - Service layer and Wicket in the same webapp. - Service layer and Wicket in separate webapps but with Tomcat's crossContext set to true. - Anything else? Can anybody share some recommendations or experiences? I am worried that RMI will not only be a performance bottleneck (is it?) but also that it will be hard to work with models. Looking at wicket-phonebook, https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook/src/main/java/wicket/contrib/phonebook/web/DetachableContactModel.java I see that the presentation layer has access to the DAO and stores id's in its models. With an RMI separation, the DAO is in the middle layer and not accessible from the presentation layer. Also, transactional boundaries are in the service layer, so I will not be able to do something more complex in the presentation layer (which I shouldn't do anyway, I guess). Many thanks for feedback, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OT: How to connect Wicket layer to underlying service layer
Put your services in the same webapp. On Tue, Mar 24, 2009 at 11:37 AM, Kaspar Fischer fisch...@inf.ethz.ch wrote: I am trying to figure out the architecture of a prototype application. In it, the presentation layer (Wicket) needs to work with a service layer to display and edit lists (among other things). The service layer also exposes some Web Services via SOAP/REST which I intend to use for a Flash/Flex component that will be on the pages served by Wicket and will display the lists in a graphical and interactive way. What options do I have to connect the presentation and middle layer? - RMI between Wicket and the service layer: This would allow them to run separately (e.g., we can work on the presentation without taking down the service layer who is running background processes). - Service layer and Wicket in the same webapp. - Service layer and Wicket in separate webapps but with Tomcat's crossContext set to true. - Anything else? Can anybody share some recommendations or experiences? I am worried that RMI will not only be a performance bottleneck (is it?) but also that it will be hard to work with models. Looking at wicket-phonebook, https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook/src/main/java/wicket/contrib/phonebook/web/DetachableContactModel.java I see that the presentation layer has access to the DAO and stores id's in its models. With an RMI separation, the DAO is in the middle layer and not accessible from the presentation layer. Also, transactional boundaries are in the service layer, so I will not be able to do something more complex in the presentation layer (which I shouldn't do anyway, I guess). Many thanks for feedback, Kaspar - 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: OT: How to connect Wicket layer to underlying service layer
Yes, I suggest to you the same approach. Put everything in the same webapp, just take care to separate the tiers. For example: don't modify inside a service method the method parameters because it won't work in a EJB for example. I used to build a huge environment n-tier with different jar files for each tier, beautiful from the architecture view, but expensive to develop, and sometimes you don't need this huge approach. My advice is, do it simple but taking care to handle evolution, to in the future put it a cluster, ejbs, jms, etc. The architecture that I use is: Wicket in front end, components calling service methods. Service methods using JPA/Hibernate and now I will use Warp-persistent Dynamic Filters to act as a DAO. I always use DTO in service methods. My point of view is that if you have a method named getSimpleUserList and your User entity has 10 attributes and for this simple list you just need 3 of them, doesn't make sense to me return a Set of User objects, for that I would create a SimpleUserDto and return a Set of it. Please, if I was confuse, ask me more, my english isn't perfect. Thanks On Tue, Mar 24, 2009 at 12:41 PM, James Carman jcar...@carmanconsulting.com wrote: Put your services in the same webapp. On Tue, Mar 24, 2009 at 11:37 AM, Kaspar Fischer fisch...@inf.ethz.ch wrote: I am trying to figure out the architecture of a prototype application. In it, the presentation layer (Wicket) needs to work with a service layer to display and edit lists (among other things). The service layer also exposes some Web Services via SOAP/REST which I intend to use for a Flash/Flex component that will be on the pages served by Wicket and will display the lists in a graphical and interactive way. What options do I have to connect the presentation and middle layer? - RMI between Wicket and the service layer: This would allow them to run separately (e.g., we can work on the presentation without taking down the service layer who is running background processes). - Service layer and Wicket in the same webapp. - Service layer and Wicket in separate webapps but with Tomcat's crossContext set to true. - Anything else? Can anybody share some recommendations or experiences? I am worried that RMI will not only be a performance bottleneck (is it?) but also that it will be hard to work with models. Looking at wicket-phonebook, https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook/src/main/java/wicket/contrib/phonebook/web/DetachableContactModel.java I see that the presentation layer has access to the DAO and stores id's in its models. With an RMI separation, the DAO is in the middle layer and not accessible from the presentation layer. Also, transactional boundaries are in the service layer, so I will not be able to do something more complex in the presentation layer (which I shouldn't do anyway, I guess). Many thanks for feedback, Kaspar - 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: OT: How to connect Wicket layer to underlying service layer
On Tue, Mar 24, 2009 at 11:56 AM, Eduardo Nunes esnu...@gmail.com wrote: I always use DTO in service methods. My point of view is that if you have a method named getSimpleUserList and your User entity has 10 attributes and for this simple list you just need 3 of them, doesn't make sense to me return a Set of User objects, for that I would create a SimpleUserDto and return a Set of it. I'm not a big fan of DTOs. I understand why folks use them, but until I figure out that I actually need them (for performance reasons), I actually stick with just sending back my entities from the database. For the most part, it works for me and I find it convenient to have everyone coding to the same domain objects. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form validation without a form component
Hi Martijn, The hidden worked fine. I thought there might be a more elegant way though :) Tristan Martijn Dashorst wrote: You could try adding a hidden field and register a validator to that field... I have no idea if that would work though Martijn -- View this message in context: http://www.nabble.com/Form-validation-without-a-form-component-tp22682572p22683664.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
Wicket architecture diagram?
Has anyone done a nice Wicket architecture diagram? I know about the architecture chapter in WiA, but someone I know is looking for something more along the lines of: http://www.icesoft.com/developer_guides/icefaces/htmlguide/devguide/sys_architecture.html http://www.ociweb.com/jnb/jsfArchitecture.jpg Unfortunately, I'm no artist - so I can't help him much. I was hoping someone had already done something similar as part of a presentation somewhere. -- Jeremy Thomerson http://www.wickettraining.com
Re: Form validation without a form component
You could add a validator to the form itself, right? On Tue, Mar 24, 2009 at 12:02 PM, triswork tristan.k...@gmail.com wrote: Hi Martijn, The hidden worked fine. I thought there might be a more elegant way though :) Tristan Martijn Dashorst wrote: You could try adding a hidden field and register a validator to that field... I have no idea if that would work though Martijn -- View this message in context: http://www.nabble.com/Form-validation-without-a-form-component-tp22682572p22683664.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: OT: How to connect Wicket layer to underlying service layer
I agree wholeheartedly with both of James' points. Put it all in the same webapp until you are absolutely certain that you've outgrown that. And I don't like DTO's. Why is it better to return an object that only has three fields when you don't need all ten? Doesn't this imply that you've broken the separation of concerns - your service layer is coded to know what fields your view layer needs? Also, why have duplicate objects to have to maintain? And what would returning the extra fields hurt? Anyway, just my two cents. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 11:02 AM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 11:56 AM, Eduardo Nunes esnu...@gmail.com wrote: I always use DTO in service methods. My point of view is that if you have a method named getSimpleUserList and your User entity has 10 attributes and for this simple list you just need 3 of them, doesn't make sense to me return a Set of User objects, for that I would create a SimpleUserDto and return a Set of it. I'm not a big fan of DTOs. I understand why folks use them, but until I figure out that I actually need them (for performance reasons), I actually stick with just sending back my entities from the database. For the most part, it works for me and I find it convenient to have everyone coding to the same domain objects. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OT: How to connect Wicket layer to underlying service layer
Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? On Tue, Mar 24, 2009 at 1:02 PM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 11:56 AM, Eduardo Nunes esnu...@gmail.com wrote: I always use DTO in service methods. My point of view is that if you have a method named getSimpleUserList and your User entity has 10 attributes and for this simple list you just need 3 of them, doesn't make sense to me return a Set of User objects, for that I would create a SimpleUserDto and return a Set of it. I'm not a big fan of DTOs. I understand why folks use them, but until I figure out that I actually need them (for performance reasons), I actually stick with just sending back my entities from the database. For the most part, it works for me and I find it convenient to have everyone coding to the same domain objects. - 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: OT: How to connect Wicket layer to underlying service layer
On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes esnu...@gmail.com wrote: Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? A domain-driven design advocate would say that the entity knows how to calculate what you need and you can ask it for the calculated value. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OT: How to connect Wicket layer to underlying service layer
Agree again. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 11:11 AM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes esnu...@gmail.com wrote: Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? A domain-driven design advocate would say that the entity knows how to calculate what you need and you can ask it for the calculated value. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OT: How to connect Wicket layer to underlying service layer
Ok I got it. One question, consider that you have this model: Person 1xN Address You have a screen that list a detailed view of a person, including a list of addresses. What approach do you use to implement it? - A service method that returns a Person entity with eager load of the list of Addresses? (if you don't need always the addresses this doesn't make sense) - A service method that returns a Person entity with lazy load of the list of Addresses? (it could be a problem in a JEE environment) - Two service methods, one to return the Person entity and another one to return the of addresses? Thanks, Eduardo S. Nunes On Tue, Mar 24, 2009 at 1:11 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Agree again. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 11:11 AM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes esnu...@gmail.com wrote: Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? A domain-driven design advocate would say that the entity knows how to calculate what you need and you can ask it for the calculated value. - 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: Wicket architecture diagram?
Jeremy, It's one of the first things I looked for when I first stumbled upon Wicket 2 years ago, and it is a common request from many architects and even some project managers evaluating Wicket. If the core devs come up with some rough (but correct) sketch they're all agreed on, even if it's just a first iteration, I'll get someone here to create a professional (maybe even glossy) version from that. Regards - Cemal http://jWeekend.com jWeekend Jeremy Thomerson-5 wrote: Has anyone done a nice Wicket architecture diagram? I know about the architecture chapter in WiA, but someone I know is looking for something more along the lines of: http://www.icesoft.com/developer_guides/icefaces/htmlguide/devguide/sys_architecture.html http://www.ociweb.com/jnb/jsfArchitecture.jpg Unfortunately, I'm no artist - so I can't help him much. I was hoping someone had already done something similar as part of a presentation somewhere. -- Jeremy Thomerson http://www.wickettraining.com -- View this message in context: http://www.nabble.com/Wicket-architecture-diagram--tp22683704p22684559.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: OT: How to connect Wicket layer to underlying service layer
James, Eduardo, Jeremy, thank you very much for your input! I follow your discussions with great interest. Can you recommend a book on this sort of questions? I have read books on Spring and Hibernate but not from this high-level point of view. Cheers, Kaspar On 24.03.2009, at 17:38, Eduardo Nunes wrote: Ok I got it. One question, consider that you have this model: Person 1xN Address You have a screen that list a detailed view of a person, including a list of addresses. What approach do you use to implement it? - A service method that returns a Person entity with eager load of the list of Addresses? (if you don't need always the addresses this doesn't make sense) - A service method that returns a Person entity with lazy load of the list of Addresses? (it could be a problem in a JEE environment) - Two service methods, one to return the Person entity and another one to return the of addresses? Thanks, Eduardo S. Nunes On Tue, Mar 24, 2009 at 1:11 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Agree again. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 11:11 AM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes esnu...@gmail.com wrote: Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? A domain-driven design advocate would say that the entity knows how to calculate what you need and you can ask it for the calculated value. - 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: OT: How to connect Wicket layer to underlying service layer
Kaspar, Flick through Martin Fowler's Patterns of Enterprise Application Architecture to see if you like it. Regards - Cemal http://jWeekend.com jWeekend hbf wrote: James, Eduardo, Jeremy, thank you very much for your input! I follow your discussions with great interest. Can you recommend a book on this sort of questions? I have read books on Spring and Hibernate but not from this high-level point of view. Cheers, Kaspar On 24.03.2009, at 17:38, Eduardo Nunes wrote: Ok I got it. One question, consider that you have this model: Person 1xN Address You have a screen that list a detailed view of a person, including a list of addresses. What approach do you use to implement it? - A service method that returns a Person entity with eager load of the list of Addresses? (if you don't need always the addresses this doesn't make sense) - A service method that returns a Person entity with lazy load of the list of Addresses? (it could be a problem in a JEE environment) - Two service methods, one to return the Person entity and another one to return the of addresses? Thanks, Eduardo S. Nunes On Tue, Mar 24, 2009 at 1:11 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Agree again. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 11:11 AM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes esnu...@gmail.com wrote: Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? A domain-driven design advocate would say that the entity knows how to calculate what you need and you can ask it for the calculated value. - 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/OT%3A-How-to-connect-Wicket-layer-to-underlying-service-layer-tp22683138p22684726.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: OT: How to connect Wicket layer to underlying service layer
Maybe Eric Evans Book 'Domain-Driven Design'? Kaspar Fischer wrote: James, Eduardo, Jeremy, thank you very much for your input! I follow your discussions with great interest. Can you recommend a book on this sort of questions? I have read books on Spring and Hibernate but not from this high-level point of view. Cheers, Kaspar On 24.03.2009, at 17:38, Eduardo Nunes wrote: Ok I got it. One question, consider that you have this model: Person 1xN Address You have a screen that list a detailed view of a person, including a list of addresses. What approach do you use to implement it? - A service method that returns a Person entity with eager load of the list of Addresses? (if you don't need always the addresses this doesn't make sense) - A service method that returns a Person entity with lazy load of the list of Addresses? (it could be a problem in a JEE environment) - Two service methods, one to return the Person entity and another one to return the of addresses? Thanks, Eduardo S. Nunes On Tue, Mar 24, 2009 at 1:11 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Agree again. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 11:11 AM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes esnu...@gmail.com wrote: Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? A domain-driven design advocate would say that the entity knows how to calculate what you need and you can ask it for the calculated value. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OT: How to connect Wicket layer to underlying service layer
On Tue, Mar 24, 2009 at 12:53 PM, Dave Schoorl mailli...@cyber-d.com wrote: Maybe Eric Evans Book 'Domain-Driven Design'? Yep, that's the one I would suggest. Although, I am going to check out Fowler's book too. That's one I don't have yet! :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AutoCompleteTextField and accentuated characters
Ok, I fixed my problem. I should say I patched it! And it is pretty ugly The problem is from the fact that on the client side the ajax get URI is encoded from as utf-8. But the default Tomcat's URIEncoding is ISO-8859-1 and for me it is something I cannot change. So when Tomcat is receiving the request it try to decode the parameters as if they are ISO-8859-1 and the result is not what is expected. If I look at the request.getQueryString, the encoding is fine but not with getParameter(String). So my patch is to convert the ISO-8859-1 string to UTF-8 inside my getChoices method: *input = new String(input.getBytes(ISO-8859-1),UTF-8);* It is a patch but at least it is working fine now. Any better idea? Thierry On Mon, Mar 23, 2009 at 21:05, Thierry Leveque tleve...@gmail.com wrote: Well I was still perplex, because other fields, and even other ajax components seems to work fine with the default Tomcat config. So I used the Firefox extension TamperData to see exactly what is sent by the browser. The difference is obvious: Other ajax components and normal submit link are doing a post to the server. So the request object in the Wicket filter contain the correct decoded value. This is what I especting. But when using the AutoCompleteTextField it is a get that is used!! The value is then send directly within the url. And this is probably why it is not encoded/decoded correctly. But why is this ajax component is doing a get and the others are doing posts?? An idea?? Thierry On Mon, Mar 23, 2009 at 20:15, mbrictson m...@55minutes.com wrote: I checked the Tomcat source code and the default URIEncoding is ISO-8859-1 (not the system default encoding as I previously stated). AFAIK it is a global setting; I don't think you can set it per web application. If you don't have access to change the URIEncoding in the server.xml, then perhaps your only option is to build your Wicket application using ISO-8859-1 instead of UTF-8. -- Matt tleveque wrote: It is working!!! Thanks!!! But I hope this is standard on Linux server, because I don't think I will have access that on the server where I am hosting my web site. Do you know if there is another way to set that per web application? Thanks again! Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 16:37, mbrictson m...@55minutes.com wrote: Are you using Tomcat? I had a similar problem (with the word café specifically) and it turned out to be caused by Tomcat's URL encoding. By default, Tomcat uses the system encoding for URLs. You will have to edit the Tomcat configuration to change this: 1. Open $CATALINA_HOME/conf/server.xml 2. Locate the Connector that is being used. If you are accessing Tomcat directly, this will be the HTTP/1.1 connector. If you have Tomcat fronted by Apache HTTPd, this will be the AJP connector. If in doubt, edit both. 3. Add the attribute: URIEncoding=UTF-8. Example: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 URIEncoding=UTF-8 / -- Matt tleveque wrote: Hi, I have a problem AutoCompleteTextField and accentuated characters. When I type characters within the us-ascii set, there is no problem, but as soon as I use other characters (like 'é'), it doesn't work. The wrong character is received. With the Ajax debugger I can see that what is sent is wrong (or maybe encoded?). For a 'é', it sends is '%C3%A9'. That what is received as the parameter of the getChoices method. Is there something I can do about that? I am using Wicket 1.3.5 Thanks... -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22668559.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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22672081.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: OT: How to connect Wicket layer to underlying service layer
Me too, it's not easy to find these books in Brazil, I will try to buy a electronic copy of it. On Tue, Mar 24, 2009 at 2:40 PM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Mar 24, 2009 at 12:53 PM, Dave Schoorl mailli...@cyber-d.com wrote: Maybe Eric Evans Book 'Domain-Driven Design'? Yep, that's the one I would suggest. Although, I am going to check out Fowler's book too. That's one I don't have yet! :) - 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
TextField setPersistent is not remembering emails, only the username part of them
Hi there! First of all, i am a newbie, and I might be all the way wrong, but, I cannot think of any other alternative than ask you guys. Sorry if this is a sd question. :-$ I am using the lastest rc of wicket wicket.version1.4-rc2/wicket.version and using as a reference the SignIn panel provided by the examples (done for 1.3.4). I change the idea from username to email. Nowaday nobody uses a username but to access an email. I cannot make it remeber the entire email, it is just remembering the username (the part to the left of the @) I checked everything: - cookies (by using liveheader plugin of firefox i know that the cookie is well setted; why wicket is cuting a part of the string?) - disabling generics Is it possible to be a problem with the rc2? I am lost, please help. -- View this message in context: http://www.nabble.com/TextField-setPersistent-is-not-remembering-emails%2C-only-the-username-part-of-them-tp22686406p22686406.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
page mask and file download
I am using page mask java script function suggested by wicket wiki site. http://www.nabble.com/generalized-way-to-ignore-mouse-input-during-screen-refresh--td21379945.html#a21381260 here is the java script script type=text/javascript window.onload = setupFunc; var busySymbol; function setupFunc() { document.getElementsByTagName('body')[0].onclick = clickFunc; hideBusysign(); Wicket.Ajax.registerPreCallHandler(showBusysign); Wicket.Ajax.registerPostCallHandler(hideBusysign); Wicket.Ajax.registerFailureHandler(hideBusysign); } function hideBusysign() { if (busySymbol != null) { busySymbol.parentNode.removeChild(busySymbol); busySymbol = null; } } function showBusysign() { if (!document.getElementById('busy-symbol')) { busySymbol = document.createElement('div'); busySymbol.id = 'busy-symbol'; var pageHeight; if ((window.innerHeight != null) (window.scrollMaxY != null)) { // Firefox pageHeight = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight document.body.offsetHeight) { // all but Explorer Mac pageHeight = document.body.scrollHeight; } else if (document.height != undefined) { pageHeight = document.height; } else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari pageHeight = document.body.offsetHeight + document.body.offsetTop; } { var busyLabel = document.createElement('div'); busyLabel.innerHTML = 'Loading ...'; busySymbol.appendChild(busyLabel); } document.body.appendChild(busySymbol); busySymbol.style.height = pageHeight + 'px'; } } function clickFunc(eventData) { var clickedElement = (window.event) ? event.srcElement : eventData.target; if ((clickedElement.tagName.toUpperCase() == 'A' (clickedElement.href.lastIndexOf('#') != (clickedElement.href.length-1)) (clickedElement.href.indexOf('WicketAjaxDebug') 0) (clickedElement.href.lastIndexOf('.doc') != (clickedElement.href.length-4)) (clickedElement.href.lastIndexOf('.csv') != (clickedElement.href.length-4)) (clickedElement.href.lastIndexOf('.xls') != (clickedElement.href.length-4)) ((clickedElement.onclick == null) || (clickedElement.onclick.toString().indexOf('window.open') = 0)) ) || (clickedElement.parentNode.tagName.toUpperCase() == 'A' (clickedElement.parentNode.href.lastIndexOf('#') != (clickedElement.parentNode.href.length-1)) (clickedElement.parentNode.href.lastIndexOf('.doc') != (clickedElement.parentNode.href.length-4)) (clickedElement.parentNode.href.lastIndexOf('.csv') != (clickedElement.parentNode.href.length-4)) (clickedElement.parentNode.href.lastIndexOf('.xls') != (clickedElement.parentNode.href.length-4)) ((clickedElement.parentNode.onclick == null) || (clickedElement.parentNode.onclick.toString().indexOf('window.open') = 0)) ) || ( ((clickedElement.onclick == null) || ((clickedElement.onclick.toString().indexOf('window') = 0) (clickedElement.onclick.toString().indexOf('confirm') = 0))) ((clickedElement.tagName.toUpperCase() == 'INPUT' || clickedElement.tagName.toUpperCase() == 'BUTTON') (clickedElement.type.toUpperCase() == 'BUTTON' || clickedElement.type.toUpperCase() == 'IMAGE' || clickedElement.type.toUpperCase() == 'SUBMIT')) ) ) { showBusysign(); } } /script this works fine. Today I implemented the wicket file download , download works fine but the script as usual loads the loading text, but never turns off in ajax links it works fine but the file download it never stops please help me resolve this. -- View this message in context: http://www.nabble.com/page-mask-and-file-download-tp22686849p22686849.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: AutoCompleteTextField and accentuated characters
try calling this method as early as possible 9eg with a servlet filter): http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String) see also: http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/web/filter/CharacterEncodingFilter.html Maarten On Tue, Mar 24, 2009 at 6:41 PM, Thierry Leveque tleve...@gmail.com wrote: Ok, I fixed my problem. I should say I patched it! And it is pretty ugly The problem is from the fact that on the client side the ajax get URI is encoded from as utf-8. But the default Tomcat's URIEncoding is ISO-8859-1 and for me it is something I cannot change. So when Tomcat is receiving the request it try to decode the parameters as if they are ISO-8859-1 and the result is not what is expected. If I look at the request.getQueryString, the encoding is fine but not with getParameter(String). So my patch is to convert the ISO-8859-1 string to UTF-8 inside my getChoices method: *input = new String(input.getBytes(ISO-8859-1),UTF-8);* It is a patch but at least it is working fine now. Any better idea? Thierry On Mon, Mar 23, 2009 at 21:05, Thierry Leveque tleve...@gmail.com wrote: Well I was still perplex, because other fields, and even other ajax components seems to work fine with the default Tomcat config. So I used the Firefox extension TamperData to see exactly what is sent by the browser. The difference is obvious: Other ajax components and normal submit link are doing a post to the server. So the request object in the Wicket filter contain the correct decoded value. This is what I especting. But when using the AutoCompleteTextField it is a get that is used!! The value is then send directly within the url. And this is probably why it is not encoded/decoded correctly. But why is this ajax component is doing a get and the others are doing posts?? An idea?? Thierry On Mon, Mar 23, 2009 at 20:15, mbrictson m...@55minutes.com wrote: I checked the Tomcat source code and the default URIEncoding is ISO-8859-1 (not the system default encoding as I previously stated). AFAIK it is a global setting; I don't think you can set it per web application. If you don't have access to change the URIEncoding in the server.xml, then perhaps your only option is to build your Wicket application using ISO-8859-1 instead of UTF-8. -- Matt tleveque wrote: It is working!!! Thanks!!! But I hope this is standard on Linux server, because I don't think I will have access that on the server where I am hosting my web site. Do you know if there is another way to set that per web application? Thanks again! Thierry Sent from: Montreal Quebec Canada. On Mon, Mar 23, 2009 at 16:37, mbrictson m...@55minutes.com wrote: Are you using Tomcat? I had a similar problem (with the word café specifically) and it turned out to be caused by Tomcat's URL encoding. By default, Tomcat uses the system encoding for URLs. You will have to edit the Tomcat configuration to change this: 1. Open $CATALINA_HOME/conf/server.xml 2. Locate the Connector that is being used. If you are accessing Tomcat directly, this will be the HTTP/1.1 connector. If you have Tomcat fronted by Apache HTTPd, this will be the AJP connector. If in doubt, edit both. 3. Add the attribute: URIEncoding=UTF-8. Example: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 URIEncoding=UTF-8 / -- Matt tleveque wrote: Hi, I have a problem AutoCompleteTextField and accentuated characters. When I type characters within the us-ascii set, there is no problem, but as soon as I use other characters (like 'é'), it doesn't work. The wrong character is received. With the Ajax debugger I can see that what is sent is wrong (or maybe encoded?). For a 'é', it sends is '%C3%A9'. That what is received as the parameter of the getChoices method. Is there something I can do about that? I am using Wicket 1.3.5 Thanks... -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22668559.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 -- View this message in context: http://www.nabble.com/AutoCompleteTextField-and-accentuated-characters-tp22637037p22672081.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe,
Re: ajax request and reload the datview model
I have faced similar problem recently. The solution was to modify your dataProvider parameters. Instead of passing new dataProvider, playing with the constructors, just load it with new properties. Some pseudocode. final ISortableDataProvider myDataProvider = ... final DataView dataView = new DataView(dataView, myDataProvider) { ... }; final WebMarkupContainer markupContainer = new ... { onBeforeRender() { // modified dataprovider will return different set of data myDataProvider.setParam(someNewValue); } } markupContainer.add(dataView); After I undetstood this - life became muuuch easier in many scenarios. This may be onvoked in many places. After pressing a button, reloading fragment of the page with ajax, ... Best regards, Dariusz Wojtas On Tue, Mar 24, 2009 at 3:58 PM, fachhoch fachh...@gmail.com wrote: I have a dataview in my page , a delete or add action should repaint or rerender the dataview , to acheieve this I am adding the dataview container to AjaxRequestTarget, the method populateItem of dataview gets called but not the constructor , the constructor loads the data from database , so any change to my database is not reflecting in the dataview becasue its not reloading the data , so please suggest me how can i tell the dataview component to reload the data ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: newbie question: HTTP 404 on the quickstart project
Have you tried going to http://localhost:8081/quickstart ? or simply http://localhost:8081 ? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:09 PM, Chenini, Mohamed mchen...@geico.comwrote: Hi, I setup the quickstart project using the imbedded jetty server and started the jetty server from inside Eclipse (Right-click on src/main/java and then click on Run as Java Application But when I enter on the browser (IE) this URL: http://localhost:8081/QuickStart I got this error: HTTP ERROR: 404 NOT_FOUND RequestURI=/QuickStart I can send pieces of the code I am using if necessary to help determine what is wrong. Thanks, Mohamed This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message.
RE: newbie question: HTTP 404 on the quickstart project
Launching http://localhost:8081 produces this output: Wicket Quickstart Archetype Homepage If you see this message wicket is properly configured and running The jetty server is started and the console log shows this: INFO - WebApplication - [WicketApplication] Started Wicket version 1.4-rc2 in development mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** INFO - log- Started socketconnec...@0.0.0.0:8081 The Start.java code is as follows: mport org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.webapp.WebAppContext; public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8081); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server); bb.setContextPath(/); bb.setWar(src/main/webapp); // START JMX SERVER // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer); // server.getContainer().addEventListener(mBeanContainer); // mBeanContainer.start(); server.addHandler(bb); try { System.out.println( STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP); server.start(); System.in.read(); System.out.println( STOPPING EMBEDDED JETTY SERVER); // while (System.in.available() == 0) { // Thread.sleep(5000); // } server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(100); } } } -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:23 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Try http://localhost:8080 and http://localhost:8081 The answer really will be in Start.java - see what port it is on and where the app is mounted. Then make that into a URL. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:19 PM, Chenini, Mohamed mchen...@geico.comwrote: I tried http://localhost:8081/quickstart And the content of web.xml is: filter filter-namewicket.QuickStart/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.mycompany.app.WicketApplication/param-value /init-param /filter filter-mapping filter-namewicket.QuickStart/filter-name url-pattern/*/url-pattern /filter-mapping -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:17 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Have you tried going to http://localhost:8081/quickstart ? or simply http://localhost:8081 ? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:09 PM, Chenini, Mohamed mchen...@geico.comwrote: Hi, I setup the quickstart project using the imbedded jetty server and started the jetty server from inside Eclipse (Right-click on src/main/java and then click on Run as Java Application But when I enter on the browser (IE) this URL: http://localhost:8081/QuickStart I got this error: HTTP ERROR: 404 NOT_FOUND RequestURI=/QuickStart I can send pieces of the code I am using if necessary to help determine what is wrong. Thanks, Mohamed This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient,
Re: newbie question: HTTP 404 on the quickstart project
Okay - you found it. What's the question? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:28 PM, Chenini, Mohamed mchen...@geico.comwrote: Launching http://localhost:8081 produces this output: Wicket Quickstart Archetype Homepage If you see this message wicket is properly configured and running The jetty server is started and the console log shows this: INFO - WebApplication - [WicketApplication] Started Wicket version 1.4-rc2 in development mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** INFO - log- Started socketconnec...@0.0.0.0:8081 The Start.java code is as follows: mport org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.webapp.WebAppContext; public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8081); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server); bb.setContextPath(/); bb.setWar(src/main/webapp); // START JMX SERVER // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer); // server.getContainer().addEventListener(mBeanContainer); // mBeanContainer.start(); server.addHandler(bb); try { System.out.println( STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP); server.start(); System.in.read(); System.out.println( STOPPING EMBEDDED JETTY SERVER); // while (System.in.available() == 0) { // Thread.sleep(5000); // } server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(100); } } } -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:23 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Try http://localhost:8080 and http://localhost:8081 The answer really will be in Start.java - see what port it is on and where the app is mounted. Then make that into a URL. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:19 PM, Chenini, Mohamed mchen...@geico.comwrote: I tried http://localhost:8081/quickstart And the content of web.xml is: filter filter-namewicket.QuickStart/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.mycompany.app.WicketApplication/param-value /init-param /filter filter-mapping filter-namewicket.QuickStart/filter-name url-pattern/*/url-pattern /filter-mapping -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:17 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Have you tried going to http://localhost:8081/quickstart ? or simply http://localhost:8081 ? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:09 PM, Chenini, Mohamed mchen...@geico.comwrote: Hi, I setup the quickstart project using the imbedded jetty server and started the jetty server from inside Eclipse (Right-click on src/main/java and then click on Run as Java Application But when I enter on the browser (IE) this URL: http://localhost:8081/QuickStart I got this error: HTTP ERROR: 404 NOT_FOUND RequestURI=/QuickStart I can send pieces of the code I am using if necessary to help determine what is wrong. Thanks, Mohamed This email/fax message is for the
RE: newbie question: HTTP 404 on the quickstart project
Why URL http://localhost:8081/quickstart Results on this error: HTTP ERROR: 404 NOT_FOUND RequestURI=/QuickStart While jetty-config.xml has this entry: Call name=addWebApplication Arg/QuickStart/Arg Argsrc/webapp/Arg /Call -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:30 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Okay - you found it. What's the question? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:28 PM, Chenini, Mohamed mchen...@geico.comwrote: Launching http://localhost:8081 produces this output: Wicket Quickstart Archetype Homepage If you see this message wicket is properly configured and running The jetty server is started and the console log shows this: INFO - WebApplication - [WicketApplication] Started Wicket version 1.4-rc2 in development mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** INFO - log- Started socketconnec...@0.0.0.0:8081 The Start.java code is as follows: mport org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.webapp.WebAppContext; public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8081); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server); bb.setContextPath(/); bb.setWar(src/main/webapp); // START JMX SERVER // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer); // server.getContainer().addEventListener(mBeanContainer); // mBeanContainer.start(); server.addHandler(bb); try { System.out.println( STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP); server.start(); System.in.read(); System.out.println( STOPPING EMBEDDED JETTY SERVER); // while (System.in.available() == 0) { // Thread.sleep(5000); // } server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(100); } } } -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:23 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Try http://localhost:8080 and http://localhost:8081 The answer really will be in Start.java - see what port it is on and where the app is mounted. Then make that into a URL. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:19 PM, Chenini, Mohamed mchen...@geico.comwrote: I tried http://localhost:8081/quickstart And the content of web.xml is: filter filter-namewicket.QuickStart/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.mycompany.app.WicketApplication/param-value /init-param /filter filter-mapping filter-namewicket.QuickStart/filter-name url-pattern/*/url-pattern /filter-mapping -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:17 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Have you tried going to http://localhost:8081/quickstart ? or simply http://localhost:8081 ? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:09 PM, Chenini, Mohamed mchen...@geico.comwrote: Hi, I setup the quickstart project using the imbedded jetty server and started the jetty server from
Re: newbie question: HTTP 404 on the quickstart project
Because you're not using jetty-config.xml - look at Start.java - you are mounting the app on / WebAppContext bb = new WebAppContext(); bb.setServer(server); bb.setContextPath(/); bb.setWar(src/main/webapp); -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:41 PM, Chenini, Mohamed mchen...@geico.comwrote: Why URL http://localhost:8081/quickstart Results on this error: HTTP ERROR: 404 NOT_FOUND RequestURI=/QuickStart While jetty-config.xml has this entry: Call name=addWebApplication Arg/QuickStart/Arg Argsrc/webapp/Arg /Call -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:30 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Okay - you found it. What's the question? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:28 PM, Chenini, Mohamed mchen...@geico.comwrote: Launching http://localhost:8081 produces this output: Wicket Quickstart Archetype Homepage If you see this message wicket is properly configured and running The jetty server is started and the console log shows this: INFO - WebApplication - [WicketApplication] Started Wicket version 1.4-rc2 in development mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** INFO - log- Started socketconnec...@0.0.0.0:8081 The Start.java code is as follows: mport org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.webapp.WebAppContext; public class Start { public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); // Set some timeout options to make debugging easier. connector.setMaxIdleTime(1000 * 60 * 60); connector.setSoLingerTime(-1); connector.setPort(8081); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server); bb.setContextPath(/); bb.setWar(src/main/webapp); // START JMX SERVER // MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); // MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer); // server.getContainer().addEventListener(mBeanContainer); // mBeanContainer.start(); server.addHandler(bb); try { System.out.println( STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP); server.start(); System.in.read(); System.out.println( STOPPING EMBEDDED JETTY SERVER); // while (System.in.available() == 0) { // Thread.sleep(5000); // } server.stop(); server.join(); } catch (Exception e) { e.printStackTrace(); System.exit(100); } } } -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, March 24, 2009 4:23 PM To: users@wicket.apache.org Subject: Re: newbie question: HTTP 404 on the quickstart project Try http://localhost:8080 and http://localhost:8081 The answer really will be in Start.java - see what port it is on and where the app is mounted. Then make that into a URL. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 3:19 PM, Chenini, Mohamed mchen...@geico.comwrote: I tried http://localhost:8081/quickstart And the content of web.xml is: filter filter-namewicket.QuickStart/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.mycompany.app.WicketApplication/param-value /init-param /filter filter-mapping filter-namewicket.QuickStart/filter-name url-pattern/*/url-pattern /filter-mapping -Original Message- From: Jeremy Thomerson
Looking for a book on the jetty server
Hi, Is there a good book on the jetty server to learn more on it? Since Wicket users seems to use Jetty as the Servlet/Web container. Thanks, Mohamed This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message.
Re: Palette and Require Validator
Here's what I do to have the Palette required : Palette palette = new Palette(...) { @Override protected Recorder newRecorderComponent() { Recorder rec = super.newRecorderComponent(); rec.setRequired(true); return rec; } }; -- View this message in context: http://www.nabble.com/Palette-and-Require-Validator-tp16348401p22690814.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: Wicket Meetup Tonight in Amsterdam!
So true! So true! Can someone tell me what the surprise was afterwards? ;-) I'll still be surprised on account of not knowing what it was since Seattle is a bit too far from Amsterdam. Darn, I kinda miss Holland right now... jon Linda van der Pal wrote: You'll just have to wait for them to surprise you! ;) Daan van Etten wrote: What's the surprise?! I'm very curious now, can't wait! See you all tonight... Regards, Daan van Etten Op 24 mrt 2009, om 10:22 heeft Martijn Dashorst het volgende geschreven: The Apache Wicket Meetup in Amsterdam tonight (24 March) has grown considerably: over 70 people have already registered! Our program is still growing and just this morning we got an additional presentation! The Meetup is free thanks to our generous sponsors: - Hippo (http://onehippo.com) - Func (http://func.nl) - Topicus (http://topicus.nl) You can still join us between 19:00 and 22:00 in the Moevenpick hotel in Amsterdam. Register for free here: https://spreadsheets.google.com/viewform?formkey=cDFlMTdSV3dKT1lkYUlVa2lWUFdkQXc6MA Route to the venue: http://maps.google.com/maps?client=safarirls=en-usoe=UTF-8um=1ie=UTF-8cid=0,0,16474381925794425644fb=1split=1dq=moevenpick+hotel+amsterdam+piet+heinkadedaddr=Piet+Heinkade+11,+1019+BR+Amsterdam,+Netherlandsgeocode=10995011565374881002,52.378048,4.914107ei=e5fISb-PIsS4-Qb1_tGZAwsa=Xoi=local_resultresnum=1ct=directions-to Program: - Introduction to Wicket - Wicket Scala - Surprise - Wicket JDave - Automated integration testing for Wicket apps - Wicket DB4O - Getting your app production ready and in production Of course there is room for questions to the core team (Timo, Johan and Martijn are present), getting your book signed or just have a beer. See you tonight! -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.25/2019 - Release Date: 03/23/09 18:51:00 - 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/Wicket-Meetup-Tonight-in-Amsterdam%21-tp22676632p22691202.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
deploy:deploy
Is there a way to set the timeout for the deploy plugin? I seem to suffer from a very slow connection to my target server, and it keeps timing out. I need to set the time out to about 2 minutes :-/ - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22693871.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: deploy:deploy timeout
apologies for the half assed title - must have been distracted Antony Stubbs wrote: Is there a way to set the timeout for the deploy plugin? I seem to suffer from a very slow connection to my target server, and it keeps timing out. I need to set the time out to about 2 minutes :-/ - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22694130.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: deploy:deploy timeout
Have you tried posting this to a maven list? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 9:31 PM, Antony Stubbs antony.stu...@gmail.comwrote: apologies for the half assed title - must have been distracted Antony Stubbs wrote: Is there a way to set the timeout for the deploy plugin? I seem to suffer from a very slow connection to my target server, and it keeps timing out. I need to set the time out to about 2 minutes :-/ - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22694130.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: deploy:deploy timeout
lol omg i really am half asleep. Jeremy Thomerson-5 wrote: Have you tried posting this to a maven list? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Mar 24, 2009 at 9:31 PM, Antony Stubbs antony.stu...@gmail.comwrote: apologies for the half assed title - must have been distracted Antony Stubbs wrote: Is there a way to set the timeout for the deploy plugin? I seem to suffer from a very slow connection to my target server, and it keeps timing out. I need to set the time out to about 2 minutes :-/ - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22694130.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 - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22694553.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