problem with xform-value-change event.

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

problem with xform-value-change event.

manish_suriya

Hi All,


I m having this instance.

        <xforms:instance id="name-instance">
                <po:options  xmlns:po="........." xmlns="">

                        <po:option>
                                <po:optionData type="DROPDOWN">
                                        <po:businessName>Product : </po:businessName>
                                        <po:name>PRODUCT</po:name>                        
                                        <po:selectedValue></po:selectedValue>
                                        <po:param value="Product 1 ">123</po:param>
                                        <po:param value="Product 2 ">456</po:param>
                                        <po:param value="Product 3">789</po:param>
                                        <po:validation validationType="REQUIRED">true</po:validation>
                                        <po:helpText>Products..</po:helpText>
                       
                        </po:optionData>
                      </po:option>    
                </po:options>

        </xforms:instance>
       
On select of this i m calling an xforms-value-changed event. which will display other couple of drop down based on the selected product .
       
<xforms:repeat nodeset="instance('name-instance')/po:option">
        <xforms:select1 ref="po:optionData[@type='DROPDOWN']/po:selectedValue"
                incremental="true">
                <xforms:help ref="../po:helpText"></xforms:help>
                <xforms:hint ref="../po:helpText"></xforms:hint>
                <xforms:label ref="../po:businessName">
                </xforms:label>
                <xforms:item>
                        <xforms:label>Choose One...</xforms:label>
                        <xforms:value />
                </xforms:item>
                <xforms:itemset nodeset="../po:param">
                        <xforms:label ref="@value" />
                        <xforms:value ref="@value" />
                </xforms:itemset>
                <xforms:send submission="action" ev:event="xforms-value-changed" />
        </xforms:select1>

</xforms:repeat>


=====================
<xforms:submission id="action" separator="&amp;" resource="/refine"
                action="/refine" method="post" ref="/" replace="instance"
                instance="option-instance">
        </xforms:submission>

====================


Whne i select the Product first time .. other dropdowns  displays nicely..

But when i select other Product.. the page is not refreshing.. its goes in a infinite loop.. so my secondary dropdowns are not being displaying.

Please suggest what shuld i do. Am i using the right event ??

 





Manish Suriya
Tata Consultancy Services
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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: problem with xform-value-change event.

Erik Bruchez
Administrator
Can you please send a complete example that runs in the XForms  
sandbox? That will be much easier to deal with. Thanks,

-Erik

On Oct 13, 2008, at 10:04 AM, Manish Suriya wrote:

>
> Hi All,
>
>
> I m having this instance.
>
>         <xforms:instance id="name-instance">
>                 <po:options  xmlns:po="........." xmlns="">
>
>                         <po:option>
>                                 <po:optionData type="DROPDOWN">
>                                         <po:businessName>Product : </
> po:businessName>
>                                         <po:name>PRODUCT</po:name>
>                                         <po:selectedValue></
> po:selectedValue>
>                                         <po:param value="Product 1  
> ">123</po:param>
>                                         <po:param value="Product 2  
> ">456</po:param>
>                                         <po:param value="Product  
> 3">789</po:param>
>                                         <po:validation  
> validationType="REQUIRED">true</po:validation>
>                                         <po:helpText>Products..</
> po:helpText>
>
>                         </po:optionData>
>                       </po:option>
>                 </po:options>
>
>         </xforms:instance>
>
> On select of this i m calling an xforms-value-changed event. which  
> will display other couple of drop down based on the selected product .
>
> <xforms:repeat nodeset="instance('name-instance')/po:option">
>         <xforms:select1 ref="po:optionData[@type='DROPDOWN']/
> po:selectedValue"
>                 incremental="true">
>                 <xforms:help ref="../po:helpText"></xforms:help>
>                 <xforms:hint ref="../po:helpText"></xforms:hint>
>                 <xforms:label ref="../po:businessName">
>                 </xforms:label>
>                 <xforms:item>
>                         <xforms:label>Choose One...</xforms:label>
>                         <xforms:value />
>                 </xforms:item>
>                 <xforms:itemset nodeset="../po:param">
>                         <xforms:label ref="@value" />
>                         <xforms:value ref="@value" />
>                 </xforms:itemset>
>                 <xforms:send submission="action" ev:event="xforms-
> value-changed" />
>         </xforms:select1>
>
> </xforms:repeat>
>
>
> =====================
> <xforms:submission id="action" separator="&amp;" resource="/refine"
>                 action="/refine" method="post" ref="/"  
> replace="instance"
>                 instance="option-instance">
>         </xforms:submission>
>
> ====================
>
>
> Whne i select the Product first time .. other dropdowns  displays  
> nicely..
>
> But when i select other Product.. the page is not refreshing.. its  
> goes in a infinite loop.. so my secondary dropdowns are not being  
> displaying.
>
> Please suggest what shuld i do. Am i using the right event ??
>
>
>
>
>
>
>
> Manish Suriya
> Tata Consultancy Services
> Cell:- 09819863849
> Mailto: [hidden email]
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: problem with xform-value-change event.

manish_suriya

Hi Erik,

Please find the attached sample application.

In this when i select  a drop down..    it goes in an infinite loop.


Thanks
Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Erik Bruchez <[hidden email]>

10/14/2008 12:38 AM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: problem with xform-value-change event.





Can you please send a complete example that runs in the XForms  
sandbox? That will be much easier to deal with. Thanks,

-Erik

On Oct 13, 2008, at 10:04 AM, Manish Suriya wrote:

>
> Hi All,
>
>
> I m having this instance.
>
>         <xforms:instance id="name-instance">
>                 <po:options  xmlns:po="........." xmlns="">
>
>                         <po:option>
>                                 <po:optionData type="DROPDOWN">
>                                         <po:businessName>Product : </
> po:businessName>
>                                         <po:name>PRODUCT</po:name>
>                                         <po:selectedValue></
> po:selectedValue>
>                                         <po:param value="Product 1  
> ">123</po:param>
>                                         <po:param value="Product 2  
> ">456</po:param>
>                                         <po:param value="Product  
> 3">789</po:param>
>                                         <po:validation  
> validationType="REQUIRED">true</po:validation>
>                                         <po:helpText>Products..</
> po:helpText>
>
>                         </po:optionData>
>                       </po:option>
>                 </po:options>
>
>         </xforms:instance>
>
> On select of this i m calling an xforms-value-changed event. which  
> will display other couple of drop down based on the selected product .
>
> <xforms:repeat nodeset="instance('name-instance')/po:option">
>         <xforms:select1 ref="po:optionData[@type='DROPDOWN']/
> po:selectedValue"
>                 incremental="true">
>                 <xforms:help ref="../po:helpText"></xforms:help>
>                 <xforms:hint ref="../po:helpText"></xforms:hint>
>                 <xforms:label ref="../po:businessName">
>                 </xforms:label>
>                 <xforms:item>
>                         <xforms:label>Choose One...</xforms:label>
>                         <xforms:value />
>                 </xforms:item>
>                 <xforms:itemset nodeset="../po:param">
>                         <xforms:label ref="@value" />
>                         <xforms:value ref="@value" />
>                 </xforms:itemset>
>                 <xforms:send submission="action" ev:event="xforms-
> value-changed" />
>         </xforms:select1>
>
> </xforms:repeat>
>
>
> =====================
> <xforms:submission id="action" separator="&amp;" resource="/refine"
>                 action="/refine" method="post" ref="/"  
> replace="instance"
>                 instance="option-instance">
>         </xforms:submission>
>
> ====================
>
>
> Whne i select the Product first time .. other dropdowns  displays  
> nicely..
>
> But when i select other Product.. the page is not refreshing.. its  
> goes in a infinite loop.. so my secondary dropdowns are not being  
> displaying.
>
> Please suggest what shuld i do. Am i using the right event ??
>
>
>
>
>
>
>
> Manish Suriya
> Tata Consultancy Services
> Cell:- 09819863849
> Mailto: [hidden email]
> Website:
http://www.tcs.com
> ____________________________________________
> Experience certainty.        IT Services
>                        Business Solutions
>                        Outsourcing
> ____________________________________________
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe:
[hidden email]
> For general help:
[hidden email]
> 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:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00007652    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




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

New WinZip File.zip (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: problem with xform-value-change event.

Alessandro Vernet
Administrator
Hi Manish,

On Oct 14, 2008, at 3:03 AM, Manish Suriya wrote:

> Please find the attached sample application.
>
> In this when i select  a drop down..    it goes in an infinite loop.


I can run aaa.jsp in the sandbox, but then I am not sure how to  
reproduce the issue you mentioned. Can you give us the steps we should  
follow once we have the example running, what you expect, and what you  
see. Also see:

http://www.orbeon.com/ops/doc/home-faq#reporting-issues

I am sorry if this sounds a little rigid, but submitting an example  
that shows what you are describing, and that people here on the list  
can quickly run is key us being able to help as many people as possible.

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/
Twitter - http://twitter.com/avernet



--
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: problem with xform-value-change event.

manish_suriya

Hi Alex,

i  attached the sample application:

Steps to be followed:  

1. Please deploy the sample application with jetty or tomcat.

2. Hit the "Submit"  button.

Problem: Not able to Submit the whole page using POST.

Getting Null pointer Exception.




Thanks
Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Alessandro Vernet <[hidden email]>

10/18/2008 01:27 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: Re: Re: problem with xform-value-change event.





Hi Manish,

On Oct 14, 2008, at 3:03 AM, Manish Suriya wrote:

> Please find the attached sample application.
>
> In this when i select  a drop down..    it goes in an infinite loop.


I can run aaa.jsp in the sandbox, but then I am not sure how to  
reproduce the issue you mentioned. Can you give us the steps we should  
follow once we have the example running, what you expect, and what you  
see. Also see:

http://www.orbeon.com/ops/doc/home-faq#reporting-issues

I am sorry if this sounds a little rigid, but submitting an example  
that shows what you are describing, and that people here on the list  
can quickly run is key us being able to help as many people as possible.

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/
Twitter -
http://twitter.com/avernet


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

ForwardSourceID:NT00007A9A    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




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

struts1.zip (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: problem with xform-value-change event.

Arun Batchu
Manish, If you are getting a Null  pointer exception, then you need to examine your server side code. Probably the XML that is being submitted is not what is expected. Enable the "widget" where you can see the instances' xml. It will tell you if the xml instance you are trying to submit "looks" ok or not. If it indeed it does, then step through  your server side code to see where the mismatch of expectations versus the submitted xml is.

On Fri, Oct 24, 2008 at 12:04 PM, Manish Suriya <[hidden email]> wrote:

Hi Alex,

i  attached the sample application:

Steps to be followed:  

1. Please deploy the sample application with jetty or tomcat.

2. Hit the "Submit"  button.

Problem: Not able to Submit the whole page using POST.

Getting Null pointer Exception.




Thanks
Manish Suriya
ASE
Tata Consultancy Services
UNIT NO.801, 901 & 1001, A-WING, HIRANANDANI BUSINESS PARK
HIRANANDANI BUILDERS SPECIAL ECONOMIC ZONE,
Mumbai - 400076,Maharashtra
India
Cell:- 09819863849
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Alessandro Vernet <[hidden email]>

10/18/2008 01:27 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: Re: Re: problem with xform-value-change event.





Hi Manish,

On Oct 14, 2008, at 3:03 AM, Manish Suriya wrote:

> Please find the attached sample application.
>
> In this when i select  a drop down..    it goes in an infinite loop.


I can run aaa.jsp in the sandbox, but then I am not sure how to  
reproduce the issue you mentioned. Can you give us the steps we should  
follow once we have the example running, what you expect, and what you  
see. Also see:

http://www.orbeon.com/ops/doc/home-faq#reporting-issues

I am sorry if this sounds a little rigid, but submitting an example  
that shows what you are describing, and that people here on the list  
can quickly run is key us being able to help as many people as possible.

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/
Twitter -
http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]

For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00007A9A    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: problem with xform-value-change event.

Alessandro Vernet
Administrator
In reply to this post by manish_suriya
Manish,

manish_suriya wrote
i  attached the sample application:

Steps to be followed:

1. Please deploy the sample application with jetty or tomcat.

2. Hit the "Submit"  button.

Problem: Not able to Submit the whole page using POST.
I am deploying the application and when I start Tomcat, I am getting:

SEVERE: Context [/struts1] startup failed due to previous errors

I am not sure how this could work, since there are no jar files in the WEB-INF/lib. I think that what you have there is not a complete war file.

Alex