首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Primefaces rowExpansion在primefaces 3.5中不起作用

Primefaces rowExpansion在primefaces 3.5中不起作用
EN

Stack Overflow用户
提问于 2013-04-09 19:30:48
回答 1查看 786关注 0票数 1

我尝试在我的数据表中使用p:rowToggler和p:rowExpansion。它在primefaces 3.2上运行良好,最近我升级到了primefaces 3.5。从那时起,它就不起作用了。以下是包含roToggler和rowExpansion的数据表

代码语言:javascript
运行
复制
<p:datatable value="#{myBean.valueList}">
<p:column>
<p:rowToggler/>
</p:column>
<p:rowExpansion>
...
</p:rowExpansion>
</p:datatable>

任何帮助都将不胜感激

谢谢

Praveen

EN

回答 1

Stack Overflow用户

发布于 2021-03-26 21:27:10

请尝试如下所示:

代码语言:javascript
运行
复制
<p:dataTable var="education" 
             value="#{backingBean.schoolList}" 
             reflow="true"
             paginator="true" 
             sortMode="multiple" 
             emptyMessage="No records found."
             rows="#{backingBean.rowsPerPage}">
                            
            <p:column headerText="Details" styleClass="Wid10">
                <p:rowToggler expandLabel="Show" collapseLabel="Hide" icon="ui-icon-close"/>
            </p:column>
            
            <p:column headerText="Center">
                <h:outputText value="#{education.centerName}"/>
            </p:column>
            
            <p:column headerText="Address">
                <h:outputText value="#{education.addr}" />
            </p:column>
                        
            <p:rowExpansion>
                <p:outputLabel value="Course: " styleClass="FontBold" />
                <BR />
                <h:outputText value="#{education.course}" />
                <Br />
                <p:outputLabel value="Details: " styleClass="FontBold" />
                <BR />
                    <h:outputText value="#{education.details}" />
            </p:rowExpansion>
        </p:dataTable>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15900694

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档