You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Treleaven <ja...@enoreo.on.ca> on 2003/11/07 00:17:50 UTC

newbie question on 'mailto' hyperlink

Hello All,

This is so basic, but I need help.  Which component should I use to 
render a mailto hyperlink?  Can you show me what would the syntax in the 
html template file should look like?


I am trying to generate the following html:

<tr>
<td>Bell High School</td>
<td><a href="mailto:prichard@sympatico.com">Mr. Prichard</a></td>
</tr>


Tapestry certainly has a learning curve, but it is beautiful.

cheers,
James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie question on 'mailto' hyperlink

Posted by Bill Lear <ra...@zopyra.com>.
On Thursday, November 6, 2003 at 18:17:50 (-0500) James Treleaven writes:
>Hello All,
>
>This is so basic, but I need help.  Which component should I use to 
>render a mailto hyperlink?  Can you show me what would the syntax in the 
>html template file should look like?
>
>
>I am trying to generate the following html:
>
><tr>
><td>Bell High School</td>
><td><a href="mailto:prichard@sympatico.com">Mr. Prichard</a></td>
></tr>
>
>
>Tapestry certainly has a learning curve, but it is beautiful.

This is what I use:

Home.html:

<a jwcid="mailToLink" href="#"><span jwcid="employeeEmail">foo@bar.net</span></a></span>

Home.page:

    <component id="mailToLink" type="Any">
        <binding name="href">
            "mailto:" + employee.email
        </binding>
        <static-binding name="element" value="a"/>
    </component>

    <component id="employeeEmail" type="Insert">
        <binding name="value" expression="employee.email"/>
    </component>


Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie question on 'mailto' hyperlink

Posted by James Treleaven <ja...@enoreo.on.ca>.
Thank you all for your help.  I do appreciate it.

-James

Harish Krishnaswamy wrote:
> That would be a GenericLink something like <a jwcid="@GenericLink" 
> href="mailto:prichard@sympatico.com">Mr. Prichard</a>
> 
> -Harish
> 
> James Treleaven wrote:
> 
>> Hello All,
>>
>> This is so basic, but I need help.  Which component should I use to 
>> render a mailto hyperlink?  Can you show me what would the syntax in 
>> the html template file should look like?
>>
>>
>> I am trying to generate the following html:
>>
>> <tr>
>> <td>Bell High School</td>
>> <td><a href="mailto:prichard@sympatico.com">Mr. Prichard</a></td>
>> </tr>
>>
>>
>> Tapestry certainly has a learning curve, but it is beautiful.
>>
>> cheers,
>> James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie question on 'mailto' hyperlink

Posted by Harish Krishnaswamy <hk...@comcast.net>.
Not much, you can disable the link by simply setting the disabled property to false. And you can 
provide custom renderers for the link although I don't see how it would be useful in this case.

-Harish

Erik Hatcher wrote:
> On Thursday, November 6, 2003, at 06:32  PM, Harish Krishnaswamy wrote:
> 
>> That would be a GenericLink something like <a jwcid="@GenericLink" 
>> href="mailto:prichard@sympatico.com">Mr. Prichard</a>
> 
> 
> What advantage is there for using GenericLink over using @Any?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: newbie question on 'mailto' hyperlink

Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
A GenericLink can be enabled or disabled.

A GenericLink can support JavaScripting; it can enclose a Rollover.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com

> -----Original Message-----
> From: Erik Hatcher [mailto:erik@ehatchersolutions.com] 
> Sent: Thursday, November 06, 2003 7:52 PM
> To: Tapestry users
> Subject: Re: newbie question on 'mailto' hyperlink
> 
> 
> On Thursday, November 6, 2003, at 06:32  PM, Harish 
> Krishnaswamy wrote:
> > That would be a GenericLink something like <a jwcid="@GenericLink"
> > href="mailto:prichard@sympatico.com">Mr. Prichard</a>
> 
> What advantage is there for using GenericLink over using @Any?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie question on 'mailto' hyperlink

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Thursday, November 6, 2003, at 06:32  PM, Harish Krishnaswamy wrote:
> That would be a GenericLink something like <a jwcid="@GenericLink" 
> href="mailto:prichard@sympatico.com">Mr. Prichard</a>

What advantage is there for using GenericLink over using @Any?


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie question on 'mailto' hyperlink

Posted by Harish Krishnaswamy <hk...@comcast.net>.
That would be a GenericLink something like <a jwcid="@GenericLink" 
href="mailto:prichard@sympatico.com">Mr. Prichard</a>

-Harish

James Treleaven wrote:

> Hello All,
> 
> This is so basic, but I need help.  Which component should I use to 
> render a mailto hyperlink?  Can you show me what would the syntax in the 
> html template file should look like?
> 
> 
> I am trying to generate the following html:
> 
> <tr>
> <td>Bell High School</td>
> <td><a href="mailto:prichard@sympatico.com">Mr. Prichard</a></td>
> </tr>
> 
> 
> Tapestry certainly has a learning curve, but it is beautiful.
> 
> cheers,
> James
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org