cancel
Showing results for 
Search instead for 
Did you mean: 

Wrapping a htmlb link element

Former Member
0 Kudos

I have a long htmlb link that should be wrapped to fit in a FormLayoutCell.

The generated html page has the <nobr> element inside to indicate that the link will not be wrapped. Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Nick,

from the sources I would await the opposite, but I don't have the time to test in detail.

Please provide two infos:

(a) HTMLB build time? (See com.sap.portal.htmlb.lib/META-INF/buildinfo.xml)

(b) Could you minimize your example to determine from which HTMLB component the <nobr> comes from?

Maybe you could provide minimum JSP excerpt with minimum corresponding HTLM excerpt.

Best regards

Detlev

Former Member
0 Kudos

Hi Dethlev,

a.) The build time is Tue Nov 25 01:27:30 2003. Do I have the possibility to choose an other one?

b.) a snippet of the code:

I use a dynpage, created from the templatedynpage. The layout in subject is:

FormLayout fl = this.getForm();

//The layout row has several coloums, but the relevant

//is this one:

FormLayoutRow headerRow = fl.addRow();

FormLayoutCell imgCell = headerRow.addCell();

Link editQuestion = new Link( "edit" ,

"Edit Question" );

editQuestion.setOnClick("editQuestion");

editQuestion.setFontSize( LinkFontSize.STANDARD );

editQuestion.setLinkDesign( LinkDesign.RESULT );

imgCell.addComponent(editQuestion);

This link produces the <nobr> tag in the html output. I tried to use the link element outside of a formlayout, but it's the same.

Thank you, Nick

detlev_beutner
Active Contributor
0 Kudos

Hi Nick,

> The build time is Tue Nov 25 01:27:30 2003.

That's old. That does not mean that the actual implementation will do (even if I had the impression by having a glance at the sources; as far as I saw, each cell is surrounded by a FlowLayout, where the default is wrapping = true, so that no <nobr> will be rendered).

I have EP6 SP2 P27, with means HTMLB build time Nov 2 2004.

So it would be a chance to get rid of this when updating... But I don't promise you more than a chance... If it doesn't work, then the time would have come to check deeper

Hope it helps

Detlev

Answers (0)