Marc, That is indeed something that would work for my case.
Unfortunately however, we have other cases where we load pages using dojo's custom widgets which requires setting the url to the template page (which in our case could be dynamic, hence it would be a wicket Page). So I would still be interested in knowing how to generate the link pointing to a Wicket Page. Is something like this even possible? Thanks, ~ amol --- Marc-Andre Houle <[EMAIL PROTECTED]> wrote: > I can be wrong, but here is the way we have done it > here : > > -In the page, place all your DOJO goodies like this > : > <div dojo:type="LayoutContainer"> > <div dojo:type="ContentPane"> > <span wicket:id="panel1">panel contents come > here</span> </div> > <div dojo:type="ContentPane"> > <span wicket:id="panel2">panel contents come > here</span> </div> > </div> > </div> > > > -Then create the page that will contains the panel. > > Refer to this example for panel code : > http://www.wicket-library.com/wicket-examples/compref;jsessionid=D1C83C080C31EFFBCC6AD04549613098?wicket:bookmarkablePage=:wicket.examples.compref.PanelPage > > There is multiple way of doing this, but I think > that panel are the way that > is the best for this kind of thing. If you want, > you can also use page, but > I'm not the best to explain how... > > On 10/13/06, Korbinian Bachl > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > dont refer to the navomatic example, as this is a > special contruction. > > > > If you need a usualy a href= link to a wicket page > then use instead > > following: > > > > HMTL Markup: > > <a wicket:id="myLink" href="#">Link desc</a> > > > > and in Java-Page use: > > Link myLink = new Link("myLink") { > > public void onClick() { > > setResponsePage(Target.class); > > } > > }; > > add(myLink); > > > > where Target.class is the class of the page to be > called > > > > Regards, > > > > Korbinian > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] > Im Auftrag > > > von [EMAIL PROTECTED] > > > Gesendet: Freitag, 13. Oktober 2006 16:21 > > > An: [email protected] > > > Betreff: [Wicket-user] newbie: wicket + dojo > LayoutContainer > > > > > > Hi, > > > > > > I'm trying to integrate Wicket with dojo for a > web > > > application. I have looked at the > > > wicket-contrib-dojo-examples, but i believe it > does not cover > > > what I'm looking for at the moment, so here > > > goes: > > > > > > I'm trying to use dojo's LayoutContainer with > multiple nested > > > dojo ContentPanes as (dojo attribs not relevant > to this post > > > are removed): > > > > > > > > > <div dojo:type="LayoutContainer"> > > > <div dojo:type="ContentPane" > > > href="HEAD_PAGE_URL"></div> > > > <div dojo:type="ContentPane" > > > href="BODY_PAGE_URL"></div> > > > </div> > > > > > > > > > > > > What I would like to know is how to link the > values for > > > HEAD_PAGE_URL and BODY_PAGE_URL which would > point to standard > > > wicket pages. I have looked at the linkomatic > examples and > > > all of those require an anchor tag to generate > the link. In > > > my case I only want the "href" that will point > to the wicket > > > Page class. > > > > > > Or is there some other way to achieve this? > > > > > > Thanks, > > > ~ amol > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------- > > > ----------- > > > Using Tomcat but need to do more? Need to > support web > > > services, security? > > > Get stuff done quickly with pre-integrated > technology to make > > > your job easier Download IBM WebSphere > Application Server > > > v.1.0.1 based on Apache Geronimo > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& > > dat=121642 > > > _______________________________________________ > > > Wicket-user mailing list > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support > web services, security? > > Get stuff done quickly with pre-integrated > technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
