Re: Like to override normal page mapping but setResponsePage(...) is final

2009-05-06 Thread Steve Flasby
Hi Igor, thanks. Yeah, there is no other choice given the final methods. A bit of a shame really, as having this work uniformly will depend on us all remembering to do this instead of simply calling setResponse() directly. Just out of interest, does anyone know why this method is final? Cheers

Re: Like to override normal page mapping but setResponsePage(...) is final

2009-05-06 Thread Igor Vaynberg
it is final because we like to keep internals locked up so we can easily change them even during minor version upgrades. if we make the method overridable we are defining a certain contract which we do not want to support. to you it may seem like a shame, but people who read your code will

Re: best way to add tooltips in wicket

2009-05-06 Thread RoyBatty
Hi Nino, regarding Mootip, to sum up what i've noted: 1. while i think Mootip looks better than prototip, i felt that it seemed, well, slower. Basically, when you move the mouse around mootip updates less frequently and thus appears glitchier than prototip. 2. Another thing was that i

Re: Like to override normal page mapping but setResponsePage(...) is final

2009-05-06 Thread Steve Flasby
Mmm, you are right. One of my complaints about gadgets like Spring is that it does things by magic configured somewhere in an XML wonderland. It's better to keep it explicit. I will shut up now. Thanks, Igor. Cheers - Steve Igor Vaynberg wrote: it is final because we like to keep internals

How to manipulate values in a data table?

2009-05-06 Thread HHB
Hey, I have a message class that has a status (which it is an integer) to indicate whether the message has been sent successfully. Inside a data table, how to handle this integer values so instead of displaying 0 or 1, it displays Sent or Not Sent? Thanks.

Re: How to manipulate values in a data table?

2009-05-06 Thread Linda van der Pal
Turn it into an object with that status as an integer and a name as String? Then the toString should return the name. You could possibly even use an enum. Linda HHB wrote: Hey, I have a message class that has a status (which it is an integer) to indicate whether the message has been sent

Re: DropDownChoice with ChoiceRender problem

2009-05-06 Thread jensiator
But still. In this case the map is constant. What when the values is fetched from db. Are you going to call tha db every time you want to get the displayname? Jens -- View this message in context: http://www.nabble.com/DropDownChoice-with-ChoiceRender-problem-tp23374394p23401547.html Sent from

Re: How to manipulate values in a data table?

2009-05-06 Thread Steve Flasby
Use a class to represent this and then add a customized ConverterLocator to your Application. I find the ConverterLocator very powerful, you get consistent rendering across the entire application without having to do anything special. Hope this helps. Cheers - Steve HHB wrote: Hey, I

FW: need help urgent......Change label dynamicly

2009-05-06 Thread Praveen Kumar A.
Hello, I want to change the Label for the AjaxButton, when it is clicked. Iam not able to work out this. new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ // need to get the label name here...how to get the label name?

Re: unsubcribe

2009-05-06 Thread Martijn Dashorst
No worries... get well soon and then unsubscribe properly :) Martijn On Tue, May 5, 2009 at 11:14 PM, Clint Popetz cl...@42lines.net wrote: Oh, the shame.  My only excuse is that the drugs for a sickness were stronger than expected, and I shouldn't have been typing then (or now, likely.)   My

Re: remember me at login page feature

2009-05-06 Thread Khlystov Alexandr
this is the problem descirbed in first letter: I can't change this behavior, because this check: ... if (!AuthenticatedWebSession.get().isSignedIn() ... Is place in final method of AuthenticatedWebSession. :) Well.. darn ... then do not call and check the cookie :) if

Re: remember me at login page feature

2009-05-06 Thread Martin Makundi
Did you try putting a breakpoint and finding a suitable place from the call-stack? ** Martin 2009/5/6 Khlystov Alexandr a...@ovservice.org: this is the problem descirbed in first letter: I can't change this behavior, because this check: ... if

Re: remember me at login page feature

2009-05-06 Thread Khlystov Alexandr
No :), it is to complex. What I do better is than hack the LoginPage and do there cookie check, and redirecting to requested Page ;). Did you try putting a breakpoint and finding a suitable place from the call-stack? ** Martin 2009/5/6 Khlystov Alexandr a...@ovservice.org: this is

Re: FW: need help urgent......Change label dynamicly

2009-05-06 Thread Per Newgro
Maybe you could add two buttons and set the other visible? Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Encoding problems in forms

2009-05-06 Thread avia listing
Hi, I'm using the wicket distribution for java 1.4 on a OC4J 10.1.3.3, When using a form, I'm having some encoding problems similar to the ones in the link below http://markmail.org/search/?q=wicket+encoding#query:wicket%20encoding+page:1+mid:ebuxlgb2vvu7x6oo+state:results Problem is, that

Re: FW: need help urgent......Change label dynamicly

2009-05-06 Thread nino martinez wael
Maybe to it with an attribute modifier.. I cant remember ajaxbutton.. 2009/5/6 Per Newgro per.new...@gmx.ch: Maybe you could add two buttons and set the other visible? Cheers Per - To unsubscribe, e-mail:

Re: FW: need help urgent......Change label dynamicly

2009-05-06 Thread Janos Cserep
AFAIR a button's label comes from it's Model. So you should do: new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ String label = getModelObject(); // or getDefaultModelObject(); if 1.4 if (click.equals(label) {

Re: FW: need help urgent......Change label dynamicly

2009-05-06 Thread Janos Cserep
And of course don't forget to add the button or a parent component to the ajaxrequesttarget as well. On Wed, May 6, 2009 at 11:58 AM, Janos Cserep cser...@metaprime.hu wrote: AFAIR a button's label comes from it's Model. So you should do: new AjaxButton(preview){       public void

Re: DateTextField design issue

2009-05-06 Thread Eyal Golan
More on that, we used the newConverterLocator() in out application exactly as it is suggested in WIA, page 297. However, because the DateTextField has its own converter, we even don't get to our customized converter. Is it a bug? Please advise. Eyal Golan egola...@gmail.com Visit:

ListMultipleChoice AbstactChoice methodclass access too strict?

2009-05-06 Thread Mikko Pukki
Hi, I have a case where ListMultipleChoice is on a page and model of choices can change. To be more spesific, selected values can be moved up and down on a list. When ListMultipleChoice is updated via Ajax, selected items do not stay selected. I thought that overriding isSelected on a

Maven setup

2009-05-06 Thread Frank Tegtmeyer
Hi, does anybody have a Wicket quickstart project updated to the latest versions? I am new to Java, to Maven and to Wicket of course too. I have a background in web developing with Zope and Django (all implemented in Python) but am forced to use Java now. I know that the learning curve will be

Re: Maven setup

2009-05-06 Thread Eyal Golan
Have you checked http://wicket.apache.org/quickstart.html ? You can copy the archtype command. paste in your command prompt and the run it. after that, run mvn eclipse:eclipse and you'll have everything you need. Also the Jetty embedded plugin. Eyal Golan egola...@gmail.com Visit:

Re: DropDownChoice with ChoiceRender problem

2009-05-06 Thread James Carman
On Wed, May 6, 2009 at 3:39 AM, jensiator jens.alen...@megasol.se wrote: But still. In this case the map is constant. What when the values is fetched from db. Are you going to call tha db every time you want to get the displayname? I wouldn't suggest this solution in that case. This was an

Re: Maven setup

2009-05-06 Thread Linda van der Pal
For more information about Maven, check out this online book: http://www.sonatype.com/books/maven-book/pdf/maven-definitive-guide.pdf Regards, Linda Frank Tegtmeyer wrote: Hi, does anybody have a Wicket quickstart project updated to the latest versions? I am new to Java, to Maven and to

Re: Maven setup

2009-05-06 Thread Steve Swinsburg
Hi, The dependency is wrong. It should be: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.3.5/version /dependency cheers, Steve On 6 May 2009, at 11:47, Frank Tegtmeyer wrote: Hi, does anybody have a Wicket quickstart

Re: best way to add tooltips in wicket

2009-05-06 Thread James Carman
Have you tried using overLIB? I've got some code if you're interested. On Wed, May 6, 2009 at 2:59 AM, RoyBatty math...@afjochnick.net wrote: Hi Nino, regarding Mootip, to sum up what i've noted: 1. while i think Mootip looks better than prototip, i felt that it seemed, well, slower.

Re: Maven setup

2009-05-06 Thread Frank Tegtmeyer
Eyal Golan egola...@gmail.com wrote: Have you checked http://wicket.apache.org/quickstart.html ? Yes I saw it some day but forgot about it. Thanks for pointing there. Thanks also to Linda and Steve. All this was very helpful. Regards, Frank

Re: best way to add tooltips in wicket

2009-05-06 Thread nino martinez wael
Hi Roy Regarding 1. You should be able to tweak settings as you want theres a showdelay setting you can setup. And a lot more settings regarding timeout etc if wanted.. Regarding 2: No it seems it has to have a title at least my wrappers, you could try to set maxTitleChars to 0, int the mootip

Re: Maven setup

2009-05-06 Thread Null kühl
Hi, Kindly have a look on this webpage, www.ilearnzone.com/wicket.html It's a video tutorial that explains kicking off with wicket along with maven + tomcat/jetty :) it also explains kicking off without maven. Regards, Ahmed M. On Wed, May 6, 2009 at 4:11 PM, Frank Tegtmeyer

Add a ui lock page over the page while waiting for response

2009-05-06 Thread Matthias Keller
Hi We have a web form which does some very extensive backend communication requiring a lot of time. So usually after pressing 'submit', the UI is locked for 10-30 seconds. To avoid re-submission, we'd like to put some kind of ui-lock-page over the current page, stating 'Please wait' or

Re: remember me at login page feature

2009-05-06 Thread Khlystov Alexandr
Guys? if really nobody has implemented the auto-login via cookie, basing on AuthenticatedWebApplication ??? Khlystov Alexandr пишет: Hello all. Previous answers did not helped me much. Though thanks authors for their replies. I am going to provide more detailed question: My App extends

Re: remember me at login page feature

2009-05-06 Thread James Carman
Are you using acegi/spring-security? If so, have you looked into using their remember me filter: http://static.springframework.org/spring-security/site/reference/html/remember-me.html On Wed, May 6, 2009 at 10:02 AM, Khlystov Alexandr a...@ovservice.org wrote: Guys? if really nobody has

Re: Maven setup

2009-05-06 Thread Roman Zechner
hi, also check `mvn deploy` - you can use that to export your war with scp://, for maven eclipse integration check m2eclipse. as for lighttpd, i don't know, but i remember there was no ajp connector available last time i was searching, let us know if you have some experience on that! oh, and

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread Linda van der Pal
Back when I was programming in jsp I solved this by disabling the button after clicking it (because it would redirect after processing the data). Not sure how I'd do such a thing with Wicket. Linda. Matthias Keller wrote: Hi We have a web form which does some very extensive backend

Forcing model update?

2009-05-06 Thread Thierry Leveque
Hi Is there a way to force the model to update even if the field value is not change? Why would I want to do that? Because I am using Castor (xml) object. And for element of type Int, the Castor objects have a boolean method like HasElementName. It is set to false until the value of the element

Re: Forcing model update?

2009-05-06 Thread James Carman
Call Component.modelChanged()? On Wed, May 6, 2009 at 10:40 AM, Thierry Leveque tleve...@gmail.com wrote: Hi Is there a way to force the model to update even if the field value is not change? Why would I want to do that? Because I am using Castor (xml) object. And for element of type Int,

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread James Carman
There is a veil component in wicketstuff-minis, I believe. That might help. On Wed, May 6, 2009 at 10:30 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Back when I was programming in jsp I solved this by disabling the button after clicking it (because it would redirect after

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread Serkan Camurcuoglu
you could use the jquery blockui plugin.. http://malsup.com/jquery/block/#demos James Carman wrote: There is a veil component in wicketstuff-minis, I believe. That might help. On Wed, May 6, 2009 at 10:30 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: Back when I was

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread nino martinez wael
I think the veil are just over a certain component, like only the button.. I think he are looking for a Either Modal or something more than Veil, there was an article somewhere about it.. 2009/5/6 James Carman jcar...@carmanconsulting.com: There is a veil component in wicketstuff-minis, I

Avoiding 'WicketMessage: Unable to find component with id' error

2009-05-06 Thread Vasu Srinivasan
Im a wicket newbie .. I have a Search Page with some search criteria inputs and below it, the list of data based on search. The first time the page is hit, the listView component is not still present, because Im adding that only onSubmit() -- like this: class XPage extends WebPage {

Re: Avoiding 'WicketMessage: Unable to find component with id' error

2009-05-06 Thread Sven Meier
You should add the listView right away and keep it invisible until a search result is available. Sven On Mi, 2009-05-06 at 10:07 -0500, Vasu Srinivasan wrote: Im a wicket newbie .. I have a Search Page with some search criteria inputs and below it, the list of data based on search. The

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread James Carman
I thought the veil covered the whole screen. If it's not, you could easily do that by adding a div with a WebMarkupContainer that covers all the content of your page. On Wed, May 6, 2009 at 11:04 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I think the veil are just over a certain

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread nino martinez wael
Not as I remember, veil just makes it impossible to interact with a component.. Cant remember more.. I last time I ended up doing a simple component that blocks the entire screen... 2009/5/6 James Carman jcar...@carmanconsulting.com: I thought the veil covered the whole screen.  If it's not,

Re: DateTextField design issue

2009-05-06 Thread Igor Vaynberg
what is the full name of this class? there are two DateTextField classes in wicket codebase. -igor On Tue, May 5, 2009 at 9:51 AM, Eyal Golan egola...@gmail.com wrote: Hello, We use Wicket 1.3.5 and I found something annoying with the DateTextField. In the constructor of that class, the

Re: remember me at login page feature

2009-05-06 Thread Igor Vaynberg
if you search this list for wicket-auth-roles you will see that the project is meant as an example, not as something for you to base your project on. if some piece doesnt do what you want then roll your own piece. the codebase is kept simple on purpose - it has to be easy to read - because it is

Re: wicketstuff-core:jquery accordion broken?

2009-05-06 Thread Marc Nuri San Félix
Hi. Had same problem but found something at google: http://www.nabble.com/select-next-n-%22somethings%22-td21550403s27240.html Simply remove the '.r' from the expression and it will work. Best regards -- Marc Nuri hi currently the accordion in jquery-examples does not work in FF nor IE.

Re: ListMultipleChoice AbstactChoice methodclass access too strict?

2009-05-06 Thread Igor Vaynberg
i think a better solution would be to use ajaxsubmitbutton with defaultformprocessing=false, that way the LMC will keep the selection and its The Right Way to do it. -igor On Wed, May 6, 2009 at 3:21 AM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi, I have a case where ListMultipleChoice

Re: remember me at login page feature

2009-05-06 Thread James Carman
With that being said, it has worked quite well for us using Spring Security along with wicket-auth-roles. There really should be a supported way to do authentication/authorization in Wicket, though. Whenever folks ask the question about it, the canned response is it's just an example; if you

Spring Security's method security and Wicket

2009-05-06 Thread Kent Larsson
Hi, I'm having some trouble getting method security to work as expected using Spring Security together with Wicket, I have a thread about it over at the SpringSource forum: http://forum.springsource.org/showthread.php?t=71397 . Basically I have this situation: 1. Unauthenticated user submits a

Re: remember me at login page feature

2009-05-06 Thread Igor Vaynberg
we do have a supported way, its called IAuthorizationStrategy. there are too many variations of what users need out there for us to implement something useful because every one will try to bend it to what they want and most likely fail and bitch about it. case and point. -igor 2009/5/6 James

Re: Spring Security's method security and Wicket

2009-05-06 Thread Igor Vaynberg
On Wed, May 6, 2009 at 10:25 AM, Kent Larsson kent.lars...@gmail.com wrote: 2. At this point, the method call is intercepted by Spring and I _think_ I should get the option to log in here. However I do not get this option, instead I'm shown a stack trace. how is (2) accomplished? -igor

Re: DateTextField design issue

2009-05-06 Thread Eyal Golan
we looked the one from wicket-extensions Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Wed, May 6, 2009 at 6:43 PM, Igor Vaynberg

Re: How to manipulate values in a data table?

2009-05-06 Thread Mathias Nilsson
If it only can hold one value then an enum would be ok. public interface Translatable{ public String getResourceKey(); } public enum Status implements Translatable{ NOT_SENT( 0, resource.notsent ), SENT( 1, resource.sent ); private int status; private String resourceKey;

Re: Maven setup

2009-05-06 Thread David Brown
Hello Frank, I can't answer all the questions but... * I'm a 10+ year nearly Java only developer. I was initially very impressed with databinder but the only real support for databinder I could find is @: http://code.google.com/p/wicket-web-beans/ * I have 1.3.5 running in Eclipse (Ganymede)

Detaching models

2009-05-06 Thread Uwe Schäfer
hi we have a problem here, which we think might be a common one, so i´d like to discuss. from time to time we create models (mostly LDMs) that are not actually reachable by components. (yes, you can argue that this is stupid, but it happens where 1:1 mapping between component and model is

Lazy Open Session In View with AOP

2009-05-06 Thread Christian Helmbold
Hello, I want to use the Open Session In View Pattern with Wicket, but I don't want to open a Hibernate Session for every request like the ServletFilter approach does. I looked at the lazy-loading Open Session in View for JPA implementation from Wille Faler.

Re: Lazy Open Session In View with AOP

2009-05-06 Thread Carlo Camerino
spring has implemented itw own opensessioninview filter., i dont' think that you have to crete your own Spring has a class like this which you can declare in your web.xml OpenSessionInViewFilter On Thu, May 7, 2009 at 2:29 AM, Christian Helmbold christian.helmb...@yahoo.de wrote: Hello, I

Re: Lazy Open Session In View with AOP

2009-05-06 Thread James Carman
You can try using the filter, just set the singleSession property to false. On Wed, May 6, 2009 at 2:29 PM, Christian Helmbold christian.helmb...@yahoo.de wrote: Hello, I want to use the Open Session In View Pattern with Wicket, but I don't want to open a Hibernate Session for every

Re: Detaching models

2009-05-06 Thread Jeremy Thomerson
In 1.5 Igor is planning on doing this. He's planning on making it such that any IModel that your component holds as a field is auto-detached. -- Jeremy Thomerson http://www.wickettraining.com 2009/5/6 Uwe Schäfer schae...@thomas-daily.de: hi we have a problem here, which we think might be

Re: DropDownChoice with ChoiceRender problem

2009-05-06 Thread Phillip Rhodes
Thanks for the solution. I found this post here (so the reader is getting off easy:) http://steve-on-sakai.blogspot.com/2008/12/using-hashmap-with-dropdownchoice.html -Original Message- From: James Carman jcar...@carmanconsulting.com Sent: Tuesday, May 5, 2009 12:55pm To:

Re: Maven setup

2009-05-06 Thread Dane Laverty
There's a basic installation guide for Maven, Eclipse, and Wicket on the wiki: http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html Dane On Wed, May 6, 2009 at 11:36 AM, David Brown dbr...@sexingtechnologies.comwrote: Hello Frank, I can't answer all the

Re: DropDownChoice with ChoiceRender problem

2009-05-06 Thread James Carman
Darn it, Steve on Sakai! ;) Glad to help! On Wed, May 6, 2009 at 2:38 PM, Phillip Rhodes spamsu...@rhoderunner.com wrote: Thanks for the solution. I found this post here (so the reader is getting off easy:) http://steve-on-sakai.blogspot.com/2008/12/using-hashmap-with-dropdownchoice.html

Re: Detaching models

2009-05-06 Thread Igor Vaynberg
you can do this now, no need to wait for 1.5. simply create a detachlistener that scans the class for imodel fields and detaches them. -igor On Wed, May 6, 2009 at 11:38 AM, Jeremy Thomerson jer...@wickettraining.com wrote: In 1.5 Igor is planning on doing this.  He's planning on making it

AW: Lazy Open Session In View with AOP

2009-05-06 Thread Christian Helmbold
Thanks for your answer. I know the OpenSessionInViewFilterfrom Spring, but it opens a new Hibernate Session for every request even if you request an image. - Ursprüngliche Mail Von: Carlo Camerino cmcamer...@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 6. Mai

Re: Detaching models

2009-05-06 Thread James Carman
Refer to the injection code to find out how to do the scanning. On Wed, May 6, 2009 at 2:47 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can do this now, no need to wait for 1.5. simply create a detachlistener that scans the class for imodel fields and detaches them. -igor On Wed,

Re: Maven setup

2009-05-06 Thread nino martinez wael
And theres even two free books on maven http://www.sonatype.com/products/maven/documentation/book-defguide http://www.jroller.com/carlossg/entry/better_builds_with_maven_free I'd skip the parts about maestro and just use hudson or continium :) 2009/5/6 Dane Laverty danelave...@gmail.com:

Re: Maven setup

2009-05-06 Thread nino martinez wael
I really like better builds.. 2009/5/6 nino martinez wael nino.martinez.w...@gmail.com: And theres even two free books on maven http://www.sonatype.com/products/maven/documentation/book-defguide http://www.jroller.com/carlossg/entry/better_builds_with_maven_free I'd skip the parts about

AW: Lazy Open Session In View with AOP

2009-05-06 Thread Christian Helmbold
Thanks for this hint. The Spring API doc says: If set to false, each data access operation or transaction will use its own session (like without Open Session in View). Each of those sessions will be registered for deferred close, though, actually processed at request completion.

Re: Detaching models

2009-05-06 Thread Uwe Schäfer
James Carman schrieb: Refer to the injection code to find out how to do the scanning. you can do this now, no need to wait for 1.5. simply create a detachlistener that scans the class for imodel fields and detaches them. awesome. i was not aware of this one. thanks.

Re: How to manipulate values in a data table?

2009-05-06 Thread Michael O'Cleirigh
Hello, The easy way is to create a custom column and use that to convert the value. i.e. extend ProperyColumn and override the protected IModel? createLabelModel(IModelT rowModel) method such that it converts the inner value (0 or 1) into the string value you want.

Modifying LinkTree

2009-05-06 Thread Major Péter
Hi all, I'm using a LinkTree in my app, which is pretty much the SimpleTree implementation at Wicket Ajax Examples ( http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1 ), but I have to make it custom somehow. At this time the treenodes are links to different pages. The things,

Re: Lazy Open Session In View with AOP

2009-05-06 Thread James Carman
If you use the @Transactional annotation (or define your transactions in the XML), Spring will take care of the transactions for you automagically. On Wed, May 6, 2009 at 3:05 PM, Christian Helmbold christian.helmb...@yahoo.de wrote: Thanks for this hint.  The Spring API doc says: If set to

Re: Detaching models

2009-05-06 Thread Johan Compagner
Doesnt he say that the models arew really not reachable by the components? So how would that field scanning then work? If it are fields on components the currently the thing to do is simpel just make sure that those fields are detached in the detach method of the component that has those fields

Re: Spring Security's method security and Wicket

2009-05-06 Thread Kent Larsson
I don't know. I guess something like: 1. Record the request data (like with URL interception) then let the method call fail roll-back transactions 2. Show log in page 3. Play the recorded request and hope the call was determenistic But maybe I just misinterpreted him. Or maybe it would work

Re: Detaching models

2009-05-06 Thread Igor Vaynberg
i thought not reachable means they are not in any default model slot...dunno -igor On Wed, May 6, 2009 at 1:17 PM, Johan Compagner jcompag...@gmail.com wrote: Doesnt he say that the models arew really not reachable by the components? So how would that field scanning then work? If it are

Inmethod Grid - adding / removing columns

2009-05-06 Thread Flavius
I just implemented the inmethod grid control (very cool, btw) and I'm looking for a way to add and remove columns to the grid using DnD. What I envision is a div opening above the grid with a list of available columns. The user can then drag the columns onto the grid (ideally into the exact

radiochoice and propertymodel ignoring converter (wicket 1.3.5)

2009-05-06 Thread james o'brien
I have a custom converter registered for Boolean.class that converts yes to Boolean(true) and no to Boolean(false). When the RadioChoice loads the converter is never called. code private static final ListString IRREGULAR_HEARTBEAT = Arrays.asList(newString[] { yes, no }); RadioChoice

Re: radiochoice and propertymodel ignoring converter (wicket 1.3.5)

2009-05-06 Thread Igor Vaynberg
that kind of conversion should go into ichoicerenderer implementation. the converter is used to convert between browser's on/ values to true and false. this is the sig of the constructor from 1.4, hopefully generics will clear up how this works for you public RadioChoice(final String id, IModelT

Re: Detaching models

2009-05-06 Thread Uwe Schäfer
Igor Vaynberg schrieb: i thought not reachable means they are not in any default model slot...dunno yep, that´s what i meant. sorry i wasn´t clear on that one. using the listener to test the fields for IDetachable works pretty well. thanks again.

Re: Detaching models

2009-05-06 Thread Uwe Schäfer
Johan Compagner schrieb: If it are fields on components the currently the thing to do is simpel just make sure that those fields are detached in the detach method of the component that has those fields sure, but this is quite easy to forget (that´s what i´m good at), so doing it from the

Re: Detaching models

2009-05-06 Thread Igor Vaynberg
the standard way to handle this is to override component's ondetach() and call detach() on the models directly. -igor 2009/5/6 Uwe Schäfer u...@thomas-daily.de: Johan Compagner schrieb: If it are fields on components the currently the thing to do is simpel just make sure that those fields

Re: Detaching models

2009-05-06 Thread Johan Compagner
And for detecting if you did detach everything you could use a serializable checker and/or specific object checker that will test your complete page after it is detached. (or should be detached) On 07/05/2009, Uwe Schäfer u...@thomas-daily.de wrote: Johan Compagner schrieb: If it are fields on

Re: remember me at login page feature

2009-05-06 Thread Khlystov Alexandr
Thanks, Igor. Now it is getting clear. Unfortunaотлиly I can't distinguish library to use from library to use and modify. I mean since I'm quite new to wicket, it is questionable step to modify wicket API, because I don't know what else I need can be based on this functionality. if you search

Re: remember me at login page feature

2009-05-06 Thread Igor Vaynberg
you can take the entire wicket-auth-roles source and paste it into your project, then start hacking away. -igor On Wed, May 6, 2009 at 9:11 PM, Khlystov Alexandr a...@ovservice.org wrote: Thanks, Igor. Now it is getting clear. Unfortunaотлиly I can't distinguish library to use from library

non-existent Springbean lazy beans only work when name specified

2009-05-06 Thread Antony Stubbs
I think I've found a potential bug/ area for improvement. We are setting up pure unit tests for a component, and in this test case, although the component declares several @SpringBean's, only 1 is used. Our tests all work fine when we run them against our test spring context, but I wanted