ColumnsHandler swallows exceptions, hides major rendering issues
----------------------------------------------------------------
Key: RF-6832
URL:
https://jira.jboss.org/jira/browse/RF-6832
Project: RichFaces
Issue Type: Patch
Reporter: Thomas W
The // TODO below has send me on a long search on why columns just did not render in the
table.... A very simple change to either propagate the exception or log as error that will
go a long way....
/*
* (non-Javadoc)
*
* @see org.richfaces.taglib.ComponentHandler#apply(com.sun.facelets.FaceletContext,
* javax.faces.component.UIComponent)
*/
//@Override
public void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, ELException {
IterationContext iterationContext = new IterationContext();
iterationContextLocal.set(iterationContext);
clearOldColumns(ctx.getFacesContext(), parent);
prepare(ctx); // prepare data
try {
while (hasNext()) { // for each
exposeVariables(ctx);
handler.apply(ctx, parent);
next(ctx);
}
} catch (Exception e) {
// TODO: handle exception
} finally {
release();
unExposeVariables(ctx);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira