Beauty, I'll give that a shot - sounds like what I want to do.
Thanks Taha
On Thu, Dec 19, 2013 at 11:14 AM, Taha Siddiqi wrote:
> Oops! Sorry I misunderstood your question.
>
> If you want a clickable link, I don't think Errors component can do that.
>
>
> http://tapestry.apache.org/5.3/apido
On Wed, 18 Dec 2013 19:54:51 -0200, Chris Mylonas
wrote:
Thanks, but no again.
form.recordError(commonNameField, "The ip address you entered is public
and
in use - please try again or search for it ${" + link.toAbsoluteURI() +
"}"
);
renders this as a string, and without the expansion
Oops! Sorry I misunderstood your question.
If you want a clickable link, I don't think Errors component can do that.
http://tapestry.apache.org/5.3/apidocs/src-html/org/apache/tapestry5/corelib/components/Errors.html
The text message is written as writer.write() rather than writer.writeRaw()
Yo
Thanks, but no again.
form.recordError(commonNameField, "The ip address you entered is public and
in use - please try again or search for it ${" + link.toAbsoluteURI() + "}"
);
renders this as a string, and without the expansion-y ${} it's just plain
old text.
${http://hplaptop:8080/MetwideSubne
Use Link#toAbsoluteURI() or Link#toURI() depending on your need( I think here
toAbsoluteURI() is more appropriate)
On Dec 18, 2013, at 8:32 PM, Chris Mylonas wrote:
> Thanks Taha - I was looking at the Link Component FAQ earlier scratching my
> head. It spits out the text for the link, not a h
Thanks Taha - I was looking at the Link Component FAQ earlier scratching my
head. It spits out the text for the link, not a html link.
So I tried this:
Link link = linkSource.createPageRenderLink(IPAddress.class);
if (ni != null) {
form.recordError(commonNa
You can use
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html#createPageRenderLink(java.lang.Class)
@Inject
private PageRenderLinkSource linkSource
form.recordError(someField, "my link is " +
linkSource.createPageRenderLink(MyPage.class));
there a
Hi Tapestry Users,
What is the best way to include a link to a page from the java class?
I have a form, returning an error that states: "The ip address you entered
is public and in use - please try again or search for it to see it's
current use"
I would like to put a link in that error message t
IncludeLink is used to include another html file into
current file, it is a sub-class of ExternalLink, so
you can use paramter page and parameters to control
the included page.
use include, we can seperate pages into small pieces,
which will have better reusabilty and can have
different caching c