<div dir="ltr"><div><div><div><div><div>I think changing definition of your attribute to:<br><br>protected static final PropertiesAttributeDefinition PROPERTIES = new PropertiesAttributeDefinition.Builder(<br>ModelDescriptionConstants.PROPERTIES, true)<br>    .setAllowExpression(true)<br>    .setAttributeMarshaller(AttributeMarshaller.PROPERTIES_MARSHALLER_UNWRAPPED)<br>    .setAttributeParser(AttributeParser.PROPERTIES_PARSER_UNWRAPPED)<br>   .build();<br><br></div>should do what you want.<br><br></div>This is only proper way to have unwrapped properties in xml representation.<br></div>What you ware using is old way of doing it and only works with &quot;hand written&quot; parsers.<br><br></div>Default behavior for this was not changed as it would break existing hand written parsers.<br><br>--<br></div>tomaz<br><div><br><div><div><br><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 22, 2016 at 1:30 PM, Gytis Trikleris <span dir="ltr">&lt;<a href="mailto:gtrikler@redhat.com" target="_blank">gtrikler@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>I’m trying to add property attribute to the mongo subsystem in order to add custom parameters for the driver. I have looked through other subsystems and it seems that PropertiesAttributeDefinition is normally used for that. But I keep getting failures similar to this one <a href="http://pastebin.com/raw/6rHMdXRi" target="_blank">http://pastebin.com/raw/6rHMdXRi</a>. I might be missing something trivial, but so far couldn’t figure out what exactly. Maybe somebody has any tips on how to use PropertiesAttributeDefinition correctly?</div><div>The commit with current changes is here: <a href="https://github.com/gytis/jboss-as/commit/c89d569554b103536dd2bf255abae957799bcbd1" target="_blank">https://github.com/gytis/jboss-as/commit/c89d569554b103536dd2bf255abae957799bcbd1</a>. And the branch is here: <a href="https://github.com/gytis/jboss-as/tree/nosql-dev9-connection-properties-for-mongodb-no-resource" target="_blank">https://github.com/gytis/jboss-as/tree/nosql-dev9-connection-properties-for-mongodb-no-resource</a>.</div><div><br></div><div>Thanks,</div><div>Gytis</div></div><br>_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br></blockquote></div><br></div>