Current codebase renders different output for read-only inputText and
read-only selectOneChoice as I think they would be same.

tr:selectOneChoice renders only <span>s with value between,
tr:inputText renders <span><div>value</div><span>. 

Probably all non-elements outputs (which call
FormElementRenderer.encodeAllAsNonElement) should lead to similar  HTML
code  to accomplish consistent behaviour (on client side) of readOnly
components.

Btw. is  af|selectOneChoice:readOnly valid skin selector? As I see in
SimpleSelectOneRenderer.renderNonElementContent there in no chance to
render it.



Martin

Reply via email to