read only fr:us-phone

classic Classic list List threaded Threaded
2 messages Options
apv
Reply | Threaded
Open this post in threaded view
|

read only fr:us-phone

apv
Hi!
I use the Form Builder.
I add the US Phone Number component on the form. I open validating properties
dialog and write 'true()' in a Read-Only field. But I can edit data in my US
Phone Number field :(
US Phone Number allways allow to edit.

This is code of form:
...
 <xforms:bind id="control-2-bind" nodeset="control-2" name="control-2"
                                 type="xs:nonNegativeInteger"
                                 required="true()"
                                 readonly="false()"
                                 calculate="123"/>
...
<xhtml:td>
                                <fr:us-phone
xmlns:xbl="http://www.w3.org/ns/xbl"
                                           
xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
                                           
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
                                           
xmlns="http://orbeon.org/oxf/xml/form-builder"
                                             id="control-2-control"
                                             bind="control-2-bind">
                                    <xforms:label
ref="$form-resources/control-2/label"/>
                                    <xforms:hint
ref="$form-resources/control-2/hint"/>
                                    <xforms:help
ref="$form-resources/control-2/help"/>
                                    <xforms:alert
ref="$form-resources/control-2/alert"/>
                                </fr:us-phone>
                            </xhtml:td>
...

How I can make read-only US Phone Number component?
Thanks.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: read only fr:us-phone

Erik Bruchez-3
Petr,

Do you still need help with this?

-Erik

On Wed, Aug 26, 2009 at 4:45 AM, Petr Aleksandrov <[hidden email]> wrote:

> Hi!
> I use the Form Builder.
> I add the US Phone Number component on the form. I open validating properties
> dialog and write 'true()' in a Read-Only field. But I can edit data in my US
> Phone Number field :(
> US Phone Number allways allow to edit.
>
> This is code of form:
> ...
>  <xforms:bind id="control-2-bind" nodeset="control-2" name="control-2"
>                                 type="xs:nonNegativeInteger"
>                                 required="true()"
>                                 readonly="false()"
>                                 calculate="123"/>
> ...
> <xhtml:td>
>                                <fr:us-phone
> xmlns:xbl="http://www.w3.org/ns/xbl"
>
> xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
>
> xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
>
> xmlns="http://orbeon.org/oxf/xml/form-builder"
>                                             id="control-2-control"
>                                             bind="control-2-bind">
>                                    <xforms:label
> ref="$form-resources/control-2/label"/>
>                                    <xforms:hint
> ref="$form-resources/control-2/hint"/>
>                                    <xforms:help
> ref="$form-resources/control-2/help"/>
>                                    <xforms:alert
> ref="$form-resources/control-2/alert"/>
>                                </fr:us-phone>
>                            </xhtml:td>
> ...
>
> How I can make read-only US Phone Number component?
> Thanks.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws