I usually return the entire javascript link as one piece of text:

    public String getHelpName()
    {
        return "javascript:openHelp('/pf-help','help_" + getTaskletStateId() + 
"')";
    }

Then:

<a jwcid="helpLink">Help</a>

which is:
        <component id="helpLink" type="GenericLink">
        <binding name="href" expression="helpLink" />
        </component>

    public String getHelpLink()
    {
        return ((Visit)getPage().getVisit()).getCurrentState().getHelpName();
    }

Bottom-line, I build the whole string in java.

HTH,

Mark



-----Original Message-----
From: Mário Lopes [mailto:[EMAIL PROTECTED]
Sent: Tue 5/23/2006 3:03 PM
To: Tapestry users
Subject: Simple tag enclosing
 
Hi, how can I do the following:

        <a href="javascript:openChatWindow(<span jwcid="id_contactoId"/>);">
                <span jwcid="id_contactoText" />
        </a>

Thanks

-- Mário

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



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

Reply via email to