Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by DanielJue:
http://wiki.apache.org/tapestry/Tapestry5Caveats

New page:
This page is about little issues that come up when using Tapestry (or web apps 
in general), usually in the form of an error message.  These are NOT Tapestry 
bugs, merely differences between the your approach and Tapestry.  Tapestry5 
bugs should be logged in the JIRA.

Some of these issues are more likely to be encountered by Tapestry 5 early 
adopters, for example those who worked with 5.0.5 and are now using 5.0.10.


== NoClassDefFoundError ==
appears in T5.0.10
{{{
Render queue error in BeginRender[Portal:layouterp.menuerp.pagelink_2]:
Could not convert 'something' into a component parameter binding:
java.lang.NoClassDefFoundError:
com/mycompany/myapplication/pages/MyPage
}}}
Here, 'something' is some element in your application.
=== Cause === 
Per HLS:
You'll see an explanation in the console.  I suspect you are using a
slightly older Tapestry preview release; more recently, this situation
is an error.  Because of how Tapestry instruments your code, instance
variables must be private.

In this example, start looking in 'MyPage.java' for a variable that is not 
private.
Make it private and use getters/setters for each attribute.

This also applies when you are subclassing components.  Even though Inheritance 
will let you access public/private variables in the superclass, you will need 
to make the variables private and use getters/setters instead.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to