Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-11

Impossible to set "prefix" attribute in RenderContextAttributes

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0
    • struts
    • None

    Description

      There is an undocumented feature, which implies being able to specify a "prefix" for an attribute in RenderContextAttributes (struts-portlet-config.xml), instead of just the complete attribute name.

      However, I have not been able to actually specify a "prefix"-type attribute.

      In the definition of the object that represents the configuration entry, the "prefix" property of the Attribute class has a boolean getter (boolean isPrefix()) and String setter (void setPrefix(String value)), and I think this is stopping me from being able to actually create a "prefix" attribute.

      What I mean is, I have not been able to create an attribute node in the config file representing a "prefix"-type attribute. When the digester is adding attributes to the configuration, it skips my node, and I think it might be due to this. (It probably encounters some BeanProperties exception, and moves on...)

      I have tried:
      <attribute prefix="I" />
      and
      <attribute name="I" prefix="true" />
      both of which fail. (My node is simply skipped alltogether.)

      I would recommend: making the "prefix" property boolean (both the getter and the setter), and using the "name" property for the name (or name-prefix).

      Attachments

        Activity

          People

            ate Ate Douma
            jamesschopp James Schopp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment