<div dir="ltr"><div>There is also <a href="https://issues.jboss.org/browse/WFCORE-836">https://issues.jboss.org/browse/WFCORE-836</a> to change current behavior<br></div><div>for parsers that are using PersistentResourceXMLParser / PersistentResourceXMLDescription<br><br></div><div>But basically we didn't have any rule about it, at least not in older subsystems, above jira is result<br></div><div>of discussion we had recently on the topic.<br><br>--<br></div><div>tomaz<br></div><div><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Courier New""></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 3:24 PM, Darran Lofthouse <span dir="ltr"><<a href="mailto:darran.lofthouse@jboss.com" target="_blank">darran.lofthouse@jboss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The current approach is to let the attribute definition handle writing<br>
the attribute and this automatically skips writing if the value is the<br>
default value.<br>
<br>
The legacy web subsystem was written before we had this ability.<br>
<div class="HOEnZb"><div class="h5"><br>
On 26/08/15 14:17, Dominik Pospisil wrote:<br>
> Is there any rule saying if an attribute should be persisted if it is<br>
> explicitly set to it's default value or not?<br>
><br>
> At least some attributes in the legacy web subsystem are persisted in such<br>
> case and some are not.<br>
><br>
> It seems that the API encourages to choose any of the options. Is there any<br>
> reason for that?<br>
><br>
> Many thanks,<br>
><br>
> - Dominik<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>
><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>
</div></div></blockquote></div><br></div>