Skip to Content
author's profile photo Former Member
Former Member

HTMLB Links limitation

Hi All,

I have created a number of java i-views, using a dyn-page and jsps. In my jsp files I am using the htmlb link component to call back to my dyn-page. However, a business requirement is the ability to set different designs on these links. However, design is not an attribute of the htmlb link component.

I have noticed in the style editor there are different types of links, like report links and result links. I have tried wrapping the component with font tags and using an embedded text view for the link. With this I can set it to be bold and italic but the strong requirement is the ability to change COLOUR.

Any suggestions?

Thanks in advance.

Nick Mitchell

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2004 at 10:25 AM

    Hi Nick,

    HTMLB link offers the possibility to set the LinkDesign with link.setLinkDesign(LinkDesign linkDesign).

    But the set of link designs is limited.

    If you want to have a really custom look of your links, you may want to try subclassing DefaultLinkRenderer and register the subclass at the RendererManager, and also subclass LinkDesign to add additional designs. Your subclass should know your additional designs and delegate everything else to its superclass (the DefaultLinkRenderer).

    I've not done it, but this could work. However you'll surely need to decompile some classes of HTMLB to understand how it works. AFAIK there is no tutorial or example on this.

    Regards,

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2004 at 10:41 AM

    Thanks for your response Armin.

    I forgot to mention I am still on EP5 SP5, and the HTMLB link class that I have doesn't contain that setLinkDesign method.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.