You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Balaji Saranathan <ba...@wipro.com> on 2005/08/17 22:46:24 UTC

Appending strings to JSF EL

Hi,

I wanted to do something like this

<h:outputLink
value="/NavigationServlet?SECURE_OBJECT_ID="+"#{element.id}"
target="_top">

Note that it is for one of the column elements in a DataTable where the
var="element" is initialized. But I figure this cannot be achieved this
way. Is there a way in JSF to create such URLs?

Thanks
Bala




Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

RE: Appending strings to JSF EL

Posted by Balaji Saranathan <ba...@wipro.com>.
Thanks,

I was just typing a mail that I fixed it exactly as you mentioned.
Guess too much JSF is getting into my head that I forgot the basics.
;-)
bala

-----Original Message-----
From: Volker Weber [mailto:users.myfaces@weber-oldenburg.de] 
Sent: Wednesday, August 17, 2005 4:58 PM
To: MyFaces Discussion
Subject: Re: Appending strings to JSF EL


Hi,

for output values you can just insert el into your string

<h:outputLink value="/NavigationServlet?SECURE_OBJECT_ID=#{element.id}"
target="_top">

your '"+"' removed.

regards

  Volker Weber


Balaji Saranathan wrote:
> Hi,
> 
> I wanted to do something like this
> 
> <h:outputLink 
> value="/NavigationServlet?SECURE_OBJECT_ID="+"#{element.id}" 
> target="_top">
> 
> Note that it is for one of the column elements in a DataTable where 
> the var="element" is initialized. But I figure this cannot be achieved

> this way. Is there a way in JSF to create such URLs?
> 
> Thanks
> Bala
> 
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain confidential or privileged information. 
> If you are not the intended recipient, please notify the sender at 
> Wipro or Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
> 




Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Re: Appending strings to JSF EL

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi,

for output values you can just insert el into your string

<h:outputLink value="/NavigationServlet?SECURE_OBJECT_ID=#{element.id}"
target="_top">

your '"+"' removed.

regards

  Volker Weber


Balaji Saranathan wrote:
> Hi,
> 
> I wanted to do something like this
> 
> <h:outputLink
> value="/NavigationServlet?SECURE_OBJECT_ID="+"#{element.id}" target="_top">
> 
> Note that it is for one of the column elements in a DataTable where the
> var="element" is initialized. But I figure this cannot be achieved this
> way. Is there a way in JSF to create such URLs?
> 
> Thanks
> Bala
> 
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any attachments
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential
> or privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or
> Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>