[
https://issues.jboss.org/browse/RF-13293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiří Štefek updated RF-13293:
-----------------------------
Description:
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).
was:
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).
> 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
>
> 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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues