p:datatable value method with param

Posted: June 25, 2012 in web

from
http://forum.primefaces.org/viewtopic.php?t=22400

“i have seen an error in data exporter code. Currently following constructs lead to an error and will not be exported:
Code:

Problem is in ComponentUtils.java (getConverter(FacesContext context, ValueHolder component)):
Code:
Class valueType = expr.getType(context.getELContext());

This line only works, if the value comes from a bean field. If EL has a function like mentioned above, it fails with a PropertyNotFoundException.
This can be easily fixed by changing this implemenation to the following line:
Code:
Class valueType = expr.getExpectedType();”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s