[richfaces-issues] [JBoss JIRA] Updated: (RF-10525) Items/Tabs are not working when mode/switchType=null in MyFaces

Lukas Fryc (JIRA) jira-events at lists.jboss.org
Tue Feb 15 10:47:13 EST 2011


     [ https://issues.jboss.org/browse/RF-10525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Fryc updated RF-10525:
----------------------------

           Description: 
This is MyFaces-Mojarra compatibility issue.

When following code is defined:

<rich:tabPanel mode="ajax">
<rich:tab mode="" />
<rich:tab />
</rich:tab>

sample works in Mojarra and tabPanel mode is used for first tab.
But in MyFaces, tab panel can't be switched in any way.

This breaks following components either:

* tab
* panelMenuGroup
* panelMenuItem
* accordionMenuItem
* togglePanelItem

I propose to unify behavior in Mojarra way, since it is more comfortable for developers, considering following sample:

<rich:tabPanel mode="ajax">
<rich:tab mode="#{EL}" />
<rich:tab />
</rich:tab>

where #{EL} is evaluated to null - sample stops to work in MyFaces but works in Mojarra.

  was:
This is MyFaces-Mojarra compatibility issue.

When following code is defined:

<rich:tabPanel mode="ajax">
<rich:tab mode="">
</rich:tab>

sample works in Mojarra and tabPanel mode is used for first tab.
But in MyFaces, tab panel can't be switched in any way.

This breaks following components either:

* tab
* panelMenuGroup
* panelMenuItem
* accordionMenuItem
* togglePanelItem

I propose to unify behavior in Mojarra way, since it is more comfortable for developers, considering following sample:

<rich:tabPanel mode="ajax">
<rich:tab mode="#{EL}">
</rich:tab>

where #{EL} is evaluated to null - sample stops to work in MyFaces but works in Mojarra.

    Steps to Reproduce: 
1. http://localhost:8080/metamer/faces/components/richAccordion/simple.xhtml
2. set @mode=null
3. click on Item 2
4. click on Item 1
Mojarra: OK: Item 1 is opened
MyFaces: FAIL: Item 2 stays toggled


> Items/Tabs are not working when mode/switchType=null in MyFaces
> ---------------------------------------------------------------
>
>                 Key: RF-10525
>                 URL: https://issues.jboss.org/browse/RF-10525
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 4.0.0.Milestone6
>         Environment: RichFaces 4.0.0-SNAPSHOT r.21645
> Apache MyFaces 2.0.3
> Apache Tomcat 6.0.29
>            Reporter: Lukas Fryc
>
> This is MyFaces-Mojarra compatibility issue.
> When following code is defined:
> <rich:tabPanel mode="ajax">
> <rich:tab mode="" />
> <rich:tab />
> </rich:tab>
> sample works in Mojarra and tabPanel mode is used for first tab.
> But in MyFaces, tab panel can't be switched in any way.
> This breaks following components either:
> * tab
> * panelMenuGroup
> * panelMenuItem
> * accordionMenuItem
> * togglePanelItem
> I propose to unify behavior in Mojarra way, since it is more comfortable for developers, considering following sample:
> <rich:tabPanel mode="ajax">
> <rich:tab mode="#{EL}" />
> <rich:tab />
> </rich:tab>
> where #{EL} is evaluated to null - sample stops to work in MyFaces but works in Mojarra.

--
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