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
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
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?
input type=button id=cancelButton
Em Fri, 29 Aug 2008 07:23:48 -0300, [EMAIL PROTECTED] escreveu:
img src=bl_red_hundred.gif alt=bl /
Something that works wonderfully with any kind of resource (imagens, CSS,
etc) is to use the asset prefix:
img src=${asset:context:your images directory
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
Hi,
I was just about to reply and say I solved it. Missing slash in the
location.href. The following works:
input type=button id=cancelButton value=Cancel
onclick=location.href='/Administration';/
thanks for your help.
p.
Quoting Martijn Brinkers [EMAIL PROTECTED]:
I'm not sure
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 following