It has to do with the version, I created a new 2.0rc1 project and did
appfuse:gen on it for an entity with two date properties, everything worked
fine an none of the below listed problems occcured. But when I did
appfuse:gen for same entity in 2m5 project I ran into all the problems
listed below.
The code generated for date and javascript for calendar is exactly the same
in both cases.
Arvinder
mraible wrote:
>
> Sounds like there's some bugs in our code generation. Does it work if
> you only have a single calendar?
>
> Matt
>
> On 6/29/07, arvinder <[EMAIL PROTECTED]> wrote:
>>
>> I used appfuse:gen which has multiple date fields, I have M5 but the AMP
>> plugin I used was RC1 as I had embedded object in my entity.
>> The jsp which was created contained following snippets for date(it has
>> all
>> three js files for calendar):
>> <s:textfield key="carrier.createDate" required="false"
>> cssClass="text"
>> size="11" title="date"/>
>> .
>> .
>> Form.focusFirstElement($("carrierForm"));
>> Calendar.setup({inputField: "carrierForm_carrier_createDate",
>> ifFormat:
>> "%m/%d/%Y", button: "carrier.createDateDatePicker"});
>> .
>> .
>>
>> Now my problems are:
>> 1. I do not see any button after my create date field on the form to
>> choose
>> a date.
>>
>> 2. If I try to edit the date in field manually by giving a wrong format
>> it
>> comes back with an error:
>> Invalid field value for field "carrier.createDate"
>> It does not display the value of the property(Create Date in this
>> case)
>> in the error message, as in case of other fields.
>>
>> 3. If I give it the value in the correct format, it saves it fine in the
>> db
>> but the time component disappears in the form. If I go to the list and
>> come
>> back the time component is displayed.
>>
>> What I am doing wrong?
>> --
>> View this message in context:
>> http://www.nabble.com/Date-field-problem-with-struts2-basic-M5-tf4000744s2369.html#a11363046
>> 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/Date-field-problem-with-struts2-basic-M5-tf4000744s2369.html#a11824693
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]