RE: FormFragment checkbox not working

2013-05-21 Thread Lance Java
You have many @Persist annotations which I think are unnecessary. As a rule, if it's in the database, you don't need to store it in the session. Instead, pass an id (or ids) in the URL via the page activation context and look up the entities each time. There's a caveat to this rule that you often

Re: FormFragment checkbox not working

2013-05-21 Thread Thiago H de Paula Figueiredo
On Tue, 21 May 2013 12:02:01 -0300, Nomen Nomanum wrote: Here is the code to see how this could be achieve public Object getChoosenOne() { if(first==true){ zona.getBody(); return firstBlock; } else if(second== true) { zon

RE: FormFragment checkbox not working

2013-05-21 Thread Nomen Nomanum
Here is the code to see how this could be achieve dgdgdgdg fsfsf dgdgde gdgdgd @InjectComponent private Zone zone; @Persist(PersistenceConstants.FLASH)// will keep your data consistent during just one page life cycle. private boolean first,second;

RE: FormFragment checkbox not working

2013-05-21 Thread Nomen Nomanum
OK, remove completely annotation @Persist, since you don't need it, if you want that behavior.

Re: FormFragment checkbox not working

2013-05-20 Thread Nikola Vulovic
component does not work because of table tag works without it. On Mon, May 20, 2013 at 9:45 AM, Nikola Vulovic wrote: > behaviour is completely the same with and with out > (PersistenceConstant.FLASH) > > > On Sun, May 19, 2013 at 11:10 PM, Nikola Vulovic wrote: > >> formfragment is shown when

Re: FormFragment checkbox not working

2013-05-20 Thread Nikola Vulovic
behaviour is completely the same with and with out (PersistenceConstant.FLASH) On Sun, May 19, 2013 at 11:10 PM, Nikola Vulovic wrote: > formfragment is shown when checkox "renew" is not checked > > > > On Sun, May 19, 2013 at 5:28 PM, Nikola Vulovic wrote: > >> tml file >> > xmlns:t="htt

RE: FormFragment checkbox not working

2013-05-19 Thread Nomen Nomanum
Try adding @Persist(PersistenceConstant.FLASH) to your renew and see how would it behave. From: getibi...@outlook.com To: users@tapestry.apache.org Subject: RE: FormFragment checkbox not working Date: Sun, 19 May 2013 20:53:42 +0100 Pozdrav Nikola! Could you be more specific about what

Re: FormFragment checkbox not working

2013-05-19 Thread Nikola Vulovic
formfragment is shown when checkox "renew" is not checked On Sun, May 19, 2013 at 5:28 PM, Nikola Vulovic wrote: > tml file >xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"; > xmlns:p="tapestry:parameter"> > > > > > > > > >

RE: FormFragment checkbox not working

2013-05-19 Thread Nomen Nomanum
Pozdrav Nikola! Could you be more specific about what troubles you? From the code, it looks more-less just fine. What is it supposed to do? Date: Sun, 19 May 2013 17:28:02 +0200 Subject: Re: FormFragment checkbox not working From: nivuk...@gmail.com To: users@tapestry.apache.org tml file

Re: FormFragment checkbox not working

2013-05-19 Thread Nikola Vulovic
tml file http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter">