You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by xianwinwin <xi...@gmail.com> on 2008/03/24 22:56:27 UTC
Why datetimepicker doesn't show the value of my bean?
Hi all,
I'm having a problem with datetimepicker.
The form works great; the user is able to enter the date and I can persist
the data. Problem is when I wish to post the information on the screen - the
bean is populated but the value is not shown on the form :-(
code:
<s:datetimepicker name="Register.dob"
value=""
type="date"
staticDisplay="true"
label="DOB (MM/dd/yyyy)"
displayFormat="MM/dd/yyyy"
required="false"/>
thanks for any pointers!
--
View this message in context: http://www.nabble.com/Why-datetimepicker-doesn%27t-show-the-value-of-my-bean--tp16262767p16262767.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Why datetimepicker doesn't show the value of my bean?
Posted by xianwinwin <xi...@gmail.com>.
duahhh me!!!...
thanks Dave, I got it, the value="" caused it
:-)
working fine!
newton.dave wrote:
>
> --- xianwinwin <xi...@gmail.com> wrote:
>> <s:datetimepicker name="Register.dob"
>> value=""
>> type="date"
>> staticDisplay="true"
>> label="DOB (MM/dd/yyyy)"
>> displayFormat="MM/dd/yyyy"
>> required="false"/>
>
> Don't know for sure, but you're setting the value to an empty string. I'd
> try
> not doing that first.
>
> Dave
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Why-datetimepicker-doesn%27t-show-the-value-of-my-bean--tp16262767p16263119.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Why datetimepicker doesn't show the value of my bean?
Posted by Dave Newton <ne...@yahoo.com>.
--- xianwinwin <xi...@gmail.com> wrote:
> <s:datetimepicker name="Register.dob"
> value=""
> type="date"
> staticDisplay="true"
> label="DOB (MM/dd/yyyy)"
> displayFormat="MM/dd/yyyy"
> required="false"/>
Don't know for sure, but you're setting the value to an empty string. I'd try
not doing that first.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org