[Trinidad] Regarding PartialTriggers attribute
Hi For our Application we wanted to raise partialTriggers based on three components. Accidentally till now we were using commas to separate them and it worked fine. We use : Trinidad1.2.12 jsf-facelets1.1.14 JBoss 4.2.1 Now when we tried to run this in other environment (other than JBoss), it gives error saying java.lang.IllegalArgumentException: Cannot convert selectedReaction of type class java.lang.String to class [Ljava.lang.String; When we searched in Trinidad Doc it recommends to use spaces instead of commas. Then we found in http://issues.apache.org/jira/browse/TRINIDAD-1417 that we need to use EL expressions as even spaces don't work. Now some FAQs regarding this: 1) Why commas were working in JBoss environment since it's not supported as per the document? Does any jar allowed it? 2) If it was working in JBoss then why it failed in the new environment? 3) Is there any fix regarding spaces issue? Thanks and Regards, Preeti Agarwal
[TRINIDAD] Header rendering multiple times.
Description of problem : I have an xhtml page in which I use trininad components (like tablelayout) and also tomahawk components (like form). I have used some usual HTML components along with it. First time the page is rendered correctly. But anysubsequent refresh causes the header to render multiple times. I suspect it might have something to do with state saving. Can anyone help me with this? PS: I originally suspected that it had something to do with mixing of incompatible HTML div and Trinidad components.Changing to didn't solve the issue.
Re: [TRINIDAD] Header rendering multiple times.
There are no JSTL components being used. Though we use facelets. There is an entry in web.xml file : javax.faces.STATE_SAVING_METHOD client When this entry is removed (thereby reverting to default settings), the problem gets solved. Any reason why client side State Saving is causing an issue? On Tue, Mar 9, 2010 at 10:23 PM, Andrew Robinson < andrew.rw.robin...@gmail.com> wrote: > Do you use any JSTL tags? > Have you any component binding in the page, especially ones that may > live longer than one request? > > On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal > wrote: > > Description of problem : I have an xhtml page in which I use trininad > > components (like tablelayout) and also tomahawk components (like form). I > > have used some usual HTML components along with it. First time the page > is > > rendered correctly. But anysubsequent refresh causes the header to render > > multiple times. I suspect it might have something to do with state > saving. > > Can anyone help me with this? > > > > > > > > > > PS: I originally suspected that it had something to do with mixing of > > incompatible HTML div and Trinidad components.Changing to > > didn't solve the issue. > > >
Re: [TRINIDAD] Header rendering multiple times.
Can anyone help in this issue? On Mon, Mar 15, 2010 at 9:56 PM, Andrew Robinson < andrew.rw.robin...@gmail.com> wrote: > Sorry, not sure then, anyone else have an idea? > > -A > > On Mon, Mar 15, 2010 at 6:11 AM, preeti agarwal > wrote: > > There are no JSTL components being used. > > Though we use facelets. > > > > There is an entry in web.xml file : > > > > > >javax.faces.STATE_SAVING_METHOD > >client > > > > > > When this entry is removed (thereby reverting to default settings), the > > problem gets solved. Any reason why client side State Saving is causing > an > > issue? > > > > > > > > On Tue, Mar 9, 2010 at 10:23 PM, Andrew Robinson < > > andrew.rw.robin...@gmail.com> wrote: > > > >> Do you use any JSTL tags? > >> Have you any component binding in the page, especially ones that may > >> live longer than one request? > >> > >> On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal > >> wrote: > >> > Description of problem : I have an xhtml page in which I use trininad > >> > components (like tablelayout) and also tomahawk components (like > form). I > >> > have used some usual HTML components along with it. First time the > page > >> is > >> > rendered correctly. But anysubsequent refresh causes the header to > render > >> > multiple times. I suspect it might have something to do with state > >> saving. > >> > Can anyone help me with this? > >> > > >> > > >> > > >> > > >> > PS: I originally suspected that it had something to do with mixing of > >> > incompatible HTML div and Trinidad components.Changing to > > >> > didn't solve the issue. > >> > > >> > > >
Issue related to commandlinks
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?
Issue related to commandlinks
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: * ** * On click on each tab, I trigger the command link to display the panelgroupLayout: * ** * TAB CONTENT ** 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* Date: Thu, Aug 5, 2010 at 11:20 PM Subject: Re: Issue related to commandlinks To: users@myfaces.apache.org 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?
Re: Issue related to commandlinks
wow.thanks for fast response and keen observation. We totally missed this typo error as this piece of code was copy pasted from code where the counter was index. Hopefully this will solve the problem. Really thanks. On Fri, Aug 6, 2010 at 1:59 PM, Michael Kurz wrote: > See answer inline. > > Am 06.08.2010 08:08, schrieb preeti agarwal: > >> Thanks for your response. >> > > You're welcome! > > On click on each tab, I trigger the command link to display the >> panelgroupLayout: >> >> > varStatus="status"> >> >> >> *> id="LazyLoadPanelGroup#{CompId}_#{Tcount}" p** >> artialTriggers="LazyLoad#{CompId}_#{index}"**>** >> > > I think that "index" is wrong here - should also be "Tcount". "index" is > set in the last c:forEach and should be fixed to listSize at this point in > time. This would also explain why the last link triggers all panels. > > regards > Michael >