Hi,
why not use the 'tutsplus' code which you like and bind the links to
bookmarkable pages?
You could also inject some variables (e.g. the urls) into javascript
from wicket:
private HeaderContributor contrib = new HeaderContributor(
new IHeaderContributor() {
@Override
public void renderHead(IHeaderResponse response) {
PageParameters params = new PageParameters();
params.add("myparam", "true");
String url = RequestUtils.toAbsolutePath(urlFor(MyPage1.class,
params).toString());
response.renderJavascript("var myurl1 = '" + url + "';",
"myjsinjection");
}
});
of course this should be injected before the external code:
public void init(final PageParameters parameters) {
add(contrib);
add(new HeaderContributor(
new IHeaderContributor() {
public void renderHead(IHeaderResponse response) {
response.renderJavascriptReference("js/external.js");
}
}));}
Would this help?
Regards,
Peter.
> http://code.google.com/p/wicket-menu/
>
> Not complete but if you see the source code, it will give you an idea.
>
> cheers,
> -fatih
>
> On 8 June 2011 16:28, hubert_hupe <[email protected]> wrote:
>> hi guys,
>>
>> i have no clue how to create a simple navigation bar like this:
>> http://net.tutsplus.com/tutorials/javascript-ajax/a-different-top-navigation/
>> if possible i need images for the headlines.
>> when you move the mouse over the menu it drops down - there are millions of
>> website with this functionality.
>> the problem is: i have to ceate the menu dynamically. the informations which
>> menuitem should be in the menu comes from the database. so i cannot use a
>> static javascript code in the html file.
>> is anybody there who can give me a hint or even an example?
>>
>> best regards
>>
>> hubert
--
http://jetwick.com open twitter search
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]