[richfaces-issues] [JBoss JIRA] Resolved: (RF-10867) JS API: switchablePanels: rename a few methods
Jay Balunas (JIRA)
jira-events at lists.jboss.org
Tue Jun 14 17:08:29 EDT 2011
[ https://issues.jboss.org/browse/RF-10867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Balunas resolved RF-10867.
------------------------------
Resolution: Won't Fix
> JS API: switchablePanels: rename a few methods
> ----------------------------------------------
>
> Key: RF-10867
> URL: https://issues.jboss.org/browse/RF-10867
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.0.0.Final
> Reporter: Ilya Shaikovsky
> Fix For: 4.1.0.Milestone1
>
>
> problematic API methods:
> firstItem(), prevItem(), nextItem(), lastItem()
> and description from documentation:
> Switch to and display the first item, the previous item, the next item, or the last item.
> But actually all that methods just returns name of corresponding item. So them do not perform switching but only could be used as a parameter of switchToItem(itemName) method.
> Actually I do not think we need them to be used as parameters as there is more convenient way already:
> tabPanelObject.switchToItem('@last')
> tabPanelObject.switchToItem('@next')
> ...
> But let's keep as option for users and rename to
> getFirstItem(), getPrevItem(), getNextItem(), getLastItem()
> Approved via email discussion.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list