aspose file tools
The moose likes JSF and the fly likes h:datatable+selctonemenu problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "h:datatable+selctonemenu problem" Watch "h:datatable+selctonemenu problem" New topic
Author

h:datatable+selctonemenu problem

satya nath
Greenhorn

Joined: Feb 27, 2007
Posts: 9
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

Joined: Sep 17, 2006
Posts: 1282
Please describe each of these terms:
  •   selectonemenu
  •   datatable
  •   second selectonemenu
  •   session scope
  •   managed bean
  • satya nath
    Greenhorn

    Joined: Feb 27, 2007
    Posts: 9
    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

    Joined: Sep 17, 2006
    Posts: 1282
    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
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: h:datatable+selctonemenu problem
     
    Similar Threads
    setting initial values for SelectOneMenus inside of an HtmlDataTable
    Problem with selectOneMenu
    How to set Default selection in h:selectOneMenu
    Multiple selectOneMenu with same value
    JSF: validation error on selectonemenu when refresh button is clicked