You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2010/01/17 19:01:54 UTC

[jira] Commented: (WICKET-2674) AbstractChoice Option Style Hook

    [ https://issues.apache.org/jira/browse/WICKET-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801455#action_12801455 ] 

Juergen Donnerstag commented on WICKET-2674:
--------------------------------------------

I'd prefer to change appendOptionHtml() slightly and add buffer.append("\n<option ") before and 		buffer.append("</option>") after calling appendOptionHtml(). That would allow users to subclass appendOptionHtml() and call super.appendOptionHtml() before or after adding your own attributes. That change however is only possible in 1.5 to avoid 1.4.x apps failing which replace appendOptionHtml() in the same way you do.



> AbstractChoice Option Style Hook
> --------------------------------
>
>                 Key: WICKET-2674
>                 URL: https://issues.apache.org/jira/browse/WICKET-2674
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>            Reporter: Alexander Elsholz
>            Priority: Minor
>
> http://old.nabble.com/switch-css-of-option-element-in-dropdownchoice-td27153757.html
> please add a hook to switch the css or other attributes for a defined option:
> enhanceOption(T element, StrngBuffer buffer)
> getOptionClass(T element)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.