Re: [Stripes-users] Streaming layouts (again)
On 29 Sep 2010, at 20:40, Ben Gunter wrote: I believe I finally have the streaming layout code working. I'm asking *all* of you to get the latest snapshot from the Sonatype snapshots repo and try it out. If you see any problems with what it outputs, please let me know on this thread. There will be minor differences, mostly extra whitespace that the old stuff generated gets swallowed by the new stuff. Let me know if anything is totally broken. If you're not using Maven, you can get the latest snapshot here: http://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/stripes/stripes/1.5.4-SNAPSHOT/ This is the last major roadblock to be cleared before I can release 1.5.4. The sooner I get confirmation that it works, the sooner that happens. -Ben Hi Ben I just downloaded the snapshot jar to try out the new layouts stuff. I have fairly simple layouts, but some with some nesting and they all appeared to work fine. I'll try and get some more testing done tomorrow for a more in-depth test but so far it's a thumbs-up from me. Many thanks for your work in getting these features in. Cheers, Stephen -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] Wizard forms and redirecting
Hi, I have a flow which creates a new serviceRequest. This request relates to a user so part of the flow checks if a user is logged-in. If so, it's all good and we're done. However if not that leaves two possibilities - the user has an account but isn't logged-in; or the user doesn't have an account and needs to register. I already have dedicated action beans to handle these cases. Can I use these beans to complete the process and then jump back into the wizard? As I understand it Stripes keeps track of populated fields with hidden fields which will presumably be lost when I redirect out of the wizard. What's the best Stripesy way of doing this? Cheers -- Stephen -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] http://www.stripesframework.org/
I just went to Godaddy and *think* I've managed to buy it. If I have it keeps it out of the hands of some dodgy domain dealer and I can pass it back to the rightful owners. On 18 Nov 2009, at 11:26, Cosmin Marginean wrote: It doesn't really make sense Expiration Date:16-Nov-2010 14:10:38 UTC But: Registrant Name:Expired Domain So the question goes out to Tim or Freddy: Is this the end of stripes or just a stupid domain dealer? And the next question is: Whats the ip of the web site server? And the last one: Can someone fix this with a temporary subdomain? On Wed, Nov 18, 2009 at 12:15 PM, Alan Burlison alan.burli...@sun.com wrote: Richard Hauswald wrote: the domain gets no longer resolved. Wtf is going on? I see: Adult Warning This Website contains sexually-oriented adult content which may include visual images and verbal descriptions of nude adults, adults engaging in sexual acts, and other audio and visual materials of a sexually- explicit nature. Permission to enter this Website and to view and download its contents is strictly limited only to consenting adults who affirm that the following conditions apply: -- Alan Burlison -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users -- Stephen Nelson -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] http://www.stripesframework.org/
On 18 Nov 2009, at 11:40, Freddy Daoud wrote: Hey, So the question goes out to Tim or Freddy: Is this the end of stripes or just a stupid domain dealer? And the next question is: Whats the ip of the web site server? And the last one: Can someone fix this with a temporary subdomain? Not the end of Stripes :-) As for the other questions, I believe it was Aaron who generously offered to get the stripesframework.org domain. Perhaps it was not on auto- renew :( but he may have the answer to the last two questions. With that information I'm sure we can temporarily use another domain. Cheers, Freddy http://www.stripesbook.com Hi Freddy I've just bought stripesframework.com If you give me the host settings I can get this setup for the interim. -- Stephen Nelson -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] http://www.stripesframework.org/
On Wed, Nov 18, 2009 at 1:36 PM, Ben Gunter gunter...@gmail.com wrote: Sorry, everybody. I own the stripesframework.org domain and accidentally let it expire. Yahoo's awesome spam filter has been sending the notifications from the registrar to my spam box. I get so much spam at that address that I don't bother looking in there anymore. Bad policy, apparently. Luckily there's an oops period before you really lose the domain so I just renewed for another year. All will be well once the DNS cache issues are worked out. Thanks for pointing out the problem and a special thanks to those who stepped up with an alternate solution. Glad to know you're all paying attention ;) -Ben Hi Ben, Glad it hasn't been lost! If you want I can point the .com to the same place. Do you have the IP address for the site and I'll point it? Cheers Stephen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Where to put the logic?
On 12 Nov 2009, at 10:33, KR wrote: Hi Stephen, I do something similar as Dan and I keep the domain data and logic together in the model objects. My impression is that keeping data and logic apart is often just a legacy architecture that was introduced in the time before EJB3 and JPA (but often still used with EJB3 and JPA). Before EJB3 the persistency layer was so separate and limited that it was a technical requirement to do it this way. But that's no longer the case as JPA comes very close to making your plain old objects (POJO's) persistent. So this way of working is now much closer to regular object oriented design. This kind of design of course integrates the model and database design. The database schema becomes part of you're projects development. That means that this kind of architecture does not seem to work well with (static of external) legacy database models that are not part of you're project. Regards, Karen Hi Karen, I think we agree here - I'm advocating keeping the domain data and logic in the same class for the reasons you mentioned. I've only done a small amount of EJB3 in my past and I can attest to the lack of features it provided. Such that, entity beans were generally ignored in place of session beans and basically value objects containing data. So the present day technologies such as JPA are so much better - it's actually fun now! Cheers, -- Stephen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Where to put the logic?
On 9 Nov 2009, at 19:04, Dan King wrote: Hi, I'm in the process of learning stripes and to that end I'm putting together a simple module, but I'm stuck on where to put my business logic. If anyone can point me in the right direction I'd appreciate it. Currently I have: 1. A controller that receives form information 2. A model that only reflects a database table 3. A DAO that using jpa/hibernate performs a simple select query based on the form information received by the controller. Thanks. -Dan -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users Hi Dan I always try to keep as much domain/business logic in the domain objects themselves. Otherwise you've [probably] gone through the pain of O/R mapping for no tangible benefit. I generally use a service layer for co-ordinating things e.g. calling a service; parsing a result; storing a value in the data layer. It is then very easy to wrap a transactional around it - and even easier if you're using Spring. This kind of architecture is flexible without being overly so and is clearly defined so you know where to go when bug fixing or adding functionality. Regards, -- Stephen -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Stripes 1.5.2 Released
Congrats and thanks for the work of all the devs on this framework. Cheers -- Stephen On Wed, Oct 28, 2009 at 7:33 PM, Ben Gunter gunter...@gmail.com wrote: Version 1.5.2 of Stripes has been released. It is a bug fix release and addresses several issues with Stripes 1.5.1. The full list of bug fixes and enhancements since 1.5.1 can be found here: http://www.stripesframework.org/jira/secure/ReleaseNote.jspa?projectId=1styleName=Htmlversion=10110 You can download the new release here: https://sourceforge.net/projects/stripes/files/ Enjoy. -Ben -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Storing an entity between requests
Hi Aaron, Ben and Grzegorz Thanks for the replies. I think a code snippet may be helpful as I'm probably not explaining what I'm trying to do very well... @DefaultHandler @DontValidate public Resolution view() { ServiceProviderContext sp = getServiceProviderContext(); serviceProvider = getService().getServiceProvider (sp.getServiceProviderId()); return new ForwardResolution(/WEB-INF/jsp/serviceProvider/ editAccount.jsp); } public Resolution update() { ServiceProviderContext sp = getServiceProviderContext(); telephoneNumber.setTelephoneType (TelephoneNumber.TelephoneType.LANDLINE); serviceProvider.addTelephoneNumber(telephoneNumber); ServiceProviderValidationResult result = getService ().updateServiceProvider(serviceProvider); if (result.isValidationSuccessful()) { return new RedirectResolution(/service-providers/ + getServiceProviderDisplayName()); } else { return getContext().getSourcePageResolution(); } } I've taken out some error handling code to cut down the line count. What I'm trying to do is load the entity in the view method, allow the user to modify certain fields in editAccount.jsp and then update these changed fields along with the original unchanged data in the update method. What is happening at the moment, I think, is that no state is persisted across the two requests - that's fine and I don't expect it to. I wonder if there is an built-in way to handle this transient state though? I don't want to re-load the entity before the update method as there is a small possibility that the entity may have already been updated during the users think time and this would result in that update being lost. Many thanks -- Stephen -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Storing an entity between requests
On Wed, Oct 28, 2009 at 1:30 PM, Aaron Porter aa...@mongus.com wrote: Stephen, It sounds like you can accomplish what you're trying to do by marking the ServiceProvider declaration in your ActionBean with @Session from the StripesStuff project. That will save sessionProvider in the HttpSession at the end of each request and restore it at the beginning of subsequent requests. You can get the StripesStuff jar at http://sourceforge.net/projects/stripes-stuff/files/ Aaron Hi Aaron Thanks for the reply. I'll take a look at the Stripes stuff shortly but your description sounds like the functionality I need. Can I also evict it from session when I've completed the update? That way I won't be carrying additional state in the session when it's not required. Many thanks -- Stephen -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] Storing an entity between requests
Hi I've been building my app using Stripes and enjoying the simplicity immensely. I'm now working on some general functionality where an entity is loaded from the database and then displayed to the user; they make changes and then save it back. I have two event methods on my action bean at the moment - view and update. Now what is happening is that the entity loaded when the view method is called isn't present when the update method is called. I've confirmed this by logging the persisted ID value within the update method and this is null. Now, I don't want to reload it again when updating - in case its state has changed in the meantime and would be overwritten. Is there a built- in way to do this that I'm missing? With other frameworks I've put things in the session directly but that seems a dirty thing to do when using Stripes! I have the Prag Prog book on order if it's covered in there but would appreciate a pointer to keep me going until Amazon delivers! Cheers, -- Stephen Nelson -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
Re: [Stripes-users] Mapping to the context root
On Mon, Oct 19, 2009 at 12:23 PM, Freddy Daoud xf2...@fastmail.fm wrote: Grzegorz Krugły g...@... writes: Anyway, I'm really glad I chose Stripes (and bought Your book) -- it keeps amazing me with how well thought it is. Thanks Grzegorz, I'm very happy to hear that! :-) Cheers, Freddy http://www.stripesbook.com Hi I'll go with the index.jsp in development and then use a re-write rule in the web server when deploying the app. This should give the best of both worlds in that case - SEO and minimal setup for development. Thanks everyone for the replies. I will probably get the book too as I always like to be shown the proper way before trying the alternatives! Many thanks Stephen -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users
[Stripes-users] Mapping to the context root
Hello, I'm just beginning development with Stripes having come from Struts2 and Wicket in the past. I have a question which I feel is probably a FAQ but couldn't find it either on the stripes site or with some Google searching. Maybe I missed it though. Anyway I want to map an action to the context root (e.g. /), so that a user browsing www.example.com will run my action. I don't really want a index.jsp doing a redirect so wondered if this had been tackled before. I am using the dynamic mapping filter if that makes any difference. Also just a quick word of thanks to the developers working on this framework. It truly is the best MVC-based framework I have seen in Java so far. Really easy to get going with and doesn't get in your way. Many thanks, -- Stephen Nelson -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users