Em Tue, 28 Oct 2008 20:46:33 -0300, Howard Lewis Ship <[EMAIL PROTECTED]>
escreveu:
Again, the solution is to avoid relative paths. Strip out style.css
from your page or layout template, use the @IncludeStylesheet
annotation instead of directly-code HTML.
Another option is to use ${asset:co
This often happens when your template references an asset, in this
case style.css, that doesn't exist (you should avoid using relative
paths on pages that have an activation context).
What happens is that the page renders, the client asks the server for
style.css relative the page's base URL ... t
Thanks Tobias!
Quoting Tobias Wehrum <[EMAIL PROTECTED]>:
Hi,
the problem is not your pagelink, the problem is your stylesheet link.
When it trys to load, it seems to search in "viewMetadata/style.css",
thus being passed as an activation context which of course cannot be
coerced to long.
Anyw
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:
>
and
Hi,
the problem is not your pagelink, the problem is your stylesheet link.
When it trys to load, it seems to search in "viewMetadata/style.css",
thus being passed as an activation context which of course cannot be
coerced to long.
Anyway, in my opinion the best way to pass the stylesheet is
In your second example, "5" is interpreted as String.
In your first example, I am not sure. What type is
listItem.metadata.metadataId? Maybe it is not long?
Andy
tapestryphoto schrieb:
I have a PageLink thus:
>
and code thus:
public void onActivate(long metadataId)
{
Sys
I have a PageLink thus:
>
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 correc