Hi Finn, OK sounds fair enough. Would you like to create a JIRA item for this and provide a patch.
regards Malcolm Edgar On Mon, Aug 31, 2009 at 5:35 PM, Finn Bock<bck...@gmail.com> wrote: > Malcolm Edgar <malcolm.ed...@gmail.com>: >> Hi Finn, >> >> What about setting the Page arguments as properties in your page? >> >> MyPage page = getContext().createPage(MyPage.class); >> page.setSecure(true); >> setForward(page); > > Yes, but I would like the arguments to be available in the > constructor. So the solution available right now is: > > MyPage page = getContext().createPage(MyPage.class); > getContext().setRequestAttribute("secure", true); > setForward(page); > > and in the page ctor: > > public MyPage() { > Boolean secure = (Boolean) getContext().getRequestAttribute("secure"); > ... > } > > and it just feels wrong that it is easier to pass request parameters > into @Bindable fields (which btw is very nice) than it is to pass > ordinary java objects into a class constructor. > > regards, > Finn >