[
https://issues.apache.org/jira/browse/EMPIREDB-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16952548#comment-16952548
]
Jan Glaubitz commented on EMPIREDB-307:
---------------------------------------
Hi Rainer,
I think this introduced a bug.
- I have a page with a d:record
- this record is a record of table A
- I use a few d:controls in that record tag
- I have a data table with data from table B
- I use a few d:value tags with column="db.B.COL" value="#{item.col}"
- After that I have a few e:value tags - again for table A, eg e:value
column="#{db.A.FOO}" (no record=)
Until now that worked - the record was obtained from the record tag. Now I got
the error:
{code:java}
java.lang.NoSuchMethodException: Unknown property 'foo' on class 'class
ch....TableBListEntry'
at
org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1322)
at
org.apache.empire.jsf2.utils.TagEncodingHelper.getBeanPropertyValue(TagEncodingHelper.java:1079)
at
org.apache.empire.jsf2.utils.TagEncodingHelper.getDataValue(TagEncodingHelper.java:686)
at
org.apache.empire.jsf2.utils.TagEncodingHelper$ValueInfoImpl.getValue(TagEncodingHelper.java:218)
at
org.apache.empire.jsf2.controls.InputControl.formatValue(InputControl.java:688)
at
org.apache.empire.jsf2.controls.InputControl.renderValue(InputControl.java:259)
at
org.apache.empire.jsf2.controls.InputControl.renderValue(InputControl.java:242)
at
org.apache.empire.jsf2.components.ValueTag.renderControlValue(ValueTag.java:97)
at
org.apache.empire.jsf2.components.ValueTag.encodeBegin(ValueTag.java:67)
at
javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:527)
{code}
It looks like it wants to use the value from the datatable, not from the record
A workaround is to use record="" in my value. But I don't think it should be
like this?
Can you take a look at that?
> Allow overrides of TagEncodingHelper class
> ------------------------------------------
>
> Key: EMPIREDB-307
> URL: https://issues.apache.org/jira/browse/EMPIREDB-307
> Project: Empire-DB
> Issue Type: Improvement
> Components: JSF2 Extensions
> Reporter: Rainer Döbele
> Assignee: Rainer Döbele
> Priority: Major
>
> {color:#172b4d}The TagEncodingHelper class is used by the empire-db component
> tags for various common tasks. However this can currently not be overridden.
> {color:#172b4d}In {color}order to allow overrides of TagEncodingHelper
> instatiation should be perfromed by an customizable factory class.{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)