Hello,

is there by now a common solution for this problem?
In a datatable I tried a workaround by using the verbatim tag, but inside I
cannot use EL, thus cannot access the row-specific variable.

            <f:verbatim>
              < a id="mailto_link"
               
href="mailto:?subject=SomeSubject&amp;body=#{var.myProperty}";
                style="color:black;"> Send Mail
              < /a>
             </f:verbatim>

The body of the mail will contain the string #{var.myProperty}
Is it possible to store the the row-specific body of the mail in a variable
and access it from the  -tag?

Regards
Jan
Andrew Robinson-5 wrote:
> 
> Probably not. I just had a similar issue. According to the servlet
> specification, a browser that doesn't have cookies enabled must have
> all encoded URLs appended with the session ID in ";JSESSIONID="
> fashion. According to the JSF specification, the encodeResourceURL is
> required to call the HttpServletRequest.encodeURL. This is the method
> that is required to append the JSESSIONID.
> 
> In my solution, I had a custom component, so I just stopped calling
> "encodeResourceURL", but with outputLink, I know of no such solution
> without overriding it. Perhaps there is something in the servlet
> specification of some switch you can add to your web.xml to stop this
> feature. I'm not sure (I stopped looking when I found a workaround).
> 
> Good luck,
> Andrew
> 
> On 3/19/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:
>> Hi!
>>
>>
>> I use the standard outputLink action for a mailto link. The problem is
>> that
>> JSF adds the session id to the mailto URL. Do you know if it's possible
>> to
>> prevent this?
>>
>> Thanks.
>>
>> -Matthias
>>
>>
>>
> 
> 
-- 
View this message in context: 
http://www.nabble.com/mailto-outputLink-with-session-id-problem-tf1305834.html#a5481012
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to