i think that solution is a bit "dangerous",
if you do some refectorings.
eg: move the page Administration in another package
or the application context is changed
2008/8/29 <[EMAIL PROTECTED]>
> Hi,
>
> I was just about to reply and say I solved it. Missing slash in the
> location.href. The fol
Hi,
I was just about to reply and say I solved it. Missing slash in the
location.href. The following works:
onclick="location.href='/Administration';"/>
thanks for your help.
p.
Quoting Martijn Brinkers <[EMAIL PROTECTED]>:
I'm not sure but I thinks it's a similar problem. It looks l
I'm not sure but I thinks it's a similar problem. It looks like
Administration is interpreted as the context.
If you want to cancel the page it's easier to use the t5Component Button
component.
Add t5Component jar to you project (see
http://code.google.com/p/tapestry5-components/) and add this to
Em Fri, 29 Aug 2008 07:23:48 -0300, <[EMAIL PROTECTED]> escreveu:
Something that works wonderfully with any kind of resource (imagens, CSS,
etc) is to use the asset prefix:
alt="bl" />
It works regardless of where your template is and what URL it has.
Thiago
--
Thanks for the fast reply Martijn; that fixed the GIF asset.
However, I am still having problems with the Cancel button. I can
reference the Administration page as an asset, but obviously it then
does not get processed by Tapestry.
Thoughts, anyone?
p.
Quoting Martijn Brinkers <[EMAI
I think the following happens
The gif is requested by your page because of the IMG so the GET for the
IMG looks something like
http://YOUR_DOMAIN/YOUR_PAGE/bl_red_hundred.gif
Now you page assumes this is your activation context and tries to
convert it to int (which it's not).
I think you can so
I don't quite understand why the following does not work and produces:
TapestryModule.RequestExceptionHandler Processing of request failed
with uncaught exception: Exception in method
uk.bl.dportal.pages.EditUser.onActivate(int) (at EditUser.java:40),
parameter #1: Coercion of bl_red_hundre