@Persist and PageBeginRender

2007-06-26 Thread mateamargo
I have a page that I'm using to create and edit an element. I've added a property named "isEditMode" which I set in "pageBeginRender" method. I do something like this: setEditMode(getItem() != null). If the item is not null, means that has been setted from the previous page (an item listing), if

Re: InjectSpring and NullPointerException

2007-04-26 Thread mateamargo
Alejandro Scandroli wrote: > > Hi Matecito ;-) > > I'm using Tapestry 4.0.2, but @InjectSpring and @InjectObject > annotations are not from Tapestry 4.0.2 core, they are from > tapestry-spring module. > Anyway, if when you change something you get a bean error it means > that the problem is in

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Alejandro Scandroli wrote: > > I have no clue. > Are you sure your spring context is ok? and is getting loaded? > Have you tried with @InjectObject("spring:personDAObean")? > Dough it should produce the same result > > I know that it is loading fine because if I change something I get a bean

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Alejandro Scandroli wrote: > > Hi MateAmargo > > just remove the property from the page definition > let the ".page" empty > > > > > Saludos. > Alejandro. > Hi Alejandro, I have just removed the property and now I'm trying to run Jetty.

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Santiago Fernández wrote: > > Yes, you need a .page file, like every tapestry page. Or set the property > " > org.apache.tapestry.page-class-packages" in .application file. > > Browse into the example: > http://www.google.com/codesearch?hl=en&q=show:W7d5X-mFWSg:dORw9TpfYA4:F3TWNBX8eZ4&sa=N&ct=

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Jessek wrote: > > Where are you getting that local member from ? You can't have anything > injected and used as a local member because the method you add the > annotation to will likely be replaced...So if you've been trying to set a > member and seeing it null that's why - it's not actually us

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Alex Fishlock wrote: > > I use this with good results: > > @Inject("spring:somebean") > private SomeBean somebean; > Without getter or setter? Are you using a .page file for each class? -- View this message in context: http://www.nabble.com/InjectSpring-and-NullPointerException-tf3646961.ht

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Santiago Fernández wrote: > > This code works for me: > > public abstract class Home extends BasePage > { > > ... > @InjectSpring("someBean") > public abstract SomeBean getSomeBean(); > ... > > Check this code: > http://www.google.com/codesearch?hl=en&q=+doc:9AU8EeUPIqc+%40In

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Santiago Fernández wrote: > > Hi, mateamargo. The getter > > @InjectSpring("somebean") > public abstract SomeBean getSomething(); > > works fine... but be careful when you call getSomething()... if you call > this getter inside an "initialize()"

InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
I don't know if this should be asked here or in the SpringFramework forum. I have a bean defined and I need to inject it into a property inside a class that extends BasePage. But when I read this property I get a NullPointerException. Before that, I have tried without providing an implementation

Re: Specify where to find the HTML templates

2007-04-24 Thread mateamargo
mateamargo wrote: > > > > Manri Offermann-3 wrote: >> >> Hi, >> >> how about ITemplateSourceDelegate: >> >> org.apache.tapestry. template-source-delegate >> >> or you could modify the specification resolver delegate

Re: Specify where to find the HTML templates

2007-04-24 Thread mateamargo
Manri Offermann-3 wrote: > > Hi, > > how about ITemplateSourceDelegate: > > org.apache.tapestry. template-source-delegate > > or you could modify the specification resolver delegate like this example: > > http://wiki.apache.org/tapestry/SpeclessPagesInWEB-INF > > Regards, > > Manri > Th

Re: Specify where to find the HTML templates

2007-04-23 Thread mateamargo
Manri Offermann-3 wrote: > > Hi, > > You can use the ISpecificationResolverDelegate and specify where to find > the specs and htmls. Try something like this: > > http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF > > Best regards, > > Manri > Hi, thanks for your answer. I'm look

Re: Specify where to find the HTML templates

2007-04-22 Thread mateamargo
Howard Lewis Ship wrote: > > there are some hacks/kludges if its absolutely necessary. Is it, or is > WEB-INF > sufficient? > Depends. How are those hacks? Are too difficult to do? -- View this message in context: http://www.nabble.com/Specify-where-to-find-the-HTML-templates-tf3603234.html

Specify where to find the HTML templates

2007-04-18 Thread mateamargo
I 'm using Tapestry without problems. But I need to hide the HTML templates. Actually they are inside src/main/webapp, but I need them to be inside src/main/webapp/WEB-INF/pages. Where do I tell Tapestry that the templates are going to be there. Thanks. -- View this message in context: http://w