Re: Prompting a User to Save When Leaving a Page

2007-10-02 Thread swaroop belur
Have a look at this blog http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments Basically state of the form onload is compared to that of beforeonunload. Just understand the concept and modify accordingly. Here the author tries to add a behavior to form's page

Disabling of Wizard Cancel button

2007-10-02 Thread Vit Rozkovec
Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to wizard the possibility to also disable the cancel button? Or if I can do it somehow myself and get it to trunk, I will do, just tell me. I use wizard for

Re: Disabling of Wizard Cancel button

2007-10-02 Thread Vit Rozkovec
Ups, thanks, I forgot to delete it. Vit Ballist1c wrote: Hey Vit, umm you may want to create a new thread for this topic Ví­t Rozkovec wrote: Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to

Re: wicket datetime / YUI calendar

2007-10-02 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, Im trying to make the calendar work with the DateTextField from the extensions(I guess thats the one I should use right?). But something are wrong, now my ajax update behaviors are no longer called, could you provide a snipplet of how it should be setup? Im doing this now

Disabling of Wizard Cancel button

2007-10-02 Thread Vit Rozkovec
Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to wizard the possibility to also disable the cancel button? Or if I can do it somehow myself and get it to trunk, I will do, just tell me. I use wizard for

Re: Ajax Problem on Page with IFRAME

2007-10-02 Thread SantiagoA
Thank you for your help, it works with Wicket 1.3.0beta3. The migration was not quite easy, as i thought, but finally everything works, even the IFrame. -- View this message in context: http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12993964 Sent from the Wicket - User

Google Maps API

2007-10-02 Thread Ballist1c
Hey guys, I have been testing and attempting to get the google maps api running, with little avail. I have done some digging around for info and components written for Google map api integration. Unfortunately, the ones i have come across no longer exist in their respective SVNs :( As much

Re: Wicket menu with submenu dialog window

2007-10-02 Thread Artur W.
lizz wrote: Has anyone made a menu (with menu items and submenus) in wicket? I would like a menu that looks more or less like the Swing JMenu. I use AdxMenu: http://www.aplus.co.yu/adxmenudev/adxmenu-v4-flyout-drop-down-menu/ It fits very well with Wicket. Artur -- View this message

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
Hi Eleco, I' sorry somehow the problem with the locale being null is solved. I cannot reconstruct it. But the problem with the locale passed to IStringResourceLoader.loadStringResource(..) being DE remains. I have the feeling that the SessionLocale is not used. I verified this by putting a label

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
Hi Cristina, thanks for your reply. The problem is, that the session locale is changed, but somehow there seems to be another locale present which is then passed to the IStringResourceLoader.loadStringResource implementation. Have you got any ideas? Thanks a lot Marcus 2007/10/2, Cristina [EMAIL

RE: Google Maps API

2007-10-02 Thread Maeder Thomas
How does HeaderContributor.forJavaScript(final String location) not fit your needs? Thomas Snip... At the moment I am stuck on how to reference javascript from an external HTTP url, as opposed to a local js file. e.g. http://maps.google.com/maps?file=apiamp;v=2amp;key=ABC; If anyone

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
So, I looked at the sources of Localizer, for Tried to retrieve a localized string for a component that has not yet been added to the page. which is the warning i get. In this case the Localizer calls loader.loadStringResource(component, key); without passing a locale. That's why I always get

Re: Google Maps API

2007-10-02 Thread martinf
You have seen http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2 havent you? For GeoCoding check out the examples. Martin Ballist1c wrote: Hey guys, I have been testing and attempting to get the google maps api running, with little avail. I have done some

RE: Google Maps API

2007-10-02 Thread Ballist1c
I have tried that... add(HeaderContributor.forJavaScript(http://maps.google.com/maps?file=apiamp;v=2amp;key=ABC;)); However, when I have that line of code, accessing the page with that HeaderContributor the system hangs, and the page doesn't load, i dont even seem to get an error and the only

Re: Google Maps API

2007-10-02 Thread Ballist1c
I'll definately have a look at that over the next day or so. At the same time, i would like to learn how to work these headerContributors for other javascript based APIs :) Thanks for the heads up martin,:) martinf wrote: You have seen

Re: wicket datetime / YUI calendar

2007-10-02 Thread Gerolf Seitz
you should use org.apache.wicket.datetime.markup.html.form.DateTextField in wicket-datetime, not the one from wicket-extensions ;) concerning your approach for the additional renderer: i think that's the way to go, since you can't just simply render such a call to the head section of the page,

RE: Google Maps API

2007-10-02 Thread Maeder Thomas
I quickly added the following line to one of my pages: add(HeaderContributor.forJavaScript(http://maps.google.com/maps?file=ap iamp;v=2amp;key=ABC)); It correctly renders in the page's header as script type=text/javascript src=http://maps.google.com/maps?file=apiamp;v=2amp;key=ABC;/script

Re: Google Maps API

2007-10-02 Thread Nino Saturnino Martinez Vazquez Wael
Theres also http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap :) Ballist1c wrote: I'll definately have a look at that over the next day or so. At the same time, i would like to learn how to work these headerContributors for other javascript based APIs :) Thanks for the

Re: Google Maps API

2007-10-02 Thread martinf
This: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java is the heart of its JavaScript header contribution. Beyond that I don't see no real reason to add any JavaScript to the HTML. Just add it

Re: Wicket Meetup Amsterdam: a proposal

2007-10-02 Thread Johan Compagner
i also have been asking around for a big room. And Servoy is willing to sponser a big room if needed (if there are really comming 30+ people) The problem is that the coming 2 weeks i can't do much about it because first we (servoy) has its own conference next week (servoy world) johan On

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread marcus dickerhof
Hi I just found out that this issue should be fixed in wicket 1.3.0 beta 4 (wicket-issue 936). Where can I get that? Which is the current release, best suited for a production environment? Thanks! Marcus 2007/10/2, marcus dickerhof [EMAIL PROTECTED]: So, I looked at the sources of

Re: Newbie Question Loading localization Resources from Database

2007-10-02 Thread Frank Bille
On 10/2/07, marcus dickerhof [EMAIL PROTECTED] wrote: Hi I just found out that this issue should be fixed in wicket 1.3.0 beta 4 (wicket-issue 936). Where can I get that? beta4 is not released yet. If nothing comes in the way I will release beta4 this weekend. Frank

Re: Disabling of Wizard Cancel button

2007-10-02 Thread Andrew Klochkov
Hi! What about overriding IWizardModel.isCancelVisible() ? Vit Rozkovec wrote: Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to wizard the possibility to also disable the cancel button? Or if I can do

Re: Disabling of Wizard Cancel button

2007-10-02 Thread Vit Rozkovec
Thank you, I missed that. Vit Andrew Klochkov wrote: Hi! What about overriding IWizardModel.isCancelVisible() ? Vit Rozkovec wrote: Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to wizard the

Re: Form behaviour...

2007-10-02 Thread Gwyn Evans
Thanks for that, Matej - in the tend I've gone for separate forms, as that fits in with some other changes I was doing. On a similar note, are there any good ways of using AJAX to get the value of a text field (currently in a form on it's own) back to the server when the user hits return? It's

Re: wicket datetime / YUI calendar

2007-10-02 Thread Nino Saturnino Martinez Vazquez Wael
@DateTextField Hmm, I have to supply a custom converter then. Could there be a default one in the YUI extension? How does your dateconverter look like? regards Nino Gerolf Seitz wrote: you should use org.apache.wicket.datetime.markup.html.form.DateTextField in wicket-datetime, not the one

Re: wicket datetime / YUI calendar

2007-10-02 Thread Nino Saturnino Martinez Vazquez Wael
ahh didnt see the PatternDateConverter...:) Nino Saturnino Martinez Vazquez Wael wrote: @DateTextField Hmm, I have to supply a custom converter then. Could there be a default one in the YUI extension? How does your dateconverter look like? regards Nino Gerolf Seitz wrote: you should

Re: Page.detachModels() not working like it used to

2007-10-02 Thread Dan Syrstad
On 10/1/07, Kent Tong [EMAIL PROTECTED] wrote: Dan Syrstad-2 wrote: This has broken a JUnit test that was testing a detachable model using WicketTester. The same test passes in Wicket 1.2.6. Is there something different I should be doing in 1.3? If it was calling detach() instead

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread Gwyn Evans
Are you sure you deployed your web-app to the ROOT context? It's not just at http://localhost/myApp/app/ is it? One thing I like about Jetty is that it's normally clear to see what's mounted where, as the default '/' servlet will list them when running 'mvn jetty:run' /Gwyn On Tuesday, October

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/2, Gwyn Evans [EMAIL PROTECTED]: Are you sure you deployed your web-app to the ROOT context? It's not just at http://localhost/myApp/app/ is it? One thing I like about Jetty is that it's normally clear to see what's mounted where, as the default '/' servlet will list them when

Re: wicket datetime / YUI calendar

2007-10-02 Thread Eelco Hillenius
On 10/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote: you should use org.apache.wicket.datetime.markup.html.form.DateTextField in wicket-datetime, not the one from wicket-extensions ;) I didn't read the whole discussion, but the date picker is designed so that it should function with other text

Re: Form behaviour...

2007-10-02 Thread Eelco Hillenius
On a similar note, are there any good ways of using AJAX to get the value of a text field (currently in a form on it's own) back to the server when the user hits return? It's currently working via with the standard form submit, and I'm using textField.onModelChanged(), but I've not managed

Re: Disabling of Wizard Cancel button

2007-10-02 Thread Eelco Hillenius
What about overriding IWizardModel.isCancelVisible() ? Yep. Or even just call myWizardModel.setCancelVisible(false). Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: hide/show components - role based

2007-10-02 Thread Eelco Hillenius
On 10/1/07, Kent Tong [EMAIL PROTECTED] wrote: Juan Gabriel Arias wrote: Im trying to dinamically show or hide html components, like links, buttons, etc. What do you mean by 'dynamic'? Do you want to change authorization info for the components dynamically, or do you mean dynamic in

Re: hide/show components - role based

2007-10-02 Thread Juan Gabriel Arias
The second one. Components should check some roles and enable or disable itself. Thanks for the answers! Juan On 10/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 10/1/07, Kent Tong [EMAIL PROTECTED] wrote: Juan Gabriel Arias wrote: Im trying to dinamically show or hide html

Re: Page.detachModels() not working like it used to

2007-10-02 Thread Kent Tong
Dan Syrstad-2 wrote: Nope. I tried detach() too and that doesn't work - the test still fails. I had to write my own method which was basically was a copy of the old Page.detachModels() code. The thing is that In beta3, Page now just acts like a Component as far as detachModels() is

Re: hide/show components - role based

2007-10-02 Thread Eelco Hillenius
On 10/2/07, Juan Gabriel Arias [EMAIL PROTECTED] wrote: The second one. Components should check some roles and enable or disable itself. Just look closely at how wicket-auth is implemented. It is basically an example project to show how you can do this stuff yourself. Note that there is

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
Hi , I think it seems resin's problem (2.1.7). After a lot of combinations , I still cannot make the wicket filter work. The error (URL not found) is reported by apache , not by resin . which means the filter request is not passed to resin. After I assign port ( http://foo.bar.com:8080/app ) ,

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread David Bernard
If I understand right you use Apache as a front end ? If it work when you access to resin via a direct call (http://foo.bar.com:8080/app) then I don't think it a problem with resin but with your apache front-end configuration. What do you map from apache to resin (1)/app, (2)/app* or (3)/app/*

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
Yes , I use Apache as a front end. If any configuration goes wrong , servlets' requests will not be processed by resin, either. But http://foo.bar.com/servlet/other.servlet just works fine. (No port assign) It means resin (2.1.7) seems doesn't intercept filter's requests. I've also reported this

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread David Bernard
It depends of how you map/forward from apache to resin. What is your apache configuration? If it works when you access resin directly, what is done when you access throught port 8080, then it's not a resin problem. smallufo wrote: Yes , I use Apache as a front end. If any configuration goes

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread David Bernard
Sorry I need the mapping, could you send /usr/local/resin/conf/resin.conf. smallufo wrote: 2007/10/2, David Bernard [EMAIL PROTECTED]: It depends of how you map/forward from apache to resin. What is your apache configuration? If it works when you access resin directly, what is done when you

Re: Prompting a User to Save When Leaving a Page

2007-10-02 Thread JulianS
Thanks, this is a great tip. swaroop belur wrote: Have a look at this blog http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments Basically state of the form onload is compared to that of beforeonunload. Just understand the concept and modify accordingly.

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/3, David Bernard [EMAIL PROTECTED]: Sorry I need the mapping, could you send /usr/local/resin/conf/resin.conf. This is my partial resin.conf , thanks in advanced. http port='8080'/ ... srun host='127.0.0.1' port='6802'/ ... host id='foo.bar.com' error-log

Url Coding Strategy

2007-10-02 Thread kent lai
Hi, I am wondering if Wicket supports an in-built coding strategy where I can, given the following form /{var1}/fragment1/fragment2/{var2}/{var3} it can be mounted as a url to a page, passing in page parameters var1, var2, and var3. A more real use case of this could be a

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/2, David Bernard [EMAIL PROTECTED]: It depends of how you map/forward from apache to resin. What is your apache configuration? If it works when you access resin directly, what is done when you access throught port 8080, then it's not a resin problem. Hi , this is my (partial)

Re: Url Coding Strategy

2007-10-02 Thread David Bernard
Have you try to customise (ignore fragment1 and fragment2, or override matches methods) the following class: * org.apache.wicket.request.target.coding.IndexedParamUrlCodingStrategy * or org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy Or use a filter like urlrewrite

Re: TextField rounds doubles, why?

2007-10-02 Thread Igor Vaynberg
no it is not possible as it wouldnt make any sense, how would a component know which converter to use? this is why you can override converters on per component basis. you can also create a subclass, like what gerolf did with his DoubleLabel. -igor On 10/2/07, Artur W. [EMAIL PROTECTED] wrote:

Re: Url Coding Strategy

2007-10-02 Thread kent lai
Mixing MixedParamUrlCodingStrategy with urlrewrite sounds like a great idea. I would give it a go. Thanks! kent On 03 Oct 2007, at 12:48 AM, David Bernard wrote: Have you try to customise (ignore fragment1 and fragment2, or override matches methods) the following class: *

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread David Bernard
Sorry No idea :-( abstract of your problem : http://foo.bar.com/app KO http://foo.bar.com/app/ ?? http://foo.bar.com:8080/app OK http://127.0.0.1:6802/app ?? http://foo.bar.com/servlet/TotoServet OK servlet/TotoServlet is part of the

Re: Minneapolis Wicket Users Group

2007-10-02 Thread Craig Lenzen
Sounds like we have a hand full of people interested in a Minneapolis wicket meetup. AWESOME! That said does anyone have any proposals on date / location? -Craig Ryan Sonnek-2 wrote: Booyah! On 9/21/07, Dan Syrstad [EMAIL PROTECTED] wrote: On 9/21/07, Craig Lenzen [EMAIL PROTECTED]

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/3, David Bernard [EMAIL PROTECTED]: Sorry No idea :-( abstract of your problem : http://foo.bar.com/app KO http://foo.bar.com/app/ ?? This fails too. http://foo.bar.com:8080/app OK http://127.0.0.1:6802/app ?? port

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread David Bernard
Have you try: * to set port to 80 instead of 8080 Port 80 is listened by apache httpd. I need apache httpd to serve large amount of static contents. Yes, and resin.conf isn't run as part of Apache? Apache (port 80) - srun(6802) Sorry , no other idea, except may be create an dummyServlet

Re: Minneapolis Wicket Users Group

2007-10-02 Thread Joshua Jacobs
I'll be passing through Minneapolis in the beginning of November and would love to make it as well if possible. Joshua Craig Lenzen wrote: Sounds like we have a hand full of people interested in a Minneapolis wicket meetup. AWESOME! That said does anyone have any proposals on date /

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/3, David Bernard [EMAIL PROTECTED]: Have you try: * to set port to 80 instead of 8080 Port 80 is listened by apache httpd. I need apache httpd to serve large amount of static contents. Yes, and resin.conf isn't run as part of Apache? Apache (port 80) - srun(6802) Resin

Session size is constantly increasing on setResponsePage(getPage())

2007-10-02 Thread Martin2
Hi there, we're developing a rather straight forward application with wicket and I am wondering if it is ok to call setResponsePage(getPage()) inside the onClick() method of a Link? Because the session size is constantly increasing, here's my example: Application class: public class

Passing Values Between Pages?

2007-10-02 Thread Stanczak Group
New person question here. I just started using Wicket, but I don't understand how to pass values to other pages. Can't seem to find examples. Here's what I setup so far, but it doesn't seem to work. Just started using Wicket yesterday. Also, how do I put something in a application wide

Re: hide/show components - role based

2007-10-02 Thread ChuckDeal
Juan Gabriel Arias wrote: The second one. Components should check some roles and enable or disable itself. Thanks for the answers! Juan On 10/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 10/1/07, Kent Tong [EMAIL PROTECTED] wrote: Juan Gabriel Arias wrote: Im trying

Re: Passing Values Between Pages?

2007-10-02 Thread Igor Vaynberg
On 10/2/07, Stanczak Group [EMAIL PROTECTED] wrote: New person question here. I just started using Wicket, but I don't understand how to pass values to other pages. Can't seem to find examples. Here's what I setup so far, but it doesn't seem to work. Just started using Wicket yesterday.

Using Hibernate in Wicket?

2007-10-02 Thread Stanczak Group
I'm using Hibernate with the HibernateUtil class. It all works except when I try to use the HibernateUtil in the Application.onDestroy() method. I want to have it close the factory when the server is shutdown. It's an embedded database so it's saying the database is locked. This looks to me

Re: Passing Values Between Pages?

2007-10-02 Thread Igor Vaynberg
On 10/2/07, Stanczak Group [EMAIL PROTECTED] wrote: Why would I need to override the WebSession? Can't I just use it as is? the idea is that you add your typesafe properties and getters/setters into your subclass. we do not provide a generic map for attributes like the httpsession does.

Re: Using Hibernate in Wicket?

2007-10-02 Thread Igor Vaynberg
see databinder.net for ideas -igor On 10/2/07, Stanczak Group [EMAIL PROTECTED] wrote: I'm using Hibernate with the HibernateUtil class. It all works except when I try to use the HibernateUtil in the Application.onDestroy() method. I want to have it close the factory when the server is

Re: Using Hibernate in Wicket?

2007-10-02 Thread Stanczak Group
Thanks. They are pretty much doing the same as me. I found it was the IDE causing the issue. From some reason Tomcat is deploying it twice. Igor Vaynberg wrote: see databinder.net for ideas -igor On 10/2/07, Stanczak Group [EMAIL PROTECTED] wrote: I'm using Hibernate with the

Re: Passing Values Between Pages?

2007-10-02 Thread Stanczak Group
Ok, thanks. Igor Vaynberg wrote: On 10/2/07, Stanczak Group [EMAIL PROTECTED] wrote: Why would I need to override the WebSession? Can't I just use it as is? the idea is that you add your typesafe properties and getters/setters into your subclass. we do not provide a generic map for

Making ExternalLink invisible: test for what?

2007-10-02 Thread Chris Colman
I have content that I render that may or may not have a URL associated with it. I don't want to display anything if the URL is blank. I use ExternalLink for the URLs. As I place a reference to the link in my markup I need to instantiate an ExternalLink object in the corresponding page/panel

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Igor Vaynberg
i added the missing getters, update from trunk and you should be good. -igor On 10/2/07, Chris Colman [EMAIL PROTECTED] wrote: I have content that I render that may or may not have a URL associated with it. I don't want to display anything if the URL is blank. I use ExternalLink for the

RE: Making ExternalLink invisible: test for what?

2007-10-02 Thread Chris Colman
i added the missing getters, update from trunk and you should be good. Thanks Igor, but what are they called? getUrl(), getDisplay()? Actually the display text is more valuable because it doesn't have the http:// prefix so I can do a simple null or blank text whereas the URL will always have a

Re: Ext-JS 1.1.1 and Wicket 1.3

2007-10-02 Thread Matt Jensen
I mulled it over, but at this point I do not know enough about Wicket or Ext-JS to pull it off acceptably. If such a project were to get started, I would probably be willing to contribute down the road. Sean Sullivan wrote: Is anybody using Ext-JS 1.1.1 with Wicket 1.3? Is anybody

Graceful handling of ajax after session expiration

2007-10-02 Thread leok
Hi there - I'm trying to add some graceful handling of ajax behavior during session expiration in my Wicket webapp. Is there a way to not redirect to the session expired page and invoke some other handler, using either a wicket component and/or javascript function, after the session has expired?

Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Igor Vaynberg
please look at the code, they are called gethref() and getlabel() and return exactly what you put into the constructor -igor On 10/2/07, Chris Colman [EMAIL PROTECTED] wrote: i added the missing getters, update from trunk and you should be good. Thanks Igor, but what are they called?