Ok I tried it very often ... and it looked like that page: ... <span jwcid="@Foreach" source="ognl:MyList" value="ognl:TemporaryItem" index="ognl:Index"> <span jwcid="@If" condition="ognl:MyClass"> <span jwcid="@MyFormComponent" item="ognl:TemporaryItem"/> </span> </span> ...
myformcomponent.jwc ... <component id="putitin" type="TextArea"> <binding name="value" value="ognl:item.content"/> </component> <!-- Parameter --> <parameter name="item" required="yes"/> ... myformcomponent.html <form jwcid="[EMAIL PROTECTED]" listener="listener:formSubmit"> <textarea jwcid="putitin" cols="70" rows="10"> Content... </textarea> <input type="submit" value="Send"/> </form> Reading the Parameter was no problem but when I submit the form i get an "setProperty(null,content,"my new value exception)"... I my eyes it looks like that the binding wasn´t successfull. I read several forum-messages ... some of them with the same problem. They all give the parameter to a persistent property. Jessek wrote: > > Sure it can...Just go look at the For component. > > On 11/3/06, Skorpien126 <[EMAIL PROTECTED]> wrote: >> >> >> Oh yeah... this was my first Idea,too ... after reading tapestry in >> action. >> but using parameter is not possible because the parameters ( in my case >> ) >> are propertys of an object which itself is put in a persist collection. I >> guess that tapestry can´t bind objects of an collection.... ?!?!?!? >> >> >> >> Jessek wrote: >> > >> > Generally speaking you really ~don't~ want to store persistent fields >> in >> a >> > component if you can help it. Make everything a parameter. >> > >> > On 11/2/06, Skorpien126 <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> SOLVED: >> >> >> >> created a bean .... but not using the property-attribute of the bean >> >> tag... >> >> instead i make use of getBeans().getBean("beanname")... SURELY not the >> >> most >> >> intuitiv way... an lot of casting around but it seems to work!! >> >> >> >> >> >> >> >> Skorpien126 wrote: >> >> > >> >> > I have found several posts here where this problem is discribed.. >> but >> >> > >> >> > "no one" works in my case... >> >> > >> >> > One described: Overwrite the pageBeginRender ... i tried but i use a >> >> > @For-Component so that this doesnt work because the property is >> >> > persistent. Error ("Change to persistent property ... has been >> ignored. >> >> > Persistent properties may only be changed prior to the rendering of >> the >> >> > response page." ) >> >> > >> >> > Another one make use of a bean... I also tried this... overwriting >> the >> >> > bean-value with the parameter value in the pageBeginRender method >> but >> >> this >> >> > also throws an error. in correspondending abstract class i make use >> of >> >> the >> >> > property normally generated on rendering (discribed here >> >> > http://tapestry.apache.org/tapestry4.1/usersguide/spec.html ->bean >> >> > specification). >> >> > This throw also an error "ognl.NoSuchPropertyException >> >> > >> >> > org.apache.tapestry.bean.BeanProvider.persistItem " >> >> > >> >> > Here my bean specification: >> >> > <bean name="persistItemBean" lifecycle="page" property="persistItem" >> >> > class="myobject"></bean> >> >> > >> >> > Has anyone an idea... or better a solution??? ^^ >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf2555545.html#a7146931 >> >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > Jesse Kuhnert >> > Tapestry/Dojo/(and a dash of TestNG), team member/developer >> > >> > Open source based consulting work centered around >> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf2555545.html#a7154502 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Jesse Kuhnert > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > -- View this message in context: http://www.nabble.com/ComponentParameter-value-to-Persistent-ComponentProperty-tf2555545.html#a7172942 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]