« Return to Thread: Bubble refresh problem

Re: Bubble refresh problem

by Arnaud Brand :: Rate this Message:

Reply to Author | View in Thread


OK, 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:
  
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@...

 « Return to Thread: Bubble refresh problem

LightInTheBox - Buy quality products at wholesale price