Hi,

You could implement your own IComponentInstantiationListener, and in it add
some sort of behavior to modify the component which removes the onclick.  Or
you could try an remove the AjaxEventBehavior from the AjaxFallbackLink. 
This should work globally but will only require you to modify your code in
one place.

eg something like this in application init:

if(simple mode){
addComponentInstantiationListener(
new IComponentInstantiationListener(){

onInstantiation(Component component){
if(component instance of AjaxFallbackLink){
   IBehaviour b = code to get behaviour
   component.removeBehaviour(b)
}
}
}
)
}

not sure if that will work but it seems like it should.

Richard


Leszek Gawron-2 wrote:
>  a
> it seems that Mobile IE understands "onclick" a little bit to start 
> running it but not enough to actually process the request so no actual 
> fallback is being made.
> 
> As I would really like to keep my code as it is I thought I would 
> introduce "Simple HTML" mode which would strip all "onclick" tags and 
> leave the browser with the href="" tags it understands. Is there any 
> elegant way to do it globally?
> 
>       lg
> 
> -- 
> Leszek Gawron                              http://lgawron.blogspot.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 


-----
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk 
-- 
View this message in context: 
http://old.nabble.com/AjaxFallbackLink-does-not-work-on-Windows-Mobile-Internet-Explorer-tp26612035p26612857.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to