Re: Wicket stuff core, archetypes?

2009-02-09 Thread Jonathan Locke
couldn't sleep tonight, so i did a bit of work on it... http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata just a quick first sketch. thoughts? Jonathan Locke wrote: i don't have time to develop the metadata standard, but i could make time to review it.

Re: Using converters properly in Wicket?

2009-02-09 Thread Martin Makundi
why dont you create your own converter for now and see how that improves things. we are talking about something that took 1.4 seconds out of at least a 100+ second test... Ok, I am refactoring my code right now. It is not a 100 second test.. the profiler is running while I am analyzing it so

Re: Wicket stuff core, archetypes?

2009-02-09 Thread francisco treacy
coincidentally, i started working on that again and i was about to contact you to suggest a draft. my perspective are (for the moment) data that is to be mapped to fields currently supported in wicket hub. i put it in a jar metadata format. Site-URL: (maps to website url) License-Name: (maps to

Re: Example for presenting pdf in modal window

2009-02-09 Thread Ernesto Reinaldo Barreiro
Hi, I just added a page summarizing the discussion on this thread to the Wiki. http://cwiki.apache.org/confluence/display/WICKET/Displaying+content++(e.g.+PDF%2C+Excel%2C+Word)+in+an+IFRAME Hope it can be of any help to other people. Ernesto On Wed, Jan 28, 2009 at 5:21 PM, Ernesto Reinaldo

Nested forms : don't process inner form when outer form is submitted

2009-02-09 Thread Marieke Vandamme
Hello, I've been reading a lot about nested forms and what should happen with the inner forms when the outer form gets submitted. But I didn't found out how you can implement what i'm trying: I have inner form with some RequiredTextFields on it. These are required when the inner form is

Check if file exist?

2009-02-09 Thread dsj
Hi, how to check if one image exists in my app-folder? or in other way: how to check if any file exist im my Web-app\images? I am using wicket 1.3.4 e tomcat v6.0. Thx. -- View this message in context: http://www.nabble.com/Check-if-file-exist--tp21911335p21911335.html Sent from the Wicket -

Re: Proper hook for conversational state that also works with tests

2009-02-09 Thread cpopetz
Thanks Igor, I created https://issues.apache.org/jira/browse/WICKET-2090 igor.vaynberg wrote: the problem is wicket tester doesnt run wicket through the entire web-request workflow and you are hooking into a part that is not being hit. i have a good idea of where to add an extension point,

Session Constructor

2009-02-09 Thread Uwe Schäfer
Hi i just stumbled across this code in 1.4m3: public Session(Request request){ locale = request.getLocale(); if (locale == null){ throw new IllegalArgumentException(Parameter 'locale' must not be null); } } please don´t call me picky, but am i right to say, that thiss error message is

final Session.setLocale (1.4m3)

2009-02-09 Thread Uwe Schäfer
hi why is it, that setLocale(Locale) is final on Session ? i´d really like to overwirte that in order to be able to hook some preference-storing stuff in there, like setting cookies and/or updating persistent preference data. i´d understand it, if Session´s constructor would call it, but

Re: Check if file exists?

2009-02-09 Thread Jonas
Not really related to wicket... Anyway, check javax.servlet.ServletContext#getResourcePaths(String path) On Mon, Feb 9, 2009 at 12:51 PM, dsj deusd...@gmail.com wrote: Hi, how to check if one image exists in my app-folder? or in other way: how to check if any file exist im my Web-app\images?

Re: Check if file exists?

2009-02-09 Thread dsj
I try this. I have put the servlet.api in my build classpath and try, but wicket claim that not possible cast to servlet anyway. btw, this is a dependence feature of the container? Jonas-21 wrote: Not really related to wicket... Anyway, check

Re: final Session.setLocale (1.4m3)

2009-02-09 Thread Martijn Dashorst
Why are you doing this with 1.4M3? 1.4RC2 is about to be made available. Martijn 2009/2/9 Uwe Schäfer schae...@thomas-daily.de: hi why is it, that setLocale(Locale) is final on Session ? i´d really like to overwirte that in order to be able to hook some preference-storing stuff in there,

Re: Check if file exists?

2009-02-09 Thread Jonas
I assume you've tried to cast the wicket Request to a servlet request? Maybe you should try and ask google on how to access the servlet request from a wicket request: http://www.google.com/search?q=wicket+HttpServletRequest On Mon, Feb 9, 2009 at 1:31 PM, dsj deusd...@gmail.com wrote: I try

Re: Using Eclipse Wicket for Modular Webapps

2009-02-09 Thread Richard Allen
That is very interesting. We have divided our web applications into modules, which are essentially mini WARs that are merged in the build process to make the final deployed WAR. This allows us to share these modules among various web applications, which helps with code reuse and maintainability.

Re: Check if file exists?

2009-02-09 Thread dsj
Like igor says, webapplication.getservletcontext() thanks, works great! Jonas-21 wrote: I assume you've tried to cast the wicket Request to a servlet request? Maybe you should try and ask google on how to access the servlet request from a wicket request:

[WicketStuff] Progress bar, tasks and feedback messages

2009-02-09 Thread Piller Sébastien
Hello, I'm using wicketstuff-progressbar and it works very well (great job Christopher!). I was wondering how I can add feedbacks messages to the process (I need to display some warning informations when some work has been done but not completely). I tried both /Task#warn/ and

Ajax Example Page Problem

2009-02-09 Thread Daniel Ferreira Castro
I am having some difficulties to understand the example present on http://www.wicket-library.com/wicket-examples/ajax/todo-list.1 The problem as a matter of facts is that the example is full of inner classes and I am trying, using Eclipse, to make all of them Top Level Classes but everytime I do

Re: Ajax Example Page Problem

2009-02-09 Thread Thomas Mäder
Actually stating what the errors are might help. Thomas On Mon, Feb 9, 2009 at 2:38 PM, Daniel Ferreira Castro dfcas...@gmail.comwrote: I am having some difficulties to understand the example present on http://www.wicket-library.com/wicket-examples/ajax/todo-list.1 The problem as a matter

InMethod DataGrid Localization

2009-02-09 Thread Michal Hybler
Hi, is there any support for localization in DataGrid? I need to substitute cell content of explicit column. For example: I have row state and it can reach 3 values (created, updated, deleted) in my database but I want show substitutes for that values in my dataGrid (in other language). Is

Re: Ajax Example Page Problem

2009-02-09 Thread Daniel Ferreira Castro
The errors is not my big problem...because I am assuming that might be another easiest way then the one I am taking...but here is the problem because I maanged to solve them... My problem is that the example has lots of inner classes in orther to make the AJAX work and I thinking that the number

Re: InMethod DataGrid Localization

2009-02-09 Thread Ryan McKinley
Yes -- check the examples. I think all of them use an external properties file to declare the header row display. On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote: Hi, is there any support for localization in DataGrid? I need to substitute cell content of explicit column. For example:

SubmitLink only calls form.onsubmit with 1.4-rc2

2009-02-09 Thread Marieke Vandamme
Hello, I already use 1.4-rc2 for my projects, and found some error within the SubmitLink. Form form = new Form(webform){ public void onSubmit(){ System.out.println(on form submit); } }; add(form); form.add(new

Re: InMethod DataGrid Localization

2009-02-09 Thread Michal Hybler
Thanks for your help but I dont need to substitute header but the content of rows in explicit collumn. id | color | state -- 1 | red | created 2 | blue | updated In this example page which

Re: final Session.setLocale (1.4m3)

2009-02-09 Thread Uwe Schäfer
Martijn Dashorst schrieb: Hi Martijn Why are you doing this with 1.4M3? 1.4RC2 is about to be made available. thanks for taking the time. well, we have an essential local patch against 1.4m3 which would not make it into the official wicket code, but is necessary for us (related to caucho,

Re: Wicket stuff core, archetypes?

2009-02-09 Thread Jonathan Locke
using the maven deps is fine. the purpose i had in mind for the requirements and libraries nodes was just to enable display of the component's requirements on a page about the component... (whether it's built with maven or not). but using the maven deps would be more detailed and more

Re: InMethod DataGrid Localization

2009-02-09 Thread Ryan McKinley
For that you may want to try overriding newCell in AbstractLightWeightColumn public IRenderable newCell(IModel rowModel) { return new IRenderable() { public void render(IModel rowModel, Response response) { return

Re: Form Components With Built In Feedback

2009-02-09 Thread walnutmon
Igor, I know this is old, but in a post this morning you reminded me-it got lost in the shuffle at work lately. When I tried to implement this, I realized that IComponentBorder doesn't really extend from anything that can be added to a component. It extends IClusterable, which extends

Re: InMethod DataGrid Localization

2009-02-09 Thread Michal Hybler
Thnx for help this should be sufficient. ryantxu wrote: For that you may want to try overriding newCell in AbstractLightWeightColumn public IRenderable newCell(IModel rowModel) { return new IRenderable() { public void render(IModel rowModel,

URL Mapping (Beginner)

2009-02-09 Thread Andreas Balke
Hi guys, I'm playing around with wicket a bit, but I cannot solve an (probably easy) problem: my pages cannot be resolved. The Homepage class is reachable, but only be calling the Root URL. Calling an explicit html file gives me a Tomcat 404 without useless message... Am I something

RE: URL Mapping (Beginner)

2009-02-09 Thread Stefan Lindner
You need to do 2 things. 1. Mount your Page in Applicatioin.init() methode like mountBookmarkablePage(/Login, Login.class); As you see, you can give your page any name you want 2. Your e.g. Login.class must have a parameterless constructor or a constructor like public

Re: URL Mapping (Beginner)

2009-02-09 Thread Andreas Balke
Thank you Stefan. Is there even a more generic way, like telling Wicket: take all in this directory? Guess not, since this should be scanned on boot... ?! I just would like to skip to register each single class. Andi Stefan Lindner wrote: You need to do 2 things. 1. Mount your Page in

Re: Using converters properly in Wicket?

2009-02-09 Thread Igor Vaynberg
yes, they need to be threadsafe if you cache them. numberformat itself is also not threadsafe. another reason i can think of why we clone is that a code that gets a bigdecimalconverter via getconverter() can execute setters on it and modify it- which will affect the converter globally. im not

Re: Nested forms : don't process inner form when outer form is submitted

2009-02-09 Thread Igor Vaynberg
try letting your inner form implement IFormVisitorParticipant. another way is to override isrequired() and check for the submitting component. -igor On Mon, Feb 9, 2009 at 3:17 AM, Marieke Vandamme ma...@tvh.be wrote: Hello, I've been reading a lot about nested forms and what should happen

Re: SubmitLink only calls form.onsubmit with 1.4-rc2

2009-02-09 Thread Igor Vaynberg
jira it up. -igor On Mon, Feb 9, 2009 at 6:27 AM, Marieke Vandamme ma...@tvh.be wrote: Hello, I already use 1.4-rc2 for my projects, and found some error within the SubmitLink. Form form = new Form(webform){ public void onSubmit(){ System.out.println(on form

Re: problem deploying quickstart application on tomcat+apache (mod_jk)

2009-02-09 Thread Vika
I discovered that if in mod_jk.conf i change JkMount /quickstart/app/* ajp13 to JkMount /quickstart/* ajp13 it works. Servlet mapping in web.xml : servlet-mapping servlet-namequickstart/servlet-name url-pattern/app/*/url-pattern /servlet-mapping Any idea how I can

Bug modal.js when wicket in production mode / setStripJavascriptCommentsAndWhitespace(true)

2009-02-09 Thread Antoine Angenieux
Hi all, I can't tell you from which version it started, but in wicket-1.3 (as from the latest version on SVN), as soon as I do a setStripJavascriptCommentsAndWhitespace(true) or set the wicket mode to production, I get javascript errors in modal.js : (line 64 / 65 of the received javascript)

Re: URL Mapping (Beginner)

2009-02-09 Thread Matthew Hanlon
You can use PackageRequestTargetUrlCodingStrategy to mount an entire package. E.g., if you have a package com.company.pages with classes Page1, Page2, etc., you can mount the package mount(new PackageRequestTargetUrlCodingStrategy(/pages, PackageName.forClass(Page1.class))). This will mount your

Re: SubmitLink only calls form.onsubmit with 1.4-rc2

2009-02-09 Thread Igor Vaynberg
nevermind, fixed: WICKET-2093 -igor On Mon, Feb 9, 2009 at 8:30 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: jira it up. -igor On Mon, Feb 9, 2009 at 6:27 AM, Marieke Vandamme ma...@tvh.be wrote: Hello, I already use 1.4-rc2 for my projects, and found some error within the

Re: Session Constructor

2009-02-09 Thread Igor Vaynberg
fixed. -igor 2009/2/9 Uwe Schäfer schae...@thomas-daily.de: Hi i just stumbled across this code in 1.4m3: public Session(Request request){ locale = request.getLocale(); if (locale == null){ throw new IllegalArgumentException(Parameter 'locale' must not be null); } } please don´t

Re: final Session.setLocale (1.4m3)

2009-02-09 Thread Igor Vaynberg
2009/2/9 Uwe Schäfer schae...@thomas-daily.de: hi why is it, that setLocale(Locale) is final on Session ? i´d really like to overwirte that in order to be able to hook some preference-storing stuff in there, like setting cookies and/or updating persistent preference data. it is no longer

Re: URL Mapping (Beginner)

2009-02-09 Thread Andreas Balke
excellent :) Matthew Hanlon wrote: You can use PackageRequestTargetUrlCodingStrategy to mount an entire package. E.g., if you have a package com.company.pages with classes Page1, Page2, etc., you can mount the package mount(new PackageRequestTargetUrlCodingStrategy(/pages,

Re: final Session.setLocale (1.4m3)

2009-02-09 Thread Uwe Schäfer
Igor Vaynberg schrieb: Hi Igor, it is no longer final in rc3 *g* what did i miss? yes, you missed the fact that #setLocale() marks session object as dirty - damn right. thx. cu uwe - To unsubscribe, e-mail:

Re: final Session.setLocale (1.4m3)

2009-02-09 Thread Martijn Dashorst
If you want better merge support you should try the apache git mirrors provided by Jukka Zitting. Git's merging support is pretty solid compared to svn's. And much faster :) It would make keeping your own local fork up to date with main wicket much easier I guess. Martijn (note: I'm not a

Re: Using converters properly in Wicket?

2009-02-09 Thread Martin Makundi
Ok, then why Wicket's ConverterLocator is not thread safe? Or is it? ** Martin 2009/2/9 Igor Vaynberg igor.vaynb...@gmail.com: yes, they need to be threadsafe if you cache them. numberformat itself is also not threadsafe. another reason i can think of why we clone is that a code that gets a

Re: Bug modal.js when wicket in production mode / setStripJavascriptCommentsAndWhitespace(true)

2009-02-09 Thread Matej Knopp
Hi, thanks for the report. Should be fixed in SVN. -Matej On Mon, Feb 9, 2009 at 5:35 PM, Antoine Angenieux aangeni...@clinigrid.com wrote: Hi all, I can't tell you from which version it started, but in wicket-1.3 (as from the latest version on SVN), as soon as I do a

Re: URL Mapping (Beginner)

2009-02-09 Thread Maarten Bosteels
Or you can specify the mount path on the Page class itself: http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-annotation regards, Maarten On Mon, Feb 9, 2009 at 5:49 PM, Andreas Balke a...@doppelpop.de wrote: excellent :) Matthew Hanlon wrote: You can use

Re: Using converters properly in Wicket?

2009-02-09 Thread Igor Vaynberg
which part of it is not threadsafe? -igor On Mon, Feb 9, 2009 at 9:32 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Ok, then why Wicket's ConverterLocator is not thread safe? Or is it? ** Martin 2009/2/9 Igor Vaynberg igor.vaynb...@gmail.com: yes, they need to be threadsafe

Re: Bug modal.js when wicket in production mode / setStripJavascriptCommentsAndWhitespace(true)

2009-02-09 Thread Antoine Angenieux
Fantastic Matej, you're the man ;) Cheers, Antoine. Matej Knopp wrote: Hi, thanks for the report. Should be fixed in SVN. -Matej On Mon, Feb 9, 2009 at 5:35 PM, Antoine Angenieux aangeni...@clinigrid.com wrote: Hi all, I can't tell you from which version it started, but in wicket-1.3 (as

Re: static pages dynamic pages. How to have the same layout

2009-02-09 Thread Vika
Thank you for the responses! I am trying to add a static link (equivalent to Hello World as a Static Page in the example) to my test page but running into problems. Is there a way for me to get a complete .war file for this example? If not, could anyone clarify where on the file system

Re: problem deploying quickstart application on tomcat+apache (mod_jk)

2009-02-09 Thread Erik van Oosten
Only requests that start with /quickstart are directed to Tomcat. Only requests that start with /quickstart/app are directed to Wicket. BTW, it is recommended to use Wicket from a Filter instead of a Servlet. Regards, Erik. Vika wrote I discovered that if in mod_jk.conf i change JkMount

Problem with WebRequestCodingStrategy's and mobile phones

2009-02-09 Thread Jeremy Levy
We figured out something very interesting with the default URL coding strategy's that Wicket uses when using mobile phones / devices. We run a fairly heavily trafficked mobile site, and having been using CryptedUrlWebRequestCodingStrategy for sometime. While attempting to debug some page timeout

Re: problem deploying quickstart application on tomcat+apache (mod_jk)

2009-02-09 Thread Vika
Thank you! I switched to Filter and the problem is gone - Now it works with JkMount /quickstart/app/* ajp13 Vicky Erik van Oosten wrote: Only requests that start with /quickstart are directed to Tomcat. Only requests that start with /quickstart/app are directed to Wicket. BTW, it is

Building and using TinyMCE in Wicket

2009-02-09 Thread ashtek
Hey all, I am trying to use TinyMCE, and I downloaded all the source from here - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/ This creates a folder called tinymce-parent which in turn has two subfolders tinymce and tinymce-examples.

Re: Using converters properly in Wicket?

2009-02-09 Thread Martin Makundi
which part of it is not threadsafe? /** Maps Classes to ITypeConverters. */ private final MapString, IConverter classToConverter = new HashMapString, IConverter(); The ConverterLocator.get(XX) can be used from multiple threads, can it not? In that case, the HashMap would not be

Re: Using converters properly in Wicket?

2009-02-09 Thread Igor Vaynberg
as long as there are no sets you can run concurrent reads on the hashmap. and since the setters are only called when the application is initialized we are ok. -igor On Mon, Feb 9, 2009 at 9:36 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: which part of it is not threadsafe?

How to handle this exception properly

2009-02-09 Thread Anton Veretennikov
Hello, all wicket users! I receive HTTP Status 500 error in this situation: I have a page with empty html-file and page's onRender() looks like: OutputStreamWriter writer = null; try { writer = new OutputStreamWriter(getResponse().getOutputStream(), encoding); String enc =