CreamTec

AjaxSwing => Community Technical Support => : jlessner April 27, 2009, 04:44:27 PM

: Adding HTML links?
: jlessner April 27, 2009, 04:44:27 PM
Is there a way to place HTML links on a web page which was created with AjaxSwing? We would like to display product icons on a personalized welcome page which refer to other HTML pages generated from a content management system.

Regards,
Jan
: Re: Adding HTML links?
: Support Team April 27, 2009, 05:47:34 PM
Yes, of course. There are several options:

  • Use JLabel with HTML link (<html><a href="http://yahoo.com">YAHOO</a></html>)
  • Programmatically from any event handler by calling ClientAgent.getCurrentInstance().getHTMLPage().setRedirectURL()

  • See
    http://creamtec.com/products/ajaxswing/doc/api/com/creamtec/ajaxswing/core/ClientAgent.html#getCurrentInstance()
    http://creamtec.com/products/ajaxswing/doc/api/com/creamtec/ajaxswing/rendering/AbstractDocument.html#setRedirectURL(java.lang.String)
    : Re: Adding HTML links?
    : jlessner April 28, 2009, 02:35:37 AM
    That's really "shocking" simple! I'm really amazed by that toolkit  :)

    Thanks, Jan
    : Re: Adding HTML links?
    : Support Team April 28, 2009, 10:46:15 AM
    Glad you liked it. You can help us to continue improving the product by purchasing a commercial license and support:-)
    : Re: Adding HTML links?
    : jlessner April 28, 2009, 11:53:36 AM
    Sure, and we already have one for a first pilot project :)
    I think some more will follow. The next project with a web frontend is already in sight.
    : Re: Adding HTML links?
    : Support Team April 28, 2009, 01:10:31 PM
    OK, then you guys are good - thanks for the support. What company are you representing?

    : Re: Adding HTML links?
    : jlessner April 29, 2009, 03:01:09 AM
    arvato services, Germany. The order has been placed at our central buying department last week. It may take up to three weeks until it gets through to you - god only knows why ;)
    : Re: Adding HTML links?
    : Support Team April 29, 2009, 10:37:58 AM
    I see. I don't believe we've received any official license request yet, but in any case welcome to CreamTec customers team! We'd be glad to help you in any way.