0

Having spinners in each p:columnS of my dataTable i saw that the valueChangeListener methode is simply never called....so i tried the f:ajax listener, which is called but can't provide me with the selected value....it's madness!! I also read this great page : When to use valueChangeListener or f:ajax listener? but still i can't get it working..

I guess that the construction within a p:columnS is a bit more complex, for example : it's difficult to give a dynamic ID to each selectOneMenu (even with rowIndex from dataTable and colIndex from p:columns component) SO has someone ever resolved that ???

Community
  • 1
  • 1
  • Please provide some code that we can help you with. Also try to focus on one problem in each topic. – Emil Kaminski Jul 06 '15 at 09:24
  • Finally, i made it! I overrided the embedded pf jquery.ui (1.10.3) with the jquery.ui 1.10.4, i then replaced p:spinner by a simple input followed by a jquery("input").spinner() (that simple command failed in 1.10.3 with the message 'spinner is not a function'. Some hack needed to trigger the change event, i'll post some code soon :). CHeers – alaakaazaam Jul 08 '15 at 21:37
  • to readers : i'm forced to use primefaces4 which comes along with jquery.UI 1.10.3 – alaakaazaam Jul 08 '15 at 21:38
  • Here it is, – alaakaazaam Jul 10 '15 at 19:27
  • Now each ajax call is fully completed and tough not totally ok i managed to get a coherent system, thanks to jQuery – alaakaazaam Jul 10 '15 at 19:30
  • Note that the dynamic ID was not possible with a p:spinner : id="updateQj_#{rowIndex}_#{colIndex}_#{rowQj.idQbt} – alaakaazaam Jul 10 '15 at 19:30

0 Answers0