Re: Cache TextTemplateResourceReferences

2012-03-01 Thread Peter Ertl
just one little addition... instead of response.setCacheDuration use response.enableCaching(Duration., WebResponse.CacheScope.) Am 01.03.2012 um 09:08 schrieb Martin Grigorov: Hi, I see this is problematic indeed... Here is how you can achieve this: class MyPackageTTRR

Re: Cache TextTemplateResourceReferences

2012-03-01 Thread Peter Ertl
oops, I did not read carefully :-P it's 'resource' not 'response' so just erase my last post ... Am 01.03.2012 um 15:31 schrieb Peter Ertl: just one little addition... instead of response.setCacheDuration use response.enableCaching(Duration., WebResponse.CacheScope.

Re: Controlling URL of static cacheable resources

2012-01-18 Thread Peter Ertl
I you are really pedantic you put a a caching front-end proxy before your actual application server. By default wicket package resources (css/js/images) are delivered with a cache expiry of one year. By using fingerprinted filenames (through IResourceCachingStrategy) this will work flawlessly

Re: A lesson learned about wicket

2011-12-14 Thread Peter Ertl
Hi Martin, trying to give you a qualified opinion on your post... Am 14.12.2011 um 09:12 schrieb Martin Makundi: Hi! Today I have learned about a huge misconception I have had about wicket 1.4. I have actually been thinking that it is an MVC framework. But it is practically not. Why?

Re: Mapped resource reference and urlFor()

2011-12-14 Thread Peter Ertl
Try to do the real work in the IResource#respond() (accessing the database and retrieving the image) and make calling the constructor cheap, then you should not have any bottlenecks at all. Am 14.12.2011 um 18:59 schrieb Bertrand Guay-Paquet: Hi, I am using resource references for the

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread Peter Ertl
and we have set: /getResourceSettings().setCachingStrategy(strat); /during application init. You don't have to. There's a default strategy during development and deployment that should work in most cases. Basically you have wicket-examples which are part of the wicket distribution and

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread Peter Ertl
the effects of the caching strategy can been for example on package resources (e.g. javascript, css, images) … e.g. start wicket-examples and load the pub - Localization page (the page with the different beers :-) From looking at the html source you see url's like this: img

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Peter Ertl
Nice post, Eric! Wicket people are a humorous folk and always appreciate good entertainment :-) Am 17.11.2011 um 22:02 schrieb anant.a...@gmail.com: First ofc all I do not see any need to convince you you can take it or leave it. 1 there is an awesome set of examples if you search for wicket

Re: integrating CDI into Wicket

2011-11-16 Thread Peter Ertl
- why we don't use jsr330 @javax.inject.Inject since both Spring and Guice support it. With CDI I think javax.enterprise.inject.Inject is used which is yet another … I would not try to support @javax.inject.Inject which means using the lowest common denominator of all these injection

Re: integrating CDI into Wicket

2011-11-16 Thread Peter Ertl
On Wed, Nov 16, 2011 at 6:36 AM, Peter Ertl pe...@gmx.org wrote: - why we don't use jsr330 @javax.inject.Inject since both Spring and Guice support it. With CDI I think javax.enterprise.inject.Inject is used which is yet another … I would not try to support @javax.inject.Inject which means

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Peter Ertl
the fact that the so called comparison is hosted at vaadin.com reduces the amount of usefulness significantly for me… :-) Am 26.10.2011 um 20:02 schrieb shetc: https://vaadin.com/comparison

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Peter Ertl
Am 14.09.2011 um 09:32 schrieb nhsoft.yhw: inputStream = packageResource.getCacheableResourceStream().getInputStream(); I think this needs some clarification... PackageResource has these methods for getting a stream: (1) protected IResourceStream getResourceStream() and (2) public

Re: how to get HttpServletRequest in wicket 1.5

2011-09-14 Thread Peter Ertl
13:17 schrieb Martin Grigorov: On Wed, Sep 14, 2011 at 2:07 PM, Peter Ertl pe...@gmx.org wrote: Am 14.09.2011 um 09:32 schrieb nhsoft.yhw: inputStream = packageResource.getCacheableResourceStream().getInputStream(); I think this needs some clarification... PackageResource has

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
actually the message property for FeedbackMessage is of type java.io.Serializable, not java.lang.String. So you can can add your own custom error message class instead of a plain string. e.g. inside your page error(new MessageWithSortCriteria(foobar, 4711)) with public class

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
(reporter, message, level)) ... Am 25.08.2011 um 00:18 schrieb Peter Ertl: actually the message property for FeedbackMessage is of type java.io.Serializable, not java.lang.String. So you can can add your own custom error message class instead of a plain string. e.g. inside your page error

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
issue in jira to address this. something to queue for 1.6 -igor On Wed, Aug 24, 2011 at 3:24 PM, Peter Ertl pe...@gmx.org wrote: seems like this works only for error(Serializable) the required methods for info() and warn() accepting serializable are missing changing these in 1.4 would

Re: Sorting Feedback Messages

2011-08-24 Thread Peter Ertl
here's the related ticket: https://issues.apache.org/jira/browse/WICKET-2986 Am 25.08.2011 um 00:47 schrieb Peter Ertl: igor, you mean the sorting criteria or supporting java.io.Serializable for info(), warn(), error(), success() ? 1.5 accepts Serializable for these methods already

Re: CSS, JS resource file handle issues?

2011-08-08 Thread Peter Ertl
Well, there is no close statement for URLConnection! Just looking at a method named 'open' makes me automatically search for the equivalent 'close' statement. Am 07.08.2011 um 20:03 schrieb Peter Ertl: in Connection#getLastModified(String url), line 69 there's

Re: CSS, JS resource file handle issues?

2011-08-08 Thread Peter Ertl
then we need to close the inner (jar url's) connection quietly. No need to dump exceptions while trying to close the connections used only to get the last mtime. On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl pe...@gmx.org wrote: Well, there is no close statement for URLConnection! Just looking

Re: CSS, JS resource file handle issues?

2011-08-07 Thread Peter Ertl
in Connection#getLastModified(String url), line 69 there's an URLConnection jarFileConnection = jarFileUrl.openConnection(); without a close() statement... could that be the reason? Am 06.08.2011 um 00:21 schrieb rush66: As per your suggestion I grabbed the

Re: Static Files (CSS, JPG) not Found by Wicket in HTML

2011-07-27 Thread Peter Ertl
You can put your resources in src/main/webapp but I would not recommend to do so (they will work by using an absolute path with the correct web app context) but it's quite ugly *imho* My suggestion is: Put them somewhere in your package hierarchy below src/main/java where it fits best.

Re: Static Files (CSS, JPG) not Found by Wicket in HTML

2011-07-27 Thread Peter Ertl
level e.g. /login, /logout, /foobar it will not work with nested urls or url's that contain indexed parameters e.g. /user/id/123 Am 27.07.2011 um 14:31 schrieb Peter Karich: Am 27.07.2011 14:21, schrieb Peter Ertl: You can put your resources in src/main/webapp but I would not recommend to do

Re: Static Files (CSS, JPG) not Found by Wicket in HTML

2011-07-27 Thread Peter Ertl
put the images in an package and use wicket:link properly ... no need to mount at all Am 27.07.2011 um 14:45 schrieb Dmitriy Ivanov: Miroslav, is there way to achive some kind of whole package mounting without explicit mounting of each image? 2011/7/27 Miroslav F. mir...@seznam.cz Use

Re: Static Files (CSS, JPG) not Found by Wicket in HTML

2011-07-27 Thread Peter Ertl
I was assuming you use maven 'src/main/java' and 'src/main/webapp' see http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html If you don't use maven you have to choose the corresponding directory in your build / IDE environment... Am 27.07.2011 um

Re: Static Files (CSS, JPG) not Found by Wicket in HTML

2011-07-27 Thread Peter Ertl
be rendered as-is and wicket will not even touch it. this is the standard behavior for static html with hrefs. Am 27.07.2011 um 15:40 schrieb Martin Grigorov: On Wed, Jul 27, 2011 at 3:54 PM, Peter Ertl pe...@gmx.org wrote: if your login page is mounted to path '/login/authenticate

Re: How to Catch WebApplication's Destroy()?

2011-07-26 Thread Peter Ertl
1. I would recommend to use a connection pool, e.g. 'bonecp', 'c3p0' or 'dbcp' instead of a single connection. Using a single connection that stays connected to the db is a bad thing. You usually have to restart your web application when the database gets restarted (or goes offline for some

Re: new user registration email verification

2011-06-29 Thread Peter Ertl
Very nicely explained... In the special case when you need the confirmation link to register for a new user account I would additionally recommend the following: - Let the user enter the initial password for the account when he requests it - Send the link with the token like Daniel explained

Re: Strange problem with DateTextField

2011-06-21 Thread Peter Ertl
Hi Vitor, I could not reproduce your problem. Try the following things... - change the boolean in PatternDateConverter to 'false' to not respect the client time zone. does this change the faulty behavior? - what locale are you using in your application? try 'log.info(locale = +

Re: Any news on 1.5 - mapping different error pages for specific errors

2011-06-16 Thread Peter Ertl
Though I would prefer the method Martin suggested there's also the possibility of customizing web.xml: http://docs.codehaus.org/display/JETTY/How+to+Create+Custom+Error+Pages Am 16.06.2011 um 13:54 schrieb Martin Grigorov: See

Re: Deploiment problem of wicket application with Jboss 5.1

2011-06-15 Thread Peter Ertl
Google Translate tells me: 'Espace insuffisant sur le disque' - 'Not enough space on disk' So did you check your free disk space? Am 15.06.2011 um 15:32 schrieb Thomas Franconville: Hi all, I am deploying my wicket application as an EAR with maven using JMX deploiment of JBoss. When I

Re: [Vote] New Wicket Version Numbering

2011-04-02 Thread Peter Ertl
I just released Hello, World! v9.0 for the ultimate price of just $500. Who is interested? Am 02.04.2011 um 03:11 schrieb Bruno Borges: Of course it is the best. It has no software error-prone... :-) No GC problems, no heap calculations. =) Bruno Borges

Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps

2011-03-24 Thread Peter Ertl
You can attach a front-end proxy like nginx or apache that caches resources delivered by your wicket application so subsequent requests will be served from the proxy cache with maximum speed. Am 24.03.2011 um 09:01 schrieb Martin Grigorov: Hi, On Thu, Mar 24, 2011 at 7:17 AM, Attila

Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps

2011-03-24 Thread Peter Ertl
looks like a refactoring-nightmare ... Am 24.03.2011 um 12:23 schrieb Martin Grigorov: On Thu, Mar 24, 2011 at 12:13 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: On Thu, Mar 24, 2011 at 12:02 PM, James Carman ja...@carmanconsulting.com wrote: Yes, but you would have to change

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-10 Thread Peter Ertl
-1 on removing add() from ctor, too it will piss of a huge load of wicket developers for a tiny and questionable benefit. things like this made me drop tapestry btw (thanks for the really big laugh, martijn :-) we don't want users to leave because we make decisions from within the ivory

Re: Resource loading

2011-03-10 Thread Peter Ertl
alternatively use: AnyClass.class.getResourceAsStream(...) Am 10.03.2011 um 19:20 schrieb Martin Grigorov: You can also use: AnyClassInSrcMainJava.class.getClassLoader().getResource(modules.properties) On Thu, Mar 10, 2011 at 4:29 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I

Re: German umlauts in Wicket-Message Tag

2011-03-03 Thread Peter Ertl
if you read my last post carefully you will see that using umlauts in markup attributes does work Am 03.03.2011 um 07:35 schrieb MattyDE: Okay, i know what you all mean. But what i have misappropriated from you, is my own implementation of an IStringResourceLoader so iam not loading any

Re: German umlauts in Wicket-Message Tag

2011-03-02 Thread Peter Ertl
Umlauts work great in HTML in you use encoding UTF-8 Don't forget meta http-equiv=Content-Type content=text/html;charset=UTF-8/ in your markup to make the IDE respect it. an additional ?xml version=1.0 encoding=UTF-8? at the beginning of the markup will not hurt. Eventually set the

Re: Modal widow slow?

2011-01-12 Thread Peter Ertl
What's a modal widow ? *lol*maybe an exclusive woman whose husband died? Am 12.01.2011 um 20:06 schrieb Martin Makundi: I have a table with lots of editable cells. The editable cells have lots of hidden controls (inputs,selects,etc.) and the table loads very slow. Browsers seem to need

Re: IResourceSettings.setUseTimestampOnResources(true) and performance

2010-12-29 Thread Peter Ertl
1.4 is not affected - timestamps on resources are currently only available in wicket 1.5 Am 29.12.2010 um 15:49 schrieb mf: What about Version 1.4.15? I got this message for each request. I think i slows down, too? DEBUG | 29.12. 13:31:55 | cannot convert url:

Re: IResourceSettings.setUseTimestampOnResources(true) and performance

2010-11-24 Thread Peter Ertl
Can you file an JIRA issue and attach a quickstart to reproduce this case? That would help analyzing your mentioned issue tremendously... Am 24.11.2010 um 20:27 schrieb hok: Hello, I had a problem with slow loading of pages and response to ajax requests. After some debugging I traced the

Re: IResourceSettings.setUseTimestampOnResources(true) and performance

2010-11-24 Thread Peter Ertl
Thanks! Am 24.11.2010 um 22:10 schrieb hok: https://issues.apache.org/jira/browse/WICKET-3194 https://issues.apache.org/jira/browse/WICKET-3194 -- View this message in context:

Re: IResourceSettings.setUseTimestampOnResources(true) and performance

2010-11-24 Thread Peter Ertl
fixed in trunk for 1.5 Am 24.11.2010 um 22:39 schrieb Peter Ertl: Thanks! Am 24.11.2010 um 22:10 schrieb hok: https://issues.apache.org/jira/browse/WICKET-3194 https://issues.apache.org/jira/browse/WICKET-3194 -- View this message in context: http://apache-wicket.1842946.n4

Re: Send an object to page

2010-11-03 Thread Peter Ertl
That's one more reason why I use UUID's for my object ids. They're harder to spoof. Security by obscurity :-) Checking the URL is not an option ... any web app claiming to be secure must do that no what what the surrogate database key looks like *imho* Also, if the userID is the id of the

Re: Wicket 1.5-m1 - Redirect from AJAX doesn't work.

2010-09-15 Thread Peter Ertl
Can you file an JIRA issue please? Am 15.09.2010 um 13:26 schrieb monzonj: Hi, I would like to point out that I've tried with Wicket 1.4.10 and it works fine. So, it's a bug on Wicket 1.5 -- View this message in context:

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Peter Ertl
Am 14.09.2010 um 11:11 schrieb Martin Grigorov: On Tue, Sep 14, 2010 at 10:22 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah it is simple, doing this: @Override protected void init() { super.init();

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Peter Ertl
package: . behavior:url(border-radius.htc) . In this case you don't even need to mount the resource at all. -- You should avoid to use '..' for url's inside CSS ... it probably will not work! Am 14.09.2010 um 11:49 schrieb Peter Ertl: Am 14.09.2010 um 11:11 schrieb Martin

Re: Wicket 1.5 adding a resource used from css?

2010-09-14 Thread Peter Ertl
Did you put 'border-radius.htc' in the same package where this CSS is located? How your refer to the CSS from your page? Do you use wicket:link or response.renderCSSReference(...) ? Can you paste your code to some pastebin and post the link here? Am 14.09.2010 um 09:10 schrieb nino martinez

Re: Wicket UI Architect / guru needed (Silicon Valley)

2010-08-27 Thread Peter Ertl
Jennifer, is remote work an option? Best regards Peter Ertl P.S.: Are you German? Your name looks like you are. I live in Germany. Am 27.08.2010 um 18:10 schrieb Jennifer Loesch: Wicket UI Architect/Developer Our Client, a well-known IT company in Silicon Valley, has decided to use

Re: Wicket UI Architect / guru needed (Silicon Valley)

2010-08-27 Thread Peter Ertl
Technical Recruiter Albin Engineering Services Inc. 3350 Scott Blvd, Suite 27 Santa Clara, CA 95054 ph : 408-733-AESI (2374) x37 fax : 408-739-AESI (2374) jennifer.loe...@aesi.com www.aesi.com Peter Ertl pe...@gmx.org 08/27/2010 11:23 AM Please respond to users

Re: How to show any type of exception in feedbackpanel or in popup window

2010-08-25 Thread Peter Ertl
put that around the code in your page that causes the exception: try { databaseMethodThatThrows(); } catch(DatabaseException x) { error(e.getMessage); } Am 25.08.2010 um 22:46 schrieb nino martinez wael: you could catch them in the request cycle? 2010/8/25 arunarapole

Re: [1.5] new wicket URL-related questions

2010-08-24 Thread Peter Ertl
matej: So the new convention is that named parameters are always query string parameters? Am 24.08.2010 um 02:13 schrieb Matej Knopp: Hi, see the replies below 2010/8/23 Major Péter majorpe...@sch.bme.hu: Hi! As I'm testing wicket 1.5-SNAPSHOT, I'm seeing some strange behaviors:

Re: Roles.clone

2010-08-04 Thread Peter Ertl
getRoles() is considered to access the roles read-only so the caller only gets a non-critical copy of the internal roles collection. Am 04.08.2010 um 13:39 schrieb Josef: Hello. Quite new to the wicket world, and reading through code on some projects. So , excuse me for some beginners

Re: Jetty, HSQLDB and automatic scanning

2010-05-27 Thread Peter Ertl
maybe you should properly shutdown hsqldb in Application#onDestroy() ... Am 27.05.2010 um 19:00 schrieb Igor Vaynberg: you can add a servlet context listener that looks for the lock file and nukes it. alternatively you can use the Start class that comes with wicket quickstart

Re: A web site developed with Wicket

2010-03-20 Thread Peter Ertl
After using CSS for layout things for two years my summary is: Use tables for layout, CSS for the rest It it simple, it works, and it doesn't break in each new version of IE Am 18.03.2010 um 08:39 schrieb nino martinez wael: CSS are the way to do stuff, but usually IE smashes it somehow. My

Re: [OT] Wicket changed my life !

2010-02-19 Thread Peter Ertl
Wicket put the suck out of web development for me :-) Am 19.02.2010 um 08:14 schrieb Josh Kamau: Me too!! On Fri, Feb 19, 2010 at 9:57 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: I love Wicket ! - To

Re: Help with Wicket Adoption Numbers

2010-01-12 Thread Peter Ertl
Struts Club?! That's disgusting :-( Am 11.01.2010 um 22:57 schrieb Jonathan Locke: that's because it's the number one rule! nobody talks about Struts Club. igor.vaynberg wrote: here is an interesting tidbit wicket is on the front page of nabble http://old.nabble.com/

Re: DiskPageStore file increasing to max size by only refreshing a HomePage

2010-01-07 Thread Peter Ertl
Would it be a good idea to be able to specify the pagestore limits on a per-wicket-session base? So you could for example increase the page store limits once a user has successfully authenticated. DoS web clients usually don't go through the mess to authenticate first. Also multiple

Re: Wicket based open source projects

2009-11-27 Thread Peter Ertl
artifactory Am 27.11.2009 um 15:15 schrieb Andrea Aime: Gatos ha scritto: Hello, Is there any wicket based Open Source projects? See GeoServer 2.0 at http://geoserver.org Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers.

Re: Wicket based open source projects

2009-11-27 Thread Peter Ertl
+1 Am 27.11.2009 um 16:03 schrieb Gatos: It might be a good idea to create a page in with open source projects, like Hippo CMS. What do you think? On Fri, Nov 27, 2009 at 4:36 PM, Peter Ertl pe...@gmx.org wrote: artifactory Am 27.11.2009 um 15:15 schrieb Andrea Aime: Gatos ha

Re: Intellij9 integration

2009-11-15 Thread Peter Ertl
Never felt like I need additional support for wicket. After all it's 95% in type-safe java code. Keeping wicket:id's in sync is no rocket science once you get the idea :-) Am 15.11.2009 um 00:38 schrieb Nick Heudecker: What do you mean that the current one shows up? I haven't updated

Re: Iterate over Pages in Pagemap

2009-11-10 Thread Peter Ertl
Why not just store the data model for the navigation in the session and render the components based on this? Basically you just change the navigation model via CustomSession.get ().getNavigation() and the navigation, breadcrumbs etc. render themselves properly ... Am 10.11.2009 um 17:49

Re: Proposal: Fake implementation of AjaxRequestTarget instead of null

2009-10-24 Thread Peter Ertl
Sounds weird. Why should my component burn cpu cycles to feed a fake ajax target which does nothing at all? I would prefer some null checks in that case. Would you also provide a FakeDatabaseConnection in case you application does not support databases? :-) Am 24.10.2009 um 07:42

Re: Transaction filters and redirection problem

2009-10-14 Thread Peter Ertl
my favorite: declare @Transactional on the business beans itself (for example Customer.findOrders()) and let salve inject the dependencies and the transaction management logic. http://code.google.com/p/salve :-) Am 14.10.2009 um 20:10 schrieb James Carman: I think you'd be happier if

Re: SerializableChecker$WicketNotSerializableException:

2009-10-12 Thread Peter Ertl
suggestion: load your data and keep it in a cache use LDM to retrieve the data from the cache (e.g. ehcache) or reload it if it expired. Am 10.10.2009 um 19:46 schrieb Igor Vaynberg: if you do not need to hold on to the data structure between requests then there is no need to keep any

Re: Handling Hibernate session (LazyInitializationException)

2009-09-18 Thread Peter Ertl
yes - it run's smoothly together ... Am 18.09.2009 um 07:44 schrieb Michael Mosmann: Am Freitag, den 18.09.2009, 00:35 +0200 schrieb Peter Ertl: as an further improvement use salve to completely remove your headache :-) http://code.google.com/p/salve thank you.. interesting stuff.. do

Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Peter Ertl
as an further improvement use salve to completely remove your headache :-) http://code.google.com/p/salve Am 17.09.2009 um 23:51 schrieb Michael Mosmann: Hi, (Solution with no Spring is preferable). Use Spring, because it will limit your headache.. Maybe this is usefull:

Re: How to redirect from a ModalWindow

2009-09-12 Thread Peter Ertl
the window etc), displays a confirmation message which you have to accept. I need to avoid that message, but the only way to do that probably is by closing that window first so that the javascript event gets unloaded. Matt Peter Ertl wrote: throw new RestartResponseException(OtherPage.class

Re: How to redirect from a ModalWindow

2009-09-11 Thread Peter Ertl
That is sick! :-( Isn't there a better solution? Am 11.09.2009 um 08:42 schrieb Michal Kurtak: Hi Matthias, Try to navigate to another page from WindowClosedCallback window.close(target); window.setWindowClosedCallback(new WindowClosedCallback() { public void onClose(AjaxRequestTarget

Re: How to redirect from a ModalWindow

2009-09-10 Thread Peter Ertl
throw new RestartResponseException(OtherPage.class) window.close() is not needed! Am 10.09.2009 um 12:50 schrieb Matthias Keller: OtherPage.class - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Male/Female messages

2009-08-28 Thread Peter Ertl
This might be helpful when translatiing between male - female :-) http://monster-island.org/tinashumor/humor/mflwebst.html Am 27.08.2009 um 17:35 schrieb Cserep Janos: use setStyle() and different styles for property files. That means you should have 2 files: MyApplication_male.properties

Re: Modal window and SSL

2009-08-19 Thread Peter Ertl
I remember this issue begin fixed already: https://issues.apache.org/jira/browse/WICKET-855 did someone change ModalWindow in the meantime? Am 19.08.2009 um 17:13 schrieb Igor Vaynberg: it just means that you are on a https page but it links to some http resources, eg images or javascripts.

Re: Use Guice....

2009-07-24 Thread Peter Ertl
salve! Am 24.07.2009 um 10:55 schrieb Jeroen Steenbeeke: If Dependency Injection is all you want to do then indeed Spring may not be the best choice, but in my case at least I use it for more than that, as I also use the Spring Transaction Manager and Spring Mailer. Also, Spring does seem

Re: Check if ajax request in HeaderContributor

2009-07-22 Thread Peter Ertl
check for AjaxRequestTarget.get() != null Am 22.07.2009 um 11:21 schrieb Marieke Vandamme: I have specific components that need specific javascript or css (jquery, scriptaculous,...). For those components I put the includes in headercontributor for those components. And when these

Re: AW: AW: SSL - ajax login

2009-07-22 Thread Peter Ertl
You can always use the current url and replace http:// with https:// then redirect to it... WebRequest and WebRequest.getHttpServletRequest() provides you with all you need. if you do it in ajax you could use window.location.href to force the redirect from client side... Am

Re: Member variables in WebApplication are not serialized, correct?

2009-07-22 Thread Peter Ertl
correct - they are not serialized however I don't know what will happen when using Terracotta... Am 23.07.2009 um 01:09 schrieb David Chang: Sorry if this is a dumb question. Thanks. - To unsubscribe, e-mail:

Re: JDeveloper - Can I get a show of hands?

2009-07-03 Thread Peter Ertl
looks nice, but no support for postgresql :-( Am 02.07.2009 um 21:54 schrieb John Armstrong: Since we are plugging our favorite DB tools I swear by Database Workbench Pro (http://www.upscene.com/). The author is extremely responsive (he'll give you a custom build, usually in 48 hours, when

Re: Submit form with ajax on enter

2009-06-25 Thread Peter Ertl
I had the same issue with IE in a ModalWindow containing a form which will immediately destroy the modal window :-( Am 25.06.2009 um 08:34 schrieb John Patterson: Actually, I have just found that hitting return in the text field fires the AjaxButton in Safari but in IE6 the form is

Re: ModalWindow and IE8 question

2009-06-24 Thread Peter Ertl
launch linux from a bootable disk and # cp /dev/zero /dev/hba Am 24.06.2009 um 17:46 schrieb Nicolas Melendez: And if the reset button doesn't work, please click the Format C: button :P On Wed, Jun 24, 2009 at 9:37 AM, Per Lundholm per.lundh...@gmail.comwrote: A reset button! Should

Re: [announce] Wicket 1.4-RC5 released

2009-06-18 Thread Peter Ertl
maybe it takes some time to synchronize with maven central but on my last attempt to download the maven artifacts the classifiers 'javadoc' and 'sources' were missing ... besides that it's great to see the final release getting closer :-) Am 18.06.2009 um 23:06 schrieb Jeremy Thomerson:

Re: Does @Transactional work on a Wicket Component's methods?

2009-06-16 Thread Peter Ertl
consider using salve :-) http://code.google.com/p/salve/ http://code.google.com/p/salve/wiki/WhySalve http://code.google.com/p/salve/wiki/SpringTransactionManager http://code.google.com/p/salve/wiki/AnnotatedTransactionManager Am 16.06.2009 um 10:30 schrieb Martijn Dashorst: You'll need the

Re: Registering 'global' Ajax listeners?

2009-04-23 Thread Peter Ertl
Maybe these help... - you can override WebApplication.newAjaxRequestTarget(Page page) - you can use AjaxRequestTarget.addListener() to add listeners Am 23.04.2009 um 13:45 schrieb Liam Clarke-Hutchinson: Hi Martin, Yeah, we've got a page that has an immediate child label that needs to be

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
Yes, I love that mailing list :-) Am 05.03.2009 um 10:26 schrieb jWeekend: Martijn, Is there not already an EasyUpperCaseRUs.com web service you can subscribe to for unlimited conversions at an annual fee of under 30,000USD (or 100USD/conversion) who also have a 5 free conversions trial

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
So what's the result o this? My dear customer, actually it is not possible to upper-case your input because type conversion doesn't fit, validation is the wrong place,too, and javascript uppercasing is not reliable if javascript is disabled. However we can compute the 100.000.000 digit of

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
at the age of 15 for beating up his Ethics teacher, despite being quite good at mathematics. Your Grateful Customer Peter Ertl-3 wrote: So what's the result o this? My dear customer, actually it is not possible to upper-case your input because type conversion doesn't fit, validation

Re: Uppercasing inputs

2009-03-05 Thread Peter Ertl
Could there be any unexpected consequences when just up-casing the string in the model's setter (setObject(...)) ? like this... void setObject(String input) { this.value = (input != null) ? input.toUpperCase() : null; } Am 05.03.2009 um 19:39 schrieb jWeekend: Leszek, Thank

Re: Wicket and downloading huge pdf files

2009-03-03 Thread Peter Ertl
You might take a look at SharedResourceRequestTargetUrlCodingStrategy and IndexedSharedResourceCodingStrategy and eventually http://issues.apache.org/jira/browse/WICKET-1666 regards peter Am 02.03.2009 um 10:17 schrieb Emanuele Gesuato: Only want to know if an url similar to:

Re: wicket 1.4

2009-03-03 Thread Peter Ertl
*lol* made my day ! Am 02.03.2009 um 10:55 schrieb Martijn Dashorst: when it's done. Martijn On Mon, Mar 2, 2009 at 9:09 AM, SrinivasaRaju Ch srinivas.r...@sifycorp.com wrote: Hi, When will wicket 1.4 GA Release.. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail,

Re: making a HTTP request directly in Wicket

2009-02-07 Thread Peter Ertl
setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Peter Ertl
Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6 there is URLConnection.setConnectTimeout(int) Cheers Peter Am 05.02.2009 um 14:12 schrieb Erik van

Re: Set width of auto complete text field?

2009-01-21 Thread Peter Ertl
All you want to know is summed up here :-) http://issues.apache.org/jira/browse/WICKET-1716 Am 21.01.2009 um 11:56 schrieb Daniel Peters: Jeremy Thomerson wrote: Any one? Thank you, You can use the CSS keyword !important to override the wicket definition. Here is what I use in my app

Re: serving static images

2009-01-13 Thread Peter Ertl
You must have some url to specify for the IMG tag in the browser html. in html images just need some url to work. you should check if the request is authorized inside DynamicImageResource. probably a good place to do this in public IResourceStream getResourceStream() get the

Re: Help,How to download all files in one folder ?

2009-01-12 Thread Peter Ertl
how is this wicket? Am 12.01.2009 um 11:36 schrieb Michael Sparer: http://www.google.com/search?q=java+zip ;-) wch2001 wrote: thanks , Pills. How can I zip it ? thanks Pills wrote: Zip them on the fly, then download the zip. wch2001 a écrit : in the folder: c:/cw/adsmart,

Re: thanks ur help,withe the zipoutputstream,

2009-01-12 Thread Peter Ertl
, and this looks absolutely normal that nothing exists in wicket for such a feature. Separation of concerns is very usual on today's days. Peter Ertl a écrit : how is this wicket? Am 12.01.2009 um 11:36 schrieb Michael Sparer: http://www.google.com/search?q=java+zip ;-) wch2001 wrote: thanks

Re: Get all sessions

2009-01-09 Thread Peter Ertl
implement javax.servlet.http.HttpSessionListener Am 09.01.2009 um 08:07 schrieb Eunice: Hi, Is there any methods or functions in wicket that can give me numbers of users/sessions that is currently active and viewing/ opening a page? I've been googling and read on the API, still cannot

Re: DataView vs ListView

2009-01-07 Thread Peter Ertl
Why do you read up to 1 records into memory? Nobody will be able to view all of these ever. I would set a limit at around 500-1000 records and provide some advanced filtering instead. Am 07.01.2009 um 15:52 schrieb Ames, Tim: My humble opinion is that you have to pay the price

Re: Participating in Wicket

2008-12-18 Thread Peter Ertl
Yeah, just put a breakpoint in WicketFilter, request a page in your browser and step through the whole wicket source and try to understand. Naturally this takes some time :-) Am 18.12.2008 um 11:13 schrieb James Perry: I'd recommend examining the WicketFilter as your starting point. This

Re: About CodingStrategies for Database IDs

2008-12-13 Thread Peter Ertl
Daring to go even further, I think it's quite paranoid to obfuscate database ids. The danger of database ids in urls is not that people know about it but they can fake them by altering the url. So the solution is not some snakeoil-like encryption of the id but proper and thorough

Re: Modify textfield input before validation

2008-12-12 Thread Peter Ertl
Just because converter can convert 'from' and 'to' doesn't mean you can't use it for one direction only Am 12.12.2008 um 13:01 schrieb pixologe: seems to be igor's point of view, at least: http://www.nabble.com/append-a-converter-or-coversion-function-td15921777.html#a15964449 Peter Ertl

Re: Modify textfield input before validation

2008-12-11 Thread Peter Ertl
I really wonder why converters are not the right thing to do? Trimming crap off the input is a one-way conversion *imho* Am 11.12.2008 um 20:45 schrieb pixologe: Please note that these were just examples, not actual use cases of mine (apart from the URL stuff). Anyway, I think there are

Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2008-12-11 Thread Peter Ertl
concerning the proper javascript client for comet... is there anything reasonable except dojo-cometd-client to use? The dojo stuff feels really bloated for me Am 11.12.2008 um 15:00 schrieb Michael Sparer: Alright, I'll keep an eye on changes of your project. Maybe we can merge some

  1   2   >