Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-171

allow custom parameters for view-configs

    XMLWordPrintableJSON

Details

    Description

      it should be possible to extend a class annotated with @Page and annotate this class with @PageParameter.List({@PageParameter(key="customParam", value="#

      {customBean.value1}"), ...})
      if this class is used for navigation, codi should navigate to the page which is represented by the super-class (the class annotated with @Page) + all parameters should be added to the requested url.

      furthermore, it should be possible to use @PageParameter directly at the same view-config class which is annotated with @Page

      as an alternative it should be possible to annotate action methods with @PageParameter.
      e.g. @PageParameter(on = CustomPage.class, key="customParam", value="#{customBean.value1}

      ")
      ... this would be also an alternative to approach mentioned at the beginning. a central class could do all mappings. however, this would reduce the possibility to use existing IDE support and it isn't obvious at the first view that parameters will be added.

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            gpetracek Gerhard Petracek
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: