On Thu, Oct 13, 2011 at 11:22 AM, Vangel V. Ajanovski <a...@ii.edu.mk> wrote: > I discussed this changed behaviour a couple of days ago, but today I noticed > a different behaviour. > > So, the problem: > - I have a component let's say ActionLink in TML > - I have onAction... method in the Java > > The new behaviour for checking dead code, will render exception if I comment > the ActionLink in TML, and I leave active the method in Java. > > This is OK, but today such exception occured when I put the ActionLink > inside an If.
You may have gotten an exception, but that wasn't it. You are jumping to incorrect conclusions. > The tested object had value null, so the If did not render and so the > actionlink component become non-existant and Tapestry complained with an > exception that the onAction method references a component that does not > exist. The ActionLink component does not become non-existent, anymore than a method on a Java class becomes non-existent when it is not invoked. You must have had some other typo in your template ... in which case, the runtime checks you are complaining about are actually helping you quite a bit! > > This was very strange behaviour and after this I had another thing even more > strange. > Live reload stopped working and although I deleted both the ActionLink in > the TML, and in the Java code and it was compiling OK, Tapesty still > insisted on giving an ExceptionReport that the onAction method referenced an > component that does not exist (except that this time, there was not a single > onAction method in the class, all were deleted and recompiled). So it was > obviously giving an old version, not reloading neighter TML, nor Java, > despite being in development mode. > > I should note that I use an ExceptionReport page, and it is a very basic > one. > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org