[richfaces-issues] [JBoss JIRA] (RF-13293) accordion: JS API: bugs of function switchTo()
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Oct 30 12:24:01 EDT 2013
[ https://issues.jboss.org/browse/RF-13293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-13293:
-------------------------------
Fix Version/s: 4.5-Tracking
> accordion: JS API: bugs of function switchTo()
> ----------------------------------------------
>
> Key: RF-13293
> URL: https://issues.jboss.org/browse/RF-13293
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-output
> Affects Versions: 4.3.4, 5.0.0.Alpha1
> Reporter: Jiří Štefek
> Fix For: 4.5-Tracking
>
>
> Bug #1 -- @cycledSwitching
> Cannot switch to next item, when there is a disabled item in the way when @cycledSwitching=false.
> E.g.:When you use function _switchTo(nextItem())_
> * it switches to next item, but
> ** if you use @cycledSwitching=false, then it cannot switch to an item after a disabled item.
> ** if you use @cycledSwitching=true, then it switches to next available item after a disabled item (plus it can cycle through items from beginning).
> ----
> Bug #2 -- result of function _switchTo()_ can be used without params
> Function _switchTo_ can be used without parameters and this behaviour is undocumented. When you use it without parameters (or null) it simply switches to next item.
> The catch: When you use _switchTo(previousItem())_ , you use @cycledSwitching=false and you have first item active, then it switches to next item instead of doing nothing (the _previousItem()_ returns null).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list