Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2583

Extending expression language with "default"-option

    XMLWordPrintableJSON

    Details

    • Type: Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Actually value of expression "user?.name" will by dropped if instance of user is null.

      Any chance to extend this expression with default ( or alternative) value?

      Suggestion:
      ${user?.name| 'Unknown user'} will be evaluated to user's name for existing user or "Unknown user" text elsewhere.

      Same here:
      ${user?.group?.name| 'No Group or User'} will be evaluated to "'No Group or User" if user or user.getGroup() evaluates to NULL.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rar91279 Roman Mertyn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: