This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Aug 14, 2008 11:40 AM by Max Cheban  
Max Cheban   4 posts since
Jul 18, 2008
Currently Being Moderated

Aug 13, 2008 2:57 PM

q:treeTable useAjax="true" and inner h:commandButton

Hello,

 

I have a problem using treeTable component with useAjax="true"

 

I place h:commandButton into q:column of q:treeTable component and add f:setPropertyActionListener for this button.

 

The scenario is following:

I expand some node of tree then press button of any expanded node (that wasn't rendered before.

Wrong parameter is passed to managed bean. The value passed is next to expanded node.

 

For example:

 

Node1

edit

--SubNode1

edit

--SubNode2

edit

--SubNode3

edit

Node2

edit

Node3

edit

 

Node1 was expanded using ajax, SubNode1's edit button is pressed. SubNode1 is expected to be passed to managed bean, but Node2 is passed

 

Env:

 

Tomcat 6.0.16

Quipukit version 1.5

MyFaces  1.2.0

Facelets 1.1.14

Attachments:
Dmitry Pikhulya TeamDev Ltd. 162 posts since
Jan 5, 2007
Currently Being Moderated
1. Aug 13, 2008 6:49 PM in response to: Max Cheban
Re: q:treeTable useAjax="true" and inner h:commandButton

Hello Max,

 

There is a limitation in the current TreeTable implementation that you can't use editable components and command components inside of TreeTable that is set up to expand its nodes using Ajax. As a workaround, you can either set preloadedNodes="all" , or useAjax="false" for your TreeTable.

 

Feel free to ask if you have any further questions.

 

Regards,

Dmitry

More Like This

  • Retrieving data ...