Hi,

dont know how to do this in one statement, but you can use the
rendered attribute and two tags:

<h:outputText value="no Element"
     rendered="#{createOrganisationMB.selectedOrgaElement != '' />
<h:outputText value="Element#{createOrganisationMB.selectedOrgaElement}
further Informations" />
     rendered="#{createOrganisationMB.selectedOrgaElement == '' />



Felix Japs wrote:
> But I want to display 'no Element' if the String is empty and
> otherwise 'Element' + {createOrganisationMB.selectedOrgaElement} +
> 'further Informations'
> 
>     No need to concatenate. Do this:
> 
>     <h:outputText value="#{(createOrganisationMB.selectedOrgaElement ==
>     '') ?'no Element':'Element'}
>     #{createOrganisationMB.selectedOrgaElement} further Informations}"/>
> 
> 
>     2005/9/6, Felix Japs <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
> 
>         Hi,
> 
>         I would like to do somethin like this:
> 
>         <h:outputText value="#{(createOrganisationMB.selectedOrgaElement
>         == '') ?
>         'no Element':'Element' +
>         {createOrganisationMB.selectedOrgaElement} +
>         'further Informations'}"/>
> 
>         Is it possible to concatenate Strings in EL expressions?
> 
>         bye
> 
>         Felix
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to