Re: [Wicket-user] Setting date format with the DateTimeField component
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: add(dateField = DateTextField.forShortStyle(date, new PropertyModel(this, date))); and there seems no simple way to override this behaviour. It defaults to MM/dd/ whereas I want /MM/dd. Thanks in advance Mark - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ IMPORTANT NOTICE: This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: users-subscribe at wicket.apache.org and follow the instructions. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] .setVisble not working for webmarkupcontainer
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 I try to do .setVisible(true) and repaint it adding it to AjaxRequestTarget IT DOES NOT SHOW UP Am I going wrong in something? __ Sent from my www.pageflakes.com startpage - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] (no subject)
((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 static files located in my webapp directory. How do I retrieve the servlets path? Thank you for any help. Best regards, Alex - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken on beta2 and snapshot?
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 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 onchange notification. still i think this is actually what would be expected to be the default behavior (the onchange notification), since the value of the associated component does change. Yeah, makes sense, especially because it doesn't typically do any harm. what do you think? Committed the change. anyway, sorry if this issue demands more time than it actually might deserve, due to not enough thinking in the first place... Not at all. It can take many iterations before it's perfect, and I'm glad people are thinking with us. :) Cheers, Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker broken on beta2 and snapshot?
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 onchange notification. still i think this is actually what would be expected to be the default behavior (the onchange notification), since the value of the associated component does change. what do you think? anyway, sorry if this issue demands more time than it actually might deserve, due to not enough thinking in the first place... gerolf On 7/4/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Just noticed that the DatePicker in my Form no longer works. The wicket form examples page also does not work: http://wicketstuff.org/wicket13/forminput/ Yeah, this is fixed in example's trunk (it's actually removed from that example), but there is no ultimate solution for this. The problem is described here: http://issues.apache.org/jira/browse/WICKET-694 (or rather in the thread it references). Still no good idea about a solution. It's one of the things 2.0's constructor change *did* fix, but unfortunately, pros like that didn't outweight the cons. The issue is left open. Hopefully someone get's some fresh inspiration soon. Snippet of code: add(new TextField(dateProperty, Date.class).add(new DatePicker())); As you can read in the above-mentioned thread, you can work around this by not using an id attribute on dateProperty's markup tag. Another question, which is the 'current'/recommended DateTextField implementation as there is one in wicket.datetime and one in wicket.extentions? Doesn't matter much. I prefer the one in wicket-datetime, as there's some magic in there (or rather in the converter is used by default) to adjust for time zones, but if you need just the basics, they're both fine. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dynamic JS question
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.renderJavascriptReference(new JavascriptResourceReference( RicoCorner.class, RICOSCRIPT.js)); } @Override public void bind(Component component) { super.bind(component); if (this.component != null) throw new IllegalStateException( cannot bind behavior to more than one component); this.component = component; this.component.setOutputMarkupId(true); } @Override public void onRendered(Component component) { super.onRendered(component); JavascriptUtils.writeJavascript(component.getResponse(), String.format(Rico.Corner.round('%s');, component .getMarkupId())); } } then just add the RicoCorner to the component you want to decorate. not really the way you wanted to go (borders...), but maybe this is also a suitable solution. hth, gerolf On 7/2/07, Erik Dreyer [EMAIL PROTECTED] wrote: Hi, Thanks in advance for the help as I wrap my mind around Wicket. I'm trying to create a Border component that, using the openRico js library ( www.openrico.org), will output JS that will be called on load to round its own borders. Basically Rico works like this: div id=divWithRoundedCorners... stuff goes here .../div script Rico.Corner.round(divWithRoundedCorners);/script When that is rendered, Rico will round the corners of the named DIV. So, I'm trying to figure out how to create a Border component that has the ability to create dynamic JavaScript containing the element ID of a div defined within the Border. Something like this: RoundedCornerBorder.html (pseudocode): wicket:border div id=thisIsDynamic !-- How do I generate and obtain this at runtime without getting exception (see below)? -- wicket:body/ /div sciptRico.Corner.round(divWithRoundedCorners);/script !-- Again, I need the ID of the dynamic DIV to make this work -- /wicket:border I am open to any suggestions as to an efficient solution. My goal is to be able to use this border multiple times on the same page. I've had trouble with my attempts because when trying to call Component.getMarkupId(), I get an exception with the following message: WicketMessage: This component is not (yet) coupled to a page. It has to be able to find the page it is supposed to operate in before you can call this method (Component#getMarkupId) Thanks, Erik - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dynamic JS question
thx for the corrections, igor. i have one question though: what if the panel get's updated via ajax, wouldn't the whole panel be redrawn and thus loosing the javascript-rendered round corners? that was actually the reason for putting the javascript code after the rendering 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 public void renderHead(IHeaderResponse response) { // add the javascript libraries to the header response.renderJavascriptReference(new JavascriptResourceReference( RicoCorner.class, RICOSCRIPT.js)); response.renderOnLoadJavascript(String.format(Rico.Corner.round('%s');, component .getMarkupId())); } @Override public void bind(Component component) { super.bind(component); if (this.component != null) throw new IllegalStateException( cannot bind behavior to more than one component); this.component = component; this.component.setOutputMarkupId(true); } [removed onrendered] } -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dynamic JS question
thx, igor, for the clarification. although it's been said a lot of times, i have to repeat it: you guys do one hell of a good job teaching us padawans, because at the beginning of one's wicket journey, it's sometimes hard to travel on the right (=wicket) way. and btw, it'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's updated via ajax, wouldn't the whole panel be redrawn and thus loosing the javascript-rendered round corners? that was actually the reason for putting the javascript code after the rendering of the component. please correct any false assumption i have (i also don't have too much knowledge of the internals of wicket-ajax) we (mostly matej) went through a hell of a lot of trouble to make header contributions work properly and transparently even when components are added/repainted via ajax. in fact a pretty large percentage of wicket-ajax.js is dedicated to that javascript :) a small addendum to my previous correction. it might be better to execute that javascript in renderOnDomReadyJavascript - that will be executed once the dom is ready but before the page renders so it will probably minimize chances of that javasript flickering the page. -igor gerolf On 7/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 7/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: [...] @Override public void renderHead(IHeaderResponse response) { // add the javascript libraries to the header response.renderJavascriptReference(new JavascriptResourceReference( RicoCorner.class, RICOSCRIPT.js)); response.renderOnLoadJavascript(String.format(Rico.Corner.round('%s');, component .getMarkupId())); } @Override public void bind(Component component) { super.bind(component); if (this.component != null) throw new IllegalStateException( cannot bind behavior to more than one component); this.component = component; this.component.setOutputMarkupId(true); } [removed onrendered] } -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket with database
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/wicket-with-database-tf3993913.html#a11341474 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] where can i get the wicket1.3 documentation
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 but to no avail Would be appreciated if somebody point me to the site. -- View this message in context: http://www.nabble.com/where-can-i-get-the-wicket1.3-documentation-tf3980393.html#a11302225 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] [Announcement] first release of wicketstuff-animator
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 (since i'm rather a newbie with wicket, there's probably a lot to be improved ;) ), i'd be happy to receive any kind of feedback. so long, gerolf [0] http://berniecode.com/writing/animator.html [1] http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-animator [2] https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-animator/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Announcement] first release of wicketstuff-animator
thx, but attention: the animatiorbehavior is there to bind the action (play, toggle, reverse, ...) of the animator to an event of a component. the objects that will be animated are passed to the constructor of the StyleSubjects (or the convenience methods in Animator) ideally using the 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 Seitz [EMAIL PROTECTED] wrote: 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 (since i'm rather a newbie with wicket, there's probably a lot to be improved ;) ), i'd be happy to receive any kind of feedback. so long, gerolf [0] http://berniecode.com/writing/animator.html [1] http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-animator [2] https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-animator/ looks sweet! i havent looked at the source too closely, but do you have something that automatically calls setoutputmarkupid(true) on the object that will be animated. that would make it less error prone. maybe abstractanimationbehavior { onbind(component c) { c.setoutputmarkupid(true); ... } -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [Announcement] first release of wicketstuff-animator
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: the animatiorbehavior is there to bind the action (play, toggle, reverse, ...) of the animator to an event of a component. the objects that will be animated are passed to the constructor of the StyleSubjects (or the convenience methods in Animator) ideally using the 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? it should be called on any component that javascript expects to interact with, so in this case something like this would be better MarkupIdModel.getobject() { c.setoutputmarkupid(true); return c.getmarkupid(); ) == the problem with that is that you are already in the render phase and it might be too late to call setoutputmarkupid on c. but oh well. cant do everything for users :) -igor gerolf On 6/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/26/07, Gerolf Seitz [EMAIL PROTECTED] wrote: 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 (since i'm rather a newbie with wicket, there's probably a lot to be improved ;) ), i'd be happy to receive any kind of feedback. so long, gerolf [0] http://berniecode.com/writing/animator.html [1] http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-animator [2] https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-animator/ looks sweet! i havent looked at the source too closely, but do you have something that automatically calls setoutputmarkupid(true) on the object that will be animated. that would make it less error prone. maybe abstractanimationbehavior { onbind(component c) { c.setoutputmarkupid(true); ... } -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How i work wicket with database
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] wrote: Hi Kumar, use the spring dao integration with wicket: http://www.wicket-wiki.org.uk/wiki/index.php/Spring Regards, Andres 2007/6/21, tnjtn1 [EMAIL PROTECTED]: How to work wicket with database. any url please. with sample application Regards, kumar -- View this message in context: http://www.nabble.com/How-i-work-wicket-with-database-tf3957803.html#a11230335 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket markup inside javascript ?
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 the following: it takes the file DatePicker.js, which wicket finds relativ to the location of DatePicker.class and substitues every ${VARIABLENAME} text it can find in DatePicker.js with the value mapped to the key VARIABLENAME in the Map variables. 1) so you might want to put the javascript in a file. the line would look like: var myvar = '${myvalue}'; 2) let the component (or behaviour) implement IHeaderContributor and implement the renderHead method like the following 2.a) put the key/value in a map: Map variables = new HashMap(); variables.put(myvalue, foo); 2.b) put this statement after all variables have been put in the map TextTemplateHeaderContributor.forJavaScript(MyClass.class, MyScript.js, Model.valueOf(variables)).renderHead(response); hth, gerolf On 6/19/07, Matthieu Casanova [EMAIL PROTECTED] wrote: Hi, I want to change some contents in javascript but I don't know exactly how to do that : here is my example : script type=text/javascript wicket:id=js var myvar = 'value'; /script I can write the entire content of the javascript like that : String foo ... new Label(js,var myvar = '+foo+';); But I don't like that because I only want to change the value of myvar. Any better idea to do that ? thanks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker
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, 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 imagine making this optional, by adding a constructor DatePicker(boolean notifyOnSelect) and setting the default to false to not break existing code. any comments? should i open a jira issue with a patch? Yes please. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket-datetime] fire onchange() after date was selected with datepicker
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 only meen to call the onchange() method of the targetcomponent after the call to cal.hide() (line 236 in DatePicker.java) i could also imagine making this optional, by adding a constructor DatePicker(boolean notifyOnSelect) and setting the default to false to not break existing code. any comments? should i open a jira issue with a patch? Yes please. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Live Examples
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.com/wicket-examples This site shows Proxy Error The document has moved here [http://www.kattare.com/error502.kvws]; - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Validating Date to against Date From
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 PROTECTED] wrote: Hi , It is possible to have something like this DateTextField dateFrom = new DateTextField(someid,new PropertyModel(somemodel,dateFrom)); DateTextField dateTo = new DateTextField(someid,new PropertyModel(somemodel,dateTo)); dateTo.add(DateValidator.minimum(someModel.getDateFrom)); I want to not have dateTo before date from, but this validator doesnt help me becouse it trows me null pointer exception, i looks like the minimum value is passed in the construction time, not dynamically getted after conversion. Is there a solution? Thx in advance -- View this message in context: http://www.nabble.com/Validating-Date-to-against-Date-From-tf3920457.html#a6291 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Validating Date to against Date From
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 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 PROTECTED] wrote: Hi , It is possible to have something like this DateTextField dateFrom = new DateTextField(someid,new PropertyModel(somemodel,dateFrom)); DateTextField dateTo = new DateTextField(someid,new PropertyModel(somemodel,dateTo)); dateTo.add(DateValidator.minimum(someModel.getDateFrom)); I want to not have dateTo before date from, but this validator doesnt help me becouse it trows me null pointer exception, i looks like the minimum value is passed in the construction time, not dynamically getted after conversion. Is there a solution? Thx in advance -- View this message in context: http://www.nabble.com/Validating-Date-to-against-Date-From-tf3920457.html#a6291 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?
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( AjaxRequestTarget target ) { target.appendJavascript(document.getElementById ('paragraph').click();) } but it DOESN't WORK in FireFox. Using the Wicket Debug console, it said ERROR: Exception evaluating javascript: TypeError: document.getElementById(paragraph).click is not a function Is this a bug? igor.vaynberg wrote: you do this using javascript, no roundtrip to the server is required. see some smooth scroll javascripts on the net. -igor On 5/21/07, Lec [EMAIL PROTECTED] wrote: Im trying to figure out a way to make button behave as if it's like a link component upon clicked. I want a button to archieve the same behaviour as link, and upon clicked, a particular html region will be focused or displayed, just like the same behaviour when you setAnchor in link component. But the thing now is that, button doesn't provide any method to set an anchor. How do we do that? -- View this message in context: http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10714844 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10733403 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?
i meant you should rather call document.getElementById('paragraph').onclick() than document.getElementById('paragraph').click() On 5/22/07, Lec [EMAIL PROTECTED] wrote: How do you invoke the eventhandler onclick() within public void onClick( AjaxRequestTarget 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, gerolf On 5/22/07, Lec [EMAIL PROTECTED] wrote: This portion of code works in IE public void onClick( AjaxRequestTarget target ) { target.appendJavascript(document.getElementById ('paragraph').click();) } but it DOESN't WORK in FireFox. Using the Wicket Debug console, it said ERROR: Exception evaluating javascript: TypeError: document.getElementById(paragraph).click is not a function Is this a bug? igor.vaynberg wrote: you do this using javascript, no roundtrip to the server is required. see some smooth scroll javascripts on the net. -igor On 5/21/07, Lec [EMAIL PROTECTED] wrote: Im trying to figure out a way to make button behave as if it's like a link component upon clicked. I want a button to archieve the same behaviour as link, and upon clicked, a particular html region will be focused or displayed, just like the same behaviour when you setAnchor in link component. But the thing now is that, button doesn't provide any method to set an anchor. How do we do that? -- View this message in context: http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10714844 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10733403 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10737393 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https
Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)
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 following behavior when using BookmarkablePageLink (which was not happening before in Wicket 1.2.5). The code example is: private class Link1 extends BookmarkablePageLink { private static final long serialVersionUID = 1L; public Link1(String linkId, String labelId, String labelValue, PageParameters params) { super(linkId, Page1.class, params); this.add(new Label(labelId, labelValue)); } } When clicking on this link the error on Page1 (target page that recovers params) is: Caused by: java.lang.ClassCastException After debugging it, I found that the page parameters (Strings added to params) were converted to String[1], id est, all arrays, when creating the BookmarkablePageLink. So it seems that there inside happens this String2String[] transformation. To jump over this issue, for the moment, I had to switch to standard Link class, avoiding the use of BookmarkablePageLink. What's the solution to this? Thanks ;) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Nested Forms and onSubmit()?
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 PostalAddressFieldsetPanel component twice in a form so eventual markup sent to browser should look something like this: fieldset legendDelivery address/legend label for=deliveryAddress_streetStreet/label input type=text id=deliveryAddress_street ... / ... /fieldset fieldset legendInvoice address/legend label for=invoiceAddress_streetStreet/label input type=text id=invoiceAddress_street ... / ... /fieldset If I delegate to the framework to create the unique 'id' attributes for the input tags as explained below, how do I make sure the 'for' attributes of their labels have the same values. Cheers, Derek -Original Message- From: [EMAIL PROTECTED] on behalf of Martijn Dashorst Sent: Mon 4/30/2007 4:26 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Nested Forms and onSubmit()? On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, but name != id in xhtml and the value of xhtml id attributes on the page must be unique or it isn't valid. Do I need to ensure that any custom components do not include an xhtml id attribute? Yes you do, but you can let Wicket generate the id's for you with setOutputMarkupId(true). Wicket will take care of making them unique in your page. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user * Email confidentiality notice * This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. The London School of Economics and Political Science (the School) is a company limited by guarantee, registered in England and Wales, under registered number 00070527, and having its registered office at 10th Floor, Tower One, Houghton Street, London WC2A 2AE. The inclusion of this information does not of itself make this email a business document of the School and, to the maximum extent permitted by law, the School accepts no liability for the content and opinions in any non-business emails. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How may I access a Panel A from another Panel B (Ajax)?
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); this.setOutputMarkupId(true); Form form = new Form(form); form.add(new AjaxSubmitButton(login, form) { protected void onSubmit(AjaxRequestTarget target, Form form) { Panel panel = new LogoutPanel(id); panel.setOutputMarkupId(true); LoginPanel.this.replaceWith(panel); target.addComponent(panel); } }.setOutputMarkupId(true)); add(form); } any comment on this approach? On 5/4/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello, I have two panels, one that is mostly a form for login (user/pass +button) and the other panel is just a link (onClick==logou). Now I changed the button for the login form to an ajax button. Everythig works fine. The thing is that I had a code something like this in the logout panel. @Override public boolean isVisible(){ return getMyWicketSession().isUserLoggedIn(); } this code made every round trip evaluate whether the user was still logged in and if so then render the appropriate option to logout. how could I add to the target, the logout panel, do I need to pass it through the constructor : private final logoutPanel; public LoginPanel(String id, LogoutPanel panel){ logoutPanel = panel; } AjaxonSubmit(target...{ target.add(logoutPanel) } ?? Or could I just set in the constructor of the LogoutPanel setOutputMarkupId(true) and then call on it from the onSubmit AJAX button? I am a bit lost on this. Or could I just add a simple JavaScript document.getElementById('logoutPanel').style.visibility = visible; f(t) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] styling options of AbstractChoice
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] wrote: hm, good point. but i still see one limitation with SelectOptions: how can i add a class attribute with a value depending on the option-model. i can't seem to achieve this with adding a behavior to SelectOptions, since the behavior binds to the wrong component. if i missed something, please 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 (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. this will definitely break existing code, and is probably not the best way to go 2) create new interface IStyledChoiceRenderer extending IChoiceRenderer add the mentioned methods to the new interface. things to do in AbstractChoice.appendOptionHtml: +check, whether the renderer is instanceof IStyledChoiceRenderer +add class and/or style attribute if the returned string is not null and length0 3) expand AbstractChoice add the mentioned methods (params like the method isDisabled()) to the class returning an empty string as the default implementation allowing to override these methods if needed. any thoughts from experienced users/devs? gerolf p.s.: i should probably add a jira issue. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
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'] = format.indexOf('w'); the quoted 'm' should be replaced with a w. the right line is: if (positionArray['w']==-1) positionArray['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 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 [EMAIL PROTECTED] wrote: 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 provide this contribution? gerolf On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: This is the one i currently use: https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar it works pretty well for what it should do I haven't heard from the javascript author back that he wants to change the license so its on wicket stuff for the moment. johan On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: 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. Not sure either. Might be a big pain. If it's too much work, we can try urge Johan/ others more to add their datepicker components. I thought he found one that supports that. however, as i said, i'd really like to contribute... That's always very welcome. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
hm, i did mess up. there's one more thing left in line 1534: if (positionArray['w']==-1) positionArray['m'] = format.indexOf('w'); the quoted 'm' should be replaced with a w. the right line is: if (positionArray['w']==-1) positionArray['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 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 [EMAIL PROTECTED] wrote: 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 provide this contribution? gerolf On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: This is the one i currently use: https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar it works pretty well for what it should do I haven't heard from the javascript author back that he wants to change the license so its on wicket stuff for the moment. johan On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: 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. Not sure either. Might be a big pain. If it's too much work, we can try urge Johan/ others more to add their datepicker components. I thought he found one that supports that. however, as i said, i'd really like to contribute... That's always very welcome. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
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 4/30/07, Eelco Hillenius [EMAIL PROTECTED] wrote: The issue you reported doesn't make sense to me atm, but I'm sure it's not bug free yet. However, it'll be someday (and hopefully that is soon), and the issue is not related to the datepicker I think. The datetime project is still new, and the datepicker more limited than the old one, but we can all work on that :) Eelco On 4/30/07, Martin Funk [EMAIL PROTECTED] wrote: Sorry Eelco for beeing such a pain ;-) but unless I missed something, wicket-datetime's DateField is still throwing NPE's, making it somewhat hard to use. Martin Eelco Hillenius schrieb: yeah. And there's a separate project with a new datepicker now as well: wicket-datetime. Eelco On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ok, found it: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-datepicker -Original Message- From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED] Sent: Mon 4/30/2007 3:52 PM To: wicket-user@lists.sourceforge.net Subject: from 1.2.6 to 1.3.0 snapshot Ta, I've just upgraded and prefixed all wicket imports with org.apache. Only problemo seems to be that wicket.extensions.markup.html.datepicker.DatePicker has disappeared. Any idea where it went? Derek -Original Message- From: [EMAIL PROTECTED] on behalf of Matej Knopp Sent: Mon 4/30/2007 2:10 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Nested Forms and onSubmit()? hi, i just want to mentioned that there were a nasty bug in 1.3 nested form processing that was fixed today, so if you have any issues with it i suggest you upgrading wicket to see if it helps. -Matej On 4/30/07, Martijn Dashorst [EMAIL PROTECTED] wrote: As for your first question, I think the following is a better approach: public AddressFieldsetPanel(String id, IModel address) { super(id, new CompoundPropertyModel(address)); } and : form.add(new AddressFieldsetPanel(billing, new PropertyModel(form.getModel(), billing; form.add(new AddressFieldsetPanel(shipping, new PropertyModel(form.getModel(), shipping; then the wiring of the addresses can be done in the model object itself: Invoice invoice = new Invoice(); invoice.setBilling(new Address()); invoice.setShipping(new Address()); Martijn On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: imho all he should do is extend a panel, and make sure that panel is always inside a form. there is no need to have a form to group a few fields together. Thanks, that's how I was thinking it should be a Fieldset so to speak. Have progressed a bit down that route but still have a couple of related questions. Am new to Wicket and trying to learn how to do forms (binding and validation) the Wicket way. Here's where I'm at so far with a simplistic example I'm using (abbreviated syntax for clarity): PurchaseOrder { String customerName PostalAddress deliveryAddress PostalAddress invoiceAddress } PostalAddress { String addressLine String municipality String postalCode String country } PurchaseOrderForm extends Form { public PurchaseOrderForm(String name) { super(name, new CompoundPropertyModel(new PurchaseOrder())); add(new RequiredTextField(customerName)); add(new PostalAddressFieldset(deliveryAddress, new PostalAddress())); // ??? add(new PostalAddressFieldset(invoiceAddress, new PostalAddress())); // ??? ) } PostalAddressFieldset extends Panel { public PostalAddressFieldset(String id, PostalAddress postalAddress) // ??? { super(id, new CompoundPropertyModel(postalAddress)); // ??? add(new RequiredTextField(addressLine)); add(new RequiredTextField(municipality)); add(new RequiredTextField(postalCode)); add(new RequiredTextField(country)); } Bit I'm not sure about is how to wire up the binding of the nested model object (PostalAddress) to the nested Fieldset (PostalAddressFieldset), see question marks in comments above. Have done it like this so far to get it to compile but it is obviously wrong as I'm interested in the nested PostalAddress objects, not new ones. Second question is whether Wicket provides support for creating unique id's for elements. My html for the PostalAddressFieldset includes things like: input wicket:id=addressLine id=addressLine type=text size=40/ Obviously this is no good as when I use this component multiple times on a form, I end up with multiple fields with the same id. Any advice
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
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 provide this contribution? gerolf On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: This is the one i currently use: https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar it works pretty well for what it should do I haven't heard from the javascript author back that he wants to change the license so its on wicket stuff for the moment. johan On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: 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. Not sure either. Might be a big pain. If it's too much work, we can try urge Johan/ others more to add their datepicker components. I thought he found one that supports that. however, as i said, i'd really like to contribute... That's always very welcome. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
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 [EMAIL PROTECTED] wrote: 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 provide this contribution? gerolf On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: This is the one i currently use: https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar it works pretty well for what it should do I haven't heard from the javascript author back that he wants to change the license so its on wicket stuff for the moment. johan On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: 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. Not sure either. Might be a big pain. If it's too much work, we can try urge Johan/ others more to add their datepicker components. I thought he found one that supports that. however, as i said, i'd really like to contribute... That's always very welcome. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] styling options of AbstractChoice
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. this will definitely break existing code, and is probably not the best way to go 2) create new interface IStyledChoiceRenderer extending IChoiceRenderer add the mentioned methods to the new interface. things to do in AbstractChoice.appendOptionHtml: +check, whether the renderer is instanceof IStyledChoiceRenderer +add class and/or style attribute if the returned string is not null and length0 3) expand AbstractChoice add the mentioned methods (params like the method isDisabled()) to the class returning an empty string as the default implementation allowing to override these methods if needed. any thoughts from experienced users/devs? gerolf p.s.: i should probably add a jira issue. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] styling options of AbstractChoice
hm, good point. but i still see one limitation with SelectOptions: how can i add a class attribute with a value depending on the option-model. i can't seem to achieve this with adding a behavior to SelectOptions, since the behavior binds to the wrong component. if i missed something, please 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 (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. this will definitely break existing code, and is probably not the best way to go 2) create new interface IStyledChoiceRenderer extending IChoiceRenderer add the mentioned methods to the new interface. things to do in AbstractChoice.appendOptionHtml: +check, whether the renderer is instanceof IStyledChoiceRenderer +add class and/or style attribute if the returned string is not null and length0 3) expand AbstractChoice add the mentioned methods (params like the method isDisabled()) to the class returning an empty string as the default implementation allowing to override these methods if needed. any thoughts from experienced users/devs? gerolf p.s.: i should probably add a jira issue. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user