This content has been marked as final.
Show 5 replies
-
1. Re: Tooltip and ajax status component
ilya_shaikovsky Dec 2, 2009 8:47 AM (in response to tkalactomo)try to call it using js api on status onstart and hide on onclick.
-
2. Re: Tooltip and ajax status component
tkalactomo Dec 2, 2009 9:18 AM (in response to tkalactomo)"ilya_shaikovsky" wrote:
try to call it using js api on status onstart and hide on onclick.
In the richfaces developers guide says:<rich:panel id="panelId" onclick="#{rich:component("tooltipId")}.show(event);" /> <a4j:form> <rich:toolTip id="tooltipId" attached="false" value="This is a tooltip."/> </a4j:form>
And it says:
Notes:
To provide <rich:toolTip> component proper work in complex cases do the following:
*specify "id's" for both <rich:toolTip> and component it is applied to;
*define the <rich:toolTip> as last child, when nesting it into the component the <rich:toolTip> is applied to;
*put the <rich:toolTip> into <a4j:form> when invoking it with JS API function.
In my jsp page i have
<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="r"%>
declaration so i tried like this:...onstart="#{r:component("tooltipId")}.show(event);}"...
It doesn't work and I followed all important notes from richfaces developer guide.
I use richfaces 3.3.0 version maybe that is a problem and a guide is for 3.3.2 version.
Can you please post some code that could maybe help... -
3. Re: Tooltip and ajax status component
tkalactomo Dec 3, 2009 4:42 AM (in response to tkalactomo)When invoking tooltip from onclick event or some other event from components
toltip invokes (shows) and works just fine:<r:panel onclick="#{r:component('ccToltipID')}.show(event);"> </r:panel> <r:toolTip for="form" followMouse="true" id="ccToltipID" attached="false" value="#{msg['loading']}.." styleClass="crno" /> <h:form id="forma">...
but when invoking from onstart event of a4j:status comeponents
browser shows:<a:status id="ajaxStatus" onstart="#{r:component('ccToltipID')}.show(event);"
Greška: Permission denied to access property 'parentNode' from a non-chrome context Izvorna datoteka: http://localhost:8080/orkaRif/faces/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/tooltip.js Linija: 17 in tooltip js: ...relTarg=relTarg.parentNode;}}
Is that some kind of bug or what? -
4. Re: Tooltip and ajax status component
ilya_shaikovsky Dec 3, 2009 9:53 AM (in response to tkalactomo)yes... missed one point.. status do not passes any event to handlers - so tooltip can't be initialized.
you could try to store event for example with mousemove event on document observing and then pass it to function. but not sure if this would be good workaround.. -
5. Re: Tooltip and ajax status component
tkalactomo Dec 8, 2009 9:12 AM (in response to tkalactomo)"ilya_shaikovsky" wrote:
yes... missed one point.. status do not passes any event to handlers - so tooltip can't be initialized.
you could try to store event for example with mousemove event on document observing and then pass it to function. but not sure if this would be good workaround..
OK. Thank you for your time and help ilya_shaikovsky.
But as you said that is not a effect that we want.
Will find something else without tooltip.
Thanks again ;).