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

Marco V commented on WICKET-1389:
---------------------------------

I'm running into this ordering problem too with 1.3.4 (also in 1.3 RC1 btw).
Using either sun jdk 1.5.0.11 or jdk1.6.0_06 (ibm?) on Ubuntu 7.04.

properties file:
home.title=Homepage Title
home.description=this describes what my site does
home.keywords=super, website, great
helloworld=hey there
description=description


This is what goes in: 
<meta name="description" content="my super website" 
wicket:message="content:home.description" />

What is generated:
<meta content="this describes what my site does" name="description"/>

Notice that 'content' is now before 'name'.

The same is generated for these:
<meta name="description" content="my super website" 
wicket:message="name:description,content:home.description" />
<meta wicket:message="name:description,content:home.description" />     

And even a simpler case:
This goes in:
<input type="submit" value="Default text" wicket:message="value:helloworld"/>

This comes out:
<input value="Default text" type="submit"/>

Notice that 'value' is now before 'type'.


Now for the <input> tag the order of the HTML attributes does not really matter 
I guess, but for the <meta> tag it is most likely relevant because search 
engines expect the correct order (AFAIK).

So it would be great if the order could be as you specify it in the 
wicket:message. And I would like to see it indeed in 1.3...

PS: hope this is the right spot to put this in, if not point me where to go :-) 
Maybe I should clone this issue because it has status 'resolved'?



> Tests fail due to different order of attributes (under Java 6)
> --------------------------------------------------------------
>
>                 Key: WICKET-1389
>                 URL: https://issues.apache.org/jira/browse/WICKET-1389
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.1
>         Environment: JDK 1.6.0_04
>            Reporter: Henrik Lundahl
>            Assignee: Frank Bille Jensen
>            Priority: Minor
>             Fix For: 1.4-M3
>
>
> When building wicket-1.3-SNAPSHOT using JDK 1.6.0_04 I get some test failures 
> with messages all similar to this:
> < <style type="text/css" id="org-apache-wicket-ajax-MockComponent1-0">
> ---
> > <style id="org-apache-wicket-ajax-MockComponent1-0" type="text/css">
> It seems like the element attributes have come in the "wrong" order (compared 
> to the test case).
> Since making the tests attribute order independent would probably be 
> difficult, I suggest instead that the code is changed to guarantee that the 
> attributes always come in the same order (TreeMap instead of HashMap?).

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

Reply via email to