DropDowns inside Table Component

View: New views
3 Messages — Rating Filter:   Alert me  

DropDowns inside Table Component

by gary101 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to access the value in the dropdowns on each row inside table.  It should be a simple answer but I can not find an example anywhere.  I have a table that I added a column to through table layout that has it component type set to dropdown.  So basically a table where each row for that column will be a dropdown.  Then I selected the dropdown and use Bind to data to bind it to a database provider or query ( this step is done outside of Table Layout ).  All I want to do is get the values for each dropdown in each row when I press a button.  There is an expression in Value Expression field in Table Layout that is set for each column when you use static text as component type for column.  Should I set this to something in order to get value from dropdown or is there another way to access theses values?

Re: DropDowns inside Table Component

by krysP :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Check out this sample app... download the plugin "Visual Web JSF Post Release samples" , then File>NewProject>Samples>Web>Visual JSF>Single Page CRUD with table.

HTH


Re: DropDowns inside Table Component

by gary101 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the info.  It was just what I needed.
krysP wrote:
Check out this sample app... download the plugin "Visual Web JSF Post Release samples" , then File>NewProject>Samples>Web>Visual JSF>Single Page CRUD with table.

HTH