setValue() function problems

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

setValue() function problems

Ryan Puddephatt
All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

view.xhtml (722 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Marc.Benimeli
Hi Ryan,
 
I modified your example to make it worked.
 
I just prefixed the html namespace. As I said in an earlier message, I don't know if it's a bug or not.
 
My 2 cents,
 
HTH, Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 14 septembre 2006 13:30
À : [hidden email]
Objet : [ops-users] setValue() function problems

All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Ryan.xhtml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Ryan Puddephatt
Marc,
    I've just got around to trying this, I ran it in the sandbox, which I believe is running 3.5M1, and it still causes the same problem.
 
What version of OPS are you running?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: [hidden email] [mailto:[hidden email]]
Sent: 15 September 2006 09:31
To: [hidden email]
Subject: RE: [ops-users] setValue() function problems

Hi Ryan,
 
I modified your example to make it worked.
 
I just prefixed the html namespace. As I said in an earlier message, I don't know if it's a bug or not.
 
My 2 cents,
 
HTH, Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 14 septembre 2006 13:30
À : [hidden email]
Objet : [ops-users] setValue() function problems

All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Marc.Benimeli
In reply to this post by Ryan Puddephatt
Ryan,
 
I'm running 3.5.M1.200608300731.
 
Marc
 
De : Ryan Puddephatt [mailto:[hidden email]]
Marc,
    I've just got around to trying this, I ran it in the sandbox, which I believe is running 3.5M1, and it still causes the same problem.
 
What version of OPS are you running?
 
Thanks
 
Ryan


De : [hidden email] [mailto:[hidden email]]
Envoyé : vendredi 15 septembre 2006 10:31
À : [hidden email]
Objet : RE: [ops-users] setValue() function problems

Hi Ryan,
 
I modified your example to make it worked.
 
I just prefixed the html namespace. As I said in an earlier message, I don't know if it's a bug or not.
 
My 2 cents,
 
HTH, Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 14 septembre 2006 13:30
À : [hidden email]
Objet : [ops-users] setValue() function problems

All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Ryan Puddephatt
Marc,
    I've tried the latest version of OPS and it works
 
Thanks for your help
 
Ryan
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: [hidden email] [mailto:[hidden email]]
Sent: 18 September 2006 12:43
To: [hidden email]
Subject: RE: [ops-users] setValue() function problems

Ryan,
 
I'm running 3.5.M1.200608300731.
 
Marc
 
De : Ryan Puddephatt [mailto:[hidden email]]
Marc,
    I've just got around to trying this, I ran it in the sandbox, which I believe is running 3.5M1, and it still causes the same problem.
 
What version of OPS are you running?
 
Thanks
 
Ryan


De : [hidden email] [mailto:[hidden email]]
Envoyé : vendredi 15 septembre 2006 10:31
À : [hidden email]
Objet : RE: [ops-users] setValue() function problems

Hi Ryan,
 
I modified your example to make it worked.
 
I just prefixed the html namespace. As I said in an earlier message, I don't know if it's a bug or not.
 
My 2 cents,
 
HTH, Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 14 septembre 2006 13:30
À : [hidden email]
Objet : [ops-users] setValue() function problems

All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: setValue() function problems

Marc.Benimeli
Ryan,

Is it my modified example that works or your original one ?

--
Marc



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Ryan Puddephatt
In reply to this post by Ryan Puddephatt
Ok now I'm stuck again. I have a link on my page, which opens a window to allow me to select a user to search by (its a JSP page on another app within the same server). Once the user has made their selection the window passes the values back through a function, which uses Orbeon's setValue function.
 
This appears to be getting stuck somehow when its being called, the weird thing is, if I call the function directly from the JavaScript Console it works???? I'm not sure why, but it definitly appears to be getting stuck server side
 
Has anyone got any ideas?
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 19 September 2006 10:14
To: [hidden email]
Subject: RE: [ops-users] setValue() function problems

Marc,
    I've tried the latest version of OPS and it works
 
Thanks for your help
 
Ryan
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: [hidden email] [mailto:[hidden email]]
Sent: 18 September 2006 12:43
To: [hidden email]
Subject: RE: [ops-users] setValue() function problems

Ryan,
 
I'm running 3.5.M1.200608300731.
 
Marc
 
De : Ryan Puddephatt [mailto:[hidden email]]
Marc,
    I've just got around to trying this, I ran it in the sandbox, which I believe is running 3.5M1, and it still causes the same problem.
 
What version of OPS are you running?
 
Thanks
 
Ryan


De : [hidden email] [mailto:[hidden email]]
Envoyé : vendredi 15 septembre 2006 10:31
À : [hidden email]
Objet : RE: [ops-users] setValue() function problems

Hi Ryan,
 
I modified your example to make it worked.
 
I just prefixed the html namespace. As I said in an earlier message, I don't know if it's a bug or not.
 
My 2 cents,
 
HTH, Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 14 septembre 2006 13:30
À : [hidden email]
Objet : [ops-users] setValue() function problems

All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Ryan Puddephatt
In reply to this post by Ryan Puddephatt
All,
    This now appears to be firefox only, IE runs it fine. I have also noticed that I can't set the value of a readonly element is this a implementation or a bug?
 
Thanks
 
Ryan
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 19 September 2006 10:14
To: [hidden email]
Subject: RE: [ops-users] setValue() function problems

Marc,
    I've tried the latest version of OPS and it works
 
Thanks for your help
 
Ryan
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: [hidden email] [mailto:[hidden email]]
Sent: 18 September 2006 12:43
To: [hidden email]
Subject: RE: [ops-users] setValue() function problems

Ryan,
 
I'm running 3.5.M1.200608300731.
 
Marc
 
De : Ryan Puddephatt [mailto:[hidden email]]
Marc,
    I've just got around to trying this, I ran it in the sandbox, which I believe is running 3.5M1, and it still causes the same problem.
 
What version of OPS are you running?
 
Thanks
 
Ryan


De : [hidden email] [mailto:[hidden email]]
Envoyé : vendredi 15 septembre 2006 10:31
À : [hidden email]
Objet : RE: [ops-users] setValue() function problems

Hi Ryan,
 
I modified your example to make it worked.
 
I just prefixed the html namespace. As I said in an earlier message, I don't know if it's a bug or not.
 
My 2 cents,
 
HTH, Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 14 septembre 2006 13:30
À : [hidden email]
Objet : [ops-users] setValue() function problems

All,
    I'm trying to use the ORBEON.xforms.Document.setValue(id,value) function in OPS, I actually need it to set the value of an xforms:textarea/@mediatype="text/html", but it seems to be failing on even the simplest xforms:input examples (see attached)
 
I have checked log4j on debug and the resulting instance shows the change, but it appears this isn't being sent back to the page, because the loading never disappears. A bug perhaps?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: RE: setValue() function problems

Ryan Puddephatt
In reply to this post by Marc.Benimeli
Marc,
        They both appear to work, its very strange! Luckily our project is
aimed mainly at IE users, so its not such a big problem, but I still don't
understand why Firefox only has trouble when my webpage makes the call!

Thanks for your help

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]]
>Sent: 19 September 2006 10:39
>To: [hidden email]
>Subject: Re: RE: [ops-users] setValue() function problems
>
>Ryan,
>
>Is it my modified example that works or your original one ?
>
>--
>Marc
>
>



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Setting the SOAP style/use

Tom Ferdinande
In reply to this post by Ryan Puddephatt
Hello,

I want to set the SOAP "use=" atribute using the delegation processor to
use="literal" instead of use="encoded". The documentation does not mention a
way to set the "use" attribute. Do I simply have to remove the xsi:type
attributes from my call to make it work (literal style) ?

Tom

Code: see below

    <!-- doe een soap call naar de ISA4ALL service -->
    <p:processor name="oxf:xslt">
        <p:input name="data" href="#instance" debug="true"/>
        <p:input name="file1" href="#file1" debug="true"/>
        <p:input name="file2" href="#file2" debug="true"/>
        <p:input name="file3" href="#file3" debug="true"/>
        <p:input name="file4" href="#file4" debug="true"/>
        <p:input name="file5" href="#file5" debug="true"/>
        <p:input name="config">
            <xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
                <xsl:variable name="filedata1" select="doc('input:file1')"
                                          xmlns:xsl="http://www.w3.org/1999/
XSL/Transform"/>
                <xsl:variable name="filedata2" select="doc('input:file2')"
                                          xmlns:xsl="http://www.w3.org/1999/
XSL/Transform"/>
                <xsl:variable name="filedata3" select="doc('input:file3')"
                                          xmlns:xsl="http://www.w3.org/1999/
XSL/Transform"/>
                <xsl:variable name="filedata4" select="doc('input:file4')"
                                          xmlns:xsl="http://www.w3.org/1999/
XSL/Transform"/>
                <xsl:variable name="filedata5" select="doc('input:file5')"
                                          xmlns:xsl="http://www.w3.org/1999/
XSL/Transform"/>
                <xsl:template match="/">
                    <delegation:execute service="isa"
operation="verwerkAanvraag" xsl:version="2.0"><arg0
xsd:string="soapenc:string"><xsl:value-of
select="saxon:serialize(.,'')"/></arg0>
                        <arg1><xsl:value-of
select="/subsidie-aanvraag/project/files/projectplan/file1/@filename"/></arg
1><arg2 xsi:type="xsd:base64Binary"><xsl:value-of
select="$filedata1"/></arg2>
                        <arg3><xsl:value-of
select="/subsidie-aanvraag/project/files/projectplan/file2/@filename"/></arg
3><arg4 xsi:type="xsd:base64Binary"><xsl:value-of
select="$filedata2"/></arg4>
                        <arg5><xsl:value-of
select="/subsidie-aanvraag/project/files/projectplan/file3/@filename"/></arg
5><arg6 xsi:type="xsd:base64Binary"><xsl:value-of
select="$filedata3"/></arg6>
                        <arg7><xsl:value-of
select="/subsidie-aanvraag/project/files/projectplan/file4/@filename"/></arg
7><arg8 xsi:type="xsd:base64Binary"><xsl:value-of
select="$filedata4"/></arg8>
                        <arg9><xsl:value-of
select="/subsidie-aanvraag/project/files/projectplan/file5/@filename"/></arg
9><arg10 xsi:type="xsd:base64Binary"><xsl:value-of
select="$filedata5"/></arg10>
                    </delegation:execute>
                </xsl:template>
            </xsl:stylesheet>
        </p:input>
        <p:output name="data" id="isa_call"  debug="true"/>
    </p:processor>

    <!-- doe de SOAP call naar de ISA webservice -->
    <p:processor name="oxf:delegation">
        <p:input name="interface" debug="true">
            <config>
                <service id="isa" type="webservice" style="rpc"
endpoint="http://localhost:8080/axis/ESubsidieBackend.jws">
                    <operation nsuri="ns1" name="verwerkAanvraag"
                               encodingStyle="http://schemas.xmlsoap.org/soa
p/encoding/"></operation>
                </service>
            </config>
        </p:input>
        <p:input name="call" href="#isa_call" debug="true"/>
        <p:output name="data" id="isa-result" debug="true"/>
    </p:processor>




<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://localhost:8080/axis/ESubsidieBackend.jws"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/axis/ESubsidieBackend.jws"
xmlns:intf="http://localhost:8080/axis/ESubsidieBackend.jws"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->

   <wsdl:message name="verwerkAanvraagResponse">

      <wsdl:part name="verwerkAanvraagReturn" type="xsd:string"/>

   </wsdl:message>

   <wsdl:message name="verwerkAanvraagRequest">

      <wsdl:part name="message" type="xsd:string"/>

      <wsdl:part name="filename1" type="xsd:string"/>

      <wsdl:part name="attachment1" type="xsd:base64Binary"/>

      <wsdl:part name="filename2" type="xsd:string"/>

      <wsdl:part name="attachment2" type="xsd:base64Binary"/>

      <wsdl:part name="filename3" type="xsd:string"/>

      <wsdl:part name="attachment3" type="xsd:base64Binary"/>

      <wsdl:part name="begroting1" type="xsd:string"/>

      <wsdl:part name="attachment4" type="xsd:base64Binary"/>

      <wsdl:part name="begroting2" type="xsd:string"/>

      <wsdl:part name="attachment5" type="xsd:base64Binary"/>

      <wsdl:part name="begroting3" type="xsd:string"/>

      <wsdl:part name="attachment6" type="xsd:base64Binary"/>

   </wsdl:message>

   <wsdl:portType name="ESubsidieBackend">

      <wsdl:operation name="verwerkAanvraag" parameterOrder="message
filename1 attachment1 filename2 attachment2 filename3 attachment3 begroting1
attachment4 begroting2 attachment5 begroting3 attachment6">

         <wsdl:input message="impl:verwerkAanvraagRequest"
name="verwerkAanvraagRequest"/>

         <wsdl:output message="impl:verwerkAanvraagResponse"
name="verwerkAanvraagResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="ESubsidieBackendSoapBinding"
type="impl:ESubsidieBackend">

      <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="verwerkAanvraag">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="verwerkAanvraagRequest">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://DefaultNamespace" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="verwerkAanvraagResponse">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/ESubsidieBackend.jws" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="ESubsidieBackendService">

      <wsdl:port binding="impl:ESubsidieBackendSoapBinding"
name="ESubsidieBackend">

         <wsdlsoap:address
location="http://localhost:8080/axis/ESubsidieBackend.jws"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>





--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: setValue() function problems

Erik Bruchez
Administrator
In reply to this post by Ryan Puddephatt
Ryan,

Your attached example appears to work with both Firefox and IE in the
online sandbox:

   http://www.orbeon.com/ops/xforms-sandbox

-Erik

Ryan Puddephatt wrote:

> All,
>     I'm trying to use the ORBEON.xforms.Document.setValue(id,value)
> function in OPS, I actually need it to set the value of an
> xforms:textarea/@mediatype="text/html", but it seems to be failing on
> even the simplest xforms:input examples (see attached)
>  
> I have checked log4j on debug and the resulting instance shows the
> change, but it appears this isn't being sent back to the page, because
> the loading never disappears. A bug perhaps?
>  
> Thanks
>  
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>  
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>  
> e> [hidden email] <mailto:[hidden email]>
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
> w> www.teleflex.com <http://www.teleflex.com/>
>
>  
>
> ------------------------------------------------------------------------
>
> one
> Test ORBEON.xforms.Document.setValue("test_item","two");
>
>
> ------------------------------------------------------------------------
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: setValue() function problems

Erik Bruchez
Administrator
In reply to this post by Ryan Puddephatt
Ryan Puddephatt wrote:
> All,
>     This now appears to be firefox only, IE runs it fine. I have also
> noticed that I can't set the value of a readonly element is this a
> implementation or a bug?

For security reasons no code on the client can cause the server to
change the value of a non-relevant or of a readonly control. So I would
say that this is a feature!

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: setValue() function problems

Ryan Puddephatt
Erik,
        I've tested it and your right it does appear to work in both
browsers. Also I see what you mean about the read-only values, so I've found
another way to do it :-)

Thanks

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 20 September 2006 22:01
>To: [hidden email]
>Subject: Re: [ops-users] setValue() function problems
>
>Ryan Puddephatt wrote:
>> All,
>>     This now appears to be firefox only, IE runs it fine. I
>have also
>> noticed that I can't set the value of a readonly element is this a
>> implementation or a bug?
>
>For security reasons no code on the client can cause the
>server to change the value of a non-relevant or of a readonly
>control. So I would say that this is a feature!
>
>-Erik
>
>--
>Orbeon - XForms Everywhere:
>http://www.orbeon.com/blog/
>
>



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Setting the SOAP style/use

Erik Bruchez
Administrator
In reply to this post by Tom Ferdinande
Tom,

The current Delegation processor code does not seem to call the Axis
setOperationUse() method on the Call object. I am not very familiar with
Axis. Is it just a matter of passing setOperationUse("literal"), or are
there other implications?

Then, would this option be an attribute on the <service> element? E.g.:

   <service style="rpc" use="literal">

If so, this would be fairly easy to implement.

-Erik

Tom Ferdinande wrote:

> Hello,
>
> I want to set the SOAP "use=" atribute using the delegation processor to
> use="literal" instead of use="encoded". The documentation does not mention a
> way to set the "use" attribute. Do I simply have to remove the xsi:type
> attributes from my call to make it work (literal style) ?
>
> Tom
>
> Code: see below
>
>     <!-- doe een soap call naar de ISA4ALL service -->
>     <p:processor name="oxf:xslt">
>         <p:input name="data" href="#instance" debug="true"/>
>         <p:input name="file1" href="#file1" debug="true"/>
>         <p:input name="file2" href="#file2" debug="true"/>
>         <p:input name="file3" href="#file3" debug="true"/>
>         <p:input name="file4" href="#file4" debug="true"/>
>         <p:input name="file5" href="#file5" debug="true"/>
>         <p:input name="config">
>             <xsl:stylesheet version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>                 <xsl:variable name="filedata1" select="doc('input:file1')"
>                                           xmlns:xsl="http://www.w3.org/1999/
> XSL/Transform"/>
>                 <xsl:variable name="filedata2" select="doc('input:file2')"
>                                           xmlns:xsl="http://www.w3.org/1999/
> XSL/Transform"/>
>                 <xsl:variable name="filedata3" select="doc('input:file3')"
>                                           xmlns:xsl="http://www.w3.org/1999/
> XSL/Transform"/>
>                 <xsl:variable name="filedata4" select="doc('input:file4')"
>                                           xmlns:xsl="http://www.w3.org/1999/
> XSL/Transform"/>
>                 <xsl:variable name="filedata5" select="doc('input:file5')"
>                                           xmlns:xsl="http://www.w3.org/1999/
> XSL/Transform"/>
>                 <xsl:template match="/">
>                     <delegation:execute service="isa"
> operation="verwerkAanvraag" xsl:version="2.0"><arg0
> xsd:string="soapenc:string"><xsl:value-of
> select="saxon:serialize(.,'')"/></arg0>
>                         <arg1><xsl:value-of
> select="/subsidie-aanvraag/project/files/projectplan/file1/@filename"/></arg
> 1><arg2 xsi:type="xsd:base64Binary"><xsl:value-of
> select="$filedata1"/></arg2>
>                         <arg3><xsl:value-of
> select="/subsidie-aanvraag/project/files/projectplan/file2/@filename"/></arg
> 3><arg4 xsi:type="xsd:base64Binary"><xsl:value-of
> select="$filedata2"/></arg4>
>                         <arg5><xsl:value-of
> select="/subsidie-aanvraag/project/files/projectplan/file3/@filename"/></arg
> 5><arg6 xsi:type="xsd:base64Binary"><xsl:value-of
> select="$filedata3"/></arg6>
>                         <arg7><xsl:value-of
> select="/subsidie-aanvraag/project/files/projectplan/file4/@filename"/></arg
> 7><arg8 xsi:type="xsd:base64Binary"><xsl:value-of
> select="$filedata4"/></arg8>
>                         <arg9><xsl:value-of
> select="/subsidie-aanvraag/project/files/projectplan/file5/@filename"/></arg
> 9><arg10 xsi:type="xsd:base64Binary"><xsl:value-of
> select="$filedata5"/></arg10>
>                     </delegation:execute>
>                 </xsl:template>
>             </xsl:stylesheet>
>         </p:input>
>         <p:output name="data" id="isa_call"  debug="true"/>
>     </p:processor>
>
>     <!-- doe de SOAP call naar de ISA webservice -->
>     <p:processor name="oxf:delegation">
>         <p:input name="interface" debug="true">
>             <config>
>                 <service id="isa" type="webservice" style="rpc"
> endpoint="http://localhost:8080/axis/ESubsidieBackend.jws">
>                     <operation nsuri="ns1" name="verwerkAanvraag"
>                                encodingStyle="http://schemas.xmlsoap.org/soa
> p/encoding/"></operation>
>                 </service>
>             </config>
>         </p:input>
>         <p:input name="call" href="#isa_call" debug="true"/>
>         <p:output name="data" id="isa-result" debug="true"/>
>     </p:processor>
>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions
> targetNamespace="http://localhost:8080/axis/ESubsidieBackend.jws"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://localhost:8080/axis/ESubsidieBackend.jws"
> xmlns:intf="http://localhost:8080/axis/ESubsidieBackend.jws"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.2.1
> Built on Jun 14, 2005 (09:15:57 EDT)-->
>
>    <wsdl:message name="verwerkAanvraagResponse">
>
>       <wsdl:part name="verwerkAanvraagReturn" type="xsd:string"/>
>
>    </wsdl:message>
>
>    <wsdl:message name="verwerkAanvraagRequest">
>
>       <wsdl:part name="message" type="xsd:string"/>
>
>       <wsdl:part name="filename1" type="xsd:string"/>
>
>       <wsdl:part name="attachment1" type="xsd:base64Binary"/>
>
>       <wsdl:part name="filename2" type="xsd:string"/>
>
>       <wsdl:part name="attachment2" type="xsd:base64Binary"/>
>
>       <wsdl:part name="filename3" type="xsd:string"/>
>
>       <wsdl:part name="attachment3" type="xsd:base64Binary"/>
>
>       <wsdl:part name="begroting1" type="xsd:string"/>
>
>       <wsdl:part name="attachment4" type="xsd:base64Binary"/>
>
>       <wsdl:part name="begroting2" type="xsd:string"/>
>
>       <wsdl:part name="attachment5" type="xsd:base64Binary"/>
>
>       <wsdl:part name="begroting3" type="xsd:string"/>
>
>       <wsdl:part name="attachment6" type="xsd:base64Binary"/>
>
>    </wsdl:message>
>
>    <wsdl:portType name="ESubsidieBackend">
>
>       <wsdl:operation name="verwerkAanvraag" parameterOrder="message
> filename1 attachment1 filename2 attachment2 filename3 attachment3 begroting1
> attachment4 begroting2 attachment5 begroting3 attachment6">
>
>          <wsdl:input message="impl:verwerkAanvraagRequest"
> name="verwerkAanvraagRequest"/>
>
>          <wsdl:output message="impl:verwerkAanvraagResponse"
> name="verwerkAanvraagResponse"/>
>
>       </wsdl:operation>
>
>    </wsdl:portType>
>
>    <wsdl:binding name="ESubsidieBackendSoapBinding"
> type="impl:ESubsidieBackend">
>
>       <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>       <wsdl:operation name="verwerkAanvraag">
>
>          <wsdlsoap:operation soapAction=""/>
>
>          <wsdl:input name="verwerkAanvraagRequest">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://DefaultNamespace" use="encoded"/>
>
>          </wsdl:input>
>
>          <wsdl:output name="verwerkAanvraagResponse">
>
>             <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/axis/ESubsidieBackend.jws" use="encoded"/>
>
>          </wsdl:output>
>
>       </wsdl:operation>
>
>    </wsdl:binding>
>
>    <wsdl:service name="ESubsidieBackendService">
>
>       <wsdl:port binding="impl:ESubsidieBackendSoapBinding"
> name="ESubsidieBackend">
>
>          <wsdlsoap:address
> location="http://localhost:8080/axis/ESubsidieBackend.jws"/>
>
>       </wsdl:port>
>
>    </wsdl:service>
>
> </wsdl:definitions>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws