on 05-21-2004 5:42 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.