How to use <xforms:if>?????

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

How to use <xforms:if>?????

Sathish K Mittapelli
Hi all,
             Can anybody help me how to use <xforms:if > in xforms.


THANKS & REGARDS
SATHISH K MITTAPELLI  


Save all your chat conversations. Find them online.

--
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: How to use <xforms:if>?????

Erik Bruchez
Administrator
Sathish,

There is no such thing as xforms:if in XForms.

I you want a group of controls, or an individual control, to be  
visible conditionally, you have at least the following possibilities:

In the model:
<xforms:bind nodeset="node-to-which-control-is-bound" relevant="XPath  
condition"/>

In the view:
<xforms:group ref=".[XPath condition]">

Or, you can use xforms:switch/xforms:case.

-Erik

On Mar 11, 2008, at 4:18 AM, sathish kumar wrote:

> Hi all,
>              Can anybody help me how to use <xforms:if > in xforms.
>
>
> THANKS & REGARDS
> SATHISH K MITTAPELLI

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Re: How to use <xforms:if>?????

Sathish K Mittapelli
Hi Erik,
            I am trying to use <xxforms:if> for dynamic rendering of controls.At that time i am getting the error invalid xxforms:if in xhtml.Is there any way to dynamically rendering the controls in xforms.

Erik Bruchez <[hidden email]> wrote:
Sathish,

There is no such thing as xforms:if in XForms.

I you want a group of controls, or an individual control, to be
visible conditionally, you have at least the following possibilities:

In the model:
condition" nodeset="node-to-which-control-is-bound">

In the view:


Or, you can use xforms:switch/xforms:case.

-Erik

On Mar 11, 2008, at 4:18 AM, sathish kumar wrote:

> Hi all,
> Can anybody help me how to use in xforms.
>
>
> THANKS & REGARDS
> SATHISH K MITTAPELLI

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/


--
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



THANKS & REGARDS
SATHISH K MITTAPELLI  


Chat on a cool, new interface. No download required. Click here.

--
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: Re: Re: How to use <xforms:if>?????

Alessandro Vernet
Administrator
Sathish,

On Tue, Mar 11, 2008 at 8:06 PM, sathish kumar <[hidden email]> wrote:
>             I am trying to use <xxforms:if> for dynamic rendering of
> controls.At that time i am getting the error invalid xxforms:if in xhtml.Is
> there any way to dynamically rendering the controls in xforms.

Erik meant that instead of using <xxforms:if> which is not standard
and not supported, you should now use <xforms:group ref=.[condition]">
(replacing "condition" by your condition written in XPath.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/


--
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: Re: Re: Re: How to use <xforms:if>?????

Sathish K Mittapelli
Hi Alessandro ,
                           I have tried this also.My main aim is to generate the controls based on the control id which im astoring in a databse with respective control generation code in the database.After retriving the data from the database i am not able to render that control code as controls.Is there any way to achieve this.

Alessandro Vernet <[hidden email]> wrote:
Sathish,

On Tue, Mar 11, 2008 at 8:06 PM, sathish kumar wrote:
> I am trying to use for dynamic rendering of
> controls.At that time i am getting the error invalid xxforms:if in xhtml.Is
> there any way to dynamically rendering the controls in xforms.

Erik meant that instead of using which is not standard
and not supported, you should now use
(replacing "condition" by your condition written in XPath.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/

--
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



THANKS & REGARDS
SATHISH K MITTAPELLI  


Now you can chat without downloading messenger. Click here to know how.

--
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: Re: Re: Re: Re: How to use <xforms:if>?????

Erik Bruchez
Administrator
Sathish,

Maybe, but you will have to provide more detailed explanations.

-Erik

On Mar 12, 2008, at 12:13 AM, sathish kumar wrote:

> Hi Alessandro ,
>                            I have tried this also.My main aim is to  
> generate the controls based on the control id which im astoring in a  
> databse with respective control generation code in the  
> database.After retriving the data from the database i am not able to  
> render that control code as controls.Is there any way to achieve this.
>
> Alessandro Vernet <[hidden email]> wrote:
> Sathish,
>
> On Tue, Mar 11, 2008 at 8:06 PM, sathish kumar wrote:
> > I am trying to use for dynamic rendering of
> > controls.At that time i am getting the error invalid xxforms:if in  
> xhtml.Is
> > there any way to dynamically rendering the controls in xforms.
>
> Erik meant that instead of using which is not standard
> and not supported, you should now use
> (replacing "condition" by your condition written in XPath.
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
>
> --
> 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
>
>
>
> THANKS & REGARDS
> SATHISH K MITTAPELLI
> Now you can chat without downloading messenger. Click here to know  
> how.
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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