[richfaces-issues] [JBoss JIRA] (RF-13293) accordion: JS API: bugs of function switchTo()

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Tue Oct 29 05:50:02 EDT 2013


Jiří Štefek created RF-13293:
--------------------------------

             Summary: 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: 5.0.0.Alpha1, 4.3.4
            Reporter: Jiří Štefek


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