Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

selectOneMenu VCL not firing  RSS feed

 
sudhasrinivas pallam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem with selectOneMenu VCL. I have 2 drop downs if we select value in first dropdown we have to get consequte values in second dropdown.


Value Change Listener



here VCL is not getting fired please help me to fix this
 
Brajendra Mathema
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sudhasrinivas

why not use ajax here.. i haven't tried this but i suggest the following:

your first dropdown list has values populated in the form load

when you select value in first drop down in <a4j:support > within the <h:selectonemenu> you can call actionlistener to carry out any manipulation and set the values for the next dropdown

then you can rerender the next drop down

thankyou
 
sudhasrinivas pallam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply brajen mathema
i got the solution for this
actually i was using phases in which i made VCL to fire in Update Model values phase which raised the issue
i removed the phases part and its working fine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!