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
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)
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
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
Thanks Geoff, I will cook down and give that a shot.
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
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
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
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
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
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.
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/
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
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
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
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
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
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
18 matches
Mail list logo