Since you don't need to POST the value, you don't actually need to use the select component.
Java
@Property private int currentRows;
@Inject private ComponentResources resources;
public Link getEventLink(int rows) {
Link link = resources.createEventLink("setRows", rows);
link.addParameter("foo", "bar");
return link;
}
Object onSetRows(int rows) {
...
return this;
}
TML
<select id="rows">
<t:loop source="[10,20,30,40,50]" value="currentRows">
<option value="${getEventLink(currentRows)}">${currentRows}</option>
</t:loop>
</select>
Javascript (jQuery)
$('#rows').change(function() {
document.location.href = $(this).val();
});
You could easily adapt this and use a proper SelectModel and the select component.