Re: passing a value into an XML form from somewhere else

2002-07-15 Thread Andrew C. Oliver



can I do ?/itemno=x  

okay, I'll try it.


Ivelin Ivanov wrote:

>The name of the itemNo attribute has to have a / prefix: "/itemNo".
>
>I will make a change in the Form impl to tolerate parameters without leading
>/.
>
>
>Send me the code of your action if this doesn't work.
>
>
>
>Ivelin
>
>
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, July 15, 2002 8:37 AM
>Subject: Re: passing a value into an XML form from somewhere else
>
>
>  
>
>>I still don't think I'm explaining this correctly..   I want to get the
>>value of an HTTPRequest parameter that called the XMLForm
>>but was *not* part of the XMLForm into the XMLForm or into the bean.
>>
>>
>>
>>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
>.html?itemNo=3
>  
>
>>So when I call that, I want the (not hidden now, but hopefully will be
>>
>>
>again) itemNo to be populated
>  
>
>>with the 3.  From the form, how do I get itemNo into the model or the
>>
>>
>form, without making the calling
>  
>
>>screen part of the XMLForm?
>>
>>-Andy
>>
>>
>>
>>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>>I assume your cinclude transformer substitures the actual value.
>>>
>>>This is what you could do:
>>>
>>>
>>> 
>>>
>>>
>>>Now after cinclude substitues the value, the XMLFormTransformer will not
>>>(should not) use the value of the bean property, but the explicitly
>>>specified value in the markup instead.
>>>
>>>How is that?
>>>
>>>
>>>
>>>
>>>  
>>>
>>>>Ivelin Ivanov wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Seems like you extended the framework to support xmlform-model ;)
>>>>>This has been discussed before, maybe we should check it in.
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>I didn't do it... It must already be there...?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Of course this is a little delicate, because the model can be a DOM
>>>>>  
>>>>>
>node.
>  
>
>>>>>As to your question, why don't you use xf:hidden? See the most recent
>>>>>XMLForm demo.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>Right, but how do I get the value into the hidden from OUTSIDE the
>>>>xmlform pipeline?  meaning how do I pass a parameter into the
>>>>xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
>>>>so I could see it was always 0 instead of 3.
>>>>
>>>>-Andy
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Ivelin
>>>>>
>>>>>- Original Message -
>>>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>>>To: <[EMAIL PROTECTED]>
>>>>>Sent: Sunday, July 14, 2002 6:58 PM
>>>>>Subject: Re: passing a value into an XML form from somewhere else
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>>Sure.
>>>>>>
>>>>>>here is the offer action (which loads the form)
>>>>>>
>>>>>>
>>>>>>   
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> >>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>> 
>>>>>>   
>>>>>>
>>>>>>
&

Re: passing a value into an XML form from somewhere else

2002-07-15 Thread Ivelin Ivanov


The name of the itemNo attribute has to have a / prefix: "/itemNo".

I will make a change in the Form impl to tolerate parameters without leading
/.


Send me the code of your action if this doesn't work.



Ivelin



- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 8:37 AM
Subject: Re: passing a value into an XML form from somewhere else


> I still don't think I'm explaining this correctly..   I want to get the
> value of an HTTPRequest parameter that called the XMLForm
> but was *not* part of the XMLForm into the XMLForm or into the bean.
>
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
.html?itemNo=3
>
> So when I call that, I want the (not hidden now, but hopefully will be
again) itemNo to be populated
> with the 3.  From the form, how do I get itemNo into the model or the
form, without making the calling
> screen part of the XMLForm?
>
> -Andy
>
>
>
>
> Ivelin Ivanov wrote:
>
> >I assume your cinclude transformer substitures the actual value.
> >
> >This is what you could do:
> >
> >
> >  
> >
> >
> >Now after cinclude substitues the value, the XMLFormTransformer will not
> >(should not) use the value of the bean property, but the explicitly
> >specified value in the markup instead.
> >
> >How is that?
> >
> >
> >
> >
> >>Ivelin Ivanov wrote:
> >>
> >>
> >>
> >>>Seems like you extended the framework to support xmlform-model ;)
> >>>This has been discussed before, maybe we should check it in.
> >>>
> >>>
> >>>
> >>I didn't do it... It must already be there...?
> >>
> >>
> >>
> >>>Of course this is a little delicate, because the model can be a DOM
node.
> >>>
> >>>As to your question, why don't you use xf:hidden? See the most recent
> >>>XMLForm demo.
> >>>
> >>>
> >>>
> >>>
> >>Right, but how do I get the value into the hidden from OUTSIDE the
> >>xmlform pipeline?  meaning how do I pass a parameter into the
> >>xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
> >>so I could see it was always 0 instead of 3.
> >>
> >>-Andy
> >>
> >>
> >>
> >>>Ivelin
> >>>
> >>>- Original Message -
> >>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Sunday, July 14, 2002 6:58 PM
> >>>Subject: Re: passing a value into an XML form from somewhere else
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Sure.
> >>>>
> >>>>here is the offer action (which loads the form)
> >>>>
> >>>>
> >>>>
> >>>>  
> >>>>  
> >>>>  
> >>>>  
> >>>>
> >>>>  
> >>>>  
> >>>>  
> >>>>   >>>>
> >>>>
> >>>>
> >>>>
> >>>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
> >>>
> >>>
> >>>
> >>>
> >>>>  
> >>>>
> >>>>
> >>>>
> >>>>here is the url which calls it
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoff
e
> >>
> >>
> >r
> >
> >
> >>>.html?itemNo=3
> >>>
> >>>
> >>>
> >>>
> >>>>Where the screen calling the form is not itself an XML form.  However
it
> >>>>needs to pass a parameter to be stored
> >>>>in a hidden field (or otherwise poke it into the OfferBean attached to
> >>>>the form).
> >>>>
> >>>>You can actually go here:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiq
u
> >>
> >>
> >e
> >
> >
> >>>s/3.html?category=Antiques
> >>>
> >>>
> >&g

Re: passing a value into an XML form from somewhere else

2002-07-15 Thread Andrew C. Oliver

I still don't think I'm explaining this correctly..   I want to get the 
value of an HTTPRequest parameter that called the XMLForm
but was *not* part of the XMLForm into the XMLForm or into the bean.

http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer.html?itemNo=3

So when I call that, I want the (not hidden now, but hopefully will be again) itemNo 
to be populated
with the 3.  From the form, how do I get itemNo into the model or the form, without 
making the calling
screen part of the XMLForm?

-Andy




Ivelin Ivanov wrote:

>I assume your cinclude transformer substitures the actual value.
>
>This is what you could do:
>
>
>  
>
>
>Now after cinclude substitues the value, the XMLFormTransformer will not
>(should not) use the value of the bean property, but the explicitly
>specified value in the markup instead.
>
>How is that?
>
>
>  
>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>>Seems like you extended the framework to support xmlform-model ;)
>>>This has been discussed before, maybe we should check it in.
>>>
>>>  
>>>
>>I didn't do it... It must already be there...?
>>
>>
>>
>>>Of course this is a little delicate, because the model can be a DOM node.
>>>
>>>As to your question, why don't you use xf:hidden? See the most recent
>>>XMLForm demo.
>>>
>>>
>>>  
>>>
>>Right, but how do I get the value into the hidden from OUTSIDE the
>>xmlform pipeline?  meaning how do I pass a parameter into the
>>xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
>>so I could see it was always 0 instead of 3.
>>
>>-Andy
>>
>>
>>
>>>Ivelin
>>>
>>>- Original Message -
>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Sunday, July 14, 2002 6:58 PM
>>>Subject: Re: passing a value into an XML form from somewhere else
>>>
>>>
>>>
>>>
>>>  
>>>
>>>>Sure.
>>>>
>>>>here is the offer action (which loads the form)
>>>>
>>>>
>>>>
>>>>  
>>>>  
>>>>  
>>>>  
>>>>
>>>>  
>>>>  
>>>>  
>>>>  >>>
>>>>
>>>>
>>>>
>>>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
>>>
>>>
>>>  
>>>
>>>>  
>>>>
>>>>
>>>>
>>>>here is the url which calls it
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffe
>>
>>
>r
>  
>
>>>.html?itemNo=3
>>>
>>>
>>>  
>>>
>>>>Where the screen calling the form is not itself an XML form.  However it
>>>>needs to pass a parameter to be stored
>>>>in a hidden field (or otherwise poke it into the OfferBean attached to
>>>>the form).
>>>>
>>>>You can actually go here:
>>>>
>>>>
>>>>
>>>>
>>>>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiqu
>>
>>
>e
>  
>
>>>s/3.html?category=Antiques
>>>
>>>
>>>  
>>>
>>>>and see what I mean (click on Make An Offer)
>>>>
>>>>-Andy
>>>>
>>>>
>>>>Ivelin Ivanov wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Myabe I misunderstand the problem.
>>>>>
>>>>>Can you send your sitemap and some more details.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>- Original Message -
>>>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>>>To: <[EMAIL PROTECTED]>
>>>>>Sent: Sunday, July 14, 2002 5:39 PM
>>>>>Subject: Re: passing a value into an XML form from somewhere else
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>>Ivelin Ivanov wrote:
>>>>>>
>

Re: passing a value into an XML form from somewhere else

2002-07-15 Thread Mohamed El-Refaey

Hi Andrew

I don't know If what I'll tell can help or not, but u can set the OfferBean
before populating the XMLForm by the value of the itemNo into the
OfferAction or in another Action that act when u press"Make Offer"
Link --->OfferBean.setItemNo(newItemNo) and it will automatically rendered
into the Form.
I wish it can help

Mohamed
- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 7:50 PM
Subject: Q: passing a value into an XML form from somewhere else


> Hi All,
>
> I've got a situation where I have multiple items on a dynamically
> generated page and I want to be able to allow the user to
> click on a link and "post an offer" on them.  So for instance
>
> on
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antique
s/3.html
> I want to be able to have the user click
> "make an offer"
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
.html?itemNo=3
> which will pass to an XMLForm based action.
>
> The problem is I need itemNo to end up in my OfferBean.java along with
> the user populated fields in the form.  How do I take
> an http parameter and get it into the bean attached to an XMLForm?
>
> Thanks,
>
> Andy
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Ivelin Ivanov



I assume your cinclude transformer substitures the actual value.

This is what you could do:


  


Now after cinclude substitues the value, the XMLFormTransformer will not
(should not) use the value of the bean property, but the explicitly
specified value in the markup instead.

How is that?


> Ivelin Ivanov wrote:
>
> >Seems like you extended the framework to support xmlform-model ;)
> >This has been discussed before, maybe we should check it in.
> >
> I didn't do it... It must already be there...?
>
> >Of course this is a little delicate, because the model can be a DOM node.
> >
> >As to your question, why don't you use xf:hidden? See the most recent
> >XMLForm demo.
> >
> >
> Right, but how do I get the value into the hidden from OUTSIDE the
> xmlform pipeline?  meaning how do I pass a parameter into the
> xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox
> so I could see it was always 0 instead of 3.
>
> -Andy
>
> >Ivelin
> >
> >- Original Message -
> >From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, July 14, 2002 6:58 PM
> >Subject: Re: passing a value into an XML form from somewhere else
> >
> >
> >
> >
> >>Sure.
> >>
> >>here is the offer action (which loads the form)
> >>
> >>
> >> 
> >>   
> >>   
> >>   
> >>   
> >>
> >>   
> >>   
> >>   
> >>>>
> >>
> >src="context://stylesheets/xmlform/xmlform2html.xsl"/>
> >
> >
> >>   
> >> 
> >>
> >>
> >>here is the url which calls it
> >>
> >>
> >>
> >>
>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffe
r
> >.html?itemNo=3
> >
> >
> >>Where the screen calling the form is not itself an XML form.  However it
> >>needs to pass a parameter to be stored
> >>in a hidden field (or otherwise poke it into the OfferBean attached to
> >>the form).
> >>
> >>You can actually go here:
> >>
> >>
> >>
>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiqu
e
> >s/3.html?category=Antiques
> >
> >
> >>and see what I mean (click on Make An Offer)
> >>
> >>-Andy
> >>
> >>
> >>Ivelin Ivanov wrote:
> >>
> >>
> >>
> >>>Myabe I misunderstand the problem.
> >>>
> >>>Can you send your sitemap and some more details.
> >>>
> >>>
> >>>
> >>>
> >>>- Original Message -
> >>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Sunday, July 14, 2002 5:39 PM
> >>>Subject: Re: passing a value into an XML form from somewhere else
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Ivelin Ivanov wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>The name of the parameter has to represent the XPath to the bean
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>property.
> >>>
> >>>
> >>>
> >>>
> >>>>>See the html source of an xmlform page to see how element names are
> >>>>>translated into widgets @name attributes.
> >>>>>
> >>>>>Does this help?
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>I don't think so.  I need to pass the data into the pipeline from
> >>>>outside.  If I just pass the same parameter as a propery it
> >>>>is not picking it up.  Or at least its not ending up in the form.
> >>>>
> >>>>-Andy
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Ivelin
> >>>>>
> >>>>>
> >>>>>- Original Message -
> >>>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >>>>>To: <[EMAIL PROTECTED]>
> >>>>>Sent: Sunda

Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Andrew C. Oliver

Ivelin Ivanov wrote:

>Seems like you extended the framework to support xmlform-model ;)
>This has been discussed before, maybe we should check it in.
>
I didn't do it... It must already be there...?

>Of course this is a little delicate, because the model can be a DOM node.
>
>As to your question, why don't you use xf:hidden? See the most recent
>XMLForm demo.
>  
>
Right, but how do I get the value into the hidden from OUTSIDE the 
xmlform pipeline?  meaning how do I pass a parameter into the 
xmlfrom-based pipeline and get it INTO the xmlfrom.  I made it textbox 
so I could see it was always 0 instead of 3.

-Andy

>Ivelin
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, July 14, 2002 6:58 PM
>Subject: Re: passing a value into an XML form from somewhere else
>
>
>  
>
>>Sure.
>>
>>here is the offer action (which loads the form)
>>
>>
>> 
>>   
>>   
>>   
>>   
>>
>>   
>>   
>>   
>>   >
>>
>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
>  
>
>>   
>> 
>>
>>
>>here is the url which calls it
>>
>>
>>
>>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
>.html?itemNo=3
>  
>
>>Where the screen calling the form is not itself an XML form.  However it
>>needs to pass a parameter to be stored
>>in a hidden field (or otherwise poke it into the OfferBean attached to
>>the form).
>>
>>You can actually go here:
>>
>>
>>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antique
>s/3.html?category=Antiques
>  
>
>>and see what I mean (click on Make An Offer)
>>
>>-Andy
>>
>>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>>Myabe I misunderstand the problem.
>>>
>>>Can you send your sitemap and some more details.
>>>
>>>
>>>
>>>
>>>- Original Message -
>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Sunday, July 14, 2002 5:39 PM
>>>Subject: Re: passing a value into an XML form from somewhere else
>>>
>>>
>>>
>>>
>>>  
>>>
>>>>Ivelin Ivanov wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>The name of the parameter has to represent the XPath to the bean
>>>>>
>>>>>
>>>>>      
>>>>>
>>>property.
>>>
>>>
>>>  
>>>
>>>>>See the html source of an xmlform page to see how element names are
>>>>>translated into widgets @name attributes.
>>>>>
>>>>>Does this help?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>I don't think so.  I need to pass the data into the pipeline from
>>>>outside.  If I just pass the same parameter as a propery it
>>>>is not picking it up.  Or at least its not ending up in the form.
>>>>
>>>>-Andy
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Ivelin
>>>>>
>>>>>
>>>>>- Original Message -
>>>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>>>To: <[EMAIL PROTECTED]>
>>>>>Sent: Sunday, July 14, 2002 11:50 AM
>>>>>Subject: Q: passing a value into an XML form from somewhere else
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>>Hi All,
>>>>>>
>>>>>>I've got a situation where I have multiple items on a dynamically
>>>>>>generated page and I want to be able to allow the user to
>>>>>>click on a link and "post an offer" on them.  So for instance
>>>>>>
>>>>>>on
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>http://www.superlinksoftware.com/cocoon/sam

Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Ivelin Ivanov


Seems like you extended the framework to support xmlform-model ;)
This has been discussed before, maybe we should check it in.
Of course this is a little delicate, because the model can be a DOM node.

As to your question, why don't you use xf:hidden? See the most recent
XMLForm demo.

Ivelin

- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 6:58 PM
Subject: Re: passing a value into an XML form from somewhere else


> Sure.
>
> here is the offer action (which loads the form)
>
> 
>  
>
>
>
>
>
>
>
>
>
>
>  
> 
>
> here is the url which calls it
>
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
.html?itemNo=3
>
> Where the screen calling the form is not itself an XML form.  However it
> needs to pass a parameter to be stored
> in a hidden field (or otherwise poke it into the OfferBean attached to
> the form).
>
> You can actually go here:
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antique
s/3.html?category=Antiques
>
> and see what I mean (click on Make An Offer)
>
> -Andy
>
>
> Ivelin Ivanov wrote:
>
> >Myabe I misunderstand the problem.
> >
> >Can you send your sitemap and some more details.
> >
> >
> >
> >
> >----- Original Message -
> >From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, July 14, 2002 5:39 PM
> >Subject: Re: passing a value into an XML form from somewhere else
> >
> >
> >
> >
> >>Ivelin Ivanov wrote:
> >>
> >>
> >>
> >>>The name of the parameter has to represent the XPath to the bean
> >>>
> >>>
> >property.
> >
> >
> >>>See the html source of an xmlform page to see how element names are
> >>>translated into widgets @name attributes.
> >>>
> >>>Does this help?
> >>>
> >>>
> >>>
> >>>
> >>I don't think so.  I need to pass the data into the pipeline from
> >>outside.  If I just pass the same parameter as a propery it
> >>is not picking it up.  Or at least its not ending up in the form.
> >>
> >>-Andy
> >>
> >>
> >>
> >>>Ivelin
> >>>
> >>>
> >>>- Original Message -
> >>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Sunday, July 14, 2002 11:50 AM
> >>>Subject: Q: passing a value into an XML form from somewhere else
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Hi All,
> >>>>
> >>>>I've got a situation where I have multiple items on a dynamically
> >>>>generated page and I want to be able to allow the user to
> >>>>click on a link and "post an offer" on them.  So for instance
> >>>>
> >>>>on
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiq
u
> >>
> >>
> >e
> >
> >
> >>>s/3.html
> >>>
> >>>
> >>>
> >>>
> >>>>I want to be able to have the user click
> >>>>"make an offer"
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoff
e
> >>
> >>
> >r
> >
> >
> >>>.html?itemNo=3
> >>>
> >>>
> >>>
> >>>
> >>>>which will pass to an XMLForm based action.
> >>>>
> >>>>The problem is I need itemNo to end up in my OfferBean.java along with
> >>>>the user populated fields in the form.  How do I take
> >>>>an http parameter and get it into the bean attached to an XMLForm?
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Andy
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>-
> >>>>Please check that your question  has not alr

Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Andrew C. Oliver

Sure.  

here is the offer action (which loads the form)


 
   
   
   
   

   
   
   
   
   
 


here is the url which calls it

http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer.html?itemNo=3

Where the screen calling the form is not itself an XML form.  However it 
needs to pass a parameter to be stored
in a hidden field (or otherwise poke it into the OfferBean attached to 
the form).  

You can actually go here: 
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiques/3.html?category=Antiques

and see what I mean (click on Make An Offer)

-Andy


Ivelin Ivanov wrote:

>Myabe I misunderstand the problem.
>
>Can you send your sitemap and some more details.
>
>
>
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, July 14, 2002 5:39 PM
>Subject: Re: passing a value into an XML form from somewhere else
>
>
>  
>
>>Ivelin Ivanov wrote:
>>
>>
>>
>>>The name of the parameter has to represent the XPath to the bean
>>>  
>>>
>property.
>  
>
>>>See the html source of an xmlform page to see how element names are
>>>translated into widgets @name attributes.
>>>
>>>Does this help?
>>>
>>>
>>>  
>>>
>>I don't think so.  I need to pass the data into the pipeline from
>>outside.  If I just pass the same parameter as a propery it
>>is not picking it up.  Or at least its not ending up in the form.
>>
>>-Andy
>>
>>
>>
>>>Ivelin
>>>
>>>
>>>- Original Message -
>>>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Sunday, July 14, 2002 11:50 AM
>>>Subject: Q: passing a value into an XML form from somewhere else
>>>
>>>
>>>
>>>
>>>  
>>>
>>>>Hi All,
>>>>
>>>>I've got a situation where I have multiple items on a dynamically
>>>>generated page and I want to be able to allow the user to
>>>>click on a link and "post an offer" on them.  So for instance
>>>>
>>>>on
>>>>
>>>>
>>>>
>>>>
>>>>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiqu
>>
>>
>e
>  
>
>>>s/3.html
>>>
>>>
>>>  
>>>
>>>>I want to be able to have the user click
>>>>"make an offer"
>>>>
>>>>
>>>>
>>>>
>>>>
>>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffe
>>
>>
>r
>  
>
>>>.html?itemNo=3
>>>
>>>
>>>  
>>>
>>>>which will pass to an XMLForm based action.
>>>>
>>>>The problem is I need itemNo to end up in my OfferBean.java along with
>>>>the user populated fields in the form.  How do I take
>>>>an http parameter and get it into the bean attached to an XMLForm?
>>>>
>>>>Thanks,
>>>>
>>>>Andy
>>>>
>>>>
>>>>
>>>>
>>>>-
>>>>Please check that your question  has not already been answered in the
>>>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>>>
>>>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>-
>>>Please check that your question  has not already been answered in the
>>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>>
>>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>>
>>>
>>>
>>>
>>>  
>>>
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>
>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
>>
>>
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Ivelin Ivanov


Myabe I misunderstand the problem.

Can you send your sitemap and some more details.




- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 5:39 PM
Subject: Re: passing a value into an XML form from somewhere else


> Ivelin Ivanov wrote:
>
> >The name of the parameter has to represent the XPath to the bean
property.
> >See the html source of an xmlform page to see how element names are
> >translated into widgets @name attributes.
> >
> >Does this help?
> >
> >
> I don't think so.  I need to pass the data into the pipeline from
> outside.  If I just pass the same parameter as a propery it
> is not picking it up.  Or at least its not ending up in the form.
>
> -Andy
>
> >Ivelin
> >
> >
> >- Original Message -
> >From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, July 14, 2002 11:50 AM
> >Subject: Q: passing a value into an XML form from somewhere else
> >
> >
> >
> >
> >>Hi All,
> >>
> >>I've got a situation where I have multiple items on a dynamically
> >>generated page and I want to be able to allow the user to
> >>click on a link and "post an offer" on them.  So for instance
> >>
> >>on
> >>
> >>
> >>
>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiqu
e
> >s/3.html
> >
> >
> >>I want to be able to have the user click
> >>"make an offer"
> >>
> >>
> >>
>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffe
r
> >.html?itemNo=3
> >
> >
> >>which will pass to an XMLForm based action.
> >>
> >>The problem is I need itemNo to end up in my OfferBean.java along with
> >>the user populated fields in the form.  How do I take
> >>an http parameter and get it into the bean attached to an XMLForm?
> >>
> >>Thanks,
> >>
> >>Andy
> >>
> >>
> >>
> >>
> >>-
> >>Please check that your question  has not already been answered in the
> >>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >>
> >>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >>For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >>
> >>
> >>
> >
> >
> >-
> >Please check that your question  has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> >To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> >
> >
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Andrew C. Oliver

Ivelin Ivanov wrote:

>The name of the parameter has to represent the XPath to the bean property.
>See the html source of an xmlform page to see how element names are
>translated into widgets @name attributes.
>
>Does this help?
>  
>
I don't think so.  I need to pass the data into the pipeline from 
outside.  If I just pass the same parameter as a propery it
is not picking it up.  Or at least its not ending up in the form.

-Andy

>Ivelin
>
>
>- Original Message -
>From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, July 14, 2002 11:50 AM
>Subject: Q: passing a value into an XML form from somewhere else
>
>
>  
>
>>Hi All,
>>
>>I've got a situation where I have multiple items on a dynamically
>>generated page and I want to be able to allow the user to
>>click on a link and "post an offer" on them.  So for instance
>>
>>on
>>
>>
>>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antique
>s/3.html
>  
>
>>I want to be able to have the user click
>>"make an offer"
>>
>>
>>
>http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
>.html?itemNo=3
>  
>
>>which will pass to an XMLForm based action.
>>
>>The problem is I need itemNo to end up in my OfferBean.java along with
>>the user populated fields in the form.  How do I take
>>an http parameter and get it into the bean attached to an XMLForm?
>>
>>Thanks,
>>
>>Andy
>>
>>
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>
>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
>>
>>
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: passing a value into an XML form from somewhere else

2002-07-14 Thread Ivelin Ivanov


The name of the parameter has to represent the XPath to the bean property.
See the html source of an xmlform page to see how element names are
translated into widgets @name attributes.

Does this help?

Ivelin


- Original Message -
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 11:50 AM
Subject: Q: passing a value into an XML form from somewhere else


> Hi All,
>
> I've got a situation where I have multiple items on a dynamically
> generated page and I want to be able to allow the user to
> click on a link and "post an offer" on them.  So for instance
>
> on
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antique
s/3.html
> I want to be able to have the user click
> "make an offer"
>
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer
.html?itemNo=3
> which will pass to an XMLForm based action.
>
> The problem is I need itemNo to end up in my OfferBean.java along with
> the user populated fields in the form.  How do I take
> an http parameter and get it into the bean attached to an XMLForm?
>
> Thanks,
>
> Andy
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




[Fwd: Q: passing a value into an XML form from somewhere else]

2002-07-14 Thread Andrew C. Oliver



--- Begin Message ---

Hi All,

I've got a situation where I have multiple items on a dynamically 
generated page and I want to be able to allow the user to
click on a link and "post an offer" on them.  So for instance

on 
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiques/3.html 
I want to be able to have the user click
"make an offer"
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer.html?itemNo=3
which will pass to an XMLForm based action.

The problem is I need itemNo to end up in my OfferBean.java along with 
the user populated fields in the form.  How do I take
an http parameter and get it into the bean attached to an XMLForm?

Thanks,

Andy





--- End Message ---

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


Q: passing a value into an XML form from somewhere else

2002-07-14 Thread Andrew C. Oliver

Hi All,

I've got a situation where I have multiple items on a dynamically 
generated page and I want to be able to allow the user to
click on a link and "post an offer" on them.  So for instance

on 
http://www.superlinksoftware.com/cocoon/samples/bringmethis/category/Antiques/3.html 
I want to be able to have the user click
"make an offer"
http://www.superlinksoftware.com/cocoon/samples/bringmethis/action/postoffer.html?itemNo=3
which will pass to an XMLForm based action.

The problem is I need itemNo to end up in my OfferBean.java along with 
the user populated fields in the form.  How do I take
an http parameter and get it into the bean attached to an XMLForm?

Thanks,

Andy




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>