Re: date picker calendar shown on text field clicked

2010-05-29 Thread Vytautas Čivilis
Is everything ok with this patch?

V

2010/5/28 Vytautas Čivilis cvl...@gmail.com

 https://issues.apache.org/jira/browse/WICKET-2899


 On Fri, May 28, 2010 at 9:18 PM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 2010/5/28 Vytautas Čivilis cvl...@gmail.com

  Hi.
 
  It would be great, if you'd consider including following code to make
  TextField, that is assigned to date picker, aware of date picker itself.
  So,
  when TextField is clicked, picker calendar would be displayed.
 
  Implement it is very easy:
 
 
  in wicket-date.js:
 
  add some configuration property, like showCalendarOnTextFieldSelect and
 use
  it next to line:
 
  YAHOO.util.Event.addListener(cfg.icon, click, showCalendar,
  YAHOO.wicket[cfg.dpJs], true);
 
  //new code below:
 
  if(cfg.showCalendarOnTextFieldSelect) {
 YAHOO.util.Event.addListener(cfg.widgetId, click, showCalendar,
  YAHOO.wicket[cfg.dpJs], true);
  }
 
 
  Sorry that I didn't provide the patch, I could do it if you'd seriously
  consider incorporating this feature.
 
  V
 

 Please create a JIRA for this with patch attached.

 --
 Jeremy Thomerson
 http://www.wickettraining.com





Re: date picker calendar shown on text field clicked

2010-05-29 Thread Jeremy Thomerson
2010/5/29 Vytautas Čivilis cvl...@gmail.com

 Is everything ok with this patch?


Don't know - haven't had time to look at it (and I probably won't personally
any time this week).

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: date picker calendar shown on text field clicked

2010-05-29 Thread Doug Leeper

I actually have a requirement for the Date Picker to be shown when focus is
applied to the field.  Is this possible too?  Can this be configurable, i.e.
not all fields have this onfocus behavior?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/date-picker-calendar-shown-on-text-field-clicked-tp2234853p2236054.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



date picker calendar shown on text field clicked

2010-05-28 Thread Vytautas Čivilis
Hi.

It would be great, if you'd consider including following code to make
TextField, that is assigned to date picker, aware of date picker itself. So,
when TextField is clicked, picker calendar would be displayed.

Implement it is very easy:


in wicket-date.js:

add some configuration property, like showCalendarOnTextFieldSelect and use
it next to line:

YAHOO.util.Event.addListener(cfg.icon, click, showCalendar,
YAHOO.wicket[cfg.dpJs], true);

//new code below:

if(cfg.showCalendarOnTextFieldSelect) {
YAHOO.util.Event.addListener(cfg.widgetId, click, showCalendar,
YAHOO.wicket[cfg.dpJs], true);
}


Sorry that I didn't provide the patch, I could do it if you'd seriously
consider incorporating this feature.

V


Re: date picker calendar shown on text field clicked

2010-05-28 Thread Jeremy Thomerson
2010/5/28 Vytautas Čivilis cvl...@gmail.com

 Hi.

 It would be great, if you'd consider including following code to make
 TextField, that is assigned to date picker, aware of date picker itself.
 So,
 when TextField is clicked, picker calendar would be displayed.

 Implement it is very easy:


 in wicket-date.js:

 add some configuration property, like showCalendarOnTextFieldSelect and use
 it next to line:

 YAHOO.util.Event.addListener(cfg.icon, click, showCalendar,
 YAHOO.wicket[cfg.dpJs], true);

 //new code below:

 if(cfg.showCalendarOnTextFieldSelect) {
YAHOO.util.Event.addListener(cfg.widgetId, click, showCalendar,
 YAHOO.wicket[cfg.dpJs], true);
 }


 Sorry that I didn't provide the patch, I could do it if you'd seriously
 consider incorporating this feature.

 V


Please create a JIRA for this with patch attached.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: date picker calendar shown on text field clicked

2010-05-28 Thread Vytautas Čivilis
https://issues.apache.org/jira/browse/WICKET-2899

On Fri, May 28, 2010 at 9:18 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 2010/5/28 Vytautas Čivilis cvl...@gmail.com

  Hi.
 
  It would be great, if you'd consider including following code to make
  TextField, that is assigned to date picker, aware of date picker itself.
  So,
  when TextField is clicked, picker calendar would be displayed.
 
  Implement it is very easy:
 
 
  in wicket-date.js:
 
  add some configuration property, like showCalendarOnTextFieldSelect and
 use
  it next to line:
 
  YAHOO.util.Event.addListener(cfg.icon, click, showCalendar,
  YAHOO.wicket[cfg.dpJs], true);
 
  //new code below:
 
  if(cfg.showCalendarOnTextFieldSelect) {
 YAHOO.util.Event.addListener(cfg.widgetId, click, showCalendar,
  YAHOO.wicket[cfg.dpJs], true);
  }
 
 
  Sorry that I didn't provide the patch, I could do it if you'd seriously
  consider incorporating this feature.
 
  V
 

 Please create a JIRA for this with patch attached.

 --
 Jeremy Thomerson
 http://www.wickettraining.com