what to do with <head> element ?
mraible wrote: > > Do you have <s:head/> in the <head> element of your page? > > http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/components/Head.html > > Matt > > On 2/25/07, Fan <[EMAIL PROTECTED]> wrote: >> >> I had installed firebug, while running the application with page having >> datetimepicker, the firebug console was showing the following error : >> >> dojo is not defined >> dojo.require("dojo.widget.DatePicker"); >> >> >> I cant find any DatePicker class under my project. >> >> Any one can give me the pointers of how to solve this problem ? >> >> >> >> Fan wrote: >> > >> > I found datetimepicker under the struts2.components library. I am using >> > the following line >> > >> > <s:datetimepicker key="store.dateOpen" displayFormat="dd/MM/yyyy" /> >> > >> > but the field does not show on the browser screen. >> > >> > here is the html source from the browser : >> > >> > <li id="wwgrp_storeForm_store_dateOpen" class="wwgrp"> >> > <div id="wwlbl_storeForm_store_dateOpen" class="wwlbl"> >> > <label for="storeForm_store_dateOpen" class="desc"> Date >> Open >> > </label> >> > </div> >> > <div id="wwctrl_storeForm_store_dateOpen" class="wwctrl"> >> > <script type="text/javascript"> >> > dojo.require("dojo.widget.DatePicker"); >> > </script> >> > <div >> > dojoType="dropdowndatepicker" id="storeForm_store_dateOpen" >> > value="2007-02-22T00:00:00" name="dojo.store.dateOpen" >> > inputName="store.dateOpen" displayFormat="dd/MM/yyyy" >> > saveFormat="rfc"></div> >> > </div> </li> >> > >> > >> > Anyone has idea about this ? >> > >> > >> > >> > Fan wrote: >> >> >> >> I am using the following datePicker: >> >> >> >> <s:datepicker name="store.dateOpen" label="store.dateOpen" >> >> format="#yyyy-#MM-#dd" /> >> >> >> >> But , I encounter the following error: >> >> >> >> HTTP ERROR: 500 >> >> >> >> /WEB-INF/pages/storeForm.jsp(13,4) PWC6142: No tag "datepicker" >> defined >> >> in tag library imported with prefix "s" >> >> >> >> RequestURI=/WEB-INF/pages/storeForm.jsp >> >> >> >> Powered by Jetty:// >> >> >> >> >> >> How do I import the library then ? >> >> >> >> >> >> >> >> Matt Raible-3 wrote: >> >>> >> >>> I believe this is Struts' default date format. Here's how I fixed >> this >> >>> problem in Equinox: >> >>> >> >>> http://issues.appfuse.org/browse/EQX-50 >> >>> >> >>> Matt >> >>> >> >>> On 2/20/07, Fan <[EMAIL PROTECTED]> wrote: >> >>>> >> >>>> In the browser, it shows 2/17/07 12:00:00 AM.000 >> >>>> >> >>>> Yes, I managed to save it without modifying it. >> >>>> >> >>>> 1)I think the correct format for the date is MM/DD/YYYY , is there >> any >> >>>> settings I can made change to ? it's controlled by MySQL ? >> >>>> >> >>>> 2) How could I remove the time from the date ? >> >>>> >> >>>> 3) Can I use java.sql.date instead of java.util.date ? >> >>>> >> >>>> >> >>>> >> >>>> Matt Raible-3 wrote: >> >>>> > >> >>>> > You haven't answered my first question: ;-) >> >>>> > >> >>>> > If you enter a date through your database console and then view >> the >> >>>> > record in your browser - what date format does it use? If you >> don't >> >>>> > modify the date, does it allow you to save it? >> >>>> > >> >>>> > Matt >> >>>> > >> >>>> > On 2/14/07, Fan <[EMAIL PROTECTED]> wrote: >> >>>> >> >> >>>> >> This is the Person.java I have: >> >>>> >> >> >>>> >> package org.appfuse.model; >> >>>> >> >> >>>> >> import org.appfuse.model.BaseObject; >> >>>> >> import org.apache.commons.lang.builder.EqualsBuilder; >> >>>> >> import org.apache.commons.lang.builder.HashCodeBuilder; >> >>>> >> import org.apache.commons.lang.builder.ToStringBuilder; >> >>>> >> import org.apache.commons.lang.builder.ToStringStyle; >> >>>> >> >> >>>> >> import javax.persistence.*; >> >>>> >> >> >>>> >> @Entity(name="person") >> >>>> >> public class Person extends BaseObject { >> >>>> >> private Long id; >> >>>> >> private String firstName; >> >>>> >> private String lastName; >> >>>> >> private java.util.Date dob; >> >>>> >> >> >>>> >> /** >> >>>> >> * @return the firstName >> >>>> >> */ >> >>>> >> @Column(name="first_name", length=50) >> >>>> >> public String getFirstName() { >> >>>> >> return firstName; >> >>>> >> } >> >>>> >> /** >> >>>> >> * @param firstName the firstName to set >> >>>> >> */ >> >>>> >> public void setFirstName(String firstName) { >> >>>> >> this.firstName = firstName; >> >>>> >> } >> >>>> >> >> >>>> >> /** >> >>>> >> * @return the id >> >>>> >> */ >> >>>> >> @Id @GeneratedValue(strategy = GenerationType.AUTO) >> >>>> >> public Long getId() { >> >>>> >> return id; >> >>>> >> } >> >>>> >> /** >> >>>> >> * @param id the id to set >> >>>> >> */ >> >>>> >> public void setId(Long id) { >> >>>> >> this.id = id; >> >>>> >> } >> >>>> >> >> >>>> >> /** >> >>>> >> * @return the lastName >> >>>> >> */ >> >>>> >> @Column(name="last_name", length=50) >> >>>> >> public String getLastName() { >> >>>> >> return lastName; >> >>>> >> } >> >>>> >> /** >> >>>> >> * @param lastName the lastName to set >> >>>> >> */ >> >>>> >> public void setLastName(String lastName) { >> >>>> >> this.lastName = lastName; >> >>>> >> } >> >>>> >> >> >>>> >> /** >> >>>> >> * @return the dob >> >>>> >> */ >> >>>> >> >> >>>> >> @Column(name="dob") >> >>>> >> public java.util.Date getDob() { >> >>>> >> return dob; >> >>>> >> } >> >>>> >> >> >>>> >> /** >> >>>> >> * @param dob the dob to set >> >>>> >> */ >> >>>> >> public void setDob(java.util.Date dob) { >> >>>> >> this.dob = dob; >> >>>> >> } >> >>>> >> >> >>>> >> >> >>>> >> /** >> >>>> >> * @see java.lang.Object#equals(Object) >> >>>> >> */ >> >>>> >> public boolean equals(Object object) { >> >>>> >> if (!(object instanceof Person)) { >> >>>> >> return false; >> >>>> >> } >> >>>> >> Person rhs = (Person) object; >> >>>> >> return new EqualsBuilder().append(this.firstName, >> >>>> >> rhs.firstName) >> >>>> >> .append(this.id, >> >>>> >> rhs.id).append(this.lastName, rhs.lastName) >> >>>> >> .isEquals(); >> >>>> >> } >> >>>> >> /** >> >>>> >> * @see java.lang.Object#hashCode() >> >>>> >> */ >> >>>> >> public int hashCode() { >> >>>> >> return new HashCodeBuilder(1160340241, >> >>>> >> -525786491).append( >> >>>> >> >> >>>> >> this.firstName).append(this.id).append(this.lastName) >> >>>> >> .toHashCode(); >> >>>> >> } >> >>>> >> /** >> >>>> >> * @see java.lang.Object#toString() >> >>>> >> */ >> >>>> >> public String toString() { >> >>>> >> return new ToStringBuilder(this, >> >>>> >> ToStringStyle.DEFAULT_STYLE).append( >> >>>> >> "lastName", >> >>>> this.lastName).append("id", >> >>>> >> this.id).append( >> >>>> >> "firstName", >> >>>> this.firstName).toString(); >> >>>> >> } >> >>>> >> } >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> Matt Raible-3 wrote: >> >>>> >> > >> >>>> >> > If you enter a date through your database console and then view >> >>>> the >> >>>> >> > record in your browser - what date format does it use? If you >> >>>> don't >> >>>> >> > modify the date, does it allow you to save it? >> >>>> >> > >> >>>> >> > Are you sure you're using java.util.Date? >> >>>> >> > >> >>>> >> > Matt >> >>>> >> > >> >>>> >> > On 2/13/07, Fan <[EMAIL PROTECTED]> wrote: >> >>>> >> >> >> >>>> >> >> I was trying the suggestions you provided. Unfortunately, >> neither >> >>>> of >> >>>> >> them >> >>>> >> >> works >> >>>> >> >> >> >>>> >> >> by the way, I am using Struts2 basic >> >>>> >> >> >> >>>> >> >> >> >>>> >> >> >> >>>> >> >> Matt Raible-3 wrote: >> >>>> >> >> > >> >>>> >> >> > If you remove the Scriptaculous and Prototype includes from >> the >> >>>> >> >> > default.jsp decorator - does that help? As far as the date >> >>>> error - >> >>>> >> >> > what happens if you use something like 05-07-1976? >> >>>> >> >> > >> >>>> >> >> > Matt >> >>>> >> >> > >> >>>> >> >> > On 2/12/07, Fan <[EMAIL PROTECTED]> wrote: >> >>>> >> >> >> >> >>>> >> >> >> I am using the following in personForm.jsp : >> >>>> >> >> >> >> >>>> >> >> >> <s:datepicker label="%{getText('person.dob')}" >> >>>> name="person.dob" >> >>>> >> >> >> format="#yyyy-#MM-#dd"/> >> >>>> >> >> >> >> >>>> >> >> >> However , I cant get any Calendar component from the >> screen. >> >>>> >> >> >> >> >>>> >> >> >> when I tried to save the field with "1976-05-07", it showed >> >>>> the >> >>>> >> >> following >> >>>> >> >> >> message : >> >>>> >> >> >> >> >>>> >> >> >> Validation Error Invalid field value for field >> "person.dob". >> >>>> >> >> >> >> >>>> >> >> >> >> >>>> >> >> >> >> >>>> >> >> >> Matt Raible-3 wrote: >> >>>> >> >> >> > >> >>>> >> >> >> > You might try using the <s:datepicker> component. >> >>>> >> >> >> > >> >>>> >> >> >> > >> >>>> >> >> >> >> >>>> >> >> >> >>>> >> >> >>>> >> http://struts.apache.org/2.x/core-apidocs/org/apache/struts2/components/DatePicker.html >> >>>> >> >> >> > >> >>>> >> >> >> > Matt >> >>>> >> >> >> > >> >>>> >> >> >> > On 2/7/07, Fan <[EMAIL PROTECTED]> wrote: >> >>>> >> >> >> >> >> >>>> >> >> >> >> I am using struts 2 >> >>>> >> >> >> >> >> >>>> >> >> >> >> >> >>>> >> >> >> >> Matt Raible-3 wrote: >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > On 2/7/07, Fan <[EMAIL PROTECTED]> wrote: >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> >> 1)Is there any Calendar component in Appfuse 2.0, if >> >>>> there is >> >>>> >> >> so, >> >>>> >> >> >> how >> >>>> >> >> >> >> >> could I >> >>>> >> >> >> >> >> make use of it ? >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > Which web framework are you using? >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > 2)How do we define date field (without time) in POJO >> for >> >>>> >> Appfuse >> >>>> >> >> >> 2.0 ? >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > as a java.util.Date >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > Matt >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > -- >> >>>> >> >> >> >> >> View this message in context: >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> >> >>>> >> >> >> >> >>>> >> >> >> >>>> >> >> >>>> >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a8846844 >> >>>> >> >> >> >> >> Sent from the AppFuse - User mailing list archive at >> >>>> >> Nabble.com. >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> >>>> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> >> >> >> >> To unsubscribe, e-mail: >> >>>> >> [EMAIL PROTECTED] >> >>>> >> >> >> >> >> For additional commands, e-mail: >> >>>> >> [EMAIL PROTECTED] >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> >> >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > -- >> >>>> >> >> >> >> > http://raibledesigns.com >> >>>> >> >> >> >> > >> >>>> >> >> >> >> > >> >>>> >> >> >> >> >> >>>> >> >> >> >> -- >> >>>> >> >> >> >> View this message in context: >> >>>> >> >> >> >> >> >>>> >> >> >> >> >>>> >> >> >> >>>> >> >> >>>> >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a8858069 >> >>>> >> >> >> >> Sent from the AppFuse - User mailing list archive at >> >>>> Nabble.com. >> >>>> >> >> >> >> >> >>>> >> >> >> >> >> >>>> >> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> >> >> >> To unsubscribe, e-mail: >> >>>> [EMAIL PROTECTED] >> >>>> >> >> >> >> For additional commands, e-mail: >> >>>> [EMAIL PROTECTED] >> >>>> >> >> >> >> >> >>>> >> >> >> >> >> >>>> >> >> >> > >> >>>> >> >> >> > >> >>>> >> >> >> > -- >> >>>> >> >> >> > http://raibledesigns.com >> >>>> >> >> >> > >> >>>> >> >> >> > >> >>>> >> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> >> >> > To unsubscribe, e-mail: >> >>>> [EMAIL PROTECTED] >> >>>> >> >> >> > For additional commands, e-mail: >> >>>> [EMAIL PROTECTED] >> >>>> >> >> >> > >> >>>> >> >> >> > >> >>>> >> >> >> > >> >>>> >> >> >> >> >>>> >> >> >> -- >> >>>> >> >> >> View this message in context: >> >>>> >> >> >> >> >>>> >> >> >> >>>> >> >> >>>> >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a8925497 >> >>>> >> >> >> Sent from the AppFuse - User mailing list archive at >> >>>> Nabble.com. >> >>>> >> >> >> >> >>>> >> >> >> >> >>>> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> >> >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> >>>> >> >> >> For additional commands, e-mail: >> >>>> [EMAIL PROTECTED] >> >>>> >> >> >> >> >>>> >> >> >> >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > -- >> >>>> >> >> > http://raibledesigns.com >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> >> > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> >>>> >> >> > For additional commands, e-mail: >> >>>> [EMAIL PROTECTED] >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> > >> >>>> >> >> >> >>>> >> >> -- >> >>>> >> >> View this message in context: >> >>>> >> >> >> >>>> >> >> >>>> >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a8945398 >> >>>> >> >> Sent from the AppFuse - User mailing list archive at >> Nabble.com. >> >>>> >> >> >> >>>> >> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>>> >> >> For additional commands, e-mail: >> [EMAIL PROTECTED] >> >>>> >> >> >> >>>> >> >> >> >>>> >> > >> >>>> >> > >> >>>> >> > -- >> >>>> >> > http://raibledesigns.com >> >>>> >> > >> >>>> >> > >> >>>> >> --------------------------------------------------------------------- >> >>>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>>> >> > For additional commands, e-mail: >> [EMAIL PROTECTED] >> >>>> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> >> >>>> >> -- >> >>>> >> View this message in context: >> >>>> >> >> >>>> >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a8966008 >> >>>> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >>>> >> >> >>>> >> >> >>>> >> --------------------------------------------------------------------- >> >>>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>>> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >>>> >> >> >>>> >> >> >>>> > >> >>>> > >> >>>> > -- >> >>>> > http://raibledesigns.com >> >>>> > >> >>>> > >> --------------------------------------------------------------------- >> >>>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>>> > For additional commands, e-mail: [EMAIL PROTECTED] >> >>>> > >> >>>> > >> >>>> > >> >>>> >> >>>> -- >> >>>> View this message in context: >> >>>> >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a9064358 >> >>>> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >>>> >> >>>> >> --------------------------------------------------------------------- >> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>>> For additional commands, e-mail: [EMAIL PROTECTED] >> >>>> >> >>>> >> >>> >> >>> >> >>> -- >> >>> http://raibledesigns.com >> >>> >> >>> --------------------------------------------------------------------- >> >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>> For additional commands, e-mail: [EMAIL PROTECTED] >> >>> >> >>> >> >>> >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a9144310 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Calendar-component-and-Date-field-for-Appfuse-2.0-tf3187463s2369.html#a9156271 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
