links for 2011-01-21

22 01 2011
  • I'm trying to re-use a form as an edit form if its posted with GET parameters. The form works fine for both add and edit. The problem is that if I delete an entry, the next time I try to use the form as an add form, it throws an error (below).

    "Caused by: org.jboss.seam.framework.EntityNotFoundException: entity not found: us.ziacom.vm.model.Account#8"

    Answer: It looks like you are trying to reuse the same Home object. Don't, get a new one (e.g. start a new conversation).
    Notes: Watch out for s:buttons propagation, must be set to "none", you should also pass a parameter with no value to be set for entity Id in the Home object (or action), eg. <f:param name="myClassId" />, public class MyClassHome extends EntityHome<MyClass> { public setMyClassId(Integer id) { this.setId(id); } …


Acciones

Information

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s




A %d blogueros les gusta esto: