Open flash chart
Hi Guys I am thinking if some one has worked on the open flash chart available at http://sourceforge.net/projects/openflashchart/ and used it in a JSF application. I will be highly obliged with your reply. Thanks
t:popup
Hi I am trying to use the t:popup component inside a datatable. This means that for every cell that is rendered a popup is created using the following code function orgApacheMyfacesPopup(popupId,displayAtDistanceX,displayAtDistanceY) { this.popupId=popupId; this.displayAtDistanceX=displayAtDistanceX; this.displayAtDistanceY=displayAtDistanceY; this.display=orgApacheMyfacesPopupDisplay; this.hide=orgApacheMyfacesPopupHide; this.redisplay=orgApacheMyfacesPopupRedisplay; } IE is slow when it comes to javascript processing. As a result as the table size grows, IE takes too much time, upto 24 seconds for a 56*12 table. Can anybody share some light as to how should I solve this major performance issue.
Re: AW: Action Method not called using Myfaces 1.1.5
Hi This is ofcourse weird, but I have noticed that some components dont act properly if they are enclosed within tags like verbatim. Is it possible for you to post your JSP On Dec 4, 2007 1:36 PM, Andreas Grund [EMAIL PROTECTED] wrote: no, nothing. Greetings, Andreas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Matthias Wessendorf Gesendet: Di 04.12.2007 14:29 An: MyFaces Discussion Betreff: Re: AW: Action Method not called using Myfaces 1.1.5 any JS error or something else ? On Dec 4, 2007 2:24 PM, Andreas Grund [EMAIL PROTECTED] wrote: Hi, I added the h:messages / tag directly after my /h:form tag and got no output. So, as far as I can say, no error occurs. Very mysterious... Greetings, Andreas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Matthias Wessendorf Gesendet: Di 04.12.2007 13:39 An: MyFaces Discussion Betreff: Re: AW: Action Method not called using Myfaces 1.1.5 :-) Yes, that is one of the odd things, that may happen during development w/ JSF. Using Trinidad fixes that (no need for messages/). -Matthias On Dec 4, 2007 1:32 PM, Svilen Ivanov [EMAIL PROTECTED] wrote: Do you have input fields marked as required or validators? Put a h:messages / to see if there is validation error. Regards, Svi Andreas Grund wrote: Hi Matthias, yes, it is the last element within a h:form-tag. Greetings, Andreas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von Matthias Wessendorf Gesendet: Di 04.12.2007 13:14 An: MyFaces Discussion Betreff: Re: Action Method not called using Myfaces 1.1.5 Is the link/button nested w/in a form ? -M On Dec 4, 2007 1:06 PM, Andreas Grund [EMAIL PROTECTED] wrote: Hi Mailing-List, I have a little Problem with my command button. I declared it within my jsf-Page as following: h:commandButton action=#{jobDetailBackingBean.testAction} style=position:absolute;left:230px;top:400px; value=#{msg.button_schedule_new_job} / The method testAction looks so: public String testAction() { logger.info(testAction called); return success; } But when I press my button, nothing happens. I do not see the log-output created by the testAction-Method. To ensure, that I check the correct log-File, I implement the default constructor in the following way: public JobDetailBackingBean() { logger.info(Creating an instance of the JobDetailBackingBean); } This text is logged, but the action method seems not to be called. Can anybody tell me, why? Thanks for your help and best regards, Andreas Grund PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2 -- Andreas Grund externer Mitarbeiter Projet GUTS bei Conti mailto:[EMAIL PROTECTED] Mobile: Germany Phone: Fax: Geschäftsführer: Ingo Kriescher Amtsgericht Düsseldorf HRB48672 -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org
Re: t:savestate
Has anyone used concurrent windows with server-side state? Best Regards Hassnain On Nov 12, 2007 3:40 PM, Simon Kitching [EMAIL PROTECTED] wrote: Hasnain Badami [EMAIL PROTECTED] schrieb: Hi I am trying to upgrade my application from JSF 1.1.1 to JSF 1.2, using myfaces 1.2. I am using multiple tabs in the same browser (same http session) and am using client side state saving. Now when I am trying to upgrade I want to know if its possible to use the server side state saving in the same scenario using JSF 1.2 and how should I do it. As far as I know, the state-saving functionality is identical in MyFaces 1.1 and MyFaces 1.2, ie there is nothing you can do with 1.2 that cannot be done in 1.1. This is necessary for me because I dont want too much data to be flowing between the client and the server. As I'm sure you're aware, this is always a tradeoff. Client-side can be bad on a slow network. But it scales to more clients than server-side state does, because the server doesn't need ram to keep the client state in. Things are more interesting with multiple windows and server-side state though. I don't *think* this is supported for either MyFaces 1.1 or 1.2, though I could be wrong. Myfaces 1.1 definitely caches N old views in the user session, so that back buttons work (where N defaults to around 4). But AFAIK, this is an LRU cache, meaning that after 4 new pages the oldest cached tree is discarded. So if in tab 1 the user clicks through 4 pages, then tab 2's tree state has been lost and an error will occur when the user tries to use it. What would be necessary is to somehow tell the windows apart, and keep at least one JSF tree for each one but that seems tricky; I've never seen any code in MyFaces that does that. Anyone out there using concurrent windows with server-side state? Secondly I think (I am not sure) client side saving might encourage hostile user attacks. MyFaces 1.1 and 1.2 both have a feature to encrypt the client-side-state information. This is sufficient to prevent any hostile attacks. As far as I know this functionality is identical in MyFaces 1.1 and MyFaces 1.2. This is turned on with a context param in the web.xml file. There is documentation on this in the myfaces wiki. Regards, Simon
t:savestate
Hi I am trying to upgrade my application from JSF 1.1.1 to JSF 1.2, using myfaces 1.2. I am using multiple tabs in the same browser (same http session) and am using client side state saving. Now when I am trying to upgrade I want to know if its possible to use the server side state saving in the same scenario using JSF 1.2 and how should I do it. This is necessary for me because I dont want too much data to be flowing between the client and the server. Secondly I think (I am not sure) client side saving might encourage hostile user attacks. I shall be highly obliged with your comments.
Re: JBoss 4.2.2 and MyFaces
I think the best place to start debugging this issue is to look at your server startup logs. You might find some hints there, as to what flavour of JSF is your jboss using. I am also using the same configuration but I wasn't interested in running my code with the Sun RI. So I removed jboss jsf libraries. Then included all the myfaces 1.2 libraries in my lib folder. I think you have to specify the war bundles jsf implementation flag to true in your web.xml. This was just my experience, your requirements might be different. On Nov 10, 2007 9:35 PM, Dave [EMAIL PROTECTED] wrote: Thanks for quick help. In my jsf application, I did not define or set classloader. What could be the cause? Thanks! *Bernhard Huemer [EMAIL PROTECTED]* wrote: Hello, sounds like a classloader issue as you're still using the JSF RI, at least according to the error message (FacesContext not found - MyFaces vs. Cannot find FacesContext - JSF RI; and of course the line numbers don't match). regards, Bernhard On 11/10/2007 +0100, Dave wrote: I upgraded to JBoss 4.2.2 GA from 4.0.5. and followed the following instruction to use MyFaces core instead of the built-in JSF ri. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces But I got the RuntimeException: can not find FacesContext java.lang.RuntimeException: Cannot find FacesContext at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext( UIComponentClassicTagBase.java:1796) at javax.faces.webapp.UIComponentClassicTagBase.setJspId( UIComponentClassicTagBase.java:1613) at org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:152) at org.apache.jsp.index_jsp._jspService(index_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke( ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest( ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward( ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward( ApplicationDispatcher.java:292) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch( ServletExternalContextImpl.java:419) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView( JspViewHandlerImpl.java:211) Thanks for help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Fwd: Panel Tabbed Pane
Any suggestions please ? -- Forwarded message -- From: Hasnain Badami [EMAIL PROTECTED] Date: Nov 1, 2007 6:26 PM Subject: Fwd: Panel Tabbed Pane To: MyFaces Discussion users@myfaces.apache.org There is an other issue, related to the earlier one, which I think is weird. Possibly I am doing something wrong. When I execute the code %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib prefix=f uri =http://java.sun.com/jsf/core; % %@ taglib prefix=h uri =http://java.sun.com/jsf/html; % %@ taglib prefix=c uri =http://java.sun.com/jstl/core; % %@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t% f:view html head f:loadBundle basename=com.prytania.resource.Messages var=messages/ title h:outputText value=#{messages['portfolio']} / h:outputText value=#{portfolioUI.portfolioName} / /title t:stylesheet path=/report.css / t:stylesheet path=/tablepresentation.css / /head body class=mainBody h:form id=portfolioFatherForm t:saveState value=#{portfolioTabIndex} / t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC activeTabStyleClass=levelOneActiveTab inactiveTabStyleClass=levelOneInactiveTab activeSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSub tabContentStyleClass=levelOneTabContent serverSideTabSwitch=true id=pDetailTab t:panelTab label=#{messages['snapshot_view']} c:if test=${portfolioTabIndex==null || portfolioTabIndex.index==0} f:subview id=tabportfoliodetailsnapshotview h:outputText value=snapshot / /f:subview /c:if /t:panelTab t:panelTab label=#{messages['time_series_view']} h:outputText value=timeseries / /t:panelTab t:panelTab label=#{messages['documents']} c:if test=${portfolioTabIndex.index==2} h:outputText value=documents / /c:if /t:panelTab t:panelTab label=#{messages['analysis']} c:if test=${portfolioTabIndex.index==3} f:subview id=tabportfoliodetailanalysisview h:outputText value=analysis / /f:subview /c:if /t:panelTab t:tabChangeListener type= com.prytania.model.backingbeans.PortfolioDetailTabManager / /t:panelTabbedPane /h:form /body /html / f:view PortfolioDetailTabManager.java package com.prytania.model.backingbeans; import javax.faces.context.FacesContext; import javax.faces.event.AbortProcessingException; import org.apache.log4j.Logger; import org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane; import org.apache.myfaces.custom.tabbedpane.TabChangeEvent; import org.apache.myfaces.custom.tabbedpane.TabChangeListener ; public class PortfolioDetailTabManager implements TabChangeListener { private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger( PortfolioDetailTabManager.class); public PortfolioDetailTabManager() { log.info(Executing PortfolioDetailTabManager()); log.info(Exiting PortfolioDetailTabManager()); } public void processTabChange(TabChangeEvent event) throws AbortProcessingException { log.info(TabSupport:processPortfolioDetailTabChange() called + event.getNewTabIndex()); PortfolioTabIndex tabIndices = (PortfolioTabIndex)FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable( FacesContext.getCurrentInstance(), portfolioTabIndex); HtmlPanelTabbedPane tabbedPane = (HtmlPanelTabbedPane)event.getComponent(); if(tabIndices!=null) tabIndices.setIndex(event.getNewTabIndex()); if(tabbedPane!=null) tabbedPane.setSelectedIndex(event.getNewTabIndex()); } } PortfolioTabIndex package com.prytania.model.backingbeans; import java.io.Serializable; import org.apache.log4j.Logger; /** * * @author hbadami * @jsf.bean * name=portfolioTabIndex * scope=request */ public class PortfolioTabIndex implements Serializable { private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger(PortfolioTabIndex.class ); private int index=0; public int getIndex() { return index; } public void setIndex(int index) { log.info(The old index is + this.index + the new index is + index); this.index = index; } public PortfolioTabIndex() { log.info(Executing PortfolioTabIndex()); log.info(Exiting PortfolioTabIndex()); } } now when I execute this code, only the code in the selected tab gets executed, but the tabbed pane creates additonal tabs automatically when you move between tabs back and forth. Any idea why is this happening? Thanks in advance -- Forwarded message -- From: Hasnain Badami [EMAIL PROTECTED] Date: Oct 31, 2007 5:06 PM Subject: Panel Tabbed Pane To: MyFaces Discussion users@myfaces.apache.org HI I am trying to use the panel tabbed pane with server side tab switching. I am using myfaces 1.1.6 Snapshot and tomahawak 1.1.7. snapshot. Consider the following code snippet portfolioDetailUI backing bean is in request scope. t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC
Fwd: Panel Tabbed Pane
There is an other issue, related to the earlier one, which I think is weird. Possibly I am doing something wrong Copy this code and execute %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib prefix=f uri=http://java.sun.com/jsf/core; % %@ taglib prefix=h uri=http://java.sun.com/jsf/html; % %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% f:view html head f:loadBundle basename=com.prytania.resource.Messages var=messages/ title h:outputText value=#{messages['portfolio']} / h:outputText value=#{portfolioUI.portfolioName} / /title t:stylesheet path=/report.css/ t:stylesheet path=/tablepresentation.css/ /head body class=mainBody h:form id=portfolioFatherForm t:saveState value=#{portfolioTabIndex}/ t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC activeTabStyleClass=levelOneActiveTab inactiveTabStyleClass=levelOneInactiveTab activeSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSub tabContentStyleClass=levelOneTabContent serverSideTabSwitch=true id=pDetailTab t:panelTab label=#{messages['snapshot_view']} c:if test=${portfolioTabIndex==null || portfolioTabIndex.index==0} f:subview id=tabportfoliodetailsnapshotview h:outputText value=snapshot / /f:subview /c:if /t:panelTab t:panelTab label=#{messages['time_series_view']} h:outputText value=timeseries / /t:panelTab t:panelTab label=#{messages['documents']} c:if test=${portfolioTabIndex.index==2} h:outputText value=documents / /c:if /t:panelTab t:panelTab label=#{messages['analysis']} c:if test=${portfolioTabIndex.index==3} f:subview id=tabportfoliodetailanalysisview h:outputText value=analysis / /f:subview /c:if /t:panelTab t:tabChangeListener type= com.prytania.model.backingbeans.PortfolioDetailTabManager / /t:panelTabbedPane /h:form /body /html /f:view PortfolioDetailTabManager.java package com.prytania.model.backingbeans; import javax.faces.context.FacesContext; import javax.faces.event.AbortProcessingException; import org.apache.log4j.Logger; import org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane; import org.apache.myfaces.custom.tabbedpane.TabChangeEvent; import org.apache.myfaces.custom.tabbedpane.TabChangeListener; public class PortfolioDetailTabManager implements TabChangeListener { private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger( PortfolioDetailTabManager.class); public PortfolioDetailTabManager() { log.info(Executing PortfolioDetailTabManager()); log.info(Exiting PortfolioDetailTabManager()); } public void processTabChange(TabChangeEvent event) throws AbortProcessingException { log.info(TabSupport:processPortfolioDetailTabChange() called + event.getNewTabIndex()); PortfolioTabIndex tabIndices = (PortfolioTabIndex)FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable( FacesContext.getCurrentInstance(), portfolioTabIndex); HtmlPanelTabbedPane tabbedPane = (HtmlPanelTabbedPane)event.getComponent(); if(tabIndices!=null) tabIndices.setIndex(event.getNewTabIndex()); if(tabbedPane!=null) tabbedPane.setSelectedIndex(event.getNewTabIndex()); } } PortfolioTabIndex package com.prytania.model.backingbeans; import java.io.Serializable; import org.apache.log4j.Logger; /** * * @author hbadami * @jsf.bean * name=portfolioTabIndex * scope=request */ public class PortfolioTabIndex implements Serializable { private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger(PortfolioTabIndex.class ); private int index=0; public int getIndex() { return index; } public void setIndex(int index) { log.info(The old index is + this.index + the new index is + index); this.index = index; } public PortfolioTabIndex() { log.info(Executing PortfolioTabIndex()); log.info(Exiting PortfolioTabIndex()); } } now when I execute this code, only the code in the selected tab gets executed, but the tabbed pane creates additonal tabs automatically when you move select tabs back and forth. Any idea why is this happening? Thanks in advance -- Forwarded message -- From: Hasnain Badami [EMAIL PROTECTED] Date: Oct 31, 2007 5:06 PM Subject: Panel Tabbed Pane To: MyFaces Discussion users@myfaces.apache.org HI I am trying to use the panel tabbed pane with server side tab switching. I am using myfaces 1.1.6 Snapshot and tomahawak 1.1.7. Consider the following code snippet portfolioDetailUI backing bean is in request scope. t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC activeTabStyleClass=levelOneActiveTab inactiveTabStyleClass=levelOneInactiveTab activeSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSub tabContentStyleClass=levelOneTabContent serverSideTabSwitch=true id
Panel Tabbed Pane
HI I am trying to use the panel tabbed pane with server side tab switching. I am using myfaces 1.1.6 Snapshot and tomahawak 1.1.7. Consider the following code snippet portfolioDetailUI backing bean is in request scope. t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC activeTabStyleClass=levelOneActiveTab inactiveTabStyleClass=levelOneInactiveTab activeSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSub tabContentStyleClass=levelOneTabContent serverSideTabSwitch=true id=pDetailTab binding=#{portfolioDetailUI.panelTabbedPane} t:panelTab label=#{messages['snapshot_view']} f:subview id=tabportfoliodetailsnapshotview jsp:include page=portfoliodetailsnapshotview.jsp / /f:subview /t:panelTab t:panelTab label=#{messages['time_series_view']} f:subview id=tabportfoliodetailtimeseriesview jsp:include page=portfoliodetailtimeseriesview.jsp / /f:subview /t:panelTab t:tabChangeListener type= com.prytania.model.backingbeans.PortfolioDetailTabManager / /t:panelTabbedPane I am a little bit confused. When the page loads the selected index for this tab is 0. This means only portfoliodetailsnapshotview.jsp should be included, but both of these files are loaded. Similary when second tab is clicked only portfoliodetailtimeseriesview.jsp should be included, but again both are included. Any pointers as to why is this happening. I shall appreciate any help Thanks
t:popup component and overflow:auto
Hi I am getting a problem if I try using t:popup component inside a div with overflow:auto. I have seen some messages on the subject but could not find any good solution. Can anybody share his experience in getting around with this problem. I shall be highly obliged. Hassnain
Problem while implementing WorkingWithLargeTables
Hi I am trying to implement WorkingWithLargeTables article present on wiki, on the search page of my application (search can return hundreds of results). The user fills in the search criteria and presses the search button. I have used the DataPage and PagedListDataModel classes. Also I have created the inner class in my backing bean which extends PagedListDataModel. The in my jsp page I have got the following code for datatable and datascroller t:dataTable var=searchResult value=#{advSearchUI.searchResultsData} rows=#{advSearchUI.numberOfRecords} rowClasses=standardTableRow1, standardTableRow2 columnClasses=alignLeft align=center styleClass=tableWithoutFooter id=searchResultsDataTable width=100% forceId=#{searchResult.id} rowId=#{searchResult.id} preserveDataModel=false renderedIfEmpty=true rowIndexVar=rIndex and t:dataScroller for=searchResultsDataTable pageCountVar=pageCount pageIndexVar=pageIndex styleClass=scroller paginator=#{true} paginatorMaxPages=1000 paginatorTableClass=paginator paginatorActiveColumnStyle=font-weight:bold; immediate=false On entering the criteria and pressing search the datatable populates with the first page of the results, and the datascroller shows paging, which is excellent. But when I click 2nd page link it acts wierdly and throws the following exception : * java.lang.IllegalArgumentException*: Illegal value for first row: -20 at javax.faces.component.UIData.setFirst(*UIData.java:991*) at org.apache.myfaces.component.*html*.ext.HtmlDataTable.setFirst(* HtmlDataTable.java:634*) at org.apache.myfaces.custom.datascroller.HtmlDataScroller.broadcast(* HtmlDataScroller.java:187*) at javax.faces.component.UIViewRoot._broadcastForPhase(*UIViewRoot.java:94*) at javax.faces.component.UIViewRoot.processApplication(*UIViewRoot.java:168* ) at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(* LifecycleImpl.java:343*) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(*LifecycleImpl.java:86 *) at javax.faces.webapp.FacesServlet.service(*FacesServlet.java:137*) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(* ApplicationFilterChain.java:252*) at org.apache.catalina.core.ApplicationFilterChain.doFilter(* ApplicationFilterChain.java:173*) Can anybody hint towards the reason and the solution to this problem? I am using myfaces 1.1.3 and tomahawk 1.1.3. I shall be highly obliged with any responses.
Re: Strange problem, datatable sorting
I also observed that when I am clicking on the second or the following columns the ascending/descending toggler doesnt work, i.e. always the value true is set in setAscending(boolean ascending). Therefore, it always sorts in ascending order. Whereas clicking on the first column sets the ascending/descending toggler perfectly, and the sorting works. Any suggestions? On 11/15/06, Hasnain Badami [EMAIL PROTECTED] wrote: hi I am using a datatable. I have written the code as required for sorting. Now when I click on the header of the first column the sorting works fine. I can also see the ascending/descending toggler working in the INVOKE_APPLICATION phase. But when I click on the header of the second or the following columns it works once, but then nothing happens. Any ideas? Thanks in advance HB.
Re: Panel Tabbed Pane
Hi Is there any way through which, depending on tabIndices.portfolioTabIndex, I can include the appropriate jsp. HB. On 11/15/06, K. Johnson [EMAIL PROTECTED] wrote: The rendered attribute is processed at render-time. My guess is that it is processed after both jsp:includes are already processed. ---Original Message---From: Hasnain Badami [EMAIL PROTECTED]Subject: Panel Tabbed PaneSent: 14 Nov '06 12:55 HiI have written the following code:t:panelTabbedPanestyleClass=levelOneTabbedPanewidth=100% bgcolor=#CCactiveTabStyleClass=levelOneActiveTabinactiveTabStyleClass=levelOneInactiveTabactiveSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSubtabContentStyleClass=levelOneTabContentserverSideTabSwitch=trueid=pDetailTab t:panelTab label= #{messages['snapshot_view']} f:subview id=tabportfoliodetailsnapshotviewrendered=#{tabIndices.portfolioTabIndex==0 } jsp:include page=portfoliodetailsnapshotview.jsp //f:subview/t:panelTabt:panelTab label= #{messages['time_series_view']} f:subview id=tabportfoliodetailtimeseriesviewrendered=#{tabIndices.portfolioTabIndex==1} jsp:include page=portfoliodetailtimeseriesview.jsp //f:subview/t:panelTabt:tabChangeListener type=com.prytania.model.backingbeans.PortfolioDetailTabManager / /t:panelTabbedPaneThere are two separate backing beans each for theportfoliodetailsnapshotview.jsp and portfoliodetailtimeseriesview.jsp. Ata single point in time, the tabIndices.portfolioTabIndex can either be 0or 1 which means eitherportfoliodetailsnapshotview.jsp andportfoliodetailtimeseriesview.jsp should be included. But in the logs, Ican see the code of both the backing beans being executed (constructors being called),. Why is that so? If the rendered attribute equals to falsewhy would the framework still include the jsp. Is there any solution tothe above mentioned problem. I mean if rendered is false then the included jsp should not be processed.Thanks in advanceBest RegardsHassnain
Strange problem, datatable sorting
hi I am using a datatable. I have written the code as required for sorting. Now when I click on the header of the first column the sorting works fine. I can also see the ascending/descending toggler working in the INVOKE_APPLICATION phase. But when I click on the header of the second or the following columns it works once, but then nothing happens. Any ideas? Thanks in advance HB.
Panel Tabbed Pane
Hi I have written the following code: t:panelTabbedPane styleClass=levelOneTabbedPane width=100% bgcolor=#CC activeTabStyleClass=levelOneActiveTab inactiveTabStyleClass=levelOneInactiveTab activeSubStyleClass=levelOneActiveSub inactiveSubStyleClass=levelOneInactiveSub tabContentStyleClass=levelOneTabContent serverSideTabSwitch=true id=pDetailTab t:panelTab label= #{messages['snapshot_view']} f:subview id=tabportfoliodetailsnapshotview rendered=#{tabIndices.portfolioTabIndex==0} jsp:include page=portfoliodetailsnapshotview.jsp / /f:subview /t:panelTab t:panelTab label= #{messages['time_series_view']} f:subview id=tabportfoliodetailtimeseriesview rendered=#{tabIndices.portfolioTabIndex==1} jsp:include page=portfoliodetailtimeseriesview.jsp / /f:subview /t:panelTab t:tabChangeListener type =com.prytania.model.backingbeans.PortfolioDetailTabManager / /t:panelTabbedPane There are two separate backing beans each for the portfoliodetailsnapshotview.jsp and portfoliodetailtimeseriesview.jsp. At a single point in time, the tabIndices.portfolioTabIndex can either be 0 or 1 which means either portfoliodetailsnapshotview.jsp and portfoliodetailtimeseriesview.jsp should be included. But in the logs, I can see the code of both the backing beans being executed (constructors being called),. Why is that so? If the rendered attribute equals to false why would the framework still include the jsp.Is there any solution to the above mentioned problem. I mean if rendered is false then the included jsp should not be processed. Thanks in advance Best Regards Hassnain
Two selectionOneMany boxes, Value not valid option problem
HI I have two selectionOneManycomponents ona page. Its just like the case in whicha selectionOneMany fora country when changedupdates the second selectionOneMany for its cities. I have used a valueChangeNotifier(as the code has to update some text fields) withthe first component. Onchange citySelect will fetch the new values corresponding to the county.Now when I change my country listbox I get a validation error Validation Error citySelect: Value is not a valid option. I think that the possible reason might be that I am trying to bind a new City to the component.Because the component wouldlook in the selectitem collection for my binded value and when itwont findit, it will throw a validation error. But then what can be a workaround to implement such a case?
Problem loading a resource bundle
Hi I have a .propertiesfile defined in my projectin which I have messages of my application. I am using the following code to load the bundle in my application ArrayListCell valueBindedArrayList = new ArrayListCell();String bundleName = fc.getApplication().getMessageBundle();System.out.println(bundle name is + bundleName);Locale locale = fc.getApplication().getDefaultLocale();ResourceBundle bundle = ResourceBundle.getBundle(bundleName, locale); But on executing the system print shows that the bundle name is null. Can there be any configuration problems. The properties file is in a package called resource. Any help shall be highly appreciated Thanks Hassnain
Re: Problem loading a resource bundle
Thanks ould On 5/16/06, ould neman [EMAIL PROTECTED] wrote: Hasnain Badami a écrit : Hi I have a .properties file defined in my project in which I have messages of my application. I am using the following code to load the bundle in my application ArrayListCell valueBindedArrayList = new ArrayListCell(); String bundleName = fc.getApplication().getMessageBundle(); System.out.println(bundle name is + bundleName); Locale locale = fc.getApplication().getDefaultLocale(); ResourceBundle bundle = ResourceBundle.getBundle (bundleName, locale); But on executing the system print shows that the bundle name is null. Can there be any configuration problems. The properties file is in a package called resource. Any help shall be highly appreciated Thanks HassnainI use this code and I get my resource bundleFacesContext fc = FacesContext.getCurrentInstance(); ResourceBundle f = ResourceBundle.getBundle(fc.getApplication() .getMessageBundle(), fc.getViewRoot().getLocale());but you must put this code in your faces-config.xml :applicationlocale-config default-localefr/default-localesupported-localefr/supported-localesupported-localeen_US/supported-localesupported-localede/supported-locale /locale-configmessage-bundlefolder1.folder2.authentification/message-bundle/applicationgood luck
Re: Specifying Arraylist of ArrayList for the value of a datatable
Thanks guys. so nice of you. Hasnain On 5/3/06, Mert Çalışkan [EMAIL PROTECTED] wrote: Yes as Volker stated above.and h:datatable can also be nested elements in h:columns like, h:dataTable id=table value=#{bean.list} var=varInnerList h:column f:facet name=header h:outputText value=List/h:outputText /f:facet h:dataTable id=nestedTable value=#{varInnerList} var=varNestedList h:column f:facet name=header h:outputText value=Nested List/h:outputText /f:facet h:outputText value=#{varNestedList} /h:outputText /h:column /h:dataTable/h:column /h:dataTable Regards, Mert On 5/3/06, Volker Weber [EMAIL PROTECTED] wrote: Hi Hasnain,i'm not sure if i understand you correct, but if so : yes why not.If you have a ( 1.5 Syntax) ArrayListArrayListString you can do:h:dataTable value=#{bean.list} var=innerList ... h:columnh:outputText value=#{innerList[0]}/ /h:columnh:columnh:outputText value=#{innerList[1]}//h:column... Regards,VolkerHasnain Badami wrote: hi I want to specify an ArrayList of ArrayLists as the value for my data table. Can an arraylist of arraylists be used and how?any help shall be highly appreciated. Hassnain --Don't answer to From: address!Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.
Specifying Arraylist of ArrayList for the value of a datatable
hi Iwant to specify an ArrayList of ArrayLists as the value for my data table. Can an arraylist of arraylists be used and how? any help shall be highly appreciated. Hassnain
Faces context is null
Hi I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null. Any idea of why this is happening? Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated. Thanks Hassnain
Re: Faces context is null
Thanks for your reply guys. I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias WessendorfAechterhoek 1848282 Emsdetten http://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: Faces context is null
Thanks Frank, it works :) Hassnain On 4/18/06, Frank Felix Debatin [EMAIL PROTECTED] wrote: Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2006 5:50 PM To: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: Faces context is null
Sorry it didnt worked :-( Hassnain On 4/18/06, Hasnain Badami [EMAIL PROTECTED] wrote: Thanks Frank, it works :) Hassnain On 4/18/06, Frank Felix Debatin [EMAIL PROTECTED] wrote: Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2006 5:50 PM To: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: Faces context is null
Actually when I modified the code to HttpServletResponse httpResponse = (HttpServletResponse)response; httpResponse.sendRedirect(login.jsf); the server entersan infinite loop. On 4/18/06, Hasnain Badami [EMAIL PROTECTED] wrote: Sorry it didnt worked :-( Hassnain On 4/18/06, Hasnain Badami [EMAIL PROTECTED] wrote: Thanks Frank, it works :) Hassnain On 4/18/06, Frank Felix Debatin [EMAIL PROTECTED] wrote: Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2006 5:50 PM To: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: orange line onhover w/ panelTabbedPane in Firefox
Hi I am having the same problem. i.e. An orange line appears at the top of each panel tab whenever hovering over the tab. This is true for both IEand firefox. Any solutions? Thanks Hassnain On 3/23/06, Dennis Byrne [EMAIL PROTECTED] wrote: Weird.Which version of IE? I have 6.None of the other devs here have it w/ IE either.Dennis Byrne -Original Message-From: Andrew Robinson [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 22, 2006 08:12 PMTo: 'MyFaces Discussion', [EMAIL PROTECTED]Subject: Re: orange line onhover w/ panelTabbedPane in FirefoxThat is odd, I am getting in both.I am on MyFaces SVN though. Also, IE had a lovely strethed command button in the active tab, so I used a hack from another post:css:.myFaces_panelTabbedPane_activeHeaderCell input { background-color: transparent !important;} Perhaps that will help?On 3/22/06, Martin Marinschek [EMAIL PROTECTED] wrote: haha ;) I had to check your mail address to make sure it was you ;) (no clue about the tabbed panel, though) regards, Martin On 3/22/06, Dennis Byrne [EMAIL PROTECTED] wrote: Hey everyone, I'm brand new to JSF and I would appreciate some help ;) Using MyFaces 1.1.1, an orange line appears at the top of each panel tab whenever hovering over the tab.This does not happen w/ IE.What do I do? Dennis Byrne-- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Encountering exception with nightly build
Hi I have just downloaded the nightly build for tomahawk and myfaces. I have put up all the lib files into my WEB-INF/lib directory. When I try to run my existing code, I get the following exception java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.findNestingForm(Ljavax/faces/component/UIComponent;Ljavax/faces/context/FacesContext;)Lorg/apache/myfaces/shared_tomahawk/renderkit/html/util/FormInfo; Can somebody guide me as to what is missing, or am I making any mistake. Thanks in advance Hassnain
Problem with PanelTabbedpane
Hi I m trying to use the panel tabbed pane with the serversidetabswitch = true. Therefore I have declared a tab change listener with the following source code public class TabSupport implements Serializable, TabChangeListener {private static final long serialVersionUID = 1L;int selectedTabIndex;public TabSupport(){}public int getSelectedTabIndex() { //System.out.println( Property getSelectedTabIndex() accessed + selectedTabIndex);return selectedTabIndex;}public void setSelectedTabIndex(int selectedTabIndex) {//System.out.println( Property setSelectedTabIndex() accessed); this.selectedTabIndex = selectedTabIndex;} public void processTabChange(TabChangeEvent event){System.out.println(TabSupport:processTabChange() called + event.getNewTabIndex() + + event.getPhaseId());this.selectedTabIndex = event.getNewTabIndex();}} When I change the tabthe listener is invoked which sets selectedTabIndex value accordingly and I can see this through the system message. But in the generated html the selectedtab content doesnt show meaning selectedTabIndex is still 0. It hasnt been assigned to the new valueor has been overwritten.TabSupport is in the session scope. Following is my jsp code !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib prefix=c uri =http://java.sun.com/jstl/core % %@ taglib prefix=f uri =http://java.sun.com/jsf/core % %@ taglib prefix=h uri =http://java.sun.com/jsf/html % %@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t% f:view f:loadBundle basename=com.prytania.resource.Messages var=messages/ html head titleh:outputText value=#{messages['title']}// title t:stylesheet path=/report.css / /head body h:form id=portfolioFatherForm f:subview id=header jsp:include page=inc/page_header.jsp / /f:subview f:verbatim br/ /f:verbatim t:panelTabbedPane selectedIndex=#{tabSupport.selectedTabIndex} styleClass=tabbedPane width=100% bgcolor=#CC activeTabStyleClass=activeTab inactiveTabStyleClass=inactiveTab activeSubStyleClass=activeSub inactiveSubStyleClass=inactiveSub tabContentStyleClass=tabContent serverSideTabSwitch=true t:panelTab label= #{messages['portfolio_summary']} f:subview id=tabportfoliosummary rendered=#{(tabSupport.selectedTabIndex==0)} jsp:include page=portfoliosummary.jsp / /f:subview /t:panelTab t:panelTab label= #{messages['portfolio_detail']} f:subview id=tabportfoliodetail rendered=#{(tabSupport.selectedTabIndex==1)} jsp:include page=portfoliodetail.jsp / /f:subview /t:panelTab t:panelTab label= #{messages['portfolio_statistics']} f:subview id=tabportfoliostatistics rendered=#{(tabSupport.selectedTabIndex==2)} jsp:include page=portfoliostatistics.jsp / /f:subview /t:panelTab t:tabChangeListener type=com.prytania.listeners.TabSupport / /t:panelTabbedPane f:subview id=footer jsp:include page=inc/page_footer.jsp / /f:subview /h:form /body html /f:view I shall be highly obliged with any responses. Hassnain
headerLink
HiI am trying to modify the myfaces collapsiblepanel example such that an actionlistener is fired when the headerLink is created.The code is h:form id=form t:dataTable id=test_dt var=person value= #{thirdCollapsiblePanelBean.persons} preserveDataModel= false h:column t:collapsiblePanel id=test4 var=test4collapsed value= #{person.collapsed} f:facet name=header t:div style=width:500px;background-color:#CC; h:outputText value=Person / t:headerLink immediate=true actionListener=#{thirdCollapsiblePanelBean.callFunction} h:outputText value= Details rendered=#{test4collapsed} / h:outputText value=v Overview rendered=#{!test4collapsed} / /t:headerLink h:commandLink value= test action=#{person.test} / /t:div /f:facet h:inputText id=firstname_input value=#{person.firstName} / h:commandLink value=test action=#{person.test} actionListener=#{thirdCollapsiblePanelBean.callFunction} / /t:collapsiblePanel /h:column /t:dataTable /h:form But the actionListener doesnt work in headerLink. has anybody else experienced the same problem. Any solutions to it? Hassnain
Collapsible panel question
Hi Please correct me if I am wrong. When a collapsible panel is used in a dataTable thenwhen the panel is expanded it expands in the same row causing the height of thatrow to increase. Is it possible that when a collapsible panel is expanded itscontents are expandedto the next rows of the table (if 2 hidden contents then next 2 rows)rather than expanding in the same row. Any help shall be highly appreciated.
Collapsible Panel
Hi Please correct me if I am wrong. When a collapsible panel is used in a dataTable thenwhen the panel is expanded it expands in the same row causing the height of thatrow to increase. Is it possible that when a collapsible panel is expanded itscontents are expandedto the next rows of the table (if 2 hidden contents then next 2 rows)rather than expanding in the same row. Any help shall be highly appreciated.
Some questions regarding ADF Faces and MyFaces
Hi I am trying to install the faces but couldnt find adfshare.jar file which is mentioned as a dependency of adf faces. Actually I want to group the header as mentioned in posting http://www.mail-archive.com/users@myfaces.apache.org/msg17121.html Cananyone just guide me as to where can I find it. Secondly, can both of these implementations work together.I had MyFaces installed earlier and now I am trying to install ADF. So I have tomodify myweb.xml andfaces-config.xmlto register ADF. Are there any specific settings which have to be made so that these can work together? Thirdly,generally speaking is ADF datatablebetter than the myfaces implementation of data table? Waiting for your reply Best Regards Hassnain
Strange behaviour using serverSideTabSwitch and PanelTabbedPane
Hi I am trying to implement tabs using t:TabbedPanelPane. My tabbedpanelpane contains 3 tabs and each of these three tabs include a separate jsp page. In order to include a jsp page i am using f:subview tags. What I want to implement is that when one of the tab is being displayed, jsp files in other tabs must not be included i.e. only one jsp filein the selected tab should be presented. I think this can be implemented using a f:subview tags for eachpaneland setting its rendered=false through some bean property on a tabChangeListener:processTabChange event. So I coded it out but somehow on every tab change the properties returned are always false (the default value) and the change of properties in processTabChange function are not considered or are overwritten. I dont know why this is happening. Can anybody give some ideas. I can include the code as well. Best Regards Hassnain
serverSideTabSwitch and PanelTabbedPane problems
Hi I am trying to implement tabs using t:TabbedPanelPane. My tabbedpanelpane contains 3 tabs and each of these three tabs include a jsp page. in order to include a jsp page i am using f:subview tags. What I want to implement is that when one of the tab is being displayed, jsp files in other tabs must not be included. Here is the code: t:panelTabbedPane selectedIndex=#{tabSupport.selectedTabIndex} styleClass=tabbedPane width=100% bgcolor=#CC activeTabStyleClass=activeTab inactiveTabStyleClass=inactiveTab activeSubStyleClass=activeSub inactiveSubStyleClass=inactiveSub tabContentStyleClass=tabContent serverSideTabSwitch=true t:panelTab label= #{messages['portfolio_summary']} f:subview id=tabportfoliosummary rendered =#{tabSupport.portfolioSummaryTabSelected} jsp:include page=portfoliosummary.jsp / /f:subview /t:panelTab t:panelTab label= #{messages['portfolio_detail']} f:subview id=tabportfoliodetail rendered=#{tabSupport.portfolioDetailTabSelected} jsp:include page=portfoliodetail.jsp / /f:subview /t:panelTab t:panelTab label= #{messages['portfolio_statistics']} f:subview id=tabportfoliostatistics rendered =#{tabSupport.portfolioStatisticsTabSelected} jsp:include page=portfoliostatistics.jsp / /f:subview /t:panelTab t:tabChangeListener type=com.prytania.listeners.TabSupport / /t:panelTabbedPane Here is my tabchangelistener. public class TabSupport implements Serializable, TabChangeListener {private boolean portfolioSummaryTabSelected;private boolean portfolioDetailTabSelected;private boolean portfolioStatisticsTabSelected; private int selectedTabIndex; public int getSelectedTabIndex() {System.out.println( Property getSelectedTabIndex() accessed + selectedTabIndex);return selectedTabIndex;}public void setSelectedTabIndex(int selectedTabIndex) { System.out.println( Property setSelectedTabIndex() accessed);this.selectedTabIndex = selectedTabIndex;}public boolean getPortfolioDetailTabSelected() {System.out.println( Property getPortfolioDetailTabSelected() accessed + portfolioDetailTabSelected); return portfolioDetailTabSelected;}public void setPortfolioDetailTabSelected(boolean portfolioDetailTabSelected) {System.out.println( Property setPortfolioDetailTabSelected() accessed); this.portfolioDetailTabSelected = portfolioDetailTabSelected;}public boolean getPortfolioStatisticsTabSelected() {System.out.println( Property getPortfolioStatisticsTabSelected() accessed + portfolioStatisticsTabSelected); return portfolioStatisticsTabSelected;}public void setPortfolioStatisticsTabSelected(boolean portfolioStatisticsTabSelected) {System.out.println( Property setPortfolioStatisticsTabSelected() accessed); this.portfolioStatisticsTabSelected = portfolioStatisticsTabSelected;}public boolean getPortfolioSummaryTabSelected() {System.out.println( Property getPortfolioSummaryTabSelected() accessed + portfolioSummaryTabSelected); return portfolioSummaryTabSelected;}public void setPortfolioSummaryTabSelected(boolean portfolioSummaryTabSelected) {System.out.println( Property setPortfolioSummaryTabSelected() accessed); this.portfolioSummaryTabSelected = portfolioSummaryTabSelected;}public void processTabChange(TabChangeEvent event){System.out.println(TabSupport:processTabChange() called + event.getNewTabIndex () + + event.getPhaseId());selectedTabIndex = event.getNewTabIndex(); switch(selectedTabIndex){case 0: System.out.println(Setting tabs now case 0 );portfolioSummaryTabSelected = true;portfolioDetailTabSelected=false;portfolioStatisticsTabSelected=false; break;case 1: System.out.println(Setting tabs now case 1 );portfolioDetailTabSelected = true;portfolioSummaryTabSelected = false;portfolioStatisticsTabSelect ed=false;break;case 2: System.out.println(Setting tabs now case 2 );portfolioDetailTabSelected = false;portfolioSummaryTabSelected = false;portfolioStatisticsTabSelected = true; break; }tabStatus();}private void tabStatus(){System.out.println(Tab Status is );System.out.println( portfolioSummaryTabSelected is + portfolioSummaryTabSelected); System.out.println( portfolioDetailTabSelected is + portfolioDetailTabSelected);System.out.println( portfolioStatisticsTabSelected is + portfolioStatisticsTabSelected);} } The flow is that whenever one of the tabs is clicked my tabchangelistener sets the corresponding boolean attribute for that tab to true and others as false. As a result the desired behaviour is when the page is reloaded the selected tabf:subview tag is rendered and other f:subview tagsshould not. But somehow on every tab change the properties returned are always false (the default value) and the change of properties in processTabChange function are not considered or are overwritten. I dont know why this is happening. Can anybody give some ideas.
Exceptions while using nightly builds
Hello I am using the nightly build of myfaces. I removed the jsf-libraries from jboss\current\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs and included the tomahawk-1.1.2-SNAPSHOT.jar, myfaces-api-1.1.2-SNAPSHOT.jar , myfaces-commons-1.1.3-SNAPSHOT.jar, myfaces-impl-1.1.2-SNAPSHOT.jar to my WEB-INF/lib directory. But I am getting the following exception: javax.faces.FacesException: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapperat org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:279)at org.apache.myfaces.util.ClassUtils.newInstance (ClassUtils.java:265)at org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)at org.apache.myfaces.webapp.StartupServletContextListener.initFaces (StartupServletContextListener.java:63)at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)at org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java:3669)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java :503)at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.apache.catalina.core.StandardContext.init(StandardContext.java :5005)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy (TomcatDeployer.java:88)at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)at org.jboss.web.WebModule.startModule(WebModule.java:68)at org.jboss.web.WebModule.startService(WebModule.java :46)at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)at sun.reflect.GeneratedMethodAccessor42.invoke (Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java :245)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)at $Proxy0.start(Unknown Source)at org.jboss.system.ServiceController.start (ServiceController.java:428)at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke (Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)at org.jboss.mx.server.Invocation.invoke(Invocation.java :72)at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java :176)at $Proxy33.start(Unknown Source)at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)at
Re: Exceptions while using nightly builds
Thanks Matthias the problem is resolved Hassnain On 2/15/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Have you cleaned your working dirctory?Restarted JBoss?HtmlBufferResponseWriterWrapper is inside of commons (org.apache.myfaces.renderkit.html.util.HtmlBufferResponseWriterWrapper)Maybe your application still has a reference to the *old* myfaces-all.jar ?-MatthiasOn 2/15/06, Hasnain Badami [EMAIL PROTECTED] wrote: Hello I am using the nightly build of myfaces. I removed the jsf-libraries from jboss\current\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs and included the tomahawk-1.1.2-SNAPSHOT.jar, myfaces-api-1.1.2-SNAPSHOT.jar , myfaces-commons-1.1.3-SNAPSHOT.jar, myfaces-impl-1.1.2-SNAPSHOT.jar to my WEB-INF/lib directory. But I am getting the following exception: javax.faces.FacesException: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapperat org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java :279)at org.apache.myfaces.util.ClassUtils.newInstance (ClassUtils.java:265)at org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)at org.apache.myfaces.webapp.StartupServletContextListener.initFaces (StartupServletContextListener.java:63) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)at org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java :3669)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)at org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke (Method.java:585)at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java :503)at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.apache.catalina.core.StandardContext.init(StandardContext.java :5005)at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)at org.jboss.mx.server.RawDynamicInvoker.invoke (RawDynamicInvoker.java:150)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy (TomcatDeployer.java:88)at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)at org.jboss.web.WebModule.startModule (WebModule.java:68)at org.jboss.web.WebModule.startService(WebModule.java :46)at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)at sun.reflect.GeneratedMethodAccessor42.invoke (Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java :245)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start (ServiceController.java:428)at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke (Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)at org.jboss.mx.server.Invocation.invoke(Invocation.java :72)at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java :245)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java :176)at $Proxy33.start(Unknown Source) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:400
Re: Problems using jenia4faces
Yes you are absolutely right. It only creates a form when it doesnt find a parent form. Cheers... :) On 2/8/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Have you tried explictly creating an enclosing form?Maybe it only creates a form if it doesn't find a parent form. h:formblah blah blah/h:formOn 2/8/06, Hasnain Badami [EMAIL PROTECTED] wrote: Hi I have tried creating the pages. When you create a panelTabbedPane it generates a form tag. I used the following code !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib prefix=c uri = http://java.sun.com/jstl/core % %@ taglib prefix=f uri =http://java.sun.com/jsf/core % %@ taglib prefix=h uri =http://java.sun.com/jsf/html % %@ taglib uri= http://myfaces.apache.org/tomahawk prefix=t% f:view f:loadBundle basename=com.prytania.resource.Messages var=messages/ html head titleh:outputText value=#{messages['title']}// title t:stylesheet path=/report.css / /head body t:panelTabbedPane selectedIndex=#{TabSupport.selectedTabIndex} styleClass=tabbedPane width=100% bgcolor=#CC activeTabStyleClass=activeTab inactiveTabStyleClass=inactiveTab activeSubStyleClass=activeSub inactiveSubStyleClass=inactiveSub tabContentStyleClass=tabContent t:panelTab label= #{messages['portfolio_summary']} f:verbatim hi how are you /f:verbatim /t:panelTab t:panelTab label= #{messages['portfolio_detail']} f:verbatim hi how are you /f:verbatim /t:panelTab t:panelTab label= #{messages['portfolio_statistics']} f:verbatim hi how are you /f:verbatim /t:panelTab /t:panelTabbedPane /body html /f:view On 2/8/06, Mike Kienenberger [EMAIL PROTECTED] wrote: I remember seeing this problem posted on the jenia4 mailing lists. I'm still confused about it. As far as I know, myfaces:panelTabbedPane does not generate a form. Admittedly, I'm a bit behind on running the latest myfaces snapshot, but as of the Dec 11th snapshot (maybe even the Jan 2nd snapshot -- my version control contains conflicting information), this was true. I recommend being sure about what's generating the forms. Try creating a page with just a panelTabbedPane, a page with just a popupFrame, and a page with both and compare them. On 2/8/06, Hasnain Badami [EMAIL PROTECTED] wrote: Hi I am using jenia4faces popupFrame ( which requires a parent h:form) inside a myfaces:panelTabbedPane. But due to some reason I am not able to open the popup. Looking at the html source of the generated page i can see that panelTabbedPane generates a form and inside that form resides the form which jenia4faces requires. So form inside a form. Also in the source the following _javascript_ is generatedfunction clear_tabportfoliosummary_3A_5Fid22() { var f = document.forms ['tabportfoliosummary:_id22']; f.elements['__jeniaPopupFrame'].value=''; f.elements['tabportfoliosummary:_id22:_link_hidden_'].value=''; f.target=''; } Now because the tabportfoliosummary:_id22 form (the jenia4faces popupFrame parent) is inside the tabbed pane form the _javascript_ code generates error at var f = document.forms['tabportfoliosummary:_id22']; Has anybody encountered anything like this before? Is there any solution to it? Best Regards Hassnain
Getting nomethodexception while using tomahawk components
hi I am getting the following exception while I am trying to use any of the tomahawk components java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(Ljava/lang/String;)Ljava/lang/String;at org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader( AddResource.java:443)at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:132)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (SecurityAssociationValve.java:159)at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)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:856)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java :527)at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)at java.lang.Thread.run(Thread.java:595) The code which i am trying to run is h:panelGrid id=header_group2 columns=1 styleClass=pageHeader columnClasses=pageHeaderCol t:jscookMenu layout=hbr theme=ThemeOffice t:navigationMenuItem id=nav_1 itemLabel=#{messages['nav_test1']} / t:navigationMenuItem id=nav_2 itemLabel=#{messages['nav_test1']} t:navigationMenuItem id=nav_2_1 itemLabel=#{messages['nav_test1']} / t:navigationMenuItem id=nav_2_2 itemLabel=#{messages['nav_test2']} / t:navigationMenuItem id=nav_2_4 itemLabel=#{messages['nav_test1']} split=true t:navigationMenuItem id=nav_2_4_1 itemLabel=#{messages['nav_test1']} / t:navigationMenuItem id=nav_2_4_2 itemLabel=#{messages['nav_test2']} / t:navigationMenuItem id=nav_2_4_3 itemLabel=#{messages['nav_test1']} / /t:navigationMenuItem /t:navigationMenuItem t:navigationMenuItem id=nav_3 itemLabel=#{messages['nav_test1']} split=true t:navigationMenuItem id=nav_3_1 itemLabel=#{messages['nav_test2']} / /t:navigationMenuItem t:navigationMenuItem id=nav_4 itemLabel=#{messages['nav_test1']} / /t:jscookMenu /h:panelGrid Kindly help me out as I am totally stuck. BTW the code was working fine till last night. This morning it started giving me severe problems. Best Regards Hassnain
Problems using jenia4faces
Hi I am using jenia4faces popupFrame ( which requires a parent h:form) inside a myfaces:panelTabbedPane. But due to some reason I am not able to open the popup. Looking at the html source of the generated page i can see that panelTabbedPane generates a form and inside that form resides the form which jenia4faces requires. So form inside a form. Alsoin the source the following _javascript_ is generated function clear_tabportfoliosummary_3A_5Fid22() { var f = document.forms['tabportfoliosummary:_id22']; f.elements['__jeniaPopupFrame'].value=''; f.elements['tabportfoliosummary:_id22:_link_hidden_'].value=''; f.target=''; }Now because the tabportfoliosummary:_id22 form (the jenia4faces popupFrame parent) is inside the tabbed pane form the _javascript_ code generates error at var f = document.forms['tabportfoliosummary:_id22']; Has anybody encountered anything like this before? Is there any solution to it?Best RegardsHassnain
Re: Problems using jenia4faces
Hi I have tried creating the pages. When you create a panelTabbedPane it generates a form tag. I used the following code !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib prefix=c uri =http://java.sun.com/jstl/core % %@ taglib prefix=f uri =http://java.sun.com/jsf/core % %@ taglib prefix=h uri =http://java.sun.com/jsf/html % %@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t% f:view f:loadBundle basename=com.prytania.resource.Messages var=messages/ html head titleh:outputText value=#{messages['title']}// title t:stylesheet path=/report.css / /head body t:panelTabbedPane selectedIndex=#{TabSupport.selectedTabIndex} styleClass=tabbedPane width=100% bgcolor=#CC activeTabStyleClass=activeTab inactiveTabStyleClass=inactiveTab activeSubStyleClass=activeSub inactiveSubStyleClass=inactiveSub tabContentStyleClass=tabContent t:panelTab label= #{messages['portfolio_summary']} f:verbatim hi how are you /f:verbatim /t:panelTab t:panelTab label= #{messages['portfolio_detail']} f:verbatim hi how are you /f:verbatim /t:panelTab t:panelTab label= #{messages['portfolio_statistics']} f:verbatim hi how are you /f:verbatim /t:panelTab /t:panelTabbedPane /body html /f:view On 2/8/06, Mike Kienenberger [EMAIL PROTECTED] wrote: I remember seeing this problem posted on the jenia4 mailing lists.I'm still confused about it. As far as I know, myfaces:panelTabbedPane does not generate a form. Admittedly, I'm abit behind on running the latest myfaces snapshot, but as of the Dec11th snapshot (maybe even the Jan 2nd snapshot -- my version control contains conflicting information), this was true.I recommend being sure about what's generating the forms.Try creating a page with just a panelTabbedPane, a page with just apopupFrame, and a page with both and compare them. On 2/8/06, Hasnain Badami [EMAIL PROTECTED] wrote: Hi I am using jenia4faces popupFrame ( which requires a parent h:form) inside a myfaces:panelTabbedPane. But due to some reason I am not able to open the popup. Looking at the html source of the generated page i can see that panelTabbedPane generates a form and inside that form resides the form which jenia4faces requires. So form inside a form. Also in the source the following _javascript_ is generatedfunction clear_tabportfoliosummary_3A_5Fid22() {var f = document.forms ['tabportfoliosummary:_id22'];f.elements['__jeniaPopupFrame'].value=''; f.elements['tabportfoliosummary:_id22:_link_hidden_'].value='';f.target=''; } Now because the tabportfoliosummary:_id22 form (the jenia4faces popupFrame parent) is inside the tabbed pane form the _javascript_ code generates error at var f = document.forms['tabportfoliosummary:_id22'];Has anybody encountered anything like this before? Is there any solution to it? Best Regards Hassnain
Re: Custom renderer for datatable
Hi thanks for your reply If I create two css classes i.e. tableClassand tbody.tableClass I can pass the tableClass through styleClass attribute of t:datatablebut how should I specify the tbody.tableClass. On 2/7/06, ::SammyRulez:: [EMAIL PROTECTED] wrote: just guessing but if you create 2 different css classes one for thetable, one for the tbody and make tbody scrollable? something like .tableClass {}tbody.tableClass{height=300px;overflow=scroll;}2006/2/6, Mike Kienenberger [EMAIL PROTECTED]: I'd recommend creating a patch for t:dataTable that implements a tbody class attribute and opening a JIRA issue with the patch. On 2/6/06, Hasnain Badami [EMAIL PROTECTED] wrote: hi I want to write a custom renderer to implement a table which has its header fixed. For this i want to render class=somestylesheet (overflow: auto; width:100%; height :200px) attribute to the tbody element the t:datatable generates. This would enable me to scroll the table body without scrolling the header. What do I have to do in this circumstance. I shall highly appreciate your feedback Hassnain--::SammyRulez::http://sammyprojectz.blogspot.com
java.lang.NoSuchmethodError when putting t:panelTabbedPane component into the jsp page
Hi I am encountering a java.lang.NoSuchMethodError when trying to run the following code %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib prefix=c uri =http://java.sun.com/jstl/core % %@ taglib prefix=f uri =http://java.sun.com/jsf/core % %@ taglib prefix=h uri =http://java.sun.com/jsf/html % %@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t% f:view f:loadBundle basename=com.prytania.resource.Messages var=messages/ html head titleh:outputText value =#{messages['title']}// title t:stylesheet path=/report.css / /head body t:panelTabbedPane selectedIndex= #{TabSupport.selectedTabIndex} width=100% t:panelTab label=#{messages['portfolio_summary']} f:subview id=tabportfoliosummary rendered=#{TabSupport.portfolioSummaryTabSelected} jsp:include page=portfoliosummary.jsp / /f:subview /t:panelTab /t:panelTabbedPane /body html /f:view If I remove the t:panelTabbedPane everything works smooth but if the component is on the page it throws the following exception 15:27:18,262 ERROR [[faces]] Servlet.service() for servlet faces threw exception java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(Ljava/lang/String;)Ljava/lang/String; at org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader(AddResource.java:443) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:132) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) 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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) 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:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Following is the content of portfoliosummary.jsp %@ taglib uri=http://java.sun.com/jsf/html prefix=h% %@ taglib uri=http://java.sun.com/jsf/core prefix=f% %@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t% f:verbatim br/br/ /f:verbatim I am using the myfaces-1.1.1.zip binary distribution available at http://myfaces.apache.org/binary.cgi . I think there is some problem in the distribution, but am not sure. Any help shall be highly appreciated.
Re: Custom renderer for datatable
I am highly thankful to all of you guys. The solution proposed by Volker is cent percent correct.. cheers :) Hassnain On 2/7/06, Volker Weber [EMAIL PROTECTED] wrote: Hi,::SammyRulez:: wrote: well i'm not a css guru but I think that if you apply tableClass to the table tbody.tableClass is automatically applied to the inner element tbody of the table. something like this http://www.w3schools.com/css/tryit.asp?filename=trycss_link2 the sample is for the 'a' tag but it should work also for tables 2006/2/7, Hasnain Badami [EMAIL PROTECTED]:I'm also not a css guru, but this is imo wrong.the class tbody.tableClass is applied to tbody elements withclass=tableClass.you need this:.tableClass tbody { /* definition here*/}this class is applyed to any tbody which is descendant of a element withclass=tableClass.see : http://www.w3.org/TR/REC-CSS2/selector.html#descendant-selectorsAnd please correct me if i understand this wrong!Regards,VolkerHithanks for your reply If I create two css classes i.e. tableClass and tbody.tableClass I can passthe tableClass through styleClass attribute of t:datatablebut how should Ispecify the tbody.tableClass .On 2/7/06, ::SammyRulez:: [EMAIL PROTECTED] wrote:just guessing but if you create 2 different css classes one for the table, one for the tbody and make tbody scrollable? something like.tableClass {}tbody.tableClass{height=300px;overflow=scroll; }2006/2/6, Mike Kienenberger [EMAIL PROTECTED]:I'd recommend creating a patch for t:dataTable that implements a tbody class attribute and opening a JIRA issue with the patch.On 2/6/06, Hasnain Badami [EMAIL PROTECTED] wrote: hiI want to write a custom renderer to implement a table which has itsheaderfixed. For this i want to render class=somestylesheet (overflow: auto; width:100%; height :200px) attribute to the tbody element thet:datatablegenerates. This would enable me to scroll the table body without scrollingthe header.What do I have to do in this circumstance.I shall highly appreciate your feedback Hassnain--::SammyRulez::http://sammyprojectz.blogspot.com -- ::SammyRulez:: http://sammyprojectz.blogspot.com--Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.
Problems using jenia4faces
hi I am using jenia4faces to enable the popup mechanism. Below is the code for it: h:form jp:popupFrame scrolling=no height=150px width= 350px actionOpen=#{popupWindowController.editPortfolioPopupActionOpen} actionClose=#{popupWindowController.editPortfolioPopupActionClose} center=true h:commandButton value= #{messages['edit_portfolios']}/ /jp:popupFrame /h:form But when I click on the button it doesnt work. All I see is a the url of the current page followed by a #. Below are the contents of popupWindowController.java package com.prytania.model; /*** * @author hbadami* @jsf.bean* name=popupWindowController* scope=application*/ public class PopupWindowController {private String editPortfolioPopupActionOpen=editportfolio;private String editPortfolioPopupActionClose=portfolio;public String getEditPortfolioPopupActionClose() { return editPortfolioPopupActionClose;}public String getEditPortfolioPopupActionOpen() {return editPortfolioPopupActionOpen;}} cheers Hassnain
Classnotfoundexceptions while using nightly builds : tomahawk-1.1.2-SNAPSHOT.jar
Hi I am trying to use t:tabChangeListener / on the server side. I went through some of the messages on the groups and found that in order to run the listener on the server I have to use serverSideTabSwitch attribute of paneltabbedpane, but this is available only through the nightly builds. So, I downloaded the nightly build but when I deploy the tomahawk-1.1.2-SNAPSHOT.jar file to my web-inf/lib folder my jboss server throws exceptions like 2006-02-06 13:28:53,206 ERROR [org.apache.myfaces.util.ClassUtils] Class org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox not foundjava.lang.ClassNotFoundException: Unexpected error during load of: org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox, msg=org/apache/myfaces/component/EscapeCapableat org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:512)at org.jboss.mx.loading.RepositoryClassLoader.loadClass (RepositoryClassLoader.java:377)at java.lang.ClassLoader.loadClass(ClassLoader.java:251)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName (Class.java:242)at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)at org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)at org.apache.myfaces.application.ApplicationImpl.addComponent (ApplicationImpl.java:270)at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:454)at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:130)at org.apache.myfaces.webapp.StartupServletContextListener .initFaces(StartupServletContextListener.java:63)at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java :46)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)at org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:759)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke (Method.java:585)at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:644)at org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.modeler.BaseModelMBean.invoke (BaseModelMBean.java:503)at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal (TomcatDeployer.java:280)at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java :88)at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)at org.jboss.web.WebModule.startModule (WebModule.java:68)at org.jboss.web.WebModule.startService(WebModule.java:46)at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle (ServiceMBeanSupport.java:230)at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke (Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)at org.jboss.mx.server.Invocation.invoke(Invocation.java :72)at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)at org.jboss.system.ServiceController$ServiceProxy.invoke (ServiceController.java:943)at $Proxy0.start(Unknown Source)at org.jboss.system.ServiceController.start(ServiceController.java:428)at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)at org.jboss.mx.server.Invocation.dispatch (Invocation.java:80)at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)at
Custom renderer for datatable
hi I want to write a custom renderer to implement a table which has its header fixed. For this i want to render class=somestylesheet (overflow: auto; width:100%; height :200px) attribute to the tbody element the t:datatable generates. This would enable me to scroll the table body without scrolling the header. What do I have to do in this circumstance. I shall highly appreciate your feedback Hassnain