Re: AjaxLink and Form Validation

2009-06-10 Thread Jade
And, I also tried changing the AjaxButton to AjaxSubmitLink in the java code and with the same input type.../ (as in for a submit button) in the HTML page. I am still having the same issue. All I am confused is, what happens such that the onSubmit method in the AjaxButton is never called once I

Re: ListMultipleChoice and HashSet

2009-06-10 Thread Linda van der Pal
Thanks for the help Igor! I was sure I had already tried to add the friends = new HashSetUser(); line to my constructor and that it didn't work. Apparently I screwed up somehow, because it is working after all. Regards, Linda Linda van der Pal wrote: I've created a quickstart and attached it

Re: Long JPA-Transactions

2009-06-10 Thread Martin Sachs
Spring will give you all feature you need and will need in a year... My Frameworks for my archetype: ;) - Wicket - Wicketstuff-jquery - Spring - singleton-beans for all short-running transactions - session-beans with extended EntityManager for long running tx ( dont

inserting urls in script variables

2009-06-10 Thread Bas Vroling
Hi guys, I'm trying to insert a download url in a piece of template code. The template part looks like this: wicket:panel span wicket:id=familyName/span applet code=jalview.bin.JalviewLite width=100% height=750 archive=jalviewApplet.jar param name=file value={{URL

AW: inserting urls in script variables

2009-06-10 Thread Dorothée Giernoth
b/c you can't put a tag into a tag ... as it says: it is a value and it needs a value, not a tag ... xml doesn't work that way -Ursprüngliche Nachricht- Von: Bas Vroling [mailto:bvrol...@cmbi.ru.nl] Gesendet: Mittwoch, 10. Juni 2009 09:41 An: users@wicket.apache.org Betreff:

Re: AW: inserting urls in script variables

2009-06-10 Thread Bas Vroling
If I set setRenderBodyOnly(true) it doesn't work either, and then it shouldn't complain anymore. (wicket is the one complaining, not the applet btw) On 10 Jun, at 09:53, Dorothée Giernoth wrote: b/c you can't put a tag into a tag ... as it says: it is a value and it needs a value, not a

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Kent Larsson
By the way. When using @Configured one has to get AspectJ working if I'm not mistaken? I've been messing with it for a while now and it's not going great. :-/ What I did was install the AJDT plugin for Eclipse and converted my project to a AspectJ project, then I got stuck. How are you who have

Re: AW: inserting urls in script variables

2009-06-10 Thread Martijn Dashorst
param wicket:id=filename / add(new WebMarkupContainer(filename).add(new SimpleAttributeModifier(value, ...))); On Wed, Jun 10, 2009 at 9:57 AM, Bas Vrolingbvrol...@cmbi.ru.nl wrote: If I set setRenderBodyOnly(true) it doesn't work either, and then it shouldn't complain anymore. (wicket is the

Re: wicket on java server

2009-06-10 Thread Marat Radchenko
Projects can't require anything. It's people :) Wicket runs on anything that supports Servlet specification. 2009/6/10 Dorothée Giernoth dorothee.giern...@kds-kg.de Hey guys, I got a (weird) question: a project requires us to write our own server. But I am eager to use wicket. Now what I

Re: AW: inserting urls in script variables

2009-06-10 Thread Bas Vroling
Ok, that is starting to work, thanks! Now I only need to get the url in the simpleAttributeModifier. This doesn't accept models but needs a CharSequence, which does seem logical but how do I get the actual URL of the dlink model in there? On 10 Jun, at 10:48, Martijn Dashorst wrote:

AW: wicket on java server

2009-06-10 Thread Dorothée Giernoth
Now that helped. Thnx. -Ursprüngliche Nachricht- Von: Marat Radchenko [mailto:slonopotamusor...@gmail.com] Gesendet: Mittwoch, 10. Juni 2009 11:24 An: users@wicket.apache.org Betreff: Re: wicket on java server Projects can't require anything. It's people :) Wicket runs on anything

Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-10 Thread Luca Provenzani
i don't think it is possible to do... because HomePage isn't a secure page and then it's not under swarm control when it's rendered. i'm afraid that you have to do by your hand... but i'm not an expert! ;-) Luca 2009/6/9 Christopher L Merrill ch...@webperformance.com I have a question about

Re: AW: inserting urls in script variables

2009-06-10 Thread Martijn Dashorst
You could always look at the source for how Link does it: getURL() calls: /** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return

Re: AW: inserting urls in script variables

2009-06-10 Thread Bas Vroling
Thanks for the extensive feedback, but urlFor() does not accept that as input... I tried being smart and did this (please correct me if this is nonsense): add(new WebMarkupContainer(filename).add(new SimpleAttributeModifier( value,

Re: Long JPA-Transactions

2009-06-10 Thread nino martinez wael
Hmm if you refactor your daos or domain classes you still need to manually change your xml files.. 2009/6/10 Martin Sachs sachs.mar...@gmail.com: Spring will give you all feature you need and will need in a year... My Frameworks for my archetype: ;)    - Wicket    - Wicketstuff-jquery    -

Re: JPA EntityManager storage

2009-06-10 Thread Adrian Merrall
Frank, Regarding your question (without joining the IOC holy-war), your experience seems odd. The wicket rad project has examples of this approach and from memory there are some slides from a wicket presentation in London on the same thing floating about so I think we can conclude it is a common

Locale

2009-06-10 Thread Cristi Manole
Hello, One of our applications has to be internationalized. For this we use the out of the box Wicket solution (1.3.5) We don't set the locale anywhere. The application is deployed on Tomcat. When testing, we found out that the first user that accesses the application is going to set up the

HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Vytautas Čivilis
Hi. Is it possible to use both? CryptedUrlWebRequestCodingStrategy understands only QueryStringUrlCodingStrategy (i.e. params encoded in x=1so=on format). Do I need to provide my own extension to CryptedUrlWebRequestCodingStrategy to support hybrid, or are there any existing ones? Is it

Re: Locale

2009-06-10 Thread nino martinez wael
Seems so, my experience are that it should be working. However if your default language are spanish (default.properties) and you do not support english us(default_en_us.properties) it will fallback to default.. But seems you are relying on something static? How did you test this? 2009/6/10

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Johan Compagner
why would you encrypt the hybrid? 2009/6/10 Vytautas Čivilis vytautas.civi...@gmail.com Hi. Is it possible to use both? CryptedUrlWebRequestCodingStrategy understands only QueryStringUrlCodingStrategy (i.e. params encoded in x=1so=on format). Do I need to provide my own extension to

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Vytautas Čivilis
for the same purpose, one would encrypt QueryStringUrlCodingStrategy. e.g., if you have /path1/path2/param1/value1 and param1/value1 might expose some business logic or security related concerns. in the same manner as /path1/path2/param1=value1 would cvl Johan Compagner wrote: why would you

Re: Locale

2009-06-10 Thread Cristi Manole
Hello, We have properties as xml. Default is English. But we provide for instance the translation for Argentinean Spanish: SomePage.html SomePage.xml SomePage_es_AR.xml We test using two computers, one with IE (configured as is - defaults to English) and another FF (primary language set to

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Erik van Oosten
Hi Vytautas, You can not encrypt bookmarkable URLs as encryption is done per session. So if you're URLs need to be secure you are limited to regular Link's. Regards, Erik. Vytautas Čivilis wrote: for the same purpose, one would encrypt QueryStringUrlCodingStrategy. e.g., if you have

AW: wicket on java server

2009-06-10 Thread Dorothée Giernoth
It is not my choice ... I just have to make it work, so I thought there are certain specifications that would make it work. -Ursprüngliche Nachricht- Von: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Gesendet: Mittwoch, 10. Juni 2009 11:45 An: users@wicket.apache.org Betreff:

Re: Locale

2009-06-10 Thread nino martinez wael
Hmm could you try to switch it around? So the IE uses default and FF uses the Argentinean Spanish locale..? Just wondering about ie.. Which version of ie are it? And could you try these: http://wicketstuff.org/wicket13/hellobrowser/howdy/HelloBrowser/ http://wicketstuff.org/wicket13/pub/ On

Re: AW: wicket on java server

2009-06-10 Thread James Carman
Sounds like a very strange request. Government? On Jun 10, 2009 8:37 AM, Dorothée Giernoth dorothee.giern...@kds-kg.de wrote: It is not my choice ... I just have to make it work, so I thought there are certain specifications that would make it work. -Ursprüngliche Nachricht- Von:

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Vytautas Čivilis
Hi Erik, that's not a concern for me really - I'm providing static application specific key (not uber secure I know), this let's me have a bookmarkable page even with encrypted key (as enc key does not change). The issue (more like a feature request :]), is that hybrid encodes/decodes params in

Re: Component lifecycle question

2009-06-10 Thread Martin Funk
this is how free I felt: https://issues.apache.org/jira/browse/WICKET-2321 I'd be looking forward for that especially in the context of Ajax and keeping control over JavaScript objects on the browser side. Like components that induce the instation of JavaScript objects in the Browser.

AW: AW: wicket on java server

2009-06-10 Thread Dorothée Giernoth
No, worse, my boss :( he doesn't think tomcat is safe enough and doesn't know how tomcat works and what's going on behind the scenes ... and we can't have that I bet he won't let me use wicket ... b/c it's not safe enough either *shakes head* weirdo Paranoid? I bet ...

Re: Component lifecycle question

2009-06-10 Thread Alex Objelean
Hi Martin, Could you please provide an example of how you could be able to control javascript object if you would have onRemove method? Thanks! Alex Martin Funk-3 wrote: this is how free I felt: https://issues.apache.org/jira/browse/WICKET-2321 I'd be looking forward for that especially

Re: AW: wicket on java server

2009-06-10 Thread Martijn Dashorst
That'll be the first... a home built server being more secure than tomcat, which has been around for ~6 years, and is in use by millions of people? I thought we already were already past the idea that security through obscurity is considered safe... It's not. Martijn 2009/6/10 Dorothée Giernoth

Re: AW: wicket on java server

2009-06-10 Thread nino martinez wael
In some sense it gives reason.. If you use something thats not mainstream then the chance to get hacked are less. How development cost must be high. 2009/6/10 Dorothée Giernoth dorothee.giern...@kds-kg.de: No, worse, my boss :( he doesn't think tomcat is safe enough and doesn't know how tomcat

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Johan Compagner
Erik is right it doesnt make any sense to encrypt Bookmarkables And we never encrypt /xxx/yyy/zzz anyway as far as i know only params like x=? And those are only for internal urls And for hybrid the internal urls are first a bookmarkable part and then a wicket part and if those where params i

Re: AW: wicket on java server

2009-06-10 Thread nino martinez wael
thats however development cost must be high (thats star high, not sky high), since you have to implement all things your own way. But then why use wicket? You could just do your own thing there too... 2009/6/10 nino martinez wael nino.martinez.w...@gmail.com: In some sense it gives reason.. If

Re: AW: wicket on java server

2009-06-10 Thread James Carman
Well, for what you're going to spend to build it, you could buy one of the big dog application servers. That way, if you get hacked, you have someone to complain to. However, you'll find that a lot of those bigger guys are based on open source technologies, such as tomcat or jetty. On Jun 10,

Re: Locale

2009-06-10 Thread Cristi Manole
Thanks for your help. I will try to see more into it. If i cannot solve it, I will prepare a quickstart. On Wed, Jun 10, 2009 at 3:40 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hmm could you try to switch it around? So the IE uses default and FF uses the Argentinean Spanish

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Kent Larsson
I skipped the AJDT plugin and am doing LTW (Load-Time Weaving) now, it works. In my case I added: (It might be of use to someone) -javaagent:/home/kent/.ivy2/cache/org.springframework/spring-agent/jars/spring-agent-2.5.6.SEC01.jar To the Server Overview / Open launch configuration /

Re: JPA EntityManager storage

2009-06-10 Thread wfaler
Regarding Open Session in View type patterns for JPA as Adrian mentioned, there are slides from the London Wicket event here: http://londonwicket.googlecode.com/files/LondonWicket-OpenSessionInView.pdf http://londonwicket.googlecode.com/files/LondonWicket-OpenSessionInView.pdf There is a

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Vytautas Čivilis
The answer is clear. Thanks for the answers. cvl Johan Compagner wrote: Erik is right it doesnt make any sense to encrypt Bookmarkables And we never encrypt /xxx/yyy/zzz anyway as far as i know only params like x=? And those are only for internal urls And for hybrid the internal

Re: AW: inserting urls in script variables

2009-06-10 Thread freak182
Martjin already say that: so you should call: urlFor(dlink, ILinkListener.INTERFACE) not dlink.urlFor. Bas Vroling wrote: Thanks for the extensive feedback, but urlFor() does not accept that as input... I tried being smart and did this (please correct me if this is nonsense):

Re: AW: inserting urls in script variables

2009-06-10 Thread Bas Vroling
Of course I tried Martijn's suggestion, but the urlFor() function does not accept both the dlink ILinkListener.INTERFACE arguments. On 10 Jun, at 16:19, freak182 wrote: Martjin already say that: so you should call: urlFor(dlink, ILinkListener.INTERFACE) not dlink.urlFor. Bas Vroling

Re: London Wicket event on Wednesday

2009-06-10 Thread francisco treacy
Hi all, Are there by any chance available slides, or a video, or code from the last London Wicket meetup? londonwicket hasn't been updated for a while now. I am particularly interested in the *Bookmarkable Everything*. Thanks! Francisco 2009/6/2 Alastair Maw m...@almaw.com: Hi, folks.

Re: AW: wicket on java server

2009-06-10 Thread Jeremy Thomerson
Unless you really enjoy rewriting things that have already been very well written, consider finding employment doing something enjoyable. Yeah, it's a weak market right now, but it seems unlikely that this job is really what you are looking for. Or, perhaps we are underestimating your boss'

Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-10 Thread Warren Bell
Try securing the link on your HomePage and do not secure the HomePage itself. The link has to implement ISecureComponent. Add the permission for the link to your basic principal. org.apache.wicket.security.hive.authorization.SimplePrincipal basic { //Permission for link on HomePage

Re: Component lifecycle question

2009-06-10 Thread Martin Funk
hm... how about this (i changed the method naming from onRemove to onRemoveFromHierarchy): @Override protected void onRemoveFromHierarchy() { if (AjaxRequestTarget.get() != null) { AjaxRequestTarget.get().appendJavascript(remove the JavaScript

Re: London Wicket event on Wednesday

2009-06-10 Thread Ioannis Mavroukakis
Hi Francisco, Code should be in the wiki, video unfortunately not, but next meeting around I will try to borrow a camera and record the proceedings.. On 10 Jun 2009, at 15:34, francisco treacy wrote: Hi all, Are there by any chance available slides, or a video, or code from the last

Re: JPA EntityManager storage

2009-06-10 Thread Frank Tegtmeyer
Hi Adrian, - Are you setting your entity manager on the threadlocal during onBeginRequest by putting it on or relying on the inititalvalue for the threadlocal. I think you hit the problem here. The example I used (in German at http://rattlab.net/2008/10/persistenz-fur-den-feedreader/)

Re: London Wicket event on Wednesday

2009-06-10 Thread francisco treacy
Hi Ioannis, What wiki? There's nothing at http://code.google.com/p/londonwicket. Could you point me to it? Thanks! 2009/6/10 Ioannis Mavroukakis imavrouka...@gameaccount.com: Hi Francisco, Code should be in the wiki, video unfortunately not, but next meeting around I will try to borrow a

Re: JPA EntityManager storage

2009-06-10 Thread James Carman
On Wed, Jun 10, 2009 at 11:34 AM, Frank Tegtmeyerf...@fte.to wrote: I think you hit the problem here. The example I used (in German at http://rattlab.net/2008/10/persistenz-fur-den-feedreader/) implies that every Request uses its own thread and I never expected threads to be reused. I used

Re: Tree collapse very slow on firefox 3 for nodes with large # of children - Quickstart attached

2009-06-10 Thread Igor Vaynberg
i dont really see what we can do to optimize this. i mean, it is instanteneous in chrome and safari. in IE it is as slow removing all these nodes as it is adding them so there it seems also we do not incur any penalty. i am not sure how to optimize this loop for firefox. we need the tree to be

Re: London Wicket event on Wednesday

2009-06-10 Thread Ioannis Mavroukakis
Sorry I meant londonwicket ..pebkac :-) IIRC the code Al demo-ed is probably going to be included in Wicket, don't quite remember when though. On 10 Jun 2009, at 16:36, francisco treacy wrote: Hi Ioannis, What wiki? There's nothing at http://code.google.com/p/londonwicket. Could you point

Re: London Wicket event on Wednesday

2009-06-10 Thread Igor Vaynberg
which code would that be? -igor On Wed, Jun 10, 2009 at 8:42 AM, Ioannis Mavroukakisimavrouka...@gameaccount.com wrote: Sorry I meant londonwicket ..pebkac :-) IIRC the code Al demo-ed is probably going to be included in Wicket, don't quite remember when though. On 10 Jun 2009, at 16:36,

Re: London Wicket event on Wednesday

2009-06-10 Thread Ioannis Mavroukakis
Bookmarkable everything. On 10 Jun 2009, at 16:47, Igor Vaynberg wrote: which code would that be? -igor On Wed, Jun 10, 2009 at 8:42 AM, Ioannis Mavroukakisimavrouka...@gameaccount.com wrote: Sorry I meant londonwicket ..pebkac :-) IIRC the code Al demo-ed is probably going to be included

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Maarten Bosteels
Hi, According to the docs [1], it should be enough to add this to your spring XML configuration file: context:load-time-weaver/ [1] http://static.springframework.org/spring/docs/2.5.x/reference/aop.html#aop-aj-ltw Maarten On Wed, Jun 10, 2009 at 3:19 PM, Kent Larsson

Re: London Wicket event on Wednesday

2009-06-10 Thread Igor Vaynberg
well, i hope al has been paying attention to what is happening in the experimental branch which will be merged into trunk when 1.4 goes final. -igor On Wed, Jun 10, 2009 at 8:50 AM, Ioannis Mavroukakisimavrouka...@gameaccount.com wrote: Bookmarkable everything. On 10 Jun 2009, at 16:47, Igor

Re: London Wicket event on Wednesday

2009-06-10 Thread Ioannis Mavroukakis
Don't know if he has, care to elaborate? Are you hinting at some issue? On 10 Jun 2009, at 16:53, Igor Vaynberg wrote: well, i hope al has been paying attention to what is happening in the experimental branch which will be merged into trunk when 1.4 goes final. -igor On Wed, Jun 10, 2009 at

Re: London Wicket event on Wednesday

2009-06-10 Thread Igor Vaynberg
a lot of the code that has to do with urls, their generation, and how they are processed, is going to change significantly in 1.5 -igor On Wed, Jun 10, 2009 at 9:08 AM, Ioannis Mavroukakisimavrouka...@gameaccount.com wrote: Don't know if he has, care to elaborate? Are you hinting at some issue?

OT: Using persistence layer objects for service results?

2009-06-10 Thread Kaspar Fischer
I am looking for a good pattern/methodology to use when coding services in small Wicket webapps. I want to use the services from Wicket but it will also be exposed via RMI and SOAP/REST. For example, a service for Houses and Inhabitants might have methods like this: // Returns the houses

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-06-10 Thread Kent Larsson
Hi, Thanks for answering. But I tried that and it wasn't enough on my computer at least. I think the documentation says that it works in some environments but not all. Using Tomcat 6 I couldn't get it working without the -javaagent parameter. I'm writing from memory now so it's probably a little

Re: JPA EntityManager storage

2009-06-10 Thread Luther Baker
http://faler.wordpress.com/2009/04/30/building-a-more-scalable-open-session-in-view/ Nice post. For some reason I thought Hibernate's Session could be configured to do this sort of thing intrinsically (ie: starting and ending tx are essentially noops unless something actually happened - part of

Re: JPA EntityManager storage

2009-06-10 Thread Luther Baker
Indeed, it can seem *spooky* to start writing code at the ThreadLocal level ... but remember, threads are created, assigned, collected and reused by the server - unless explicitly created by the application (which is highly discouraged), they are managed by the server. That said, the server

Re: AjaxLink and Form Validation

2009-06-10 Thread Erik van Oosten
Jade, There was a bug regarding this in one of the 1.4 rc's. I think it was rc2. Could upgrade to a newer 1.4 version and try again? Regards, Erik. Jade wrote: Guys, I am still struggling with the same :-( please advise. Tia, J On Wed, Jun 10, 2009 at 8:27 AM, Jade jada...@gmail.com

Re: AjaxLink and Form Validation

2009-06-10 Thread Jade
Hi Erik, I am using version 1.3.4. And I guess migration it to version 1.4 would be bit tough. Anyways, that would have to be done if there is no other way around it. Btw, any work around to over come this? Please suggest. Thanks all for your time in educating me. Regards, Jade On Thu, Jun

Re: AjaxLink and Form Validation

2009-06-10 Thread Erik van Oosten
Ah, no that bug is not present in the 1.3 range. But upgrading to a later 1.3 version would perhaps help as well. See the migration guide on the wiki on how tough an 1.3 - 1.4 upgrade will be for you. To give some perspective: I migrated a large project within a few hours. Regards, Erik.

Re: AjaxLink and Form Validation

2009-06-10 Thread Jade
Oh yes will try to do that for sure Erik if my team and manager agrees for it :-) Otherwise, did you(guys) find any thing wrong in my code? or anything thats fishy?? I am a beginner to wickets, so its obvious I must have made some mistake :-s On Thu, Jun 11, 2009 at 12:58 AM, Erik van Oosten

spring dojo or wicket for 508 application

2009-06-10 Thread tubin gen
My application must be 508 , we are using wicket , recentlyheard spring dojo , or spring dwr provides rich UI and ajax support and its 90% 508 complaint is that true ? Please suggest us If we should go with spring dojo or wicket ?

Re: AW: AW: wicket on java server

2009-06-10 Thread Sam Stainsby
On Wed, 10 Jun 2009 14:56:59 +0200, Dorothée Giernoth wrote: No, worse, my boss :( he doesn't think tomcat is safe enough and doesn't know how tomcat works and what's going on behind the scenes ... and we can't have that I bet he won't let me use wicket ... b/c it's not safe enough

Re: AW: AW: wicket on java server

2009-06-10 Thread Luther Baker
If you're actually serious ... this might get you started - either way. How Tomcat Works: A Guide to Developing Your Own Java Servlet Container - http://my.safaribooksonline.com/097521280X -Luther On Wed, Jun 10, 2009 at 5:54 PM, Sam Stainsby s...@sustainablesoftware.com.au wrote: