I'm going from the pdf. I thought it was very good overall. I especially
liked the Advanced Features section.
I consider myself an "advanced beginner", just shy of an intermediate
jsf/facelets user.
slide 7: you have h:repeat instead of ui:repeat.
slide 15: I would think a major con of the first approach would be that the
html is compiled into a java class. Even if you extract it into a
properties file or whatever, it seriously impacts the development cycle when
you have to rebuild a java file and reload a webapp rather than tweaking a
.xhtml file and hitting reload in the browser. You skim this topic in your
con regarding the page author not having control but it may be worth an
explicit mention of this con.
slide 38: I had to read the caveat several times. We have been talking
about ui:repeat over and over and over, and suddenly the caveat refers to
ui:include, but I read it ui:repeat. Probably more my problem than a
problem with the tutorial.
slide 56: This isn't an EL tutorial, so this may be more confusing than
helpful, but the code snippet could be rewritten, going from:
<ui:repeat var="language"
value="#{programmer.languages}" varStatus="status">
<ui:fragment rendered="#{status.even}">
<li class="evenLang">#{language}</li>
</ui:fragment>
<ui:fragment rendered="#{!status.even}">
<li class="oddLang">#{language}</li>
</ui:fragment>
</ui:repeat>
to this:
<ui:repeat var="language" value="#{programmer.languages}"
varStatus="status">
<li class="#{status.even ? 'evenLang' : 'oddLang'}">#{language}</li>
</ui:repeat>
Thanks,
Joel Weight
On Thu, Feb 18, 2010 at 12:28 PM, <webtier_at_javadesktop.org> wrote:
> Today I uploaded a new section to
> http://www.coreservlets.com/JSF-Tutorial/jsf2/ This new section is
> entitled "ui:repeat and Handling Variable-Length Data".
>
> It has two main parts:
>
> - Options for dealing with arrays and lists (bean getter methods, composite
> components, h:dataTable, ui:repeat). It briefly covers the pros and cons of
> each, with short examples.
>
> - Details on ui:repeat, with longer examples.
>
> I would appreciate gentle feedback from both beginners (is it
> understandable?) and experts (what errors and omissions did I make?).
>
> Thanks!
>
> Cheers-
>
> - Marty
> Live JSF 2.0 Training Course:
> http://courses.coreservlets.com/public-courses/jsf2/
> [Message sent by forum member 'martyhall' (hall_at_coreservlets.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=387440
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>