Thank you Alex. I agree to what you are saying. In fact, once I thought of creating hidden control the way you suggested, but wasn't really sure whether it would be a correct way. With your response, it makes sense not to use <xxforms:hidden> for my purpose.

Thanks and Regards,
Rahul


----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------



Alessandro Vernet <avernet
@orbeon.com>

Sent by: orbeon-user-admin

11/13/2004 07:40 AM
Please respond to orbeon-user

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: [orbeon-user] Creating hidden control



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

Reply via email to