Hi all, if, in an output-binding, I want to set an element or attribute to a fixed value in combination with the "test-method" attribute, the result of the test-method is ignored and the constant value is set in every case.
I tried: <value style="attribute" name="foo" constant="bar" test-method="isOkay" usage="optional" /> and <structure test-method="isOkay" usage="optional"> <value style="attribute" name="foo" constant="bar" test-method="isOkay" usage="optional" /> </structure> But both approaches don't work. If I replace the constant="bar" part by a get-method, it works. So the problem is the "constant"-part, which in a sense overshoots the mark: it does not care neither about the "optional"-attribute nor about the "test-method"-attribute. Changing this in the JiBX implementation would be more flexible at this point. At the moment it seems that I have to pollute my VOs with simple methods that give back String constants. Or is there more elegant way to conditionally serialize constant values? Thanks for your help, Johannes ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users