Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2108

Add textbox type constants to avoid hard-coding them in richlets or defining the own ones

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Components
    • Labels:

      Description

      When the textbox type is wanted to set in a richlet, it have to be hard-coded, or the type have to be defined in a custom constant. For instance:

      Textbox textbox = new Textbox();
      textbox.setType("password");
      ...

      It would be great the type constants is provided by ZK framework. So the type can be set like:

      Textbox textbox = new Textbox();
      textbox.setType(Textbox.TEXT);
      ...

      I've attached a patch which can help you to implement that feature.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mariokr mariokr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: