p:datatable value method with param

Posted: June 25, 2012 in web


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

Problem is in ComponentUtils.java (getConverter(FacesContext context, ValueHolder component)):
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:
Class valueType = expr.getExpectedType();”


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s