Re: [Wicket-user] Setting date format with the DateTimeField component

2007-07-27 Thread Gerolf Seitz
take a look at the DateTextField#forDatePattern(...) methods hth, gerolf On 7/28/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote: > > Hi all, > > How can I set the date format with the DateTimeField? Looking at the code, > the format appears to be set in DateTimeField.init() with the line: > > a

Re: [Wicket-user] .setVisble not working for webmarkupcontainer

2007-07-23 Thread Gerolf Seitz
iirc, you have to call .setOutputMarkupPlaceHolder(true) on the webmarkupcontainer to make this work. gerolf On 7/23/07, atul <[EMAIL PROTECTED]> wrote: > > Hi, > 1.I have a WebMarkupContainer with some components nested. I do > setVisible(false) to it when page loadslater on an ajax request

Re: [Wicket-user] (no subject)

2007-07-08 Thread Gerolf Seitz
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getServletPath() hth, gerolf On 7/8/07, Alexander Lohse <[EMAIL PROTECTED]> wrote: Hi, I guess this has been asked several times, but I was unable to find a hint: From within a component I need to create a absolute url to

Re: [Wicket-user] DatePicker broken on beta2 and snapshot?

2007-07-05 Thread Gerolf Seitz
thx, eelco i really enjoy my wicket ride ;) On 7/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: On 7/4/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > eelco, > speaking of wicket-datetime. > is it possible to change the default implementation of > notifyComponentOnDat

Re: [Wicket-user] DatePicker broken on beta2 and snapshot?

2007-07-04 Thread Gerolf Seitz
eelco, speaking of wicket-datetime. is it possible to change the default implementation of notifyComponentOnDateSelected to return true? when telling other people (happend twice up to now) about how to use the datepicker, i always felt the urge to tell them to override this method if they wanted o

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Gerolf Seitz
;s been a tremendous journey so far :) gerolf p.s.: gotta go rewrite some code now... On 7/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 7/1/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > thx for the corrections, igor. > i have one question though: what if the panel get

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Gerolf Seitz
ing of the component. please correct any false assumption i have (i also don't have too much knowledge of the internals of wicket-ajax) gerolf On 7/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 7/1/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: [...] @Override >

Re: [Wicket-user] dynamic JS question

2007-07-01 Thread Gerolf Seitz
you could try to implement this as a behavior: public class RicoCorner extends AbstractBehavior { private Component component; @Override public void renderHead(IHeaderResponse response) { // add the javascript libraries to the header response.render

Re: [Wicket-user] wicket with database

2007-06-28 Thread Gerolf Seitz
you could take a look at databinder.net hth, gerolf On 6/28/07, tnjtn1 <[EMAIL PROTECTED]> wrote: HI, i am newer to wicket. i would like to know simple application using wicket. tell me url or give example code. Thanks & Regards, kumar -- View this message in context: http://www.nabble.com

Re: [Wicket-user] [Announcement] first release of wicketstuff-animator

2007-06-26 Thread Gerolf Seitz
but i can make a call to setouputmarkupid when the target components are added to the markupidmodel. i'll take a look at it. thx On 6/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 6/26/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > thx, > > but attention: t

Re: [Wicket-user] [Announcement] first release of wicketstuff-animator

2007-06-26 Thread Gerolf Seitz
MarkupIdModel class (with which you can wrap any number of components - the model extracts the markupids of the components). or do you mean, that setOutputMarkupId(true) should be called on every component involved? gerolf On 6/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 6/26/07, Gerolf

[Wicket-user] [Announcement] first release of wicketstuff-animator

2007-06-26 Thread Gerolf Seitz
hi, i just wanted to annouce the release of the project wicketstuff-animator, which integrates the great animation library animator.js [0] and wicket. take a look at the wicketstuff-animator wiki page [1] and check it out from the repository [2] if you want to contribute to wicketstuff-animator

Re: [Wicket-user] where can i get the wicket1.3 documentation

2007-06-26 Thread Gerolf Seitz
and the mailing list archives here: http://www.nabble.com/Wicket---User-f13976.html On 6/26/07, Remco Bos <[EMAIL PROTECTED]> wrote: And the wiki: http://cwiki.apache.org/WICKET/index.html Lec wrote: > > Im just wondering where can i get the wicket1.3 documentation. Been > searching around b

Re: [Wicket-user] How i work wicket with database

2007-06-21 Thread Gerolf Seitz
afaik, the wiki at www.wicket-wiki.org.uk is kind of deprecated, as it's readonly and changes are only applied to the apache wiki at http://cwiki.apache.org/WICKET/ wicket-spring dokumentation: http://cwiki.apache.org/WICKET/spring.html hth, gerolf On 6/21/07, Andreas Walter <[EMAIL PROTECTED]

Re: [Wicket-user] wicket markup inside javascript ?

2007-06-19 Thread Gerolf Seitz
take a look at the class org.apache.wicket.extensions.yui.calendar.DatePicker (in wicket-datetime) there is the following statement in line 183 TextTemplateHeaderContributor.forJavaScript(DatePicker.class, "DatePicker.js ", Model.valueOf(variables)).renderHead(response); this does

Re: [Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker

2007-06-18 Thread Gerolf Seitz
thx for fixing it. using a method is obviously better, too. gerolf On 6/18/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: done checkout https://issues.apache.org/jira/browse/WICKET-661 gerolf On 6/17/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > hi, > > someti

Re: [Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker

2007-06-17 Thread Gerolf Seitz
done checkout https://issues.apache.org/jira/browse/WICKET-661 gerolf On 6/17/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > hi, > sometimes i'd like the datepicker to fire the onchange event of the > component it's bound to. > it doesn't seem to do it ootb. > > the main fix would probably o

Re: [Wicket-user] Live Examples

2007-06-15 Thread Gerolf Seitz
i don't know what the original wicket-examples contained, but if you're looking for some examples, www.wicketstuff.org/wicket13/ might be a good start... On 6/15/07, Stefan Lindner <[EMAIL PROTECTED]> wrote: The live examples link from www.wicketframework.org points to http://www.wicket-library

[Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker

2007-06-15 Thread Gerolf Seitz
hi, sometimes i'd like the datepicker to fire the onchange event of the component it's bound to. it doesn't seem to do it ootb. the main fix would probably only meen to call the onchange() method of the targetcomponent after the call to cal.hide() (line 236 in DatePicker.java) i could also imagi

Re: [Wicket-user] Validating Date to against Date From

2007-06-14 Thread Gerolf Seitz
oh, of course the methods name is "validate" also take a look at the wiki: http://cwiki.apache.org/WICKET/validating-related-fields.html On 6/14/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: take a look at the EqualInputValidator [0] and adapt the onValidate method to your

Re: [Wicket-user] Validating Date to against Date From

2007-06-14 Thread Gerolf Seitz
take a look at the EqualInputValidator [0] and adapt the onValidate method to your needs. [0] http://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/validation/EqualInputValidator.java hth, gerolf On 6/14/07, kubino <[EMAIL PROTE

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Gerolf Seitz
target ) and why would you want to do that for? Gerolf Seitz wrote: > > you could try to invoke the click eventhandler, that is onclick(). i tried > it on a simple example and got the same error with click() in firefox. > onclick() worked like a charm. > > hth, > gerol

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Gerolf Seitz
you could try to invoke the click eventhandler, that is onclick(). i tried it on a simple example and got the same error with click() in firefox. onclick() worked like a charm. hth, gerolf On 5/22/07, Lec <[EMAIL PROTECTED]> wrote: This portion of code works in IE public void onClick( AjaxR

Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-08 Thread Gerolf Seitz
i don't know exactly, but i think the change was made because returning a String[] is how it's in the spec. please correct me if i'm wrong or have the wrong conversation in mind. gerolf On 5/8/07, manu <[EMAIL PROTECTED]> wrote: Dear Sirs, I updated to Wicket 1.2.6 and I have found the follo

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-05-05 Thread Gerolf Seitz
you may want to take a look at the class FormComponentLabel it should do the trick On 5/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Ok, but how does one do labels properly like this (i.e. with a for attribute). A reminder of what this thread was about ... I'm reusing a custom PostalAdd

Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?

2007-05-04 Thread Gerolf Seitz
since you probably don't want to show the login form after a successful login, you could replace the login panel with the logout panel (and vice versa) this could look something like the following: // constructor of class LoginPanel public LoginPanel(final String id) { super(id); th

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-03 Thread Gerolf Seitz
thx a lot On 5/3/07, Johan Compagner <[EMAIL PROTECTED]> wrote: changed it On 5/2/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > hm, i did mess up. there's one more thing left in line 1534: > if (positionArray['w']==-1) positionArray['m'] = for

Re: [Wicket-user] styling options of AbstractChoice

2007-05-03 Thread Gerolf Seitz
thx, works like a charm On 5/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: selectoptions is a quick way to do it. if you want total control then put a repeater into the select and create your own options using selectoption. -igor On 5/1/07, Gerolf Seitz <[EMAIL PROTECTED]> w

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-02 Thread Gerolf Seitz
27;w'] = format.indexOf('w'); after that change, everything works great. sry for that, gerolf On 5/2/07, Johan Compagner <[EMAIL PROTECTED]> wrote: i applied it look if it works for you now. On 5/2/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > thx, > jira

Re: [Wicket-user] styling options of AbstractChoice

2007-05-01 Thread Gerolf Seitz
e let me know. tia, gerolf On 5/2/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: or you can use Select, SelectOption, and SelectOptions in extensions -igor On 5/1/07, Gerolf Seitz < [EMAIL PROTECTED]> wrote: > afaik, there is no way to style options of an AbstractChoice (an

[Wicket-user] styling options of AbstractChoice

2007-05-01 Thread Gerolf Seitz
afaik, there is no way to style options of an AbstractChoice (and it's descendants). i could imagine 3 ways to add this (although i don't know which would be the most wicket-like way) 1) expand IChoiceRenderer add methods like String getClass(), String getStyle() to the IChoiceRenderer interface.

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Gerolf Seitz
thx, jira issue with attached patch: http://wicketstuff.org/jira/browse/WSCAL-1 since it's my first contribution, i hope i didn't mess up ;) gerolf On 5/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: i created a jira project for it -igor On 5/1/07, Gerolf Seitz <[EMAI

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Gerolf Seitz
as for now, i added the week of year pattern 'w' to the wicket-calendar in wicket-stuff. one may click either the week number directly or any day in the desired week. since there is no JIRA project for wicket-calendar (to which i would attach a patch or the whole file), how would you like me to p

Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot

2007-05-01 Thread Gerolf Seitz
i'd like to help "un-limit" the new datepicker in the datetime project. what i personally need is the ability to select a week or a month. i'm not sure though how much we can change the datepicker itself, because it's a YUI widget. however, as i said, i'd really like to contribute... gerolf On