So, the company where I am working at the moment has made the move into a Java based web environment. Lots of reasons and I'm not going into them here as this is a personal blog (despite the technical nature) and I'm not going to discuss work decisions or anything that may be confidential in nature of course.
But - I have a blog, I'm learning a lot of new stuff and it makes sense to switch the focus of the blog to whatever I'm using/doing/learning rather than a single focus on Symfony as I originally planned.
So watch out for a lot of new posts as I go... most of what I learn will posted here for my future reference
Showing posts with label choice. Show all posts
Showing posts with label choice. Show all posts
Friday, 23 April 2010
Monday, 18 January 2010
Forms & Forms
Two little snippets this morning (been busy already).
Firstly, form widget errors and I18n...
Brilliant stuff - if you add the error string you've defined in your form class into your I18n catalogue, it'll automatically translate. No further work needed!
Secondly - and this a little pointer :) I had updated a choice widget to set a default value. However, I noticed that even though the HTML was showing it as selected, Firefox was still showing the previous 'default' - the first option in my alphabetical list.
Clearing cookies for the site (presumably so a new session was generated) resolved the issue and displayed the expected default item.
Firstly, form widget errors and I18n...
Brilliant stuff - if you add the error string you've defined in your form class into your I18n catalogue, it'll automatically translate. No further work needed!
Secondly - and this a little pointer :) I had updated a choice widget to set a default value. However, I noticed that even though the HTML was showing it as selected, Firefox was still showing the previous 'default' - the first option in my alphabetical list.
Clearing cookies for the site (presumably so a new session was generated) resolved the issue and displayed the expected default item.
Subscribe to:
Posts (Atom)