You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pekka Enberg (JIRA)" <ji...@apache.org> on 2007/06/18 13:55:26 UTC
[jira] Created: (WICKET-665) OnChangeAjaxBehavior no longer works
for DropDownChoices
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.
[jira] Commented: (WICKET-665) OnChangeAjaxBehavior no longer works
for DropDownChoices
Posted by "David Bernard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511704 ]
David Bernard commented on WICKET-665:
--------------------------------------
I've got the same problem.
To reproduce :
create a form like :
<form wicket:id="titleForm">
<label for="title">title:</label><br/>
<input id="title" type="text" wicket:id="title" size="100"/>
<input type="submit" value="save" />
</form>
Form form = new Form("titleForm")
form.add(new TextField("title")
.setRequired(true)
.add(new OnChangeAjaxBehavior(){
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println("called");
}
})
);
To solve (+/-) :
remove the id attribute from the html tag (input).
> 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.
[jira] Resolved: (WICKET-665) OnChangeAjaxBehavior no longer works
for DropDownChoices
Posted by "Pekka Enberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pekka Enberg resolved WICKET-665.
---------------------------------
Resolution: Cannot Reproduce
I don't know why this has been re-opened. I commented in the original issue WICKET-666 that I had a css style bound to 'id' of the <select> element which overwrote Wicket's id. Not sure why it worked in the first place.
> 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.