Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread Kent Larsson
Hi, I'm thinking about using the **Open Session In View (OSIV)** filter or interceptor that comes with Spring, as it seems like a convenient way for me as a developer. If that's what you recommend, do you recommend using a filter or an interceptor and why? I'm also wondering how it will mix with

Re: Building and using TinyMCE in Wicket

2009-02-10 Thread Swanthe Lindgren
Try doing a mvn install on the tynimce subfolder. //Swanthe ashtek wrote: 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

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

2009-02-10 Thread Marieke Vandamme
Thanks for the suggestions, but I'm still not sure how to implement it. My innerform implements IFormVisitorParticipant. I override processChildren(), but how do I know which form is getting submitted??? Because when innerform is submitted, i want to return true, otherwise false. Thanks for any

ApacheCon Europe 2009: Early Bird Deadline Extended

2009-02-10 Thread Martijn Dashorst
Here's some great news for everyone who's thinking of traveling to Amsterdam for this year's ApacheCon Europe. The Early Bird deadline has been extended to Friday, February 13th - and remember, there is a discount of 150 Euro on registration for anyone staying at the Mövenpick Hotel. Register at

How to add tooltip to ListMultipleChoice.

2009-02-10 Thread Sandeep_Chittajallu
Hi all, Im new to wicket, I want a solution how we can add the tooltip to the options of the ListMultipleChoice. Thanks Sandeep DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material

Portlet 2.0 and Events

2009-02-10 Thread Benjamin Ernst
Hi, I am trying to get the Event-Support for Portlets working with the Patches I found in https://issues.apache.org/jira/browse/WICKET-1620;. But I am not able to apply any of the patches properly. Can anyone tell me on which revision of the trunk they base, or in which order I have to apply

Is it worth to exchange labels by wicket:message?

2009-02-10 Thread Newgro
Hi *, i investigate some alternatives to achieve same goal in wicket. One i've found here http://cwiki.apache.org/WICKET/general-i18n-in-wicket.html Exchanging the label components by wicket:messages has the advantage of less code. But is this relevant for performance and memory usage to? Has

Re: [WicketStuff] Progress bar, tasks and feedback messages

2009-02-10 Thread Piller Sébastien
I found a way, if anybody needs it: ... final ProgressBar bar = new ProgressBar(progress2, progressionModel) { @Override protected void onFinished(AjaxRequestTarget target) { ITaskService taskService = getTaskService(); Long taskId =

Re: Portlet 2.0 and Events

2009-02-10 Thread Thijs
They are based on wicket truck *before* WICKET-2058 was committed. Nobody has updated the patches since then. Thijs On 10-2-2009 10:25, Benjamin Ernst wrote: Hi, I am trying to get the Event-Support for Portlets working with the Patches I found in

Re: Is it worth to exchange labels by wicket:message?

2009-02-10 Thread Jonas
I don't think its relevant for performance/memory, the overhead for dynamically creating a component for the label should be minmal. check out WicketMessageTagHandler to see the actual 'magic' On Tue, Feb 10, 2009 at 10:51 AM, Newgro per.new...@gmx.ch wrote: Hi *, i investigate some

urlFor and putClassAlias

2009-02-10 Thread Steve Swinsburg
Hi all,In my application I am generating a link to a page like so:final String url = "" style="color: #7f0055">class, null).toString(); and then that link is put in an email. However the link includes the package name:e.g.%3Fwicket%3AbookmarkablePage%3D%3Asome.package.name.goes.here.MyPageI have

[ANNOUNCE] Apache Wicket 1.4 release candidate 2

2009-02-10 Thread Frank Bille Jensen
The Apache Wicket team is proud to present the second release candidate of Apache Wicket 1.4. This is the first Wicket version with java 1.5 as minimum requirement. Eager people click here to download the distribution, others can read further: *

Re: urlFor and putClassAlias

2009-02-10 Thread Martijn Dashorst
Mount your page using one of the mount strategies. See Application#mount for inspiration. Martijn On Tue, Feb 10, 2009 at 12:01 PM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, In my application I am generating a link to a page like so: final String url = urlFor(MyPage.class,

Re: Portlet 2.0 and Events

2009-02-10 Thread Benjamin Ernst
Hi Thijs, do I have to apply all Patches, or is the WICKET-1620-portlet2.0-tight.patchhttps://issues.apache.org/jira/secure/attachment/12396786/WICKET-1620-portlet2.0-tight.patch enough? Thanks, -- Benjamin On Tue, Feb 10, 2009 at 11:07 AM, Thijs vonk.th...@gmail.com wrote: They are based

Javadocs for Wicket 1.4 online

2009-02-10 Thread Frank Bille Jensen
Hi all, I have put the javadocs for 1.4-rc2 online. You can find them through the wicket website or directly on this URL: http://wicket.apache.org/docs/1.4 Regards, Frank - To unsubscribe, e-mail:

DataCrud mechanism

2009-02-10 Thread Michal Hybler
Hi! I have question about selecting system of DataCrud. I have datacrud which displays 3 rows on page (for testing). For that 3 objects it make 5 selects First for all data and later for each row separately (3 rows for page and extra one for next page existence). Is it right to make that

Re: Portlet 2.0 and Events

2009-02-10 Thread Thijs
That last one contains all the functionality, but a large part of the 2.0 spec that was also added in this patch does not match the one that went into trunk via WICKET-2058. That has been altered rather drastically so you'll have to do some major re-factoring to get everything back in. On

private wizardModel field in WizardStep

2009-02-10 Thread jensiator
Hi I would like to get the wizardmodel in a class that extends from WizardStep. The WizardStep contains the wizardmodel put it not accessable from the extended class. Does anyone know why? I can get hold of the wizardmodel if I override onInit(Wizardmodel) in my WizardStep and add it as a

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

2009-02-10 Thread John Krasnay
Have a look at the bottom of this page: http://cwiki.apache.org/WICKET/conditional-validation.html The example shown disables the whole inner form when the outer form is submitted, meaning the inner form won't even be submitted. If you want the inner form to be submitted but just not required,

Re: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Fabrizio Giudici
Of course the arguments in my example have been copied in a hurry from working code, the former is the path and the latter the page class: mount(new QueryStringUrlCodingStrategy(path, class)); -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work.

Re: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Steve Swinsburg
Thanks Fabrizio I'll give it a go. Re having a default parameter, I found this that may help? Haven't tried it myself: use IndexedParamUrlCodingStrategy to mount your page. e.g. params.put(0, foo); params.put(1, bar); params.put(2, cux); will result in mountpoint/foo/bar/cux (in that order)

AjaxSubmitLink submitting twice

2009-02-10 Thread Matt Welch
I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of the link is being executed twice. This is causing havok in our app. I've winnowed it down to just the simplest example but I still see this taking place. I'm not sure how to proceed. Here's the example code:

Re: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Erik van Oosten
Steve, Try to mount with the MixedParamUrlCodingStrategy. Regards, Erik. Steve Swinsburg wrote: Hi all, I have just noticed that mountBookmarkablePage changes the delimiters of query string object to be all forward slashes. Why is this? For instance I want to get a url to a page

[OT] Sitepoint 5-for-1 Book Offer

2009-02-10 Thread Serkan Camurcuoglu
I learnt that Sitepoint is giving away five web design/development related pdf books for the price of one book ($29.95) to support the people affected by the bushfires in Australia. I thought the people on this list may be interested. You can access the offer at http://5for1.aws.sitepoint.com/

setting the value of a radio input field

2009-02-10 Thread Story Henry
Hi, I have been looking at how to set the value of a radio input field to a value of my choosing. If I use the Radio and Radio Group code as shown here: http://pastebin.com/m40b9b073 I get html such as input wicket:id=radio type=radio value=radio2 name=selectionGroup/ input

Re: Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread James Carman
Here's the demo code I used for a talk on wicket a while back. It includes OSIV and has an example of doing a repository (think DAO) http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Tue, Feb 10, 2009 at 3:15 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, I'm thinking

Re: [OT] Java hosting USB stick deployment

2009-02-10 Thread Philip A. Chapman
As far as the OS is concerned, the USB stick is just another volume, so you can run it from jetty or any other container stored on the USB stick. The trick is, of course, size, and the fact that the stick can be removed. Another thing to consider is that a java runtime will be required. I

Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Azzeddine Daddah
Hi guys, Does somebody knows if there is already such a Wicket lib/component where you can select more then one value. Something like this one http://www.emposha.com/javascript/jquery/jquerymultiselect.html, http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
should be fine, you can throw any kind of runtime exception you want. -igor On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Hello, all wicket users! I receive HTTP Status 500 error in this situation: I have a page with empty html-file and page's

Re: private wizardModel field in WizardStep

2009-02-10 Thread Igor Vaynberg
added getter to 1.4 trunk. -igor On Tue, Feb 10, 2009 at 4:10 AM, jensiator jens.alen...@megasol.se wrote: Hi I would like to get the wizardmodel in a class that extends from WizardStep. The WizardStep contains the wizardmodel put it not accessable from the extended class. Does anyone know

Re: AjaxSubmitLink submitting twice

2009-02-10 Thread Igor Vaynberg
your example markup does not contain search component. it is much better to open a jira issue and attach a quickstart that reproduces the problem. -igor On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch matt...@welchkin.net wrote: I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit

Re: setting the value of a radio input field

2009-02-10 Thread Thomas Mäder
The approach with Component radio= new Radio(radio, ...); is the right one. You can still try to add the AttributeModifier, but probably, you'll end up fighting the Radio implementation (perhaps you'll have to create a subclass?) However, I don't see why you don't just use the regular wicket

Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Ryan Gravener
I'll implement the first one in due time. It is not as fluid as i would hope though. http://ryangravener.com/flex | http://twitter.com/ryangravener On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah waarhei...@gmail.comwrote: Hi guys, Does somebody knows if there is already such a Wicket

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
should be fine, you can throw any kind of runtime exception you want. -igor Igor, thank you for answer. Did you mean that HTTP Status 500 error I get is not what it must be? It's a bug or what? I can make jira if it is so. -- Tony On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
do you get 500 or do you not? -igor On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: should be fine, you can throw any kind of runtime exception you want. -igor Igor, thank you for answer. Did you mean that HTTP Status 500 error I get is not what it

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
I get it. On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: do you get 500 or do you not? -igor On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: should be fine, you can throw any kind of runtime exception you want. -igor

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
considering 5xx codes are server-related failures i would say it is correct. -igor On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: I get it. On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: do you get 500 or do you not?

Handling 'raw' XMLHttpRequests

2009-02-10 Thread GW72
I'm a newbie to Wicket, and I'm trying to determine if there's any particular type of construct which would allow me to service an Ajax request from the client. I'm aware of some of the Ajax enabled components in the framework. However, I'm looking for something more basic - this would be where

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
How to get standart Error page then instead of this error? considering 5xx codes are server-related failures i would say it is correct. -igor On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: I get it. On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg

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

2009-02-10 Thread Vika
Thank you for the responses. I am still struggling with this and could use more help. Here is where i stand right now. in Aplication.java init() mount(new URIRequestTargetUrlCodingStrategy(/docs) { @Override public IRequestTarget decode(RequestParameters

Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread francisco treacy
i have used digitarald one in wicket hub. example: http://wickethub.org/add (try adding topics like 'javascript' or 'persistence') code: http://code.google.com/p/wickethub/source/browse/#svn/trunk/wickethub/src/main/java/wickethub/web/components/autocompleter i have not however wrapped it up

Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread francisco treacy
ps: actually, once it's done, we should include it in wicket hub so next time you can search for it there =) On Tue, Feb 10, 2009 at 6:57 PM, francisco treacy francisco.tre...@gmail.com wrote: i have used digitarald one in wicket hub. example: http://wickethub.org/add (try adding topics like

Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

2009-02-10 Thread Sergio García
Well, i will try to explain the situation as good as i can. We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query each one. One of the ALLP is a ListView with an ALLP into each row (each row is a different query). This enviroment works very well. The problem comes with a ALLP

Error building TinyMce

2009-02-10 Thread ashtek
I am trying to build TinyMCE and I get the following error - Has anyone seen this error before? D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\tinymcemvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
the status code and the error page are orthogonal. you should still see the standard error page, its just that it is returned with status 500. -igor On Tue, Feb 10, 2009 at 9:46 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: How to get standart Error page then instead of this error?

Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Azzeddine Daddah
Hi guys, Thanks for your replay. I'll also work on the 3th one and add it to the Wicket hub when finished. The 3th one uses jQuery which is more popular and you can easy combine/integrate it with WickeXt. BTW, the new version of Wicket hub is fantastic and looks great :). Best Regards, Hbiloo

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2009-02-10 Thread rima77
was this problem solved in Wicket 1.3.4? is there a jira issue associated with this problem? Martin Makundi wrote: Ok. I meant the WicketServlet fix. Haven't seen the wicketFilter fix. ** Martin 2008/5/17 Johan Compagner jcompag...@gmail.com: It is not a workaround! The

Re: How to handle this exception properly

2009-02-10 Thread Marcelo Morales
On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the status code and the error page are orthogonal. you should still see the standard error page, its just that it is returned with status 500. ... with a proper browser (a cent) -- Marcelo Morales

RE: Wizard seems to cache pages even on model change

2009-02-10 Thread rtow
The WizardStep has to keep the previous content...even though the underline model has been updated...I think this may be the reason. I end up with 2 textfields in the 2nd step, depends on the 1st step, either hide of show the textfields. rtow wrote: Do you find out what exactly is the

Re: Error building TinyMce

2009-02-10 Thread Łukasz Lipka
Hi Ashtek, I think just try first D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\ mvn install and than D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\tinymcemvn install I hope this help. Best regards, -- Pozdrowienia Łukasz Lipka http://lukaszlipka.blogspot.com/ 2009/2/10 ashtek

Re: AjaxSubmitLink submitting twice

2009-02-10 Thread Matt Welch
The Nabble posting process correctly escaped all of the HTML tags except the which it rendered as HTML. I only just now figured out I needed to use a raw tag. The raw HTML is below. As expected though, this same code works fine in a quickstart. I never suspected that it was a bug, which is why

Re: Wicket stuff core, archetypes?

2009-02-10 Thread francisco treacy
additionally, i think we need to decompose our problem. i see our aims like this: 1. maintaining an updated registry a) keep reference to components and regularly ping/update data (wicket hub should be able to do this real soon) b) automatically discover those components (a whole new story)

Re: Error building TinyMce

2009-02-10 Thread ashtek
Thanks Lukasz. I tried what you suggest and I still got the same error. D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parentmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO]

Re: Graphs, Charts and Wicket

2009-02-10 Thread Thies Edeling
Works nicely but how to initialize the chart when the panel is loaded through an ajax req/res ? Is there a javascript method that writes out the Flash object tag ? That seems to be completely missing. On Mon, Feb 2, 2009 at 10:28 AM, Maarten Bosteels mbosteels@gmail.comwrote: Also have a

Re: Wicket Jiras, Wednesday 11 Feb, @ jWeekend

2009-02-10 Thread jWeekend
Igor, OK, I'll let Al put us on the right track with issue selection. At tomorrow evening's session it looks like there'll be 6 crack developers and me. Regards - Cemal http://jWeekend.co.uk jWeekend igor.vaynberg wrote: feel free to work on any open bug, even if it has been assigned to

Re: Error building TinyMce

2009-02-10 Thread Łukasz Lipka
funny I had the same problem with Mule and source code, and I think there is missing wicketstuff jar, just try to download all wicketstuff and build it, I am using the newest tinymc with wicket-1.4, and I am able to build jars without problems. Best regards, -- Pozdrowienia Łukasz Lipka

Re: AjaxSubmitLink submitting twice

2009-02-10 Thread Igor Vaynberg
just add Thread.dumpStack() to the onsubmit() and see the two places its being called from. you can also add something like System.out.println(getrequestcycle().getrequest()) to see if the same request is initiating both calls. -igor On Tue, Feb 10, 2009 at 2:35 PM, Matt Welch

Re: Error building TinyMce

2009-02-10 Thread ashtek
I have been struggling with the last couple of days, and I am not sure if it because I am using the 1.3 snapshot In any case, you just do a svn checkout and then an mvn install, right? No editing files after the checkout? Can you also give me the checkout URL you used? The one listed on

Re: Error building TinyMce

2009-02-10 Thread ashtek
I have been struggling with the last couple of days, and I am not sure if it because I am using the 1.3 snapshot In any case, you just do a svn checkout and then an mvn install, right? No editing files after the checkout? Can you also give me the checkout URL you used? The one listed on

Page composition question

2009-02-10 Thread uwe janner
dear wicketeers, i'm facing a problem with page composition where i cant find an elegant solution; i hope i can explain it comprehensible: i have a panel named CustomerInfo. there are 5 types of customers in the application. most of the CustomerInfo.html is the same for all types of customers

Inconsistent Model Binding on Form Submit

2009-02-10 Thread Dane Laverty
I have a test form based on a CompoundPropertyModel. Usually it works great, but for some users, their answers are lost when they submit the form. The problem is user-dependent, i.e. it always breaks for certain users and it never breaks for the other users. If a user calls us with this problem,

RE: Inconsistent Model Binding on Form Submit

2009-02-10 Thread Dane Laverty
I apologize for the awful code formatting. Is there a way to maintain readable formatting when I post code to this mail list? -Original Message- From: Dane Laverty [mailto:danelave...@chemeketa.edu] Sent: Tuesday, February 10, 2009 4:56 PM To: users@wicket.apache.org Subject:

Re: Page composition question

2009-02-10 Thread Igor Vaynberg
class abstract parentpanel extends panel { private panel panel1, panel2, panel3; protected abstract panel newpanel1(string id, imodel model); protected abstract panel newpanel2(string id, imodel model); protected abstract panel newpanel3(string id, imodel model); protected void

Re: setting the value of a radio input field

2009-02-10 Thread Story Henry
Thanks for the tip Thomas! I have it now. I am really keen to avoid state on the servers, as a design principle. It forces me to think the web way as much as possible, and when one does, possibilities start becoming evident. So no I did not do any measurements there. But these principles

Re: Problem with WebRequestCodingStrategy's and mobile phones

2009-02-10 Thread Timo Rantalaiho
On Mon, 09 Feb 2009, Jeremy Levy wrote: We tested this on several other handsets that we have available and can confirm that it breaks all form submits. This is a some what obsecure case, and perhaps irrelvant if you don't run a mobile site, but we saw our number's drop by about 20% - 50%

Re: Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread Timo Rantalaiho
On Tue, 10 Feb 2009, Kent Larsson wrote: I'm thinking about using the **Open Session In View (OSIV)** filter or interceptor that comes with Spring, as it seems like a convenient way for me as a developer. If that's what you recommend, do you recommend using a filter or an interceptor and why?

Re: Inconsistent Model Binding on Form Submit

2009-02-10 Thread Timo Rantalaiho
On Tue, 10 Feb 2009, Dane Laverty wrote: form. The problem is user-dependent, i.e. it always breaks for certain users and it never breaks for the other users. If a user calls us with this problem, we haven't been able to find anyway to get around it. I haven't been able to replicate the

Re: Problem with WebRequestCodingStrategy's and mobile phones

2009-02-10 Thread Jeremy Thomerson
Can one of the core devs add a note to the javadoc of UrlCompressingWebCodingStrategy to the effect of NOTE: Using this strategy may cause errors in some mobile phone browsers, specifically the Motorola V3 and other UP.Link browser mobile phones -- Jeremy Thomerson