Rahul Agarwal wrote:
I know <xxforms:hidden> element can be used to create hidden controls. But I could use it without "ref" attribute only. I gave following way -
<xxforms:hidden ref="/Root/Applicant/ClientId"/>
and the error message is -
*Type* class javax.xml.transform.TransformerException
*Message* An empty sequence is not allowed as the first argument of escape-uri()
*Location* oxf:/config/xforms-hidden.xsl
*Line* 35
It works fine if I supply @xxforms:value and @xxforms:name with <xforms:hidden> element. But I need to create the hidden control with value assigned to it taken from "ref" XPath. Please suggest what should be done.
Hi Rahul,
Based on discussions we had earlier, I assume you want to set a value for a field in the instance using some client-side JavaScript. For this to work, you need an HTML form element to be generated by the XForms engine, so you can set the value of that HTML form element. There are two ways to do this:
1) Use in your view a <xforms:input ref="…" xhtml:style="display: none"/>. The result is just like a hidden field. The benefit of using this is that it works with the version of Presentation Server you have (see below), and most importantly you are using a standard XForms control (instead of <xxforms:hidden> which is an extension).
2) <xxforms:hidden> is not documented and does not work in the current version of Presentation Server. I have just now modified the code to make this work; you will get this in the version of Presentation Server to be released soon. But because this element is not standard, I would recommend you use the above method instead, unless for some reason you really want an HTML hidden form element to be generated or you don't want to use CSS.
Alex
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
