Tino Schnittke created TOBAGO-1971:
--------------------------------------
Summary: Toggle for tc:operation
Key: TOBAGO-1971
URL: https://issues.apache.org/jira/browse/TOBAGO-1971
Project: MyFaces Tobago
Issue Type: Improvement
Components: Demo, Facelets
Affects Versions: 4.4.0, 5.0.0
Reporter: Tino Schnittke
It would be nice to have a toggle option using *tc:operation* to show or hide a
panel with buttons.
{code:java}
// Example:
...
<tc:button label="Hide" immediate="false" rendered="#{cc.attrs.collapsible}"
omit="true">
<tc:operation name="hide" for="panel"/>
</tc:button>
<tc:button label="Show" immediate="false" rendered="#{cc.attrs.collapsible}"
omit="true">
<tc:operation name="show" for="panel"/>
</tc:button>
<tc:panel collapsedMode="hidden" collapsed="true" id="panel">
...{code}
With the toggle option one could use only one button instead of two.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)