Re: custom edit page not possible

2012-12-17 Thread Josh Canfield
I spent the last 45 minutes installing tynamo for the first time. It's NOT tapestry, it's a third party extension that I have never used, and I have no idea how many people use it. It looks like the problem is in the tynamo documentation. > To start customizing a page, make a copy of the appropri

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
I was able to get my java running and override a property on the BeanEditor component The commented out code is what prevents the event handler from being invoked... I dont have the answer to why though // @OnEvent(EventConstants.ACTIVATE) // Object activate(Class clazz, String id)

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
if I comment out the lines of code... My event handler gets invoked... and I stop at my breakpoint.. /* @Property(write = false) private TynamoClassDescriptor classDescriptor; @Property private BeanModel beanModel; @Inject private BeanModelSource beanModelSo

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
Well I cannot go with what I thought I could go with... If I add any code to propagate logic in my page... I get different results... which I attribute are affecting the runtime... @Property(write = false) private TynamoClassDescriptor classDescriptor; @Property private B

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
Thanks Geoff, I will cook down and give that a shot.

Re: custom edit page not possible

2012-12-15 Thread Geoff Callender
I'd suggest you use a single "activate" event handler, with a signature like this: public Object onActivate(EventContext ec) You can see it being used in here: http://jumpstart.doublenegative.com.au/jumpstart/together/onepagecrud/persons Doco is here: http://tapestry

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
public Object onActivate(String id) { if (bean == null) return Utils.new404(messages); this.bean = contextValueEncoder.toValue(beanType, id); if (bean == null) return Utils.new404(messages); return null; } so this is wh

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
This doesnt work... public Object onActivate(Class clazz, String id) { if (clazz == null) return Utils.new404(messages); this.bean = contextValueEncoder.toValue(clazz, id); this.beanType = clazz; if (bean == null) return U

RE: custom edit page not possible

2012-12-15 Thread Ken in Nashua
Well after tinkering and tinkering... this works public Object onActivate(String id) { if (beanType == null) return Utils.new404(messages); this.bean = contextValueEncoder.toValue(beanType, id); if (bean == null) return Utils.new404(messa

Re: custom edit page not possible

2012-12-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Dec 2012 04:59:44 -0200, Ken in Nashua wrote: The problem with my webapp is it keeps going into my resources dir for templates instead of the webapp context dir for templates. There has been some back and forth about this in the past and I am not sure what the canonical way is

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
The problem with my webapp is it keeps going into my resources dir for templates instead of the webapp context dir for templates. There has been some back and forth about this in the past and I am not sure what the canonical way is. It seems components can live in the webapp context dir fine.

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
here is the actual error An unexpected application exception has occurred.java.lang.RuntimeExceptionPage edit/Coach did not generate any markup when rendered. This could be because its template file could not be located, or because a render phase method in the page prevented rendering. java/

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
yikes,... sorry thiago... i thought I was replying into nother group while I got you on the line... tynamo is the better tapestry its the best code base on the planet and operated by the best developers in the world unfortunately, it lacks finish and polish and I am probably the only guy on

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
Can anyone add to this module to make it a custom edit ? It is currently a custom edit as it sits in my build but I cannot get the activate handler to execute. And blue in the face @At("/{0}/{1}/edit") public class MyDomainObjectEdit { @Inject private ContextValueEncoder contextValueEn

Re: custom edit page not possible

2012-12-12 Thread Thiago H de Paula Figueiredo
You should have mentioned before that you're trying to use Tynamo default pages. We thought it was about regular Tapestry ones, not using Tynamo, so your question is not about Tapestry itself, but about a Tynamo feature. I've never used Tynamo, unfortunately, so I can't help you here. -- Th

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
Well this doesnt work as designed/documented Customized tapestry-model templates If you don't customize anything, Tynamo uses default pages. In Tapestry, a component (a page is a component as well) is comprised of two parts: its template and a backing java class. There's a default page for ea

Re: custom edit page not possible

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 14:53:17 -0200, Ken in Nashua wrote: Folks, Hi! is there any unknown magic to creating a simple custom edit page? Absolutely no. I copied Edit.tml into a respective resources/org/tynamo/examples/hibernatesecurity/edit/CoachEdit.tml I copied Edit.Java into a resp

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
correction I copied Edit.tml into a respective resources/org/tynamo/examples/hibernatesecurity/pages/edit/CoachEdit.tml I copied Edit.Java into a respective java/org/tynamo/examples/hibernatesecurity/pages/edit/CoachEdit.java I