Re: localization and session expiration

2009-03-06 Thread ElSe
Thanks for your answers! It is quite good idea with cookies and header... Unfortunately it will not work if the user turns off cookies in his browser... but I think in this case he can thank himself for such inconvenience : BR, Elena. Anton Veretennikov wrote: > > If cookie is already set,

Creating a brandable or white label type of application

2009-03-06 Thread Tauren Mills
I'm looking for thoughts on ways to create a site that can be branded by a customer. It should do the following: * run in a single webapp deployed in a WAR file * multiple host names resolve to this same web app domain1.com -> myapp.com domain2.com --> myapp.com * based on the host name, th

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Zhubin Salehi
OK I couldn't figure out what was wrong so I did it as a last resort: /* advanced search link */ AjaxSubmitLink advancedSearchLink; mainTable.add(advancedSearchLink = new AjaxSubmitLink("advancedSearch") { private static final long serialVersionUID = 4373219220751138123L; @Overr

Ajax table/grid questions

2009-03-06 Thread Seven Corners
I have to write a table that updates via AJAX on a timer that polls data from the server (the data comes as collection, not as a database call). My first question is what class I need to use; I've looked at a few of the available classes and I think the AjaxFallbackDefaultDataTable is too heavy

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread Igor Vaynberg
you still have to do it, that is what enables @SpringBean inside components -igor On Fri, Mar 6, 2009 at 11:32 AM, Warren Bell wrote: > Do you still have to use addComponentInstantiationListener(new > SpringComponentInjector(this)) in your WebApplication#init() in order to use > @SpringBean in

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread Warren Bell
Do you still have to use addComponentInstantiationListener(new SpringComponentInjector(this)) in your WebApplication#init() in order to use @SpringBean in sub classes of Component or is that done automatically now? Warren Igor Vaynberg wrote: all subclasses of Component are injected automa

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Zhubin Salehi
I figured out if the page starts with 'advancedSearch = false' the image is always expand.gif and if it starts with 'advancedSearch = true' the image is always collapse.gif. So the value of Model object is cached somewhere, but not in the browser for sure. What I don't understand is that every ti

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Zhubin Salehi
I figured out if the page starts with 'advancedSearch = false' the image is always expand.gif and if it starts with 'advancedSearch = true' the image is always collapse.gif. So the value of Model object is cached somewhere, but not in the browser for sure. What I don't understand is that every ti

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread Igor Vaynberg
all subclasses of Component are injected automatically, you only need to do this in classes outside the Component hierarchy. -igor On Fri, Mar 6, 2009 at 9:32 AM, CrocodileShoes wrote: > > By the way is this safe to use in any Wicket component, for example, a > Panel? > > I can't think of any r

Re: Wizard and onSubmit of nested form

2009-03-06 Thread Dave Schoorl
Hi Robert, thanks for your quick reply. I am not sure if I understand what you mean. How is form validation helping with the trigger of onSubmit() on the correct form? But I gave it a try and the problem remains: the onSubmit of the next step is called instead of the current step. I think that

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread Leszek Gawron
CrocodileShoes wrote: By the way is this safe to use in any Wicket component, for example, a Panel? I can't think of any reason why not, but this is my first foray into web development. Yes it is. @SpringBean creates a proxy to your spring bean so there are no serialization issues. -- Lesze

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread CrocodileShoes
By the way is this safe to use in any Wicket component, for example, a Panel? I can't think of any reason why not, but this is my first foray into web development. -- View this message in context: http://www.nabble.com/How-can-I-inject-a-Springbean-into-a-custom-session.-tp22340379p22377028.htm

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Zhubin Salehi
advancedSearch is in PersonDetailTab that is a panel in an AbstractTab in a PanelCachingTab in FindUserAcountForm. Zhubin igor.vaynberg wrote: > > is advancedSearch inside findUserAccountForm? > > -igor > > On Fri, Mar 6, 2009 at 9:23 AM, Zhubin Salehi wrote: >> >> Here is the source code w

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Igor Vaynberg
is advancedSearch inside findUserAccountForm? -igor On Fri, Mar 6, 2009 at 9:23 AM, Zhubin Salehi wrote: > > Here is the source code without tabs: > > /* advanced search link */ > add(new AjaxSubmitLink("advancedSearch") { > >        private static final long serialVersionUID = 38477591106954057

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Zhubin Salehi
Here is the source code without tabs: /* advanced search link */ add(new AjaxSubmitLink("advancedSearch") { private static final long serialVersionUID = 3847759110695405700L; @Override protected void onSubmit(AjaxRequestTarget target, Form form) { advance

Re: What javascript event trigger component update?

2009-03-06 Thread Igor Vaynberg
hide a div around the panel, wait for panel update, and then show the div around it there is iajaxcalldecorator that will allow you to insert javascript for onsuccess/onfailure callbacks on the clientside. -igor On Fri, Mar 6, 2009 at 6:19 AM, Daniele Dellafiore wrote: > Hi everyone. > > I have

Re: Problems Refreshin a Image from AjaxLink

2009-03-06 Thread Zhubin Salehi
Hi guys, I have a similar problem that NonCachingImage does not solve. I have implemented a simple expand/collapse button. I check the rendered page source in FireFox and image name is always "/img/expand.gif". Here is the code: /* advanced search link */

Re: Only one session for logged user.

2009-03-06 Thread Igor Vaynberg
instead of storing a user id store a uuid that is generated on login, and resolve the uuid back to user. every time the user logs in you invalidate all other uuids they have and generate a new one. -igor On Fri, Mar 6, 2009 at 2:34 AM, Martin Bednář wrote: > Hello, > > In our application I must

Re: Using RequestCycle outside of a http request

2009-03-06 Thread Wayne Pope
ok thanks Jeremy On Fri, Mar 6, 2009 at 5:28 PM, Jeremy Thomerson wrote: > Search the mail list - there's a lot of examples of this.  Basically, you'll > need to use WicketTester - it will set up a mock request cycle, etc. for > you. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > O

Re: Using RequestCycle outside of a http request

2009-03-06 Thread Jeremy Thomerson
Search the mail list - there's a lot of examples of this. Basically, you'll need to use WicketTester - it will set up a mock request cycle, etc. for you. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Mar 6, 2009 at 10:03 AM, Wayne Pope < waynemailingli...@googlemail.com> wrote: > H

Re: Wizard and onSubmit of nested form

2009-03-06 Thread rmattler
Use "public void validate(Form form)" See example below. Hope it helps. private final class Step2 extends WizardStep { public Step2() { setTitleModel(new Model("Add pictures")); add(new AbstractFormValidator() {

Using RequestCycle outside of a http request

2009-03-06 Thread Wayne Pope
Hi, We have some Bookmarkable pages that display some given content. I would like to email these links out to a set of users. We have a set of classes that knows how to build the good bookmarkable link depending on the content. Now this works all fine and good. However we need to move the email s

Wizard and onSubmit of nested form

2009-03-06 Thread Dave Schoorl
Hi all, I am building my first Wizard with the wizard from wicket-extensions version 1.3.5. Every step contains a panel with it's own form, so I have a nested form in the wizards form. I was expecting that when I click next, the onSubmit of my current form is called, but it's not. Instead the

Re: openstreetmap in openlayers

2009-03-06 Thread morbo
Hi Nino, yes, I would love to contribute to this project. But I'm warning you, I am not a very experienced javascript developer. :) What I have done so far, was extending the layer class for all osm layers. For example I created a OSMMapnik class which contributes "http://www.openstreetmap.org/o

Re: Non-serializable model objects

2009-03-06 Thread Leszek Gawron
Timo Rantalaiho wrote: On Tue, 03 Mar 2009, Chris Hansen wrote: The situation that I'm dealing with most commonly is where I'm dealing with simple, DTO-like POJOS with no-arg constructors and getters/setters (why they are not serializable in the first place is beyond me). It just seems like it w

Re: Uppercasing inputs

2009-03-06 Thread Leszek Gawron
taha siddiqi wrote: Thanks!!( everyone MADE a joke and I BECAME one ) I'm sorry if you felt offended. It wasn't personal. Maybe my expression was not exact enough. After all I have used your proposal (modify Strings directly in domain model). What I didn't like is the requirement to change e

Re: What javascript event trigger component update?

2009-03-06 Thread Daniele Dellafiore
On Fri, Mar 6, 2009 at 3:27 PM, Linda van der Pal wrote: > A guess from a newbie would be onBeforeRender > > Regards, > Linda > no :) -- Daniele Dellafiore http://blog.ildella.net/ - To unsubscribe, e-mail: users-unsubscr...@w

Re: What javascript event trigger component update?

2009-03-06 Thread Linda van der Pal
A guess from a newbie would be onBeforeRender Regards, Linda Daniele Dellafiore wrote: Hi everyone. I have this problem: a panel with a list is hided via a jquery hide(). It works but this panel is also refreshed via a wicket AjaxTimerBehavior. So when the page is loaded, I call the jquery hi

What javascript event trigger component update?

2009-03-06 Thread Daniele Dellafiore
Hi everyone. I have this problem: a panel with a list is hided via a jquery hide(). It works but this panel is also refreshed via a wicket AjaxTimerBehavior. So when the page is loaded, I call the jquery hide() and at the first onTimer() the panel is refreshed and become visible. How can I avoid

Re: Ajaxifying FormComponentPanel

2009-03-06 Thread Linda van der Pal
That is in fact the type of behavior I am using. Here's a bit of the code: // The subgenre-field IModel> subgenreModel = new AbstractReadOnlyModel>() { @Override public List getObject() { List subgenres = new ArrayList();

Re: Dutch government picks Hippo CMS for all public websites

2009-03-06 Thread Arje Cahn
Hi Wicket folks, > HippoCMS uses Wicket in large parts of their infrastructure and I am > excited to hear that Wicket will be at the basis for the Dutch > government. Thanks! And feel free to add this to the Wicket marketing material :-) It's public information anyway. To clarify: The Dutch Cent

Re: Uppercasing inputs

2009-03-06 Thread taha siddiqi
Thanks!!( everyone MADE a joke and I BECAME one ) On Fri, Mar 6, 2009 at 3:55 PM, Leszek Gawron wrote: > I've been out for one day. I come back and see a thread with 38 messages. > That's crazy !:) > > jWeekend wrote: >> >> Leszek, >> >> Thank you asking such a deep question ;-) >> We may not all

Re: modal window with iframe - ajax refresh on parent page

2009-03-06 Thread geke
There is an workaround for the problem. See http://www.dooriented.com/blog/category/programming/. There is a topic "Wicket - Ajax like file upload on a modal window". jensiator wrote: > > Hi geke > Have you solved your problem? I also have a ModalWindow with my own > defined callbacks that wont

Re: Ajaxifying FormComponentPanel

2009-03-06 Thread jWeekend
Linda, Take a look at AjaxFormComponentUpdatingBehavior. Regards - Cemal http://jWeekend.com jWeekend Linda van der Pal wrote: > > I have a FormComponentPanel that contains a TextField and a > DropDownChoice. Of those two only one is visible at any moment. (The > TextField is there for whe

Re: localization and session expiration

2009-03-06 Thread Anton Veretennikov
If cookie is already set, get it and use, if no then set it as browser's getLocale() and save to cookie. To get cookies: Cookie[] cookies = ((WebRequest)getRequestCycle().getRequest()).getCookies(); if (cookies!=null) { for (int i = 0; i < cookies.length; i++) { Cookie cookie =

Re: A massive flaw in my understanding of Wicket

2009-03-06 Thread triswork
Hi Daniel Thanks for that. It solves the problem completely. I still don't understand, however, what actually happens under-the-hood (i.e. What does Wicket do if I don't call setRedirect(true) - and why does this break my application?) Regards, Tristan Daniel Peters-2 wrote: > > Hi tristan,

Re: DropDownChoice with disabled items

2009-03-06 Thread Adriano dos Santos Fernandes
jWeekend escreveu: Adriano, I'm glad it was useful - these classes make DDCs pretty versatile. Wicket 1.3 is designed to be ale to run on Java versions before 1.5 (when generics were introduced to the language). Take a look at http://wicket.apache.org/docs/1.4/ SelectOption in Wicket 1.4 if

Re: DropDownChoice with disabled items

2009-03-06 Thread jWeekend
Adriano, I'm glad it was useful - these classes make DDCs pretty versatile. Wicket 1.3 is designed to be ale to run on Java versions before 1.5 (when generics were introduced to the language). Take a look at http://wicket.apache.org/docs/1.4/ SelectOption in Wicket 1.4 if you are using Java 5

Re: openstreetmap in openlayers

2009-03-06 Thread nino martinez wael
Hi Richard Im the author behind the openlayers contrib, I checked the code last time somewhere in end if december... Do you have some patches or further clues on whats not working? Im not directly using the openlayers integration currently so patches are very welcome, even co- coders would be n

Ajaxifying FormComponentPanel

2009-03-06 Thread Linda van der Pal
I have a FormComponentPanel that contains a TextField and a DropDownChoice. Of those two only one is visible at any moment. (The TextField is there for when the DropDownChoice doesn't offer the wanted result.) On the panel that contains the FormComponentPanel, I want another element to respond

Re: localization and session expiration

2009-03-06 Thread Jonas
No need to use spring for that, the locale of a WebSession is initialized from ServletRequest#getLocale() by default, which is based on the Accept-Language header. On Fri, Mar 6, 2009 at 12:57 PM, Leszek Gawron wrote: > Anton Veretennikov wrote: >> >> May be cookie? > > You can also try to extrac

Re: DropDownChoice with disabled items

2009-03-06 Thread Adriano dos Santos Fernandes
Thanks, Cemal. However, I must say that I don't like how generics are handled (or not handled at all) in these components. Adriano jWeekend escreveu: Adriano, Take a look at a mini-presentation I gave at one of our London Wicket Events sometime in last couple of years on "Select and Selec

Re: Equal InputValidator

2009-03-06 Thread Leszek Gawron
Peter Thomas wrote: On Thu, Mar 5, 2009 at 11:13 PM, SrinivasaRaju Ch < srinivas.r...@sifycorp.com> wrote: Hi, How to use Equal InputValidator in wicket can any one give small example on it. see line #30 http://code.google.com/p/perfbench/source/browse/trunk/perfbench/wicket-jpa/src/main/

Re: localization and session expiration

2009-03-06 Thread Leszek Gawron
Anton Veretennikov wrote: May be cookie? You can also try to extract the locale used by user in the browser from request header: http://www.acegisecurity.org/guide/springsecurity.html#concurrent-sessions GET /guide/springsecurity.html HTTP/1.1 Host: www.acegisecurity.org User-Agent: Mozill

Re: Only one session for logged user.

2009-03-06 Thread Leszek Gawron
Martin Bednář wrote: Hello, In our application I must guarantee that user is logged only once to the application. I have the following problem. 1,User logged to aplication, create session1 2,User browser crased, but session1 is still alive for next 30minutes (session expiration time is 30minute

Re: WYSIWYG component

2009-03-06 Thread rolandpeng
I use wicket 1.4-rc2 and meet the same problem. you can download jazzy.jar here to solve the exception. http://sourceforge.net/projects/jazzy/ then all the program works. -- View this message in context: http://www.nabble.com/WYSIWYG-component-tp22214000p22369491.html Sent from the Wicket - U

Re: modal window with iframe - ajax refresh on parent page

2009-03-06 Thread jensiator
Hi geke Have you solved your problem? I also have a ModalWindow with my own defined callbacks that wont update the parent page components. I'm using pagecreator to add the content of the ModalWindow. When I add a Panel to the ModalWindow through setContent It works. Jens -- View this message in c

Re: Only one session for logged user.

2009-03-06 Thread Ernesto Reinaldo Barreiro
Using a session listener to record session creation/destruction and them use that info to invalidate previous sessions where the user is the same? Ernesto On Fri, Mar 6, 2009 at 11:34 AM, Martin Bednář wrote: > Hello, > > In our application I must guarantee that user is logged only once to the >

Only one session for logged user.

2009-03-06 Thread Martin Bednář
Hello, In our application I must guarantee that user is logged only once to the application. I have the following problem. 1,User logged to aplication, create session1 2,User browser crased, but session1 is still alive for next 30minutes (session expiration time is 30minutes). 3,User open new bro

Re: Uppercasing inputs

2009-03-06 Thread Leszek Gawron
I've been out for one day. I come back and see a thread with 38 messages. That's crazy !:) jWeekend wrote: Leszek, Thank you asking such a deep question ;-) We may not all agree, but in the end, at least you have been offered around 87 well-intentioned solutions you can ask your customer to ch

Re: Place Button or Link in w_content_3 of ModalWindow

2009-03-06 Thread Martijn Dashorst
On Fri, Mar 6, 2009 at 11:16 AM, HITECH79 wrote: > Please Help... :) First read, understand and follow this document: http://www.catb.org/~esr/faqs/smart-questions.html Then ask again. Martijn - To unsubscribe, e-mail: users-u

Re: Place Button or Link in w_content_3 of ModalWindow

2009-03-06 Thread HITECH79
HITECH79 wrote: > > Hallo, > > how can i place components (buttons, links etc) in a ModalWindow which is > displayed by div class w_content_3??? Is there an possibility to structure > the modalwindow analog the css-classes. > > Thanks for help... > > > ANY WAYS TO HANDLE THIS PROBLEM?

Re: A massive flaw in my understanding of Wicket

2009-03-06 Thread Daniel Peters
Hi tristan, try adding setRedirect(true) before calling setResponsePage. I think that should work: public TestLogoutPage() { MySession.get().invalidate(); setRedirect(true); // <--- setResponsePage(getApplication().getHomePage()); } regards Daniel -

Re: openstreetmap in openlayers

2009-03-06 Thread morbo
Thank you very much. That really helped a lot. I am now able to render the different openstreetmap layers (mapnik, ti...@home, cycleMap) with the above mentioned OpenLayers.Layer.OSM object. But there still exist some problems. It is not entirely possible to edit the maps with the wicketstuff pro

A massive flaw in my understanding of Wicket

2009-03-06 Thread triswork
Hi I am new to wicket and have run into a problem in the development of my application. The problem has a few workarounds, but I am afraid it is pointing to a far larger gap in my understanding of Wicket. If anyone can tell my what is going on here, I will be *very* grateful. I put together a te

Re: [java-171] Tiles 2 + Spring management interface

2009-03-06 Thread Antony Stubbs
Would you care to back up that bold statement with some reasoning? Regards, Antony Stubbs, NZ On 6/03/2009, at 8:39 AM, Karl W wrote: Dave Stick with Spring MVC, stable, flexible, huge community. Also, with the new Spring Webflow/Spring Faces modules it makes JSF more manageable. Wicket

Re: What does Page Expired mean?

2009-03-06 Thread Edwin Ansicodd
Actually, the page became invalid because I missed the closing tag for in the html, only had and not the . This caused: ERROR org.apache.wicket.RequestCycle - unexpected exception when handling another exception: Expected close tag for which invalided the page. So missing wicket end tag

Re: Button onSubmit not called, instead page reloads

2009-03-06 Thread Edwin Ansicodd
I missed the closing tag for in the html, only had and not the . This caused: ERROR org.apache.wicket.RequestCycle - unexpected exception when handling another exception: Expected close tag for which invalided the page. I didn't associate this exception with the page reload problem beca

Re: Expected close tag for ??

2009-03-06 Thread Edwin Ansicodd
My error came from a missing a closing tag. Erik van Oosten wrote: > > You will also get this error when you accidentally use a WebComponent > instead of a WebMarkupContainer. The first does not allow embedded > content and will therefor issue this error. > > Regards, > Erik. > > >

Re: Equal InputValidator

2009-03-06 Thread Peter Thomas
On Thu, Mar 5, 2009 at 11:13 PM, SrinivasaRaju Ch < srinivas.r...@sifycorp.com> wrote: > Hi, > > How to use Equal InputValidator in wicket can any one give small example > on it. > > see line #30 http://code.google.com/p/perfbench/source/browse/trunk/perfbench/wicket-jpa/src/main/java/wicketjpa/