You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Francesco Chicchiriccò (JIRA)" <ji...@apache.org> on 2014/10/14 10:53:34 UTC
[jira] [Commented] (SYNCOPE-565) Error on ResourceModalPage when
override a SpinnerField in the ConnectorModalPage
[ https://issues.apache.org/jira/browse/SYNCOPE-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14170692#comment-14170692 ]
Francesco Chicchiriccò commented on SYNCOPE-565:
------------------------------------------------
Hi [~giacomolm], I've checked your patch: the idea is good, the implementation is unfortunately poor:
# you cannot just replace Number with Integer: you should also consider Float, Long and Double (with more "else if" clauses)
# please also fix ReportletConfModalPage which shows the same problem
> Error on ResourceModalPage when override a SpinnerField in the ConnectorModalPage
> ---------------------------------------------------------------------------------
>
> Key: SYNCOPE-565
> URL: https://issues.apache.org/jira/browse/SYNCOPE-565
> Project: Syncope
> Issue Type: Bug
> Components: console
> Affects Versions: 1.2.0
> Reporter: Marco Di Sabatino Di Diodoro
> Assignee: Giacomo Lamonaco
> Fix For: 1.2.1, 1.3.0
>
> Attachments: issue565.patch
>
>
> Class cast exception on ResourceModalPage when override a SpinnerField in the ConnectorModalPage.
> java.lang.ClassCastException: Cannot cast java.lang.Double to int
at java.lang.Class.cast(Class.java:3005)
at org.apache.syncope.console.wicket.markup.html.form.SpinnerFieldPanel$2.getObject(SpinnerFieldPanel.java:109)
at org.apache.syncope.console.wicket.markup.html.form.SpinnerFieldPanel$2.getObject(SpinnerFieldPanel.java:100)
at org.apache.wicket.Component.getDefaultModelObject(Component.java:1590)
at org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1618)
at org.apache.wicket.markup.html.form.FormComponent.getModelValue(FormComponent.java:1291)
at org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:878)
at org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:108)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)