Hi,

Please paste the exception message for the error:

java.io.NotSerializableException:
org.apache.wicket.resource.loader.ComponentStringResourceLoader

Martin Grigorov
Wicket Training and Consulting


On Thu, Mar 20, 2014 at 1:44 PM, Heshani <[email protected]> wrote:

> I migrated from wicket 1.4 to 6.14, when trying to update an radio button
> I'm
> getting the below  exception,
> java.io.NotSerializableException:
> org.apache.wicket.resource.loader.ComponentStringResourceLoader
>
> Below is the the implementation for the RadioChoice, and when i debugged it
> doesn't go inside the onUpdate method as well,
>
> //Gets the list of content boxes available
> List<ContentBoxSettings> settings =
> ServiceLocator.getInstance().find(ContentBoxSettingsService.class).list();
>         RadioChoice dimensionSettings = new
> RadioChoice("dimensionSettings",
> settings, new ChoiceRenderer("dimensionString", "id"));
>         this.dimensionSettings.setModel( new
> PropertyModel(dimensionSettings.getModelObject(), "settings"));
>         this.dimensionSettings.add(new
> AjaxFormChoiceComponentUpdatingBehavior() {
>
>             @Override
>             protected void onUpdate(AjaxRequestTarget target) {
>                 ContentBoxSettings settings = (ContentBoxSettings)
> getFormComponent().getDefaultModelObject();
>
>
> model.setIframeCode(CommonUtils.generateContentBoxIFrameCode(settings.getWidth(),
> settings.getHeight(), shortPath));
>                 target.add(iframeCode);
>             }
>         });
>
> The structure of the ContentBoxSettings model is,
> public class ContentBoxSettings implements Serializable {
>
>     private static final long serialVersionUID = 9620522563L;
>     private Long id;
>     private int width;
>     private int height;
>
> }
>
> Any suggestions to overcome this issue?
> Thank you.
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Gets-an-NotSerializableException-on-RadioChoice-update-after-migrating-to-wicket-6-14-tp4665040.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to