Hi, I think in that case, I need to put a string text box and convert the entered string value to Date by using java conversion on server submit. Is it possible for me to avoid all this? i.e. on user entry from the calendar component the date should come baack instead of converting and then validating it.
Any ideas? Ravi -----Original Message----- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 6:16 PM To: Struts Users Mailing List Subject: Re: YUI and S2 : problem in rendering date component Why not use the YUI calendar component? I'd be wary of mixing multiple JavaScript libraries simply because they may do different DOM manipulations on load, have specific load order requirements, and who knows what else. Jeremy already explained some of the load/instantiation issues. I don't think repeatedly posting your question is going to produce significantly different results. Dave --- ravi_eze <[EMAIL PROTECTED]> wrote: > My implementation is as follows: > > I have a page that displays a datetimepicker provided by struts2(2.0.9). > When i tried to put the same into the YUI tabbed panel the timepicker > componetn is not being displayed. > > The following is the code in the YUI: > > <script type="text/javascript"> > (function() { > var tabView = new YAHOO.widget.TabView(); > > tabView.addTab( new YAHOO.widget.Tab({ > label: 'page 1', > dataSrc: '<tiles:getAsString name="wizardUrl" />', > cacheData: true, > active: true > })); > } > )(); > > <tiles:getAsString name="wizardUrl" />: gets the URL that should be > rendered. This page contains: > > <head> > <s:head theme="ajax" /> > </head> > <body> > <s:datetimepicker name="..." /> > </body> > > any ideas? > ravi > > > > ravi_eze wrote: > > > > hi, > > > > i am using YUI tabs to display the form which contains a datetimepicker. > > But the component is not being rendered. I amusing tiles to hold the tabs > > component and doing tiles insert the URL which makes a new call to the > > servr and get the page to be displayed under it. When i display the page > > by calling the URL without the tabs component the datetimepicker is > coming > > fine. > > > > It seems like, some onload function of javascript is being called which > > renders the datetimepicker after the form/ page is completely loaded. In > > this case as the URL is being called by ajax this onload is not > heppening. > > Can anybody help me how to complete this? > > > > Struts also provides tabcomponent, but YUI has additional flexibility of > > skinning, dynamic tab adding, nonching etc which are very difficult with > > S2. > > > > please help. > > ravi > > > > -- > View this message in context: > http://www.nabble.com/YUI-and-S2-%3A-problem-in-rendering-date-component -tp15426105p15453324.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]