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

2008-06-03 Thread Jan Kriesten
i was of the "generify component and model" mind while i was generifying the framework, but after coding against it i began to see some of the ugliness and now my mind is almost changed. yep, day to day usage is the main point. i came to that conclusion as well when i was trying to migrate s

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

2008-06-03 Thread Nino Saturnino Martinez Vazquez Wael
Doesnt the YUI and dojo contrib do this already? 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 de

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

2008-06-03 Thread Igor Vaynberg
On Tue, Jun 3, 2008 at 11:30 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Tue, Jun 3, 2008 at 10:37 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i think we should have qualified this rfi with a requirement that >> responders use 1.4 on a non-trivial project...these things only become >> a

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

2008-06-03 Thread Eelco Hillenius
On Tue, Jun 3, 2008 at 10:37 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > i think we should have qualified this rfi with a requirement that > responders use 1.4 on a non-trivial project...these things only become > apparent from real-world day-to-day usage. anything else is pretty > much speculat

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

2008-06-03 Thread Igor Vaynberg
i think we should have qualified this rfi with a requirement that responders use 1.4 on a non-trivial project...these things only become apparent from real-world day-to-day usage. anything else is pretty much speculation. -igor On Tue, Jun 3, 2008 at 10:31 PM, Eelco Hillenius <[EMAIL PROTECTED]>

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

2008-06-03 Thread Eelco Hillenius
On Tue, Jun 3, 2008 at 8:54 PM, Mike Comb <[EMAIL PROTECTED]> wrote: > Well, in our case it would almost never be: > > MyComponent mycom = new MyComponent(); > > We don't have many of our own models, we use CompoundPropertyModel pretty > much exclusively (wrapping DAOs or javabeans). So the verbos

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

2008-06-03 Thread Mike Comb
Well, in our case it would almost never be: MyComponent mycom = new MyComponent(); We don't have many of our own models, we use CompoundPropertyModel pretty much exclusively (wrapping DAOs or javabeans). So the verbosity doesn't benefit us much. Also, the vast majority of our components

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

2008-06-03 Thread Igor Vaynberg
no worries, i wasnt holding my breath. its just that when i make sweeping statements i tend to have something to back them up that other people can see... -igor On Tue, Jun 3, 2008 at 8:19 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > > You will wait a long time for an example generated from "the

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

2008-06-03 Thread Brill Pappin
You will wait a long time for an example generated from "the API would be different" in such and such a case, based on an opinion. If your really all that interested you could start from scratch using generics and see what came out. Let me know if you do, because I'd be interested to see if my o

Re: Add onClick to an AjaxButton

2008-06-03 Thread Igor Vaynberg
are you on 1.4, i checked in a change that will allow ajaxbutton to utilize getonclickscript() within the ajax handler it generates... -igor On Tue, Jun 3, 2008 at 2:47 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > One more thing. > If I understand correctly, AjaxButton should override the getOnCli

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

2008-06-03 Thread Brill Pappin
I guess I'm not understanding why people feel strongly against generics in the components. The model is going to use them for the data they contain, but the component would use them for the model it uses: MyModel mymodel = new MyModel(); MyComponent mycom = new MyComponent(); And that's all you

Re: Example of wicketstuff-minis' Veil

2008-06-03 Thread Igor Vaynberg
can you paste the stack trace please? are you using latest trunk? -igor On Tue, Jun 3, 2008 at 6:38 AM, nitinkc <[EMAIL PROTECTED]> wrote: > > 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 boun

Re: Css and path issues

2008-06-03 Thread Igor Vaynberg
you can use something like add(new HeaderContributor.forCss(pageA.class, "filename")) on pageA and it should work from anywhere. -igor On Tue, Jun 3, 2008 at 8:26 AM, Manuel Corrales <[EMAIL PROTECTED]> wrote: > Hi, i am starting new wicket application, my first one. I think this is an > awesome

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

2008-06-03 Thread Igor Vaynberg
sorry, still waiting for an example here... -igor On Tue, Jun 3, 2008 at 7:53 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > Actually, i did not say "... say that wicket api needs a radical refactoring > in order to support generics" what I actually said was "I think that if > Wicket had been writ

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

2008-06-03 Thread Brill Pappin
Actually, i did not say "... say that wicket api needs a radical refactoring in order to support generics" what I actually said was "I think that if Wicket had been written with generics from the beginning, the API would be different". No "radical refactoring required" was mentioned :) Big differ

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

2008-06-03 Thread Ned Collyer
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. [X] Can best be done in a limited fashion, where we only generify I

RE: Add onClick to an AjaxButton

2008-06-03 Thread Brill Pappin
Declare nothing final unless trying to solve a particular problem. ...m2c - Brill Pappin -Original Message- From: Eyal Golan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2008 5:47 AM To: users@wicket.apache.org Subject: Re: Add onClick to an AjaxButton One more thing. If I underst

Re: DataView and PagingNavigator for columns

2008-06-03 Thread Scott Swank
I'll answer my own question. A PageableCoordinator such as the above is a workable way to create pageable columns. I created a separate DataView for each row and then the coordinator points them all at the appropriate page. DataView recommendedView = new AirlineRecommendedView("recommend

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

2008-06-03 Thread Dreamltf
Thanks! Do you mean I can only override PagingNavigator's constructor? public MyNavigator(String arg0, IPageable arg1, IDataProvider arg2) { super(arg0, arg1); System.out.println(arg2.size()); } Michael Sparer wrote: > > If you're using DataView try get

wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-03 Thread mfs
Guys, I am using wicket-auth-roles which so far is working greaet serving all my purposes. Though I am stuck in this scenario where when the session-expiry has reached, instead of being redirected to the SessionExpiryPage, i get redirected to the loginPage, now in one of the threads it was comme

RE: Wicket Session and non-Wicket Servlet

2008-06-03 Thread Zappaterrini, Larry
The way the your web.xml is configured does not have the requests going to JasperReportServlet getting filtered by WicketSessionFilter. Change the filter mapping for WicketSessionFilter from /app/* to /report/* or /* and you should see it work the way you want.

Re: setPageExpiredErrorPage(PageExpired.class) -> Login page loaded instead of PageExpired page

2008-06-03 Thread mfs
I am facing a similar issue, can someone direct me to right documentation, as to how to redirect to sessionExpiredPage instead of login page if session has expired.. jd17 wrote: > > Hi Maurice, > thanks for your quick response. I have tested quite a bit this morning and > in most cases, the Pa

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 serv

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() { @Overri

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

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

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 appear

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 placeholder. in wicket everything

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 t

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 Labe

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 <[EMAI

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 move

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())); ad

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 of

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: 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 0

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 i

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 sepa

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, gurgel

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 context:

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] Wha

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 > r

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 w

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 cho

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 won'

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 : >>> >>> http://cwiki.apache.org/conflu

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, lin

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

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: 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

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 un

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 it

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 b

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,

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 Require

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 th

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 fie

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 > r

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 to

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

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

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); Th

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 w

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: it's

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

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 the

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: 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 struc

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

2008-06-03 Thread John Krasnay
On Mon, Jun 02, 2008 at 11:36:33PM -0400, Brill Pappin wrote: > Ahh... But there in lines the real point. > > What happens 2 years down the road when you need to modify that component? > A) if its not typed then you hunt around and try and find out what it was... > Maybe you do a println of the fq

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 u

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 Component If only we had type inference :-) Is this

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 unsub

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 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 we'll > defin

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: TextField tf = new TextField("id"); > So, at least one of your wishes will come true ;o) > > I like the default idea. > > -Or

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: 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 Component If only we had type inference :-) Is this any nicer in scal

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: TextField 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: user

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 har

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 si

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: textfield.add(EmailAddress

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 th

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 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 add

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 too.

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: http://www.nabble.com/How-can-I-get-the-

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: > > http://svn2.assembla.com/svn/planningpoker/trunk/planningpoker-wicket/src/main/java/org/planningpoker/wicke

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, >

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: -- V

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

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 n

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 = LocalizationHelper.getMessage("page.confirmation.message"

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 sear

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 will

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) docume

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: @Ov

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 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 y

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: Upload/Download file

2008-06-03 Thread Milan Křápek
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 you get access to the file through the wicket component. But in my case the file is send to my application as HTTP request (not using any wicket form), so I need to ge

  1   2   >