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 Message-

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 defau

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 u

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 tr

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 is

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 m

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 Ju

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
On Thu, Jun 18, 2009 at 7:07 AM, Carl-Eric Menzel 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 the appropriate page or

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: [] However when: ... @Override public void onClick(AjaxRequestTarget target) { Panel panel = new MyPanel("panel

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 07:21:36 -0400 James Carman 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 sense, but the model of ap

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
On Thu, Jun 18, 2009 at 7:46 AM, Carl-Eric Menzel 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 need > Wicket conversations,

Re: Conversation scope in wicket

2009-06-18 Thread Carl-Eric Menzel
On Thu, 18 Jun 2009 08:10:33 -0400 James Carman wrote: > On Thu, Jun 18, 2009 at 7:46 AM, Carl-Eric Menzel > 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 su

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 obje

Re: Conversation scope in wicket

2009-06-18 Thread James Carman
On Thu, Jun 18, 2009 at 8:27 AM, Carl-Eric Menzel 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 that perfectly enca

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 1

default integer form values

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

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 1.4.

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 'MyPanel'.

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 w

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 Vroling wrote: > I have a form with a textfield bound to an object containing interger > values: > > TextField residueNumber = new TextField( >                                "residueNumber", new > PropertyMod

Re: default integer form values

2009-06-18 Thread Bas Vroling
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 Vroling wrote: I have a form with a textfield bound to an object containing interger values: TextField res

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 Levy 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 user... > > 2009-

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 Vroling 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 Vroling wrote: >>> >>> I hav

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 wrote: > 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 Levy wrote: >

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 jus

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 t

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, Tim wrote: > I have recently converted a project from 1.3.5 to 1.4.rc-4.  The only thing > that I hav

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 Vroling 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

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 Levy wrote: > Per, > There is no stack dump, that is the entire output. > > J > > O

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 geocode

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. T

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 wrote: > you are free to implement this as an open source addition to wicket.

Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi all On Thu, Jun 18, 2009 at 7:44 AM, James Carman wrote: > On Thu, Jun 18, 2009 at 12:38 AM, Igor Vaynberg > wrote: > > > > you are free to implement this as an open source addition to wicket. > > there is wicketstuff or googlecode or sf.net where you can host it. > > > > wicket is a ui frame

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 wrote: > > Hi all > > On Thu, Jun 18, 2009 at 7:44 AM, James Carman > wrote: > > > On Thu, Jun 18, 2009 at 1

Re: Conversation scope in wicket

2009-06-18 Thread Joe Fawzy
Hi Igor On Wed, Jun 17, 2009 at 8:58 PM, Igor Vaynberg wrote: > class mysession extends websesison { > private map> coversations; > > public map getconversation(ipagemap pmap) { >return conversations.get(pmap.getid()); > } > } in your last code line , do you mean pmap.getName() inste

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 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 included my c

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 wa

[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 1.4-r

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, Rom

[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 1.4-r

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 instead

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, cretzel 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 the local development en

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: Th

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. >> >> http://www.nabble.com/Strict-4-digit-year-fo

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 (http://en.wikipedia.org/wiki/Message_authen

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 detec

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 wrote: > 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 to

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: wrote: >

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 cl

Re: application-level properties not component properties.

2009-06-18 Thread satar
Wow, thanks for such a blazing fast response Igor! Actually, I am already using the PropertyPlaceholderConfigurer (I think this is what you are talking about), and using different filter files for my different environments connected through profiles in my pom.xml file. Knew none of this stuff 2-

Re: Hibernate Transactions and Wicket

2009-06-18 Thread vineet semwal
lazy initialization exception happens whens you try to initialize a object (generally collection) and hibernate session is already closed. merge is not recommended ,it attaches a object back to hibernate session + also cause database update( why will you update a object when you actually need to r

AjaxSubmitLink

2009-06-18 Thread jpalmer1026
I am trying to use an AjaxSubmitLink to show a panel when a button is clicked. I am receiving the following error when I try to submit the form:Wicket.Ajax.Call.processComponent: Component with id [[verifyPanelWmc9]] a was not found while trying to perform markup update. Make sure you called c

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

2009-06-18 Thread Per Lundholm
Possible to use the close-callback of Modalwindow? http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#setCloseButtonCallback(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.CloseButtonCallback) /Per On Fri, Jun 19, 2009 at 2:45 A

Re: application-level properties not component properties.

2009-06-18 Thread satar
SWEET, I was able to add it to my application bean directly: Of course, I have more properties like this but the first example worked as expected! Thanks again Igor!!! satar wrote: > > Wow, thanks for such a blazing fast response Igor! > > Actually, I am already using the Prope

Re: Apache Logs, Session IDs, and PageExpiredException

2009-06-18 Thread Johan Compagner
What do you mean with sessionid disappears? From the url? Thats basic tomcat, the first urls are with session id but if session cookie works it wont append it to the url, or you really have to tell tomcat that it has to do that everytime. On 17/06/2009, Jeremy Levy wrote: > We see a very similar