Hi,
I'm trying stripes and I want to use in a new project that we have to
develop.
Well, I found a little problem with the focus fields.
We use a layout with a certain number of tabs (i.e.: a list in a tab,
and a filter in another tab). All the tabs are in the same page but
obviously we hidden all except the one that the user is looking at.
The problem is when we have an error in a tab that is not the default
tab, the focus is "not seted" in that filed (is setted but its hidden).
I don't find any form to change the page, so what a did its extends the
FormTag and do this:
public void registerField(InputTagSupport tag) {
super.registerField(tag);
changeTab(tag);
}
Is not an elegant solution, but it's the best to not change a lot of
code.
I think that maybe, if we add the method public boolean getFocus in the
InputTagSupport, the users can solve this problem in his
TagErrorRenderer.
Need a little more thinking my idea, but in my opinion Stripes need
this:
"A way to do more actions when an error occurs, ie add a page javascript
in the page or a tag".
Maybe now exists but I didn't found it.
When I finish what I'm doing at work, I'll try to help with this
problem.
Greetings
Juan
PD: Sorry if I sound rude, but I have a little lack of English
vocabulary, is not my intention to be rude or imperative.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development