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]=-
tooltip "missing } after property list"
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests