tooltip "missing } after property list"

UI Components for JSF
Post Reply
ahoehma
Posts: 8
Joined: 11 Nov 2009, 10:30
Location: Leipzig
Contact:

09 Sep 2010, 10:13

hihi,

if the text of a tooltip contains the character ' then the tooltip cause a js error

<p:tooltip id="working">
<h:outputText value=" foo ' bar"/>
</p:tooltip>

<script type="text/javascript"><!--
PrimeFaces.onContentReady('formularForm:j_id110:0:j_id117', function() {
formularHotfixesForm_j_id110_0_working_widget = new PrimeFaces.widget.Tooltip({global:false,forComponent:'formularForm:j_id110:0:j_id117',content:' foo ' bar',show:{when:{event:'mouseover'}, delay:140, effect:{length:100, type: 'fade'}},hide:{when:{event:'mouseout'}, delay:0, effect:{length:100, type: 'fade'}},position: {corner:{target:'bottomRight',tooltip:'topLeft'}},style:{name:'blue'}});
});

<p:tooltip id="not_working">
<h:outputText value=" foobar "/>
</p:tooltip>

cya
andreas
-=[http://www.ahoehma.de]=-

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Sep 2010, 11:05

Please create an issue ticket for this, I think we can fix it by escaping the content, also until we improve this on our end, you can still use if you escape it yourself and provide it as the value of tooltip.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests