Re: Page redirect in tapestry5

2016-03-04 Thread Jens Breitenstein
Hi Barry, Am 04/03/16 um 13:00 schrieb Barry Books: Using data directly from the client is never a good idea. While in this case it's probably fine it's a bad habit to fail into. Agreed I would make a enum with the Cookie string and the page class. Use enum.valueOf(cookie) to convert from Stri

Re: Page redirect in tapestry5

2016-03-04 Thread Barry Books
Using data directly from the client is never a good idea. While in this case it's probably fine it's a bad habit to fail into. I would make a enum with the Cookie string and the page class. Use enum.valueOf(cookie) to convert from String to enum and then return the class from the enum. I suspect yo

Re: Page redirect in tapestry5

2016-03-03 Thread JumpStart
This example includes returning the logical page name as String: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/returntypes1 Geoff > On 4 Mar 2016, at 2:22 pm, mailingl...@j-b-s

Re: Page redirect in tapestry5

2016-03-03 Thread mailingl...@j-b-s.de
You can just return the string and tapestry locates the page on its own return cookieVal; Just make sure the cookieval is a valid page name (class name without package) Jens Von meinem iPhone gesendet > Am 04.03.2016 um 07:12 schrieb Anbazhagan.G : > > Hi All, > > I am working in web applica

Page redirect in tapestry5

2016-03-03 Thread Anbazhagan.G
Hi All, I am working in web application using tapestry framework. I have following pages a,b,c,d and Index in my application. In Index page, check some condition and redirect to a particular page. My code, |if(null!=cookieVal){if(cookieVal.equalsIgnoreCase("a")){returnA.class;}elseif(cookieVa