David,

> As Matthias points out below, you cannot use JSF html tags inside of 
> c:forEach. That's not only bad style, but it won't work as 
> you expect, 
> at least until JSF 1.2.

I guess you are inside of JCP-JSF-Group, isn't it?
So my question:
-JSF 1.2 will be included into J2EE 1.5 (aka J2EE 5)?

thanks,
Matthias

> david geary
> 
> > Btw. looked at Oracle's ADF Faces?
> >
> > <af:forEach/> will enable you to do things like
> > this in *good old* jsf-manner
> >
> > :)
> >
> >
> >> <c:forEach var="myVar" items="${myComp.myVectors}">
> >>  <c:set value="${myVar}" 
> var="myVarAsManagedBeanDefinedInFacesConfig"
> >> scope="myScope" />
> >>  <h:outputText 
> >> value="#{myVarAsManagedBeanDefinedInFacesConfig.foo}"/>
> >>
> >> <managed-bean> 
> >> <managed-bean-name>myVarAsManagedBeanDefinedInFacesConfig</man
> >> aged-bean-name>
> >> <managed-bean-class>ClassOfMyVar</managed-bean-class>
> >> <managed-bean-scope>myScope</managed-bean-scope>
> >> </managed-bean>
> >>
> >> works without any problems :-)
> >>
> >> Regards,
> >> Hendrik
> >>
> >> Am Freitag, 10. Dezember 2004 07:38 schrieb Matthias Wessendorf:
> >>> Hendrik,
> >>>
> >>> Heath means that you can't do things like:
> >>>
> >>> <c:forEach var="myVar" items="${myComp.myVectors}"> <h:outputText 
> >>> value="#{myVar.foo}"/> ... </c:...>
> >>>
> >>> Hans Bergsten wroten a nice article
> >>> on that (and other things): 
> >>> http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html
> >>>
> >>> Regards,
> >>> Matthias
> >>>
> >>>> -----Original Message-----
> >>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>>> Sent: Friday, December 10, 2004 7:24 AM
> >>>> To: MyFaces Discussion
> >>>> Subject: Re: pass bean as parameter to JSP
> >>>>
> >>>> Am Donnerstag, 9. Dezember 2004 22:40 schrieb Heath Borders:
> >>>>> I don't think you can use JSF tags inside a JSTL forEach tag.
> >>>>
> >>>> A managed bean specified in the faces-config is - afaik -
> >> a more or
> >>>> less normal jsp bean, reachable for all JSTL Tags, therefore you 
> >>>> can do this (let's say myComp is a managed bean, specified in the
> >> faces-config):
> >>>>
> >>>> <c:forEach var="myVar" items="${myComp.myVectors}">
> >>>> <c:set value="${myVar.hashCode}" target="${tempBean}" 
> >>>> property="tempHashValue" />
> >>>>
> >>>> If you're instancing objects with the c:forEach-Tag and
> >> want to use
> >>>> one of them as a managed bean (to do value binding etc.)
> >> you'll need
> >>>> to set reference correct:
> >>>>
> >>>> <c:set value="${myVar}" var="managedBeanDefinedInFacesConfig"
> >>>> scope="myScope" />
> >>>>
> >>>> Mabe it is not 100% standard conformable but belive me it
> >> works -
> >>>> I'm doing exactly this in my project with your MyFaces without 
> >>>> having any troubles.
> >>>>
> >>>> Greetings,
> >>>> Hendrik
> >>
> >
> 

Reply via email to