[jboss-user] [JBoss Seam] - Re: Datepicker Popup Issue

shane.bryzak@jboss.com do-not-reply at jboss.com
Mon Apr 16 19:48:07 EDT 2007


This is not an ideal solution - if you ever upgrade Seam to a later version you'll have to re-apply your changes again.  A better approach would be to override the default behaviour of the calendar control by first loading the script (which happens automatically when you place a s:selectDate control in your view) and then using JavaScript to override the behaviour of __Calendar and __CalendarFactory.  

For example, if you didn't want the calendar to disappear when clicked then you'd override __CalendarFactory.depopupCalendar with a no-op like this:


  | __CalendarFactory.prototype.depopupCalendar = function() { }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037783#4037783

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037783



More information about the jboss-user mailing list