session variable
Hi, I'm looking for a way to create session variable in my managed bean How can I do it ? thx
Re: My page with TreeTable component looks really bad
Which URL are the resource requests coming in on? You may have experience with tcpdump, tcpmon ? Dennis Byrne >-Original Message- >From: Naresh Bhatia [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 19, 2006 01:47 AM >To: 'MyFaces Discussion' >Subject: My page with TreeTable component looks really bad > >[I am having no luck posting to [EMAIL PROTECTED], so >I am posting this message here. Please help if someone from Trinidad >team is monitoring this.] > >I have created a TreeTable instance on a page. Currently the page looks >really bad, as if no styles have been applied. The Trinidad faq says >that - "You may have not have configured your Resources Servlet in your >web.xml." I think my resource servlet is set up properly: > > > resources > > org.apache.myfaces.trinidad.webapp.ResourceServlet > > > > > resources > /adf/* > > >Is there anything else that I should check? Note that the Trinidad demo >is working correctly for me but I can't figure out what I am doing >different in my app. > >Thanks. >Naresh >
My page with TreeTable component looks really bad
Title: My page with TreeTable component looks really bad [I am having no luck posting to [EMAIL PROTECTED], so I am posting this message here. Please help if someone from Trinidad team is monitoring this.] I have created a TreeTable instance on a page. Currently the page looks really bad, as if no styles have been applied. The Trinidad faq says that - "You may have not have configured your Resources Servlet in your web.xml." I think my resource servlet is set up properly: resources org.apache.myfaces.trinidad.webapp.ResourceServlet resources /adf/* Is there anything else that I should check? Note that the Trinidad demo is working correctly for me but I can't figure out what I am doing different in my app. Thanks. Naresh
Re: Best practices for choosing managed bean scope
I think Adam Winer was developing something to improve client side state saving. Not sure if this made it into the code base. If you are planning on a system with a large # of simultaneous requests, you may want to do some preliminary stress testing with client side state saving. Dennis Byrne >-Original Message- >From: Naresh Bhatia [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 19, 2006 12:38 AM >To: 'MyFaces Discussion' >Subject: RE: Best practices for choosing managed bean scope > >Thanks Dennis. I briefly looked at t:saveState and >t:updateActionListener - don't think I understand them right now. You >are right - the learning curve is pretty steep. Also doesn't Trinidad >have some facilities that are supposed to be more efficient for saving >state (org.apache.myfaces.trinidad.CLIENT_STATE_METHOD)? > >Naresh Bhatia >Expert, Platform | Sapient >desk: +1.617.761.1771 > >-Original Message- >From: Dennis Byrne [mailto:[EMAIL PROTECTED] >Sent: Tuesday, September 19, 2006 12:22 AM >To: MyFaces Discussion >Subject: Re: Best practices for choosing managed bean scope > >Naresh, > >I would stick to the same knowledge you've used for scoping decisions in >any web app. I have tended to favor request scope for the reasons you >have mentioned. You may want to check out t:saveState and >t:updateActionListener if you have not already. I think most >experienced JSF developers will agree this unfortunately makes >application development more expensive because of the learning curve and >work required to manage state over a stateless protocol. > >I place read only managed beans in app scope. > >Dennis Byrne > >>-Original Message- >>From: Naresh Bhatia [mailto:[EMAIL PROTECTED] >>Sent: Monday, September 18, 2006 09:39 PM >>To: 'MyFaces Discussion' >>Subject: Best practices for choosing managed bean scope >> >>What are the best practices for choosing managed bean scope? In the >>past, I have been avoiding session scope in favor of request scope for >>obvious reasons (memory requirements, no need for session failover >etc). >>But I see that many JSF examples put beans in session scope without >>explaining why this is needed. For example, the Trinidad TreeTable demo >>puts its managed beans in session. Is this really necessary? Are there >>any best practices in trying to decide the scope of managed beans? >> >>Thanks. >>Naresh >> > >
Re: [myFaces Tobago] - tc:datePicker just produces a null ptr exception
Hello John, looks like your web app contains a wrong jar or in a wrong version. Can you list the content of WEB-INF/lib and can you check that the tobago-theme-scarborough.jar contains a class DatePickerRenderer. Regards Bernd John wrote: I've tried statistics.startDate as a java.util.Date and I've tried it as a String. Nothing works. Same null ptr exception. value="#{statistics.realStartDate}"/> I can't use my old reliable javaScript date picker jsCalendar because it breaks in JSF with IE 6 Help! John SEVERE: name = 'DatePickerRenderer' clientProperties = 'html/emp/msie_6_0' java.lang.NullPointerException at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(Resour ceManagerImpl.java:392) at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRe nderKit.java:60) at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:7 44) at javax.faces.component.UIComponentBase.getRendersChildren(UIComponentBase .java:307) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313) at org.apache.myfaces.tobago.taglib.component.TobagoTag.doStartTag(TobagoTa g.java:57) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_datePicker_0(org.apa che.jsp.tag.web.tabs.charts_tag:613) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_panel_1(org.apache.j sp.tag.web.tabs.charts_tag:497) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_box_0(org.apache.jsp .tag.web.tabs.charts_tag:336) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_panel_0(org.apache.j sp.tag.web.tabs.charts_tag:248) at org.apache.jsp.tag.web.tabs.charts_tag.doTag(org.apache.jsp.tag.web.tabs .charts_tag:139) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_tabs_charts_0(org.a pache.jsp.tag.web.layout.content_tag:503) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_panel_3(org.apach e.jsp.tag.web.layout.content_tag:477) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_tab_2(org.apache. jsp.tag.web.layout.content_tag:440) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_tabGroup_0(org.ap ache.jsp.tag.web.layout.content_tag:214) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_panel_0(org.apach e.jsp.tag.web.layout.content_tag:121) at org.apache.jsp.tag.web.layout.content_tag.doTag(org.apache.jsp.tag.web.l ayout.content_tag:78) at org.apache.jsp.main_jsp._jspx_meth_layout_content_0(org.apache.jsp.main_ jsp:332) at org.apache.jsp.main_jsp._jspx_meth_t_panel_1(org.apache.jsp.main_jsp:305 ) at org.apache.jsp.main_jsp._jspx_meth_t_page_0(org.apache.jsp.main_jsp:168) at org.apache.jsp.main_jsp._jspx_meth_f_view_0(org.apache.jsp.main_jsp:121) at org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:86) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:416) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView HandlerImpl.java:234) at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan dlerImpl.java:117) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367 ) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter( TobagoMultipartFormdataFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126)
RE: Best practices for choosing managed bean scope
Thanks Dennis. I briefly looked at t:saveState and t:updateActionListener - don't think I understand them right now. You are right - the learning curve is pretty steep. Also doesn't Trinidad have some facilities that are supposed to be more efficient for saving state (org.apache.myfaces.trinidad.CLIENT_STATE_METHOD)? Naresh Bhatia Expert, Platform | Sapient desk: +1.617.761.1771 -Original Message- From: Dennis Byrne [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 12:22 AM To: MyFaces Discussion Subject: Re: Best practices for choosing managed bean scope Naresh, I would stick to the same knowledge you've used for scoping decisions in any web app. I have tended to favor request scope for the reasons you have mentioned. You may want to check out t:saveState and t:updateActionListener if you have not already. I think most experienced JSF developers will agree this unfortunately makes application development more expensive because of the learning curve and work required to manage state over a stateless protocol. I place read only managed beans in app scope. Dennis Byrne >-Original Message- >From: Naresh Bhatia [mailto:[EMAIL PROTECTED] >Sent: Monday, September 18, 2006 09:39 PM >To: 'MyFaces Discussion' >Subject: Best practices for choosing managed bean scope > >What are the best practices for choosing managed bean scope? In the >past, I have been avoiding session scope in favor of request scope for >obvious reasons (memory requirements, no need for session failover etc). >But I see that many JSF examples put beans in session scope without >explaining why this is needed. For example, the Trinidad TreeTable demo >puts its managed beans in session. Is this really necessary? Are there >any best practices in trying to decide the scope of managed beans? > >Thanks. >Naresh >
Re: Best practices for choosing managed bean scope
Naresh, I would stick to the same knowledge you've used for scoping decisions in any web app. I have tended to favor request scope for the reasons you have mentioned. You may want to check out t:saveState and t:updateActionListener if you have not already. I think most experienced JSF developers will agree this unfortunately makes application development more expensive because of the learning curve and work required to manage state over a stateless protocol. I place read only managed beans in app scope. Dennis Byrne >-Original Message- >From: Naresh Bhatia [mailto:[EMAIL PROTECTED] >Sent: Monday, September 18, 2006 09:39 PM >To: 'MyFaces Discussion' >Subject: Best practices for choosing managed bean scope > >What are the best practices for choosing managed bean scope? In the >past, I have been avoiding session scope in favor of request scope for >obvious reasons (memory requirements, no need for session failover etc). >But I see that many JSF examples put beans in session scope without >explaining why this is needed. For example, the Trinidad TreeTable demo >puts its managed beans in session. Is this really necessary? Are there >any best practices in trying to decide the scope of managed beans? > >Thanks. >Naresh >
Re: datatable and htmlcommandlink?
It's a database, values always change and not only during an action. That's why i am using request scope bean for those values, which brings me troubles when it comes to needing a permanent state for datatable to work properly... Mike Kienenberger a écrit : > You only need to reset the bean values if the bean values change in > some way beyond the normal flow of the program. Ie, if you click on > a button, and suddenly a row is gone, then you need to reset your > cached/saveState'd backing list. > > If you have a specific example, I can offer you some specific advice. > > On 9/18/06, David Delbecq <[EMAIL PROTECTED]> wrote: >> Ok, In this case that can be applied because this action is the only one >> involved in that specific form. But what about more complex form, where >> there is such a table but lots of possible actions, if i need to always >> reset the bean value between the decode and the encode operations? >> Mike Kienenberger a écrit : >> > Yes to both of you. All you need to do is update your backing data >> > model in the action -- pretty convenient :-) >> > >> > Ie, if you have something like >> > >> > > > > > >> > then in #{sharkEngine.action.showActivity} you change the value of >> > sharkEngine.acceptedAssignments to be the updated list. >> > >> > >> > On 9/16/06, delbd <[EMAIL PROTECTED]> wrote: >> >> So then my problem is how to have the datatable contains old datas >> >> before action and new datas after action... >> > >> > On 9/16/06, Mr Arvind Pandey <[EMAIL PROTECTED]> wrote: >> >> u r right. u can use preserveDataModel="true" in >> >> datatable. if it is true then action method surely be >> >> invoked. But the problem is if u want to delete the >> >> row from table and afetr deletion you want to display >> >> the same page then row will be deleted from DB but >> >> page will contain that row. I am looking for the soln. >> > >> >> Mike Kienenberger a écrit : >> >> > h:dataTable value="#{sharkEngine.acceptedAssignments}" must remain >> >> > constant from renderResponse of the first request through >> >> > invokeAction of the second request. >> >> > >> >> > I handle this by using > >> > value="#{sharkEngine.acceptedAssignments}"> >> >> > >> >> > >> >> > >> >> > On 9/15/06, David Delbecq <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> >> >> >> >> I have a datatable that iterate over some database values. Those >> >> values >> >> >> are subject to change, especially in quantity. The datatable is >> >> rendered >> >> >> like this: >> >> >> > >> >> var="theAssignment"> >> >> >> >> >> >> > >> >> value="#{theAssignment.activity.name}" >> >> >> action="#{sharkEngine.action.showActivity}" >> >> >> actionListener="#{sharkEngine.action.commandListener}"> >> >> >> > >> >> value="#{theAssignment.activity.key}" /> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> This basically renders a list of links that need to contain one >> >> >> information: "activityToShow". Technically, >> >> >> #{sharkEngine.action.showActivity} will need nothing more to setup >> >> >> session and show the edition form. However, between display of >> >> table and >> >> >> click by user, the database list referenced by datatable is >> >> subject to >> >> >> change (because whatever happens, we must reflect db changes to >> >> user). >> >> >> >> >> >> Here is the problem: >> >> >> If 3 items are showned to user (let's say a,b,c), the user clicks >> >> on the >> >> >> last one (c) but by that time the entry a has been removed from >> >> >> database, the action does not take place?!? >> >> >> I suspect this is because the 3rd line of datatable has been >> >> removed, >> >> >> but how do i handle this. The user won't accept that nothing >> happens >> >> >> while he clicks on an entry, obviously. JSF is silent on why it >> >> did not >> >> >> execute the action and shows nothing too. >> >> >> >> >> >> What is the good way to create such list of links? >> >> >> >> >> >> >> >> >>
Problem using dataTable, selectOneMenu and selectBooleanCheckbox together
Hey guys, I running into an issue when using a dataTable (tomahawk or core) with selectOneMenu and selectBooleanCheckbox, for some reason its values are getting “defaulted” or “lost” i.e. on a selectOneMenu bound to a value object from a collection in the backing bean, where I have verified that the value is set correctly up until the point it started rendering the table, some render process sets the value to empty string, similar with the selectBooleanCheckbox except the value always gets set to false. I purposely set the values to “true” in the UI and placed an exception for the check box for anything that set it to false and here is the sample stack trace I get. This occurs on the rendering phase of the life cycle i.e. Response phase com.ies.common.error.IESRuntimeException: This should not be false at com.ies.scholar.vo.form.FormInstanceVO.setAccessable(FormInstanceVO.java:300) 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.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:406) at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:173) at com.sun.facelets.el.LegacyELContext$LegacyELResolver.setValue(LegacyELContext.java:201) at com.sun.el.parser.AstValue.setValue(AstValue.java:113) at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:246) at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93) at com.sun.facelets.el.LegacyValueBinding.setValue(LegacyValueBinding.java:68) at javax.faces.component.UIInput.updateModel(UIInput.java:269) at javax.faces.component.UIInput.processUpdates(UIInput.java:206) at javax.faces.component.UIData.process(UIData.java:733) at javax.faces.component.UIData.processColumnChildren(UIData.java:714) at javax.faces.component.UIData.processUpdates(UIData.java:622) at org.apache.myfaces.component.html.ext.HtmlDataTableHack.processUpdates(HtmlDataTableHack.java:133) at org.apache.myfaces.component.html.ext.HtmlDataTable.processUpdates(HtmlDataTable.java:379) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:645) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:645) at javax.faces.component.UIForm.processUpdates(UIForm.java:87) at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:645) at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:157) at org.apache.myfaces.lifecycle.LifecycleImpl.updateModelValues(LifecycleImpl.java:302) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:81) 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) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.ies.common.ui.common.filter.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce
Re: JSFAttr.SHOW_ROOT_NODE replacement
The tree2 no longer uses JSFAttr or HTML classes from what I saw, it just uses hard-coded strings to get attribute values On 9/18/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote: Hi! JSFAttr.SHOW_ROOT_NODE has replaced by something? -- Yours truly (Atenciosamente), Rogério (_rogerio_) http://faces.eti.br
Re: Questions about tree2 and Facelet
There is nothing special to do when using tree2 with facelets. On 9/18/06, davy.mailing <[EMAIL PROTECTED]> wrote: Dear all I am using tree2 and facelet now Who can tell me how to use tree2 in facelet and what's more a example will be better thanks in advance davy.mailing 2006-09-18
[myFaces Tobago] - tc:datePicker just produces a null ptr exception
I've tried statistics.startDate as a java.util.Date and I've tried it as a String. Nothing works. Same null ptr exception. c:date id="startDate" label="Start Date" value="#{statistics.realStartDate}"/>c:datePicker for="" /> I can't use my old reliable _javascript_ date picker jsCalendar because it breaks in JSF with IE 6 Help! John SEVERE: name = 'DatePickerRenderer' clientProperties = 'html/emp/msie_6_0'java.lang.NullPointerException at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:392) at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRenderKit.java:60) at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:744) at javax.faces.component.UIComponentBase.getRendersChildren(UIComponentBase.java:307) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313) at org.apache.myfaces.tobago.taglib.component.TobagoTag.doStartTag(TobagoTag.java:57) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_datePicker_0(org.apache.jsp.tag.web.tabs.charts_tag:613) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_panel_1(org.apache.jsp.tag.web.tabs.charts_tag:497) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_box_0(org.apache.jsp.tag.web.tabs.charts_tag:336) at org.apache.jsp.tag.web.tabs.charts_tag._jspx_meth_t_panel_0(org.apache.jsp.tag.web.tabs.charts_tag:248) at org.apache.jsp.tag.web.tabs.charts_tag.doTag(org.apache.jsp.tag.web.tabs.charts_tag:139) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_tabs_charts_0(org.apache.jsp.tag.web.layout.content_tag:503) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_panel_3(org.apache.jsp.tag.web.layout.content_tag:477) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_tab_2(org.apache.jsp.tag.web.layout.content_tag:440) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_tabGroup_0(org.apache.jsp.tag.web.layout.content_tag:214) at org.apache.jsp.tag.web.layout.content_tag._jspx_meth_t_panel_0(org.apache.jsp.tag.web.layout.content_tag:121) at org.apache.jsp.tag.web.layout.content_tag.doTag(org.apache.jsp.tag.web.layout.content_tag:78) at org.apache.jsp.main_jsp._jspx_meth_layout_content_0(org.apache.jsp.main_jsp:332) at org.apache.jsp.main_jsp._jspx_meth_t_panel_1(org.apache.jsp.main_jsp:305) at org.apache.jsp.main_jsp._jspx_meth_t_page_0(org.apache.jsp.main_jsp:168) at org.apache.jsp.main_jsp._jspx_meth_f_view_0(org.apache.jsp.main_jsp:121) at org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:86) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:117) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(TobagoMultipartFormdataFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapt
Best practices for choosing managed bean scope
Title: Best practices for choosing managed bean scope What are the best practices for choosing managed bean scope? In the past, I have been avoiding session scope in favor of request scope for obvious reasons (memory requirements, no need for session failover etc). But I see that many JSF examples put beans in session scope without explaining why this is needed. For example, the Trinidad TreeTable demo puts its managed beans in session. Is this really necessary? Are there any best practices in trying to decide the scope of managed beans? Thanks. Naresh
Is it possible to submit/click commandButton programmatically? (Like javascript)
Title: Is it possible to submit/click commandButton programmatically? (Like javascript) Hi! I just wondered if it is possible in any way to "execute" an action method by "clicking" a button from the javaside. :) Or is _javascript_ "getElementById .. .click();" the only way? Conceptually thinking, you set up a binding for the button to your bb. And then in your bean you do something like: /7The property private HtmlCommandButton myButton; Somewhere in a method - myButton.submit(); or myButton.click(); - end - I doubt if this is possible, have never seen an example, but I basically just wanted to ask if somebody knew this was possible at all. :) Regards, Eivind Ronnevik
RE: Question About saveState
You are probably better managing the backing bean in the session in that case. -Original Message- From: mjovanov [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 5:27 PM To: users@myfaces.apache.org Subject: Question About saveState Hi everyone, On page X I have a saveState tag to preserve the state of a backing bean between requests. There is also a link on the side navigation bar that is used to navigate to page X. Whenever a user clicks this link, I do not want to de-serialize the backing bean but rather I want a new instance of the backing bean to be created (just like it is the case on the original load) Is there any way to do this (for example to somehow overrides the behavior of the saveState tag in such case). Perhaps someone can explain the internals of the saveState implementation; that would be really helpful. Thanks in advance. -- View this message in context: http://www.nabble.com/Question-About-saveState-tf2294657.html#a6374835 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Question About saveState
Hi everyone, On page X I have a saveState tag to preserve the state of a backing bean between requests. There is also a link on the side navigation bar that is used to navigate to page X. Whenever a user clicks this link, I do not want to de-serialize the backing bean but rather I want a new instance of the backing bean to be created (just like it is the case on the original load) Is there any way to do this (for example to somehow overrides the behavior of the saveState tag in such case). Perhaps someone can explain the internals of the saveState implementation; that would be really helpful. Thanks in advance. -- View this message in context: http://www.nabble.com/Question-About-saveState-tf2294657.html#a6374835 Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: [myFaces-Tobago] - how to execute JavaScript file ONLY after DOM is fully rendered.
Volker, Thank you so much. So if I wanted to include the script from a file (it's pretty big); currently the problematic version is done with mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 2:01 PM To: MyFaces Discussion Subject: Re: [myFaces-Tobago] - how to execute JavaScript file ONLY after DOM is fully rendered. Hi John, you can do a loop with setTimeout() waiting for Tobago.pageIsComplete becomes true. And you can use to insert your script into page. like this: function doAferLoading() { if (!Tobago.pageIsComplete) { setTimeout("doAfterLoading()", 50); } else { // your script code } } doAfterLoading(); the value of Tobago.pageIsComplete is set to true by the tobago init script after the initializing of the page is completed. regards, Volker 2006/9/18, John <[EMAIL PROTECTED]>: > > > This has caused a never ending headache for us (particularly with IE), > when JavaScript starts to manipulate the DOM and objects aren't complete yet. > Can't use obviously. > > > What is the best practice? > > Example? > > Thanks, > John
Remove me from the list!!!!
I did try with email remove, but it doesn't work! Thanks.
Re: [myFaces-Tobago] - how to execute JavaScript file ONLY after DOM is fully rendered.
Hi John, you can do a loop with setTimeout() waiting for Tobago.pageIsComplete becomes true. And you can use to insert your script into page. like this: function doAferLoading() { if (!Tobago.pageIsComplete) { setTimeout("doAfterLoading()", 50); } else { // your script code } } doAfterLoading(); the value of Tobago.pageIsComplete is set to true by the tobago init script after the initializing of the page is completed. regards, Volker 2006/9/18, John <[EMAIL PROTECTED]>: This has caused a never ending headache for us (particularly with IE), when JavaScript starts to manipulate the DOM and objects aren't complete yet. Can't use obviously. What is the best practice? Example? Thanks, John
RE: Portlet wasn't show after portal link clicked
Really make sure you enable logging with myfaces – it has to habit of swallowing fatal exceptions that you can only see if you have a properly configured log4j.properties file. Here is mine (put in WEB-INF/classes): log4j.rootLogger=WARN, stdout log4j.logger.org.apache.myfaces = INFO log4j.logger.javax.faces = INFO check also portal logs, there’s definitely an exception somewhere that you just don’t see From: Stefan Gesigora [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 4:39 PM To: MyFaces Discussion Subject: Re: Portlet wasn't show after portal link clicked Could it be a nullpointer or is it a problem with the page refresh? If I minimize and the maximize the porlet it works. But it doesn't work if I ony click the page link! Help!!! 2006/9/18, Stefan Gesigora <[EMAIL PROTECTED]>: Hi! I'm using BEA Weblogic Portal Server 8.1 SP 5 and MyFaces 1.3 to build a portlet. It works in the way it should do. But when I clicked at the portal link that should call the page with my portlet again my portlet was not there! Looked at the myfaces logs but everything seemed to be okay. What could be the problem? regards, Steven
Re: Portlet wasn't show after portal link clicked
Could it be a nullpointer or is it a problem with the page refresh?If I minimize and the maximize the porlet it works.But it doesn't work if I ony click the page link!Help!!! 2006/9/18, Stefan Gesigora <[EMAIL PROTECTED]>: Hi!I'm using BEA Weblogic Portal Server 8.1 SP 5 and MyFaces 1.3 to build a portlet.It works in the way it should do. But when I clicked at the portal link that should call the page with my portlet again my portlet was not there! Looked at the myfaces logs but everything seemed to be okay. What could be the problem?regards,Steven
[myFaces-Tobago] - how to execute JavaScript file ONLY after DOM is fully rendered.
This has caused a never ending headache for us (particularly with IE), when _javascript_ starts to manipulate the DOM and objects aren't complete yet. Can't use obviously. What is the best practice? Example? Thanks, John
incorrect behavior after responseComplete?
Martin, The following behavior appears to be incorrect in myfaces implementation of JSF. After FacesContext.responseComplete is issued in the afterPhase method of the PhaseListener at the RESTORE_VIEW phase, myfaces implementation skips to RENDER_RESPONSE phase. This appears to be incorrect, as following a call to FacesContext.responseComplete JSF implementation should exit JSF lifecycle completely, i.e. the next phase of the lifecycle should be again RESTORE_VIEW. This problem can be observed when running Sun's Progress Bar with JSF and AJAX Sample with myfaces libraries on Tomcat. Thanks for the help, Leon We are currently working hard on fixing whatever compatibility problems are remaining between Trinidad, MyFaces and the RI. I hope we'll have that sorted out with the next release of core (so 1.1.5) regards, Martin -- View this message in context: http://www.nabble.com/Sun%27s-Progress-Bar-with-JSF-and-AJAX-Sample-tf2256196.html#a6370743 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Examples related to visibleOnUserRole and enabledOnUserRole
Hi, I need to show components in a page depending on the roles allocated to them. I am trying to find examples related to visibleOnUserRole and enabledOnUserRole. Can anyone direct me with an example related to these attributes. Thanks a lot in advance, Keerthi ** This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are solely for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please notify the sender immediately and delete this message from your system. *
RE: I got an exception after upgrading MyFases/Tmahawk.
Thank You Mike! It is working now. Alex. -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 11:32 AM To: MyFaces Discussion Subject: Re: I got an exception after upgrading MyFases/Tmahawk. After MyFaces 1.0.9?, the new url namespace became http://myfaces.apache.org/tomahawk On 9/18/06, Iakouchev Alexander-EAL027C <[EMAIL PROTECTED]> wrote: > > > I got an exception after upgrading MyFases/Tmahawk. > > > Then I am trying launch web application in Tomcat, I got an error ... > > javax.servlet.ServletException: The absolute uri: > http://myfaces.apache.org/extensions cannot be resolved in either > web.xml or the jar files deployed with this application > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) > > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsF > ilter.java:144) > > org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java: > 188) > > > root cause javax.faces.FacesException: The absolute uri: > http://myfaces.apache.org/extensions cannot be resolved in either > web.xml or the jar files deployed with this application > > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch > (ServletExternalContextImpl.java:435) > > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspVi > ewHandlerImpl.java:234) > > org.jenia.faces.template.handler.ViewHandler.renderView(ViewHandler.ja > va:74) > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:3 > 84) > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) > > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsF > ilter.java:144) > > org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java: > 188) > > >
Re: strange html being printed
I checked the ExtensionsPhaseListener and there's a line breakpoint there, how can i remove this?2006/9/18, Rogerio Pereira <[EMAIL PROTECTED] >:Hi guys!I can't understand why i'm getting this html output: script>