You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jan Kriesten (JIRA)" <ji...@apache.org> on 2007/10/24 16:08:51 UTC

[jira] Created: (WICKET-1097) AjaxEditableLabel: Model change events not propagated from Editor

AjaxEditableLabel: Model change events not propagated from Editor
-----------------------------------------------------------------

                 Key: WICKET-1097
                 URL: https://issues.apache.org/jira/browse/WICKET-1097
             Project: Wicket
          Issue Type: Improvement
          Components: wicket-extensions
    Affects Versions: 1.3.0-beta4
         Environment: any
            Reporter: Jan Kriesten


Model changes are not propagated from the Editor to the AjaxEditableLabel, so overriding onModelChanging/onModelChanged doesn't work as one might expect. The implementation should be changed to something like this (code sample by Gerolf):

---
protected FormComponent newEditor(MarkupContainer parent, String componentId, IModel model)   
    {   
        TextField editor = new TextField(componentId, model)   
        {   
            private static final long serialVersionUID = 1L;   
  
            protected void onModelChanging()   
            {   
                super.onModelChanging();   
                AjaxEditableLabel.this.onModelChanging();   
            }   
  
            protected void onModelChanged()   
            {   
                super.onModelChanged();   
                AjaxEditableLabel.this.onModelChanged();   
            }   
        };   
        editor.setOutputMarkupId(true);   
        editor.setVisible(false);   
        editor.add(new EditorAjaxBehavior());   
        return editor;   
    }
---

The same issue might apply to the other inline-editors.


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


[jira] Resolved: (WICKET-1097) AjaxEditableLabel: Model change events not propagated from Editor

Posted by "Gerolf Seitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerolf Seitz resolved WICKET-1097.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-rc2

> AjaxEditableLabel: Model change events not propagated from Editor
> -----------------------------------------------------------------
>
>                 Key: WICKET-1097
>                 URL: https://issues.apache.org/jira/browse/WICKET-1097
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-beta4
>         Environment: any
>            Reporter: Jan Kriesten
>            Assignee: Gerolf Seitz
>             Fix For: 1.3.0-rc2
>
>
> Model changes are not propagated from the Editor to the AjaxEditableLabel, so overriding onModelChanging/onModelChanged doesn't work as one might expect. The implementation should be changed to something like this (code sample by Gerolf):
> ---
> protected FormComponent newEditor(MarkupContainer parent, String componentId, IModel model)   
>     {   
>         TextField editor = new TextField(componentId, model)   
>         {   
>             private static final long serialVersionUID = 1L;   
>   
>             protected void onModelChanging()   
>             {   
>                 super.onModelChanging();   
>                 AjaxEditableLabel.this.onModelChanging();   
>             }   
>   
>             protected void onModelChanged()   
>             {   
>                 super.onModelChanged();   
>                 AjaxEditableLabel.this.onModelChanged();   
>             }   
>         };   
>         editor.setOutputMarkupId(true);   
>         editor.setVisible(false);   
>         editor.add(new EditorAjaxBehavior());   
>         return editor;   
>     }
> ---
> The same issue might apply to the other inline-editors.

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


[jira] Assigned: (WICKET-1097) AjaxEditableLabel: Model change events not propagated from Editor

Posted by "Gerolf Seitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerolf Seitz reassigned WICKET-1097:
------------------------------------

    Assignee: Gerolf Seitz

> AjaxEditableLabel: Model change events not propagated from Editor
> -----------------------------------------------------------------
>
>                 Key: WICKET-1097
>                 URL: https://issues.apache.org/jira/browse/WICKET-1097
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.3.0-beta4
>         Environment: any
>            Reporter: Jan Kriesten
>            Assignee: Gerolf Seitz
>
> Model changes are not propagated from the Editor to the AjaxEditableLabel, so overriding onModelChanging/onModelChanged doesn't work as one might expect. The implementation should be changed to something like this (code sample by Gerolf):
> ---
> protected FormComponent newEditor(MarkupContainer parent, String componentId, IModel model)   
>     {   
>         TextField editor = new TextField(componentId, model)   
>         {   
>             private static final long serialVersionUID = 1L;   
>   
>             protected void onModelChanging()   
>             {   
>                 super.onModelChanging();   
>                 AjaxEditableLabel.this.onModelChanging();   
>             }   
>   
>             protected void onModelChanged()   
>             {   
>                 super.onModelChanged();   
>                 AjaxEditableLabel.this.onModelChanged();   
>             }   
>         };   
>         editor.setOutputMarkupId(true);   
>         editor.setVisible(false);   
>         editor.add(new EditorAjaxBehavior());   
>         return editor;   
>     }
> ---
> The same issue might apply to the other inline-editors.

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