Maybe this is a simpler solution:

<h:commandLink
onclick="return openWindowBasket()" >
<h:outputText value="#{msg.MENU_TEMP_ORDER1}&nbsp;#{msg.MENU_TEMP_ORDER2}"
escape="false"/>
</h:commandLink>

Hope it helps ;-)

Enrique Medina.

On Apr 11, 2005 1:56 PM, Broekelmann, Mathias <[EMAIL PROTECTED]> wrote:
> Hi Slawek,
> 
> Try to use css style with the attribute white-space: nowrap;
> 
> Example:
> 
> <div style="white-space:nowrap;">
>  <h:commandLink value="#{msg.MENU_TEMP_ORDER}" onclick="return
> openWindowBasket()" />
> </div>
> 
> Use normal spaces in you msg.MENU_TEMP_ORDER value.
> 
> Mathias
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Monday, April 11, 2005 1:36 PM
> > To: [email protected]
> > Subject: nbsp in value attribute
> >
> >
> > hi
> >
> > i want to render a href containing two words and i want to make sure
> > that words will be in one line (not broken into two lines).
> >
> > i tried to do it like this:
> >
> > <h:commandLink value="#{msg.MENU_TEMP_ORDER}" onclick="return
> > openWindowBasket()" />
> > where MENU_TEMP_ORDER=word1&nbsp;word2
> >
> > or like this:
> >
> > <h:commandLink
> > value="#{msg.MENU_TEMP_ORDER1}&nbsp;#{msg.MENU_TEMP_ORDER2}"
> > onclick="return openWindowBasket()" />
> > where MENU_TEMP_ORDER1=word1 and MENU_TEMP_ORDER2=word2
> >
> > in both cases i see rendered explicit: word1&nbsp;word2 instead of
> > word1 word2.
> >
> > how to force jsf to render space?
> >
> > slawek
> >
> >
>

Reply via email to