|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Bubble refresh problemHi,
When calling bubble.refresh (with or without parameters) I get the following error : "I has no properties". I googled for quite some time and found out that I needed rc7 of jsf-extensions. Both the jar's metainf and firebug tell me I'm using the right version. Attached is a screenshot of firebug showing the error and the file name. Has someone already encountered the same problem ? Did you find some solution ? Thanks a lot, Arnaud --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Bubble refresh problem"jsf-extension" version is correct. However, I didn't find any issue
with bubble.refresh. Clear the browser cache and then try it, that may help. -Animesh On 5/15/08, Arnaud Brand <arnaud.brand@...> wrote: > Hi, > > When calling bubble.refresh (with or without parameters) I get the > following error : "I has no properties". > I googled for quite some time and found out that I needed rc7 of > jsf-extensions. > Both the jar's metainf and firebug tell me I'm using the right version. > Attached is a screenshot of firebug showing the error and the file name. > > Has someone already encountered the same problem ? > Did you find some solution ? > > Thanks a lot, > Arnaud > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > users-unsubscribe@... > For additional commands, e-mail: > users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Bubble refresh problemThanks, but it didn't help.
I though it could be related to the comlpexity of the page so I set up a simple page (attached) based on the tlddocs examples. Doesn't work either : it's still the same error. I'm using woodstock 4.3 could that be the cause of the failure ? Could you please try the attached jsp ? Thanks Arnaud Animesh Sahay a écrit : > "jsf-extension" version is correct. However, I didn't find any issue > with bubble.refresh. > Clear the browser cache and then try it, that may help. > > -Animesh > > On 5/15/08, Arnaud Brand <arnaud.brand@...> wrote: > >> Hi, >> >> When calling bubble.refresh (with or without parameters) I get the >> following error : "I has no properties". >> I googled for quite some time and found out that I needed rc7 of >> jsf-extensions. >> Both the jar's metainf and firebug tell me I'm using the right version. >> Attached is a screenshot of firebug showing the error and the file name. >> >> Has someone already encountered the same problem ? >> Did you find some solution ? >> >> Thanks a lot, >> Arnaud >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: >> users-unsubscribe@... >> For additional commands, e-mail: >> users-help@... >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > > <?xml version="1.0" encoding="UTF-8"?> <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf" xmlns:w="http://www.sun.com/webui/webuijsf"> <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> <f:view> <webuijsf:page id="page1"> <webuijsf:html id="html"> <webuijsf:head id="head" title="#{msgs.tree_navTreeTitle}"> <w:themeLinks /> </webuijsf:head> <webuijsf:body id="body"> <webuijsf:form id="form"> <webuijsf:bubble id="bubble" title="#{planificationsBackingBean.testText}"> <webuijsf:staticText text="Bubble refresh example..." /> <br/> <webuijsf:staticText text="#{planificationsBackingBean.testText}" /> <br/> <w:staticText text="#{sequencesBackingBean.sysMillis}"/> </webuijsf:bubble> <webuijsf:textField id="field1" text="#{planificationsBackingBean.testText}" onKeyUp="return refreshBubble();"/> <webuijsf:script> // Refresh bubble. function refreshBubble() { var domNode = document.getElementById("form:bubble"); return domNode.refresh("form:field1_field"); } </webuijsf:script> </webuijsf:form> </webuijsf:body> </webuijsf:html> </webuijsf:page> </f:view> </jsp:root> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Bubble refresh problemI tried out your jsp code and I am able see it working.
I have attached the jsp file and screenshot of the test example. I tried the eaxmple with the woodstock 4.3 build-3, it should be available to you on 16th May, 08. It should also work with the build that you are using, there wasn't any changes made to the "refresh" feature. -Animesh On 5/15/08, Arnaud Brand <arnaud.brand@...> wrote: > Thanks, but it didn't help. > I though it could be related to the comlpexity of the page so I set up a > simple page (attached) based on the tlddocs examples. > Doesn't work either : it's still the same error. > > I'm using woodstock 4.3 could that be the cause of the failure ? > Could you please try the attached jsp ? > > Thanks > Arnaud > > Animesh Sahay a écrit : > > > > "jsf-extension" version is correct. However, I didn't find any issue > > with bubble.refresh. > > Clear the browser cache and then try it, that may help. > > > > -Animesh > > > > On 5/15/08, Arnaud Brand <arnaud.brand@...> wrote: > > > > > > > Hi, > > > > > > When calling bubble.refresh (with or without parameters) I get the > > > following error : "I has no properties". > > > I googled for quite some time and found out that I needed rc7 of > > > jsf-extensions. > > > Both the jar's metainf and firebug tell me I'm using the right version. > > > Attached is a screenshot of firebug showing the error and the file > name. > > > > > > Has someone already encountered the same problem ? > > > Did you find some solution ? > > > > > > Thanks a lot, > > > Arnaud > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > users-unsubscribe@... > > > For additional commands, e-mail: > > > users-help@... > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > users-unsubscribe@... > > For additional commands, e-mail: > users-help@... > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > users-unsubscribe@... > For additional commands, e-mail: > users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Bubble refresh problemOK, back from lunch ;-) Thanks for your answer. I copy-pasted your example, redownloaded the component jars, killed all browser caches, deployed, restarted glassfish and tried. I had the same error. I replaced the js files in jsf-extensions-dynamic-faces with their -max equivalents. The error lies at line 923 : var render = components.getElementsByTagName('render'); components is null. This is due to a badly formatted XML in the response. transport.responseText show the following data : "<partial-response><components><render id=\"form:bubble\"><markup><![CDATA[{\"id\":\"form:bubble\",\"title\":\"dedxxs\",\"widgetType\":\"bubble\",\"visible\":false,\"contents\":[{\"id\":\"form:j_id_id10\",\"visible\":true,\"widgetType\":\"staticText\",\"value\":\"Bubble refresh example...\",\"escape\":true},{\"fragment\":\"<br />\"},{\"id\":\"form:j_id_id12\",\"visible\":true,\"widgetType\":\"staticText\",\"value\":\"dedxxs\",\"escape\":true},{\"fragment\":\"<br />\"},{\"id\":\"form:j_id_id14\",\"visible\":true,\"widgetType\":\"staticText\",\"value\":\"Bubble refresh example...\",\"escape\":true}],\"tabIndex\":-2147483648,\"closeButton\":true,\"autoClose\":true}]]></markup></render></components>" As you can see, it's missing the root element close tag (</partial-response>). This leads (on firefox) to a transport.responseXML that's not null and not undefined : responseXML contains a single child "<parsererror>". So the "components" nodes we try to retrieve at line 922 do not exist, which causes the NPE at line 923. I'm not sure wether I should file a bug at jsf-extensions to handle that case and die more gracefully or not. Anyway, I can't understand why the response contains bad XML. Any clues ? Thanks, Arnaud Animesh Sahay a écrit : I tried out your jsp code and I am able see it working. I have attached the jsp file and screenshot of the test example. I tried the eaxmple with the woodstock 4.3 build-3, it should be available to you on 16th May, 08. It should also work with the build that you are using, there wasn't any changes made to the "refresh" feature. -Animesh On 5/15/08, Arnaud Brand arnaud.brand@... wrote: |
|
|
Re: Bubble refresh problem
Is the javax.faces.LIFECYCLE_ID property defined in web.xml?
Arnaud Brand wrote: Hi, |
|
|
Re: Bubble refresh problemSorry for having bothered you with that. It works like a charm now. Awesome ;-) Thanks a lot, Arnaud Dan Labrecque a écrit : Is the javax.faces.LIFECYCLE_ID property defined in web.xml? |
| Free Forum Powered by Nabble | Forum Help |