Hi,
sorry for bothering you. It was my fault. When I set the state attribute
for tc:tabgroup (state="#{controller.selectedTab}"), everything works
fine. When I enter an invalid value in an input field on a tab, Tobago
blocks the other tabs. So it's impossible to leave the tab with the
invalid value. This is want I want.
Regards
Helmut
>Hi,
>
>I've set a TabChangeListener for a tabGroup, but it is not invoked,
>when the tag I'm leaving contains an invalid input field, for example
>a numerical field with an invalid number entered. When the entered
>data is valid, the TabChangeListener is invoked. Is this a bug or a
>feature?
>
>I want to use the TabChangeListener to switch back to the tab, when
>the leaving tab contains invalid data, so the user can correct it.
>Is there an other way to switch back to the tab or block the user from
>leaving the invalid tab?
>
>Btw. when I switch back manually to the invalid tag, the invalid input
>field has no red border.
>
>The tabGroup has switchType "reloadTab". I'm using Tobago 1.0.9.
>
>Thanks for any help
>Helmut