You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "francisdb (JIRA)" <ji...@apache.org> on 2007/08/23 09:52:30 UTC

[jira] Issue Comment Edited: (WICKET-665) OnChangeAjaxBehavior no longer works for DropDownChoices

    [ https://issues.apache.org/jira/browse/WICKET-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522050 ] 

francisdb edited comment on WICKET-665 at 8/23/07 12:50 AM:
------------------------------------------------------------

this code has the same problem

<form action="/">
        <div><select wicket:id="jobTypeFilter">
                <option>JobX</option>
                <option>JobY</option>
        </select></div>
</form>

add(jobTypeFilter = new DropDownChoice("jobTypeFilter", new HibernateObjectModel(), jobTypeListModel));
jobTypeFilter.add(new AjaxFormComponentUpdatingBehavior("onChange") {
	@Override
	protected void onUpdate(AjaxRequestTarget target) {
		target.addComponent(jobsWrap);
	}
});

      was (Author: francisdb):
    this code has the same problem

add(jobTypeFilter = new DropDownChoice("jobTypeFilter", new HibernateObjectModel(), jobTypeListModel));
jobTypeFilter.add(new AjaxFormComponentUpdatingBehavior("onChange") {
	@Override
	protected void onUpdate(AjaxRequestTarget target) {
		target.addComponent(jobsWrap);
	}
});
  
> OnChangeAjaxBehavior no longer works for DropDownChoices
> --------------------------------------------------------
>
>                 Key: WICKET-665
>                 URL: https://issues.apache.org/jira/browse/WICKET-665
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta2
>            Reporter: Pekka Enberg
>
> Chaning a value in DropDownChoice causes the following Javascript error:
> e has no properties
> http://localhost:8080/paivi/app/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
> Line 322
> Which is why OnChangeAjaxBehavior.onUpdate() is no longer triggered. This stopped working after we got a new snapshot from http://wicketstuff.org/maven/repository/. The changeset that broke it is probably the one for WICKET-394 but I have not confirmed this.

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