I just checked in a fix to the example storing the collapsed state in
the backing bean. With this it works perfectly.

regards,

Martin

On 1/18/06, Saurabh Rasinghaney <[EMAIL PROTECTED]> wrote:
> Hi Martin,
>
> Thanks for your advice of using Nightly Build,
> It finally worked, I was able to run the sample application - the errors
> were due to a server issue - got resolved by disabling JBoss Web Loader
> - and the same fix resolved the problem with my application - which was
> not working with nightly build before.
>
> Now I am able to see multiple collapsible panels in a data table - :)
>
> Now there is only one problem left - in sample application - tomahawk
> sample app with nightly build - as well as in my application collapsible
> panels are jammed such that if it is collapsed it remains collapsed and
> if expanded it remains expanded the toggling is not working.
>
> Any clue why is this so?
>
> Best Regards,
>
> ________________
>
> Saurabh Raisinghaney
>
>
> -----Original Message-----
> From: Saurabh Rasinghaney
> Sent: Tuesday, January 17, 2006 11:13 PM
> To: MyFaces Discussion; [EMAIL PROTECTED]; Simon Kitching
> Subject: RE: Urgent: Collapsible Panel with data table not
> workingIllegalStateException: Client-id : _id3ToggleCollapsed
> Importance: High
>
> In tomahawk nightly build, sample application is throwing same exception
> - as given below - for many components and not just collapsible panel.
>
> Any body any clue? Is there any missing jar or some thing?
>
> java.lang.NoSuchMethodError:
> org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHiddenInputFie
> ld(Ljavax/faces/context/ResponseWriter;Ljava/lang/Object;Ljava/lang/Obje
> ct;)
>
> Best Regards,
>
> ________________
>
> Saurabh Raisinghaney
>
>
>
> -----Original Message-----
> From: Saurabh Rasinghaney
> Sent: Tuesday, January 17, 2006 10:27 PM
> To: [EMAIL PROTECTED]; Simon Kitching; MyFaces Discussion
> Subject: RE: Urgent: Collapsible Panel with data table not
> workingIllegalStateException: Client-id : _id3ToggleCollapsed
> Importance: High
>
> Hi,
>
> In addition to this when I try deploying the application
> myfaces-example-simple.war given in
> <HOME>\myfaces-current\tomahawk\examples\simple\target folder which is
> based on 1.1.2-SNAPSHOT jar as shown below I get this error when I try
> to access Collapsible panel
>
> ========================================================================
> 22:12:06,943 ERROR [[jsp]] Servlet.service() for servlet jsp threw
> exception
> java.lang.NoSuchMethodError:
> org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHiddenInputFie
> ld(Ljavax/faces/context/ResponseWriter;Ljava/lang/Object;Ljava/lang/Obje
> ct;)
>         at
> org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanelRenderer.
> encodeChildren(HtmlCollapsiblePanelRenderer.java:80)
>         at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.jav
> a:319)
>         at
> org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanel.encodeCh
> ildren(HtmlCollapsiblePanel.java:148)
> ========================================================================
>
>
> P.S. I had successfully built the application based on the steps given
> on the site
> http://wiki.apache.org/myfaces/Building_With_Maven
>
> Best Regards,
>
> ________________
>
> Saurabh Raisinghaney
>
>
> -----Original Message-----
> From: Saurabh Rasinghaney
> Sent: Tuesday, January 17, 2006 3:18 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Urgent: Collapsible Panel with data table not
> workingIllegalStateException: Client-id : _id3ToggleCollapsed
> Importance: High
>
> Hi Martin,
>
> Thanks for your reply,
>
> I did downloaded the code and did the built the code successfully as per
> the instructions in http://wiki.apache.org/myfaces/Building_With_Maven,
> I also did a built for Archetype application and from the template web
> application I took all jars and placed it in our application, but still
> faced the exact same problem :
>
> Archetype application has following jar's
> tomahawk-1.1.1
> myfaces-api-1.1.1
> myfaces-impl-1.1.1
>
> Then I took all jar's from
> <HOME>\myfaces-current\tomahawk\examples\simple\target\myfaces-example-s
> imple\WEB-INF\lib
>
> myfaces-api-1.1.2-SNAPSHOT
> myfaces-commons-1.1.2-SNAPSHOT
> myfaces-impl-1.1.2-SNAPSHOT
> tomahawk-1.1.2-SNAPSHOT
>
> And tried but with these jar's I wasn't able to run the application - as
> I got application exceptions at startup detailed below
>
> Please suggest what jar's I should use,
>
> Best Regards,
>
> ________________
>
> Saurabh Raisinghaney
>
>
> Exception with snapshot's
>
> 14:29:13,623 ERROR [Digester] Digester.getParser:
> java.lang.ClassCastException:
> org.apache.xerces.jaxp.SAXParserFactoryImpl
>         at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run
> (AbstractDeploymentScanner.java:182)
> 14:29:13,663 ERROR [[/pms]] Servlet /pms threw load() exception
> java.lang.IllegalStateException: No Factories configured for this
> Application. This happens if the faces-initialization does not work at
> all - make sure that you properly include all configuration set
> tings necessary for a basic faces application and that all the necessary
> libs are included. Also check the logging output of your web application
> and your container for any exceptions!
> If you did that and find nothing, the mistake might be due to the fact
> that you use some special web-containers which do not support
> registering context-listeners via TLD files and a context listener
> is not setup in your web.xml.
> A typical config looks like this;
> <listener>
>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener<
> /listener-class>
> </listener>
>         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
>
>
> -----Original Message-----
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 16, 2006 3:29 PM
> To: Saurabh Rasinghaney
> Subject: Re: Urgent: Collapsible Panel with data table not
> workingIllegalStateException: Client-id : _id3ToggleCollapsed
>
> Can't you build MyFaces yourself?
>
> Sorry if someone suggested that to you and you did that already ;)
>
> Instructions:
> http://wiki.apache.org/myfaces/Building_With_Maven
>
> regards,
>
> Martin
>
> On 1/16/06, Saurabh Rasinghaney <[EMAIL PROTECTED]> wrote:
> > Hello Simon and Martin:
> >
> > I even tried using the Oracle Collapsible Panel component with MyFaces
> > but -my hard luck continues - most of there components work with
> MyFaces
> > except this one - again few weird exceptions.
> >
> > From: Simon Kitching [mailto:[EMAIL PROTECTED]
> > > I expect the irian site is running a nightly build, not an official
> > > release.
> >
> > Please if you can share the jar - nightly build, which you are using
> on
> > Irian web site - with the fix for collapsible panel; I would really be
> > grateful because now we don't have many options left.
> >
> > I would really appreciate your help in this regard and I am eagerly
> > looking forward towards it.
> >
> > Thanks,
> > ________________
> >
> > Saurabh Raisinghaney
> >
> >
> > -----Original Message-----
> > From: Saurabh Rasinghaney
> > Sent: Friday, January 13, 2006 9:47 AM
> > To: MyFaces Discussion; [EMAIL PROTECTED]
> > Subject: RE: Urgent: Collapsible Panel with data table not
> > workingIllegalStateException: Client-id : _id3ToggleCollapsed
> > Importance: High
> >
> > Hi Simon,
> >
> > Our requirement is not flexible enough to change the interface -
> though
> > I can use a different component but the functionality should be same.
> >
> > Can I add other components such as Input and check box etc, to a tree
> > table component? Or can you suggest any component which can provide
> > single level drill down with component addition at parent and child
> > levels.
> >
> > Also, can I use Oracle ADF with Apache MyFaces? I wanted to understand
> > if it will be feasible and wise to do that. I was looking at it and
> > thought we might need to do two different Faces Servlet configurations
> > and configure extns such that ".jsf" for Apache Myfaces and ".faces"
> for
> > Oracle ADF.
> >
> > Thanks a lot for your help.
> >
> > Best Regards,
> > ________________
> >
> > Saurabh Raisinghaney
> >
> >
> > -----Original Message-----
> > From: Simon Kitching [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 13, 2006 12:05 AM
> > To: MyFaces Discussion
> > Subject: RE: Urgent: Collapsible Panel with data table not
> > workingIllegalStateException: Client-id : _id3ToggleCollapsed
> >
> > Hi Saurabh,
> >
> > You can use subversion to look at the history of the CollapsiblePanel
> > component/tag/renderer classes and see what patches have been applied
> > since the last release. You'll need to figure out which bits are
> > suitable for applying to the 1.1.1 release and which are not.
> >
> > I expect the irian site is running a nightly build, not an official
> > release.
> >
> > Using c:foreach around JSF components is definitely not supported;
> it's
> > not at all surprising that problems have occurred.
> >
> > However if I were you, I'd redesign the interface to avoid collapsible
> > panels entirely. It's the simplest solution!
> >
> > Cheers,
> >
> > Simon
> >
> > On Thu, 2006-01-12 at 16:02 -0600, Saurabh Rasinghaney wrote:
> > > Also if you go to this URL
> > > http://www.irian.at/myfaces/collapsiblePanel.jsf
> > > Looking at the example given here.....it looks like it works....and
> > > there is some way to make it work....
> > >
> > >
> > > Best Regards,
> > > ________________
> > >
> > > Saurabh Raisinghaney
> > >
> > >
> > > -----Original Message-----
> > > From: Saurabh Rasinghaney
> > > Sent: Thursday, January 12, 2006 3:47 PM
> > > To: MyFaces Discussion
> > > Subject: RE: Urgent: Collapsible Panel with data table not working
> > > IllegalStateException: Client-id : _id3ToggleCollapsed
> > > Importance: High
> > >
> > > Hi Simon & Martin,
> > >
> > > I tried using a foreach loop and Collapsible Panel...but now I am
> > facing
> > > problem with that too inside foreach loop h:input tags dosen't work
> -
> > > data is not getting populated in input tags - so now I m stuck
> again,
> > > please tell me the patch which I can apply to make collapsible panel
> > > work with data table.
> > >
> > >
> > > Thanks & Best Regards,
> > >
> > > ________________
> > >
> > > Saurabh Raisinghaney
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Simon Kitching [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, January 11, 2006 6:06 PM
> > > To: MyFaces Discussion
> > > Subject: Re: Urgent: Collapsible Panel with data table not working
> > > IllegalStateException: Client-id : _id3ToggleCollapsed
> > >
> > > Saurabh Rasinghaney wrote:
> > > > Thanks for your replies Simon and Martin,
> > > >
> > > > For me everything works fine - all other input components - in
> data
> > > > table except Collapsible Panel and I am using MyFaces 1.1.1, not
> the
> > > Sun
> > > > Ref Impl.
> > > >
> > > > As you said there is a bug in using Collapsible Panel within
> > > Datatable,
> > > > fixed but not available as of now. Could you tell me when the
> patch
> > > for
> > > > this bug would be available?
> > >
> > > So far, MyFaces hasn't released any "bugfix" releases, and I don't
> > > expect to see one this cycle either; it just releases the next major
> > > release and expects people to upgrade.
> > >
> > > Hopefully bugfix releases will become part of MyFaces procedures in
> > the
> > > future.
> > >
> > > The next major release is probably a couple of months away.
> > >
> > > Regards,
> > >
> > > Simon
> > >
> > >
> >
> >
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to