Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Associative combos in a Grid

 
Gustavo Coelho
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need a direction to encode a screen which has a grid with a relationship between two lists of combos associative. On one side I have combo(s) of state and other combo(s) of the city, for each selected state should load the combo of town carrying all cities for this state.

I do not know how many combos of state will appear in the datatable as they would come up as a result of a iterator process.

Example

uf [0] = 'SP'
city ​​[0] = 'Sao Paulo'
uf [1] = 'MG'
city ​​[1] = 'Belo Horizonte'
uf [2] = 'BA'
city ​​[2] = 'Savior'

My issue is to mount it on the screen, because I need to associate each combo with an item from this list and save it all by pressing a button.

As follow there is the code of the page and the associated class.

Thanks to collaboration, any instruction would be helpfull
Remembering the screen is using JSF 1.2 and http://myfaces.apache.org/tomahawk

Page:



Class:



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic