You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/08/25 21:55:44 UTC
[jira] Resolved: (WICKET-1787) AjaxSubmitLink in Internet Explorer
does not work with Wicket's automatically genreated id's
[ https://issues.apache.org/jira/browse/WICKET-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-1787.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4-M4
1.3.5
in 1.3 branch and trunk the prefix is "id" not "i" so this should no longer happen
> AjaxSubmitLink in Internet Explorer does not work with Wicket's automatically genreated id's
> --------------------------------------------------------------------------------------------
>
> Key: WICKET-1787
> URL: https://issues.apache.org/jira/browse/WICKET-1787
> Project: Wicket
> Issue Type: Bug
> Reporter: Asgaut Mjølne
> Assignee: Igor Vaynberg
> Fix For: 1.3.5, 1.4-M4
>
>
> When using AjaxSubmitLink, and the markupid for a wicket element is not explicitly set, AjaxSubmitLink will not work with internet explorer. When clicking on your AjaxSubmitLink while running Internet Explorer, nothing will happen.
> Here is an example:
> html file:
> <img wicket:id="img_unlock" >
> java file:
> ContextImage unlockImage = new ContextImage("img_unlock", new Model("pathtoimage/unlockedgray.png"));
> Since the id attribute is not set, wicket will now generate the output id id="id". For some reason AjaxSubmitLink in Internet Explorer does not understand this (Firefox does). Here is the HTML output:
> <img class="ajaximg" src="../pathtoimage/unlockedgray.png" onClick="var wcall=wicketSubmitFormById('i3', '../?wicket:interface=:2:new_loancase:application_form:header:img_unlock::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true', null,null,null, function() {return Wicket.$$(this)&&Wicket.$$('i3')}.bind(this));;"
> id="id">
> The solution is to explicit add the markupid, like this:
> unlockImage.setOutputMarkupId(true);
> unlockImage.setMarkupId("mynewdistinctid");
> Would it not be better if wicket automatically generated another name for the id attribute than "id"? Can this be done? Or is there a workaround I am not aware of?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.