voyageInput = new TextField<String>( "voyageInput", new PropertyModel<String>( this, "voyageNumber" ) );
add( voyageInput.setLabel( Model.of( "Voyage" ) ).setOutputMarkupId( true ) );
voyageSelector = new DropDownChoice<String>( "voyageSelector",
new PropertyModel<String>( this, "voyageSelected" ),
fetch.voyages() );
voyageSelector.add( new AjaxFormComponentUpdatingBehavior( "onchange" )
{
@Override
protected void onUpdate( AjaxRequestTarget target )
{