Hi All,
I'm new to click, I have some questions as I get into it....
1) Is there a way to prevent auto binding of fields? i.e. In the template
project there are: public String title = "some text";
which someone can pass &title="something bad" into my page when I don't want
that.
2) Can anyone point me at an example of a page that redirects to itself
adding a getRequestParameter to it's own URL before rendering?
I tried to do it with:
if (getContext().getRequestParameter("app") == null) {
getContext().setRequestAttribute("app", "default");
setForward(this);
// redirect to self without rendering...
}
in my onInit() method, but that doesn't bounce and just spins inside my
Tomcat server (also tried with setRedirect, I'm likely not doing this right)
I may have missed this stuff in the click book PDF or the example code when
I was scanning it, so if it's in there feel free to point me to the
particular example / page I should reference.
Cheers,
-G
__
--- == __/ t.O ==--
http://stacktrace.org/