Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

h:datatable+selctonemenu problem  RSS feed

 
satya nath
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added a dynamic selectonemenu to datatable when i select one value in on selectonemenu that must not be repeated in second selectonemenu like that so on .....

i tried this but the first selectone menu also getting the same value what i selected in secone one
please help me guys i used session scope managed bean
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please describe each of these terms:
  •   selectonemenu
  •   datatable
  •   second selectonemenu
  •   session scope
  •   managed bean
  •  
    satya nath
    Greenhorn
    Posts: 9
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    selectonemenu means <h:selectonemenu> i mean select box

    Datatable means in order to display data from database in table format we use datatable in JSf

    Secondselectonemenu its also h:selectonemenu

    Managed bean means backing bean which persorms all database related code/operations

    Sessionscope means in faces-config.xml i kept backingbean scope as session bean


    Please give the solution uyaar
     
    Nicholas Jordan
    Ranch Hand
    Posts: 1282
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Do you have a valueChangeListener for the <h:selectonemenu> and <h:Secondselectonemenu> ?

    Sounds like a ViewHandler issue: "The pluggablity mechanism for allowing implementations of or applications using the JavaServer Faces specification to provide their own handling of the activities in the Render Response and Restore View phases"

    Thus: Datatable should be wrapped with a ViewHandler which should capture changes in the view.

    I am not familiar with jsf so this is the best I can do. HTH
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!