I prefer displaying the original input, rather than the filtered value. Seems like a single general 'Invalid Email Address' error message should suffice; telling a user about their DNS entry because of a typo would just be like talking a foreign language?
On Thu, Nov 15, 2012 at 8:59 AM, Andreas Möller <a...@softe.is> wrote: > Hello Matthew, > > > > I understand what you're getting at -- as I mentioned in my comment on > > the gist, that's how I originally coded it. However, the feedback I > > received then (after the initial release in beta4) was that this > > situation was more confusing to end users. > > > > I can definitely see both sides; I'm just not sure how we can > > accommodate both. > > It seems like I would have to remove filters that > > * trim > * strip tags > * strip newlines > > to make it work half the way I'm used to from ZF1. > > Seems, though, like this is more an issue out of the scope of the > framework, as it's connected with user experience issues, isn't it? > > > You can override this behavior by providing your own view helpers at > > this stage -- so if it's important to you, you can definitely make this > > happen inside your application. > > > > As for the framework, we *may* be able to provide a flag in the > > AbstractHelper in the form component that would allow toggling this, > > though it would likely require changes to each of the helpers to honor > > that flag. > > Sounds like a great solution to me. > > > Anybody else want to throw in some ideas or feedback on this issue? > > Interested to hear more about this. > > > Best regards, > > Andreas > -- > List: fw-general@lists.zend.com > Info: http://framework.zend.com/archives > Unsubscribe: fw-general-unsubscr...@lists.zend.com > > > -- Greg