different panels -igor
On Tue, Mar 4, 2008 at 2:08 PM, okrohne <[EMAIL PROTECTED]> wrote: > > Hi, > > I am sorry but I do not get it... > To what refers : > "i was going to suggest that... " ? > > Maybe I have a blockhead , I don't see how I can mount > the pages appropriate ...or does your answer refer to using different panels > for "detail" and "list"? > > Could you please give a code snippet or be more precise? > > Many Thanks! > > > Oliver > > > > igor.vaynberg wrote: > > > > On Tue, Mar 4, 2008 at 9:47 AM, okrohne <[EMAIL PROTECTED]> wrote: > >> > >> Hi, > >> > >> but how can I specify that vendor and product is variable? > >> For instance how would you mount this: > >> > >> /cars/chrysler -> uses ProductList.class > >> /cars/chrysler/voyager ->ProductDetail.class > >> > >> So chrysler(vendor) is a parameter for ProductList.class, > >> chrysler(vendor) and voyager(product) are the parameters for > >> ProductDetail.class. > >> > >> In general I would need : if only 1 parameter is used then use class A > >> if 2 > >> parameters is used then > >> use class B . > >> > >> And if possible starting from the application root and not from /cars so > >> www.mydomain.com/chrysler > >> www.mydomain.com/chrysler/voyager > >> www.mydomain.com/bmw/ > >> www.mydomain.com/bmw/m5 > >> > >> but i also need for instance (which would be easy to mount): > >> www.mydomain.com/register > >> www.mydomain.com/contact > >> > >> > >> Maybe I could use a panel and depending on the page parameter > >> I would instantiate a "list" or a "detail" panel, what do you think? > > > > i was going to suggest that... > > > > -igor > > > > > >> > >> Thanks, > >> Oliver > >> > >> > >> > >> > >> igor.vaynberg wrote: > >> > > >> > you can mount productlist on /cars/vendors > >> > and productdetail on /cars/vendor/product > >> > > >> > -igor > >> > > >> > > >> > On Tue, Mar 4, 2008 at 12:24 AM, okrohne <[EMAIL PROTECTED]> wrote: > >> >> > >> >> Hi, > >> >> > >> >> I wonder how I can achieve to use different pages from the same > >> mounted > >> >> root > >> >> page depending > >> >> on the page parameters. > >> >> For instance: > >> >> > >> >> /cars/vendor > >> >> this should show a list of all cars by a vendor (ProductList.class), > >> >> vendor would be a page parameter > >> >> > >> >> /cars/vendor/product > >> >> this should show the details about the product of the vendor > >> >> (ProductDetail.class), > >> >> so vendor and product will be a page parameter. > >> >> > >> >> If I mount a page to /cars then I can not switch between > >> >> ProductList.class > >> >> and ProductDetail.class > >> >> dpending on the page parameters? > >> >> > >> >> Should I mount a page to /cars and depending on the page parameters > >> >> setting > >> >> the appropriate response page, or can I hook in the request ? > >> >> > >> >> Thanks, > >> >> Oliver > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/using-different-pages-depending-on-the-page-parameters-tp15822389p15822389.html > >> >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> > >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> >> For additional commands, e-mail: [EMAIL PROTECTED] > >> >> > >> >> > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/using-different-pages-depending-on-the-page-parameters-tp15822389p15833001.html > >> > >> > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/using-different-pages-depending-on-the-page-parameters-tp15822389p15837911.html > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
