Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6436

Please add CompoundPropertyModel.of(T object) method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0-M6
    • 8.0.0-M7
    • wicket
    • None

    Description

      org.apache.wicket.model.Model has very convenient method:

      public static <T extends Serializable> Model<T> of(T object)
      

      Could you please add simmilar method :

      public static <T extends Serializable> CompoundPropertyModel<T> of(final T object) {
      	return new CompoundPropertyModel<>(object);
      }
      

      to org.apache.wicket.model.CompoundPropertyModel ?

      By the way CompoundPropertyModel has already

      public static <Z> CompoundPropertyModel<Z> of(IModel<Z> model)
      {
      	return new CompoundPropertyModel<>(model);
      }
      

      method, where Z is not Serializable. Is this ok?

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              eximius Kamil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: