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

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Components

      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.

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

              Created:
              Updated: