cancel
Showing results for 
Search instead for 
Did you mean: 

Pls help! HTMLB content styling...

Former Member
0 Kudos

Hi, question looks long but it's b/c I included some code fragments. From myunderstanding, iView certification requires branding and that means the use of the HTMLB tag library. I have a few questions on the content styling, I will use an html button as an example:

<b>1.)</b> Can I customize my own buttons inside the HTMLB tags or am I restricted only to the properties available in the HTMLB tag. For example, in the HTMLB button tag, can I try to do something like this with the 'regular' style property:

<hbj:button id="button"

text="Initial 228"

style="background-color: red;"/>

*I got an error when I tried to do this on my iView JSP.

<b>2.)</b> Is it possible to use the class property like:

<hbj:button id="button"

text="Initial 228"

class="testStyleClass"/>

<b>3.)</b> Can I mix htmlb with regular html? For example:

...

<hbj:button id="button"

text="Initial 228"

onClick="onInitialButtonClicked"/>

<input style="background-color: red; width: 50px; height: 20px;" type="button" value="Hello world!">

...

<b>4.)</b> Can I add event attributes to the htmlb tag:

<hbj:button id="button"

text="Initial 228"

onmousedown="onInitialButtonClicked"/>

<b>5.)</b> From my understanding, the iView certification wants to prove that I know how to use the HTMLB tag library. So if hmtlb tags and my own 'regular' html can mix, how much of the content should be my own customized and how much of it has to be from htmlb library?

<b>Would my JSP with the above code mixing and added properties still be considered a certified iView?</b>

I am a little confused right now, and if possible, can you please provide some basic examples?, that would be very appreciated!

Thanks so much!

Baggett

Accepted Solutions (1)

Accepted Solutions (1)

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Baggett,

I'll try and take a stab at this multi part question..

1.) Can I customize my own buttons inside the HTMLB tags or am I restricted only to the properties available in the HTMLB tag. For example, in the HTMLB button tag, can I try to do something like this with the 'regular' style property:

<hbj:button id="button"

text="Initial 228"

style="background-color: red;"/>

*I got an error when I tried to do this on my iView JSP.

<u>You can customize the output by applying html formatting (see the answer in number 3. I don't think you can apply styles as you suggest (done through theme editor--the whole point of HTMLB is to provide one consistent look and feel across all controls.</u>

2.) Is it possible to use the class property like:

<hbj:button id="button"

text="Initial 228"

class="testStyleClass"/>

<u>I dont think "class" is a valid HTMLB attribute for button. Refer to the API's for all of the exact attributes possible for each control.</u>

3.) Can I mix htmlb with regular html? For example:

...

<hbj:button id="button"

text="Initial 228"

onClick="onInitialButtonClicked"/>

<input style="background-color: red; width: 50px; height: 20px;" type="button" value="Hello world!">

...

<u>I'm not sure why you would want to embed a button within a button, but you can embed straight HTML like you suggest by setting encode =false like such</u>


<hbj:textView
				 id="txtEditSelection"
				 text="<FONT size=3>Please select the type of modifications you would like to make:</FONT>"
				 design="STANDARD"
				 encode="false"
			/>

4.) Can I add event attributes to the htmlb tag:

<hbj:button id="button"

text="Initial 228"

onmousedown="onInitialButtonClicked"/>

<u> Refer to answer in question 2, but you can only use attributes listed in the API docs. You can use both client side java events and java dynpro events.</u>

5.) From my understanding, the iView certification wants to prove that I know how to use the HTMLB tag library. So if hmtlb tags and my own 'regular' html can mix, how much of the content should be my own customized and how much of it has to be from htmlb library?

<u>It's really up to the developer and depends on each circumstance as to how much gets "mixed". For example, you may wish to use normal table layouts but use HTML controls.</u>

Hope this helps,

Marty

Former Member
0 Kudos

Hi Marty! Thanks a great deal for your response! I will analyze it and get back to you!

Thanks so much again,

Baggett.

Former Member
0 Kudos

Hi Marty, I have posted a slightly different question up, it is called "HTMLB classlib question...". If you have time, it would be greatly appreciated if you can take a look!

Thanks again so much,

Baggett.

Answers (0)