
attractive, usable web applications
Richard's Blog - Design, coding and life in Japan
Blog Archive: October 2009
Validation methods for non forms in stripes
Submitted by Richard on Wed, 10/14/2009 - 08:22Validations methods in stripes are so handy that I wanted to use them when not validating form criteria, but when checking a login etc which could be used on multiple actions in the controller, without throwing an exception but by forwarding you to an action bean of choice and showing an error message. I used a message instead of an error as errors do seem to be bound more to forms even global errors. Errors were also unavailable on a redirect resolution (but available to a forward resolution to a jsp - but I didn't want that).
Tags:
Clear Up Your Junk!
Submitted by Richard on Tue, 10/13/2009 - 11:30 Doing work for a bunch of different companies and covering their legacy systems even looking back at my own legacy systems, I see a ton of folders and files with "_bak" or the like added to the file name, or even "unused". This creates so much wasted time and effort trying to clean these up, find out why, is it still needed. That is exactly why we need efficient agile practices and version control in place. Test the code, put it in version control, create a test branch if necessary, but for goodness sake stop me having to deal with these stupid bloody things.Tags:
- « first
- ‹ previous
- 1
- 2
- 3
Recent Blog Posts
- Why you should use Rails 3 and not Django 5th Sep 10, 12:28
- Doctrine 2 and why you should use it! 29th Jul 10, 15:23
- How to localize your main blog listing page using Drupal 26th Jun 10, 11:46
- Creating Rails like template helpers in Django 24th Jun 10, 22:01
- Error: No module named messagesdjango.contrib.contenttypes 22nd Jun 10, 22:00