LOL Thanks Manfred. Although not referenced anywhere in the project yes I see he was tucked away in a lib directory. Forgot to delete it after experimenting with the RI. Silly fool!
Everything works nicely now. Back button and everything. Thanks again. > -----Original Message----- > From: Manfred Geiler [mailto:[EMAIL PROTECTED] > Sent: Friday, November 19, 2004 11:48 AM > To: MyFaces Discussion > Subject: Re: Problems with inputCalendar > > com.sun.faces.application.StateManagerImpl > ^^^^^^^^^^^^^^^ > > Good old "Sun RI in classpath" issue... ;-) Removing Sun RI > classes should solve your problem. > > Manfred > > > Arinaya wrote: > > Hi Martin, I also have been using inputCalendar with absolutely no > > issues, until now. My code is in effect the same as the examples > > (which do work in my env), here is a sample: > > > > <x:inputCalendar id="cal1" > value="#{SatReportsBean.collectStartDate}" > > currentDayCellClass="currentDayCell" > > monthYearRowClass="yearMonthHeader" > > weekRowClass="weekHeader" > > renderAsPopup="true" > > popupDateFormat="MM/dd/yyyy" > > popupButtonString="pick date"/> > > > > Also I have the appropriate Javascript includes in the header. > > This works fine when renderAsPopup=false. > > > > But what's really confusing is I rolled back to a previous version > > that I know worked, switched state saving back to the > server, and now > > I'm getting the same error about duplicate component IDs! > > > > ??? Any ideas ??? I guess I'll keep digging. > > > > java.lang.IllegalStateException: Duplicate component ID > '_id17:cal1' > > found in view. > > > > > com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndF > > acets( > > StateManagerImpl.java:118) > > > > > com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndF > > acets( > > StateManagerImpl.java:126) > > > > > com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndF > > acets( > > StateManagerImpl.java:126) > > > > > com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndF > > acets( > > StateManagerImpl.java:144) > > > > > com.sun.faces.application.StateManagerImpl.removeTransientChildrenAndF > > acets( > > StateManagerImpl.java:126) > > > > > com.sun.faces.application.StateManagerImpl.saveSerializedView(StateMan > > agerIm > > pl.java:70) > > > com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:169) > > > > > org.apache.jsp.SatReports.search_jsp._jspx_meth_f_view_0(search_jsp.ja > > va:181 > > ) > > > > > org.apache.jsp.SatReports.search_jsp._jspService(search_jsp.java:130) > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper. > > java:3 > > 24) > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > .java:292) > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > > com.sun.faces.context.ExternalContextImpl.dispatch(ExternalCon > textImpl.java: > > 322) > > > > > com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.j > > ava:14 > > 7) > > > > > com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhas > > e.java > > :87) > > > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) > > > com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) > > > > > net.sourceforge.myfaces.custom.fileupload.MultipartFilter.doFilter(Mul > > tipart > > Filter.java:88) > > > > > > > > > >>-----Original Message----- > >>From: Martin Marinschek [mailto:[EMAIL PROTECTED] > >>Sent: Friday, November 19, 2004 1:16 AM > >>To: MyFaces Discussion > >>Subject: Re: Problems with inputCalendar > >> > >>hey, > >> > >>I have been using the inputCalendar for a long time now; > with client > >>side state-saving enabled, and have not had any problems. > >> > >>have you checked out the examples and tried them? Is it running on > >>your system with these examples or not? If the examples are > running, > >>what is different in your setup than in the examples? > >> > >>regards, > >> > >>Martin > >> > >> > >>On Thu, 18 Nov 2004 18:05:47 -0700, Arinaya <[EMAIL PROTECTED]> > >>wrote: > >> > >>> > >>>It looks like someone else had the same problem recently (below). > >>>Strangely enough, even when I switch back to server-side > >> > >>state saving, > >> > >>>I still get the same error about duplicate component IDs. > >> > >>Although it > >> > >>>worked before. > >>> > >>>Anyone have any ideas? I'm stumped. I've spend hours > >> > >>stepping through > >> > >>>jsf code and trying different settings and I can't get the > >> > >>calendar to > >> > >>>work. If Rana is still on the list, did you ever get it working? > >>> > >>>Thanks, > >>>Arinaya > >>> > >>> > >>>Hello All, I'm new to this forum. I want to know how can I > >> > >>integrate > >> > >>>the Calendar component in my JSF application. So far I > >> > >>tried to follow > >> > >>>these > >>>steps: (1) I've put myfaces-components.jar in the WEB-INF\lib > >>>directory. (2) In the jsp page defined the taglibs: <%@ taglib > >>>uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib > >>>uri="http://java.sun.com/jsf/core"; prefix="f" %> <%@ taglib > >>>uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld"; > >>>prefix="x"%> > >>>(3) And then creating the component in the JSP page by: > >>><x:inputCalendar monthYearRowClass="yearMonthHeader" > >> > >>weekRowClass="weekHeader" > >> > >>>currentDayCellClass="currentDayCell" value="#{calendar.date}" > >>>renderAsPopup="true" popupTodayString="Today is : " > >>>popupWeekString="Wk" /> However in JBOSS 3.2.2 I'm getting > >> > >>the following error: > >> > >>>org.apache.jasper.JasperException: Duplicate component ID > >> > >>'submitForm:_id67' > >> > >>>found in view. Any help will be really appreciated. > >> > >>Thanking you in advance. > >> > >>> > >>> > >>> ________________________________ > >>> From: Arinaya [mailto:[EMAIL PROTECTED] > >>>Sent: Thursday, November 18, 2004 3:21 PM > >>>To: 'MyFaces Discussion' > >>>Subject: RE: Problems with client side state saving > >>> > >>> > >>> > >>>Interesting FYI, > >>> > >>>The below scenario works when the selectItems values are Integer > >>>objects, but not when they are Strings. > >>> > >>>But Strings are ok with state saving method = server. > >>> > >>>So my only remaining problem is with the inputCalendar not working > >>>when renderAsPopup = true. > >>>If anyone has any insight into that it would be most appreciated. > >>> > >>>Regards, > >>>Arinaya > >>> > >>> > >>> ________________________________ > >>> From: Arinaya [mailto:[EMAIL PROTECTED] > >>>Sent: Thursday, November 18, 2004 12:05 PM > >>>To: 'MyFaces Discussion' > >>>Subject: RE: Problems with client side state saving > >>> > >>> > >>> > >>>The following works perfectly when state is saved on the > >> > >>server, but > >> > >>>not when state is saved on the client. Can someone please > >> > >>explain why. > >> > >>>It looks like the valueChangeListener is not even being triggered. > >>>What do I need to do to make JSF aware of changes to the > >> > >>selectOneMenu input? > >> > >>> > >>> > >>> > >>><h:selectOneMenu value="#{xxxBean.recordsPerPage}" > >>>onchange="this.form.submit();" immediate="true"> > >>> > >>><f:selectItem itemLabel="10" itemValue="10"/> > >>> > >>><f:selectItem itemLabel="20" itemValue="20"/> > >>> > >>><f:selectItem itemLabel="50" itemValue="50"/> > >>> > >>><f:selectItem itemLabel="All" itemValue="#{xxxBean.recordCount}"/> > >>> > >>><f:valueChangeListener > >> > >>type="x.y.z.SatRecordsPerPageChangeListener"/> > >> > >>></h:selectOneMenu> > >>> > >>> > > > > > > > > >

