Thank you for good suggestion! If somebody need it - here is simple example how to change t:inputDate with own, jenia-based tag with using facelets: http://www.emforge.org/wiki.faces?page=InputDateAjax
2007/3/5, Wesley Hales <[EMAIL PROTECTED]>:
Try the Jenia calendar component http://www.jenia.org/TestPopup/jsp/home.jsf. On 3/4/07, raindogs <[EMAIL PROTECTED]> wrote: > > > I have a page that makes fairly heavy use of ajax4jsf processing. It all > works great, but now I want to add a t:inputCalendar element, which > causes > the thing to blow up every time I submit it. > > Some checking around the web reveals that there is a conflict here due > to > the fact that Tomahawk expects certain elements of the page header that > are > not returns when ajax4jsf is used. I did find some suggestions that > involved > wrapping the page in "a4j:page" tags, but I've not had any luck with > that > either. > > The code from my page is pasted below, can anyone offer any suggestions > here? I'm happy to use something besides the Tomahawk calendar - all I > really want is my ajax4jsf page with a pop-up calendar element that is > nice > and friendly for my users. > > Thanks, > Alex > > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > <%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %> > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > <%@ taglib uri=" https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%> > > <HTML> > <HEAD> <title>Facility Form</title> > <LINK REL="STYLESHEET" HREF="css/215style.css"> > </HEAD> > <body bgcolor="white"> > > <f:view> > > <h1>Facility Form</h1> > > <h:form id="locationForm"> > <h:panelGroup id="locationGroup"> > <h:panelGrid columns="2" style="margin-top:10px;" > id="locationGrid"> > > <h:outputText value="Address Name:" /> > <h:inputText id="addressName" value="#{ > locationForm.addressName}" /> > > <h:outputText value="Street Address:" /> > <h:inputText id="streetAddress" value="#{ > locationForm.streetAddress }" /> > > <h:outputText value="City:" /> > <h:inputText id="city" value="#{ > locationForm.city}" /> > > <h:outputText value="State:" /> > <h:selectOneMenu value="#{locationForm.state}" > style="padding:0px;margin:0px;"> > <a4j:support event="onchange" action="#{ > locationForm.loadState}" > reRender="zipcode, latitude, longitude, city" ajaxSingle="true"/> > <f:selectItems value ="#{ > locationForm.stateList}" /> > </h:selectOneMenu> > > <h:outputText value="Zip Code:" /> > <h:selectOneMenu value="#{locationForm.zipcode}" > > style="padding:0px;margin:0px;" id="zipcode"> > <a4j:support event="onchange" action="#{ > locationForm.loadZip}" > reRender="latitude, longitude, city" ajaxSingle="true"/> > <f:selectItems value ="#{ > locationForm.zipList}" /> > </h:selectOneMenu> > > <h:outputText value="Activation Date" /> > <t:inputCalendar id="activationDate" > value="#{locationForm.activationDate}" > renderAsPopup="true"></t:inputCalendar> > > <h:outputText value="County:" /> > <h:inputText id="county" value="#{ > locationForm.county}" /> > > <h:outputText value="Notes:" /> > <h:inputTextarea id="notes" value="#{ > locationForm.notes}" /> > > <h:outputText value="Latitude:" /> > <h:inputText id="latitude" value="#{ > locationForm.latitude}" /> > > <h:outputText value="Longitude:" /> > > <h:inputText id="longitude" value="#{ > locationForm.longitude}" /> > > <h:commandButton value="Submit" > action="#{locationForm.submitNewLocation}" id="btnSubmitLocationForm"/> > <h:outputText value="" escape="false"/> > > </h:panelGrid> > </h:panelGroup> > </h:form> > > </f:view> > > </body> > </html> > > -- > View this message in context: > http://www.nabble.com/ajax4jsf-and-t%3AinputCalendar-element-conflict-tf3343610.html#a9299235 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >
-- With Best Regards, Alexey Kakunin, EmDev Limited Professional Software Development: http://www.emdev.ru