webtier@glassfish.java.net

Re: [webtier] AJAX in JSF 2.0

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Sun, 20 Dec 2009 10:34:26 -0500

Wrap the entire side bar in an h:panelGroup, then use Thomas panelgroup as
the target for Ajax events. Try that. :)

Lincoln Baxter III
http://ocpsoft.com
http://scrumshark.com
Keep it simple.

On Dec 20, 2009 4:02 AM, "Felipe Gaścho" <fgaucho_at_gmail.com> wrote:

Hi there,

I just started my first JSF 2.0 project, here the first draft results:
 http://fgaucho.dyndns.org:8080/arena-jsf20/

now, see that "ads sidebar" ? with the marketing on the right border?

here it is the code:

<ui:repeat var="advertisement" value="#{testBean.pujAds}"
       varStatus="status">
       <li><a target="#{status.index}" href="#{advertisement.url}"><img
               alt="#{advertisement.institution.name}"
               src="#{advertisement.thumbnail}" /></a></li>
</ui:repeat>

So, how can I make this code to be loaded in asynchronous way ? with
ajax...... ?

the #{testBean.pujAds} return a collection of advertisement objects.......



------------------------------------------
  Felipe Gaścho
  10+ Java Programmer
  CEJUG Senior Advisor

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net