[richfaces-issues] [JBoss JIRA] Created: (RF-9009) switchablePanel's: improve cycled switching

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Fri Jul 30 03:16:49 EDT 2010


switchablePanel's: improve cycled switching
-------------------------------------------

                 Key: RF-9009
                 URL: https://jira.jboss.org/browse/RF-9009
             Project: RichFaces
          Issue Type: Task
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.0.Milestone1
            Reporter: Ilya Shaikovsky
            Assignee: Alex Kolonitsky
             Fix For: 4.0.0.Milestone2


TOGGLE PANEL
1) 
<rich:togglePanel id="panel1">
...
<rich:toggleControl forPanel="panel1"/> 
show works. (successfull switching to the first state from empty one)
2) 
<h:form>
<rich:togglePanel id="panel1" activeItem="item1">
<rich:togglePanelItem name="item1">
<h:outputText value="Item1"/>
</rich:togglePanelItem>
<rich:togglePanelItem name="item2">
<h:outputText value="Item2"/>
</rich:togglePanelItem>
</rich:togglePanel>
</h:form>
<h:commandButton>
<rich:toggleControl forPanel="panel1"/>
</h:commandButton> 
also should works. 

GENERAL NOTES:
switching without next state definition should be performed only till the last item.
probably we need to add cycledSwitching boolean attribute.  if true - switching from the last one should be performed to first if no next item defined at activated control. If need to discuss or postpone - let's create separate task for that.

TAB AND PANEL BAR
switching from JS api without the next state definition should worrks in the same way as for TP from controls without state defined.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list