You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Hudson (JIRA)" <de...@myfaces.apache.org> on 2018/04/27 08:40:00 UTC
[jira] [Commented] (TOBAGO-1895) Attributes of segment layout may
not be read correctly if using core tags
[ https://issues.apache.org/jira/browse/TOBAGO-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16456114#comment-16456114 ]
Hudson commented on TOBAGO-1895:
--------------------------------
SUCCESS: Integrated in Jenkins build Tobago Trunk #1408 (See [https://builds.apache.org/job/Tobago%20Trunk/1408/])
TOBAGO-1895 Attributes of segment layout may not be read correctly if (hnoeth: rev 353cfc5b64463780f9b8da3867c8278e932918ef)
* (edit) tobago-core/src/main/java/org/apache/myfaces/tobago/layout/MeasureList.java
> Attributes of segment layout may not be read correctly if using core tags
> -------------------------------------------------------------------------
>
> Key: TOBAGO-1895
> URL: https://issues.apache.org/jira/browse/TOBAGO-1895
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 4.2.0
> Reporter: Henning Noeth
> Assignee: Henning Noeth
> Priority: Major
> Fix For: 4.2.1
>
>
> Under specific circumstances, segment layout attributes cannot be read.
> This is if core tags are used with an old MyFaces version (like 2.0.2).
> See the following example:
> 1. open the page
> 2. click on tab 2
> 3. click a second time on tab 2
> result: the CSS classes for segment layout are not rendered
>
> {code:xml}<tc:tabGroup switchType="reloadPage" selectedIndex="#{dynamicTabsController.selected}">
> <c:forEach items="#{dynamicTabsController.items}" var="item" varStatus="loopStatus">
> <tc:tab label="#{item}">
> <c:if test="#{dynamicTabsController.selected == loopStatus.index}">
> <tc:segmentLayout small="6seg">
> <tc:out label="Item:" value="#{item}"/>
> <tc:out label="Out 1" value="qwe"/>
> <tc:out label="Out 2" value="asdf"/>
> <tc:out label="Out 3" value="yxcv"/>
> </tc:segmentLayout>
> </c:if>
> </tc:tab>
> </c:forEach>
> </tc:tabGroup>{code}
> {code:java}@SessionScoped
> @Named
> public class DynamicTabsController implements Serializable {
> private static final long serialVersionUID = 1L;
> private List<String> akten = new ArrayList<>();
> private int selected = 0;
> public DynamicTabsController() {
> akten.add("Tab 1");
> akten.add("Tab 2");
> }
> public List<String> getItems() {
> return this.akten;
> }
> public int getSelected() {
> return this.selected;
> }
> public void setSelected(int selected) {
> this.selected = selected;
> }
> }{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)