Thanks for your response.


Basically, I am creating a tab facelet component. The code below is for
achieving lazy loading. I am iterating over each tab and creating a
commandlink for each:



<c:forEach var="tabs1" items="#{paramList}" begin="0" end="#{listSize}"
varStatus="status">
    <c:set var="index" value="#{status.index}" scope="session"/>
    <c:choose>
     <c:when test="${tabs1.lazyLoadingEnabled =='true'}">
          *<tr:commandLink id ="LazyLoad#{CompId}_#{index}"
partialSubmit="true" actionListener="#{tabs1.ClickAction}"></tr:commandLink>
**
*     </c:when>
     <c:otherwise>
     </c:otherwise>
    </c:choose>
</c:forEach>







On click on each tab, I trigger the command link to display the
panelgroupLayout:



<c:forEach var="tab" items="#{paramList}" begin="0" end="#{listSize}"
varStatus="status">
      <c:set var="Tcount" value="#{status.index}" scope="session"/>

          *   <tr:panelGroupLayout
id="LazyLoadPanelGroup#{CompId}_#{Tcount}" p**
artialTriggers="LazyLoad#{CompId}_#{index}"**>**
*                      TAB CONTENT
             *</tr:panelGroupLayout>*

</c:forEach>







The funny thing is that if I do it programatically - Using the action
listener and setting the trigger in Java function, it works.  Below is the
code for the Action Listener :

UIComponent PanelGroup = root.findComponent(PanelId);

RequestContext rc = RequestContext.*getCurrentInstance*();

rc.addPartialTarget(PanelGroup);





I have checked for the Ids. It looks like the PPR call is getting blocked
somewhere, because when I click on the third one *all those tabs which have
been clicked before* get rendered.












---------- Forwarded message ----------
From: *Michael Kurz* <[email protected]>
Date: Thu, Aug 5, 2010 at 11:20 PM
Subject: Re: Issue related to commandlinks
To: [email protected]


Are you sure the IDS are correct (no NamingContainers in between or
something like this)? A code fragment might be helpful to outline the
problem.

Regards
Michael

Am 04.08.2010 15:59, schrieb preeti agarwal:



Hey all,

          I have three panelGroupLayouts and three commandlinks. Each
commandlink is associated with a corresponding panelGroupLayout. I am
rendering the panelgroupLayouts using PPR (partialtriggers) on clicking of
the commandlinks.

When I click the first two commandlinks, nothing happens (The panelgroup
doesn't get rendered).
When I click the third one, all three panelgroups get rendered.

I have rechecked that the ids are linked correctly. Any idea why this might
happen?

Reply via email to