Re: wicket-annotations and page mounting

2015-07-13 Thread andrea del bene
Hi, AFAIK this is not possible, you must mount your pages using a path parameter (something like: 'summary/${account}'). andrea. On 10/07/2015 18:51, Jason Novotny wrote: Hi, I'm using wicket-annotations and I've added: newAnnotatedMountScanner().scanPackage(com.foo.web.pages).mount(this);

Re: wicket-annotations and page mounting

2015-07-13 Thread Martin Grigorov
Hi, You should use a modified AnnotatedMountScanner. Its getRequestMapper() should return new MountedMapper(mountPath, pageClass, new UrlPathPageParametersEncoder()); Looking at the code [1] it should work for #scanPackage() too. 1.

wicket-annotations and page mounting

2015-07-10 Thread Jason Novotny
Hi, I'm using wicket-annotations and I've added: newAnnotatedMountScanner().scanPackage(com.foo.web.pages).mount(this); in my Application class. My page classes all have: @MountPath(value =summary) However, I want to adjust the pages to not use query parameters like account=5 and use /

Re: page mounting

2013-02-26 Thread Dr. Britta Landgraf
Hi, in public IRequestHandler mapRequest(final Request request) the mappers will be sort by: Collections.sort(list); So there is no chance to influence the order of the mappers :( regards britta Am 25.02.2013 11:18, schrieb Martin Grigorov: Hi, I've just tried it in a quickstart and my

Re: page mounting

2013-02-26 Thread Martin Grigorov
Hi, This #sort() sorts by the compatibility score the mapper returns for this Request. If two or more mappers return the same score then the order in the list depends on the order of the mounting in Application#init(), i.e. the order of insertion in the non-sorted list. On Tue, Feb 26, 2013 at

Re: page mounting

2013-02-26 Thread Dr. Britta Landgraf
I solved it now by overriding getCompatibilityScore. Thanks for your hints. britta Am 26.02.2013 10:25, schrieb Martin Grigorov: Hi, This #sort() sorts by the compatibility score the mapper returns for this Request. If two or more mappers return the same score then the order in the list

page mounting

2013-02-25 Thread Dr. Britta Landgraf
I will mount /all/sindex to Page1 and /all/anythingelse to Page2. Mounting with mountPage(/all/sindex,Page1.class); mountPage(/all/#{exp}, Page2.class); always mount to Page2 also for /all/sindex. What's wrong? regards britta -- Dr. Britta Landgraf phone: +49 2461 61 5647 IEK-4

Re: page mounting

2013-02-25 Thread Martin Grigorov
Hi, As a workaround mount first Page2 and then Page1. The problem is that both mounts calculate the same IRequestMapper#getCompatibilityScore() and since the one for Page2 is mounted later it has higher priority. File a bug in our Jira to improve the calculation of the compatibility score when

Re: page mounting

2013-02-25 Thread Dr. Britta Landgraf
Hi, changing the order of the mounts doesn't help. I already tried this. regards britta Am 25.02.2013 10:58, schrieb Martin Grigorov: Hi, As a workaround mount first Page2 and then Page1. The problem is that both mounts calculate the same IRequestMapper#getCompatibilityScore() and since

Re: page mounting

2013-02-25 Thread Martin Grigorov
Hi, I've just tried it in a quickstart and my conclusion seems to be valid. I am able to reproduce the problem with the initial order and to workaround it with the reverse order. To debug what happens in your case you can put a breakpoint in

Re: Page mounting

2010-12-16 Thread Pedro Santos
you can mount AdminLogin to some Login.class extension like class AdminLogin extends Login{ constructor(){ super(someParameters); } } On Wed, Dec 15, 2010 at 9:42 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I think this was discussed here but I can't seems to find it

Page mounting

2010-12-15 Thread Jeffrey Schneller
I think this was discussed here but I can't seems to find it so I will ask again. I would like to mount a page Login to Login.class. I know how to do this and have it working. Now I would like to mount a page called AdminLogin to Login.class but also pass a parameter to Login.class so

Re: Page mounting

2010-12-15 Thread Hielke Hoeve
Its fairly simple. Create a class Login, give it a constructor with pageparameters. Create two panels, one for each login type. Based on the page parameters you show one or the other. Mount the page on 2 paths, each with its own parameter. Hielke On 16 Dec 2010 00:43, Jeffrey Schneller

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

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

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