---- Java
public SimplePage_13()
{
// Component header = new WebMarkupContainer("html");
Component header = new AjaxLink("html", new Model("test"))
{
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target)
{
}
};
header.add(new AttributeModifier("lang", new Model("de")));
add(header);
}
--- markup
<? xml version= "1.0" encoding ="UTF-8" ?>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html wicket:id="html" xmlns:wicket
xmlns="http://www.w3.org/1999/xhtml" xmlns:lang="[current language]"
lang="[current language]">
<body>
</body>
</html>
--- output
<? xml version= "1.0" encoding ="UTF-8" ?>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="de" wicket:id="html" xmlns:wicket=""
xmlns="http://www.w3.org/1999/xhtml" xmlns:lang="[current language]"
onclick="var
wcall=wicketAjaxGet('?wicket:interface=:0:html::IBehaviorListener:0:',
function() { }.bind(this), function() { }.bind(this));return !wcall;"
id="html0">
<head><script type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]]>*/</script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
</head><body>
</body>
</html>
----
Please correct me if I'm wrong, but AjaxLink add various css files to
the header.
Juergen
On 6/19/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
> hi juergen,
>
> just looked at SimplePage_13.[html|java] - there is no
> "HeaderContributor.forCss(css)" which couldn't work...
>
> the modifiers for the <html>-attributes do work, that's not the problem. maybe
> you missed the point?
>
> best regards, --- jan.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user