Re: Making ExternalLink invisible: test for what?

2007-10-02 Thread Martijn Dashorst
why not use the setVisible method? link.setVisible(StringUtils.isNotBlank(url) && StringUtils.isNotBlank(...)); Martijn On 10/3/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

Re: Graceful handling of ajax after session expiration

2007-10-02 Thread Martijn Dashorst
1.3 has a new URL encoding strategy that would make this somehow possible: iirc it is the hybrid url coding strategy, and is for instance used at http://thoof.com The url becomes bookmarkable, and has the page nr and version number encoded in the url, but wicket will use the bookmarkable part when

Re: Google Maps API

2007-10-02 Thread Ballist1c
Ive downloaded and compiled the Gmap2 and examples, however, the examples don't seem to deploy... there seems to be some low level issue. I have the latest wicket snapshot so I am assuming that there may be compatibility issues. Also the Gmap (original) the SVN provided no long works :( The prob

Re: Url Coding Strategy

2007-10-02 Thread kent lai
I tried out urlrewrite, but it seems that, unless the rewrite rule has a to type as redirect, it was unable to load my wicket page. Looking at urlcodingstrategy, it seemed that i might need a 'stable mount point' as a start so that parameters can go after that. If I am to come up with a way

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?

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

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

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 classe

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 fo

Ext-JS 1.1.1 and Wicket 1.3

2007-10-02 Thread Sean Sullivan
Is anybody using Ext-JS 1.1.1 with Wicket 1.3? Is anybody planning to start a wicket-stuff project that supports Ext-JS 1.1.1 or Ext-JS 2? Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

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 HibernateU

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

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 lik

Re: wicket datetime / YUI calendar

2007-10-02 Thread Gerolf Seitz
On 10/1/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > Multipage calendar > http://developer.yahoo.com/yui/examples/calendar/calgrp.html > Calendar dates marked with bold > http://developer.yahoo.com/yui/examples/calendar/render.html > Nino, have a look at WICKET-1030 and

Re: Passing Values Between Pages?

2007-10-02 Thread Stanczak Group
Igor Vaynberg wrote: 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 usin

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.

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 Aria

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

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 TestApplica

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

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 / location?

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

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 PR

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: 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: * org.apache.wick

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 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 (http://tu

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 multi

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. ... ... 4096 30 true tru

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 accordi

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: 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 (parti

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 w

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 is

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
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 ) , eve

Re: TextField rounds doubles, why?

2007-10-02 Thread Artur W.
Francis De Brabandere-2 wrote: > > this can be done application-wide by overriding > protected IConverterLocator newConverterLocator() > in you Application > > see org.apache.wicket.util.convert.ConverterLocator > Thanks for the info. Is it possible to register few converters for the same ty

Re: Is Wicket suitable for my CMS?

2007-10-02 Thread Eelco Hillenius
On 9/28/07, pierobo <[EMAIL PROTECTED]> wrote: > > I'm doing an evaluation of some java web frameworks for doing the > presentation layer of our CMS. > We already have the backend, made with Spring/Hibernate. > > The behaviour of the CMS should be: > 1) (Power) user draws the data model he want to

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 typ

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()

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

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 me

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

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: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread Gwyn Evans
On Tuesday, October 2, 2007, 2:53:51 PM, smallufo <[EMAIL PROTECTED]> wrote: > 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

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

2007-10-02 Thread David Bernard
Have you the same result if you try /app/ ? try to add : wicket /app wicket /app/* /david smallufo wrote: Hi : I am upgrading an small project from wicket 1.2.6 to 1.3-b3 After some string replacing and package renaming , and edit web.xml , changing wicket servlet t

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

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

2007-10-02 Thread smallufo
This is my web.xml : wicket org.apache.wicket.protocol.http.WicketFilter applicationClassName foo.bar.MyApplication configuration DEVELOPMENT wicket /app/* "/app" is virtual in 1.2.6 , there is no "real" /app directory in m

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

2007-10-02 Thread Martijn Dashorst
Your web.xml will tell us more. Do you have mapped your filter to /* or to /app/* ? And do you have a index.html in your webapp root that redirects to /app ? Martijn On 10/2/07, smallufo <[EMAIL PROTECTED]> wrote: > Hi : > I am upgrading an small project from wicket 1.2.6 to 1.3-b3 > After some

Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
Hi : I am upgrading an small project from wicket 1.2.6 to 1.3-b3 After some string replacing and package renaming , and edit web.xml , changing wicket servlet to wicket filter, My resin server responses "The requested URL /app was not found on this server." What's left undone ? (The included jars a

Re: TextField rounds doubles, why?

2007-10-02 Thread Francis De Brabandere
this can be done application-wide by overriding protected IConverterLocator newConverterLocator() in you Application see org.apache.wicket.util.convert.ConverterLocator On 10/2/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > you can override the method getConverter(Class) and return customized > co

Re: TextField rounds doubles, why?

2007-10-02 Thread Gerolf Seitz
you can override the method getConverter(Class) and return customized converter. i use a "DoubleLabel" to always show 2 fraction digits: private static class DoubleLabel extends Label { // constructors public IConverter getConverter(Class clazz) { DoubleConverter

TextField rounds doubles, why?

2007-10-02 Thread Artur W.
Hi! TextField rounds doubles values up to 3 fraction digits. Why? For example container.add(new TextField("price", new PropertyModel(this, "price"), Double.class)); //price = 0,96104 gives 0,961. How to change it? Thanks, Artur -- View this message in context: http://www.nabble.com/Text

Re: wicket datetime / YUI calendar

2007-10-02 Thread Gerolf Seitz
you can use one of the static methods like DateTextField#forDatePattern DateTextField#forDateStyle ... gerolf On 10/2/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > @DateTextField > > Hmm, I have to supply a custom converter then. Could there be a default > one in the YUI

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 use

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

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 possibil

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

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 10/1/0

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 in

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 he

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 i&v=2&key=ABC")); It correctly renders in the page's header as http://maps.google.com/maps?file=api&v=2&key=ABC";> I'm using 1.3 beta-3. Either you're

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

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 > http://wicketstuff.org/confluence/display/STUFFWIKI

RE: Google Maps API

2007-10-02 Thread Ballist1c
I have tried that... add(HeaderContributor.forJavaScript("http://maps.google.com/maps?file=api&v=2&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 way i

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 so

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 t

RE: Google Maps API

2007-10-02 Thread Maeder Thomas
How does HeaderContributor.forJavaScript(final String location) not fit your needs? Thomas > > 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=api&v=2&key=ABC"; > > If anyone has

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

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 messa

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 as

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 ma

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