Re: problem with example .TML

2008-04-22 Thread János Jarecsni
thx for the info, I can live with this for now :) cheers, janos On 22/04/2008, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > > Hmm, looks like this was added in 5.0.12 which hasn't been released yet. > Sorry about that. > > Not quite sure how to solve your problem, then. > > -Filip > > On 2008-04-

Re: problem with example .TML

2008-04-22 Thread Filip S. Adamsen
Hmm, looks like this was added in 5.0.12 which hasn't been released yet. Sorry about that. Not quite sure how to solve your problem, then. -Filip On 2008-04-22 15:43, János Jarecsni wrote: The compiler is not so much interesting, Tapestry is 5.0.11 :) On 22/04/2008, János Jarecsni <[EMAIL PR

Re: problem with example .TML

2008-04-22 Thread János Jarecsni
The compiler is not so much interesting, Tapestry is 5.0.11 :) On 22/04/2008, János Jarecsni <[EMAIL PROTECTED]> wrote: > > Hi Filip, > > the compiler (Netbeans 6) complains about @Inject that "annotation type > not available for this kind of declaration". > > cheers, > janos > > On 22/04/2008, Fi

Re: problem with example .TML

2008-04-22 Thread János Jarecsni
Hi Filip, the compiler (Netbeans 6) complains about @Inject that "annotation type not available for this kind of declaration". cheers, janos On 22/04/2008, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > > Hi János, > > Sure can: > > public class MyClass { > ... > > @Inject > public MyClass() {

Re: problem with example .TML

2008-04-22 Thread János Jarecsni
thanks, I wasn't aware of such a usage of @Inject. I thought it is for IoC to inject some objects into the class. I will try this. And thanks! cheers janos On 22/04/2008, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > > Hi János, > > Sure can: > > public class MyClass { > ... > > @Inject > publi

Re: problem with example .TML

2008-04-22 Thread Filip S. Adamsen
Hi János, Sure can: public class MyClass { ... @Inject public MyClass() { } public MyClass(Date date) { ... } ... } Something like that. -Filip János Jarecsni skrev: hi Filip, and how to do that? could you include (inject :P) an example for that? thx! Janos On 22/04/200

Re: problem with example .TML

2008-04-22 Thread János Jarecsni
hi Filip, and how to do that? could you include (inject :P) an example for that? thx! Janos On 22/04/2008, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > > Hi, > > You can also put an @Inject annotation on the constructor you want > Tapestry to use when auto-instantiating your class. This way you c

Re: problem with example .TML

2008-04-22 Thread Filip S. Adamsen
Hi, You can also put an @Inject annotation on the constructor you want Tapestry to use when auto-instantiating your class. This way you can have multiple constructors. -Filip János Jarecsni skrev: Hi Michael, I googled for this problem and found a response to a similar problem from you. I

Re: problem with example .TML

2008-04-22 Thread János Jarecsni
Hi Michael, I googled for this problem and found a response to a similar problem from you. I followed the instructions there, and succeeded. (I had to remove the constructor which takes arguments! from the Celebrity class - until there was this ctr besides the no-arg, it still tried to use it, no

Re: problem with example .TML

2008-04-21 Thread János Jarecsni
Hi Michael, I had a look... but it does not make too much sense for me :) Where do I use model.remove() now? Or do you mean I should change the remove attribute in wrote: > > Hi Janos, > > take a look at the upgrade notes. Close to the bottom the change of the > BeanModel signature is documente

Re: problem with example .TML

2008-04-21 Thread Michael Gerzabek
Hi Janos, take a look at the upgrade notes. Close to the bottom the change of the BeanModel signature is documented. Now you need mode.exlude(..) instead of model.remove(..). Regards, Michael [1] http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html János Jarecsni schrieb: Hi, I

problem with example .TML

2008-04-21 Thread János Jarecsni
Hi, I have upgraded from 5.0.10 to 5.0.11 and a .TML which worked before now throws this: An unexpected application exception has occurred. Render queue error in SetupRender[AddCelebrity:celebrity.editor]: Exception instantiating instance of com.packtpub.celebrities.model.Celebrity (for componen