Validate with info messages, instead of errors

2010-02-25 Thread espen . pedersen
Hi all! I'm Looking for a way to perform validation, but print the messages as INFO (with Ajax), instead of ERRORs. I'd like to have a combination of error and info validators. An error will prevent the user from submitting the form, the info message will give the user a warning/info message.

Ad: Re: Validate with info messages, instead of errors

2010-02-25 Thread espen . pedersen
Hmm .. you're probably right about your first statement. I still have some issues with adapting MaximumValidator as it does not give access to the FormComponent that has this validator attached. So as far as I can see I have to send the component in as a parameter, which I'd like to avoid.

Generic solution for tabindex?

2010-03-10 Thread espen . pedersen
Hi! Is use a lot of panels on my pages and need to be able to dynamically set the tabindex attribute on the FormComponents contained in the panels, so that when I reuse them in differenet page compositions the tabindex will be correct (top-to-bottom). Any good ideas out there on how this could

Ad: Re: Generic solution for tabindex?

2010-03-11 Thread espen . pedersen
Thanks a lot Scott :) I've been thinking of something similar, but I don't like the idea of subclassing every component, that needs to be indexed. I've been playing with the thought of going through the components on a page and modify / add the tabindex attribute on the components in the page.