voyent
New Accordion Prototype Available  XML
Forum Index -> Components Go to Page: 1, 2 Next 
Author Message
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hey Everybody,

We've got a new Accordion prototype for you to try out. This is being planned for the ICEfaces 1.6 release. A big thanks to Rob M. for getting this out early.

Functionality:

- can be dynamically filled when used in conjunction with an <ice:panelSeries>
- can contain any other ICEfaces components as content
- actionListeners can be attached to each accordion panel

We're releasing this as a separate project that can be built with ICEfaces 1.5.2, and includes a demo web application. There is also a pre-built jar in the build directory that you can use.

Usage: xmlns:x="http://icesoft.com/x"
Code:
<ice:panelSeries value="#{accordionBean.data}" var="var">
     <x:accordion label="#{var.label}" open="#{var.open}" actionListener="#{var.actionListener}" styleClass="accordion">
         <ice:panelGroup>...</ice:panelGroup>
     </x:accordion>
 </ice:panelSeries>


Please let us know how you like. All feedback is appreciated.

Enjoy,
Philip

 Filename accordion_jan_24.zip [Disk] Download
 Description New accordion component prototype
 Filesize 8930 Kbytes
 Downloaded:  771 time(s)

ratondeau

Joined: 19/Jan/2007 00:00:00
Messages: 19
Offline


Hi Philip,

I see the "Content of Accordion panel" 5 x 5 Times but nothing else happened, if I click somewhere

Code:
    <x:accordion label="#{var.label}" open="#{var.open}" actionListener="#{var.actionListener}" styleClass="accordion">


Where is the style class for accordion sittuated, could not find it in accordion.jsp

Could you please specify under which enviroment this runs best (Servlet version, JSF: myFaces oder Sun RI...

Thanks

Matt
Andreh

Joined: 11/Dec/2006 00:00:00
Messages: 33
Offline


Hi,
I tried the accordion Demo, and I think It's pretty cool!
I like it a lot...

Thanks!
rmayhew


Joined: 11/Apr/2006 00:00:00
Messages: 100
Offline


Hi,

My development machine is in for repair, so I'm going from memory here.

I built and ran the sample on Sun RI JSF, running on tomcat 5.5. JDK 1.5, I haven't tested in facelets, or on any other web server.

Rob

Rob Mayhew
http://snappy.sensemaker.net

[Email]
ratondeau

Joined: 19/Jan/2007 00:00:00
Messages: 19
Offline


Hi,

the demo is cool. It would be great if one could set that there may only be one Panel open at one time and the sliding speed of the panels.

When will it be available for productional use?

Greets Matt
rmayhew


Joined: 11/Apr/2006 00:00:00
Messages: 100
Offline


Hi, this will be in our next major release (1.6).

I will look into the one panel open option.

Rob Mayhew
http://snappy.sensemaker.net

[Email]
ratondeau

Joined: 19/Jan/2007 00:00:00
Messages: 19
Offline


Hi again,

I will look into the one panel open option. 

That would be great, thanks alot.

I have played along a little with the accordion and have a few suggestions (probably you intend to do it anyway).

- different accordion header style classes for open panels,
- mouse over header style change (background, color),
- possability to enable a open/close icon (right or left side)

Still one one question:
How do I fill different content to the accordion example with the panel series, I guess it will not work with the List in the backing bean, will it?

Many thanks

Matt

prashantpk

Joined: 11/Dec/2006 00:00:00
Messages: 38
Offline


Did anybody tried to run sample war with Java 1.4? I got major minor Unsupported error when deploying the sample accordian.war file.

13:46:18,651 ERROR [[/accordion]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
[java] java.lang.UnsupportedClassVersionError: com/icesoft/x/accordion/AccordionRenderer (Unsupported major.minor version 49.0)
[java] at java.lang.ClassLoader.defineClass0(Native Method)
[java] at java.lang.ClassLoader.defineClass(Unknown Source)
[java] at java.security.SecureClassLoader.defineClass(Unknown Source)

adnan.durrani


Joined: 19/Jan/2006 00:00:00
Messages: 437
Offline


Hi prashantpk,

As Rob mentioned that the code has been compiled using JDK 1.5, so you need to run sample war using JDK1.5.

Thanks,
-- Adnan Durrani --
[Email]
weaves

Joined: 06/Feb/2007 00:00:00
Messages: 8
Offline


Hi folks....

Really like the accordion, I would love to add it to a web project I'm working on at the moment..

I'm using jsf & facelets, is it possible you can supply a facelet tag library for the accordion so I can impress my boss! I'd write one myself but I'm fairly new to it all and need a poke in the right direction!

Thanks v.much.

PS, great work, love the icefaces project, keep up the good work.
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1334
Offline


Folks,

Just wanted to let you know the accordian is now available in the v1.6.0-DR#1 Development Build, it's called ice:panelAccordion.

Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
xflin

Joined: 17/Nov/2006 00:00:00
Messages: 2
Offline


Tried the original accordion (not the one in 1.6.0-DR#1) with facelets. It works in general. However immediately after the INITIAL LOAD of page, clicking a <ice:commandLink .../> inside the accordion gave me a NPE as follows,

...
Caused by: java.lang.NullPointerException
at com.icesoft.x.accordion.AccordionRenderer.decode(AccordionRenderer.java:
38)
...

The following change seemed to fix the problem,

$ diff AccordionRenderer.java AccordionRenderer.java.orig
38,41c38
< String style = null;
< if (map!=null) {
< style = (String)map.get(contentId);
< }
---
> String style = (String)map.get(contentId);


Note that the problem cannot be reproduce if one clicks any accordion bar before clicking on the commandLink.

Don't have time for figuring out the root cause.
--
xflin
b100dian

Joined: 30/Jan/2007 00:00:00
Messages: 5
Offline


Hello,
I tried giving a try to the accordion component too, but I get the

Code:
Undefined component type com.icesoft.faces.Accordion


message in the console.

I put the accordion.jar in WEB-INF/lib and xmlns:x="http://icesoft.com/x" as an attribute to my <f:view> (tried <ice:view> too);

is there anything else that should be done?
p.s. I am using this in a ice:panelGroup, not in a panelSeries, as the example shows

Thank you
b100dian

Joined: 30/Jan/2007 00:00:00
Messages: 5
Offline


Ok.. from the example included I saw the Code:
    <render-kit>
         <renderer>
             <component-family>com.icesoft.faces.AccordionFamily</component-family>
             <renderer-type>com.icesoft.faces.AccordionRenderer</renderer-type>
             <renderer-class>com.icesoft.x.accordion.AccordionRenderer</renderer-class>
         </renderer>
     </render-kit>
 
     <component>
         <component-type>com.icesoft.faces.Accordion</component-type>
         <component-class>com.icesoft.x.accordion.Accordion</component-class>
     </component>


That fixed the error. Now i'm fighting with an 500 Internal server error that icefaces responds with, to the async. requests. How am I suppose to verbosely debug the requests' response server-side? Thank you
tony.herstell

Joined: 01/Dec/2006 00:00:00
Messages: 206
Offline


Its not part of the showcase.
Is there anywhere to view it in action?
I guess you will be updating the showcase for 1.6 anyhow.
 
Forum Index -> Components Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team