RE: JSF chart creator
or you use: http://www.jenia.org/ -Original Message- From: Zarick Lau [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 04:26 AM To: MyFaces Discussion Subject: Re: JSF chart creator Hi Wolfgang, You should check what #{chart.pieDataSet} are returning. It should return correct instance, matching the chart type. Cheers, Zarick On 10/15/07, Wolfgang [EMAIL PROTECTED] wrote: Hi, does anyone use the JSF chart creator, because I got the following error: -- -- Undefined component type net.sf.jsfcomp.chartcreator.UIChart javax.faces.FacesException: Undefined component type net.sf.jsfcomp.chartcreator.UIChart at org.apache.myfaces.application.ApplicationImpl.createComponent(Applicati onImpl.java:392) at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHan dler.java:243) -- Here are my config files: xhtml: --- comp:chart id=aChart datasource=#{chart.pieDataSet} type=pie is3d=true antialias=true title=Example Chart xlabel=X Label ylabel=Y Label height=300 width=400/ faces-config: - component component-typechart/component-type component-classnet.sf.jsfcomp.chartcreator.UIChart/component-class /component web.xml context-param param-namefacelets.LIBRARIES/param-name param-value/WEB-INF/chartcreator.taglib.xml/param-value /context-param chartcreator.taglib.xml --- ?xml version=1.0? !DOCTYPE facelet-taglib PUBLIC -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN http://java.sun.com/dtd/facelet-taglib_1_0.dtd; facelet-taglib namespacehttp://sourceforge.net/projects/jsf-comp/namespace tag tag-namechart/tag-name component component-typenet.sf.jsfcomp.chartcreator.UIChart/component-type /component /tag /facelet-taglib If I change the component-type in the chartcreator.taglib.xml from net.sf.jsfcomp.chartcreator.UIChart to whatever I got the same error as above but saying: Undefined component whatever Does anybody has some suggestions? Cheers Wolfgang
RE: MyFaces jar files in JBoss container
Hi Dave, myfaces stuff comes here: ...deploy\jbossweb-tomcat55.sar\jsf-libs\ and this file has to be updated accordignly: .deploy\jbossweb-tomcat55.sar\conf\web.xml (see the jsf section) in 4.2.0 the new Tomcat is in ...deploy\jboss-web.deployer. In your case i think you use JBoss 4.2.0.GA, right? They use Tomcat 6 and they have a strange setting for the JSF stuff. I wasn't able to make it run. Finally i deleted Tomcat 6 in JBoss and replaced it with the older Tomcat used in JBoss 4.0.5, and it worked very well. Greetings Dominique From: Dave [mailto:[EMAIL PROTECTED] Sent: Sunday, June 10, 2007 11:14 AM To: users@myfaces.apache.org Subject: MyFaces jar files in JBoss container I tried to put MyFaces lib jar files ( myfaces-api-1.1.5.jar and myfaces-impl-1.1.5.jar) in JBoss container under JBOSS-root/server/default/lib in order to reduce my JSF web application ear file size, but I got error saying that uri:http://java.sun.com/jsf/html can not be resolved. I believe that the uri is from jsf page: %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% The jars are in the container, and should be visible to all applications. Thanks for help. Dave Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: http://us.rd.yahoo.com/evt=48253/*http://mobile.yahoo.com/go?refer=1GNX IC mail, news, photos more.
Pictures in JScookMenu
Hi folks, This problem was reported several times in this forum and often it was said it was solved or it just disappeared. The pictures in the menu are not loaded. Same behaviour in IE and Firefox, but in Firefox it is less visible because the missing pictures is replaced by a tiny transparent not found-image and not by the ugly IE-not-found-images. So why the problem disapears? It disappears when the page is reloaded. From now all pictures are there. The problem can be reproduced when the browser cache is cleared (first go to another website). In IE you have to clear the files Manually because the IE-clear-cache-function doesn't remove everything. This problem can be reproduced with the irian-example: http://www.irian.at/myfaces/jscookmenu.jsf Thanks four your attention dominique
JScookMenu Problem again
Title: JScookMenu Problem again Hi Folks, This problem was posted already but at the wrong place and i said it was solved, but it is not. Sorry for that. Same problem with tomahawk-1.1.3.jar. I've found a workaround using a redirect on the jsp containing the JScookMenu: %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% %@taglib uri=http://java.sun.com/jstl/core prefix=c% %@taglib uri=http://java.sun.com/jsf/core prefix=f% %@taglib uri=http://java.sun.com/jsf/html prefix=h% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN htmlf:view locale=en t:documentHead title/title link rel=stylesheet type=text/css href=css/common.css / link rel=stylesheet type=text/css href=css/basic.css / /t:documentHead body %-- This is a hack to fix a bug in the JScookMenu where picture are not displayed when the page is loaded for the first time and its browser cache (cookies) is empty. --% c:redirect url=/tpflog_dest.jsf context=/TPFlogWeb/ /body/f:view/html Greetings Dominique vvv here follows the original message describing the problem v vvv I have following problem with the JScookmenu: The internal gifs are not displayed when accessing my page the first time. After reload the picture are there. When i close the page and I clear all cached data in the browser (incl. The cookies) and I call the same page Again I get the same problem again. Following is the URL to the picture: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org.a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navmenu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/;jsessionid=09C25C770F30F BB0EB1CBE6FF73268A3arrow.gif The URL is wrong. Should be in front of the jsessionid! The correct URL should be: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org.a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navmenu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif;jsessionid=09C2 5C770F30FBB0EB1CBE6FF73268A3 The URL is wrong. Should be in front of the jsessionid! In fact, the error happens when I delete the cookies or when the cookies are not there yet (first call). With IE i get this problem only at first call, but then i am not able anymore to reproduce it, even when i clear the cookies and the offline data. In Firefox I can reproduce it whenever i delete the cookies. After reload of the page the URL is the following: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org.a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navmenu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif No jsessionID, and the image is there! I got this problem with all Tomahawk version. No i am using: tomahawk-1.1.2.jar I checked the examples on Irian's page: Same problem under the condition that the jsf page is called directly without any jsf page in between: How to reproduce it: - Use Firefox (with IE it is harder to reproduce it but the effect is worser, red crosses) - clear all cached data (incl. Cookies) - call: http://www.irian.at/myfaces/jscookmenu.jsf - effect: no right arrows and blank.gif - reload - magic: right arrows (arrow.gif) are there and blank.gif as well Many thanks for your help Greetings Dominique
JScookmenu gif not found
Hi Folks, I have following problem with the JScookmenu: The internal gifs are not displayed when accessing my page the first time. After reload the picture are there. When i close the page and I clear all cached data in the browser (incl. The cookies) and I call the same page Again I get the same problem again. Following is the URL to the picture: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org.a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navmenu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/;jsessionid=09C25C770F30F BB0EB1CBE6FF73268A3arrow.gif The URL is wrong. Should be in front of the jsessionid! The correct URL should be: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org.a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navmenu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif;jsessionid=09C2 5C770F30FBB0EB1CBE6FF73268A3 The URL is wrong. Should be in front of the jsessionid! In fact, the error happens when I delete the cookies or when the cookies are not there yet (first call). With IE i get this problem only at first call, but then i am not able anymore to reproduce it, even when i clear the cookies and the offline data. In Firefox I can reproduce it whenever i delete the cookies. After reload of the page the URL is the following: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org.a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navmenu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif No jsessionID, and the image is there! I got this problem with all Tomahawk version. No i am using: tomahawk-1.1.2.jar I checked the examples on Irian's page: Same problem under the condition that the jsf page is called directly without any jsf page in between: How to reproduce it: - Use Firefox (with IE it is harder to reproduce it but the effect is worser, red crosses) - clear all cached data (incl. Cookies) - call: http://www.irian.at/myfaces/jscookmenu.jsf - effect: no right arrows and blank.gif - reload - magic: right arrows (arrow.gif) are there and blank.gif as well Many thanks for your help Greetings Dominique
RE: JScookmenu gif not found
Mike, Many Thanks for your reply. I used tomahawk-1.1.2.jar, myfaces-impl-1.1.3.jar, myfaces-api-1.1.3.jar. I'm going to try Tomahawk 1.1.3. Greetings Dominique -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 13. Juli 2006 20:28 To: MyFaces Discussion Subject: Re: JScookmenu gif not found I fixed a problem like this at the end of 2005. (Probably after MyFaces 1.1.1.). I'd recommend trying the most recent version of MyFaces/Tomahawk to make sure you've picked up those bug fixes. On 7/13/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Hi Folks, I have following problem with the JScookmenu: The internal gifs are not displayed when accessing my page the first time. After reload the picture are there. When i close the page and I clear all cached data in the browser (incl. The cookies) and I call the same page Again I get the same problem again. Following is the URL to the picture: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navme nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/;jsessionid=09C25C770F3 0F BB0EB1CBE6FF73268A3arrow.gif The URL is wrong. Should be in front of the jsessionid! The correct URL should be: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navme nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif;jsessionid=09 C2 5C770F30FBB0EB1CBE6FF73268A3 The URL is wrong. Should be in front of the jsessionid! In fact, the error happens when I delete the cookies or when the cookies are not there yet (first call). With IE i get this problem only at first call, but then i am not able anymore to reproduce it, even when i clear the cookies and the offline data. In Firefox I can reproduce it whenever i delete the cookies. After reload of the page the URL is the following: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/org .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/navme nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif No jsessionID, and the image is there! I got this problem with all Tomahawk version. No i am using: tomahawk-1.1.2.jar I checked the examples on Irian's page: Same problem under the condition that the jsf page is called directly without any jsf page in between: How to reproduce it: - Use Firefox (with IE it is harder to reproduce it but the effect is worser, red crosses) - clear all cached data (incl. Cookies) - call: http://www.irian.at/myfaces/jscookmenu.jsf - effect: no right arrows and blank.gif - reload - magic: right arrows (arrow.gif) are there and blank.gif as well Many thanks for your help Greetings Dominique
RE: JScookmenu gif not found
Great, now it's ok, with Tomahawk 1.1.3. Many Thanks. The problem was that the MyFaces 1.1.3 files were released together with Tomahawk 1.1.2 (there was no Tomahawk 1.1.3 available). Another question: When i change to Tomahawk 1.1.3 then i have still old stuff (eg. Javascript, css) in the Browser cache. For me it is no problem because i know that, and i just clear the cache. But, what i do with the users. Is there a way to clear or to invalidate their Browser cache? -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 13. Juli 2006 20:57 To: MyFaces Discussion Subject: Re: JScookmenu gif not found Yes, you're going to have issues using non-similar release versions prior to version 1.1.3. Tomahawk and myfaces libraries can only be mix-and-matched from version 1.1.3 onward. So you cannot use 1.1.2 and 1.1.3 together. On 7/13/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Mike, Many Thanks for your reply. I used tomahawk-1.1.2.jar, myfaces-impl-1.1.3.jar, myfaces-api-1.1.3.jar. I'm going to try Tomahawk 1.1.3. Greetings Dominique -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 13. Juli 2006 20:28 To: MyFaces Discussion Subject: Re: JScookmenu gif not found I fixed a problem like this at the end of 2005. (Probably after MyFaces 1.1.1.). I'd recommend trying the most recent version of MyFaces/Tomahawk to make sure you've picked up those bug fixes. On 7/13/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Hi Folks, I have following problem with the JScookmenu: The internal gifs are not displayed when accessing my page the first time. After reload the picture are there. When i close the page and I clear all cached data in the browser (incl. The cookies) and I call the same page Again I get the same problem again. Following is the URL to the picture: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/o rg .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/nav me nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/;jsessionid=09C25C770 F3 0F BB0EB1CBE6FF73268A3arrow.gif The URL is wrong. Should be in front of the jsessionid! The correct URL should be: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/o rg .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/nav me nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif;jsessionid= 09 C2 5C770F30FBB0EB1CBE6FF73268A3 The URL is wrong. Should be in front of the jsessionid! In fact, the error happens when I delete the cookies or when the cookies are not there yet (first call). With IE i get this problem only at first call, but then i am not able anymore to reproduce it, even when i clear the cookies and the offline data. In Firefox I can reproduce it whenever i delete the cookies. After reload of the page the URL is the following: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/o rg .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/nav me nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif No jsessionID, and the image is there! I got this problem with all Tomahawk version. No i am using: tomahawk-1.1.2.jar I checked the examples on Irian's page: Same problem under the condition that the jsf page is called directly without any jsf page in between: How to reproduce it: - Use Firefox (with IE it is harder to reproduce it but the effect is worser, red crosses) - clear all cached data (incl. Cookies) - call: http://www.irian.at/myfaces/jscookmenu.jsf - effect: no right arrows and blank.gif - reload - magic: right arrows (arrow.gif) are there and blank.gif as well Many thanks for your help Greetings Dominique
RE: JScookmenu gif not found
...and I want to thank all the MyFaces people that you take so much care of us users. Nearly all questions are answered very fast. There are others User's Forum (like JBoss) where you can light a candle if you get a single response. Great work! -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 13. Juli 2006 20:57 To: MyFaces Discussion Subject: Re: JScookmenu gif not found Yes, you're going to have issues using non-similar release versions prior to version 1.1.3. Tomahawk and myfaces libraries can only be mix-and-matched from version 1.1.3 onward. So you cannot use 1.1.2 and 1.1.3 together. On 7/13/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Mike, Many Thanks for your reply. I used tomahawk-1.1.2.jar, myfaces-impl-1.1.3.jar, myfaces-api-1.1.3.jar. I'm going to try Tomahawk 1.1.3. Greetings Dominique -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 13. Juli 2006 20:28 To: MyFaces Discussion Subject: Re: JScookmenu gif not found I fixed a problem like this at the end of 2005. (Probably after MyFaces 1.1.1.). I'd recommend trying the most recent version of MyFaces/Tomahawk to make sure you've picked up those bug fixes. On 7/13/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Hi Folks, I have following problem with the JScookmenu: The internal gifs are not displayed when accessing my page the first time. After reload the picture are there. When i close the page and I clear all cached data in the browser (incl. The cookies) and I call the same page Again I get the same problem again. Following is the URL to the picture: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/o rg .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/nav me nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/;jsessionid=09C25C770 F3 0F BB0EB1CBE6FF73268A3arrow.gif The URL is wrong. Should be in front of the jsessionid! The correct URL should be: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/o rg .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/nav me nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif;jsessionid= 09 C2 5C770F30FBB0EB1CBE6FF73268A3 The URL is wrong. Should be in front of the jsessionid! In fact, the error happens when I delete the cookies or when the cookies are not there yet (first call). With IE i get this problem only at first call, but then i am not able anymore to reproduce it, even when i clear the cookies and the offline data. In Firefox I can reproduce it whenever i delete the cookies. After reload of the page the URL is the following: http://tpfssw.eds.ch:8080/TPFlogWeb/faces/myFacesExtensionResource/o rg .a pache.myfaces.renderkit.html.util.MyFacesResourceLoader/11527865/nav me nu .jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/arrow.gif No jsessionID, and the image is there! I got this problem with all Tomahawk version. No i am using: tomahawk-1.1.2.jar I checked the examples on Irian's page: Same problem under the condition that the jsf page is called directly without any jsf page in between: How to reproduce it: - Use Firefox (with IE it is harder to reproduce it but the effect is worser, red crosses) - clear all cached data (incl. Cookies) - call: http://www.irian.at/myfaces/jscookmenu.jsf - effect: no right arrows and blank.gif - reload - magic: right arrows (arrow.gif) are there and blank.gif as well Many thanks for your help Greetings Dominique
Tomahawk 1.1.2 jscookMenu Bugs ?
First case: t:navigationMenuItem id="Home"itemLabel="Home" action="http://t-web/" target="_self"/ alwaysopen in a new window or tab in IE and Firefox. Second: t:navigationMenuItem id="Contact" itemLabel="Contact" icon="/graphics/contact.png" action="mailto:test@test.com"/ is not recognized as a URL. Thisis my quick an dirty fix in MyFacesHack.js (in bold): Overrides the original JSCookMenu function to work with MyFaces//function cmItemMouseUp (obj, index){ var item = _cmItemList[index]; var link = null, target = '_self'; if (item.length 2) link = item[2]; if (item.length 3 item[3]) target = item[3]; if (link != null) { // changes by Richard J. Barbalace if (link.match(/^\w*:A\]\w*:\/\//) != null ) { // Link is a URL link = link.replace(/^\w*:A\]/, ""); // Remove JSF IDtarget = '_self'; //target fix window.open (link, target); } else if ( link.match(/^\w*:A\]mailto:/) != null ) { //mailto fix // Link is a mailto URL //mailto fix link = link.replace(/^\w*:A\]/, ""); // Remove JSF ID //mailto fix target = '_self'; //target fix window.open (link, target); //mailto fix } else if (link.match(/^\w*:A\]\w*:/) != null ) { // Link is a script method link = link.replace(/^\w*:A\]\w*:/, ""); // Remove JSF ID eval(link); } else { // Link is a JSF action var dummyForm = document.forms[target]; dummyForm.elements['jscook_action'].value = link; dummyForm.submit(); } } kind regards Dominique
MessageListener
Title: MessageListener Hi, I implemented a Bean as a MessageListener to a Topic queue. The Bean gets new data whenever something arrives on the topic (omnessage method). Now i have an autoupdatetable which gets the data from the bean. All works perfect! The problem is whenever the Session Bean timeouts, the i would like to unsubscribe from the topic but it is impossible to get the FacesContext when running In the onMessage method. What i wanted to do is whenever the onmessage method is called, then check if the session is still alive, and if not to unsubscribe From the topic as done in the stop action method but FacesContext.getCurrentInstance() returns null in the onMessage method. Many thanks for your suggestions. Kind regards Dominique P.S. Pls take a look to the good: public class ListenerBean implements MessageListener, Serializable { private List testList; private ListString watchList; /** * Session Fascade Class. The supplier holds all methods which can be used * against the active Session Bean. */ private IPmonHistorySupplier supplier; /** * Reference to the subcribed Topic. */ private TopicSubscriber subscriber; /** * path where the dtd file is located. */ private String dtdDirectory; public ListenerBean() { TopicConnectionFactory tqcf; Topic topic; testList = new ArrayList(); watchList = new ArrayListString(); try { supplier = new IPmonHistorySupplier( tpfssw.eds.ch, 1099 ); } catch ( ServiceNotAvailableException ex) { ex.printStackTrace(); } } /** * stop * * @param event ActionEvent */ public void stop(ActionEvent event) { try { System.out.println(STOP); FacesContext context = FacesContext.getCurrentInstance(); supplier.unsuscribeFromResponseTopic(subscriber); System.out.println(ListenerBean: unscribed); } catch (Exception ex) { ex.printStackTrace(); // TODO: handle exception } } public void start(ActionEvent event) { try { System.out.println(START); FacesContext context = FacesContext.getCurrentInstance(); supplier.subscribeToResponseTopic( this ); System.out.println(ListenerBean: subscribed); } catch (Exception ex) { ex.printStackTrace(); // TODO: handle exception } } public void onMessage(Message message) { System.out.println(onMessage); FacesContext context = FacesContext.getCurrentInstance(); System.out.println(context: + context); try { FacesContext context = FacesContext.getCurrentInstance(); ExternalContext econtext = context.getExternalContext(); HttpSession session = (HttpSession) econtext.getSession(false); testList.clear(); // cheat for (int i = 0; i 10; i++) { testList.add(new Integer((int) (Math.random() * 100))); } // cheat String ipmonMessage = ((TextMessage) message).getText(); SAXBuilder builder = new SAXBuilder(); builder.setValidation(false); InputSource inputSource = new InputSource(new StringReader( ipmonMessage)); dtdDirectory = System.getProperty(user.dir); int index = dtdDirectory.indexOf(bin); dtdDirectory = dtdDirectory.substring(0, index); dtdDirectory = dtdDirectory + mydtd + System.getProperty(file.separator) + IPMonitor.dtd; inputSource.setSystemId(new File(dtdDirectory).toURL().toString()); Document document = builder.build(inputSource); Element root = document.getRootElement(); Logger log; log = Logger.getLogger(ch.eds.ipmonitor); log.info(ipmonMessage); } catch (JMSException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } catch (JDOMException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } catch (IOException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } catch (SessionTimeoutException ex) { try { supplier.unsuscribeFromResponseTopic(subscriber); System.out.println(ListenerBean: Session timeout); } catch (ServiceNotAvailableException e) { // TODO Auto-generated catch block e.printStackTrace(); } */ } catch (NullPointerException ex) { try { supplier.unsuscribeFromResponseTopic(subscriber); System.out.println(ListenerBean: Session timeout); } catch (ServiceNotAvailableException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public List getTestList() { return testList; } }
RE: Can't get swapImage to work in 1.1.1
To be sure everything is out the the JBoss cache i delete following folders after taken down the server assuming you use the default configuration: - data - log - tmp - work -Original Message- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 15. März 2006 23:58 To: MyFaces Discussion Subject: Re: Can't get swapImage to work in 1.1.1 Never mind. It just started to work after my 2nd reboot of JBoss. Something must have been cached. On 3/15/06, Andrew Robinson [EMAIL PROTECTED] wrote: I cannot get t:swapImage to work in MyFaces 1.1.1. The JavaScript is never added to the XHTML and therefore, I am just getting JavaScript errors on hover. Environment: Tomcat 5.5 MyFaces 1.1.1 (deployed via myfaces-all.jar) Facelets 1.0.12 There are no log messages, no errors, no anything, just no results. JavaScript console: Error: SI_MM_swapImage is not defined Error: SI_MM_swapImgRestore is not defined Any solution to this in MyFaces 1.1.1 (I'm still required to be on the released version at work)? I have 5x checked my web.xml: filter filter-nameSeamRedirectFilter/filter-name filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class /filter filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class init-param description Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB /description param-namemaxFileSize/param-name param-value20m/param-value /init-param /filter filter-mapping filter-nameSeamRedirectFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping filter filter-nameAjaxAnywhere/filter-name filter-classorg.ajaxanywhere.AAFilter/filter-class /filter filter-mapping filter-nameAjaxAnywhere/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameAjaxAnywhere/filter-name url-pattern*.xhtml/url-pattern /filter-mapping !-- Listener, that does all the startup work (configuration, init). -- listener listener-classorg.jboss.seam.servlet.SeamListener/listener-class /listener listener listener-class org.apache.myfaces.webapp.StartupServletContextListener /listener-class /listener servlet servlet-nameJenia internal servlet/servlet-name servlet-classorg.jenia.faces.util.Servlet/servlet-class load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameJenia internal servlet/servlet-name url-pattern/jenia4faces/*/url-pattern /servlet-mapping servlet servlet-nameFile access servlet/servlet-name servlet-class com.outlooksoft.cpm.contentmgmt.FileAccessServlet /servlet-class /servlet servlet-mapping servlet-nameFile access servlet/servlet-name url-pattern/documents/*/url-pattern /servlet-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping
RE: Question about panelTab.
Hi, i don't think so, but you can use a bolean attribute (eg. visible)together with the rendered option. So if you want to make the tabs appearing you just change the visible attribute to true. From: Hans Sowa [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 22. Februar 2006 13:44To: MyFaces DiscussionSubject: Question about panelTab. HiIs there a way to add a panelTab during runtime?-- mfg Hans Sowamailto:[EMAIL PROTECTED]
RE: dataTable item is not changed
Many thanks for your help. I applied all of your suggestions but i have still same problem: the entered value in t:inputText is lost. But i got some new ideas! I replaced the commandlinks with commandbuttons and it works but my nice buttons are gone! I don't know what's difference between the commandbutton and the commandlink, but in this case their behaviour is complete different. Does anybody know why? t:column f:facet name=header t:outputText value=Action/ /f:facet t:commandButton value=delete id=button_delete actionListener=#{userListBean.deleteUserFromDB}/ f:verbatimbr //f:verbatim t:commandButton value=edit id=button_edit action=#{user.edit} rendered=#{not user.editable}/ t:commandButton value=save id=button_save action=#{user.save} rendered=#{user.saveable}/ /t:column There's another problem with my table. As you can see my table is sortable. Assuming i have 6 rowes: When i press the edit button on row 1, row 6 gets editable. When i press 2, row 5 gets editable, and for 3 row i get 4, etc. When i make the table not sortable then all works as expected. Kind regards Dominique -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 8. Februar 2006 23:03 To: MyFaces Discussion Subject: Re: dataTable item is not changed My recommendation would be to use action instead of action + actionListener. I'm not sure -- is it even legal to be calling both? Why would you want to? I'd also recommend that you create both an editable and save button rather than reusing the same button for both. h:commandLink action=setEditable id=edit rendered=#{not user.editable} h:graphicImage value=/graphics/edit.png alt=edit style=border:0/ /h:commandLink h:commandLink action=save id=save rendered=#{user.saveable} h:graphicImage value=/graphics/save.png alt=edit style=border:0/ /h:commandLink Note that, in any case, the value of #{not user.editable} and #{user.saveable} should remain constant between requests (maybe that's why you chose to use a single button, but that seems like a hack to me). Ie, the value can't change between the time the button is rendered and the next response when the button action is executed on click. On 1/27/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Hi all, I have a datatable with a edit column which contains a delete and a edit button. The delete button works fine (when pressed the row is deleted). When the edit button is pressed all items in this row gets editable. Works perfect as well. The edit button is replaced by a save button. Now i can edit something in the row. When i finished editing the save button can be pressed to save the new values, but they get lost and the old value are displayed again (the actionlistener method was called, but in tracing i saw the the actionlistener gets the old value as well instead of the old value. So in fact the old value is Saved). Following the code: t:dataTable id=users value=#{userListBean.users} var=user border=0 cellspacing=1 cellpadding= 10 sortColumn=#{userListBean.sort} sortAscending=#{userListBean.ascending} preserveDataModel=true preserveSort=true renderedIfEmpty=false styleClass=users headerClass=usersHeader rowClasses=evenRow,oddRow t:column f:facet name=header h:outputText value=Select/ /f:facet t:selectBooleanCheckbox id=select value=#{user.selected} valueChangeListener=#{userListBean.setSelected}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=userid arrow=true styleClass=usersHeader t:outputText value=userid/ /t:commandSortHeader /f:facet t:outputText value=#{user.userid}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=firstname arrow=true styleClass=usersHeader h:outputText value=Firstname/ /t:commandSortHeader /f:facet t:outputText value=#{user.firstname} rendered=#{not user.editable}/ t:inputText value=#{user.firstname} rendered=#{user.editable}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=lastname arrow=true styleClass=usersHeader t:outputText value=Lastname/ /t:commandSortHeader /f:facet t:outputText value=#{user.lastname} rendered=#{not user.editable}/ t:inputText value=#{user.lastname} rendered=#{user.editable} required=true / /t:column t:column f:facet name=header t:commandSortHeader columnName=password arrow=true styleClass=usersHeader t:outputText value=Password/ /t:commandSortHeader /f:facet t:outputText value=#{user.password} rendered=#{not user.editable}/ t:inputText value=#{user.password} rendered=#{user.editable}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=contact
RE: dataTable item is not changed
I think i know more or less how the sortable-problem with my table can be explained: 1. edit button of a row is pressed 2. sort method is called (order is now descending) 3. the row is made editable (the wrong one, because the table is descending) 4. sort method is called again (order is now ascending). -Original Message- From: Boeckli, Dominique [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 9. Februar 2006 15:32 To: MyFaces Discussion Subject: RE: dataTable item is not changed Many thanks for your help. I applied all of your suggestions but i have still same problem: the entered value in t:inputText is lost. But i got some new ideas! I replaced the commandlinks with commandbuttons and it works but my nice buttons are gone! I don't know what's difference between the commandbutton and the commandlink, but in this case their behaviour is complete different. Does anybody know why? t:column f:facet name=header t:outputText value=Action/ /f:facet t:commandButton value=delete id=button_delete actionListener=#{userListBean.deleteUserFromDB}/ f:verbatimbr //f:verbatim t:commandButton value=edit id=button_edit action=#{user.edit} rendered=#{not user.editable}/ t:commandButton value=save id=button_save action=#{user.save} rendered=#{user.saveable}/ /t:column There's another problem with my table. As you can see my table is sortable. Assuming i have 6 rowes: When i press the edit button on row 1, row 6 gets editable. When i press 2, row 5 gets editable, and for 3 row i get 4, etc. When i make the table not sortable then all works as expected. Kind regards Dominique -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 8. Februar 2006 23:03 To: MyFaces Discussion Subject: Re: dataTable item is not changed My recommendation would be to use action instead of action + actionListener. I'm not sure -- is it even legal to be calling both? Why would you want to? I'd also recommend that you create both an editable and save button rather than reusing the same button for both. h:commandLink action=setEditable id=edit rendered=#{not user.editable} h:graphicImage value=/graphics/edit.png alt=edit style=border:0/ /h:commandLink h:commandLink action=save id=save rendered=#{user.saveable} h:graphicImage value=/graphics/save.png alt=edit style=border:0/ /h:commandLink Note that, in any case, the value of #{not user.editable} and #{user.saveable} should remain constant between requests (maybe that's why you chose to use a single button, but that seems like a hack to me). Ie, the value can't change between the time the button is rendered and the next response when the button action is executed on click. On 1/27/06, Boeckli, Dominique [EMAIL PROTECTED] wrote: Hi all, I have a datatable with a edit column which contains a delete and a edit button. The delete button works fine (when pressed the row is deleted). When the edit button is pressed all items in this row gets editable. Works perfect as well. The edit button is replaced by a save button. Now i can edit something in the row. When i finished editing the save button can be pressed to save the new values, but they get lost and the old value are displayed again (the actionlistener method was called, but in tracing i saw the the actionlistener gets the old value as well instead of the old value. So in fact the old value is Saved). Following the code: t:dataTable id=users value=#{userListBean.users} var=user border=0 cellspacing=1 cellpadding= 10 sortColumn=#{userListBean.sort} sortAscending=#{userListBean.ascending} preserveDataModel=true preserveSort=true renderedIfEmpty=false styleClass=users headerClass=usersHeader rowClasses=evenRow,oddRow t:column f:facet name=header h:outputText value=Select/ /f:facet t:selectBooleanCheckbox id=select value=#{user.selected} valueChangeListener=#{userListBean.setSelected}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=userid arrow=true styleClass=usersHeader t:outputText value=userid/ /t:commandSortHeader /f:facet t:outputText value=#{user.userid}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=firstname arrow=true styleClass=usersHeader h:outputText value=Firstname/ /t:commandSortHeader /f:facet t:outputText value=#{user.firstname} rendered=#{not user.editable}/ t:inputText value=#{user.firstname} rendered=#{user.editable}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=lastname arrow=true styleClass=usersHeader t:outputText value=Lastname/ /t:commandSortHeader /f:facet t:outputText value=#{user.lastname} rendered=#{not user.editable}/ t:inputText value=#{user.lastname
dataTable item is not changed
Title: dataTable item is not changed Hi all, I have a datatable with a edit column which contains a delete and a edit button. The delete button works fine (when pressed the row is deleted). When the edit button is pressed all items in this row gets editable. Works perfect as well. The edit button is replaced by a save button. Now i can edit something in the row. When i finished editing the save button can be pressed to save the new values, but they get lost and the old value are displayed again (the actionlistener method was called, but in tracing i saw the the actionlistener gets the old value as well instead of the old value. So in fact the old value is Saved). Following the code: t:dataTable id=users value=#{userListBean.users} var=user border=0 cellspacing=1 cellpadding= 10 sortColumn=#{userListBean.sort} sortAscending=#{userListBean.ascending} preserveDataModel=true preserveSort=true renderedIfEmpty=false styleClass=users headerClass=usersHeader rowClasses=evenRow,oddRow t:column f:facet name=header h:outputText value=Select/ /f:facet t:selectBooleanCheckbox id=select value=#{user.selected} valueChangeListener=#{userListBean.setSelected}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=userid arrow=true styleClass=usersHeader t:outputText value=userid/ /t:commandSortHeader /f:facet t:outputText value=#{user.userid}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=firstname arrow=true styleClass=usersHeader h:outputText value=Firstname/ /t:commandSortHeader /f:facet t:outputText value=#{user.firstname} rendered=#{not user.editable}/ t:inputText value=#{user.firstname} rendered=#{user.editable}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=lastname arrow=true styleClass=usersHeader t:outputText value=Lastname/ /t:commandSortHeader /f:facet t:outputText value=#{user.lastname} rendered=#{not user.editable}/ t:inputText value=#{user.lastname} rendered=#{user.editable} required=true / /t:column t:column f:facet name=header t:commandSortHeader columnName=password arrow=true styleClass=usersHeader t:outputText value=Password/ /t:commandSortHeader /f:facet t:outputText value=#{user.password} rendered=#{not user.editable}/ t:inputText value=#{user.password} rendered=#{user.editable}/ /t:column t:column f:facet name=header t:commandSortHeader columnName=contact arrow=true styleClass=usersHeader t:outputText value=Contact/ /t:commandSortHeader /f:facet t:outputText value=#{user.contact} rendered=#{not user.editable}/ t:inputText value=#{user.contact} rendered=#{user.editable}/ /t:column t:column f:facet name=header t:outputText value=Roles/ /f:facet t:dataTable id=roles value=#{user.roles} var=roles border=0 t:column t:outputText value=#{roles.role}/ /t:column /t:dataTable /t:column t:column f:facet name=header t:outputText value=/ /f:facet h:commandLink action="" id=delete actionListener=#{userListBean.deleteUserFromDB} h:graphicImage value=/graphics/delete.png alt=delete style=border:0/ /h:commandLink f:verbatimbr //f:verbatim h:commandLink action="" id=edit actionListener=#{userListBean.setEditable} h:graphicImage value=/graphics/edit.png alt=edit style=border:0 rendered=#{not user.editable}/ h:graphicImage value=/graphics/save.png alt=edit style=border:0 rendered=#{user.editable}/ /h:commandLink /t:column /t:dataTable Many thanks for your help Kind regards Dominique
RE: tree2 clientSideToggle question
it can be faster! if the tree is huge the memory usage on the browser side is huge. In your case try to remove all cached files in your browser. kind regards Dominique From: Yixing Ma [mailto:[EMAIL PROTECTED] Sent: Dienstag, 24. Januar 2006 20:00To: users@myfaces.apache.orgSubject: tree2 clientSideToggle question Hi, I have a quick question about tree2 component. I set the clientSideToggle="true" After I changed the data of the tree in a method, and reload the tree I got a ERROR [http-8080-Processor24] - Node with id 0:0. Failed to parse 0:0java.lang.IllegalArgumentException: Node with id 0:0. Failed to parse 0:0at org.apache.myfaces.custom.tree2.TreeModel.getNodeById(TreeModel.java:153)at org.apache.myfaces.custom.tree2.TreeModel.setNodeId(TreeModel.java:71)at org.apache.myfaces.custom.tree2.UITreeData.setNodeId(UITreeData.java:290)at org.apache.myfaces.custom.tree2.HtmlTree.setNodeId(HtmlTree.java:80)at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.decode(HtmlTreeRenderer.java:104)at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:305)at org.apache.myfaces.custom.tree2.UITreeData.processDecodes(UITreeData.java:139)at org.apache.myfaces.custom.tree2.HtmlTree.processDecodes(HtmlTree.java:91)at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:407)at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:407)at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:151)at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:177)at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:87)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at java.lang.Thread.run(Thread.java:595) How can I slove this problem? If I set clientSideToggle="false", no problem. But I really want to use clientSideToggle="true", coz it's way faster.
jscookmenu usage - external link
this problem was mentioned already but never answerend.Coding this: %/* Need a new version of MyFaces for this external link action to function */% t:navigationMenuItem id="nav_53" itemLabel="Apache MyFaces Home" action="" /Results in following link: ahttp://myfaces.apache.org/I am using one of the latest nightly build. Got the same problem with the official distribution.many thanks for your helpdominique
RE: htmlib, myfaces and facelets
[EMAIL PROTECTED] uri=http://jsftutorials.net/htmLib; prefix=htm% - download here http://www.jsftutorials.net/htmLib/ -Original Message- From: Jeremy Sager [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 19. Januar 2006 19:54 To: 'MyFaces Discussion' Subject: RE: htmlib, myfaces and facelets I'm not sure if this is what you're asking for, but if you're looking for a tomahawk tag library for use with facelets, try here: http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk Jeremy Sager Data Communications Product Manager Chesapeake System Solutions 410.356.6805 x120 [EMAIL PROTECTED] -Original Message- From: Rogerio Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 1:02 PM To: MyFaces Discussion Subject: htmlib, myfaces and facelets Hi, Someone is using this combination? If yes where i can find htmlib.taglib.xml -- Yours truly (Atenciosamente), Rogério
RE: How to use a navigationMenuItem to send to a page out of my site?
same problem with: "action = "">mailto:[EMAIL PROTECTED]"results in "amailto:[EMAIL PROTECTED]" To ship around this cliff you can use a redirect. it is not perfect, it is ugly,but it works: header.jsp . . . t:navigationMenuItem id="Contact" itemLabel="Contact" icon="graphics/contact.png" action="" / . . . faces-config.xml . . . navigation-rule navigation-case from-outcomemailto/from-outcome to-view-id/mailTO.jsp/to-view-id /navigation-case/navigation-rule . . . mailTO.jsp [EMAIL PROTECTED] uri="http://java.sun.com/jstl/core" prefix="c"% !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"htmlbody c:redirect url=""/'>mailto:[EMAIL PROTECTED]"//body/html From: Vladimir Coutinho [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 18. Januar 2006 20:04To: MyFaces Discussion; [EMAIL PROTECTED]Subject: Re: How to use a navigationMenuItem to send to a page out of my site? I put the complete url, but it redirected to a wrong site.I put:t:navigationMenuItem id="nav_cart" itemLabel="Carteira" action=""/'>http://infor-smk/protocolo/carteira/"/ but the browser redirected to ahttp://infor-smk/protocolo/carteira/(this url don't exist). On 1/18/06, Eduardo Dudu Ivan Pichler [EMAIL PROTECTED] wrote: you need get the complete url of your site with the extension(.jsp, .faces)There are ways to make these urls dynamics. But I don't remember the code. On 1/18/06, Vladimir Coutinho [EMAIL PROTECTED] wrote: How can I send to a non jsf page in my site? (a relative path) On 1/18/06, Dudu [EMAIL PROTECTED] wrote: in the action you must to put the complete url of the site On 1/18/06, Vladimir Coutinho [EMAIL PROTECTED] wrote: How to use a navigationMenuItem to send to a page out of my site?-- Vladimir M Coutinho -- --Dudu `P -- Vladimir M Coutinho -- --Dudu `P -- Vladimir M Coutinho
RE: How to avoid tree2 reload ?
Title: How to avoid tree2 reload ? i just tried and it looks much better. the page is loaded much faster (tree is not reloaded anymore) but the navigation through the treeis much slower because it'sgoing over the net. it is possible to have both advantages: fast tree navigation and no tree reload. From: Nikita Shah [mailto:[EMAIL PROTECTED] Sent: Dienstag, 10. Januar 2006 11:23To: MyFaces DiscussionSubject: Re: How to avoid tree2 reload ? Hi: What dont you use the server side toggle and try to lazy load your tree. U might want to check with examples for that.~Nikita"Boeckli, Dominique" [EMAIL PROTECTED] wrote: Hello, Is there a way to avoid that the tree2 is reloaded after a commandlink was pressed (eg. In the tree Itself or from a button). The problem is that my tree is quite big (it is a logbrowser fo r several systems). An improvement was that i cached the tree in the web container to avoid calls to the session bean which is building the tree. But the tree data itself is still retransmitted over the net. Many thanks for your help Dominique Yahoo! PhotosRing in the New Year with Photo Calendars. Add photos, events, holidays, whatever.