Re: Ajax calls loads my server

2008-09-25 Thread Benny Weingarten
Of course, I meant javascript... thanks for the clarification. To preserve functionality, (That is, having a Select all and select none links instead of a single checkbox to select or deselect all) I will go with writing my own javascript. In addition, I have, in a different form in my

[Announce] The Wicket Reflex Game:)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Hi I've done a small game using Wicket and Ajax, consider it an ajax show case for wicket.. It's in a prototype state, I used a few hours yesterday on it.. The game it self lasts about 20 seconds depending on latency etc. And you can get 20 points by clicking small boxes. I want to see your

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Jörn Zaefferer
Fun! The loading indicator is annoying, makes the game feel jumpy/slow. Also I didn't ever see a blue or yellow box - whats the deal with those? Jörn On Thu, Sep 25, 2008 at 9:23 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I've done a small game using Wicket and

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Jörn Zaefferer wrote: Fun! :) The loading indicator is annoying, makes the game feel jumpy/slow. Yeah I know, but it's because of a problem. I have two ajax behaviors on the page a heart beat and the onclick of the td, when I enter the heartbeat I replace old clickable td with a td

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Piller Sébastien wrote: Fails with internal error message when clicking like a crazy guy... I think it's the problem I talked about below.. I probably also need to add a veil to the moving box thing.. And in theory nothing limits you from clicking a box more than once..:) Otherwise, fun ;)

Add more than one component to an Item (repeaters)

2008-09-25 Thread Edgar Merino
Hello, I've got a DataTable that needs to add to each of its Items a Link and a Label, since I've only get one componentId from the populateItem(Item cellItem, String componentId, IModel model) method, I don't know what to do to be able to accomplish what I need. This is what I need:

Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Do it as a panel..? Edgar Merino wrote: Hello, I've got a DataTable that needs to add to each of its Items a Link and a Label, since I've only get one componentId from the populateItem(Item cellItem, String componentId, IModel model) method, I don't know what to do to be able to

Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-25 Thread itayh
Hi, I am using HybridUrlCodingStrategy for my url's (I need that the mount point will preserved even after invoking listener interfaces). I am creating IFrames using InlineFrame class. In order that the url of the IFrame will be what I want I do: PageParameters params = new PageParameters();

Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread Alexandre Lenoir
You can create your own component that involves many subcomponents and add it to your datatable. Too simple? On Thu, Sep 25, 2008 at 11:28 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Do it as a panel..? Edgar Merino wrote: Hello, I've got a DataTable that needs

Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
I did it once this way: AjaxLinkPanel.java public abstract class AjaxLinkPanel extends Panel { public AjaxLinkPanel(String id, String title) { super(id); AjaxLink link = new AjaxLink(ajaxLink) { @Override public void onClick(AjaxRequestTarget target) {

Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread Edgar Merino
Thank you both for the advice, already working, thank you. Nino Saturnino Martinez Vazquez Wael escribió: I did it once this way: AjaxLinkPanel.java public abstract class AjaxLinkPanel extends Panel { public AjaxLinkPanel(String id, String title) { super(id); AjaxLink link

Design question. LAZY loading of fields in JPA/Hibernate enteties and Wicket. How do you handle it? Any way of not using DAO's?

2008-09-25 Thread Kent Larsson
Hi, == Background == In a previous non-wicket project I was involved in we had a three (or four, depending on how you see it) tier archiecture: 1. Persistence using JPA (using Hibernate as persistence provider and have it working against a MySQL database) 2. Business logic inside manager

Re: Need to open the Link in another window

2008-09-25 Thread Piller Sébastien
Try: Link lk = new ExternalLink(lk, http://...;) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(target, _blank); } }; ;) newbie_to_wicket a écrit : hi, I am using

session.setStyle and resources?

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Hi Im trying todo some simple variation of my application, by just adding a different stylesheet. I thought I wanted to checkout what wicket could offer. But I am failing for it to work this is what I am doing: //setting the style: getSession().setStyle(newlook); I also have this resource

Re: Need to open the Link in another window

2008-09-25 Thread Michael Sparer
or simply add it to the markup ;-) Pills wrote: Try: Link lk = new ExternalLink(lk, http://...;) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(target, _blank); }

Re: Need to open the Link in another window

2008-09-25 Thread Piller Sébastien
Michael Sparer a écrit : or simply add it to the markup ;-) Sure! much better ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Nice urls in markup

2008-09-25 Thread Liz Huber
I'm trying to beautify all wicket urls of my application by mounting the pages to meaningful paths. Thereby the urls become pretty in the browser's address line. But within the rendered markup links and images still have non formated wicket urls. So I mounted the images as shared resources

Re: Adding HTML class=invalid after validating with IndicatingAjaxButton

2008-09-25 Thread Chris Stein
Thanks, Igor. I've been playing around with your suggestions but still doesn't seem to make it work. My onSubmit is not being called when I set a breakpoint there. Is it possible that what I am asking for is not possible? - Original Message From: Igor Vaynberg [EMAIL PROTECTED] To:

Re: Adding HTML class=invalid after validating with IndicatingAjaxButton

2008-09-25 Thread Martijn Dashorst
Override onError too Martijn On Thu, Sep 25, 2008 at 1:56 PM, Chris Stein [EMAIL PROTECTED] wrote: Thanks, Igor. I've been playing around with your suggestions but still doesn't seem to make it work. My onSubmit is not being called when I set a breakpoint there. Is it possible that what I

Re: Adding HTML class=invalid after validating with IndicatingAjaxButton

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
I went crazy and did this, I relied on I think Al Maw's thing from WUG London : Add the below visitor to your form, you can also easy do scriptacoulus effects with this approach eg make the offender shake.. package zeuzgroup.application.component; import java.io.Serializable; import

Add caption to DataTable

2008-09-25 Thread Edgar Merino
Hello again, Is it possible to add a caption to a DataTable? Toolbars are not good for these, any advice on how to do this? Regards. Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Design question. LAZY loading of fields in JPA/Hibernate enteties and Wicket. How do you handle it? Any way of not using DAO's?

2008-09-25 Thread Kent Larsson
I am not using Spring. But maybe it would be a valuable addition to the technologies I should use. I will have a look at it and see if it's something I could have use for. On Thu, Sep 25, 2008 at 12:44 PM, James Carman [EMAIL PROTECTED]wrote: Kent, Are you using Spring? If so, take a look

Re: Add caption to DataTable

2008-09-25 Thread Edgar Merino
Never mind, solved it using some extra css. Edgar Merino escribió: Hello again, Is it possible to add a caption to a DataTable? Toolbars are not good for these, any advice on how to do this? Regards. Edgar Merino -

Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread John Krasnay
I keep a little library of these (LinkPanel, BookmarkablePageLinkPanel, etc.) that are all just a link containing a label. It would be nice if they were part of Wicket proper. Does anyone else think so? jk On Thu, Sep 25, 2008 at 12:10:17PM +0200, Nino Saturnino Martinez Vazquez Wael wrote: I

Re: Adding HTML class=invalid after validating with IndicatingAjaxButton

2008-09-25 Thread Chris Stein
Thanks Martijn!!! That worked like a charm! - Original Message From: Martijn Dashorst [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Thursday, September 25, 2008 1:59:41 PM Subject: Re: Adding HTML class=invalid after validating with IndicatingAjaxButton Override onError too

Travel Assistance to ApacheCon US 2008

2008-09-25 Thread Martijn Dashorst
The Travel Assistance Committee is taking in applications for those wanting to attend ApacheCon US 2008 between the 3rd and 7th November 2008 in New Orleans. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon US 2008 who need some financial support

isVisible Problem

2008-09-25 Thread Markus Haspl
hi, i have a WebPage with a lot of Panels on it. Each Panel overrides the isVisible() method because not every Panel should be displayed on the page. The Problem is: the constructor of each Panel (also which aren't visible) is called and i have a lot of load on the server. So i tried to make a

SV: Need to open the Link in another window

2008-09-25 Thread Wilhelmsen Tor Iver
Try: Link lk = new ExternalLink(lk, http://...;) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(target, _blank); } }; A bit overkill: You might instead want to add

Re: isVisible Problem

2008-09-25 Thread James Carman
If you don't want the panels on there, put an EmptyPanel in their place instead of making them invisible. On Thu, Sep 25, 2008 at 10:08 AM, Markus Haspl [EMAIL PROTECTED] wrote: hi, i have a WebPage with a lot of Panels on it. Each Panel overrides the isVisible() method because not every

Re: Need to open the Link in another window

2008-09-25 Thread James Carman
Have you tried calling setPopupSettings()? On Thu, Sep 25, 2008 at 10:26 AM, Wilhelmsen Tor Iver [EMAIL PROTECTED] wrote: Try: Link lk = new ExternalLink(lk, http://...;) { @Override protected void onComponentTag(ComponentTag tag) {

retrieving item model object in a form using datatable

2008-09-25 Thread zaheers
I am using a Datatable and DataProvider classes in a search form for paging and sorting. I need to add a link column to display the item detail panel upon clicking of the link. I am not sure how to obtain the model of an individual item when using the datatable. Would you pl. provide some

Re: retrieving item model object in a form using datatable

2008-09-25 Thread James Carman
I think this will do what you want: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/example/src/main/java/org/wicketopia/example/web/page/HomePage.java On Thu, Sep 25, 2008 at 10:32 AM, zaheers [EMAIL PROTECTED] wrote: I am using a Datatable and DataProvider classes in a

Re: Need to open the Link in another window

2008-09-25 Thread Martijn Dashorst
On Thu, Sep 25, 2008 at 4:31 PM, James Carman [EMAIL PROTECTED] wrote: Have you tried calling setPopupSettings()? DOesn't work on external link Just add the target to the markup—one of the things Wicket goes out to do is to not touch attributes when not asked to. Adding the target to the markup

Wicket Security - best practices?

2008-09-25 Thread Claus Myglegaard Vagner
Hi, I'm about to start a new project using Wicket and is currently examining which security framework to apply for. I'm looking for best practices implementing security to a Wicket application. Wicket has WASP which Swarm is an implementation of and then there is wicket-auth-roles. Is

Re: Need to open the Link in another window

2008-09-25 Thread James Carman
So, why is the method on ExternalLink? On Thu, Sep 25, 2008 at 10:41 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: On Thu, Sep 25, 2008 at 4:31 PM, James Carman [EMAIL PROTECTED] wrote: Have you tried calling setPopupSettings()? DOesn't work on external link Just add the target to the

Re: Wicket Security - best practices?

2008-09-25 Thread James Carman
You can bridge the gap between Spring Security's default URL-based model and the component-based model in Wicket. That's what we do here at work. If you want an example, let me know. I've got one out there on my public example stuff somewhere. You could try poking around in (I think it's

Re: isVisible Problem

2008-09-25 Thread Erik van Oosten
Overriding isVisible can be quite evil. The problem is that it is called also in the detach phase. When isVisible depends on the model, your model is often reloaded! There are 2 solutions: - within method isVisible cache the result, clear the cache in the onDetach. - (recommended) don't

Re: isVisible Problem

2008-09-25 Thread Igor Vaynberg
call your init from this hook: onbeforerender() { if (!hasbeenrendered()) { init(); } } -igor On Thu, Sep 25, 2008 at 7:08 AM, Markus Haspl [EMAIL PROTECTED] wrote: hi, i have a WebPage with a lot of Panels on it. Each Panel overrides the isVisible() method because not every Panel should

Re: isVisible Problem

2008-09-25 Thread Markus Haspl
thank you eric! i will change the Overrides. On Thu, Sep 25, 2008 at 5:09 PM, Erik van Oosten [EMAIL PROTECTED]wrote: Overriding isVisible can be quite evil. The problem is that it is called also in the detach phase. When isVisible depends on the model, your model is often reloaded! There

Re: Need to open the Link in another window

2008-09-25 Thread Martijn Dashorst
weird, in my memory the popupsettings were only available on Link. My mistake. Nevertheless: I stand by my statement that target=foo in markup is the most simple solution. Martijn On Thu, Sep 25, 2008 at 4:46 PM, James Carman [EMAIL PROTECTED] wrote: So, why is the method on ExternalLink? On

Re: Wicket Security - best practices?

2008-09-25 Thread Maarten Bosteels
Hi, Anyone tried integrating Wicket with JSecurity ? http://www.jsecurity.org/ Maarten On Thu, Sep 25, 2008 at 4:54 PM, James Carman [EMAIL PROTECTED] wrote: You can bridge the gap between Spring Security's default URL-based model and the component-based model in Wicket. That's what we do

Re: Need to open the Link in another window

2008-09-25 Thread James Carman
Yes, you are correct (not about being incorrect, but about it being simpler to do it in the markup). That begs the question, when are PopupSettings appropriate as opposed to just adding the popup crap to the markup file? On Thu, Sep 25, 2008 at 11:04 AM, Martijn Dashorst [EMAIL PROTECTED] wrote:

Re: Need to open the Link in another window

2008-09-25 Thread Igor Vaynberg
i would say its the other way around. adding an attribute modifier is overkill for something like this. -igor On Thu, Sep 25, 2008 at 7:26 AM, Wilhelmsen Tor Iver [EMAIL PROTECTED] wrote: Try: Link lk = new ExternalLink(lk, http://...;) { @Override protected void

Re: Wicket Security - best practices?

2008-09-25 Thread James Carman
I was planning on doing that when I saw their proposal come into the ASF incubator. It looks like a nice project. On Thu, Sep 25, 2008 at 11:05 AM, Maarten Bosteels [EMAIL PROTECTED] wrote: Hi, Anyone tried integrating Wicket with JSecurity ? http://www.jsecurity.org/ Maarten On Thu,

Re: Wicket Security - best practices?

2008-09-25 Thread Les Hazlewood
Haha, funny you should ask this - I'm doing it now ;) I've recently started using Wicket for my latest web application, and naturally I wanted to do this. I'll have to do a little write-up when I'm finished with it. Any questions that I could help with in particular in the meantime? Naturally,

Re: Wicket Security - best practices?

2008-09-25 Thread James Carman
Les, small world! If you'd like some help, let me know. I might switch our projects at work over to JSecurity. On Thu, Sep 25, 2008 at 11:11 AM, Les Hazlewood [EMAIL PROTECTED] wrote: Haha, funny you should ask this - I'm doing it now ;) I've recently started using Wicket for my latest web

Re: Need to open the Link in another window

2008-09-25 Thread Martijn Dashorst
when you want to control the size and such of the popup window. Martijn On Thu, Sep 25, 2008 at 5:07 PM, James Carman [EMAIL PROTECTED] wrote: Yes, you are correct (not about being incorrect, but about it being simpler to do it in the markup). That begs the question, when are PopupSettings

Re: Need to open the Link in another window

2008-09-25 Thread James Carman
Ok, cool. Thanks. On Thu, Sep 25, 2008 at 11:30 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: when you want to control the size and such of the popup window. Martijn On Thu, Sep 25, 2008 at 5:07 PM, James Carman [EMAIL PROTECTED] wrote: Yes, you are correct (not about being incorrect, but

Re: FormTester.getTextComponentValue not equals with textfield

2008-09-25 Thread Emanuele Gesuato
Emanuele Gesuato wrote: Hello, I'm writing a testcase in which i try to compare the value of a textfield in a form with the value of a pojo. This value is a BigDecimal. This is the code: FormTester ft = tester.newFormTester(GestisciListino.tags.pizzaForm.toString());

Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-09-25 Thread Erik van Oosten
You should use one of the other HybridUrlCoding strategies. E.g. the IndexedHybridUrlCodingStrategy. If you need an MixedParamHybridUrlCodingStrategy, I can mail it to the list. Regards, Erik. itayh wrote: Hi, I am using HybridUrlCodingStrategy for my url's (I need that the mount point

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
I did not like the fact that you guys filled the highscore so quickly:). I've put up a new version, with one level more. And now you can potentially get 40 points over the 40 ticks. Highscore increased to 10 spaces. And I tried to see if putting a veil over the box could fix the behavior

Hooking AJAX requests

2008-09-25 Thread John Krasnay
Hi folks, I'm trying to integrate the Dean Edwards IE7.js script (http://dean.edwards.name/IE7/) into my Wicket app. For those that don't know, IE7.js helps IE6 implement certain CSS rules that it doesn't support natively (min-height, :first-child, :hover, ...) I've created a behavior that

[ANNOUNCE] WUG DK 15 october

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Hi Remember WUG DK 15 october. We've simplified the process of signing up so go here and sign up : http://wugdk.eventbrite.com/ Eventbrite is a free service if your arrangement is free... So maybe something for the other WUGs aswell? -- -Wicket for love Nino Martinez Wael Java Specialist

Re: Hooking AJAX requests

2008-09-25 Thread Matej Knopp
You can do it in javascript using Wicket.Ajax.registerPostCallHandler(yourhandler); -Matej On Thu, Sep 25, 2008 at 9:04 PM, John Krasnay [EMAIL PROTECTED] wrote: Hi folks, I'm trying to integrate the Dean Edwards IE7.js script (http://dean.edwards.name/IE7/) into my Wicket app. For those

Re: Hooking AJAX requests

2008-09-25 Thread Igor Vaynberg
there is ajaxrequesttarget.addlistener() that can do what you want, but you would have to add it every time. there is no global listeners yet. feel free to add an rfe. -igor On Thu, Sep 25, 2008 at 12:04 PM, John Krasnay [EMAIL PROTECTED] wrote: Hi folks, I'm trying to integrate the Dean

Re: Hooking AJAX requests

2008-09-25 Thread Igor Vaynberg
good point, just dump that javascript out in your basepage -igor On Thu, Sep 25, 2008 at 12:07 PM, Matej Knopp [EMAIL PROTECTED] wrote: You can do it in javascript using Wicket.Ajax.registerPostCallHandler(yourhandler); -Matej On Thu, Sep 25, 2008 at 9:04 PM, John Krasnay [EMAIL PROTECTED]

Re: Hooking AJAX requests

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
None that I know of. And I think it's something Wicket are lacking... A way to control js behavior of ajax components from behaviors them selfs. John Krasnay wrote: Hi folks, I'm trying to integrate the Dean Edwards IE7.js script (http://dean.edwards.name/IE7/) into my Wicket app. For those

Re: [ANNOUNCE] WUG DK 15 october

2008-09-25 Thread Daan van Etten
I'd love to be there, but it's a +700 km drive.. BTW: was surprised to see my interpretation of the Wicket logo on top of the page :-). Regards, Daan On 25 sep 2008, at 21:06, Nino Saturnino Martinez Vazquez Wael wrote: Hi Remember WUG DK 15 october. We've simplified the process of

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Maarten Bosteels
When you click a cell just after the high score form appears, the whole page freezes up. Otherwise I had some fun :-) Maarten On Thu, Sep 25, 2008 at 8:58 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I did not like the fact that you guys filled the highscore so quickly:).

Re: Hooking AJAX requests

2008-09-25 Thread John Krasnay
Perfect! Works like a charm. Thanks much. jk On Thu, Sep 25, 2008 at 09:07:26PM +0200, Matej Knopp wrote: You can do it in javascript using Wicket.Ajax.registerPostCallHandler(yourhandler); -Matej On Thu, Sep 25, 2008 at 9:04 PM, John Krasnay [EMAIL PROTECTED] wrote: Hi folks, I'm

Re: [ANNOUNCE] WUG DK 15 october

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
I think it's nice.. I guess the wicket team could make a pack of logo's available, for sites to use? Daan van Etten wrote: I'd love to be there, but it's a +700 km drive.. :) Or flight 1 hour flight or something.. BTW: was surprised to see my interpretation of the Wicket logo on top of the

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Nino Saturnino Martinez Vazquez Wael
Thanks:) One really need to be carefull with removing behaviors etc.. Maarten Bosteels wrote: When you click a cell just after the high score form appears, the whole page freezes up. Otherwise I had some fun :-) Maarten On Thu, Sep 25, 2008 at 8:58 PM, Nino Saturnino Martinez Vazquez Wael

Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Edward Zarecor
Fun. There seems to be a condition that causes subsequent clicks to not be scored. In any event, not all successful clicks seem to get counted -- not sour grapes, I promise. Ed. On Thu, Sep 25, 2008 at 4:09 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Thanks:) One

Re: @SpringBean and serialization

2008-09-25 Thread Ari M
I see nothing on the wiki page under Annotation-based Approach concerning serialization. The other approaches discuss serialization issues, but not this one. Am I missing something? If it said something like serialization/de-serialization handled automatically, that would be clear. Thanks,

Re: @SpringBean and serialization

2008-09-25 Thread Ari M
BTW, I did note that it said It's possible to have your annotated dependencies automatically injected on construction. By this I inferred that de-/serialization was handled, but it could be made more explicit, as it is for the other approaches. Ari Ari M wrote: I see nothing on the wiki

Re: @SpringBean and serialization

2008-09-25 Thread Igor Vaynberg
its a wiki, you can always update it... -igor On Thu, Sep 25, 2008 at 6:38 PM, Ari M [EMAIL PROTECTED] wrote: BTW, I did note that it said It's possible to have your annotated dependencies automatically injected on construction. By this I inferred that de-/serialization was handled, but it

Session lost when redeploying

2008-09-25 Thread Adriano dos Santos Fernandes
Hi! On a non Wicket application running on OC4J, I had the problem of the HTTP session being lost when the application was redeployed. The usage of session data was minimum, for authentication purpose. I'd solved the problem with a custom encrypted cookie that reconstructs the server session.