[ http://jira.andromda.org/browse/JSF-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Walter Itamar Mourão closed JSF-35. ----------------------------------- Resolution: Fixed Fix Version/s: 3.4 Assignee: Walter Itamar Mourão (was: Chad Brandon) Already corrected. > wrong maxTableRows preferences type cause ClassCastException in jsp > ------------------------------------------------------------------- > > Key: JSF-35 > URL: http://jira.andromda.org/browse/JSF-35 > Project: JSF cartridge > Issue Type: Bug > Reporter: Luca Dall'Olio > Assignee: Walter Itamar Mourão > Fix For: 3.4 > > 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. - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev