• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rich:Datatable rerendering problem

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a page displaying some rich:panel and a rich:dataTable containing a rich:subTable. The subtable are not rendered when the page open but when you click on an icon, it make an ajax call that update the property checked for the rendering of the subtable to true, and it should appear when the a4j:outputPanel is rendered again.

Here is the code of the page :


My problem is that I get a javascript error "idsFromResponse is null" whenever I click on the icon that should expand my subtable. I know that the call is made to the action method because if I refresh the page after clicking the icon, the subtable is expanded (so the property was set to true in the action method).

I also found out that if I remove all the code in the tag <rich:panel style="border:none"> (tag included) then everything works fine. I dont get a javascript error when I click on my icon.

Anybody knows what I should do in order for my rerendering to work without getting the javascript error?

Here is the code of the tweeked page :



Thanks for helping!

Maxime
 
Max Duval
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I finaly fixed my problem. All I had to do was change my <a4j:form> for a simple <h:form>.

Took me a while though!

Maxime
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have the same kind of requirement. Could you please post your bean code also?

Thanks
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"KO KO", please check your private messages for an important administrative matter.
reply
    Bookmark Topic Watch Topic
  • New Topic