This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes Rich:Datatable rerendering problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Rich:Datatable rerendering problem" Watch "Rich:Datatable rerendering problem" New topic
Author

Rich:Datatable rerendering problem

Max Duval
Greenhorn

Joined: Jul 16, 2008
Posts: 7
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 a4jutputPanel 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

Joined: Jul 16, 2008
Posts: 7
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
KO KO
Greenhorn

Joined: Nov 25, 2008
Posts: 1
Hi,

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

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

"KO KO", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rich:Datatable rerendering problem
 
Similar Threads
RichFaces with TabPanel and selectOneMenu not change the tab
Ajax status doesn't stop in IE8
I need help with ajaxSingle, reRender and immediate.
Problem with headers in sorted rich:datatable with subtable
Header, Footer with dynamic data