You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ZedroS Schwart <ze...@gmail.com> on 2006/05/08 16:41:20 UTC
Issue with property injection
Hi all
In a class called UtilisateursPage.java , I've put :
public abstract class UtilisateurPage extends BasePage implements
PageBeginRenderListener {
@Persist("client")
public abstract String getInternalId();
public abstract void setInternalId(Long id);
...}
I call this page somewhere else using :
@InjectPage("UtilisateurPage")
public abstract UtilisateurPage getUtilisateurPage();
public IPage onEdit(Long id) {
UtilisateurPage utilisateurPage = getUtilisateurPage();
utilisateurPage.setInternalId(id);
return utilisateurPage;
}
When this page is called, thourgh the getUtilisateurPage() I got the error :
Exception invoking listener method onEdit of component
pages/admin/UtilisateursManager: Error at
context:/WEB-INF/pages/admin/UtilisateurPage.page, line 6, column 60: Method
'public abstract void administration.UtilisateurPage.setInternalId(
java.lang.Long)' (declared in class administration.UtilisateurPage) has no
implementation in class administration.UtilisateurPage (or enhanced subclass
$UtilisateurPage_40).
I don't know where it comes from... Could you help me please ?
I guess it's quite trivial but I don't the error...
Thanks in advance
ZedroS
Re: Issue with property injection
Posted by ZedroS Schwart <ze...@gmail.com>.
Thanks a lot. Such a stupid error **shame**
I won't forget, that's certain !
Cheers
ZedroS
On 5/8/06, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> change
> public abstract String getInternalId();
> to
> public abstract Long getInternalId();
>
> ZedroS Schwart wrote:
> > Hi all
> >
> > In a class called UtilisateursPage.java , I've put :
> > public abstract class UtilisateurPage extends BasePage implements
> > PageBeginRenderListener {
> > @Persist("client")
> > public abstract String getInternalId();
> > public abstract void setInternalId(Long id);
> > ...}
> >
> > I call this page somewhere else using :
> > @InjectPage("UtilisateurPage")
> > public abstract UtilisateurPage getUtilisateurPage();
> >
> > public IPage onEdit(Long id) {
> > UtilisateurPage utilisateurPage = getUtilisateurPage();
> > utilisateurPage.setInternalId(id);
> > return utilisateurPage;
> > }
> >
> > When this page is called, thourgh the getUtilisateurPage() I got the
> > error :
> > Exception invoking listener method onEdit of component
> > pages/admin/UtilisateursManager: Error at
> > context:/WEB-INF/pages/admin/UtilisateurPage.page, line 6, column 60:
> > Method
> > 'public abstract void administration.UtilisateurPage.setInternalId(
> > java.lang.Long)' (declared in class administration.UtilisateurPage)
> > has no
> > implementation in class administration.UtilisateurPage (or enhanced
> > subclass
> > $UtilisateurPage_40).
> >
> > I don't know where it comes from... Could you help me please ?
> >
> > I guess it's quite trivial but I don't the error...
> >
> > Thanks in advance
> > ZedroS
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Issue with property injection
Posted by Andreas Andreou <an...@di.uoa.gr>.
change
public abstract String getInternalId();
to
public abstract Long getInternalId();
ZedroS Schwart wrote:
> Hi all
>
> In a class called UtilisateursPage.java , I've put :
> public abstract class UtilisateurPage extends BasePage implements
> PageBeginRenderListener {
> @Persist("client")
> public abstract String getInternalId();
> public abstract void setInternalId(Long id);
> ...}
>
> I call this page somewhere else using :
> @InjectPage("UtilisateurPage")
> public abstract UtilisateurPage getUtilisateurPage();
>
> public IPage onEdit(Long id) {
> UtilisateurPage utilisateurPage = getUtilisateurPage();
> utilisateurPage.setInternalId(id);
> return utilisateurPage;
> }
>
> When this page is called, thourgh the getUtilisateurPage() I got the
> error :
> Exception invoking listener method onEdit of component
> pages/admin/UtilisateursManager: Error at
> context:/WEB-INF/pages/admin/UtilisateurPage.page, line 6, column 60:
> Method
> 'public abstract void administration.UtilisateurPage.setInternalId(
> java.lang.Long)' (declared in class administration.UtilisateurPage)
> has no
> implementation in class administration.UtilisateurPage (or enhanced
> subclass
> $UtilisateurPage_40).
>
> I don't know where it comes from... Could you help me please ?
>
> I guess it's quite trivial but I don't the error...
>
> Thanks in advance
> ZedroS
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org