Commons: mc:exporterActionListener: Converters
Hi, I have a datatable with data types others than string, like Date and BigDecimal. When the datatable is exported to XLS, the data is written as raw data, like 2015-04-12 00:00:00.0 instead of 12/04/2015 (dd/mm/) and 250.00 instead of 250,00 (##0.00 - locate pt_BR). Am I missing something or this is a limitation of mc:exporterActionListener? Thanks, Rafael Santini
JSF 2: t:saveState
Hi, I'm starting a new project with JSF 2. Can I replace the t:saveState with some scope? I need keep an object through pages. Thanks, Rafael Santini
Re: ViewExpiredException: MyFaces PrimeFaces
Hi Ali, I have posted this question on PrimeFaces Forum. With Mojarra 1.2_15-b01, works perfectly! The problem is that I need to continue with MyFaces for a while. Thanks, Rafael Santini 2010/8/31 Ali Ok al...@aliok.com.tr Hi Rafael, Primefaces forum[1] might be a better place to discuss this, but at first sight at your code, you should put the autoCompleteBean in view scope (available with JSF2). [1]http://primefaces.prime.com.tr/forum/ Cheers, Ali On Tue, Aug 31, 2010 at 6:12 PM, SANTINI, Rafael raf...@santini.eti.br wrote: Hi, I'm trying to get PrimeFaces AutoComplete component to work with MyFaces. I have tried with MyFaces 1.2.9 PrimeFaces 1.1, MyFaces 2.0.1 PrimeFaces 2.1 and MyFaces 2.0.1 PrimeFaces 2.2.M1. In the all cases, the fowlloing exception is raised: 31/08/2010 11:51:32 org.apache.myfaces.renderkit.ErrorPageWriter handleThrowable SEVERE: An exception occurred javax.faces.application.ViewExpiredException: /autocomplete.xhtmlNo saved view state could be found for the view identifier: /autocomplete.xhtml at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) at java.lang.Thread.run(Thread.java:619) I have created a simple test case (.war): http://www.4shared.com/get/Jm6REAgI/autocomplete.html Any suggestion? Thanks, Rafael Santini -- My Blog: http://blog.aliok.com.tr Twitter: http://twitter.com/aliok_tr
Generic Type
When a property is implemented with generic type, a conversion exception is throw ed: Value is no String (class=java.lang.Integer, value=1) To reproduce the problem: public interface GenericEntityId { public Id getId(); } public class OptionEntity implements GenericEntityInteger, Serializable { private Integer id; private String option; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getOption() { return option; } public void setOption(String option) { this.option = option; } } public class TestBean implements Serializable { private OptionEntity option = new OptionEntity(); public OptionEntity getOption() { return option; } public void setOption(OptionEntity option) { this.option = option; } public MapString, Integer getOptions() { MapString, Integer result = new TreeMapString, Integer(); result.put(I, 1); result.put(II, 2); result.put(III, 3); return result; } } h:form h:selectOneMenu value=#{testBean.option.id} f:selectItems value=#{testBean.options}/ /h:selectOneMenu /h:form
Tomahawk 1.1.2 - JSCook Menu - dummyForm has no properties
Hi all! I have upgraded my application to Tomahawk 1.1.2. After this, when the menu item is clicked, I get the following javascript error: dummyForm has no properties. What has chagend since version 1.1.1 of MyFaces? Thanks, Rafael
Re: Tomahawk 1.1.2 - JSCook Menu - dummyForm has no properties
My menu is already inside a form. I have upgraded because in prior version the method bean isn't invoked when the menu is inside a form. - Original Message - From: Mike Kienenberger [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, May 22, 2006 6:07 PM Subject: Re: Tomahawk 1.1.2 - JSCook Menu - dummyForm has no properties See http://issues.apache.org/jira/browse/TOMAHAWK-416 Your best bet is to put your menu inside a form as dummyform is going away. On 5/22/06, Rafael Santini [EMAIL PROTECTED] wrote: Hi all! I have upgraded my application to Tomahawk 1.1.2. After this, when the menu item is clicked, I get the following javascript error: dummyForm has no properties. What has chagend since version 1.1.1 of MyFaces? Thanks, Rafael
JSCook Menu inside h:form
Hi all, I need that the t:navigationMenuItem invoke a method (action bean) inside the h:form like the h:commandButton does. For example, I would like to put save option of my form in the menu. Thanks, Rafael