By the way: you start threads by clicking "reply" to any unrelated message. This causes my (and many other peolple's newsreaders) to file your messages under the wrong thread.

Please write a new message for a new thread.

Thanks


tapestryphoto schrieb:

I have a PageLink thus:

<t:PageLink t:page="viewMetadata" t:context="listItem.metadata.metadataId">
  &gt;
</t:PageLink>


and code thus:

public void onActivate(long metadataId)
{
        System.out.println("METADATA ID = "+metadataId);
        this.metadata = repository.getMetaDataById(metadataId);
}


Although every time I click on the link I get taken to the correct page and the passed value is printed out correctly, I also get the following exception:

[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Exception in method dportal.pages.ViewMetadata.onActivate(long) (at ViewMetadata.java:20), parameter #1: Coercion of style.css to type java.lang.Long (via String --> Long) failed: For input string: "style.css" org.apache.tapestry5.runtime.ComponentEventException: Exception in method dportal.pages.ViewMetadata.onActivate(long) (at ViewMetadata.java:20), parameter #1: Coercion of style.css to type java.lang.Long (via String --> Long) failed: For input string: "style.css"


This occurs even when hard-coding the value thus:

<t:PageLink t:page="viewMetadata" t:context="5">
  &gt;
</t:PageLink>


So, what have I done wrong?


p.



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



--
Andy Pahne
System Architektur & Software Design

net22 GmbH
Ehrenbergweg 24
32760 Detmold

http://www.net22.de

Email     [EMAIL PROTECTED]
Telefon   +49 (5231) 58 06 40
Mobil     +49 (174) 171 68 70

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

Reply via email to