[ http://jira.andromda.org/browse/JSF-35?page=all ]
Luca Dall'Olio updated JSF-35: ------------------------------ Attachment: Preferences.java.vsl.patch > wrong maxTableRows preferences type cause ClassCastException in jsp > ------------------------------------------------------------------- > > Key: JSF-35 > URL: http://jira.andromda.org/browse/JSF-35 > Project: JSF cartridge > Type: Bug > Reporter: Luca Dall'Olio > Assignee: Chad Brandon > Attachments: Preferences.java.vsl.patch > > This topic is discussed in this forum thread : > http://galaxy.andromda.org/forum/viewtopic.php?p=23460 > using a table to display a list of items generates the following JSF code > (extract): > <af:table allDetailsEnabled="true" var="row" bandingInterval="1" > banding="row" value="#{fmtProfiles}" > rows="#{preferences.maxTableRows}" width="90%"> > When the page is loaded, the following exception is thrown: > Code: > 10:34:16,850 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception > java.lang.ClassCastException: java.lang.String > at > oracle.adf.view.faces.util.ComponentUtils.resolveInteger(ComponentUtils.java:83) > This exception is caused by the > Quote: > rows="#{preferences.maxTableRows}" > attribute in the > Quote: > <af:table ...> > The corresponding bean is by default Preferences.java, generated by the > Preferences.java.vsl velocity template; the generated maxTableRows field has > the wrong type, should be int but it is String. This is the cause of the > exception. By replacing the value with a static 10 everything is fine. > It looks like the jsf2 cartridge has a workaround for this, simply altering > the vsl template -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/