Not that the <wicket:head> part supports full fledged Wicket. You can add components to that header section by calling addToHeader (method of WebMarkupContainer). So, when you use header contribution with <wicket:head> tag, you should be able to implement any complex handling/ localization you want.

Eelco


Ralf Ebert wrote:

Hi,

<wicket:head> is not limited to panels. It should basically work with
all components. It it doesn't, than we should try to extend that it
does. FormComponent is derived from WebContainer, and I think that
should work already. Did you try it already?

this works and it's great stuff for simple javascript functions. In my case, I need to use constants and localized strings from the component class which can't be done (easily) from the markup html file. Hmm, actually this means I have dependencies to the current component which means I need a own javascript function for each generated component (where the naming can be done easily using the id) or need to get this dependency away, for example by handing all necessary values via JavaScript parameters. The last thing will work fine for this case.
Thanks!

Regards,
Ralf


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to