Re: Tapestry and Clojure

2014-12-17 Thread Howard Lewis Ship
Actually, Clojure interop with Java is very good, so a Clojure function could be passed a Java object: (defn frobnicate-the-request [^Request request] (.setAttribute request "xyzzyx" (compute-the-magic-name))) The ^Request part is a type hint, it allows the Clojure compiler to generate proper

Re: [5.4-beta-22] Adding forms to a form using ajax

2014-12-17 Thread Geoff Callender
I'm late to this thread, but I don't see an explanation of **why** Muhammad can't add fields to the existing Form, so I'll try. Please correct me if I'm wrong. The starting point of the problem is that Form has a copy of its rendered state in a hidden field, and it depends on Form knowing what

Re: Correct usage of BeanEditForm to auto generate form, how to ?

2014-12-17 Thread Geoff Callender
Some examples that might help: T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/create1 T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/input/create1 Geoff On 17 Dec 2014, at 6:07 am, Thiago H de Paula Figueiredo wrote: > On Tue, 16 Dec

ServiceOverride help wanted

2014-12-17 Thread Aleksandar Nikolov
Hi, I need to override the original HibernateSessionSourceImpl service with a modification of mine - MyHibernateSessionSourceImpl. It is 5.3.8 version. I followed the instructions in http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html and replace the example code: @Contribu

Re: [5.4-beta-22] Adding forms to a form using ajax

2014-12-17 Thread Muhammad Gelbana
Thanks a lot Thiago for your response. As much as it answers my question, as much as it makes me sad that I couldn't do it easily using Zones. *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Wed, Dec 17, 2014 at 3:18 PM, Thiago H de Paula Figueiredo < thiag...@gm

Re: [5.4-beta-22] Adding forms to a form using ajax

2014-12-17 Thread Thiago H de Paula Figueiredo
On Wed, 17 Dec 2014 05:10:53 -0200, Muhammad Gelbana wrote: Yea I get. But I won't be able to fill these fields with their default values from the server side. The user won't see them, so what's the problem? :) Just submit the whole form when the Select value changes, so you don't lose th