Re: [Wicket-user] Radio.getValue?

2007-03-28 Thread Nino Wael
Ok, let me try to explain another way. If you create a page where you use the radio component. The radios represent various kinds of datasets(OLAP cubes in this case but it does not really matter). On monday the 1. march you record with jmeter your test case(jmeter only records the http

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread sven
I'm not sure I fully understand what you're trying to do, but CheckGroup/Check components are a nice solution for managing the selection of multiple objects. No need to introduce a boolean property in your domain objects. Please take a look at FormInput.java from wicket examples: CheckGroup

[Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Chris Colman
Is it possible to store the HTML markup in a separate directory that is not part of the web app or web server directory structure? If necessary I could mimic the classpath in the separate directory so the HTMLs are stored in similarly named directories to their corresponding Java classes. I've

Re: [Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Eelco Hillenius
http://cwiki.apache.org/WICKET/custom-resource-paths.html Eelco On 3/28/07, Chris Colman [EMAIL PROTECTED] wrote: Is it possible to store the HTML markup in a separate directory that is not part of the web app or web server directory structure? If necessary I could mimic the classpath in the

[Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-28 Thread ZedroS Schwart
Hi I'm playing with Ajax and Wicket, which is quite fun, but I've an issue with AjaxSubmitButton and FormComponentFeedbackBorder. I guess I should use target.addComponent(Component) ; to declare in my AjaxSubmitButton that I want the feedback border to be updated. However, I'm using a

[Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Peter Thomas
Hi, I have a panel A that is replaced by another panel B over Ajax using Component.replaceWith(). Panel B contains a few Links. Say I navigate to this Page and trigger the event that causes panel B to replace Panel A. Then I click one of the Link(s) within Panel B that brings up another page.

Re: [Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Gwyn Evans
Which repoints readers to http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html Got a minute to do a quick comment on the two of them? /Gwyn On 28/03/07, Eelco Hillenius [EMAIL PROTECTED] wrote: http://cwiki.apache.org/WICKET/custom-resource-paths.html Eelco On

Re: [Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-28 Thread ZedroS Schwart
Quick update : I've found some help here : http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousing-feedback--tf2427268.html#a6767963 but I'm still looking for how to tell the FormComponentFeedbackBorder to render itself.. ++ ZedroS, digging in ! On 3/28/07, ZedroS Schwart

Re: [Wicket-user] getting form field value from AutoCompleteTextField

2007-03-28 Thread Jaime De La Jara
I think I found one solution, what I did was to add the normal textfield an AjaxFormComponentUpdatingBehavior associated to the onchange event. In the code of onUpdate() I add an AttributeModifier that replaces the value of the value attribute, then I replace the textfield in the form and use

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Matej Knopp
Peter, are you using 1.x? this can be caused by ajax requests being non-versioned in 1.2. In 1.x, the changes should be merged to latest version. On 3/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: matej didnt you fix this in 1.x svn? -igor On 3/28/07, Peter Thomas [EMAIL PROTECTED] wrote:

Re: [Wicket-user] AjaxFormComponentUpdatingBehavior for multiple elements?

2007-03-28 Thread Igor Vaynberg
you should be able to write your own behavior that does what you want easily. just look at how formcomponentupdating one works. -igor On 3/28/07, ChuckDeal [EMAIL PROTECTED] wrote: Is there a way to store the value of multiple form components using AjaxFormComponentUpdatingBehavior? Is

[Wicket-user] Dynamically choosing images to show

2007-03-28 Thread Jason Roelofs
How do I go about setting what image to use? I have: /images/green-check.png /images/yellow-alert.png And I want to choose which one of these to display on page creation time. I though it could be something simple like: add(new Image(image, images/green-check.png)); img wicket:id=image/ but

Re: [Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-28 Thread Igor Vaynberg
use a visitor to visit all form component feedback borders and add them to the target. -igor On 3/28/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Quick update : I've found some help here :

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread GS-ikiini
so this would associate my object with a checkbox? how do i place the select objects in a collection from there? -B svenmeier wrote: I'm not sure I fully understand what you're trying to do, but CheckGroup/Check components are a nice solution for managing the selection of multiple

Re: [Wicket-user] Dynamically choosing images to show

2007-03-28 Thread Igor Vaynberg
search the list for StaticImage -igor On 3/28/07, Jason Roelofs [EMAIL PROTECTED] wrote: How do I go about setting what image to use? I have: /images/green-check.png /images/yellow-alert.png And I want to choose which one of these to display on page creation time. I though it could be

Re: [Wicket-user] Dynamically choosing images to show

2007-03-28 Thread Jason Roelofs
Hmm, thanks, that does help, but the resulting output does not get processed by Wicket's rendering engine like other img tags. This means that while the image tags I manually write out end up saying img src=/app/images/green-check.png/ the output from StaticImage ends up being img

Re: [Wicket-user] Dynamically choosing images to show

2007-03-28 Thread Igor Vaynberg
what wicket version are you using? -igor On 3/28/07, Jason Roelofs [EMAIL PROTECTED] wrote: Hmm, thanks, that does help, but the resulting output does not get processed by Wicket's rendering engine like other img tags. This means that while the image tags I manually write out end up saying

Re: [Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Eelco Hillenius
Wow, that's even for version 1.0. :) I guess we should have just one page, explaining 1.3 and as a note mentioning the difference for 1.2. I think we can ditch anything pre 1.2 Eelco On 3/28/07, Gwyn Evans [EMAIL PROTECTED] wrote: Which repoints readers to

Re: [Wicket-user] Dynamically choosing images to show

2007-03-28 Thread Jason Roelofs
Wicket 1.3, pulled from the apache incubator. Jason On 3/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what wicket version are you using? -igor On 3/28/07, Jason Roelofs [EMAIL PROTECTED] wrote: Hmm, thanks, that does help, but the resulting output does not get processed by Wicket's

Re: [Wicket-user] Dynamically choosing images to show

2007-03-28 Thread Igor Vaynberg
wicket 1.3 uses relative urls. we are working on building context-path support for this right now. should be done sometime this week. then all you will have to do is add(new ContextImage(img, images/foo.gif)); and wicket will build the proper path from anywhere, even if the page is mounted.

Re: [Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Igor Vaynberg
there is also an example in wicket-examples -igor On 3/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Wow, that's even for version 1.0. :) I guess we should have just one page, explaining 1.3 and as a note mentioning the difference for 1.2. I think we can ditch anything pre 1.2 Eelco On

Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-28 Thread James McLaughlin
Are you using mvn to build? I changed the wicket dependency in the WICKET_1_2 branch from SNAPSHOT to 1.2.5, so maybe this will help you. Let me know if it doesn't. best, jim On 3/27/07, Andrew Berman [EMAIL PROTECTED] wrote: Can this only be built against version 1.3 of Wicket? I'm unable to

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread Sven Meier
CheckGroup selectedPensCheckGroup = new CheckGroup(selectedPens, selectedPensModel); add(selectedPensCheckGroup); ListView pensList = new ListView(pens, pensModel) { protected void populateItem(ListItem item) { item.add(new Check(check, item.getModel()));

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread GS-ikiini
thank you...I just figured it out..with help from the IRC -B svenmeier wrote: CheckGroup selectedPensCheckGroup = new CheckGroup(selectedPens, selectedPensModel); add(selectedPensCheckGroup); ListView pensList = new ListView(pens, pensModel) { protected void

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Chris Colman
there is a reason why some of the stuff is done where it is. now, I believe that with the minor change that I have made everything is still being done in the exact same order so there should be no consequences of this change. It's just that all the stuff done in commonInit is now being slightly

Re: [Wicket-user] Variable Interpolation within the HTML

2007-03-28 Thread Andrew Berman
Awesome, builds now. Thanks, Andrew On 3/28/07, James McLaughlin [EMAIL PROTECTED] wrote: Are you using mvn to build? I changed the wicket dependency in the WICKET_1_2 branch from SNAPSHOT to 1.2.5, so maybe this will help you. Let me know if it doesn't. best, jim On 3/27/07, Andrew Berman

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Igor Vaynberg
On 3/28/07, Chris Colman [EMAIL PROTECTED] wrote: there is a reason why some of the stuff is done where it is. now, I believe that with the minor change that I have made everything is still being done in the exact same order so there should be no consequences of this change. It's just that

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Igor Vaynberg
https://issues.apache.org/jira/browse/WICKET-432 -igor On 3/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 3/28/07, Chris Colman [EMAIL PROTECTED] wrote: there is a reason why some of the stuff is done where it is. now, I believe that with the minor change that I have made everything

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Jonathan Locke
i'm not sure what i think about this yet. can you show us the exact code modifications and use cases you have coded up? (boiled down to the important parts, if possible) also, it would be good if you could explain how this solves any problems other than getVariation(). Chris Colman wrote:

[Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Chris Colman
there is also an example in wicket-examples -igor On 3/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Wow, that's even for version 1.0. :) I guess we should have just one page, explaining 1.3 and as a note mentioning the difference for 1.2. I think we can ditch anything pre 1.2

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Chris Colman
i'm not sure what i think about this yet. can you show us the exact code modifications and use cases you have coded up? (boiled down to the important parts, if possible) Ok, here's the changed bits you requested. Only 3 Java classes need minor changes in the framework: [I added the deferred

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Igor Vaynberg
On 3/28/07, Chris Colman [EMAIL PROTECTED] wrote: i am against this because i do not think the value it brings is worth the complexity it adds. you can persuade me by coming up with examples that actually demonstrate the advantage. it is common practice in wicket to use imodel to deffer lookup

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Chris Colman
I believe that with the minor change that I have made everything is still being done in the exact same order so there should be no consequences of this change. It's just that all the stuff done in commonInit is now being slightly deferred so that it uses completely constructed objects

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Igor Vaynberg
the fact remains that getvariation() call from webpage constructor is a bug we need to fix. further we already have listener methods you can use - onattach and ondetach what you want can be just as easily accomplished on every component class mypage extends webpage { private boolean

Re: [Wicket-user] Storing markup in directory separarte from web app

2007-03-28 Thread Eelco Hillenius
Also take a look at wicket.examples.customresourceloading in wicket-examples. Maybe nothing you didn't know yet... but maybe :) Eelco On 3/28/07, Chris Colman [EMAIL PROTECTED] wrote: there is also an example in wicket-examples -igor On 3/28/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

[Wicket-user] Binding and validating domain objects

2007-03-28 Thread Carlos Pita
Hi all, I'm migrating a spring-mvc project to wicket. In this project domain objects are directly exposed to the ui (without DTOs in between). The objects are validated using the spring bean validation framework (part of springmodules). This module creates a unique Validator (a spring interface)

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Chris Colman
the fact remains that getvariation() call from webpage constructor is a bug we need to fix. Yeah, that's my numero uno motivation at this point also. further we already have listener methods you can use - onattach and ondetach what you want can be just as easily accomplished on every

Re: [Wicket-user] Lifecycle issue with getVariation

2007-03-28 Thread Igor Vaynberg
On 3/28/07, Chris Colman [EMAIL PROTECTED] wrote: Easy if you deal with the parameters in the constructor and deal with adding children, accessing markup etc., in the overridden init (or commonInit) method. In cases where people have a number of constructors they normally create their own

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Peter Thomas
Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated 2007-03-12 Let me know if you need any more details. On the Page in question I had tried setVersioned with both true and false, same result. Thanks, Peter. On 3/28/07, Matej Knopp [EMAIL PROTECTED] wrote: Peter, are you using 1.x?

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Igor Vaynberg
peter can you try updating to the lastest snapshot and trying again? -igor On 3/28/07, Peter Thomas [EMAIL PROTECTED] wrote: Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated 2007-03-12 Let me know if you need any more details. On the Page in question I had tried setVersioned

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Peter Thomas
Igor, I now see that there is a 1.3.0-incubating-SNAPSHOT (as opposed to 1.3-incubating-SNAPSHOT which I was using earlier). I assume this is the latest version and just switched. But Looks like wicket.markup.html.form.validation.AbstractValidator has disappeared. I don't see a mention of

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Igor Vaynberg
hmm, it is briefly mentioned under Validation Changesi dont remember if we still have abstract validator or not, see the source of other alidators and if they extend something. -igor On 3/28/07, Peter Thomas [EMAIL PROTECTED] wrote: Igor, I now see that there is a 1.3.0-incubating-SNAPSHOT

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Peter Thomas
Ok, my bad - the documentation does mention the package change to wicket.validation.validator.AbstractValidator But the API looks a lot different, can you quickly point me to the online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT - also if it is downloadable as a zip or something.

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Eelco Hillenius
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-incubating-SNAPSHOT/wicket-1.3.0-incubating-SNAPSHOT-javadoc.jar It would be good if someone could write a couple of scentences on how to migrate from the old to the new ones. It's not difficult, but indeed a bit different.

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Igor Vaynberg
we only have an unofficial release for it that is a zip. search the list for it, it is in martijn's dir somewhere. other then that all the jars/src/and javadocs are available from that wicketstuff.org maven repo. all the new classes in wicket.validator package have pretty good javadocs so that

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Peter Thomas
Thanks Eelco Igor I got the api and src and made the changes for AbstractValidator - will also try to add some stuff to the wiki page as soon as I finish refactoring. But I have a big problem with the usage of wicket:message attribute (tag works fine). This is the error:

Re: [Wicket-user] Ajax component replaceWith and browser back-button problems

2007-03-28 Thread Igor Vaynberg
auto is something from 2.0, are you sure you have the right jars? -igor On 3/28/07, Peter Thomas [EMAIL PROTECTED] wrote: Thanks Eelco Igor I got the api and src and made the changes for AbstractValidator - will also try to add some stuff to the wiki page as soon as I finish refactoring.