Ajax page mounting and panels

2010-04-08 Thread Mathias Nilsson
Hi,
My Webapplication is made up of one page that uses ajax to replace panels.
Now I would like to have som mounting and set some panels by the
mountingpath. Can anyone give me some pointers?
RootPage( RequestParameters params ){
  // Parse the params and set some panels
}
mount( /order ) // This should set some order panel. like
http://localhost:8080/myapp/order?id=34234reference=12341234-dasfdsa-2341324-asdfsa
I would like this mount to go to the RootPage and let me parse the
parameters. Is this possible?


Re: Ajax page mounting and panels

2010-04-08 Thread nino martinez wael
You an always mount that way. Just use the constructor that has page
parameters.. Other than that I dont think theres problems with
multiple mounting towards the same page with different parameters...

You should check this http://wicketstuff.org/wicket14/linkomatic/ and
the pages there and the webapp on mounting.. Theres also an annotation
style project for wicket regarding mounting otherwise it's done in the
wicketapplication (init method).

Personally I don't like the idea of one page that does it all, as it
becomes harder to control state and keep code clean.. But thats just
my style

regards Nino

2010/4/8 Mathias Nilsson wicket.program...@gmail.com:
 Hi,
 My Webapplication is made up of one page that uses ajax to replace panels.
 Now I would like to have som mounting and set some panels by the
 mountingpath. Can anyone give me some pointers?
 RootPage( RequestParameters params ){
  // Parse the params and set some panels
 }
 mount( /order ) // This should set some order panel. like
 http://localhost:8080/myapp/order?id=34234reference=12341234-dasfdsa-2341324-asdfsa
 I would like this mount to go to the RootPage and let me parse the
 parameters. Is this possible?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax page mounting and panels

2010-04-08 Thread Mathias Nilsson

I will look in to it.

You are right. I don't like it either. But I couldn't get it to work better
when wanting the menu, header and footer stay fixed without using frames.
-- 
View this message in context: 
http://old.nabble.com/Ajax-page-mounting-and-panels-tp28178937p28184077.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org