Hi!

At the moment we have 3 attributes regarding labels and accesskeys:
  1. label
  2. accessKey
  3. labelWithAccessKey
But I don't think that is reasonable. There is a dependency between "label" and "accessKey": the accessKey must appear in the label. (In the short form "labelWithAccessKey" the accesskey is marked by a prefixed underscore.)
So only the labelWithAccessKey is really needed.
We should remove "accessKey" and "labelWithAccessKey" and put the
"labelWithAccessKey"-funktionallity inside of the "label" if there is a
underscore "_" inside.

Advantage:
*  2 attributes less.
*  No JSP changes needed to introduce an accesskey (only the e.g.
   properties have to be changed)

Disadvantage:
*  Real underscores "_" must be quoted e.g. by a backslash "\".

We have a discussion about internationalization to keep the same accessKey in different languages. But this is rather unusual.
Therefore we need acellerator keys (<ctrl>+<x>) in further versions.

Any suggestions?

Udo

Reply via email to