Java: get all inputs from within a Processor

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

Java: get all inputs from within a Processor

Florent Georges
  Hi

  How is it possible to get all inputs in a Processor?  I mean if we
have:

    <p:processor name="...">
      <p:input name="input_1" .../>
      <p:input name="input_2" .../>
      ...
    </p:processor>

how to get a list of ProcessorInput for 'input_1' and 'input_2'?  More
precisely, I'm within XMLDBProcessor.  I tried 'getInputsInfo()', but I
didn't get all inputs.  With the following processor definition:

    <p:processor name="oxf:xmldb-query">
      <p:input name="datasource" href="datasource.xml"/>
      <p:input name="request" href="#request"/>
      <p:input name="query">
        ...
      </p:input>
      ...
    </p:processor>

I get only two inputs: 'datasource' and 'query'.  But 'addInput()' is
called for the three inputs.

  Any thought?

  Regards,

--drkm


























       
 p5.vert.ukl.yahoo.com uncompressed/chunked Sat Aug 19 21:13:38 GMT 2006
       
               
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.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: Java: get all inputs from within a Processor

Florent Georges
Florent Georges wrote:

>     <p:processor name="...">
>       <p:input name="input_1" .../>
>       <p:input name="input_2" .../>
>       ...
>     </p:processor>

> how to get a list of ProcessorInput for 'input_1' and
> 'input_2'?  More precisely, I'm within XMLDBProcessor.
> I tried 'getInputsInfo()'

  I use getConnectedInputs() and I'm now able to iterate over all
declared inputs.  I guess it is the right way.

  Regards,

--drkm




















       
 p5.vert.ukl.yahoo.com uncompressed/chunked Sun Aug 20 18:13:39 GMT 2006
       
               
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.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: Java: get all inputs from within a Processor

Erik Bruchez
Administrator
In reply to this post by Florent Georges
Florent Georges wrote:

>   Hi
>
>   How is it possible to get all inputs in a Processor?  I mean if we
> have:
>
>     <p:processor name="...">
>       <p:input name="input_1" .../>
>       <p:input name="input_2" .../>
>       ...
>     </p:processor>
>
> how to get a list of ProcessorInput for 'input_1' and 'input_2'?  More
> precisely, I'm within XMLDBProcessor.  I tried 'getInputsInfo()', but I
> didn't get all inputs.  With the following processor definition:
>
>     <p:processor name="oxf:xmldb-query">
>       <p:input name="datasource" href="datasource.xml"/>
>       <p:input name="request" href="#request"/>
>       <p:input name="query">
>         ...
>       </p:input>
>       ...
>     </p:processor>
>
> I get only two inputs: 'datasource' and 'query'.  But 'addInput()' is
> called for the three inputs.
How do you "get" them? Do you mean from Java? If so, what API do you
use? The three inputs should be available.

-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: Java: get all inputs from within a Processor

Florent Georges
Erik Bruchez wrote:

> Florent Georges wrote:

> > More precisely, I'm within XMLDBProcessor.  I tried
> > 'getInputsInfo()', but I didn't get all inputs.

> How do you "get" them? Do you mean from Java?

  Yes.

> If so, what API do you use? The three inputs should be
> available.

  I'm not sure what I can tell further than the method
'getInputsInfo()' on a Processor.  As I said in an earlier
email, I think actually 'getConnectedInput()' could be the
right method.  Am I right?

  Thanks for your response.

  Regards,

--drkm






















       
 p4.vert.ukl.yahoo.com uncompressed/chunked Mon Aug 21 08:13:38 GMT 2006
       
               
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.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: Java: get all inputs from within a Processor

Erik Bruchez
Administrator
Florent Georges wrote:

> Erik Bruchez wrote:
>
>> Florent Georges wrote:
>
>>> More precisely, I'm within XMLDBProcessor.  I tried
>>> 'getInputsInfo()', but I didn't get all inputs.
>
>> How do you "get" them? Do you mean from Java?
>
>   Yes.
>
>> If so, what API do you use? The three inputs should be
>> available.
>
>   I'm not sure what I can tell further than the method
> 'getInputsInfo()' on a Processor.  As I said in an earlier
> email, I think actually 'getConnectedInput()' could be the
> right method.  Am I right?
That's right. getInputsInfo() returns only the inputs you have
explicitly declared with addInputInfo().

-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