Update DropDownChoice

2009-04-08 Thread Peter Diefenthaeler
Hallo, I'm trying to update a DropDownChoice from a Ajax Callback. The new value is correctly added to the choice of selectable values, but I can't set the new added value as the selected value, only new choice is shown ... Any ideas are welcome. Thanks, Peter

RE: EmptyAjaxRequestTarget invokes failurescript when link is pressed on page

2009-04-08 Thread Mikko Pukki
Hi, I attached a patch (for 1.3.x snapshot) to jira 1971. - Mikko -Original Message- From: Matej Knopp [mailto:matej.kn...@gmail.com] Sent: 7. huhtikuuta 2009 20:17 To: users@wicket.apache.org Subject: Re: EmptyAjaxRequestTarget invokes failurescript when link is pressed on page

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Martijn Dashorst
On Wed, Apr 8, 2009 at 4:04 AM, Craig Tataryn crai...@tataryn.net wrote: but the JavaDoc tells me not to use this method as it's supposed to be used by Wicket internally only.  And they use capital letters too when telling me this. That is because a kitten gets killed every time you call such

Re: Is localizing parts of the service layer (which is using Spring 2.5) a good idea?

2009-04-08 Thread Kent Larsson
Great answer as you always seem to provide Igor! Thank you! / Kent On Tue, Apr 7, 2009 at 7:04 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: both wicket and spring allow you to customize how text bundles are loaded. you can create a spring bundle loader that uses your

Search results in a DataView must be updated

2009-04-08 Thread Matthias Keller
Hi I implemented a search form which contacts a remote server to search for some users and returns a List of the matching users. I then feed them into a DataView where the user can click on a specific entry to see the details. This is implemented using something like public void populateItem

Re: Runtime error with TabbedPanel and AbstractTab (I know it's my mistake somewhere)

2009-04-08 Thread Branden Tanga
Ok, I've been racking my brain for the past few days, and I still cannot solve this. I've even added wicket-extensions.jar to my .m2/repository and rebuilt my eclipse project with the mvn clean and mvn eclipse commands given in the wicket quickstart. When I open up my eclipse project, under

Re: Runtime error with TabbedPanel and AbstractTab (I know it's my mistake somewhere)

2009-04-08 Thread Daan van Etten
Hi, Maven should handle your dependencies. Have you added the wicket extensions dependency to your pom.xml? Add this to the 'dependencies' tag of your pom.xml. The Wicket dependency should already be there. dependency groupIdorg.apache.wicket/groupId

Re: Runtime error with TabbedPanel and AbstractTab (I know it's my mistake somewhere)

2009-04-08 Thread Branden Tanga
That was it! I guess I should get into the habit of managing maven and then pushing those changes out to eclipse with a mvn clean then a mvn eclipse. Thanks, Branden Tanga Programmer / EHR Systems Engineer On Wed, Apr 8, 2009 at 1:11 AM, Daan van Etten d...@stuq.nl wrote: Hi, Maven should

Re: Runtime error with TabbedPanel and AbstractTab (I know it's my mistake somewhere)

2009-04-08 Thread Branden Tanga
Also, forgot to say thanks everyone! Thanks, Branden Tanga Programmer / EHR Systems Engineer On Wed, Apr 8, 2009 at 2:05 AM, Branden Tanga branden.ta...@gmail.comwrote: That was it! I guess I should get into the habit of managing maven and then pushing those changes out to eclipse with a mvn

Re: override isEnabed of FinishButton

2009-04-08 Thread Matthias Keller
Hi Martin I had a similiar problem a while ago - I solved it by copying that class - it was the fastest thing to do. However, feel free to post a bug report about removal of these final modifiers for the next version. They already removed some final's in the CLASS definition of these buttons

Re: override isEnabed of FinishButton

2009-04-08 Thread Martin Tilma
Hi, Thnx for the reply, but your solutions won't fix my problem because the isEnabled in FinishButton is implemented like this: /** * @see org.apache.wicket.Component#isEnabled() */ public final boolean isEnabled() { IWizardStep

Re: Integrating Wicket + Google Guice + Warp-persistence

2009-04-08 Thread francisco treacy
if conceptually and technically it works for you then it's fine! very likely some day someone searching the mailing list is going to find it useful. francisco 2009/4/7 Eduardo Nunes esnu...@gmail.com: No comments? On Tue, Apr 7, 2009 at 10:05 AM, Eduardo Nunes esnu...@gmail.com wrote: Hi

DropDownChoice custom key problem

2009-04-08 Thread Vladimir Zavada
Hi, I have a problem with DropDownChoice. I am using DropDownChoice with ChoiceRenderer and I am getting this error: No get method defined for class: class java.lang.String expression: key Here is a code: DaysSelectOption[] options = new DaysSelectOption[] {new DaysSelectOption(,

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Craig Tataryn
On 8-Apr-09, at 3:27 AM, Martijn Dashorst wrote: On Wed, Apr 8, 2009 at 4:04 AM, Craig Tataryn crai...@tataryn.net wrote: but the JavaDoc tells me not to use this method as it's supposed to be used by Wicket internally only. And they use capital letters too when telling me this. That is

Re: DropDownChoice custom key problem

2009-04-08 Thread James Carman
The class is private. 2009/4/8 Vladimir Zavada zava...@gmail.com: Hi, I have a problem with DropDownChoice. I am using DropDownChoice with ChoiceRenderer and I am getting this error: No get method defined for class: class java.lang.String expression: key Here is a code:      

Re: GWT vs. Wicket?

2009-04-08 Thread Craig Tataryn
Peter Thomas did a great side by side you should checkout: http://ptrthomas.wordpress.com/2008/09/04/wicket-and-gwt-compared-with-code/ Craig. On 8-Apr-09, at 8:11 AM, Casper Bang wrote: I was just wondering about the Wicket community's opinion of GWT. It seems to share many of the positive

Re: DropDownChoice custom key problem

2009-04-08 Thread Serkan Camurcuoglu
why does it say java.lang.String instead of DaysSelectOption? On http://cwiki.apache.org/WICKET/dropdownchoice-examples.html it says: You give a DDC a model and a list of possible values. The type of object returned by the model and the type of objects in the list *must* be the same. If your

Re: DropDownChoice custom key problem

2009-04-08 Thread Vladimir Zavada
Great, thank you very much it works perfectly. I did not know that object returned by the model and the type of objects in the list *must* be the same. Serkan Camurcuoglu wrote / napísal(a): why does it say java.lang.String instead of DaysSelectOption? On

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Martin Funk
look around in the area of HeaderContributor and how it is used in JavascriptPackageResource.getHeaderContributor and keep in mind, when implementing the method renderHead of class HeaderContributor, that IHeaderResponse contains a method .renderOnDomReadyJavascript( mf Am 08.04.2009 um

Re: GWT vs. Wicket?

2009-04-08 Thread Ben Tilford
Working with GWT is kind of a nightmare. You have to write custom build scripts for any library / module you use so that the sources are included in the jar and available to the GWT compiler. Until GWT has a build system that is better I'll stay away from it. Really a shame because the programming

Using eclipse-salve plugin

2009-04-08 Thread Thiago Senna
Hi, I put salve to work with maven (with salve-maven2 plugin) and using jvm arguments as suggested in the salve homepage (with -javaagent:salve-agent.jar) successfully, but unfortunatelly I couldn't put the salve-eclipse plugin to work on eclipse ganymede-jee. I don't know if the plugin was

AjaxFallbackLink and Component visibility

2009-04-08 Thread Sergiu Sapojnic
Hi to all! I am new to Wicket and am beginning to love it. I have the following question: -- There's the following markup: p a href=# wicket:id=clickAjaxLinkThis Ajax link/a has been clicked span wicket:id=clickAjaxLabel[123]/span times.br/ span

Question (Tab Panel, Workspace, Plugins)

2009-04-08 Thread Tomáš Mihok
Hello, I would like to ask various questions and I will try to explain it as good as possible. First of off I'm creating a modular application and add functionality via plugins. This is how it should look like: |---| | |

AjaxLazyLoad using

2009-04-08 Thread Vladimir Zavada
Hi, I am doing som queries on database through ajaxFallBackLink and it may take some time. Due this time I need some component or modal window or some loading image to show that site is alive and it is working? thx - To

Re: GWT vs. Wicket?

2009-04-08 Thread Azzeddine Daddah
Hi, You may also take a look at ZK framework. It's also a kind of framework which can be used to build beautiful RIA's. You can chose to use it by writing your app in just Java or in Java/Zul. http://www.zkoss.org But in my opinion, Wicket stills beter then these kind of frameworks :) Regards,

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Igor Vaynberg
we do not support getting the id from markup. this is because based on where your code is it is not always possible - eg you may need it before the markup for that component has been loaded or parsed, and we may not always know what the markup will be to do a just in time markup load. this is why

Re: 2 DropDownChoices with a renderer. ajax update

2009-04-08 Thread Sasha Newbie
Dear Arthur, I had to do the same thing but I did not use a ChoiceRenderer or anything. I have three DropDownChoice and each one needs to be updated according to the option selected in the previous DropDown. I had the same problem and I solved it adding a setChoices(List) to the DropDown. I had

Re: Using eclipse-salve plugin

2009-04-08 Thread Igor Vaynberg
you should check out the sources for 1.0 release, import them into eclipse, and build the plugin yourself. i have seen cases where a plugin i built on a windows machine does not work on linux or mac. go figure. building it is easy, check out the source, import eclipse projects,

Re: GWT vs. Wicket?

2009-04-08 Thread Peter Thomas
I thought Matt Raible had some success with getting GWT to play nice with Maven: http://raibledesigns.com/rd/entry/modularizing_gwt_applications_with_gwt Personally I would choose GWT only when I want to keep server calls to a bare minimum. Ready made components and all may look enticing, but

Re: GWT vs. Wicket?

2009-04-08 Thread Casper Bang
P.S. people say my article is one sided but no-one can explain *why ;) - ok, ok this has been discussed to death in the comments there ... I should mention I love wicket (coming from JSF) but has only limited exposure to it while having no experience at all with GWT. However while reading, I

Re: Re: GWT vs. Wicket?

2009-04-08 Thread nick
Thank you for your mail. I am presently on vacation and will return April 14th. If you need urgent assistance, please email supp...@bookingbooster.com. You can also reach our Support via Skype callto://premiersupport Thank you Best regards, Nick Wheeler Booking Booster.com t: +44 (0)1273

Re: retrieve value at mouse click in palette

2009-04-08 Thread yxd0018
This doesn't work. super.newChoiceComponent() cannot have impl. I tried this: this.palette = new PaletteSerializable( palette, new CompoundPropertyModel( (Serializable)selectedChoice ) , new CompoundPropertyModel( (Serializable)choiceList ), renderer, 10, false ) {

Re: id attribute of Component Tag in renderHead?

2009-04-08 Thread Craig Tataryn
On 8-Apr-09, at 10:31 AM, Igor Vaynberg wrote: we do not support getting the id from markup. this is because based on where your code is it is not always possible - eg you may need it before the markup for that component has been loaded or parsed, and we may not always know what the markup will

Scriptaculous and ListView

2009-04-08 Thread Curtis Cooley
I'm having a hard time find an example on how to add scriptaculous effects to a list view. Here is what I've tried: tableContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)) { @Override protected void onPostProcessTarget(AjaxRequestTarget target) {

Re: GWT vs. Wicket?

2009-04-08 Thread Brill Pappin
Getting to to do something specific is not usually my problem with GWT (its component model feels just like Wickets does)... the biggest problem I have is having less control over the html, which makes things a bit harder to deal with (Googles ui style now is partly the result of how you

wicket, slf4j and logback

2009-04-08 Thread Marc Ende
Hi, I've changed from logging using log4j to logback but there is a little drawback I haven't figured out in this combination. I've got this logback.xml: configuration appender name=FILE class=ch.qos.logback.core.FileAppender file${jboss.server.log.dir}/wz.log/file layout

Default implementation of IChainingModel

2009-04-08 Thread Juan G. Arias
Hi all,First of all, I'm using wicket 1.3.5 I'm writing a model and ai need it to be chaineable. I mean, I need this model to contain another model, so my model can obtain the data, for example, from a property model. Ok, I've been reading and this is solved by the IChainingModel. But I couldn't

Re: Default implementation of IChainingModel

2009-04-08 Thread Jeremy Thomerson
I think that's a good idea - I have done a similar thing in my own projects. Please open a JIRA so this idea doesn't get lost, but this is one I may try to do soon. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 8, 2009 at 4:36 PM, Juan G. Arias juangar...@gmail.com wrote: Hi

Re: Wicket Noob: Long cannot be cast to java.lang.String

2009-04-08 Thread David Brown
Hello Johan, thanks! the static NumberValidator.RangeValidator(long minimum, long maximum) worked! Wicket is great. I just wished Wicket was available 10 years ago! Regards, David. There are 10 kinds of people in this world: those who understand binary and those who don’t (Valid only for 2's

Re: GWT vs. Wicket?

2009-04-08 Thread Andre Prasetya
Zk ia good for buildng qpplication bt the zul wndow layout is just like that. And the license os stopping us from buildng commercial apps wthout buying their licnse.it worth th money but if u live in an economically poor country,you can't afford it. I wish wicket can play nicely with

Re: Re: GWT vs. Wicket?

2009-04-08 Thread nick
Thank you for your mail. I am presently on vacation and will return April 14th. If you need urgent assistance, please email supp...@bookingbooster.com. You can also reach our Support via Skype callto://premiersupport Thank you Best regards, Nick Wheeler Booking Booster.com t: +44 (0)1273

Re: GWT vs. Wicket?

2009-04-08 Thread Ben Tilford
There was a grails-wicket plugin but I don't think it works with any recent version. They are also working on making grails more modular with standalone GORM etc... Also heard somewhere that Groovy 1.7 or 1.8 will allow anonymous inner classes. On Wed, Apr 8, 2009 at 8:53 PM, Andre Prasetya

Re: GWT vs. Wicket?

2009-04-08 Thread ying rss
I played with both GWT and wicket. I was drawn to wicket by several reviews and I'm disappointed. I use maven to build gwt and ext-js and GXT which works very well. Compilation is slow but with tuning to specific browser, the call stack is straight forward. It's my feeling that GWT is closer to

Turning off ModificationWatcher

2009-04-08 Thread Matthew Welch
I'm experimenting with Wicket inside Google's new Java support for its App Engine. My simple apps run fine if the configuration is set to DEPLOYMENT, however in development mode, I get an exception related to ModificationWatcher. Looking at the exception I think this ModificationWatcher is being

Re: Turning off ModificationWatcher

2009-04-08 Thread Ryan Crumley
Matt, Add this to your WebApplication.init() method: getResourceSettings().setResourcePollFrequency(null); Ryan On Wed, Apr 8, 2009 at 9:33 PM, Matthew Welch matt...@welchkin.net wrote: I'm experimenting with Wicket inside Google's new Java support for its App Engine. My simple apps run fine

Re: Turning off ModificationWatcher

2009-04-08 Thread Jonathan Locke
not sure, but try getResourceSettings().setResourcePollFrequency(null) in your app init Matt Welch wrote: I'm experimenting with Wicket inside Google's new Java support for its App Engine. My simple apps run fine if the configuration is set to DEPLOYMENT, however in development mode, I

page expire

2009-04-08 Thread srinivas
Hi, * How to make the page expire when the user click the browser back button in wicket.* Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com **

super(params) WebPage

2009-04-08 Thread Eduardo Nunes
Hi, I want to know if I have or not to call super(params) in my constructor Xxx(PageParameters params). I made some tests and I got strange results. I have a form inside a page, on the constructor of this page I call super(params) and setVersioned(false). The form extends StatelessForm. If I

Changing form validation depending on submit button.

2009-04-08 Thread Ian MacLarty
Hi, I have a form with two submit buttons. I want the form to validate differently depending on what submit button is pressed (i.e. I want to use a different IFormValidator depending on what button is used to submit the form). How would I go about doing this? Ian.