cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation error in htmlb label

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

Hi,

check OSS Note No. 616900

Regards

Raja

Former Member
0 Kudos

Hi Vik,

I am working with WAS 6.2 and using htmlb provided as BSP extensions. It shows "labelType" as an attribute of <htmlb:label> in tag browser. Even if i remove the labelType it gives same error. Currently i have devised a workaround by using textview instead of label. but i want to know why this error is there. also similar error is generated with some other controls such as table view for "columnCount" attribute even if i am not using that attribute.

Regards,

Komal.

Former Member
0 Kudos

Hi Raja,

i have looked at this OSS note but i am not able to find a suitable solution of my problem. Do you have any more suggestions.

Thanks,

Komal.

athavanraja
Active Contributor
0 Kudos

Hi,

Which support package level you are in.

Though not with label, i have earlier faced similar problem with table view, where some attributes were introduced with the BSP extension but the implementation where not ready in some support packages and i am sure yours is one of those kind of problem.

We are in basis support package level 24 and your code works fine.

Regards

Raja

Former Member
0 Kudos

Hi,

I have checked support package level.we too are in basis support package level 24. do we have to do something else activate some service or something.

Thanks,

Komal.

former_member181879
Active Contributor
0 Kudos

Komal,

One of the biggest mistakes that escaped from my keyboard landed in SP24 and is exactly the problem you describe. There is an OSS note 621674 that describes exactly this problem and the fix for it.

The help given before to look at OSS note 616900 was 100% correct. This note cross references all other notes per service pack. So, even if you had to read all the relevant SP24 notes, you would have had the answer in a few minutes. Amazingly, as that the error text you originally appended "Compile time validation error", stands verbatim in 616900.

++bcm

Former Member
0 Kudos

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.