Re: RE: How to add dinamic content
On Wed, 21 Aug 2013 07:54:49 -0300, nn kk wrote: Yes, that's the idea, I want to add any number of components on a page without submitting the whole page. For example: I want some input fields and an "Add button" to click, which openes a component - some form with different input fields. By every click - new such inner form to be opened and the other unsubmitted content to be not lost, also the inputs of the prev opened inner forms, to be not lost. Submit the form, so you can rerender the zone without losing the data by rendering pre-populated fields for the already filled fields and rendering additional ones. In addition, in HTML, forms cannot be nested, so there's no such thing as inner forms. And in the and I will submit/save the whole page. Despite the page dynamic content creation, I'm confused with the mapping of the dynamic added inner components and the java fields. There's no such thing in Tapestry (adding inner components). Tapestry components and classes have strictly static structure, but can have very dynamic behavior. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: RE: How to add dinamic content
Yes, that's the idea, I want to add any number of components on a page without submitting the whole page. For example: I want some input fields and an "Add button" to click, which openes a component - some form with different input fields. By every click - new such inner form to be opened and the other unsubmitted content to be not lost, also the inputs of the prev opened inner forms, to be not lost. And in the and I will submit/save the whole page. Despite the page dynamic content creation, I'm confused with the mapping of the dynamic added inner components and the java fields. I'm OK with using zones, but as I see it, because of not loosing dynamic content of prev opened components, every time new zone will be needed. - Crazy days на eMAG.bg! До 50% намаление! Кога: 20,21,22 август http://www.emag.bg/cmpnew/crazy-days-20-august?utm_source=NetInfo&utm_medium=abv.bg&utm_content=text_link&utm_campaign=CrazyDaysAugust - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to add dinamic content
So to be clear you want to do something like this: Page: Button A <- User clicks Page: SomeComponents Button A <- User clicks Page: Some components Some more components ButtonA etc. So what you want is not adding pages but components This can be done using Zones. This is a basic concept of Tapestry. Take a look here: http://jumpstart.doublenegative.com.au/jumpstart/ Check out the EventLink (former ActionLink) Then all you do is to replace the innerhtml of a existing component with new components. Check out Ajax EventLink and Zone without yellow highlight etc. The whole Ajax XXX sections should held the answer you seek. Cheers, Martin (Kersten), Germany 2013/8/18 nn kk > Hi all, > I want to be able to create and insert component dynamicly. For example, I > want to have "add button" and by every click to add whole new tapestry page > or component. I don't know how many addings will I have, I want this to be > handeled dynamicly. It's like using spring to return ModelAndView object by > ajax request and inserting it in some UI container. > > - > Само сега спечели смартфон SAMSUNG и още много награди!виж > http://www.specheli.eu/specheli-textgbg.php > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >