Mohamed El-Refaey wrote:
> Ivelin,
> 
>     Thanx, for ur interest. But I still ask if it is possible create and
>     repeat XMLForm dynamically according to the no. of products
>     retrieved from the DataBase and HOW I can manage the DataBinding of
>     each individual form instance with its coresponding JavaBeans as its
>     form model.

This is very simple.
Just create a collection of the beans you want to process and set the 
collection as your form model.
Then use the xf:repeat and xf:group tags to render all the beans in the UI.

See the FeedBack Wizard for example of xf:repeat and xf:group usage.

Let me know if this works.

If it does, maybe you can contribute your example as a case study doc ;)


Ivelin


>      
>     waiting for ur reply.
>      
>     Thanx
>     Mohamed
>      
>      >Hi all,
>      
>      >I'm very interested in the cocoon XMLForm and, but I'd like to ask
>     a question:
>      >is it possible to repeate XMLForm dynamically according to data
>     from Database ?and HOW I can make data binding of this >retrived
>     data with each repeated form instance.?
>      
>      >for Example :
>      >I have products from the DB and I wanna to display these products
>     in XMLForms to update their quantity in it
>      
>      
>>----------------------------------------------------------------------------------------------------------------------
>      >Product1
>      >ID :12236
>      >Name
>     :p1                                                                         
>             ----------------------
>      >Description: any description.    quantity(Text Box)
>     -------------------     Update Button
>      >                                                                         
>-------------------    ----------------------
>      
>>-----------------------------------------------------------------------------------------------------------
>      
>>-----------------------------------------------------------------------------------------------------------------------
>      >Product2
>      >ID :12256
>      >Name
>     :p2                                                                       
>              ----------------------
>      >Description: any description.    quantity(Text Box)
>     -------------------     Update Button
>      >                                                                        
>-------------------    ----------------------
>      
>>-----------------------------------------------------------------------------------------------------------------------
>      
>>-----------------------------------------------------------------------------------------------------------------------
>      >Product3
>      >ID :12776
>      >Name
>     :p3                                                                              
>  
>     ----------------------
>      >Description: any description.    quantity(Text Box)
>     -------------------     Update Button
>      >                                                                       
>-------------------   
>     ----------------------
>      
>>-----------------------------------------------------------------------------------------------------------------------
>      
>      >or it is better  to make all these data as container Bean that
>     contain products beans and this container is binded with only one
>      >Big form instance to process it instead of one form instance for
>     each product. ?
>      
>      >any help ?
>      >Thanx in advance
>      >Mohamed
> 



-- 

-= Ivelin =-


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