Data from inputText within popup is not saved
When modifying the node description using the first inputText (the one from the popup) and pressing Submit, the description is not saved to the bean. When modifying the node description from the second inputText, it is saved. What is wrong? %@ page contentType=text/html; charset=ISO-8859-1 % %@ 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/sandbox; prefix=s% %@ taglib uri=http://struts.apache.org/tags-tiles; prefix=tiles % %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% h:form id=treedemoForm t:tree2 id=mytree value=#{treedemo.treeData} var=node varNodeToggler=t clientSideToggle=true f:facet name=normal h:panelGroup id=mypanelgroup t:popup styleClass=popup closePopupOnExitingElement=true closePopupOnExitingPopup=true displayAtDistanceX=1 displayAtDistanceY=1 h:outputText value=#{node.description}/ f:facet name=popup h:panelGroup h:panelGrid columns=2 align=left styleClass=gridTable cellpadding=5 cellspacing=0 columnClasses=gridLabelColumn,gridInputColumn,gridErrorColumn h:outputText value=Descr/ h:inputText value=#{node.description} / h:outputFormat value=Submit - / h:commandButton value=Submit/ /h:panelGrid /h:panelGroup /f:facet /t:popup t:commandLink value=AddNode action=#{treedemo.addNode} t:updateActionListener property=#{treedemo.activeNode} value=#{node.identifier} / /t:commandLink h:panelGrid columns=2 align=left styleClass=gridTable cellpadding=5 cellspacing=0 columnClasses=gridLabelColumn,gridInputColumn,gridErrorColumn h:outputText value=Descr/ h:inputText value=#{node.description} / h:outputFormat value=Submit - / h:commandButton value=Submit/ /h:panelGrid /h:panelGroup /f:facet /t:tree2 /h:form ___ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
Re: Where are the examples for Tomahawk 1.1.3?
The getting started guide illustrates the situation we had before maven came in. After the switch happened, we were stuck with releases without examples for a while. Catalin repaired that, and our next tomahawk release will be in sync with the descriptions again. regards, Martin On 7/11/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 7/10/06, Rick [EMAIL PROTECTED] wrote: I was trying to put my new user hat on. I was imagining that I am new to JSF. I decide on MyFaces. I go to the Getting Started Page of MyFaces. It tells me to get the examples from the download page, and they are not there. Then there is much weeping and gnashing of teeth perhaps a bit of cussing and maybe just maybe a bit of: Screw it I'll just use Struts. Thanks, Rick. :) Please, keep bringing these things up. Reviewing the MyFaces docs from the perspective of a new user (which I am!) is _definitely_ on my list of things to do. -- Wendy -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
panelTabbedPane button and link needs to click twice
Hello I've a page with a panelTabbedPane and next to it some buttons. If serverSideTabSwitch is false I need to click a button twice before it works. In first click it's only rendering page again. I don't reach my action methode behind the button. And there is no error or any log entry. Also no javascript error is shown. Tested with IE and Mozilla Firefox MyFaces 1.1.3 core MyFaces 1.1.3 tomahawk Deployed on Tomcat Any ideas to get it working with serverSideTabSwitch false? ServerSideTabSwitch true works fine. With best regards Christian
Simple PageFlow
Rather than using SEAM or Spring WebFlow, I am wondering if it might be possible to use a PhaseListener to create a simplified page flow. By using facesContext.getViewRoot().getViewId(); it is possible to determine what page the user has landed on. By using facesContext.getApplication().getVariableResolver().resolveVariable(facesContext, objectReference); it is possible to get any object in the session. In most cases, when you have a PageFlow, when a user gets to a specific page, there is a requirement that an object or objects (usually held in session scope) be in a specific state. If the state of the object(s) is incorrect, the phase listener can easily forward to a new page by using facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, , new nav ); It would even be possible to externalize the state conditions used by the PhaseListener into an XML file similar to a WebFlow definition (http://www.theserverside.com/tt/articles/article.tss?l=SpringWebFlow). Am I being naive? Please share your thoughts. Mike __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
updateActionListener within tree2
I'm new to MyFaces and having some problems using updateActionListener inside a tree2, I get Action listener for property is not present when clicking the commandButton. MyFaces 1.1.3 + Tomahawk 1.1.3 + Facelets + updateActionListener tag handler from Wiki 2006-07-11 10:04:28,379 DEBUG http-8180-Processor20 com.myapp.util.TomahawkUpdateActionListenerHandler - Apply called. Component: [EMAIL PROTECTED] 2006-07-11 10:04:28,379 DEBUG http-8180-Processor20 com.myapp.util.TomahawkUpdateActionListenerHandler - Action listener for property is not present. Property: #{patientEvent.currentEvent} The same updateActionListener works fine within a t:dataTable. I've looked around and can't find any mention of this specific problem, does any know of any issues? I'd appreciate some pointers. Thanks Gianni t:tree2 id=historyTree value=#{patientEvent.historyTreeModel} showRootNode=false var=node varNodeToggler=t clientSideToggle=true f:facet name=top h:panelGroup h:outputText value=#{node.description}/ /h:panelGroup /f:facet f:facet name=diagnosis h:panelGroup h:outputText value=#{node.description}/ t:commandButton type=submit action=#{patientEvent.addNewSecondaryEvent} value=#{msgs['label.patient-event.add-new']} t:updateActionListener property=#{patientEvent.currentEvent} value=#{node.visit} / /t:commandButton /h:panelGroup /f:facet /t:tree2
Re: Simple PageFlow
Hi Mike! Please share your thoughts. Have a look at http://wiki.apache.org/myfaces/ConversationTag which doesn't require you to have yet another configuration file. I currently try to setup a sample application with this tag and hibernate, but this might take some time as I have another important job to do currently. You know, sometimes your customer disturbs you in your creative process and would like to have something you get paid for ;-) Ciao, Mario
Re: JSF Performance Problems
Hi, sure thing; Just tell JSF in web.xml the context parameter: context-param param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name param-value20/param-value descriptionOnly applicable if state saving method is server (= default). Defines the amount (default = 20) of the latest views are stored in session. /description /context-param cheers, Gerald On 7/11/06, Jesse Alexander (KSFD 121) [EMAIL PROTECTED] wrote: Is there a parameter telling MyFaces-StateManager how many views to store/cache? That parameter can have an influence on the amount of memory used in the HttpSesssion and therefor has an impact on server-performance. regards Alexander -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006 10:27 AM To: MyFaces Discussion Subject: Re: JSF Performance Problems Could you please rerun the metrics with the performance tuning suggestion found at: http://wiki.apache.org/myfaces/Performance Thx. Mike -- Gerald Müllan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 [EMAIL PROTECTED]
RE: JSF Performance Problems
Thanks for the pointer... I was just about to dive into the source-code ;-) I have added a hint on this in the wiki-page as it is a valid performance- related option. regards Alexander -Original Message- From: Gerald Müllan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 1:17 PM To: MyFaces Discussion Subject: Re: JSF Performance Problems Hi, sure thing; Just tell JSF in web.xml the context parameter: context-param param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name param-value20/param-value descriptionOnly applicable if state saving method is server (= default). Defines the amount (default = 20) of the latest views are stored in session. /description /context-param cheers, Gerald On 7/11/06, Jesse Alexander (KSFD 121) [EMAIL PROTECTED] wrote: Is there a parameter telling MyFaces-StateManager how many views to store/cache? That parameter can have an influence on the amount of memory used in the HttpSesssion and therefor has an impact on server-performance. regards Alexander -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006 10:27 AM To: MyFaces Discussion Subject: Re: JSF Performance Problems Could you please rerun the metrics with the performance tuning suggestion found at: http://wiki.apache.org/myfaces/Performance Thx. Mike -- Gerald Müllan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 [EMAIL PROTECTED]
Please solve the Null Pointer Exception of faces Confog.xml
Dear Experts, Can you Please kindly solve the Exceptions. Error is: SRVE0068E: Could not invoke the service() method on servlet Faces Servlet. Exception thrown : java.lang.NullPointerException at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032) at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:165) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) [7/11/06 17:01:14:375 IST] 002a LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called. [7/11/06 17:01:14:406 IST] 002a WebAppE SRVE0026E: [Servlet Error]-[Faces Servlet]: java.lang.NullPointerException at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032) at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:165) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) Thanks In Advance. Regards, Chandru
Re: Please solve the Null Pointer Exception of faces Confog.xml
Hi,Do you have a custom component or just using the myfaces components.CagatayOn 7/11/06, chandra sekhar saripaka [EMAIL PROTECTED] wrote:Dear Experts, Can you Please kindly solve the Exceptions. Error is:SRVE0068E: Could not invoke the service() method on servlet FacesServlet. Exception thrown : java.lang.NullPointerExceptionat javax.faces.component.UIComponentBase.processRestoreState( UIComponentBase.java:1032)at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java :165)at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221)at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129)at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)at javax.faces.webapp.FacesServlet.service (FacesServlet.java:197)at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)at com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:77)at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink.java:367)at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java :548)at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run (WorkQueueManager.java:1021)at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)[7/11/06 17:01:14:375 IST] 002a LocalTranCoor E WLTC0017E:Resources rolled back due to setRollbackOnly() being called. [7/11/06 17:01:14:406 IST] 002a WebAppE SRVE0026E:[Servlet Error]-[Faces Servlet]: java.lang.NullPointerExceptionat javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java :1032)at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java :165)at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221)at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129)at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)at javax.faces.webapp.FacesServlet.service (FacesServlet.java:197)at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)at com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:77)at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink.java:367)at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java :548)at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run (WorkQueueManager.java:1021)at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)Thanks In Advance.Regards,Chandru
Re: Please solve the Null Pointer Exception of faces Confog.xml
Hi Catagay, I have one myface-extensions.jar in my work space but I 'm not using it. Regards, Chandru. On 7/11/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi, Do you have a custom component or just using the myfaces components. Cagatay On 7/11/06, chandra sekhar saripaka [EMAIL PROTECTED] wrote: Dear Experts, Can you Please kindly solve the Exceptions. Error is: SRVE0068E: Could not invoke the service() method on servlet Faces Servlet. Exception thrown : java.lang.NullPointerException at javax.faces.component.UIComponentBase.processRestoreState( UIComponentBase.java:1032) at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java :165) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82) at javax.faces.webapp.FacesServlet.service (FacesServlet.java:197) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java :548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run (WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) [7/11/06 17:01:14:375 IST] 002a LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called. [7/11/06 17:01:14:406 IST] 002a WebAppE SRVE0026E: [Servlet Error]-[Faces Servlet]: java.lang.NullPointerException at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java :1032) at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java :165) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82) at javax.faces.webapp.FacesServlet.service (FacesServlet.java:197) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java :548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run (WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) Thanks In Advance. Regards, Chandru
SelectOneMenu - selectItems: list population problem
Hi, In my jsf page, I use a h:selectOneMenu which contains a f:selectItems. The attribute value of the selectItems element is a list which is populated from a backing bean. The jsf snippet is like this: h:selectOneMenu id=selectList value=#{backingBean.selectedHotel} f:selectItems value=#{backingBean.selectionList} rendered=#{backingBean.selectionList != null}/ /h:selectOneMenu My problem is that I want to associate an object (Hotel, which has many metadata) with this selectionList. The drop down list will show the name (String) of the Hotel, but when selecting an item from the list I want to get a reference to the appropriate object (Hotel). In my backingBean I have selectionList = new ArrayList(); Which is populated through a for loop like this: selectionList.add(new SelectItem(Hotel)); I get an error indicating that I have to use a converter, as the SelectItem isn't a String. Is there an alternative to using a converter? Isn't there a similar mechanism to this used by the datatable, which is bind to a set of objects?
Re: SelectOneMenu - selectItems: list population problem
Elenh Tsigka a écrit : Hi, In my jsf page, I use a h:selectOneMenu which contains a f:selectItems. The attribute value of the selectItems element is a list which is populated from a backing bean. The jsf snippet is like this: h:selectOneMenu id=selectList value=#{backingBean.selectedHotel} f:selectItems value=#{backingBean.selectionList} rendered=#{backingBean.selectionList != null}/ /h:selectOneMenu My problem is that I want to associate an object (Hotel, which has many metadata) with this selectionList. The drop down list will show the name (String) of the Hotel, but when selecting an item from the list I want to get a reference to the appropriate object (Hotel). In my backingBean I have selectionList = new ArrayList(); Which is populated through a for loop like this: selectionList.add(new SelectItem(Hotel)); I get an error indicating that I have to use a converter, as the SelectItem isn't a String. Is there an alternative to using a converter? Isn't there a similar mechanism to this used by the datatable, which is bind to a set of objects? Hello, I had this problem, you must use a Map, Collection or SelectItems with the place an ArrayList Good luck.
Re: SelectOneMenu - selectItems: list population problem
ould sid'ahmed wrote: Elenh Tsigka a écrit : Hi, In my jsf page, I use a h:selectOneMenu which contains a f:selectItems. The attribute value of the selectItems element is a list which is populated from a backing bean. The jsf snippet is like this: h:selectOneMenu id=selectList value=#{backingBean.selectedHotel} f:selectItems value=#{backingBean.selectionList} rendered=#{backingBean.selectionList != null}/ /h:selectOneMenu My problem is that I want to associate an object (Hotel, which has many metadata) with this selectionList. The drop down list will show the name (String) of the Hotel, but when selecting an item from the list I want to get a reference to the appropriate object (Hotel). In my backingBean I have selectionList = new ArrayList(); Which is populated through a for loop like this: selectionList.add(new SelectItem(Hotel)); I get an error indicating that I have to use a converter, as the SelectItem isn't a String. Is there an alternative to using a converter? Isn't there a similar mechanism to this used by the datatable, which is bind to a set of objects? Hello, I had this problem, you must use a Map, Collection or SelectItems with the place an ArrayList Good luck. Hi, Thanx for the reply. But it doesn't make any difference. The thing is that I populate the list assigned to the value attribute of selectItems with a objects of non primitive type, I guess. Because if I use : selectionList.add(new SelectItem(hotelName1)); selectionList.add(new SelectItem(hotelName2)); selectionList.add(new SelectItem(hotelName3)); selectionList.add(new SelectItem(hotelName4)); passing the strings to be displayed directly to each selectItem (but having no reference to the actual object hotel and its metadata) there is no problem. Everything displays just fine an no converted is requested. But then I don't have the meta information needed for processing after the selection is made. Any ideas? Ciao, Elenh
navigation lines in tree table
I dont want to display the navigation lines and the folder images infront of nodesin the tree table that i have.. in the regular tree, tree2 tag provides me with an option of setting the 'showLines' attribute to false.. i cannot see such an attribute in tree tag.. i did try using the iconLine =false and iconNoLine=true.. but that doesnt give me the required results. How do i hide those lines and the folder icons? Thanks and Regards, Nimisha.
Re: navigation lines in tree table
Could anyone provide me with some good documentation on the taglib attribute values? The one that i refer to is on http://myfaces.apache.org/tomahawk/tlddoc/index.htmland for the treetag it just says no description for almost all the attributes.. from where can i get a set of values that these take? Thanks and Regards, Nimisha. On 7/11/06, nimisha sharma [EMAIL PROTECTED] wrote: I dont want to display the navigation lines and the folder images infront of nodesin the tree table that i have.. in the regular tree, tree2 tag provides me with an option of setting the 'showLines' attribute to false.. i cannot see such an attribute in tree tag.. i did try using the iconLine =false and iconNoLine=true.. but that doesnt give me the required results. How do i hide those lines and the folder icons? Thanks and Regards, Nimisha.
Re: Please solve the Null Pointer Exception of faces Confog.xml
okI see you are using websphere,have you tried it with tomcat, I remember once I had a problem when testing the same application with websphere.CagatayOn 7/11/06, chandra sekhar saripaka [EMAIL PROTECTED] wrote: Hi Catagay,I have one myface-extensions.jar in my work space but I 'm not using it.Regards,Chandru.On 7/11/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi, Do you have a custom component or just using the myfaces components. Cagatay On 7/11/06, chandra sekhar saripaka [EMAIL PROTECTED] wrote: Dear Experts, Can you Please kindly solve the Exceptions. Error is: SRVE0068E: Could not invoke the service() method on servlet Faces Servlet. Exception thrown : java.lang.NullPointerException at javax.faces.component.UIComponentBase.processRestoreState( UIComponentBase.java:1032) at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java :165) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView (JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129) at org.apache.myfaces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:82) at javax.faces.webapp.FacesServlet.service (FacesServlet.java:197) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java :1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest (CacheServletWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete (WorkQueueManager.java :548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun (WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run (WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run (ThreadPool.java:1332) [7/11/06 17:01:14:375 IST] 002a LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called. [7/11/06 17:01:14:406 IST] 002a WebAppE SRVE0026E: [Servlet Error]-[Faces Servlet]: java.lang.NullPointerException at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java :1032) at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java :165) at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView (JspViewHandlerImpl.java:301) at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129) at org.apache.myfaces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:82) at javax.faces.webapp.FacesServlet.service (FacesServlet.java:197) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java :1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest (CacheServletWrapper.java:80) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready (WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete (WorkQueueManager.java :548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun (WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run (WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run (ThreadPool.java:1332) Thanks In Advance. Regards, Chandru
treeTable in edit mode
Hello, I'd like to use the treeTable in edit mode so that the users can update some columns of the treeTable. But it doesn't work, and the cause is that the inputs children of the treeTable have the same ID. How can I make it possible ? Thanks in advance. ___ _ _ _ bgOnline
Re: JSF Performance Problems
I think this is already documented on the wiki, isnt' it ß On 7/11/06, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, sure thing; Just tell JSF in web.xml the context parameter: context-param param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name param-value20/param-value descriptionOnly applicable if state saving method is server (= default). Defines the amount (default = 20) of the latest views are stored in session. /description /context-param cheers, Gerald On 7/11/06, Jesse Alexander (KSFD 121) [EMAIL PROTECTED] wrote: Is there a parameter telling MyFaces-StateManager how many views to store/cache? That parameter can have an influence on the amount of memory used in the HttpSesssion and therefor has an impact on server-performance. regards Alexander -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006 10:27 AM To: MyFaces Discussion Subject: Re: JSF Performance Problems Could you please rerun the metrics with the performance tuning suggestion found at: http://wiki.apache.org/myfaces/Performance Thx. Mike -- Gerald Müllan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 [EMAIL PROTECTED] -- Matthias Wessendorf futher stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: How can I display radio buttons in 2 columns?
Hey Paul, Would you mind updating the wiki page (Dynamic Example) at http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns ? I would, but I don't have access to it. When going by the current wiki page, the radio buttons will display, but nothing gets set when the form is posted. To fix this, the t:selectOneRadio tag should not be inside the t:dataTable tag, but just underneath the h:form tag. Also, the "for" attribute of the t:radio tags should use an absolute id. Below is a modified example. There's also an added value attribute in the t:selectOneRadio tag, so "public String selectedButton" (plus setters/getters) will also need to be added to RadioButtons.java. h:form id="theForm" t:selectOneRadio id="buttons" value="buttonList.selectedButton" layout="spread" forceId="true" forceIdIndex="false" f:selectItems value="#{buttonList.selectList}" / /t:selectOneRadio t:dataTable newspaperColumns="3" var="row" value="#{buttonList.dataModel}" rowIndexVar="index" h:column t:radio for="" index="#{index}" / /h:column /t:dataTable /h:form View this message in context: Re: How can I display radio buttons in 2 columns? Sent from the MyFaces - Users forum at Nabble.com.
Tomahawk Calendar question
Hi, I am working on a holiday booking application for our Intranet, and I am trying to do something, but I am not sure if it is possible or not. Basically, the user enters two dates using the Tomahawk calendar (popup version), the start of their holiday, and the end of their holiday, and there is a field which shows how many business days (excluding bank holidays and weekends) between that date range, so the user knows how many days they are actually booking off. The problem is that I want that field to update dynamically (without using Javascript), so when the user has selected the two dates, the number of business days will appear in the box immediately. Therefore I guess I need the calendar component to trigger an action / POST of the form information when a date is selected. The question is, can I get it to do that? I have searched through the mailing list, documentation, and Google, and I can't find anything like it... I guess if it can't be done, I guess I can resort to some kind of calculate days button, but I would rather not do! :) I am using the 1.2 reference implementation of JSF with Facelets and the latest Tomahawk. Thanks in advance for any help! Kieron Wilkinson Pareto Investment Management Limited is a Mellon Financial Company. Pareto Investment Management Limited is authorised and regulated by the Financial Services Authority (Firm Ref. No. 416024), and registered in England and Wales with Number 03169281. Registered Office: Mellon Financial Centre, 160 Queen Victoria Street, London EC4V 4LA, United Kingdom. Pareto is the registered trademark of Pareto Investment Management Limited. This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message.
MyFaces Source code (was Source Code for MyFaces 1.1.3)
Hi,probably this e-mail should have been directed to dev@myfaces.apache.org or bugzilla, but as the results from my google search was http://www.mail-archive.com/users@myfaces.apache.org/msg21689.html and jira is not that user friendly, I'm posting this here.The question of the original poster stays:"So, my question is where can I find the corresponding source code to MyFaces Core 1.1.3?"It seems that 3 months after this question was posted the only possible reply is still - from svn.Now some could argue that this is just fine, but having pkged source is at least helpfull in some situation - it is easier to obtain, it helps the distribution packagers, it serves as reference, it really shows that the pkg could be built from that source, and of course not to forget that this is OSS project (what about apache doing only bin-release and saying you could get the source from svn).I hope that the developers will re-consider this issue. Thank you in advance, for your time.Gergan Penkov
Re: MyFaces Source code (was Source Code for MyFaces 1.1.3)
and jira is not that user friendly, I'm posting this here. jira is not what ? The question of the original poster stays: So, my question is where can I find the corresponding source code to MyFaces Core 1.1.3? It seems that 3 months after this question was posted the only possible reply is still - from svn. nope, we have them also on continuum. MyFaces 1.1.4 is about to be release (with source). See the dev list on that Now some could argue that this is just fine, but having pkged source is at least helpfull in some situation - it is easier to obtain, it helps the distribution packagers, it serves as reference, it really shows that the pkg could be built from that source, and of course not to forget that this is OSS project (what about apache doing only bin-release and saying you could get the source from svn). source release is common too! was only b/c of our maven2 switch. sorry -Matt I hope that the developers will re-consider this issue. Thank you in advance, for your time. Gergan Penkov -- Matthias Wessendorf futher stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: How can I display radio buttons in 2 columns?
Rich, The example is based on stuff I am currently using with Tomahawk 1.1.3. What is the error you are getting and what is your version of Tomahawk? Paul Spencer Rich Argo wrote: Hey Paul, Would you mind updating the wiki page (Dynamic Example) at http://wiki.apache.org/myfaces/Display_Radio_Buttons_In_Columns ? I would, but I don't have access to it. When going by the current wiki page, the radio buttons will display, but nothing gets set when the form is posted. To fix this, the t:selectOneRadio tag should not be inside the t:dataTable tag, but just underneath the h:form tag. Also, the for attribute of the t:radio tags should use an absolute id. Below is a modified example. There's also an added value attribute in the t:selectOneRadio tag, so public String selectedButton (plus setters/getters) will also need to be added to RadioButtons.java. lt;h:form id=theFormgt; lt;t:selectOneRadio id=buttons value=buttonList.selectedButton layout=spread forceId=true forceIdIndex=falsegt; lt;f:selectItems value=#{buttonList.selectList} /gt; lt;/t:selectOneRadiogt; lt;t:dataTable newspaperColumns=3 var=row value=#{buttonList.dataModel} rowIndexVar=indexgt; lt;h:columngt; lt;t:radio for=:theForm:buttons index=#{index} /gt; lt;/h:columngt; lt;/t:dataTablegt; lt;/h:formgt;
Re: MyFaces Source code (was Source Code for MyFaces 1.1.3)
On Tue, 11 Jul 2006 09:34:03 -0700"Matthias Wessendorf" [EMAIL PROTECTED] wrote: and jira is not that user friendly, I'm posting this here. jira is not what ?well I somehow prefer bugzilla :) The question of the original poster stays: "So, my question is where can I find the corresponding source code to MyFaces Core 1.1.3?" It seems that 3 months after this question was posted the only possible reply is still - from svn. nope, we have them also on continuum. MyFaces 1.1.4 is about to be release (with source). See the dev list on that Now some could argue that this is just fine, but having pkged source is at least helpfull in some situation - it is easier to obtain, it helps the distribution packagers, it serves as reference, it really shows that the pkg could be built from that source, and of course not to forget that this is OSS project (what about apache doing only bin-release and saying you could get the source from svn). source release is common too! was only b/c of our maven2 switch. sorry -MattThanks for the explanation and the fast reply, it is my fault, that I haven't searched hard enough :) the google has shown me the thread, which I pointed out in my original post and jira has bugs only about the examples not being available from the web-site.Gergan Penkov
Fisheye invalid tag
Hi all I have just added the fisheye navigation, but when I add actionslisteners to navigationsitems (like in the example) I get the following error: error: Attribute actionListener invalid for tag navigationMenuItem according to TLD code: t:navigationMenuItem icon=resources/images/icon_users.png itemLabel=Dine kontakter actionListener=#{MpSubscriberProxy.processAction} / Im using tomahawk, tomahawk-sandbox 1.1.3 myEclipse IDE thanks in advance, ldr -- View this message in context: http://www.nabble.com/Fisheye-invalid-tag-tf1925833.html#a5273617 Sent from the MyFaces - Users forum at Nabble.com.
Re: Tomahawk Calendar question
Well you'll have to use JavaScript to actually catch the onchange event. You should be able to just do: t:inputDate ... onchange=submit(); t:valueChangeListener value=#{backingBean.onDateChanged} / /t:inputDate And then in you onDateChanged() method, calculate the days and set that components value. Kieron Wilkinson wrote: Hi, I am working on a holiday booking application for our Intranet, and I am trying to do something, but I am not sure if it is possible or not. Basically, the user enters two dates using the Tomahawk calendar (popup version), the start of their holiday, and the end of their holiday, and there is a field which shows how many business days (excluding bank holidays and weekends) between that date range, so the user knows how many days they are actually booking off. The problem is that I want that field to update dynamically (without using Javascript), so when the user has selected the two dates, the number of business days will appear in the box immediately. Therefore I guess I need the calendar component to trigger an action / POST of the form information when a date is selected. The question is, can I get it to do that? I have searched through the mailing list, documentation, and Google, and I can't find anything like it... I guess if it can't be done, I guess I can resort to some kind of calculate days button, but I would rather not do! :) I am using the 1.2 reference implementation of JSF with Facelets and the latest Tomahawk. Thanks in advance for any help! Kieron Wilkinson Pareto Investment Management Limited is a Mellon Financial Company. Pareto Investment Management Limited is authorised and regulated by the Financial Services Authority (Firm Ref. No. 416024), and registered in England and Wales with Number 03169281. Registered Office: Mellon Financial Centre, 160 Queen Victoria Street, London EC4V 4LA, United Kingdom. Pareto is the registered trademark of Pareto Investment Management Limited. This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message.
Re: Fisheye invalid tag
strange http://www.irian.at/myfaces-sandbox/fisheye.jsp.source it is using t:navigationMenuItem icon=images/icon_browser.png itemLabel=Web Browser actionListener=#{fisheye.webBrowserClicked} / have you tried the *nightly* ? -Matthias On 7/11/06, ldr [EMAIL PROTECTED] wrote: Hi all I have just added the fisheye navigation, but when I add actionslisteners to navigationsitems (like in the example) I get the following error: error: Attribute actionListener invalid for tag navigationMenuItem according to TLD code: t:navigationMenuItem icon=resources/images/icon_users.png itemLabel=Dine kontakter actionListener=#{MpSubscriberProxy.processAction} / Im using tomahawk, tomahawk-sandbox 1.1.3 myEclipse IDE thanks in advance, ldr -- View this message in context: http://www.nabble.com/Fisheye-invalid-tag-tf1925833.html#a5273617 Sent from the MyFaces - Users forum at Nabble.com. -- Matthias Wessendorf futher stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: How can I display radio buttons in 2 columns?
I'm using MyFaces Tomahawk 1.1.1. There really isn't an error per se... the radio buttons display just fine. It's just when you submit the form, no value is set and if there's a form error, the radio button that was selected isn't checked. By making the suggested modifications, it'll save other folks a lot of time in figuring this out. The wiki isn't quite complete as is I guess. I don't want to sound ungrateful -- as is, it did help me get to a point. Viewing this thread led me to the suggested mods: http://mail-archives.apache.org/mod_mbox/myfaces-users/200603.mbox/[EMAIL PROTECTED] I hope this makes sense. -- View this message in context: http://www.nabble.com/How-can-I-display-radio-buttons-in-2-columns--tf1781389.html#a5273942 Sent from the MyFaces - Users forum at Nabble.com.
Re: How can I display radio buttons in 2 columns?
Rich, I will update the wiki later today. Thanks for the feedback, this will only make the documentation better and encourage other to get involved. Paul Spencer Rich Argo wrote: I'm using MyFaces Tomahawk 1.1.1. There really isn't an error per se... the radio buttons display just fine. It's just when you submit the form, no value is set and if there's a form error, the radio button that was selected isn't checked. By making the suggested modifications, it'll save other folks a lot of time in figuring this out. The wiki isn't quite complete as is I guess. I don't want to sound ungrateful -- as is, it did help me get to a point. Viewing this thread led me to the suggested mods: http://mail-archives.apache.org/mod_mbox/myfaces-users/200603.mbox/[EMAIL PROTECTED] I hope this makes sense.
How would I use ValueExpression to replace the deprecated ValueBinding?
-- View this message in context: http://www.nabble.com/How-would-I-use-ValueExpression-to-replace-the-deprecated-ValueBinding--tf1926137.html#a5274688 Sent from the MyFaces - Users forum at Nabble.com.
Re: How can I display radio buttons in 2 columns?
Rich, I have made changes to the wiki largely based on your suggestions. Thank you. Paul Spencer Rich Argo wrote: I'm using MyFaces Tomahawk 1.1.1. There really isn't an error per se... the radio buttons display just fine. It's just when you submit the form, no value is set and if there's a form error, the radio button that was selected isn't checked. By making the suggested modifications, it'll save other folks a lot of time in figuring this out. The wiki isn't quite complete as is I guess. I don't want to sound ungrateful -- as is, it did help me get to a point. Viewing this thread led me to the suggested mods: http://mail-archives.apache.org/mod_mbox/myfaces-users/200603.mbox/[EMAIL PROTECTED] I hope this makes sense.
Re: panelnavigation2 stylesheet not working in form?
Hi all Im still in a deadend on this problem and would like to know if there is anyone I can address with problem: style isn't rendered with panelnavigation2 when inside a form? thanks, chris -- View this message in context: http://www.nabble.com/panelnavigation2-stylesheet-not-working-in-form--tf1915469.html#a5276149 Sent from the MyFaces - Users forum at Nabble.com.
Re: Fisheye invalid tag
could it be that I have included the wrong tld or is the tld included in the tomahawk jar? chris -- View this message in context: http://www.nabble.com/Fisheye-invalid-tag-tf1925833.html#a5276225 Sent from the MyFaces - Users forum at Nabble.com.
Should ValueBindings inside rendered=false be evaluated?
If you have the following code: t:div rendered=false h:outputText value=#{backingBean.someGetterMethod} / /t:div Should getSomeGetterMethod() be invoked? My initial thought was if the parent's rendered attribute was false, the value binding expression *shouldn't* be evaluated. Using MyFaces 1.1.1 and Facelets 1.10, it is being evaluated. Ideally if rendered is false, than I don't want all the ValueBinding expressions underneath that tag to be evaluated. Any thoughts?
Re: Fisheye invalid tag
tld is inside the JARs . Please try the *nightly* of the sandbox. thx. matt On 7/11/06, ldr [EMAIL PROTECTED] wrote: could it be that I have included the wrong tld or is the tld included in the tomahawk jar? chris -- View this message in context: http://www.nabble.com/Fisheye-invalid-tag-tf1925833.html#a5276225 Sent from the MyFaces - Users forum at Nabble.com. -- Matthias Wessendorf futher stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: tree table with Sun AS 8
me too i think it was discussed here... search the archives. On 7/11/06, nimisha sharma [EMAIL PROTECTED] wrote: Hi Matthias, Could you give me an idea about how to remove the RI from Sun App server? I havent worked on sun App server before.. Regards, Nimisha. On 7/10/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: On tomcat your WEB-INF/lib/myfacesjar will be used. NOT! on Sun app server They ship the RI internally. There were already some post regarding removing the RI from Sun App server, but have in mind that this task can cause some other issues -Matthias On 7/10/06, nimisha sharma [EMAIL PROTECTED] wrote: Hi, I am trying to generate a tree as well as tree table using JSF. It is working fine in Tomcat but it throws the following exception when i try Sun App Server 8.2 I get the following exception for tree that i m making using the tree2 tag : [#|2006-07-10T17:20:14.839-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11 ;|[AutoDeploy] Successfully autodeployed : C:\Sun\AppServer\domains\domain1\autodeploy\MyTree.war.|#] [#|2006-07-10T17:21:20.171-0400|INFO|sun-appserver-pe8.2|org.apache.myfaces.config.MyfacesConfig|_ThreadID=12 ;|No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true|#] [#|2006-07-10T17:21:20.171-0400|INFO|sun-appserver-pe8.2|org.apache.myfaces.config.MyfacesConfig|_ThreadID=12 ;|No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true|#] [#|2006-07-10T17:21:20.171-0400|INFO|sun-appserver-pe8.2|org.apache.myfaces.config.MyfacesConfig|_ThreadID=12 ;|No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false|#] [#|2006-07-10T17:21:20.181-0400|INFO|sun-appserver-pe8.2|org.apache.myfaces.config.MyfacesConfig|_ThreadID=12 ;|No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false|#] [#|2006-07-10T17:21:20.281-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12 ;|ApplicationDispatcher[/MyTree] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.myfaces.custom.tree2.UITreeData.saveState(UITreeData.java :91) at org.apache.myfaces.custom.tree2.HtmlTree.saveState(HtmlTree.java:60) at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:957) at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:967) at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:967) at com.sun.faces.application.StateManagerImpl.getComponentStateToSave(StateManagerImpl.java:209) at com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:84) at org.apache.myfaces.taglib.core.ViewTag.doEndTag(ViewTag.java:122) at org.apache.jsp.LibraryTree_jsp._jspService(LibraryTree_jsp.java:118) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) at javax.servlet.http.HttpServlet.service (HttpServlet.java:860) 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.catalina.security.SecurityUtil$1.run (SecurityUtil.java:249) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:257) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run (ApplicationFilterChain.java:161) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java :482) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417) at
Re: add resource problems (help needed)
Hi Matthias, Sorry for the crossposting. Below are the questions/replies I still have in good order. Could you help clearing the fog with me? 1/ Can you try that *example* from the dojo page? -- If you mean this: http://wiki.apache.org/myfaces/WYSIWYG_Editor , this is what I had tried already - If you want me to tyry smth else, let me know, I'll be glad to help. If you measn from somewhere in the examples jar: I haven't found the sandbox examples and in the Toma ex's I found, only the defectuous t:inputHTML tag is shown. 2/ If I follow the advice you given here: http://wiki.apache.org/ myfaces/StreamingAddResource, should I *remove* the adjustments I got from http:// myfaces.apache.org/tomahawk/extensionsFilter.html and only add this extra context par from streaming resource? (i.e. are they mutual exclusive or should I leave both the declaration of the extentionfilter (from add res) the different page tags + ctx par (from streaming res) Pardon if this is a stupid qustion, but I just don't know what it does, even less what the diference between these 2 options would be and (by consequence) whether I should choose or apply them both... (??) 3/ After following the advice from http://wiki.apache.org/myfaces/ StreamingAddResource, my page navogation is broke.To the URL is just added a # (e.g. http://localhost:8080/page1 becomes http://localhost: 8080/page1# after clicking a button to navgate to a different page, instead of actually going there) Btw if you're developing the t:documentBody, it would be very welcome should it also accept the style attribute. Thanks again for help Matthias! Wolf
Two dataScrollers, One dataTable throwing ServletException
I'm using one dataTable and two data scrollers and I am getting the following error... javax.servlet.ServletException: facet 'first' already has a child associated. current associated component id: _idJsp45:data:_idJsp46 class: org.apache.myfaces.component.html.ext.HtmlGraphicImage Any thoughts? I have the dataTable wrapped in h:form tags (MyFaces 1.1.3)...the code is below. h:form t:dataTable id=data var=rows value=#{exploreBean.rows} columnClasses=imageCol1,imageCol2,imageCol3 rows=#{exploreBean.rowsPerPage} preserveDataModel=false headerClass=header styleClass=imageTable footerClass=footer binding=#{exploreBean.resultsTable} f:facet name=header t:dataScroller id=top for=data paginator=true pageCountVar=pageCount pageIndexVar=pageIndex paginatorMaxPages=10 immediate=true paginatorActiveColumnClass=scollerActive styleClass=scrollerTable fastStep=10 renderFacetsIfSinglePage=false f:facet name=first t:graphicImage url=#{bundle.imagePath}arrow-first.gif border=0 / /f:facet f:facet name=first t:graphicImage url=#{bundle.imagePath}arrow-first.gif border=0 / /f:facet f:facet name=last t:graphicImage url=#{bundle.imagePath}arrow-last.gif border=0 / /f:facet f:facet name=previous t:graphicImage url=#{bundle.imagePath}arrow-previous.gif border=0 / /f:facet f:facet name=next t:graphicImage url=#{bundle.imagePath}arrow-next.gif border=0 / /f:facet f:facet name=fastforward t:graphicImage url=#{bundle.imagePath}arrow-ff.gif border=0 / /f:facet f:facet name=fastrewind t:graphicImage url=#{bundle.imagePath}arrow-fr.gif border=0 / /f:facet /t:dataScroller /f:facet t:columns value=#{exploreBean.columns} var=cols binding=#{exploreBean.resultsColumnsTable} t:div style=text-align: center rendered=#{exploreBean.columnValue != null} t:commandLink action=#{exploreBean.viewComp} t:graphicImage
How does getSelectedEntry() from SimpleScheduleModel works?
I browsed the examples, but wasn't able to find anything, hoping someone can help me :) I have my schedule mapped to a SimpleScheduleModel in my managed bean, like this: s:schedule action=#{mybean.redirectAction} id=calendario value=#{mybean.model} rendered=true visibleStartHour=7 visibleEndHour=21 workingStartHour=9 workingEndHour=18 readonly=false theme=outlookxp tooltip=true / Whenever I click on an entry, the redirectAction method is called, however when I call: model.getSelectedEntry() I always get a null value. model.getSelectedDate() does return a date what is the correct way to check the entry that was clicked? -Ricardo
Re: Fisheye invalid tag
Worked it out, myeclipse by default included the tld for myfaces-all. thanks, chris -- View this message in context: http://www.nabble.com/Fisheye-invalid-tag-tf1925833.html#a5282003 Sent from the MyFaces - Users forum at Nabble.com.
Re: Should ValueBindings inside rendered=false be evaluated?
Try binding the div... I dont think it will work but its worth a shot. chris -- View this message in context: http://www.nabble.com/Should-ValueBindings-inside-rendered%3D%22false%22-be-evaluated--tf1926699.html#a5282038 Sent from the MyFaces - Users forum at Nabble.com.
Re: Fisheye invalid tag
that jar is history :) On 7/11/06, ldr [EMAIL PROTECTED] wrote: Worked it out, myeclipse by default included the tld for myfaces-all. thanks, chris -- View this message in context: http://www.nabble.com/Fisheye-invalid-tag-tf1925833.html#a5282003 Sent from the MyFaces - Users forum at Nabble.com. -- Matthias Wessendorf futher stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com