Skip to content

Commit

Permalink
added additional attributes to allow for index dependent attributes
Browse files Browse the repository at this point in the history
Issue: WICKET-2776


git-svn-id: https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x@922649 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Juegen Donnerstag committed Mar 13, 2010
1 parent 3b96b56 commit 44c0271
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ else if (displayValue != null)

// Allows user to add attributes to the <input..> tag
{
IValueMap attrs = getAdditionalAttributes();
IValueMap attrs = getAdditionalAttributes(index, choice);
if (attrs != null)
{
for (Map.Entry<String, Object> attr : attrs.entrySet())
Expand Down Expand Up @@ -559,9 +559,11 @@ else if (displayValue != null)
/**
* You may subclass this method to provide additional attributes to the &lt;input ..&gt; tag.
*
* @param index
* @param choice
* @return tag attribute name/value pairs.
*/
protected IValueMap getAdditionalAttributes()
protected IValueMap getAdditionalAttributes(final int index, final T choice)
{
return null;
}
Expand Down

0 comments on commit 44c0271

Please sign in to comment.