Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4046

Allow programmatic component with ui:include with ui:param

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.11
    • None
    • None

    Description

      Since 2.2 it is possible to call vdl.createComponent and pass an ui:include in this way:

                  Map<String, Object> attributes = new HashMap<String, Object>();
                  attributes.put("src", "/addSimpleIncludeVDL_1_1.xhtml");
                  UIComponent component = vdl.createComponent(facesContext, 
                      "http://java.sun.com/jsf/facelets", 
                      "include", attributes);
      
      

      It works but there is no way to pass parameters as described in:

      http://stackoverflow.com/questions/35178151/programmatically-include-xhtml-fragment-in-myfaces

      The question is how to pass ui:param components. Maybe use vdl.createComponent and pass ui:param, but note ui:param does not have an underlying component, because it is a facelet tag, but a standard notation for this case could be useful.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: