Ok,
Here is a javascript snippet that will load the secondary select box when the primary select box is changed (I am using JQuery here).
Code:
$('#vehicleMake').change(
function() {
$.getJSON('${lookupModelUrl}',
{vehicleMakeId: $(this).val(), ajax: 'true'},
function(data) {
var html = '<option value=""></option>';
var len = data.length;
for (var i = 0; i< len; i++) {
html += '<option value="' + data[i].id + '">' + data[i].description + '</option>';
}
$('#vehicleModel').html(html);
}
);
}
);
The primary select box has an id of "vehicleMake" and the secondary select box has an id of "vehicleModel". The method you invoke on your controller should return a json object with an id and description attribute if you copy my example verbatim.
Hope this helps.
Marty