Re: comunication between panels

2008-02-19 Thread Edward Yakop
On Feb 18, 2008 7:13 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 18 Feb 2008, Mazzanti Luca wrote: i have a question: how can i comunicate between panels in wicket? The normal Wicket way is to share models, pass references etc, but it has its limitations. You can find an example

Re: self refreshing table with effects

2008-02-19 Thread okrohne
Hi Maurice, thanks for your advice, it worked out of the box :) Now I have mounted the Page to www.mydomain.com/events by setting it in the init method of my app mountBookmarkablePage(/events, Events.class); and I get this exception: java.lang.IllegalStateException: URL fragment has

Re: AJAX validation and multiple requests

2008-02-19 Thread Federico Fanton
On Tue, 19 Feb 2008 06:49:04 +0200 Timo Rantalaiho [EMAIL PROTECTED] wrote: We have done something similar with OnChangeAjaxBehavior and keeping in some component or validator the state of validities of each FormComponent. When everything is valid, the whole form can be submitted. I see..

Re: Layering / Data-access with Wicket

2008-02-19 Thread James Carman
My implementation is very similar, except the classes aren't Contact-specific. They're reusable across all of my entity types. I sort of borrowed from that example to begin with. :) On 2/19/08, Martijn Dashorst [EMAIL PROTECTED] wrote: Take a look at the wicket-phonebook from wicketstuff.org

Re: Layering / Data-access with Wicket

2008-02-19 Thread Nino Saturnino Martinez Vazquez Wael
or the blog tutorial, it uses jpa but could be a prettier example... http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial Martijn Dashorst wrote: Take a look at the wicket-phonebook from wicketstuff.org for inspiration. Martijn On 2/19/08, Bert Radke [EMAIL PROTECTED] wrote:

Re: Exception redirecting to source page

2008-02-19 Thread Cristiano Kliemann
Thanks for the reply. I think I will not use onRuntimeException to control my 'business exceptions' even if it works now. If Wicket doesn't count on such thing, I have no guarantee that it won't break in the future. I'm not sure it will not break in the future. What I'm afraid of changes in

Performance

2008-02-19 Thread Leucht, Axel
Hi, Though I'm very impressed by wicket, I do have a question concernig the performance of wicket. A simple WebPage just iterates over a list of data and inserts a href-Element in the resulting page. It works, but is incredibly slow (runs minutes), whereas a similar JSP-Page finishes in

Restarting AjaxTimeBehavior

2008-02-19 Thread Juan Gabriel Arias
Hi all, is there a way to do that? Restart the AjaxTimeBehavior? I have a panel, that should update itself when some event occurs. So, i use AjaxTimeBehavior to check periodically for that condition. But i also have another component making user-fired ajax requests. And i wanted to check my

Re: Exception redirecting to source page

2008-02-19 Thread Cristiano Kliemann
I spent some time editing the previous e-mail and forgot to delete the 'garbage' before posting... sorry :) igor.vaynberg wrote: good. there are some internals that do not count on a runtime exception being thrown because of user code...for example throwing it out of something like

Re: Disabling validation (and still processing the form)

2008-02-19 Thread Martijn Dashorst
Don't add validators to your form components? Or use a valuemap as your model object. Martijn On 2/19/08, Markus Strickler [EMAIL PROTECTED] wrote: Hi- is there any way to disable validation only (and still update the form) when a user clicks on a button? I found this

Disabling validation (and still processing the form)

2008-02-19 Thread Markus Strickler
Hi- is there any way to disable validation only (and still update the form) when a user clicks on a button? I found this http://cwiki.apache.org/WICKET/conditional-validation.html in the WIKI, but I'm still on 1.2.6 and the findSubmittingButton() method seems to be missing there. Thanks,

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Ryan Sonnek
Just because it's trivial doesn't mean it's not useful. Out of the box functionality is important to a lot of first time users. rolling your own doesn't sound as appealing as it just works out of the box. On Feb 19, 2008 9:43 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: its a 3 liner, cant

Re: Performance

2008-02-19 Thread Johan Compagner
the problem is that in the ListView/MarkupContainer the adding of new Items as child will cause quite some stuff now It will be searched over twice. First by Listview to find an existing Item (we could optimize this a bit but only a bit) then when you add it it will be searched over again. After

RE: Spring injecting beans into non-component classes

2008-02-19 Thread Warren
Thanks Igor, the InjectorHolder.getInjector().inject(this); is what I was looking for. Bart, Could you show me an example of your AbstractInjectableModel? Warren -Original Message- From: Bart Molenkamp [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 1:50 AM To:

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Ryan Sonnek
ahh...ok. it would have been helpful to understand your point instead of just the -1. On Feb 19, 2008 9:55 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: but its not just one class. if you create something like this you will have to recreate the model hierarchy to some degree:

AW: Performance

2008-02-19 Thread Leucht, Axel
I deployed it in deployment mode but still same result. My guess is, that instantiating these lots of objects is taking its time. Can I somehow create just one label and while iterating manipiulate the data in the object? /Axel

[wicketstuff-jquery] Drag and Drop seems to freeze in IE7

2008-02-19 Thread gaugat
I've been using the DnDSortableHandler component in wicketstuff-query. Everything seems to work great in FireFox and even Safari. However, in IE7, I can only drag an item (panel) 1 time. Its as though it is frozen until I refresh the page. I also ran the wicketstuff-jquery-examples and it has the

Re: Handle Hibernate transaction in wicket

2008-02-19 Thread Andrew Williams
I use onBeginRequest and onEndRequest from the WebRequestCycle, seems to work well. Andy On 13 Feb 2008, at 07:59, Sébastien Piller wrote: Hello, I'm searching for a best practice to integrate some hibernate transaction with Wicket. I'd like to implement the session-per- request that is

Re: Performance

2008-02-19 Thread Martijn Dashorst
So you are now optimizing a meaningless benchmark? Martijn On 2/19/08, Leucht, Axel [EMAIL PROTECTED] wrote: I deployed it in deployment mode but still same result. My guess is, that instantiating these lots of objects is taking its time. Can I somehow create just one label and while

Re: Spring injecting beans into non-component classes

2008-02-19 Thread Igor Vaynberg
but its not just one class. if you create something like this you will have to recreate the model hierarchy to some degree: loadableinjectablemodel, abstractreadonlyinjectablemodel, blah blah blah injectablemodel -igor On Feb 19, 2008 7:45 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: Just because

Re: Disabling validation (and still processing the form)

2008-02-19 Thread Markus Strickler
Ah, my bad. findSubmittingButton() exists so I can use it in the isRequired Method of my input fields after all. It still feels a bit ugly to me, though. Thanks, -markus Zitat von Martijn Dashorst [EMAIL PROTECTED]: Don't add validators to your form components? Or use a valuemap as your model

Wicket-security wish list

2008-02-19 Thread Warren
Maurice, I was thinking about this Access Denied message problem I have been working on and thought up some features that might be useful in future releases. It would be nice to be able to configure Access Denied messages directly into the hive like this: grant principal

Re: Performance

2008-02-19 Thread John Krasnay
Actually, I thought Johan pointed out what the problem was: that the performance of MarkupContainer.add is something like O(n^2) with respect to the number of direct children of the container, and that this was part of a conscious decision to optimise for space rather than time. Adding 100,000

RE: Wicket-security wish list

2008-02-19 Thread Warren
Maurice, Session.error() is how I ended up solving my problem. But, I formatted the message in my session and then ended up calling error(...), that way SwarmStrategy was just returning the denied Principals. I did not get as far as placing the message in a Properties file. I was not sure how to

Re: Page serialization and reloading don't get on

2008-02-19 Thread James Carman
Perhaps the in-memory store can make serialized copies of the state upon storing it in there? On 2/19/08, Carlos Pita [EMAIL PROTECTED] wrote: Of course, I'm proposing this just for development environments that use the reloading filter. Thanks for the remark, anyway. Perhaps I should

Re: Page serialization and reloading don't get on

2008-02-19 Thread Carlos Pita
You should be aware that you now disabled the serialization, which may cause problems on your production environment if you don't pay Of course, I'm proposing this just for development environments that use the reloading filter. Thanks for the remark, anyway. Perhaps I should have been clearer,

Re: Wicket-security wish list

2008-02-19 Thread Maurice Marrink
On Feb 19, 2008 10:39 PM, Warren [EMAIL PROTECTED] wrote: Maurice, Session.error() is how I ended up solving my problem. But, I formatted the message in my session and then ended up calling error(...), that way SwarmStrategy was just returning the denied Principals. I did not get as far as

Re: Page serialization and reloading don't get on

2008-02-19 Thread Carlos Pita
Something like this will do the trick: class PickyHttpSessionStore extends HttpSessionStore { public PickyHttpSessionStore(Application application) { super(application); } @Override public void setAttribute(Request request, String name, Object value)

Re: Tabular form validation problem with checkboxes

2008-02-19 Thread Igor Vaynberg
in your validate method why dont you iterate over the todo items instead of components. isnt that what the checkboxes are bound to? also you are using a LISTview, are todo items really identified uniquely by their index returned from todoList = TodoServices.browseWeek(currentWeekStartDate, user)

Re: How to find all error resourceKeys of a form field?

2008-02-19 Thread Igor Vaynberg
there is no way to find out what resource key the validator will check other then read the javadoc where they should be specified. by default we follow a convention that validator uses the resource key of its class name so NumberValidator will use a resource key NumberValidator

Re: Wicket Spy?

2008-02-19 Thread Igor Vaynberg
you can use IResponseFilter to store the generated markup. in a company i used to work for we would store markup for the last page and if the error occured we attached it to the error report - very useful thing to have. -igor On Feb 19, 2008 12:57 PM, Edvin Syse [EMAIL PROTECTED] wrote: Hi!

How to find all error resourceKeys of a form field?

2008-02-19 Thread MYoung
Hi, I'm learning wicket and I have a hard time determining the resourceKey of a component. In my code: Form form = new Form(myForm) TextField weight = new TextField(weight, Integer.class); weight.setRequired(true); weight.add(NumberValidator.minimum(0));

Re: Custom JavaScript Panel ?

2008-02-19 Thread Igor Vaynberg
instead of a panel use IHeaderContributor. you can make the page or any component in the page implement it. -igor On Feb 19, 2008 3:22 PM, Warren [EMAIL PROTECTED] wrote: I am trying to design a Panel that dynamically creates JavaScript into the head markup. I understand how to do this

Re: How to find all error resourceKeys of a form field?

2008-02-19 Thread MYoung
Ok, for the validators I added to the component, I can lookup the source. What about the TextField's data conversion error message? Where to look that up? igor.vaynberg wrote: there is no way to find out what resource key the validator will check other then read the javadoc where they

Custom JavaScript Panel ?

2008-02-19 Thread Warren
I am trying to design a Panel that dynamically creates JavaScript into the head markup. I understand how to do this statically, but not dynamically. My app runs on wireless PDA scanning devices used in grocery stores. One of the requirements is that it does not allow the user to place focus on any

Re: DatePicker Problems

2008-02-19 Thread madx
I am having the same problem in firefox. I can see the calendar icon, nothing happens when i click it. Christopher Gardner-2 wrote: Anyone having problems getting DatePicker to work in beta4? I get the icon, but when I click nothing happens. Probably my error, but just curious.

Re: DatePicker Problems

2008-02-19 Thread madx
I am having the same problem in firefox. I can see the calendar icon, nothing happens when i click it. Works in IE though. Christopher Gardner-2 wrote: Anyone having problems getting DatePicker to work in beta4? I get the icon, but when I click nothing happens. Probably my error, but just

RE: Custom JavaScript Panel ?

2008-02-19 Thread Warren
What is the difference between IHeaderResponse renderJavascript(...), renderOnBeforeUnloadJavascript(...) and renderOnLoadJavascript(...) methods? I would like to add different chunks of JavaScript to the head based on the requirements of my Page. Can I do this? public void

Localizer backwards incompatibility bug in 1.3?

2008-02-19 Thread Meetesh Karia
Hi all, In Wicket 1.2.6, we created some properties files like: Foo.properties Foo_style1.properties Foo_style2.properties and used StringResourceModel to look up property values. This worked correctly as in 1.2.6, Localizer didn't cache the property lookups and respected the style.

Re: DatePicker Problems

2008-02-19 Thread madx
nevermind, updated firefox and i can see the calendar pop-up madx wrote: I am having the same problem in firefox. I can see the calendar icon, nothing happens when i click it. Works in IE though. Christopher Gardner-2 wrote: Anyone having problems getting DatePicker to work in beta4?

DatePicker with onchange behavior

2008-02-19 Thread madx
I have a custom component say BaseComponent which has a label say lbl. I am trying to add a datepicker to the lbl. baseComponent.add(new Label(lbl, new PropertyModel(BaseComponent.this, labelValue))); then.. DatePicker dp = new DatePicker(){ @Override protected String

RE: Wicket-security wish list

2008-02-19 Thread Warren
Where am I using Principal.implies(Subject subject); and how? I add the Principals to my Subject when I authenticate my user, is it here or am I setting this up in my app or in my policy file? It is getting clearer how things are working. I have always created my own security implementation, I

Re: Localizer backwards incompatibility bug in 1.3?

2008-02-19 Thread Igor Vaynberg
please open a bug in jira -igor On Feb 19, 2008 3:53 PM, Meetesh Karia [EMAIL PROTECTED] wrote: Hi all, In Wicket 1.2.6, we created some properties files like: Foo.properties Foo_style1.properties Foo_style2.properties and used StringResourceModel to look up property values. This

Re: How to find all error resourceKeys of a form field?

2008-02-19 Thread Igor Vaynberg
there is ConversionError.typename/ConversionName for type conversion errors and IConverter.typename/IConverter for converter errors. some of this is noted in formcomponent's javadoc. -igor On Feb 19, 2008 3:48 PM, MYoung [EMAIL PROTECTED] wrote: Ok, for the validators I added to the

Re: Custom JavaScript Panel ?

2008-02-19 Thread Igor Vaynberg
IHeaderResponse has javadoc which explains all these methods... -igor On Feb 19, 2008 4:19 PM, Warren [EMAIL PROTECTED] wrote: What is the difference between IHeaderResponse renderJavascript(...), renderOnBeforeUnloadJavascript(...) and renderOnLoadJavascript(...) methods? I would like to add

Adding onClick event to form fields

2008-02-19 Thread givp
Hi, Sorry for the newbie query. I currently have a form text field and I want to also be able to click on the field and do other stuff. I'm doing this right now but it's obviously not working. Can anyone point me to the right direction?

Re: (Server-independent) Comet support in Wicket?

2008-02-19 Thread Erik van Oosten
Jörn Zaefferer wrote: ... The architecture must support several both dependent and independent components on a single page which get updated based on server-events, be it on schedules or events triggered by other users. Wicket currently support updates through timers on the client side.

Re: Exception redirecting to source page

2008-02-19 Thread Cristiano Kliemann
I missed the generic exception 'goalkeeper' that JSF, Struts and other web frameworks have (I think). Alex Jacoby-2 wrote: Just wondering if this sort of thing is documented anywhere... Thanks, Alex On Feb 18, 2008, at 1:02 PM, Igor Vaynberg wrote: good. there are some internals

Re: Page serialization and reloading don't get on

2008-02-19 Thread Erik van Oosten
You could throw an Error. Not very nice, but at least you'll notice. Erik. Carlos Pita wrote: ... That said, this will only show error log entries, because of the catch in RequestCycle: I would like to see an error page instead, errors of this kind end up showing themselves as

Re: Tabular form validation problem with checkboxes

2008-02-19 Thread Martin Makundi
in your validate method why dont you iterate over the todo items instead of components. isnt that what the checkboxes are bound to? The idea is to validate the input before it gets updated into the todo items, yes? That is why I iterate the components... ofcourse I could validate it after the

Reloading on demand (a different approach to reloading)

2008-02-19 Thread Carlos Pita
Hi all, I have worked out a reloading classloader (loosely inspired by Jean Baptiste's one) that reloads classes upon entering of an http request, instead of monitoring and reloading on saved changes. There are 2 observations that motivated me to implement this variant: 1) the current reloading

Re: AJAX validation and multiple requests

2008-02-19 Thread Timo Rantalaiho
On Tue, 19 Feb 2008, Federico Fanton wrote: I see.. I'm trying this way too (alongside the Javascript one that Igor Vaynberg pointed out), so I have a Map that maps every component to its state, but I have a doubt.. How do you identify uniquely a Component? I can't use getId() since I'm inside

RE: Spring injecting beans into non-component classes

2008-02-19 Thread Bart Molenkamp
public abstract class AbstractInjectableModel implements IModel { /** * Applies injection to this model instance. */ public AbstractInjectableModel() { ConfigurableInjector injector = InjectorHolder.getInjector(); injector.inject(this); } ... } It is indeed just

Is there any Color Picker ? like the calendar.DatePicker

2008-02-19 Thread laiqinyi
Is there Color Picker ? I can choice any color, than return the color code(like FF 00) thanks Mead

Re: Page serialization and reloading don't get on

2008-02-19 Thread Uwe Schäfer
Carlos Pita schrieb: I would like to see an error page instead, errors of this kind end up showing themselves as obscure page expiration issues that are hard to trace if you don't know where to look. +1 on this one! - To