You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jeremy Thomerson (JIRA)" <ji...@apache.org> on 2010/06/01 15:17:44 UTC

[jira] Commented: (WICKET-2904) variations don't work when using wicket:link with images

    [ https://issues.apache.org/jira/browse/WICKET-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873986#action_12873986 ] 

Jeremy Thomerson commented on WICKET-2904:
------------------------------------------

please create a quickstart and attach it to this report




-- 
Jeremy Thomerson
http://www.wickettraining.com


> variations don't work when using wicket:link with images
> --------------------------------------------------------
>
>                 Key: WICKET-2904
>                 URL: https://issues.apache.org/jira/browse/WICKET-2904
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.9
>            Reporter: Wouter de Vaal
>
> I'm trying to use variations with images that are automatically
> localized when they are within wicket:link. When I turned on debugging
> I could see that it tries to get the image for the current locale, or
> one without locale extension when it is not available (logo_nl.png
> versus logo.png). However when I change getVariation() on the page,
> nothing notable happened in the debug statements.
> So I started debugging and I found out that Component.getStyle is
> actually called, but will never give a result, as the parent is
> consulted to get the variation, however the automatically added
> components of type AutoLinkResolver$ResourceReferenceAutolink do not
> get a parent when they are created.
> Could this be a bug? I would expect the variation to be used when I
> autolink an image within a normal page.

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