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)
>>
>><map:match pattern="action/postoffer.html">
>>     <map:act type="OfferAction">
>>       <map:parameter name="xmlform-id" value="offer-form"/>
>>       <map:parameter name="xmlform-scope" value="session"/>
>>       <map:parameter name="xmlform-model" value="OfferBean"/>
>>       <map:generate src="content/form/{page}.xml"/>
>>
>>       <map:transform type="cinclude"/>
>>       <map:transform type="xmlform" label="xml"/>
>>       <map:transform src="stylesheets/form2html.xsl"/>
>>       <map:transform
>>    
>>
>src="context://stylesheets/xmlform/xmlform2html.xsl"/>
>  
>
>>       <map:serialize type="html"/>
>>     </map:act>
>></map:match>
>>
>>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 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]>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>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]>

Reply via email to