You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2008/02/04 20:11:12 UTC

[Tapestry Wiki] Update of "Tapestry5Caveats" by DanielJue

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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org