[ http://jira.andromda.org/browse/JSF-35?page=comments#action_15550 ] 

Pat Casey commented on JSF-35:
------------------------------

Is it possible to apply this patch to the 3.4-SNAPSHOT version?  I tried to use 
the snapshot last night and found this problem still is there. I know I can 
patch the source, but it seems like it is a simple task to include the patch in 
the current development version.



> 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


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

Reply via email to