myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: Problem with composite component inside ui:repeat
Date Thu, 13 May 2010 18:16:08 GMT
Hi,

The problem seems to be that UIRepeat does not handle the component stack
correctly. Thus the LocationMethodExpression, which is needed to resolve
MethodExpressions containing cc, cannot find the correct composite component
instance.

I will fix this asap!

Regards,
Jakob

2010/5/13 Mark Struberg <struberg@yahoo.de>

> Maybe I'm on the completely wrong track, but does it work with c:forEach?
>
> LieGrue,
> strub
>
> --- On Thu, 5/13/10, Jakob Korherr <jakob.korherr@gmail.com> wrote:
>
> > From: Jakob Korherr <jakob.korherr@gmail.com>
> > Subject: Re: Problem with composite component inside ui:repeat
> > To: "MyFaces Discussion" <users@myfaces.apache.org>
> > Date: Thursday, May 13, 2010, 4:08 PM
> > Hi Bruno,
> >
> > This sounds like a bug. I will investigate it!
> >
> > Regards,
> > Jakob
> >
> > 2010/5/13 Bruno Aranda <brunoaranda@gmail.com>
> >
> > > Hi,
> > >
> > > I am having some problems to understand this case:
> > >
> > > I have a composite component inside a ui:repeat.
> > Something like this:
> > >
> > >  <ui:repeat value="#{testController.objects}"
> > var="obj">
> > >
> >     <myComposite:myComp />
> > >  </ui:repeat>
> > >
> > > And the implementation of the component contains
> > this:
> > >
> > > <composite:implementation>
> > >    <h:commandButton value="Say something"
> > actionListener="#{cc.sayHello}">
> > > <composite:implementation>
> > >
> > > And I have the corresponding faces component with the
> > "sayHEllo"
> > > actionListener method.
> > >
> > > However, I get an exception saying that "cc.sayHello"
> > cannot be executed
> > > because "cc" is null for that request.
> > >
> > > Everything works as expected outside the ui:repeat, so
> > it seems that for
> > > some reason the "cc" is lost after the first request?
> > Or is this expected
> > > and I am doing something wrong?
> > >
> > > Thanks!
> > >
> > > Bruno
> > >
> >
> >
> >
> > --
> > Jakob Korherr
> >
> > blog: http://www.jakobk.com
> > twitter: http://twitter.com/jakobkorherr
> > work: http://www.irian.at
> >
>
>
>
>


-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message