Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Marcin Zajączkowski
Hi, In the application I need to have an util page which reloads application configuration. No markup is required, page implementation calls reload from service layer, set info message in a session and redirect to a homepage. I did it by creating EmptyMarkup class and returning it from

Re: Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Igor Vaynberg
class mypage extends webpage { public mypage() { service.reset(); getsession().info(..); throw new restartResponseException(getapplication().gethomepage()); } } -igor 2011/2/12 Marcin Zajączkowski msz...@wp.pl: Hi, In the application I need to have an util page which

Re: Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Marcin Zajączkowski
On 2011-02-12 23:26, Igor Vaynberg wrote: class mypage extends webpage { public mypage() { service.reset(); getsession().info(..); throw new restartResponseException(getapplication().gethomepage()); } } I knew there is a way :). Thanks Igor. Marcin 2011/2/12 Marcin