Re: beaneditform not hiding id

2015-10-29 Thread Geoff Callender
You can see in the example that it’s true - the id field isn’t rendered. If you’re seeing something different then I guess I’m about to learn something new! I haven’t looked behind the scenes of this since, perhaps, T5.0, so things may have changed. On submit, this example is getting the id fr

Re: jumpstart - ajax crud, doesn't work without @persist for me

2015-10-29 Thread Paul Stanton
Sorry! I had forgotten the 'async' parameter on the eventlink and it was a non-ajax request so an entirely different use case! Please ignore me, it now works just fine. FYI i am using T5.4 and jumpstart7 intentionally. On 29/10/2015 10:30 PM, Barry Books wrote: I believe jumpstart in the link

Re: beaneditform not hiding id

2015-10-29 Thread Paul Stanton
Thiago, Jumpstart says it is automatically excluded and it's published source code suggests this, however I couldn't get it to work like that. That part of it is a question for jumpstart (is it Geoff?) I agree, beanEditor is satisfactory, however for me, beanEditForm would be better if it su

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
further, it is not the 'save' that javassistifies the object, it is 'session.load' ! so if you do a session.load(id) and a criteria.list() which returns the same entity, the list will contain a javassisted version of the object, which doesn't play nice with tapestry.grid. using 'get' instead of

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
Hi Thiago, Using 'merge' instead of 'save' does not resolve the issue. I still have to evict. On 29/10/2015 11:04 PM, Thiago H de Paula Figueiredo wrote: On Thu, 29 Oct 2015 07:23:07 -0200, Paul Stanton wrote: I have found an issue I believe with tapestery (grid component in this case) wh

Re: AW: How to send additional data with an ajax response

2015-10-29 Thread Chris Poulsen
I haven't checked out all of the callback types, but we often use the javascript callback to do extra stuff on the calling page. Something like: ajaxResponseRenderer.addCallback( new JavaScriptCallback() { @Override public void run( JavaScriptSupport javascriptSupport ) { java

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Thiago H de Paula Figueiredo
On Thu, 29 Oct 2015 07:23:07 -0200, Paul Stanton wrote: I have found an issue I believe with tapestery (grid component in this case) where it cannot inspect details of hibernate 'enhanced' objects. This happens when I save an object to the database and then query it out again - the insta

Re: beaneditform not hiding id

2015-10-29 Thread Thiago H de Paula Figueiredo
BeanEditForm is just a thin layer over BeanEditor (basically, a Form with a BeanEditor and a submit button and almost nothing else), so I almost never use BeanEditForm myself, just BeanEditor. Also, I cannot see where in the BeanEditForm documentation it says @Id is automatically excluded.

Re: AW: How to send additional data with an ajax response

2015-10-29 Thread Thiago H de Paula Figueiredo
On Thu, 29 Oct 2015 05:59:30 -0200, Poggenpohl, Daniel wrote: Hello, do you have example code returning not only the body, but also additional data, for me? Have you even considered my suggestion of using data tags inside the rendered HTML to provide the data? -- Thiago H. de Paula F

Re: jumpstart - ajax crud, doesn't work without @persist for me

2015-10-29 Thread Barry Books
I believe jumpstart in the link below in running under 5.4 beta. I have not run 5.3 in a long time but I believe it requires @Persist in this case. What version are you running? On Thursday, October 29, 2015, Paul Stanton wrote: > Hi, > > I've modelled a form using jumpstart's (7) ajax crud howe

jumpstart - ajax crud, doesn't work without @persist for me

2015-10-29 Thread Paul Stanton
Hi, I've modelled a form using jumpstart's (7) ajax crud however in my case I seem to have to @persist(flash) the equivalent of 'function' http://jumpstart.doublenegative.com.au/jumpstart7/together/ajaxcomponentscrud/persons I think this is because there are two page instances: one to handle

Re: javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
Yes, it is necessary to 'evict' after 'save' to avoid this problem. I'm not sure that this is ideal since it increases db io and code but it works. On 29/10/2015 8:23 PM, Paul Stanton wrote: I have found an issue I believe with tapestery (grid component in this case) where it cannot inspect d

javassist/hibernate enhanced class problem

2015-10-29 Thread Paul Stanton
I have found an issue I believe with tapestery (grid component in this case) where it cannot inspect details of hibernate 'enhanced' objects. This happens when I save an object to the database and then query it out again - the instance is returned from cache as a botched/modified javassist vers

AW: How to send additional data with an ajax response

2015-10-29 Thread Poggenpohl, Daniel
Hello, do you have example code returning not only the body, but also additional data, for me? Regards, Daniel -Ursprüngliche Nachricht- Von: Chris Poulsen [mailto:mailingl...@nesluop.dk] Gesendet: Mittwoch, 28. Oktober 2015 22:16 An: Tapestry users Betreff: Re: How to send additional