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 BeanModel beanModel;
    
    @Inject
    private BeanModelSource beanModelSource;
    
    public Object onActivate(String id)
    {
        if (beanType == null)
            return Utils.new404(messages);

        this.bean = contextValueEncoder.toValue(beanType, id);
        
        if (bean == null)
            return Utils.new404(messages);
        
        beanModel = beanModelSource.createEditModel(beanType, messages);
    
        return null;
    }

So i am thinking now it is some kind of race condition whereby my onActivate 
handler doesn't get called to initialize the page to render properly.

I wish there was something I could rely on to write some reliable code.

I have already proven that I cannot incorporate a formal parameter to the above 
routine or the event handler never gets called...or I think its not getting 
called or its not getting called in time

I have already proven that if I add properties and injections as above and try 
to use them inside the handler... the handler never gets called...or I think 
its not getting called or its not getting called in time

So whats multi-threaded that could be affecting the runtime with regard to 
event handlers and page rendering?




The page errors are not worth looking at because they are artificially induced
Here is the latest page error... but it is just a byproduct of the event 
handler not being invoked in order to set things up.



An unexpected application exception has 
occurred.org.apache.tapestry5.ioc.internal.OperationExceptionException
 assembling root component of page edit/Coach: Could not convert 
'bean.firstname' into a component parameter binding: Exception 
generating conduit for expression 'bean.firstname': Class 
java.lang.Object does not contain a property (or public field) named 
'firstname'.traceConstructing instance of page class 
org.tynamo.examples.hibernatesecurity.pages.edit.CoachEditAssembling root 
component for page edit/Coachjava.lang.RuntimeExceptionException
 assembling root component of page edit/Coach: Could not convert 
'bean.firstname' into a component parameter binding: Exception 
generating conduit for expression 'bean.firstname': Class 
java.lang.Object does not contain a property (or public field) named 
'firstname'.org.apache.tapestry5.ioc.internal.util.TapestryExceptionCould
 not convert 'bean.firstname' into a component parameter binding: 
Exception generating conduit for expression 'bean.firstname': Class 
java.lang.Object does not contain a property (or public field) named 
'firstname'.locationclasspath:org/tynamo/examples/hibernatesecurity/pages/edit/CoachEdit.tml,
 line 3530                 -->31                   
32                      <t:beaneditor object="bean" model="beanModel">33        
                        <p:firstName>34                            <t:label 
for="firstname">My FirstName</t:label>35                               
<t:textfield t:id="firstname" value="bean.firstname"/>36                        
     </p:firstName>  37                      </t:beaneditor>                 38 
                     



                                          

Reply via email to