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