I am still having problems figuring out how the activeIndex in the tabView actually works.
I was under the assumption that it worked like other component properties,
and that when bound to a backing bean property, changes in the backing bean would update the activeIndex for the tab,
and that when the tab index is manually changed, the backing bean property would be updated as well.
This is how all the other component properties appear to behave when attached to a backing bean property.
Now, I am running into the issue that if I change the activeIndex in my tabView, navigate to a different page, and return to the page with the tabVIew,
the activeIndex remains what to what it was last selected.
This happens even if I reset the activeIndex in the backing bean before the page is redrawn.
I use the beforePhase() method of the view to do my initial page setup before the page is redrawn.
This seems to work for everything so far except the activeIndex of the tabView.
How can I reset the activeIndex to it's default state after navigating away to a different page?
This has been a real PITA for me and is very frustrating.
I do not understand why this one component property appears to behave in such an unfirendly manner.
Is this a bug?
If not, is there some way that it might be changed in the future to behave in a more intuitive manner?
Thanks
Tab View ActiveIndex behavior
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Hi,
This is not a bug, only editableValueHolder components update their bound values which is usually the value attribute. So most attributes of a component are readonly.
However in this case, I think you are right that activeIndex should be both read-write kind of an attribute.
Please create a feature request.
Thanks.
This is not a bug, only editableValueHolder components update their bound values which is usually the value attribute. So most attributes of a component are readonly.
However in this case, I think you are right that activeIndex should be both read-write kind of an attribute.
Please create a feature request.
Thanks.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
You need to select Type-NewFeature tag but it will already be automatically selected when you create a new issue;
http://code.google.com/p/primefaces/issues/list
http://code.google.com/p/primefaces/issues/list
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This enhancement is implemented now.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests