Javier Molina <numeropi <at> myrealbox.com> writes:

> 
> Something like that could work for now even if it's a hack, but the code 
> seems to be only for T4. Is there something similar for 3.0.3? I can 
> only find getRequestCycle().getAttribute(String name) instead of 
> getParameter() (which might just have been a typo) but the cycle's 
> _attributes Map is null according to the debugger.

Try:

public void pageValidate(PageEvent event) {
  RequestContext ctx = getRequestCycle().getRequestContext();
  String service = ctx.getParameter("service");
  if (service.startsWith(Tapestry.DIRECT_SERVICE) &&
      service.indexOf("form1") != -1) {
        System.out.println("form1. go ahead.");
        return;
  }
}

--
Author of a book for learning Tapestry (www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to