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).