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

Compilation error in htmlb label

Hi,

I am trying to place a label on a BSP page. It gives a compilation error saying "<HTMLB:label>:(Attribute=labeltype) The attribute does not exists. (Compile time validation error)."

Following is the code i am using.

<htmlb:content>

<htmlb:page>

<htmlb:tray id="TRAY1" >

<htmlb:trayBody>

<htmlb:label id = "LBL1"

for = "F1"

text = "Field 1"

labelType = "MEDIUM" />

<htmlb:inputField id = "F1"

type = "STRING"

onValueHelp = "onHelp" />

<htmlb:button id = "OK"

design = "STANDARD"

text = "OK"

width = "100" />

</htmlb:trayBody>

</htmlb:tray>

</htmlb:page>

</htmlb:content>

Can anybody tell me why i am getting this error.

Thanks,

Komal.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2004 at 05:03 PM

    Hello Komal-

    I do not know of any attribute called 'LabelType' in the HTML tag library.

    What is your purpose for using this LabelType attribute? Perhaps it can be accomplished by one of the other valid and accepted attributes of the <HTMLB:Label> control. If not, maybe you can devise a work around by some nifty scripting and creative coding. 😊

    I am attaching a list of the attributes for the label control. I have used this control extensively in the past and I do not know of any other attributes that are supported by it.

    Hope this helps,

    - Vik.

    <HTMLB:Label> Attributes ->

    design

    encode

    id

    labelFor

    required

    text

    tooltip

    width

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Brian McKellar

      Hi,

      thanks for all the help. i have now found the solution. yes i could have found it earlier if i had examined OSS note 616900 more carefully. i think i was looking for labels and missed that. anyway thanks to you all.

      Komal.