Re: Mapper based on user-defined URLs

2011-08-12 Thread Igor Vaynberg
only if it will replace the one that is there now. there is no point to have two package mappers -igor On Fri, Aug 12, 2011 at 5:40 PM, Bruno Borges wrote: > Indeed :) > > Do you think its possible to add that to core? >  On Aug 12, 2011 12:42 PM, "Igor Vaynberg" wrote: >> amazing how quickly y

Re: Mapper based on user-defined URLs

2011-08-12 Thread Bruno Borges
Indeed :) Do you think its possible to add that to core? On Aug 12, 2011 12:42 PM, "Igor Vaynberg" wrote: > amazing how quickly you can help yourself once you have something to > play with :) > > -igor > > On Fri, Aug 12, 2011 at 2:23 AM, Bruno Borges wrote: >> Finished... But still, some optim

Re: Auto Complate Text Field Character Problem

2011-08-12 Thread Sven Meier
Is your application running on Tomcat? Check: https://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html Sven On 08/12/2011 01:30 PM, bilgisever wrote: I had tired to about wicket AutoCompleteTextField. I develop a web page in turkish. AutoCompleteTextField has some pr

Re: Label tag wicket:for question

2011-08-12 Thread Jered Myers
Thanks that worked perfectly! On 08/12/2011 01:28 PM, Igor Vaynberg wrote: this has been changed in later commits, use Name instead of -igor On Fri, Aug 12, 2011 at 1:05 PM, Jered Myers wrote: I am using a label tag with wicket:for (Wicket 1.4.18) and the text of the label is not replacin

Re: Label tag wicket:for question

2011-08-12 Thread Igor Vaynberg
this has been changed in later commits, use Name instead of -igor On Fri, Aug 12, 2011 at 1:05 PM, Jered Myers wrote: > I am using a label tag with wicket:for (Wicket 1.4.18) and the text of the > label is not replacing as I expect. > > I am using a label tag in my HTML like so: > > > Name >

Label tag wicket:for question

2011-08-12 Thread Jered Myers
I am using a label tag with wicket:for (Wicket 1.4.18) and the text of the label is not replacing as I expect. I am using a label tag in my HTML like so: Name In my Java code: RequiredTextField firstName = new RequiredTextField("firstName") firstName.setOutputMarkupId(true)); firstName.se

Re: Auto Complate Text Field Character Problem

2011-08-12 Thread Martin Grigorov
org.apache.wicket.settings.IMarkupSettings.setDefaultMarkupEncoding(String) use either UTF-8 or one that supports turkish characters On Fri, Aug 12, 2011 at 2:30 PM, bilgisever wrote: >   I had tired to about wicket AutoCompleteTextField. I develop a web page in > turkish. > AutoCompleteTextFiel

Re: Ajax Response xml showing in browser

2011-08-12 Thread Jeremy Thomerson
Sorry, but I wasn't looking for a solution. I have no way to reproduce the issue. It seemed like you were making good progress in your other thread. However, if you're able to create a quickstart that can reliably reproduce the issue, the core devs will certainly be interested in taking a look a

Re: Form looses data

2011-08-12 Thread Mike Mander
That's right. But the only consequence here is that he has to fill out this (formerly invalid) field again. I know that this is not the default intention of form behavior. But the opposite of loosing all data is much more expensive because 10% (maybe more) of willing customers buy elsewhere then

Re: Form looses data

2011-08-12 Thread Igor Vaynberg
heh, this is a reallly bad idea. suppose you have textfield and the user enters "a". that would result in a conversion exception represented by the feedback message - which you cleared. so when you call updatemodels() you will get null set on the model... -igor On Fri, Aug 12, 2011 at 7:28 AM, M

Re: Mapper based on user-defined URLs

2011-08-12 Thread Igor Vaynberg
amazing how quickly you can help yourself once you have something to play with :) -igor On Fri, Aug 12, 2011 at 2:23 AM, Bruno Borges wrote: > Finished... But still, some optimization can be done. > > https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2e > >

Re: Form looses data

2011-08-12 Thread Mike Mander
With an annotation on my button i can go over the name cluttering issue import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.anno

Re: Form looses data

2011-08-12 Thread Mike Mander
onValidate seems a way to go. It leads to a not soo reusable solution like your ReuseManager but it works. I simply override onConfigure in Form and did that @Override protected void onValidate() { super.onValidate(); if (findSubmittingBut

Re: Form looses data

2011-08-12 Thread Martin Makundi
It must be manhandled. I am not sure though, if it can be automated. A wizard is almost like that, but again, you canot assume all user interactions to be same. However, it would be nice to maybe register components to a conversation-scoped reuseManager instead of handling all that on a case-by-cas

Re: Form looses data

2011-08-12 Thread Bruno Borges
I don't think so. Its nature already provides that. Just keep an object instantiated somewhere. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Fri, Aug 12, 2011 at 10:21 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > I think wicket needs some sort of "conversatio

Re: Form looses data

2011-08-12 Thread Martin Makundi
I think wicket needs some sort of "conversation" scope like Seam does... that should cover it. ** Martin 2011/8/12 Mike Mander : > But if wicket should support it out of the box there is maybe another way. > If we could get a method onBeforeFormSubmit() in form there would be > an access point to

Re: Form looses data

2011-08-12 Thread Mike Mander
I checked Form. There is an onValidate. Maybe i can clear the feedback messages there. Will try it. But if wicket should support it out of the box there is maybe another way. If we could get a method onBeforeFormSubmit() in form there would be an access point to configure validators in all chil

Re: Form looses data

2011-08-12 Thread Mike Mander
But if wicket should support it out of the box there is maybe another way. If we could get a method onBeforeFormSubmit() in form there would be an access point to configure validators in all childs. In default nothing is to do - means leave form as configured at creation time. If it's nessecary i

Re: How to use the LoadableDetachableModel in a Wicket, Spring, Hibernate based web application correctly?

2011-08-12 Thread jcgarciam
To avoid having detached objects in your web layer, try wrapping wicket filter with the Spring OpenSessionInView filter, in that way transaction will be bound to the -> Http

Re: Form looses data

2011-08-12 Thread Martin Makundi
AH not to say that I would mind if wicket would handle reusemanager itself.. I wonder if it is there in 1.5? Hmm.. I think a proposal should be added to the whishlist. ** Martin 2011/8/12 Martin Makundi : > The Form way is a quirk way to do it in the first place. You are not > supposed to upd

Re: Form looses data

2011-08-12 Thread Martin Makundi
The Form way is a quirk way to do it in the first place. You are not supposed to update model before validation etc. so you will run into lots of troubles that way. Reusemanager simply works like wicket normally works when you validate and repaint the screen with rawInput values. It just keeps tho

Re: Form looses data

2011-08-12 Thread Mike Mander
Thanks Martin, now it works as expected. I don't have a clue how but it is. I really would be interested in knowing why the reusemanager gets the data and the form not. I think i will start a debugging session at weekend :-) Maybe we should use this scenario and put it in the wiki? Especially

Re: Form looses data

2011-08-12 Thread Martin Makundi
This is how you can do it with reusemanager: HomePage: public class HomePage extends WebPage { public HomePage(final PageParameters parameters) { Form form; add(form = new Form("form")); form.add(WicketSession.get().getReuseManager().rememberOrReuseA

Re: Form looses data

2011-08-12 Thread Mike Mander
That is not working to. I've created a quickstart for this. Scenario is simplified. HomePage gets the data and has two submit buttons. Do i press the "submit" and click back on other page data are present (submitted). Do i press the "invalid submit" and click back on other page data are lost. H

Re: Form looses data

2011-08-12 Thread Martin Makundi
Actually notesField = localNotesfield = TextArea(...) ** Martin 2011/8/12 Martin Makundi : > Hi! > >> i have some questions for usage of this. >> 1. Where do i have to put my instance of reusemanager? > > Where you want to keep the values? What is your "common denominator". > It can be a page or

Re: Form looses data

2011-08-12 Thread Martin Makundi
Hi! > i have some questions for usage of this. > 1. Where do i have to put my instance of reusemanager? Where you want to keep the values? What is your "common denominator". It can be a page or it can be in session... I normally use a Panel and it keeps values of listview items' formcomponents du

Re: Mapper based on user-defined URLs

2011-08-12 Thread Bruno Borges
Finished... But still, some optimization can be done. https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2e Any help is welcome. *Bruno Borges* www.brunoborges.com.br +55 21 7672709

Re: Form looses data

2011-08-12 Thread Mike Mander
Hello Martin Makundi, i have some questions for usage of this. 1. Where do i have to put my instance of reusemanager? 2. What is MarkupUtils.fakeRawInput and MarkupUtils.replaceReporter doing? 3. I don't have any persistent id (rowid) for usage. 4. Do you have a working example for me? Thanks Mi

Re: Mapper based on user-defined URLs

2011-08-12 Thread Bruno Borges
Finalizing the ExtendedPackageMapper. Usage is as follows: mount(new ExtendedPackageMapper("${username}/${group}", Info.class) { List VALID_USERS = Arrays.asList(new String[] { "foo", "bar", "fizz", "buzz" }); @Override protected boolean validateParameters(PageParameters parameters) { String user