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

HTMLB classlib question...

Hi, I have a question relating to the HTMLB library,

Currently my iView JSP has:

<b><hbj:link

id="link1"

text="Link to google"

reference="http://www.google.com"

target="_TOP"

tooltip="this takes you to: http://www.google.com"

onClick="LinkClick"

/></b>

If I wanted to add the fontSize attribute, how can I do this? I know I have to use the java command "setFontSize (LinkFontSize.fontsize)", but where would I do this? I currently have a JSPDynPage.java that does calls my jsp's is this where I am suppose to put code?

Or do I have to create entire page in Java code(servlet?) or I can create the JSP page, and then in Java use the attribute-changing methods like above?

I am a beginner in all of this and would greatly appreciate any code examples or suggestions you may have. Thank you for your help and patience.

Thank you very much,

Baggett.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 08, 2005 at 05:16 PM

    I think you're missing your import at the top?

    <%@ page import ="com.sapportals.htmlb.enum.LinkFontSize"%>

    Hope this helps,

    Marty

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2005 at 04:38 PM

    Hi Baggett,

    I dont think fontSize is an attribute for an HTMLB textView control (although I may be wrong).

    <hbj:link 
    id="link1" 
    text="<FONT size=3>Link to google</FONT>" 
    reference="http://www.google.com" 
    target="_TOP" 
    tooltip="this takes you to: http://www.google.com" 
    onClick="LinkClick" 
    encode="false"
    />
    

    To answer your other question, you can use the java commands you reference in a jsp like such:

    link1.setOnClick("LinkClick");

    Hope this helps,

    Marty

    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.