Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
argh! It's very clean on the upload side of stuff. Anyway when we get confluence sorted out i'll put the diagram on this page : http://cwiki.apache.org/confluence/display/WICKET/Wicket+Cheat+Sheet Michael Allan wrote: Nino Saturnino Martinez Vazquez Wael wrote: I've created a small wicket

configurable component

2008-06-03 Thread Stefan Selariu
Hi guys! Is there a way to configure the wicket components using the html markup? I would like to do something like this: table tr wicket:id=group1 ... /tr tr wicket:id=group2 wicket:component=parent=group1 ... /tr tr wicket:id=group3 wicket:component=parent=group2 ... /tr /table The

Re: Use Spring with Wicket

2008-06-03 Thread Michael Sparer
what's wrong with the wiki page? there's plenty of code and fun for everyone ;-) http://cwiki.apache.org/WICKET/spring.html Samit wrote: Sorry to say but U did nothing in code I am asking fro steps... I am awarre of few like: 1. Change in web.xml for

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Johan Compagner
If only... if only we had this construct: class ComponentT default Void { } then all our problems with verbosity would be gone.. TextField tf = new TextField(id) // just default Void Also only declare it once: TextFieldStirng tf = new TextField(id); And both ways type guessing, so

Re: Upload/Download file

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
there are an example on this on the wicket examples... http://www.wicket-library.com/wicket-examples/upload/single Milan K?ápek wrote: Well I think I have the way how to let users to download the files from server. When the request comes I just take the file from database, set the right

Add onClick to an AjaxButton

2008-06-03 Thread Eyal Golan
Hello all, We have a StyledAjaxButton that extends AjaxButton. We want to add a confirmation when clicking. We added this: @Override protected String getOnClickScript() { String warning = LocalizationHelper.getMessage(page.confirmation.message,

Re: configurable component

2008-06-03 Thread Stefan Selariu
Thanks for your quick answers. The TreeTable doesn't help me because I have different objects in the table rows. And the groups should be able to span acros more columns. TreeTable doesn't let me configure the table appearance using the static html... I hope I'm not wrong :D I guess I'll send

Re: Wicket-Security and Wicket 1.4

2008-06-03 Thread Maurice Marrink
The plan is to first get at least a beta out for 1.3.1 and then start working on 1.4. Given the amount of time i have been able to put into wasp and swarm lately it would not be feasible to actively develop 2 branches at the same time. Even with someone helping out on the 1.4 branch we would still

Re: Sortable Paging DataView inside a tabpanel and backbutton

2008-06-03 Thread jensiator
Hi Scott I realized that you cant compare to UUID with '==' in Java. You need to compare the as if(UUID1.equals(UUID2)). I been working to much in csharp, where you compare two Guid as this: if(Guid1==Guid2) Just a stupid mistake Jens Scott Swank wrote: Sorry to jump in at the last minute,

Re: Use Spring with Wicket

2008-06-03 Thread Samit
Sorry to say but U did nothing in code I am asking fro steps... I am awarre of few like: 1. Change in web.xml for listener.. 2. make applicationContext.xml file 3. Now what? - Samit :confused: -- View this message in context:

Re: How to access properties files outside of Wicket components?

2008-06-03 Thread Erik van Oosten
Look carefully. Your code sample does: Thread.currentThread().getContextClassLoader().getResourceAsStream(MyComponent.properties) Which loads it from the default package. I think you should do: MyComponent.class.getResourceAsStream(MyComponent.properties) Which loads it from the package

Re: Deployment mode Javascript error

2008-06-03 Thread TH Lim
Why being not stripping the comments and whitespaces makes a difference in Effect.js i.e. getResourceSettings().setStripJavascriptCommentsAndWhitespace(false)? Thanks. Matej Knopp-2 wrote: Are there still compression problems with current trunk? I've been testing that with YUI and DOJO

Re: configurable component

2008-06-03 Thread Jan Kriesten
hi stefan, Is there a way to configure the wicket components using the html markup? I would like to do something like this: table tr wicket:id=group1 ... /tr tr wicket:id=group2 wicket:component=parent=group1 ... /tr tr wicket:id=group3 wicket:component=parent=group2 ... /tr /table

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
great. Frank is working on the diagram stuff, to be able to give clearance to me i think. Gwyn Evans wrote: On Tue, Jun 3, 2008 at 8:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: argh! It's very clean on the upload side of stuff. Anyway when we get confluence sorted

Re: Wrap a ListView and it cannot be updated via AJAX ?

2008-06-03 Thread smallufo
Does it has something to do with isTransparentResolver() , so that the listViewContainer is transparent between the panel and the listView ? But WebMarkupContainer seems doesn't have setTransparentResolver() method... 2008/6/3 smallufo [EMAIL PROTECTED]: 2008/6/3 Gwyn Evans [EMAIL

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
Or you could try this: I think it's a direct link : http://www20.flyupload.com/dl?fid=9436254x=9hfpy_sVT1WmQM_gAqdMeQ.. Nino Saturnino Martinez Vazquez Wael wrote: argh! It's very clean on the upload side of stuff. Anyway when we get confluence sorted out i'll put the diagram on this page :

Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread jd17
Hi, first of all let me say that Wicket is a fantastic framework :clap:and I never had so much fun programming Java (I am more of a Perl / Lisp fan...) I have written an application which is now in production mode and the introduction of the StatelessForm class (maybe a minor thing) prompted me

Re: configurable component

2008-06-03 Thread Michael Sparer
AFAIK there's no way to this in the markup as you'd like to do it, as wicket's component hierarchy is bound to the html hierarchy. However it's quite easy to implement the logic in the code. If you use AJAX and perform a roundtrip on each collapse, just set the rows to invisible onclick, or

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Marcus Mattila
generics for formcomponents do not make sense, most of the time they can figure out the type by inspecting their model. further, generics did not get rid of the need to specify the type as a constructor argument: new TextFieldInteger(num, Integer.class) Agreed. +1 for NOT generifying

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
remember the two dots.. Nino Saturnino Martinez Vazquez Wael wrote: Or you could try this: I think it's a direct link : http://www20.flyupload.com/dl?fid=9436254x=9hfpy_sVT1WmQM_gAqdMeQ.. Nino Saturnino Martinez Vazquez Wael wrote: argh! It's very clean on the upload side of stuff. Anyway

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Stefan Fußenegger
1) Generifying* Wicket [X] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified models and components give Wicket. 2) How strongly do you feel about your choice above? [X] Whatever

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Martin Funk
Johan Compagner wrote: On Mon, Jun 2, 2008 at 9:33 PM, Martin Funk [EMAIL PROTECTED] wrote: Hi Sebastiann, just for clarifying my understanding of the vocabulary: A_HomePage extends WebPage and B_HomePage extends WebPageVoid are both non-generified java classes. No the last one is

Upload/Download file

2008-06-03 Thread Milan Křápek
Hi, I need your help. I am trying to upload and download some files via the Wicket presentation layer, but I realy do not know how to do it. I try to get some inspiration from upload example on wicket pages, but this is not what I want. Here is the description of my problem: I have some

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Kent Tong
[x] Can best be done in a limited fashion, where we only generify IModel but not components. [x] Whatever choice ultimately made, I'll happily convert/ start using 1.4 and up. I basically agree to what Igor says on this issue. - -- Kent Tong Wicket tutorials freely available at

Re: Upload/Download file

2008-06-03 Thread Milan Křápek
Well I think I have the way how to let users to download the files from server. When the request comes I just take the file from database, set the right content type of the response and then I get the outputStream of the Response and fill it with the file. Is it true? Or am I wrong? And what

Re: Add onClick to an AjaxButton

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
hmm, just add it to the ajaxrequesttarget instead... target.prependJavascript(javascript) ? Not sure if this does the trick though. Eyal Golan wrote: Hello all, We have a StyledAjaxButton that extends AjaxButton. We want to add a confirmation when clicking. We added this:

Re: Upload/Download file

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
Why do you need todo it that way, cant you just change it? Otherwise i'd look into how that wicket component from the example does it. regards Milan K?ápek wrote: Thanks for your respnse. Yes I know I have seen this example, but as I wrote this in not the think I want to do. In that example

Re: Use Spring with Wicket

2008-06-03 Thread Samit
Suppose I am having a html page...having fields like : Name and Ageand I want to save the records in db..So how will i create dao..where i'll open the conenction.how will i write in db..Can u plz explain now? - Samit :confused: -- View this message in

Re: Upload/Download file

2008-06-03 Thread Milan Křápek
As I write the HTTP request that contains the file is generated by standalone application. And the application do not need graphical interface. It is very simple to get file contained in HTTP request in PHP, I have hoped that wicket have some easy access to this data too. To your advice to

Re: Add onClick to an AjaxButton

2008-06-03 Thread Eyal Golan
Thanks Nino, first phase is done. I get the error message. My code is like this: In the AjaxButton: @Override protected void onSubmit(AjaxRequestTarget target, Form form) { String warning =

Re: Use Spring with Wicket

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
See the blog tutorial(search for it on the wiki), it uses JPA for this.. Or see wicket iolite, it creates a project for you, which you can expand Samit wrote: Suppose I am having a html page...having fields like : Name and Ageand I want to save the records in db..So how

Re: Use Spring with Wicket

2008-06-03 Thread Michael Sparer
As Martijn would put it: http://www.google.at/search?q=spring+wicket+example ;-) sorry, I don't have the time to write a whole example of using it as there are already plenty available. If you don't know how to create a DAO and howto use spring please refer to the spring (and/or hibernate)

Re: Use Spring with Wicket

2008-06-03 Thread Samit
Thank u Michael Sparer wrote: As Martijn would put it: http://www.google.at/search?q=spring+wicket+example ;-) sorry, I don't have the time to write a whole example of using it as there are already plenty available. If you don't know how to create a DAO and howto use spring please refer

Re: Use Spring with Wicket

2008-06-03 Thread Samit
Thank u Stefan Fußenegger wrote: Martijn Dashorst compiled a nice list of books (3 for beginners, another 3 on advanced topics) that will certainly help you to get started: http://martijndashorst.com/blog/2008/05/25/wicket-starter-kit/ Regards - Samit :confused: -- View this

Re: Add onClick to an AjaxButton

2008-06-03 Thread Frank Bille
I have created a behavior (WIP), which takes care of that: http://svn2.assembla.com/svn/planningpoker/trunk/planningpoker-wicket/src/main/java/org/planningpoker/wicket/behaviours/ClickConfirmBehavior.java Frank On Tue, Jun 3, 2008 at 11:01 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hello all, We

Re: Add onClick to an AjaxButton

2008-06-03 Thread Eyal Golan
One more thing. If I understand correctly, AjaxButton should override the getOnClickScript() method, return null and be declared final. What to you people think? -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74

Re: Use Spring with Wicket

2008-06-03 Thread Stefan Fußenegger
Martijn Dashorst compiled a nice list of books (3 for beginners, another 3 on advanced topics) that will certainly help you to get started: http://martijndashorst.com/blog/2008/05/25/wicket-starter-kit/ Regards - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a

Re: Add onClick to an AjaxButton

2008-06-03 Thread Eyal Golan
Thanks Frank, It is exactly what I needed. cheers :) On Tue, Jun 3, 2008 at 1:00 PM, Frank Bille [EMAIL PROTECTED] wrote: I have created a behavior (WIP), which takes care of that:

How can I get the DateView's size from the PagingNavigator's IPageable

2008-06-03 Thread Dreamltf
I have a PagingNavigator with a DataView I found in the IPageable has only the following method int getCurrentPage(); void setCurrentPage(int page); int getPageCount(); How can I get the DateView's size ? thanks a lot! -- View this message in context:

AJAX slower than full page update

2008-06-03 Thread Niels Bo
Hi I have observed that using AJAX to update of large content of a page is much slower than updating the full page withou AJAX. For example AJAX sorting a big DataTable (10x25) can be much slower that without AJAX, and I often see Client parsetime of more than a second in IE. FireFox seems to

Re: Upload/Download file

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
Milan K?ápek wrote: As I write the HTTP request that contains the file is generated by standalone application. And the application do not need graphical interface. It is very simple to get file contained in HTTP request in PHP, I have hoped that wicket have some easy access to this data

Getting ALL error messages for a component from AjaxFormComponentUpdatingBehavior#onError()

2008-06-03 Thread Edvin Syse
Hi, I've extended AjaxFormComponentUpdatingBehavior and try to get hold of all error messages in the onError() method. I've added two validators to the formcomponent, but it seems I can only get hold of the first one I added to the component. Spesifically if I do:

Re: Reminder: London Wicket event at Google UK on Wednesday

2008-06-03 Thread jWeekend
... not to mention our free draw for 3 pre-paid http://manning.com/dashorst/ Wicket In Action MEAP licences. I've looked through all the presentations now (all except Al's that is), including Ian's talk on Stateless vs Statefull that we may also squeeze in as a bonus (time permitting) but that

Re: Upload/Download file

2008-06-03 Thread Milan Křápek
I have it. It was hidden under the wicket request. It can be done by cast the request to IMultipartWebRequest. This request then can access the file stored in the HTTP request. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: new wicket site live: online.ddpoker.com (+1 for generics)

2008-06-03 Thread jWeekend
Doug, Congratulations on getting your site into production so quickly - I hope it's a big success. It sounds like you are more than satisfied with your decision to choose Wicket for your presentation layer and importantly, it's especially encouraging to get a resounding thumbs up for all the

RE: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Hoover, William
In java 1.7 it will allow: TextFieldStirng tf = new TextField(id); So, at least one of your wishes will come true ;o) I like the default idea. -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2008 4:15 AM To: users@wicket.apache.org Subject: Re:

Ajax-on-click-somewhere-else?

2008-06-03 Thread gurgel2
I want to do a popup menu (using a z-indexed layer) that should closed if i click anywhere, EXCEPT on the menu itself. Its the close behavior I need to know. Everything but that, is clear to me. A similar behavior to a opened desktop app File,Edit, .. Help menu or a context menu (not opened

Re: How can I get the DateView's size from the PagingNavigator's IPageable

2008-06-03 Thread Michael Sparer
If you're using DataView try getDataProvider().size(); Dreamltf wrote: I have a PagingNavigator with a DataView I found in the IPageable has only the following method int getCurrentPage(); void setCurrentPage(int page); int getPageCount(); How can I get the DateView's size ?

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Gabor Szokoli
Hi, We haven't worked with 1.4 enough to form an opinion, but we'll definitely upgrade to it for the next project. On 6/3/08, Johan Compagner [EMAIL PROTECTED] wrote: If only... if only we had this construct: class ComponentT default Void If only we had type inference :-) Is this any

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Jan Kriesten
If only we had type inference :-) Is this any nicer in scala? in scala you wouldn't have to have the getModel/getModelObject within Component in the first place (you could use mixins for this purpose). --- Jan. - To

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Edmund Urbani
Gabor Szokoli wrote: Hi, We haven't worked with 1.4 enough to form an opinion, but we'll definitely upgrade to it for the next project. On 6/3/08, Johan Compagner [EMAIL PROTECTED] wrote: If only... if only we had this construct: class ComponentT default Void If only we had type

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Gabor Szokoli
On 6/3/08, Jan Kriesten [EMAIL PROTECTED] wrote: If only we had type inference :-) Is this any nicer in scala? in scala you wouldn't have to have the getModel/getModelObject within Component in the first place (you could use mixins for this purpose). I was thinking about using the

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Johan Compagner
really? i still cant find information what will really be 1.7.. On Tue, Jun 3, 2008 at 1:29 PM, Hoover, William [EMAIL PROTECTED] wrote: In java 1.7 it will allow: TextFieldStirng tf = new TextField(id); So, at least one of your wishes will come true ;o) I like the default idea.

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Johan Compagner
Type inference alone will not really help us To kill the verbosity on components that are not used with models we need something like T default Void johan On Tue, Jun 3, 2008 at 1:34 PM, Gabor Szokoli [EMAIL PROTECTED] wrote: Hi, We haven't worked with 1.4 enough to form an opinion, but

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread James Carman
On Tue, Jun 3, 2008 at 8:46 AM, Jan Kriesten [EMAIL PROTECTED] wrote: Hi Gabor, I was thinking about using the existing wicket 1.4 API from scala, if that's any more comfortable. I tried to migrate a bigger project from 1.3 to 1.4 api - and it isn't really more comfortable. It's easier to

Re: new wicket site live: online.ddpoker.com (+1 for generics)

2008-06-03 Thread James Carman
Doug, Another congratulations from me. I took a look at the site and I might just sign up. My dad likes to play Texas Hold 'em and I'd like to kick his butt! :) Glad to hear the generic model/components work for you too. I'm using them and there have been some headaches, but overall I like

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Jan Kriesten
Hi Gabor, I was thinking about using the existing wicket 1.4 API from scala, if that's any more comfortable. I tried to migrate a bigger project from 1.3 to 1.4 api - and it isn't really more comfortable. It's easier to do one or two casts than trying to conform the generics Component

RE: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Hoover, William
Look in the section Laguage Proposals Shorter Instance Creations in: http://blogs.sun.com/dannycoward/resource/Java7Overview_Prague_JUG.pdf Other useful links: http://blogs.sun.com/ahe/resource/java-se-7-EclipseCon-2007.pdf http://puredanger.com/techfiles/java7.pdf -Original Message-

Re: [ANNOUNCE] Apache Wicket 1.4 Milestone 2 is released

2008-06-03 Thread Erik van Oosten
For those that use SpringBean, starting from m2 you also need the jar wicket-ioc. Regards, Erik. Frank Bille wrote: Help the Apache Wicket team to determine the future of your Wicket based web application development. We have released our second milestone release of our Java 5 based web

Example of wicketstuff-minis' Veil

2008-06-03 Thread nitinkc
I need an example of wicketstuff-minis' veil behavior. I added this to one of my components but keep getting the error that the behavior is already bound to another component and cannot be reused. All I am doing is: Button button = new Button(test); button.add(new Veil()); form.add(button);

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Jan Kriesten
Hi James, Remember that 1.4 isn't done yet either. Perhaps these are just growing pains that the wicket team is going through (or perhaps it's not). it's not... ;-) No, really, I have invested quite some time to get comfortable with Components + Generics. And I came to the conclusion:

Re: continueToOriginalDestination goes to tomcat's index.jsp

2008-06-03 Thread liny
Hi, Timo: I want to do as the same as Form Example in wicket-examples-1.3.3 After copying Form Example source and modify it, now it works. Thanks. Timo Rantalaiho wrote: On Mon, 02 Jun 2008, liny wrote: 1. When I enter data into input field and key up, AjaxFormValidatingBehavior doesn't

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Jonas
1) Generifying* Wicket [X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do you feel

How can I customize Autocomplete?

2008-06-03 Thread taygolf
Hey everyone. I am wanting to customize autocomplete textfield a little and I am not sure what I need to do to get the behavior I would like. I am using the 1.4-m2 jars for my development because I am really wanting the choices to show up with an empty textfield. Basically I would like the Div

Re: Multi-validator in one input field?

2008-06-03 Thread Igor Vaynberg
all added validators are ANDed together. if you want to add an OR you have to roll your own validator. -igor On Tue, Jun 3, 2008 at 7:16 AM, liny [EMAIL PROTECTED] wrote: Hi, I want to have a text field that can validate multi values, like below: FormComponent fc; fc = new

Re: Ajax-on-click-somewhere-else?

2008-06-03 Thread Timo Rantalaiho
On Tue, 03 Jun 2008, gurgel2 wrote: I want to do a popup menu (using a z-indexed layer) that should closed if i click anywhere, EXCEPT on the menu itself. Its the close behavior I need to know. Everything but that, is clear to me. A similar behavior to a opened desktop app File,Edit, ..

Css and path issues

2008-06-03 Thread Manuel Corrales
Hi, i am starting new wicket application, my first one. I think this is an awesome framework!! I am having this issue, i have a css file and i am including it on a pageA, then i have another pageB (subclass of pageA) that is on another package. When i navigate to pageB, i have no stlyes because

Re: Upload/Download file

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
Add it to the wiki:) Milan K?ápek wrote: I have it. It was hidden under the wicket request. It can be done by cast the request to IMultipartWebRequest. This request then can access the file stored in the HTTP request. - To

Re: Multi-validator in one input field?

2008-06-03 Thread edvin
In this case you could quite easily combine these in a single regexp. -- Edvin all added validators are ANDed together. if you want to add an OR you have to roll your own validator. -igor On Tue, Jun 3, 2008 at 7:16 AM, liny [EMAIL PROTECTED] wrote: Hi, I want to have a text field that

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread jd17
Hi, Igor, thanks for replying, but I do not understand your statement. My impression is that the default is true, otherwise I would not have to set it to false all over the place. Please clarify José igor.vaynberg wrote: the default is false, unless you attach some sort of behavior (ajax)

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Stefan Simik
I am one of adopters laterst release and I invested much time for upgrading all our projects to 1.4M2 . I think, that generification of Wicket has many positive impacts, but also some negative impact on simplicity and ease of use. I don't see too many advantages of fully typed components - the

Multi-validator in one input field?

2008-06-03 Thread liny
Hi, I want to have a text field that can validate multi values, like below: FormComponent fc; fc = new RequiredTextField(name); fc.add(StringValidator.minimumLength(8)); fc.add(new PatternValidator(cab\\d{2})); fc.add(new PatternValidator([aAxX]\\d{7})); I hope the value of this text field is

Re: AJAX slower than full page update

2008-06-03 Thread Igor Vaynberg
if the table is the only expensive component on your page then there is really no advantage to using ajax since you are adding all the overhead of javascript processing without saving anything. -igor On Tue, Jun 3, 2008 at 3:57 AM, Niels Bo [EMAIL PROTECTED] wrote: Hi I have observed that

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread Igor Vaynberg
On Tue, Jun 3, 2008 at 1:19 AM, jd17 [EMAIL PROTECTED] wrote: The first and most important one is the fact that per default Wicket now makes css ids unique, which isn't even mentioned in the migration guide (Can you please add it?). I make heavy use of css in my application and it was really

Re: continueToOriginalDestination goes to tomcat's index.jsp

2008-06-03 Thread liny
Hi, I finally know why I was redirected to tomcat's home page. It's because wrong setting of WicketFilter's filter mapping in web.xml. Thanks, guys~ liny wrote: Hi, Timo: I want to do as the same as Form Example in wicket-examples-1.3.3 After copying from Form Example source and modify

Re: Multi-validator in one input field?

2008-06-03 Thread liny
Thanks, igor and Edvin! Edvin Syse wrote: In this case you could quite easily combine these in a single regexp. -- Edvin all added validators are ANDed together. if you want to add an OR you have to roll your own validator. -igor On Tue, Jun 3, 2008 at 7:16 AM, liny [EMAIL

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-03 Thread Michael Allan
Nino Saturnino Martinez Vazquez Wael wrote: That page is so ridden with ad-spam, Nino, there's no visible content! argh! It's very clean on the upload side of stuff. Anyway when we get confluence sorted out i'll put the diagram on this page :

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Anders Peterson
Eelco Hillenius wrote: 1) Generifying* Wicket [x] Can best be done like currently in the 1.4 branch, where models [x] Can best be done in a limited fashion, where we only generify Both are acceptable to me 2) How strongly do you feel about your choice above? [x] I definitively

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Ryan McKinley
[ X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do you feel about your

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread Gwyn Evans
On Tue, Jun 3, 2008 at 9:19 AM, jd17 [EMAIL PROTECTED] wrote: The first and most important one is the fact that per default Wicket now makes css ids unique, which isn't even mentioned in the migration guide (Can you please add it?). I make heavy use of css in my application and it was really

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread Igor Vaynberg
not really sure what to tell you other then my impression is that it is false by default... -igor On Tue, Jun 3, 2008 at 8:47 AM, jd17 [EMAIL PROTECTED] wrote: Hi, Igor, thanks for replying, but I do not understand your statement. My impression is that the default is true, otherwise I would

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Patrick Angeles
Eelco Hillenius wrote: [x] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. [x] Whatever

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread jd17
Thanks and sorry to have bothered you. I will take a closer look and see what I overlooked in my code. I started migrating last tuesday and everything is up and running, there are just a few warnings I will look into, so i am quite happy with the transition. José -- View this message in

Re: Ajax-on-click-somewhere-else?

2008-06-03 Thread Frank Bille
I'm no js shark either, but I had created something like that a while ago and I got around that problem by setting a flag when the mouse was over the popup (onmouseover) and reset it onmouseout. Then you can use that flag when detecting the click event. Frank On Tue, Jun 3, 2008 at 1:40 PM,

What is cool on Wicket?

2008-06-03 Thread Eyal Golan
Hi, I'm going to give an intro presentation about Wicket at my home company (I work as an outsource). There are so many cool things in Wicket and I probably know some / most of them. Can you give your advice / thoughts? Things like Ajax support, markup inheritance, POJO usage, clear and clean

Re: What is cool on Wicket?

2008-06-03 Thread Gwyn Evans
Have a look here (http://cwiki.apache.org/confluence/display/WICKET/Articles+about+Wicket) and a quick seach with Nabble, as I think there were similar requests on the list not too long ago. /Gwyn On Tue, Jun 3, 2008 at 8:37 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, I'm going to give an

Re: What is cool on Wicket?

2008-06-03 Thread John Krasnay
One big selling point for me was the encapsulation of components. Because the code and all required resources (markup, CSS, JS, localization properties) are by default retrieved from the classpath, it's trivial to create reusable libraries of common components, page layouts, etc. jk On Tue, Jun

Wicket Session and non-Wicket Servlet

2008-06-03 Thread Matthew R Hanlon
Okay, I may have this all wrong, and then that's my problem. I have an application that was developed under the 2.0 branch that I recently migrated to 1.4. This application uses a servlet to handle requests for Jasper Reports, and under 2.0 everything worked great. I store the report request in

Re: Wicket Session and non-Wicket Servlet

2008-06-03 Thread Martijn Dashorst
You can't access the Wicket Session from outside a Wicket request using Session.get(). It is a thread local that is maintained by the request cycle. If it was possible in 2.0, then that was a bug and most certainly a security risk. You should try to look up the Wicket session in the HttpSession

Bean properties from view?

2008-06-03 Thread FastGorilla
I have knowledgde of Servlets, JSP and JSF, and reading a bit about Wicket. Something that turns me immediately off is that you have to use something like add(new Label(firstName, person.getName())); add(new Label(lastName, person.getName())); add(new Label(address, person.getAdress())); add(new

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Mike Comb
[X ] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. I've spent a couple of afternoons trying to

Re: Wicket Session and non-Wicket Servlet

2008-06-03 Thread Ryan Gravener
Check out the api for WicketSessionFilter, it will tell you how to make the session available for non wicket servlets. http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html On Tue, Jun 3, 2008 at 4:30 PM, Martijn Dashorst

Re: Bean properties from view?

2008-06-03 Thread Gwyn Evans
On Tue, Jun 3, 2008 at 9:38 PM, FastGorilla [EMAIL PROTECTED] wrote: I have knowledgde of Servlets, JSP and JSF, and reading a bit about Wicket. Something that turns me immediately off is that you have to use something like add(new Label(firstName, person.getName())); add(new

Re: Bean properties from view?

2008-06-03 Thread Gwyn Evans
Also http://cwiki.apache.org/WICKET/more-on-models.html On Tue, Jun 3, 2008 at 9:58 PM, Gwyn Evans [EMAIL PROTECTED] wrote: On Tue, Jun 3, 2008 at 9:38 PM, FastGorilla [EMAIL PROTECTED] wrote: I have knowledgde of Servlets, JSP and JSF, and reading a bit about Wicket. Something that turns me

Re: Bean properties from view?

2008-06-03 Thread Igor Vaynberg
no it is not possible. in wicket the view is dumb, it contains no knowledge or logic. if, for example, the person has first name and last name and you wanted to output a full name you would have to do the concatenation in java code, and the view would simply have span wicket:id=fullname/

Extra control needed for PropertyColumn

2008-06-03 Thread Steve Thompson
I'm creating a AjaxFallbackDefaultDataTable, just as shown in the live examples, and things are working great. My only problem though is that I would like to scramble one of the columns of information that I present depending on the user (in this case, the column holds SSN, and I want it to

Re: Bean properties from view?

2008-06-03 Thread FastGorilla
thx for your reply Gwyn and Igor. That was the info I was looking for. igor.vaynberg wrote: no it is not possible. in wicket the view is dumb, it contains no knowledge or logic. if, for example, the person has first name and last name and you wanted to output a full name you would have to

Re: Extra control needed for PropertyColumn

2008-06-03 Thread Igor Vaynberg
you can also subclass propertycolumn itself -igor On Tue, Jun 3, 2008 at 2:36 PM, Steve Thompson [EMAIL PROTECTED] wrote: I'm creating a AjaxFallbackDefaultDataTable, just as shown in the live examples, and things are working great. My only problem though is that I would like to scramble one

Re: Extra control needed for PropertyColumn

2008-06-03 Thread Jeremy Thomerson
You could do something like this: new PropertyColumn(new Model(your-object-model-replaces-this-one), property.expression) { @Override protected IModel createLabelModel(final IModel embeddedModel) { return new Model() { @Override

Re: Wicket Session and non-Wicket Servlet

2008-06-03 Thread Matthew Hanlon
Check out the api for WicketSessionFilter, it will tell you how to make the session available for non wicket servlets. http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html Yeah, that's how I had my filter and servlet

  1   2   >