Tag-Valueassignment with <tc:column rendered="#{...}" > does not work
---------------------------------------------------------------------
Key: TOBAGO-719
URL: https://issues.apache.org/jira/browse/TOBAGO-719
Project: MyFaces Tobago
Issue Type: Bug
Components: Core
Affects Versions: 1.0.19
Environment: Apache 5.5, Ubuntu Linux 8.04
Reporter: Chrstian Groove
Priority: Critical
Dear Sirs,
i have to implement a dynamic (data driven) column layout of a sheet.
Therefore i started to use JSTL condition, but i faild. Somebody told me,
that this won't work, and i should better use rendered attribit of the
column tag.
But this was a complete flop as the following code may show
(see the first tc:column rendered assignment)
<tc:sheet value="#{dataBean.editSysSheetList}" id="sheet"
columns="1*;1*;1*;1*;1*;1*"
var="rowBean"
state="#{controllerBean.sheetState}"
showHeader="false"
stateChangeListener="#{controllerBean.stateChangeListener}"
selectable="single" >
<tc:column rendered="#{rowBean.notExisting}"
label="#{overviewBundle.selsyslst_lst_systemId}"
id="t_sysStId1"
sortable="true">
<tc:out value="#{rowBean.prAtsAttribute}" id="v_sysStId1"/>
</tc:column>
<tc:column rendered="#{rowBean.onlyForText}"
label="#{overviewBundle.selsyslst_lst_shortSysName}"
id="t_sysStId2"
sortable="true">
<tc:out value="kipp dotter" id="v_sysStId2"/>
</tc:column>
You can enter what you find, #{} does not check its expression.
This example shows an access to a property, that does not exisit.
I would have exprected an exception like method not found, but
nothing happend!
The column-rendered accepts alls #{} and interpretd them as
true. Assignming a static value like true or false will work.
Please help me, this bug is a showstopper for me!
Thanks
groovie
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.