Wicket Date Field Validation

2009-06-18 Thread Rao Archana (HCTM/ETA)
Hi, I am working on date fields and have problems with the validation. I have referred to the link below which helped me. http://www.nabble.com/Strict-4-digit-year-for-DateTextField--td18656889. html So I have subclassed the PatternDateConverter and have set the pattern as, dateFormat =

Re: Wicket Date Field Validation

2009-06-18 Thread Matthias Keller
Rao Archana (HCTM/ETA) wrote: Hi, I am working on date fields and have problems with the validation. I have referred to the link below which helped me. http://www.nabble.com/Strict-4-digit-year-for-DateTextField--td18656889. html So I have subclassed the PatternDateConverter and have set

RE: wicketstuff mini veil

2009-06-18 Thread Jing Ge (Besitec IT DEHAM)
Thanks for the replay. The label is just example code. You can try doing anything in the onSubmit(..) method of the AjaxButton(). The point is that the button is disabled when Veil is used. Best regards! Jing --- -Original

Re: Conversation scope in wicket

2009-06-18 Thread svenmeier
What is this 'conversation' all about? It doesn't seem to be a known concept in any GUI guideline I know (e.g. Apple's Human Interface Guidelines). Neither does wikipedia list it under http://en.wikipedia.org/wiki/GUI_widget. This is what wikipedia is saying about Seam's conversation: 'The

UrlValidator rfc3986 version?

2009-06-18 Thread yong mook kim
Hi, Currently Wicket is using rfc2396 for URL validator, may be know any plan to migrate URL validator for rfc3986 ? http://www.ietf.org/rfc/rfc2396.txt http://www.ietf.org/rfc/rfc3986.txt best regards yong - To

Reverse geocoding with wicket contrib gmap2

2009-06-18 Thread Jesse Kivialho
Hi, I'm using wicket 1.3.5. and downloaded the wicket contrib gmap2 from the wicket-stuff 1.3.x branch (https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicket-contrib-gmap2/) I've noticed that the GClientGeocoder knows the reverse geocoding also. When I

Who went to the GWT vs Wicket presentation in Normandy and wants to share their findings?

2009-06-18 Thread Martijn Dashorst
There's been quite some announcements going across twitter, but no conclusion... Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Jozsa
Doing: public MyPage() { ... add(new MyPanel(panelId)); ... } dragging elements (having DraggableBehavior) of 'MyPanel' works. However doing: ... @Override public void onClick(AjaxRequestTarget target) { Panel panel = new MyPanel(panelId);

Re: Conversation scope in wicket

2009-06-18 Thread Johan Compagner
+1 that whole api like beginConversation, end etc just looks to me like set/get methods on session. Or and that is in my eyes better is to transport the conversation object (1 object not many) from 1 page to the next or use as below 1 page and just replace panels. And then the page model object

Re: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Wojciech Żaboklicki
I think it's the simmilar situation like here http://www.nabble.com/DOJO-Menu-Items-and-AJAX-Target-Components-td24020833.html I posted here few days ago about dojo-menus, but I couldn't solve it. There is a problem attaching js behavior on ajax rerendered components. Is there anybody here who

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
+1 I fully agree. Conversation scope is a kludge for a broken model, and in the end nothing more than a specialized form of global variables. Just put your state into the appropriate page or component instances and/or models, and you get *any* scope you need, for free. Carl-Eric On Thu, 18

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
On Thu, Jun 18, 2009 at 7:07 AM, Carl-Eric Menzel cm.wic...@users.bitforce.com wrote: +1 I fully agree. Conversation scope is a kludge for a broken model, and in the end nothing more than a specialized form of global variables. To which model are you referring? Just put your state into

Re: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Jozsa
Found that when panel is constructed like: public MyPage() { ... add(new MyPanel(panelId)); ... } markup of a draggable element is: span id=id123456 class=myClass ui-draggable ... []/span However when: ... @Override public void

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 07:21:36 -0400 James Carman jcar...@carmanconsulting.com wrote: I fully agree. Conversation scope is a kludge for a broken model, and in the end nothing more than a specialized form of global variables. To which model are you referring? Not a model in the Wicket

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
On Thu, Jun 18, 2009 at 7:46 AM, Carl-Eric Menzel cm.wic...@users.bitforce.com wrote: Then you already have an object that your components can work on. Put that in a Wicket model and enjoy. My point is this: You either have existing business code that supports conversations - then you don't

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 08:10:33 -0400 James Carman jcar...@carmanconsulting.com wrote: On Thu, Jun 18, 2009 at 7:46 AM, Carl-Eric Menzel cm.wic...@users.bitforce.com wrote: Then you already have an object that your components can work on. Put that in a Wicket model and enjoy. My point is this:

RE: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Lindner
I can't see a solution for what you are doing. ... @Override public void onClick(AjaxRequestTarget target) { Panel panel = new MyPanel(panelId); addOrReplace(panel); target.addComponent(panel); } creates a NEW Panel and the NEW panel is a totally new

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
On Thu, Jun 18, 2009 at 8:27 AM, Carl-Eric Menzel cm.wic...@users.bitforce.com wrote: The idea of a conversation has been around for a long time.  It's called a stateful session bean. You have a point there. But I think this is all provided by Wicket already - You have components and models

Re: Who went to the GWT vs Wicket presentation in Normandy and wants to share their findings?

2009-06-18 Thread Yann PETIT
Hi Martjin and all of you Wicket fans, I was there ! (as president of Normandy Java User Group) It was our first JUG meeting in a small French countryside city (Rouen in Normandie) we had around 35 attendees. (great success for us, preceding IT meetings organized in our area never drove more than

default integer form values

2009-06-18 Thread Bas Vroling
I have a form with a textfield bound to an object containing interger values: TextFieldInteger residueNumber = new TextFieldInteger( residueNumber, new PropertyModelInteger(pso, residueNumber)); when this field is

Ajax enabled pages are slow to load

2009-06-18 Thread Ames, Tim
I have recently converted a project from 1.3.5 to 1.4.rc-4. The only thing that I have changed with it is adding all the generics. On pages, panels, etc. that I have ajax classes, the pages are taking a great deal of time to load. They were not exactly quick to load for me in 1.3.5, but in

Mysterious NullPointerException

2009-06-18 Thread Jeremy Levy
I see the following a few times a day, this is with Wicket 1.3.6. It results in a 500 being displayed to the user... 2009-06-18 00:53:09,485 ERROR Web [RequestCycle] : java.lang.NullPointerException I realize this isn't much to go on, any ideas? j

RE: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Jozsa
Hi Stefan, Sorry, but I missed to specify that DraggableBehavior is added to (undefined/variable number of) components of 'MyPanel', that is not to the panel itself. So, using the same 'MyPanel' constructor in both cases DraggableBehavior is added (by Java code) to those components of

RE: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Lindner
Do I understand you right, you have something like Class MyPanel { public MyPanel(...) { Component c = new Component(...); c.add(new Draggable()); // some more components with draggable } } MyPage extends WebPage { Public MyPage() {

RE: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Jozsa
Yes, that is, you right ! Having: Panel myPanel = new MyPanel(panelId); depending how is rendered by 1. addOrReplace(myPanel) in a page constructor or by 2. target.addComponent(myPanel) in an event callback method the result is different ! Stefan --- On Thu, 6/18/09, Stefan Lindner

Re: default integer form values

2009-06-18 Thread Per Lundholm
What is the initial value of residueNumber? /Per On Thu, Jun 18, 2009 at 3:35 PM, Bas Vrolingbvrol...@cmbi.ru.nl wrote: I have a form with a textfield bound to an object containing interger values: TextFieldInteger residueNumber = new TextFieldInteger(                                

Re: Mysterious NullPointerException

2009-06-18 Thread Per Lundholm
No. ;-) Are you suggesting that the version of Wicket matters? How does the stack dump look in your logs? /Per On Thu, Jun 18, 2009 at 4:25 PM, Jeremy Levyjel...@gmail.com wrote: I see the following a few times a day, this is with Wicket 1.3.6.  It results in a 500 being displayed to the

Re: default integer form values

2009-06-18 Thread James Carman
so, it's 0 On Thu, Jun 18, 2009 at 10:48 AM, Bas Vrolingbvrol...@cmbi.ru.nl wrote: It is an unitialized int (private int residueNumber;) On 18 Jun, at 16:46, Per Lundholm wrote: What is the initial value of residueNumber? /Per On Thu, Jun 18, 2009 at 3:35 PM, Bas

Re: Mysterious NullPointerException

2009-06-18 Thread Jeremy Levy
Per, There is no stack dump, that is the entire output. J On Thu, Jun 18, 2009 at 10:48 AM, Per Lundholm per.lundh...@gmail.comwrote: No. ;-) Are you suggesting that the version of Wicket matters? How does the stack dump look in your logs? /Per On Thu, Jun 18, 2009 at 4:25 PM, Jeremy

Reverse Proxy and AJAX

2009-06-18 Thread T Ames
My company is going to start using a Juniper Reverse Proxy server for VPN access. We have a large mix of different web technologies in use. Wicket is one of them. What this product does is URL rewriting to make things work. I am having a problem with Wicket AJAX functions working properly. Below

Re: Reverse geocoding with wicket contrib gmap2

2009-06-18 Thread Martin Funk
Now that's getting quite JavaScript'isch, out of the box, this might not be possible. May I recap on this though, just to see if I got it right. A good starting point in this area to me allways seems to get aware of the runtime calling sequence and then think of the code that could set

RE: WicketJQuery: Drag drop behavior lost for components of AJAX updated panels

2009-06-18 Thread Stefan Lindner
I can't reproduce this error. It works form e. Take a look into trunk. In the Example, the DraggableElement (draggable1) is now a panel with some draggable element inside. The whole panel gets replaced if you klick on the AjaxLink. Dragging still works after the replacement. You can respond to

Re: Ajax enabled pages are slow to load

2009-06-18 Thread Igor Vaynberg
seems quiet strange. wicket does not spawn threads - but your ajax calls do. so the question is what is spawning the threads before the page renders? -igor On Thu, Jun 18, 2009 at 6:55 AM, Ames, Timtim.a...@promedica.org wrote: I have recently converted a project from 1.3.5 to 1.4.rc-4.  The

Re: default integer form values

2009-06-18 Thread Igor Vaynberg
use Integer if you want support for nulls -igor On Thu, Jun 18, 2009 at 7:48 AM, Bas Vrolingbvrol...@cmbi.ru.nl wrote: It is an unitialized int (private int residueNumber;) On 18 Jun, at 16:46, Per Lundholm wrote: What is the initial value of residueNumber? /Per On Thu, Jun 18, 2009 at

Re: Mysterious NullPointerException

2009-06-18 Thread Igor Vaynberg
that is rather strange, there should be the stack trace. why dont you change your logger to show the line numbers so we can see where the log statement is coming from. -igor On Thu, Jun 18, 2009 at 7:53 AM, Jeremy Levyjel...@gmail.com wrote: Per, There is no stack dump, that is the entire

Re: Reverse geocoding with wicket contrib gmap2

2009-06-18 Thread Jesse Kivialho
Well I don't need that much events. The dragging doesn't have to emit an event, just the final dragend (which already exists in the gmap2 project). So the runtime would be more like: The end of dragging a marker should emit events (which it does) The GCG should pick these up and reverse

Re: Reverse geocoding with wicket contrib gmap2

2009-06-18 Thread John Krasnay
Hehe, when I first saw reverse geocoding I read reverse geolocation, as in you point to a spot on a Google map and you get teleported there. Now *there's* a browser feature I'd pay for! jk On Thu, Jun 18, 2009 at 06:46:59PM +0300, Jesse Kivialho wrote: Well I don't need that much events. The

Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi alli am working on a prototype which i think will convince you that conversation is an important concept, it is very onject oriented as wicket is and has many use cases On Thu, Jun 18, 2009 at 7:38 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you are free to implement this as an open

Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi all On Thu, Jun 18, 2009 at 7:44 AM, James Carman jcar...@carmanconsulting.comwrote: On Thu, Jun 18, 2009 at 12:38 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you are free to implement this as an open source addition to wicket. there is wicketstuff or googlecode or sf.net where

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
JSR-299 is somewhat of a moving target right now, so it's hard to stay up-to-date with it. I'm mainly working with the OpenWebBeans folks on it. On Thu, Jun 18, 2009 at 2:03 PM, Joe Fawzy joewic...@gmail.com wrote: Hi all On Thu, Jun 18, 2009 at 7:44 AM, James Carman

Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi Igor On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: class mysession extends websesison { private mapstring, mapobject,object coversations; public mapobject,object getconversation(ipagemap pmap) { return conversations.get(pmap.getid()); } } in

Re: Popup Editor using TinyMCE and ModalWindow

2009-06-18 Thread Fernando Wermus
I am having the same problem than you. How do you solve it? On Fri, Apr 24, 2009 at 1:45 AM, sshark ssh...@gmail.com wrote: Hi, I want to construct popup WYSIWYG editor using TinyMCE and ModalWindow. What I got was an ordinary un-mocked up plain textarea in the pop up dialog box. I have

Re: Popup Editor using TinyMCE and ModalWindow

2009-06-18 Thread Fernando Wermus
This is the answer, /** * This is needed because even though {...@link TinyMceBehavior} implements IHeaderContributor, * the header doesn't get contributed when the component is first rendered though an AJAX call. * @see https://issues.apache.org/jira/browse/WICKET-618 (which

[announce] Wicket 1.4-RC5 released

2009-06-18 Thread Jeremy Thomerson
The Apache Wicket team is proud to announce the availability of the fifth release candidate for the newest version of Wicket - 1.4. A lot of bugs have been squashed and several improvements implemented. If you are already using earlier versions of 1.4, it is recommended you update to Wicket

Re: ResourceReference not locale aware?

2009-06-18 Thread Jeremy Thomerson
Possible, but hard to believe that no one else has reported. Could you create a quickstart and attach it to a JIRA issue, then post the issue number back to this thread so that we can look into it? Thanks! -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jun 17, 2009 at 9:34 AM,

[announce] Wicket 1.4-RC5 released

2009-06-18 Thread Jeremy Thomerson
The Apache Wicket team is proud to announce the availability of the fifth release candidate for the newest version of Wicket - 1.4. A lot of bugs have been squashed and several improvements implemented. If you are already using earlier versions of 1.4, it is recommended you update to Wicket

Re: Turning off ModificationWatcher

2009-06-18 Thread cretzel
This way you won't get no exceptions any more, but it's also terrible to develop without ModificationWatching. GAE does not allow spawning threads even in the local development environment. I tried to use my own implementation of a modification watcher, that does not spawn any threads but

Re: Turning off ModificationWatcher

2009-06-18 Thread Igor Vaynberg
or you can add an rfe into jira to make it more open... -igor On Thu, Jun 18, 2009 at 3:11 PM, cretzelmailinglists...@gmail.com wrote: This way you won't get no exceptions any more, but it's also terrible to develop without ModificationWatching. GAE does not allow spawning threads even in

Re: [announce] Wicket 1.4-RC5 released

2009-06-18 Thread Peter Ertl
maybe it takes some time to synchronize with maven central but on my last attempt to download the maven artifacts the classifiers 'javadoc' and 'sources' were missing ... besides that it's great to see the final release getting closer :-) Am 18.06.2009 um 23:06 schrieb Jeremy Thomerson:

JDeveloper - Can I get a show of hands?

2009-06-18 Thread Dane Laverty
Our management has chosen to make JDeveloper 11g the required IDE for the department. Searching the Wicket mailing list archives, I find that there is very little discussion about JDev. I'd be interested to know, are any of you currently using JDeveloper as your main Wicket IDE?

Re: JDeveloper - Can I get a show of hands?

2009-06-18 Thread Nick Heudecker
JDeveloper? *crickets* :) -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com

Re: Wicket Date Field Validation

2009-06-18 Thread wicketQ
Hi Matt, yay!! It works!! Thank you very much! Matthias Keller wrote: Rao Archana (HCTM/ETA) wrote: Hi, I am working on date fields and have problems with the validation. I have referred to the link below which helped me.

TinyMCE bug: http://readystate4.com/2009/05/15/tinymce-typeerror-twindocument-is-null-in-firebug-console/

2009-06-18 Thread Fernando Wermus
I am trying to run a TinyMCE in a ModalWindow. If the modalWindow is closed TinyMCE requires removes some instances through its api: tinyMCE.execCommand('mceRemoveControl', false, 'idTextArea'); tinyMCE.execCommand('mceAddControl', false, 'idTextArea'); But modalWindow close button didn't inform

Wicket and Single Sign-on?

2009-06-18 Thread Jeff Longland
I'm relatively new to Wicket and trying not to carry forward any preconceived notions from other frameworks. What is the suggested/preferred means of authenticating single sign-on requests from another application? In particular, I'm thinking about MAC

Re: Wicket and Single Sign-on?

2009-06-18 Thread Igor Vaynberg
saying that you will use MAC doesnt really say HOW you are going to implement sso. if you are going to use CAS, at least from what i understand of it, here is one way the integration can work: user is on a page they click a link that requires login your iauthorizationstrategy implementation

Re: JDeveloper - Can I get a show of hands?

2009-06-18 Thread Ryan Gravener
http://instantcrickets.com Ryan Gravener http://bit.ly/no_word_docs On Thu, Jun 18, 2009 at 7:12 PM, Nick Heudecker nheudec...@gmail.comwrote: JDeveloper? *crickets* :) -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com

application-level properties not component properties.

2009-06-18 Thread Steve Tarlton
I hope I finally figured out how to post to this... I am very knew to Wicket and web app development but very experience Java client application developer (Swing). I read Wicket-in-Action pretty much cover-to-cover and would highly recommend it to anyone wanting to learn Wicket! Anyway, getting

Re: application-level properties not component properties.

2009-06-18 Thread Igor Vaynberg
getClass().getClassLoader().getResourceAsStream() has always worked fine for me. also did you check your war and make sure the properties file was packaged? i see you are using spring? (ApplicationContext) if so you might want to look at propertyconfigurer - it is easy to setup a bean:

Hibernate Transactions and Wicket

2009-06-18 Thread Ryan
I have been reading Nick Wiedenbrueck's blog, specifically about patterns and pitfalls when using wicket with spring and hibernate. It seems fairly common for programmers to run into the issue of having entities persisted to the database at unexpected times. This happens when a transaction is