You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Edvin Syse (JIRA)" <ji...@apache.org> on 2008/02/02 18:56:08 UTC

[jira] Commented: (WICKET-1239) java.lang.IllegalAccessError when changing AjaxEditableLabel

    [ https://issues.apache.org/jira/browse/WICKET-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565094#action_12565094 ] 

Edvin Syse commented on WICKET-1239:
------------------------------------

I have checked and double-checked. This IS resolved in trunk now. I created a quickstart-project and put the code from the example in 
HomePage.java and HomePage.html. Then I verified that the error was there with 1.3.0. Then I synced wicket against trunk and did a mvn clean 
install in my wicket-folder. Then I changed the pom for the example-project to wicket-version 1.3-SNAPSHOT and did mvn eclipse:eclipse. 
Without any other modification, it then works.

This is on Linux with jdk1.6.0_04.

-- Edvin




> java.lang.IllegalAccessError when changing AjaxEditableLabel 
> -------------------------------------------------------------
>
>                 Key: WICKET-1239
>                 URL: https://issues.apache.org/jira/browse/WICKET-1239
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-rc2, 1.3.0-final
>         Environment: Windows XP Pro SP2, Java 1.6.0_03-b05
>            Reporter: Artur Wronski
>            Assignee: Gerolf Seitz
>             Fix For: 1.3.2
>
>
> When changing AjaxEditableLabel system throws:
> java.lang.IllegalAccessError: tried to access method
> org.apache.wicket.Component.onModelChanging()V from class
> org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1
>     at
> org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1.onModelChanging
> (AjaxEditableLabel.java:273)
>     at org.apache.wicket.Component.modelChanging(Component.java:2058)
>     at org.apache.wicket.Component.setModelObject(Component.java:2823)
>     at org.apache.wicket.markup.html.form.FormComponent.updateModel(
> FormComponent.java:992)
>     at org.apache.wicket.markup.html.form.FormComponent.processInput(
> FormComponent.java:874) 
> [...]
> The probem is in methd:
>         protected FormComponent newEditor(MarkupContainer parent, String componentId, IModel model)
>         {
>                 TextField editor = new TextField(componentId, model)
>                 {
>                         private static final long serialVersionUID = 1L;
>                         protected void onModelChanged()
>                         {
>                                 super.onModelChanged();
>                                 AjaxEditableLabel.this.onModelChanged();  //here is a bug
>                         }
>                         protected void onModelChanging()
>                         {
>                                 super.onModelChanging();
>                                 AjaxEditableLabel.this.onModelChanging();  //here is a bug
>                         }
>                 };
>                 editor.setOutputMarkupId(true);
>                 editor.setVisible(false);
>                 editor.add(new EditorAjaxBehavior());
>                 return editor;
>         } 
> AjaxEditableLabel.this.XXXXXX is not visible.
> Artur

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.