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
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
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
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.
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=
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
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
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
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()"
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
mateamargo wrote:
>
>
>
> Manri Offermann-3 wrote:
>>
>> Hi,
>>
>> how about ITemplateSourceDelegate:
>>
>> org.apache.tapestry. template-source-delegate
>>
>> or you could modify the specification resolver delegate
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
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
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
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
15 matches
Mail list logo