We've made sure that <stripes:text>, <stripes:textarea>, <stripes:select> elements accept boolean-like values for attributes like:
...This allows us to embed EL expressions into the afore mentioned attributes that in turn yield the appropriate html markup. We seem to have forgotten to apply this behaviour to the <stripes:option> element. In the following snippet, my ActionBeanContext has a getUserDateTimeZone() read method, that returns a org.joda.time.DateTimeZone instance representing the current request's timezone. Let's pretend this requests timezone is set to America/Vancouver, the following code:
...will produce a select box whose options are all in a selected state (the last one, America/Regina being displayed as the selected option):
It is my opinion that the <stripes:option> element's selected attribute should behave more like the <stripes:text> element's readonly attribute, whereby it accepts boolean-like expressions and in accordance produces the correct html markup for the supplied condition value.