WicketFilter 1.5

2011-03-30 Thread Jan Kriesten
Hi, WicketFilter with 1.5 doesn't seem to use/support 'getRelativePath' any more. I used to override this to apply Locale selection and stripping this information off: /de/myRelativeWicketPath - /myRelativeWicketPath + Session Locale 'de' Where can I hook that now? Best regards, --- Jan.

Re: Apache Wicket Cookbook Published!

2011-03-26 Thread Jan Kriesten
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Igor, nicely done! :) Thanks for your steady support with the mailing list and on irc! This another big helping hand from your side to many of us! :) Ordered my copy today! Best regards, --- Jan. -BEGIN PGP SIGNATURE- Version: GnuPG

Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread Jan Kriesten
Hi Korbinian, in fact the current is 2.1.1, but 2.0.0 is reference implementation and for the JPA 2.0 API it wont matter what 2.0.x it is (see scope provided here - just API); actually, I meant the javax.persistence-API, which can be referenced with eclipse: dependency

Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-08 Thread Jan Kriesten
Hi, JPA 2: dependency groupIdorg.eclipse.persistence/groupId artifactIdeclipselink/artifactId version2.0.0/version scopeprovided/scope /dependency AFAIK the current version is 2.0.2 Best regards, --- Jan.

Re: Guice v 2 Wicket + ldms?

2010-05-29 Thread Jan Kriesten
Hi Nino, Are anyone using that combo? sure. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Caching components

2010-03-26 Thread Jan Kriesten
Hi Martin, One reason for loading some data in contstructur or onBeforeRender is to prevent creating huge hierarchies. This is faster than override isVisible(), since isVisible would called more than one times. why are you loading data in the component at all? There is this nice

Re: Future of Wicket Security (WASP/SWARM)

2010-01-22 Thread Jan Kriesten
Hi Martijn! [ ] adopt Wicket security into Apache Wicket [x] keep Wicket security at Wicket Stuff Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Scala, dependency injection and wicket

2009-10-12 Thread Jan Kriesten
Hi, I've started testing this approach and I'm a little stuck. I can easily inject objects like that for running the application, but how do I inject mock objects for testing? The module used by the injector (in the article's example) is hard-coded into the InjectorService object. you could

Re: vps hosting for wicket app

2009-10-07 Thread Jan Kriesten
Hi Matej, I'm using slicehost but looking at this it just seems insane. Have you actually used this hosting? Is there a catch somewhere? I'm using it (3 root servers atm) - even for hosting high traffic customers. The bandwidth is amazing and there hasn't been any service problem since I'm on

Re: Scala, dependency injection and wicket

2009-10-07 Thread Jan Kriesten
Hi Haim, I think you read the article from Jonas Bonér about DI with Scala [1]? In the paragraph about Guice you'll stumble over my name and my preferred way to DI with Wicket. Best regards, --- Jan. [1] http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di.html

Re: Scala, dependency injection and wicket

2009-10-07 Thread Jan Kriesten
Hi Haim, Yes, I remember seeing that. How would you add it to wicket? by adding ServiceInjector trait to the Application class or using the wicket-guice way (addComponentInstantiationListener(new GuiceComponentInjector(this));)? the Injector is just a trait, so anywhere it's needed, I just

Re: vps hosting for wicket app

2009-10-06 Thread Jan Kriesten
Hi, I'm always surprised, how expensive hosting is on the other side of the ocean. ;-) Just two examples from Germany, where server performance make Slicehost look like a lame duck: http://hetzner.de/en/ (my favorite!) http://webtropia.com/home/ (only in Germany, sorry) I agree, though, that

Re: server push

2009-10-05 Thread Jan Kriesten
Hi Jahid, We need server push for one of our web application. Is there something that you can suggest? The requirement is, it should work on any server (Tomcat, jetty, jboss,). is there any wicket component that does this? as far as I know there isn't any standard yet which works on any

Re: urls with localization

2009-07-27 Thread Jan Kriesten
Hi, How is it possible to use such urls in wicket? If users clicks that link then appropriate page with defined locale will be shown. www.domain.com/uk/home www.domain.com/nl/home see this thread:

Re: urls with localization

2009-07-27 Thread Jan Kriesten
I'm using wicket 1.3.5 and RequestDecorator could not be found. You have to read the posts more carefully - there were two references to pastebin! --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Wicket-Scala extensions

2009-07-14 Thread Jan Kriesten
Hi Antony, great to see Scala and Wicket getting more popular. :-) I've been using them together quite a while now and am convinced that there are lots of benefits in it! I created a dynamic component (like wicket:component which isn't officially supported) which also works with Ajax. There's

Re: shorter input names

2009-05-18 Thread Jan Kriesten
Hi Ian, Thanks for that. For your solution to work it looks like wicket would need to only call getInputName at most once for each input (since subsequent calls would return different names). Is that how it works? no, within the trait I override the 'def getInputName' from Wicket with a

Re: shorter input names

2009-05-17 Thread Jan Kriesten
Hi Ian, Is there a way to get wicket to generate shorter name attributes for input elements? I have a largish form and most of the data being sent to the server is the names of the input elements. it is by overriding the method 'getInputName' on every FormComponent and returning a stable

Re: Charts with wicket

2009-04-02 Thread Jan Kriesten
How is it possible to do charts (cheese, bars, radard etc) with wicket (in Ajax, Java etc) ? you may want to take a look at jfreechart. --- jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: How To Download Excel File?

2009-03-31 Thread Jan Kriesten
Hi, I could be wrong - but maybe the question is about how best to structure this in Wicket .. it's just that easy (this is Scala, not Java): add( new Link( ImageLink.ID_LINK ) { def onClick = { val resourceStream = new ByteArrayResourceStream( xlsExporter.createExcel,

Re: Making wicket work with Dynamically created html

2009-03-24 Thread Jan Kriesten
Hi Vasya, The velocity template is pretty good at displaying the html elements dynamically, but im not finding an easy way to bind the data back... I'm not really sure what you're trying to accomplish. You can't use the velocity to create wicket-components on the fly and have them bound to a

Re: handling not mounted URLs

2009-03-23 Thread Jan Kriesten
Hi Jeremy, Can you mount another filter that, if Wicket does not respond, instead responds with either a valid page or a redirect back to a valid Wicket page? no, that's no option. I got the ErrorPage-Version working in the way that I manually set the status code with val uri =

Re: handling not mounted URLs

2009-03-23 Thread Jan Kriesten
Hi Jeremy, Maybe I'm just sleepy - but where did you put that code? It's not java. heh - that's Scala. :-) The code belongs to the HomePage class. Best regards, --- Jan. - To unsubscribe, e-mail:

Re: handling not mounted URLs

2009-03-23 Thread Jan Kriesten
Hi Brill, Ahh... are you try to set up an RESTful type of URI where the path is relevant to the request being executed? no, not really, my usecase is much simpler. :) If I encounter an unmounted path I just want to create a frameset which has a target on another server. And the target url

Re: London Wicket Event - 1st of April @ Google

2009-03-23 Thread Jan Kriesten
Alastair Maw has just informed me of the catchy little title he's come up with for his talk: Why Making Table Components Is Hard. hehe - didn't we have kind of talk the last time as well? ;-) Have a nice meetup! Best regards, --- Jan.

handling not mounted URLs

2009-03-22 Thread Jan Kriesten
Hi, I've set up a Wicket application as ROOT with URL pattern /* and have some mounts on it. Now I want all unmounted stuff handled thru the Homepage-class (i.e. get the path-info for a redirect). Is there a way to do this? ATM, I get a 404 : /test/ was not found on this server. when calling

Re: handling not mounted URLs

2009-03-22 Thread Jan Kriesten
Hi Brill, what about setting up an error page using the standard servlet method that points to a wicket page? the point is: you will still get a 404 error code for the page (which the user/search engine shouldn't, since it's not an error). Best regards, --- Jan.

Re: Making wicket work with Dynamically created html

2009-03-20 Thread Jan Kriesten
Hi Vasya, How do I then map my html to panels which wicket wants ? If there is a template/example that would help. take a look at the wicket-velocity project where velocity templates are used for components. That should be similar to what you want. Best regards, --- Jan.

Re: Custom wicket:tags?

2009-03-09 Thread Jan Kriesten
Hi Wayne, is it possible to develop our own custom wicket tag(s)? Anyone done this, or have any pointers? yep, possible. I did sortof in the Dynamo example (http://www.footprint.de/fcc/2008/11/some-wicket-scala/) Regards, --- Jan.

[off topic] was: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread Jan Kriesten
i also dont remember using a compound property model...can we remove that? hehe - i haven't used that either. + 1 on removing cpm! ;-) Best reagards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-01 Thread Jan Kriesten
[X] Yes, change the DropDownChoice constructor to take the choices list as IModelListT or ListT without the wildcard [ ] No, keep DropDownChoice as it is in Wicket 1.4-rc2 Best regards, --- Jan. - To unsubscribe,

Re: Wicket meetup in Amsterdam news

2009-02-13 Thread Jan Kriesten
Hi, If interest is there I could present something based on my 'Real World Scala and Wicket' I held last week in London. Yes please! I hope there will be enough registrations to our session so we can make it. I added a 'Practical Scala + Wicket' presentation. I'm looking forward to see

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread Jan Kriesten
Hi, I can't really think of any specification which would make sense to build - there is just no need for that IMHO. If managers need something like that - there's JSF. And knowledge is growing that JSF isn't the ultimate answer. There are other open source projects embraced by managers as well

Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Jan Kriesten
Hi Martijn, I'd happy to attend as well - though only the Wicket meetup and not the ApacheCon. Both dates would do. If interest is there I could present something based on my 'Real World Scala and Wicket' I held last week in London. Best regards, --- Jan.

Re: Testing DataView

2009-02-11 Thread Jan Kriesten
Hi, By the way, I've heard from my Scala-using colleagues that some Scala versions have had trouble in serialising some inner classes. that should work with Scala 2.7.2 - in the current version it's broken if inheriting serializable from Java classes. It's already fixed and should be ok

Re: Things I miss in Wicket

2009-01-16 Thread Jan Kriesten
Hi Sébastien, 1) and 2) are already implemented, or something very close exists. 3) may be a good improvement, maybe with a new wicket tag (wicket:component type=com.me.MyCustomComp /). let's see what think core developpers hehe - that one already exists, too! :D Best regards, --- Jan.

Re: Things I miss in Wicket

2009-01-16 Thread Jan Kriesten
Hi Erik, Can you point to a place where this is documented? Its not on http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html. actually, it is there. :) ---8--- Element wicket:component wicket:component - Creates a Wicket component on the fly. Needs a class attribute. Though this has been

Re: Things I miss in Wicket

2009-01-16 Thread Jan Kriesten
Hi Erik, Yep, I did see that. However, it does not describe the type attribute Pills described: just replace 'type' with 'class' and you're there. Also, any other attribute you put into the wicket:component tag is looked a setter on the class for, so you can pass parameters in from you html

Re: Things I miss in Wicket

2009-01-16 Thread Jan Kriesten
Ouch, that is ugly. Now I understand why it is deprecated. It for sure is nothing meant to be used on a day-to-day basis, right. But there are use cases where you're happy it exists. Best regards, --- Jan. - To unsubscribe,

Re: ERROR - DiskPageStore - Error flushing page

2009-01-16 Thread Jan Kriesten
Hi, I am getting the above problem , can any one of please provide me the solution as to how to fix this issue since you didn't provide any further hints on what version of wicket you're using, I suppose this issue has already been resolved with 1.3.5:

Re: Things I miss in Wicket

2009-01-16 Thread Jan Kriesten
Hi Tobias, I don't agree on a couple of points you made on Wicket. Wicket is providing the GUI and you have to make sure your gluing to the backend is as transparent as it can be. So, if you have your interfaces untouched, you wont need to touch the Java code again for your 3-5 years. Also,

Re: Fixed Column Width AjaxFallbackDefaultDataTable

2009-01-13 Thread Jan Kriesten
Hi, how can I set fixed column widths in AjaxFallbackDefaultDataTable. set an appropriate css class on the column (overriding IStyledColumn interface)!? Best regards, --- Jan. - To unsubscribe, e-mail:

Re: ComponentResolver and CompoundPropertyModels

2009-01-05 Thread Jan Kriesten
Hi, auto components are removed after rendering is complete if i recall correctly, so there is nothing processing the submitted input. there are a couple of problems with that approach, same for embedding components in markup with the wicket:component I approached a similar problem

1.4 trunk: AjaxRequestTarget.appendJavascript

2009-01-02 Thread Jan Kriesten
Hi, current 1.4 trunk 'messes' with escaping '[' to '[^' on AjaxRequestTarget.appendJavascript which leeds to non-functional Javascript (at least on my FF 3) when using array indices on variables. It worked fine before without problems here - where/in which cases is the escacping for the CDATA

TextFilteredPropertyColumn[T] and getFilterModel

2008-12-28 Thread Jan Kriesten
Hi, I'm trying to work out how to handle TextFilteredPropertyColumn with wicket 1.4. I'm trying to do the following: tf = new TextFilteredPropertyColumnM( new Model( Name ), COL_NAME, name ){ protected IModelString getFilterModel( FilterForm form ) { return new PropertyModelString(

Re: Dynamically generating an img tag

2008-12-27 Thread Jan Kriesten
Hi Cristina, Java: // prefix and sufix hold the start and end of the img tag String imgTag = prefix + getImgURL() + sufix; add(new Label(imgDisplay, imgTag)); try: add(new Label(imgDisplay, imgTag).setEscapeModelStrings(false)); Best regards, --- Jan.

Re: Openid integration?

2008-12-03 Thread Jan Kriesten
Hi Nino, Hmm Im using auth roles now.. Are there an way to integrate the two..? that shouldn't be a too big deal, you just have to convert the spring-security granted authorities into 'roles'. To get the AuthenticationManager into your Application you could use the Spring factory (Scala

Re: Openid integration?

2008-12-02 Thread Jan Kriesten
Hi Nino, I have something working only partially though, cant get email and name attribute back from the openid provider properly.. Seems to work with openid.org, but not claimid.com or myopenid.com why not using spring-security and don't have any more hassle at all? Best regards, --- Jan.

Insights on templating and dynamic components

2008-11-29 Thread Jan Kriesten
Hi, I just wrote up a bit on my quest to support dynamic wicket components from template generated markup code. You'll find it here, including (Scala) code: http://www.footprint.de/fcc/2008/11/some-wicket-scala/ It should be usable from Java as well, though! Have fun! Best regards, --- Jan.

Testing with jetty embedded in test + httpunit

2008-11-23 Thread Jan Kriesten
Hi, running a Wicket application with jetty:run works just fine. Now I thought it should be possible to launch an embedded jetty within a test and have httpunit run against it. Written the test and starting up the internal jetty: Everything seems to be fine, application is launched with the

Re: Testing with jetty embedded in test + httpunit

2008-11-23 Thread Jan Kriesten
grml - problem solved. Sometimes one's just too stupid... :-( Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Jan Kriesten
Hi Igor, yes it sucks. i agree. personally i prefer code written against wicket 1.3. even in 1.3 i hardly had to cast anything and even with those casts i do not remember getting any class cast exceptions. hehe - just as I was saying months ago. *g* anyways, we will see how it goes. until

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Jan Kriesten
Hi Igor, you are against generics completely. but they are going to happen. the way they are now is not perfect, in 1.5 we will try to move them to a better place, but like it or not they are here to stay. huh - hell, no, I'm not against generics at all. Where do you get that from? I'm

wicket-ioc/cglib constructor injection

2008-10-20 Thread Jan Kriesten
Hi, wicket-ioc/cglib (using 1.3-snapshot) has problems when it comes to creating proxies for constructor injection (and also when it comes to enhance final classes): Caused by: java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given at

Re: wicket-ioc/cglib constructor injection

2008-10-20 Thread Jan Kriesten
Hi Igor, add a package private default constructor to your class. default constructor wont work in this case. these are all well known limitations of proxying classes, you should try to make sure your injected dependencies are interfaces or you something like salve so no proxies are

Re: wicket + sso (jCIFS)

2008-10-16 Thread Jan Kriesten
Hi, filters are applied in order of their appearence in the web.xml - so when your wicket-filter is applied, there hasn't any authentication been performed... Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: wicket + sso (jCIFS)

2008-10-16 Thread Jan Kriesten
Hi James, I think it's the order they are mapped in the web.xml file. The declaration order doesn't decide what goes first/last. Basically, the filter-mapping elements decide the order. right, but I used the word 'filter' not as a synonym for the xml-tags but the application of the filter

Re: AjaxRequestTarget is null in Internet Explorer 6

2008-09-22 Thread Jan Kriesten
I´m struggeling with the AjaxFallbackLink the target object is null, if it runs to the onClick() method. I still have that problem and why is sb. responding to another thread... You should check the documentation what 'null' means on a AjaxFallbackLink: you don't get an Ajax but a

Re: Scalability PageMaps

2008-09-18 Thread Jan Kriesten
Also, looking at this whole thing. 32000 concurrent sessions on one machine? What are you trying to achieve? I have yet to see a machine that can handle 32k concurrent users... hehe - the new 'Office Cray' CX1 might be up for the challenge. :D

Re: Scalability PageMaps

2008-09-18 Thread Jan Kriesten
you can order it with windows hpc _or_ red hat linux :-) I saw that yesterday. I wonder if that thing will run linux? When I get rich and infamous, I'm buying one. Also, looking at this whole thing. 32000 concurrent sessions on one machine? What are you trying to achieve? I have yet to

Re: Wicket and Mootools?

2008-09-17 Thread Jan Kriesten
What is the best way to integrate mootools in wicket ? Does Mootools slow down the application? Does somebody had good expierence with it? there is already a project in wicket-stuff with this... :-) best regards, --- jan.

Re: Web statistics tools, analysis

2008-09-03 Thread Jan Kriesten
Hi, Google Analytics? I have my problems with this, actually. There are privacy-policy-issues with Google Analytics, especially in germany. You have no control to remove log information after a certain time or remove tracks if user demand it. As nice as Google Analytics looks, it's actually

Re: DataTable - tfoot before tbody?

2008-08-31 Thread Jan Kriesten
Hi Eyal, When I look at FireBug, I see that the tfoot section of the table is BEFORE the tbody. Has anyone encountered this? Do I do something wrong? this is intented and required by the HTML spec: http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3 Best regards, --- Jan.

Re: Convenience

2008-08-26 Thread Jan Kriesten
Hi Uwe, new TextField(..).setRequired().setVisible().setEnabled() instead of having to new TextField(..).setRequired(true).setVisible(true).setEnabled(true) what do you think ? nah - you're just lazy. ;-) Not more convenience-methods, there are already too many... Best regards, ---

Re: DefaultDataTable

2008-08-17 Thread Jan Kriesten
hi uwe, using DefaultDataTable, how to best apply css to the columns (in order to size them, etc) by using an IColumn implementing IStyledColumn: getCssClass() best regards, --- jan. - To unsubscribe, e-mail: [EMAIL

Re: [announce] Wicket in Action e-book has been published!

2008-08-14 Thread Jan Kriesten
Congrats to both of you for going thru this and not giving up. I know how it is to write (although not on a scale that big!) - your work is very much appreciated! :-) Best regards, --- Jan. - To unsubscribe, e-mail:

DiskPageStore - FileNotFoundException

2008-08-04 Thread Jan Kriesten
Hi, with the current 1.3-Snapshot, I encounter problems with DiskPageStore: ---8--- 09:30:43.151 ERROR [.wicket.protocol.http.pagestore.DiskPageStore] - Error flushing page java.lang.RuntimeException: java.io.FileNotFoundException:

Re: LocaleUrlsEncodingStrategy ?

2008-07-12 Thread Jan Kriesten
hi nino, Because of the way wicket handles locale, it's only for the cache's sake... Whats wrong with my approach, the code are below link. http://papernapkin.org/pastebin/view/1635/ i haven't really looked at your code, but i'd use an approach with a modified filter to handle this.

Re: LocaleUrlsEncodingStrategy ?

2008-07-12 Thread Jan Kriesten
hi nino, did you have a java version of the filter also? I guess Sebastian has it? no, i switched completely to scala, sorry. maybe sebastian has implemented it in java. best regards, --- jan. - To unsubscribe, e-mail:

Re: generics

2008-07-02 Thread Jan Kriesten
Hi, i agree that its no big deal, i am just trying to figure out some sort of guidelines for when we do include the type and when we dont. if we say that we only include the type when the component uses its model then neither Link nor Form qualify. in fact neither will ListItem. only things

Wicket @ berlin.jar Java Conference

2008-07-01 Thread Jan Kriesten
Hi, I will present Wicket at berlin.jar. The presentation will be based on my presentation from october last year (with some updates of course). I hope to see some of you around there! :-) More infos on berlin.jar at http://berlin.jar.jug-bb.de/ Best regards, --- Jan.

Re: WebPage markup error with latest trunk

2008-06-24 Thread Jan Kriesten
hi sven, Did somebody create a jira issue already? https://issues.apache.org/jira/browse/WICKET-1664 best regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: wicket generics

2008-06-07 Thread Jan Kriesten
hi igor, that's a mess. :-( i would go for decoupling component/model for 1.4 - that makes a clean cut for the api towards generics. everything else is just half-baked. my 2c, --- jan. - To unsubscribe, e-mail: [EMAIL

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

2008-06-04 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

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

2008-06-04 Thread Jan Kriesten
hi johan, and remove getModel/getModelObject methods from component itself? But then everybody that does use models have to implement it.. that would be the consequence with it's tradeoff. i wouldn't have a problem with that though: val myLabel = new Label('id') with StringModel( :-P )

Re: recursive component

2008-06-04 Thread Jan Kriesten
hi stefan, The think is the markup is required to be like this. The only thing I'd like to reduce is the written java code. In short I'd like to create a reusable node component that I can configure (with populateCaption() and populateChildren() callback methods perhaps) just like the Loop :)

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: 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 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 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: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Jan Kriesten
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

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

2008-06-02 Thread Jan Kriesten
Hi, I'm not sure I like where this discussion is going. I don't see anyone having any particular objections against current state. @matej_k: ugh - you should count again... if I counted right, most of the responses yet prefer 'Component' /not/ being touched by generics. +1, I agree. I

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

2008-06-02 Thread Jan Kriesten
Hi Matej, Question is, how many of those users actually use generified wicket on day-to-day basis. well, I did, and it really doesn't looked nice (and it doesn't work as it should in the end, but that's another story). The main point is (repeatedly) ignored by the people who are 'pro'

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

2008-06-02 Thread Jan Kriesten
Hi Sebastiaan, I *really* would like to see a clarification of this statement. In Wicket the component and model are very tightly coupled. that's part of the problem, agreed. What is a *good design* alternative, where only IModel is generified? getModelObject() returns Object? getModel

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

2008-06-02 Thread Jan Kriesten
Hi Sebastian, What about getModel()? If componennt is not generified I'm really wondering if the there is any benefit to generics at all... (I do really think it will spawn lots of questions on the list as well). what's the problem with getModel? If you specialize on a certain Component,

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

2008-06-02 Thread Jan Kriesten
Hi William, If you use more than one type of model for a given component I would hardly say that it is only a fraction of the time. Do you use only one type of model on all your components? :o) read again - I said 70% of my components don't have a Model... The use of Void is not an obscure

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

2008-06-02 Thread Jan Kriesten
hi william, Wouldn't that infer that the component has to have generics, or am I missing something here? you miss something... getModel/getModelObject would have to be non-final and overriden by the specialized component (return types are covariant, so you can override object with

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

2008-06-02 Thread Jan Kriesten
hi william, Enlighten me with an example just like that: Component { public object getModelObject(){ ... } } FormComponentT extends Component { public T getModelObject() { ... } } regards, --- jan. - To unsubscribe,

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

2008-06-02 Thread Jan Kriesten
hi sebastiaan, You could use Java's covariant return types to override getModel() to return a specific type. Which would mean that you would need to subclass to simulate generics (with a new subclass for each type). not really, you can do generify your components from a certain level and

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

2008-06-02 Thread Jan Kriesten
hi al, The second is almost certainly worth doing. That said, I use PropertyModel more often than anything else, and that doesn't allow you to make any guarantees anyway. :-/ good point. :-) regards, --- jan. - To

Re: Wicket and Google Gears / Adobe AIR

2008-05-27 Thread Jan Kriesten
just curious: what use does an air application have from a server-side html-rendering engine ? hehe - you could use wicket as a xml-engine creating valid flex-markup... ;-) regards, --- jan. - To unsubscribe, e-mail: [EMAIL

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Jan Kriesten
Hi Johan, I thing that the example below is exactly the thing that generics are pretty good: populateItem(ListItemPerson item) { add(new LinkPerson(edit, item.getModel()) { public void onClick() { setResponsePage(new EditPage(getModelObject())); } }); (and

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Jan Kriesten
Hi Johan, But i really dont think that Person in link is redundant why is it? the point was, that in this case Link simply doesn't need to have given a model at all, since you can access the surrounding final vars (you can access the item in onClick): populateItem(final ListItemPerson

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Jan Kriesten
Hi Johan, ahh yes thats true i overlooked your changes.. then yes currently you have to do new LinkVoid (to get rid of the warnings) there are quite annoying many cases of this kind, where you really just don't need to add models to components and have to boilerplate these with Void or

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Jan Kriesten
hi sebastiaan, I'm very much against using generics to do something other from what generics where meant to do (i.e., type safety). i'm all in when you're talking about type safety. having compile-time checks on the types is a time-saver during development. with wicket generics it's just

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Jan Kriesten
hi johan, But if you have a lot of LinkVoid for you cases then make 1 simple subclass of Link so anyone make your own wrapper to get readable sources again? let me think: how many webmarkupcontainer, link, page etc. classes do i use with void? i don't think that's a serious option. ---

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Jan Kriesten
Hi Doug, The bottom line was that the work didn't take that long and in the end I feel my code is more readable and type-safe. I have tried 4 times to convert my 1.3 codebase to 1.4 - and failed 4 times. All in all I spent 3 days and just reverted it. There are API changes thru generics,

Re: (Class? extends Page?) casting troubles

2008-05-21 Thread Jan Kriesten
Hi, IModel getModel() Object getModelObject() I can live with having these methods not being generified. for my own cases, generics have been also been more pain- than helpful with Wicket. I don't see any _real_ advantage in having all components needing a type just for the sake of typing

Re: Scheduler in wicket

2008-05-15 Thread Jan Kriesten
hi, I am planning to use quartz, but before starting to integrate it in my wicket's app i would like to know if anybody have used it or another scheduler with wicket. quartz is a good choice - it just works (tm). best regards, --- jan.

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Jan Kriesten
hi johan, I will also open up Localizer api a bit more so that you can override the cache that is used: please make sure, that you also remove the direct access on the cache to check if it contains a certain key: // Value not found are cached as well (value = null) if ((cacheKey != null)

  1   2   >