Question about wicket validation

2009-09-29 Thread Martin Makundi
Hi! If a form validator depends on a nested form's components, it will assume they are valid because the nested form's components are validated after the parent form? ** Martin - To unsubscribe, e-mail:

[offtopic[ how to attach sources to wicket jars when debugging

2009-09-29 Thread Vladimir Kovalyuk
I believe it must be something extremely simple. I set up a project in Eclipse Galileo using m2eclipse from Sonatype. I'm trying to debug the wicket class. I set breakpoints and the execution stops exactly at those points. The wicket sources are actually attached. I can see the source code. But

Re: [offtopic[ how to attach sources to wicket jars when debugging

2009-09-29 Thread Martin Grigorov
El mar, 29-09-2009 a las 11:47 +0400, Vladimir Kovalyuk escribió: I believe it must be something extremely simple. I set up a project in Eclipse Galileo using m2eclipse from Sonatype. I'm trying to debug the wicket class. I set breakpoints and the execution stops exactly at those points. The

Re: [WicketStuff] Iolite

2009-09-29 Thread richardwilko
Hi, We have been developing a few useful archetypes for our own client projects and courses. Amongst others, we have Wicket/Guice Wicket/Guice/Warp/Hibernate Wicket/Guice/Warp/JPA Wicket/Spring/JPA Spring/JPA/openJPA Spring/JPA/EclipseLink Spring/JDBC All include a running sample application

Re: [WicketStuff] Iolite

2009-09-29 Thread nino martinez wael
Great! So should these be merged into Iolite? Anyhow the nice thing would be to put it into wicketstuff.. regards Nino 2009/9/29 richardwilko richardjohnwilkin...@gmail.com Hi, We have been developing a few useful archetypes for our own client projects and courses. Amongst others, we have

Re: [offtopic[ how to attach sources to wicket jars when debugging

2009-09-29 Thread John Krasnay
I don't use m2eclipse, but I have this in my pom.xml... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration downloadSourcestrue/downloadSources downloadJavadocstrue/downloadJavadocs

Re: AttributeModifier relative path rendering in conflict

2009-09-29 Thread Pedro Santos
May help: http://javathoughts.capesugarbird.com/2007/08/branding-wicket-application-take-2.html On Tue, Sep 29, 2009 at 2:03 AM, pete swulius pswul...@gmail.com wrote: All, I am trying to use an AttributeModifier to change the stylesheet used on a Page of mine. WebComponent styleComponent

Re: Attempt to set model object on null model of component

2009-09-29 Thread Pedro Santos
You need to find if the component who throw the exception is the same agent constructed with lines you report and on what moment the component lost his model. On Mon, Sep 28, 2009 at 11:28 PM, Sam Barrow s...@sambarrow.com wrote: I'm getting this exception: java.lang.IllegalStateException:

Re: Get converted value?

2009-09-29 Thread Pedro Santos
So sometimes validators will process formcomponents whose input has not been converted?? Sometimes the form component validation method will test himself and children for validations errors reported, before and after the user input get converted. On Tue, Sep 29, 2009 at 2:04 AM, Martin Makundi

Re: Get converted value?

2009-09-29 Thread Martin Makundi
Ah yes, but it does not actually validate. Very funny results. Is this ok or am I doing something wrong? Principally what I have is: parent form nested form - one per row rowName parentForm.add(duplicateRowValidator); None of the rows is allowed to have duplicate names so what I

Re: Get converted value?

2009-09-29 Thread Pedro Santos
Hi Martin, Ah yes, but it does not actually validate. you refers to validate method from FormComponent right? The javadoc says: Performs full validation of the form component, which consists of calling validateRequired(), convertInput(), and validateValidators(). This method should only be used

better way to strip wicket markup / tags per page?

2009-09-29 Thread Antoine van Wel
Hi, on the wiki[1] it is described how to get rid of wicket markup such as wicket:id attributes on a page basis. The solution looks like a dirty hack to me which may go wrong when for instance exceptions occur. Does anybody know of a better way? For completeness sake, here is the code duplicated

Re: Get converted value?

2009-09-29 Thread Martin Makundi
BUT, is this necessary? Is there a framework method to do this for me? http://static.ddpoker.com/javadoc/wicket/1.4-rc2/org/apache/wicket/markup/html/form/FormComponent.html#getConvertedInput%28%29 That is not the same. This is convertedINPUT. It will not give anything if input has not been

Re: better way to strip wicket markup / tags per page?

2009-09-29 Thread Marat Radchenko
In some situations during development... With that in mind, this solution is absolutely ok. 2009/9/29 Antoine van Wel antoine.van@gmail.com Hi, on the wiki[1] it is described how to get rid of wicket markup such as wicket:id attributes on a page basis. The solution looks like a dirty

wicket 1.4.2

2009-09-29 Thread Tomek Sniadach
Hi, I found on https://issues.apache.org/jira/browse/WICKET a release 1.4.2 of wicket, but it's not on the official page, nor on the mirror sites. Is it a public release or are the sites just not updated yet? regards Tomek

Re: wicket 1.4.2

2009-09-29 Thread Ernesto Reinaldo Barreiro
Maybe this thread will explain why http://www.nabble.com/-vote--release-1.4.2-td25636013.html http://www.nabble.com/-vote--release-1.4.2-td25636013.html Best, Ernesto On Tue, Sep 29, 2009 at 2:38 PM, Tomek Sniadach tomek.sniad...@googlemail.com wrote: Hi, I found on

Re: wicket 1.4.2

2009-09-29 Thread Martijn Dashorst
A release is not done until officially announced at annou...@wicket.apache.org Martijn On Tue, Sep 29, 2009 at 2:38 PM, Tomek Sniadach tomek.sniad...@googlemail.com wrote: Hi, I found on https://issues.apache.org/jira/browse/WICKET a release 1.4.2 of wicket, but it's not on the official page,

Re: better way to strip wicket markup / tags per page?

2009-09-29 Thread Antoine van Wel
Thanks for the lightning fast reply. Yes it works fine under development. Still I don't like it - after all these statements are also executed during production mode, and even though they can't do any harm there, I'd rather not see them there at all. More a matter of personal taste I guess.

Re: wicket 1.4.2

2009-09-29 Thread Tomek Sniadach
Thanks Ernesto. :-) 2009/9/29 Ernesto Reinaldo Barreiro reier...@gmail.com Maybe this thread will explain why http://www.nabble.com/-vote--release-1.4.2-td25636013.html http://www.nabble.com/-vote--release-1.4.2-td25636013.html Best, Ernesto On Tue, Sep 29, 2009 at 2:38 PM, Tomek

RE: better way to strip wicket markup / tags per page?

2009-09-29 Thread Craig McIlwee
I don't see how this can work reliably when there is more than 1 user, AFAIK wicket has no synchronization in place that prevents 2 pages from going through the render phase at the same time. So if one page finishes rendering and changes the setting to false while another page has just started

Re: better way to strip wicket markup / tags per page?

2009-09-29 Thread Pedro Santos
on the wiki[1] it is described how to get rid of wicket markup such as wicket:id attributes on a page basis page basis is an specific page on your project, or you want to strip wicket tags to all pages? you can override application init method and put your configuration lines:

AutoComplete textfield ignores visible property within hierarchy.

2009-09-29 Thread Ann Baert
When writing an autocomplete textfield on a form that is first visible, and after an ajax call rendered invisible, the autocomplete textfields on this form get rendered anyway in the ajax response. The method renderAutocompleteHead in AbstractAutocompleteBehavior gets executed, even if the

Re: Wicket in Italy

2009-09-29 Thread Emanuele Gesuato
Padova :) Paolo Di Tommaso wrote: Roma (~) On Thu, Sep 24, 2009 at 8:46 AM, francesco dicarlo evilsephir...@gmail.comwrote: Hi, i've just worked on a project with wicket for a software house in Bari. But now i'm in Rome. Hope to see you in an event XD 2009/9/24 Luca Provenzani

Re: AutoComplete textfield ignores visible property within hierarchy.

2009-09-29 Thread Igor Vaynberg
please open a jira issue. -igor On Tue, Sep 29, 2009 at 7:59 AM, Ann Baert ann.ba...@tvh.be wrote: When writing an autocomplete textfield on a form that is first visible, and after an ajax call rendered invisible, the autocomplete textfields on this form get rendered anyway in the ajax

Re: AttributeModifier relative path rendering in conflict

2009-09-29 Thread pete swulius
Ah, thank you. I will look into using HeaderContributor instead. I have a good feeling that will take care of my problem. I will post back my findings this afternoon. --pete

Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Carlo Camerino
Hi everyone, We have this requirement in which we cannot allow the customer to copy paste the url that's appearing in the address bar into the same browser. For example in a different tab or in a new window. This can easily be done in Wicket Framework since the url has a corresponding page

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Pedro Santos
We have this requirement in which we cannot allow the customer to copy paste the url that's appearing in the address bar into the same browser. Crazy thing. How about to include an request counter to your url encode/decode strategy? On Tue, Sep 29, 2009 at 1:41 PM, Carlo Camerino

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Matej Knopp
On Tue, Sep 29, 2009 at 6:48 PM, Pedro Santos pedros...@gmail.com wrote: We have this requirement in which we cannot allow the customer to copy paste the url that's appearing in the address bar into the same browser. Crazy thing. How about to include an request counter to your url

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread nino martinez wael
could'nt he just have a page map with a size of 0? Of course reloads would'nt work and probably a bunch of other stuff too.. Seems like at strange thing to limit on though. 2009/9/29 Matej Knopp matej.kn...@gmail.com On Tue, Sep 29, 2009 at 6:48 PM, Pedro Santos pedros...@gmail.com wrote: We

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Carlo Camerino
ya it's sort of our requirement i don't think i would set my pagemap to 0. i'm thinking of a control i could use in order to determine that this page is accessed. i'm thinking of the best way to do it though. i could maybe include a hidden field in each of my form that i have to check each

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Clint Checketts
I'm guessing they are trying to limit users from taking a test in one window and seeing the previous answers in another. -Clint On Tue, Sep 29, 2009 at 12:29 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: could'nt he just have a page map with a size of 0? Of course reloads

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread nino martinez wael
Ahh good example for usage :) 2009/9/29 Clint Checketts checke...@gmail.com I'm guessing they are trying to limit users from taking a test in one window and seeing the previous answers in another. -Clint On Tue, Sep 29, 2009 at 12:29 PM, nino martinez wael nino.martinez.w...@gmail.com

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread nino martinez wael
Okay in that case you should be able to use some of the stuff that are used in apps that are supposed be *cross*-*site* request *forgery proof*, search the list for that. 2009/9/29 Carlo Camerino carlo.camer...@gmail.com ya it's sort of our requirement i don't think i would set my pagemap

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Matej Knopp
Your options here are rather limited. Wicket or not, it is still a web application. HTTP is a stateless protocol. There are ways/hacks to detect opening page in new window/tab but they require javascript and are not 100% bullet proof. If you need real solution for this forget about web

Re: Question about wicket validation

2009-09-29 Thread Jonathan Locke
protected final void validate() { if (isEnabledInHierarchy() isVisibleInHierarchy()) { // since this method can be called directly by users, this additional check is needed validateComponents();

Re: Selectively ignoring required fields

2009-09-29 Thread Phil Housley
I'm bringing up my old thread here, as I found something that works well enough, and it might help someone to have it in the list archive.) 2009/9/15 Pedro Santos pedros...@gmail.com: On the other hand, maybe that whole criteria panel is deselected, in which case I want to be able to stop the

Re: AjaxPagingNavigation

2009-09-29 Thread Pedro Santos
I'm using the AjaxPagingNavigation component and it works well, but when I click on one of the links, my url is replaced with /?wicket:interface=:3:4::: You refers to html A tag generated by navigations links. What you got on onclick tag attribute on your rendered page? On Mon, Sep 28, 2009 at

Re: AjaxPagingNavigation

2009-09-29 Thread Douglas Ferguson
Is anybody successfully using this and witnessing ajax calls? I can't figure out why it isn't using Ajax as the name implies. I tried overriding the onAjaxEvent method, but it is never called. Douglas On Sep 28, 2009, at 7:57 PM, Douglas Ferguson wrote: I'm using the AjaxPagingNavigation

Complicated workflows

2009-09-29 Thread Phil Housley
Hello list, I'm currently working on some ideas for building apps with fairly complex workflows. My aim is to find a nice pattern/framework for building apps where each unit of work involves many panels, several forms, lots of decisions and so on. In particular I'm aiming at apps where you need

Re: Complicated workflows

2009-09-29 Thread Dane Laverty
If you're using Spring, the dependency injection issue for non-component items can be solved by adding the following line to the object's constructor: InjectorHolder.getInjector().inject(this); where InjectorHolder is org.apache.wicket.injection.web.InjectorHolder . I'm afraid I don't have any

Re: AttributeModifier relative path rendering in conflict

2009-09-29 Thread pete swulius
HeaderContributor is the answer. add( CSSPackageResource.getHeaderContribution( css/ + style.getName() + /promo.css ) ); The javadocs explicitly state that a css location that does not begin will a leading / (slash) will be have it's relative path prepended to it.

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Andreas Petersson
I am not aware that Wicket has direct support for this kind of (mis-)behavior. You can, however employ some kind of cheating here. if you set the http headers to no-cache with the help of a servlet filter, the browser will not allow the page to be copy-pasted from local cache, and will

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Matej Knopp
What happens if the user (perhaps accidentally) refreshes page? -Matej On Tue, Sep 29, 2009 at 11:43 PM, Andreas Petersson andr...@petersson.at wrote: I am not aware that Wicket has direct support for this kind of (mis-)behavior. You can, however employ some kind of cheating here. if you set

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Andreas Petersson
Matej Knopp schrieb: What happens if the user (perhaps accidentally) refreshes page? -Matej he would get an error page using the described approach. clearly not what you would want in a general-purpose web app. BR Andreas -

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-29 Thread Phil Housley
2009/9/29 Carlo Camerino carlo.camer...@gmail.com: Hi everyone, We have this requirement in which we cannot allow the customer to copy paste the url that's appearing in the address bar into the same browser. For example in a different tab or in a new window. This can easily be done in Wicket

Re: Complicated workflows

2009-09-29 Thread Scott Swank
Phil, Would an event-centric approach simplify things? I'm thinking that you could then have multiple listeners for a given event and the various listeners would not have to be aware of one another. This might reduce the task/sub-task interactions. Adding errors, or refreshing components could

RadioChoice and Ajax to display a panel of dropdowns

2009-09-29 Thread Jeffrey Schneller
I want to create a list of radio buttons [I have that working] and an ajax event to fire whenever a radio button is clicked [I have this working]. If the radio button matches the one I am interested in then I want to display additional information that must be filled in. A radio button selection

Re: Complicated workflows

2009-09-29 Thread Phil Housley
2009/9/29 Scott Swank scott.sw...@gmail.com: Phil, Would an event-centric approach simplify things?  I'm thinking that you could then have multiple listeners for a given event and the various listeners would not have to be aware of one another.  This might reduce the task/sub-task

Re: Complicated workflows

2009-09-29 Thread Igor Vaynberg
there is really no point in having your tasks be components. why not simply repeatingview rv=.. for (task t:tasks) { if (t.hasUIComponent()) { rv.add(t.getUIComponent()); } } -igor On Tue, Sep 29, 2009 at 2:11 PM, Phil Housley undeconstruc...@gmail.com wrote: Hello list, I'm

Re: Complicated workflows

2009-09-29 Thread Randy S.
Have you thought about using Spring Web Flow for this? I'm not a SWF expert, but it sounds like something well-tailored to your needs. For example, a flow can have steps that don't have UIs. Our group at work is looking into Wicket SWF integration. I have a seen a few comments on the web from

Re: Question about wicket validation

2009-09-29 Thread Martin Makundi
So validateComponents() validates also nested components if current form depends on them? ** Martin 2009/9/29 Jonathan Locke jonathan.lo...@gmail.com:        protected final void validate()        {                if (isEnabledInHierarchy() isVisibleInHierarchy())                {