logo       
Google Custom Search
    AddThis Social Bookmark Button

repeat elements: msg#00031

Subject: repeat elements

I am trying to overcome Chiba functioning in a clustered environment issue by storing XFormsDocument (Document) and not the whole ServletAdapter in session (doGet) and then trying to recreate container+model etc in doPost. I have succeeded for simple forms but I have encountered a problem when I have tables because of Repeat elements.

 

I would therefore like to ask some more information on how Repeat works.

 

The way I see it in the code, the first time the Repeat entries are created, a repeat prototype is stored (storeRepeatPrototype method in class Repeat) ; then

repeat entries are removed and recreated and then these repeat entry elements are initialized.

 

My problem is that even though the form is displayed successfully the first time (with tables appearing properly) when I press submit button

and the model is probably rebuilt, Chiba assigns a RepeatEntry type in an element which used to be Output. This way I get a class cast exception

in method getRepeat of RepeatEntry class and Chiba fails.

 

Could you point me to any direction on how I could overcome this problem or explain to me a little more in detail how Repeat works.

 

Any suggestion even far-fetched would be a plus for me

 

Thank you.

 

Giota

 


Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>