Nope, I don't have any persistent anymore, I used to have but not anymore...
Regards On 9/5/06, Eric Fesler <[EMAIL PROTECTED]> wrote:
Do you have any persistent properties related to Evento on your page ? If somehow, you have a persistent Evento or if you have serialized an Evento somwhere in your page, this could explain your lazy instantiation exception. -- ERic On Monday 04 September 2006 21:31, Vinicius Carvalho wrote: > Hello there! I have a page using a contrib:Table. So far it was > working great. Until I decided to add a property that is a lazy proxy > for an association: > > <span jwcid="[EMAIL PROTECTED]" > condition="ognl:(components.tabelaEventos.tableRow.moderador.confirmado)"> > > The page is a master-detail page. The first time it is loaded it works > great. Now comes the odd part, if I add a new master object, next time > its load its ok, but suppose I click in a link anywhere in the page, > and come back to this page of if I reload the page I get a lazy > instantiation exception: the owning session was closed. > > To get the source I have this method: > > public List getEventos(){ > return getEventoService().obterEventos(); > } > > So every time it does search the database (I'm not using a tablemodel yet). > > The add listener: > > public IPage cadastrarEvento(IRequestCycle cycle){ > ValidationDelegate delegate = (ValidationDelegate) > getBeans().getBean("customDelegate"); > > Evento evento = null; > > if(delegate.getHasErrors()){ > return null; > } > > try{ > evento = getEventoService().cadastrarEvento(getEvento(),getPath(cycle)); > }catch (ChatException e) { > delegate.record(null,getMessages().getMessage(e.getMessage())); > return null; > } > > setEvento(new Evento()); > return this; > } > > If I take off that column (evento.moderador.confirmado) the problem goes > away Any ideas? > > Regards > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]