I have previously used this technique to populate bdm:edit fields with values from my jsp code:
<bdm:edit select=“/some/xpath”>
</bdm:edit>
This no longer works at X-Application 3.1.2. The field value is never set. If I remove the surrounding bdm:edit tags, the field value re-appears correctly. Is there another way to achieve the same?
[This message was edited by Bill Leeney on 28 Feb 2002 at 10:28.] X-Application Version: 3.1.2, 3.1.1 Tamino Version : 3.1.1 Platform : NT, Win2k, Solaris, … WebContainer : Tomcat 3.3 JDK Version : 1.3.1
[This message was edited by Bill Leeney on 28 Feb 2002 at 10:29.]
[This message was edited by Harald Wolf on 28 Feb 2002 at 17:07.]
Note: This sets a default value just in case the instance does not exist or is empty. If a value exists in the document instance this default value is not used.
The old behaviour was actually a bug, not a features. X-Application 3.1.2 fixed this bug …
Harald’s “fix” adds a new feature to the EditTag: if there is no value obtained from the database, the value specified by the user in the jsp page is used.
Do you think we should add this feature to the next version of X-Application? I know at least one person who used the 3.1.1 bug as a feature …
Yes I think it’s important to be able to define a default value for an input field, and to have the jsp page generate that default value. I have only written two “real” applications with X-Application but both of them exploited the bug in V311.