Re: Nicer URLs in Wicket

2007-07-29 Thread Johan Compagner
/mount/point!MK!3!MK! johan On 7/29/07, Matej Knopp [EMAIL PROTECTED] wrote: The example is also online: http://wicketstuff.org/wicket13/ajax/ So far I'm not sure what should the default look like /mount/point|3| or /mount/point(3) or maybe something else? Does anyone have an opinion

Re: Can we do straight print in a java web application?

2007-08-19 Thread Johan Compagner
where is the print server installed?? on the client? then talking to it from the server is pretty hard (the client has to initiate everything) but als installing such a thing is not really user web friendly. Why cant you generate it on the server (html, pdf or just an image) then send that back?

Re: Servlet spec 2.3 vs. 2.4

2007-08-20 Thread Johan Compagner
they should run fine on 2.4 (tomcat 5) or 2.5. (tomcat 6) as long as the 2.4/2.5 methods are not called. I guess they are just new methods that aren't implemented yet? johan On 8/20/07, David Leangen [EMAIL PROTECTED] wrote: Just out of curiosity... Is there a reason why Wicket is using

Re: How to set wicket's locale?

2007-08-22 Thread Johan Compagner
then you browser tells wicket that it should use English . But you can set it yourself: Session.setLocale() johan On 8/22/07, smithfox [EMAIL PROTECTED] wrote: I used RequiredTextField, when the field is empty, the feedback show some meesage in English, How to change it to Chinese. --

Re: wicket vs tapestry ?

2007-08-22 Thread Johan Compagner
i think igor has some more info... On 8/22/07, Alex Shneyderman [EMAIL PROTECTED] wrote: I just started to look for a component based framework. I came across both tapestry and wicket (and it would be hard not to as you guys share the same host) but I kind of fail to see what the differences

Re: PageStore listener...

2007-08-23 Thread Johan Compagner
Or make the fields itself not transient, but a proxy that has a transient field and the proxy can deserialize and inject itself again (see wicket-ioc project) johan On 8/23/07, Matej Knopp [EMAIL PROTECTED] wrote: Why can't you just implement read/writeObject on your page/component? -Matej

Re: Constructor of Component not DRY?

2007-08-23 Thread Johan Compagner
i think that is grown this way, previously the model constructor did some more i believe Also i don't like this(id,null) because thats just horrible, If you call the constructor with the model then the model shouldn't be null. a nicer way could be public Component(final String id, IModel

Re: Component Factory and code against interface

2007-08-24 Thread Johan Compagner
/24/07, Sam Hough [EMAIL PROTECTED] wrote: Thanks Johan, Glad it wasn't a totally silly idea. Any top tips or problems you can share? Nice that Igor's approach by its very nature avoids sending the same component more than once. Trees are great ;) Johan Compagner wrote: this is how we

Re: Migration to Wicket 1.3

2007-08-28 Thread Johan Compagner
http://wicketstuff.org/wicket13/forminput/ and for example the string field reports the message just fine. So what are you doing different? johan On 8/28/07, dzenanr [EMAIL PROTECTED] wrote: I have done the following in my form and still no error messages displayed (key is a String

Re: Panel/Localizer issue

2007-08-29 Thread Johan Compagner
i changed it on 2 places. On 8/29/07, Johan Compagner [EMAIL PROTECTED] wrote: yes that should also be lazy through a model can you create an jira issue ? (with a patch if possible) On 8/29/07, Edvin Syse [EMAIL PROTECTED] wrote: I have found that when I create a new Palette

Re: No localizer has been set

2007-08-30 Thread Johan Compagner
yes then you give the component for which it can get a localizer. But i fixed it already in trunk anyway. toString() won't try to construct the message johan On 8/30/07, Martin Bednář [EMAIL PROTECTED] wrote: Johan Compagner napsal(a): thats odd on your production machine you have enabled

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Johan Compagner
look at the source :) On 8/31/07, Thomas Singer [EMAIL PROTECTED] wrote: Matej and Johan, thanks for your feed-back. I've tried to avoid the WicketSessionFilter and make everything work from our code. Just curious: is the WicketSessionFilter handled something special by Wicket? Or how does

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-08-31 Thread Johan Compagner
: - Where the httpSession attribute with the sessionKey is set? - Is there a working example available where WicketSessionFilter is used? Tom Johan Compagner wrote: again look at the source :) Session.get() will create a WicketSession object. (Session.findOrCreate ()) And if you then make

Re: Session.get() from non-Wicket-Filter/Servlet and the RequestCycle

2007-09-01 Thread Johan Compagner
we already have that but it is not in the filter because the filter doesn't have anything to do with that kind of stuff its in WebApplication.getSessionAttributePrefix(final WebRequest request) (dont know why it needs the request param) and then appended with: Session.SESSION_ATTRIBUTE_NAME

Re: AjaxFallbackButton really require Form in constructor?

2007-09-03 Thread Johan Compagner
It is needed i guess if we say that the method protected abstract void onSubmit(AjaxRequestTarget ajaxrequesttarget, Form form1); needs a form parameter that can't be null Also i see something strange in the AjaxButton because if you dont give the form then the form parameter can be null:

Re: Change of Button interface

2007-09-03 Thread Johan Compagner
The intent was that not all kind of components could be a button because of the single inheritance that java gives us But like Matej said, everywhere we do an instance check of button we should change that to do it on IFormSubmittingComponent johan On 9/3/07, David Leangen [EMAIL PROTECTED]

Re: Component Factory and code against interface

2007-09-04 Thread Johan Compagner
a bit more info: in wicket 1.3 (default with SLC) the change objects aren't really used anymore (they are not stored). They only cause an increment of the page version number.. johan On 9/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: igor.vaynberg wrote: On 8/23/07, Sam Hough [EMAIL

Re: compressing javascript resources

2007-09-04 Thread Johan Compagner
and in the mean time your code is obfuscated and hard to read/copy :) On 9/3/07, Ryan Sonnek [EMAIL PROTECTED] wrote: Most of the good minification libraries do more than just stripping comments. usual features include: * strip comments * rename local variables to save space (ex:

Re: compressing javascript resources

2007-09-04 Thread Johan Compagner
And if yui uses that one for there own then yes it works pretty good, code is hardly readable anymore ;( On 9/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 9/1/07, Matej Knopp [EMAIL PROTECTED] wrote: Well, I certainly didn't want to reinvent the wheel. But all existing solutions I was

Re: compressing javascript resources

2007-09-04 Thread Johan Compagner
thats a pretty nice one, it also compresses CSS. It does depend on rhino and another jar so its a total of 3 jars so it should be outside the wicket core or extentions (a project by itself?) also all the examples that i see are with the command line and input filenames i hope it has a interface

Re: compressing javascript resources

2007-09-04 Thread Johan Compagner
don't know if that is really feasible to do. because then we have to scan through the complete classpath for resources like js and css and then compress them all and keep a reference to that compression all the time thats could be quite a waste. it all depends on how long it really takes johan

Re: NoClassDefFoundError: Tomcat problem?

2007-09-04 Thread Johan Compagner
thats very odd if that is the case, looks like a tomcat bug to me. On 9/4/07, Ghodmode [EMAIL PROTECTED] wrote: On 9/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: go to quickstart dir and run mvn package, that will create a war you can deploy on any servlet container. -igor I

Re: compressing javascript resources

2007-09-04 Thread Johan Compagner
into the jar and select the better (original, minified, gzipped,...) A possible advantage, is for user of frontal like Apache, lighttpd,... to serve those static resources Johan Compagner wrote: yeah but a one time hit shouldn't be to much of a problem..cache the result The problem with wicket

Re: compressing javascript resources

2007-09-04 Thread Johan Compagner
, minified+gzipped * ... The rules that manage the selection of the stream are configured at the Application/ResoursesSettings level. /david Johan Compagner wrote: i don't think that will work very easily because the component will make ResourceReferences to its internal css and js files

Re: java.lang.VerfiyError with @SpringBean

2007-09-04 Thread Johan Compagner
Mr igor has this to say: tbh it looks like a problem in cglib bytecode generation. i think i have seen this once when i was writing salve, but i dont remember exactly what caused it :| if nothing he tries works you can always tell him to extract an interface out of commentservice and use that -

Re: Thank you note

2007-09-05 Thread Johan Compagner
+1! On 9/4/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Why thank you! (made me blush) On 9/4/07, Cristi Manole [EMAIL PROTECTED] wrote: I guess it's not that appropriate to write a thank you note on this address, but i just couldn't help myself. What you guys did with this framework

Re: Change of Button interface

2007-09-05 Thread Johan Compagner
, so I'll go with whatever you decide. Should I send in the patch? Cheers, Dave On Tue, 2007-09-04 at 09:09 +0200, Johan Compagner wrote: we can look to add those to the interface but maybe it is better to cast to a Component (that has those methods) they should be components anyway

Re: JavaScript Frameworks

2007-09-05 Thread Johan Compagner
stupid thing is that all those slides and fades and fancy ui things are not really ajax.. thats just JavaScript/DHTML johan On 9/5/07, bmarvell [EMAIL PROTECTED] wrote: Sorry if this has been asked several times but it I didn't easily find it from a search. Fair enough about the actual

Re: JavaScript Frameworks

2007-09-05 Thread Johan Compagner
ahh so you want to do real programming in the javascript? So attaching purely in client side javascript events and those events call the server? Thats not how wicket works, in wicket you normally don't program javascript you get it pushed and the events get attached by the serverside. johan On

Re: write translated messages in renderhead

2007-09-05 Thread Johan Compagner
String js += var myMsg = ' + JavascriptUtils.escapeQuotes(new ResourceModel(MY_MSG, null) + ) + ';; that looks a bit wrong, try something like this String js += var myMsg = ' + JavascriptUtils.escapeQuotes(new ResourceModel(MY_MSG, null).getObject() + ) + ';; On 9/5/07, Marieke Vandamme [EMAIL

Re: Tracking down an elusive error during migration to 1.3

2007-09-05 Thread Johan Compagner
thats odd ValueMap is just a hashmap so why it wants to get a username is strange testing.. johan On 9/5/07, Matej Knopp [EMAIL PROTECTED] wrote: Looks like a bug in property resolver that it doesn't handle maps properly. Johaaan? -Matej On 9/5/07, David Leangen [EMAIL PROTECTED] wrote:

Re: Tracking down an elusive error during migration to 1.3

2007-09-05 Thread Johan Compagner
is also something really going wrong?? because 501 is this: try { method = clz.getMethod(is + name, null); } catch (Exception e) { log.debug(Cannot find getter + clz + . + expression, e); }

Re: How to set wicket's locale?

2007-09-05 Thread Johan Compagner
can you make an jira issue for this? On 9/4/07, Gabor Szokoli [EMAIL PROTECTED] wrote: Uh, oh, one more quick thing: I'm still on wicket 1.2, and my wicket:message labels retain their text in the locale they were first rendered in. Is there anything I can do on locale changes to make them

Re: Tracking down an elusive error during migration to 1.3

2007-09-06 Thread Johan Compagner
Vaynberg [EMAIL PROTECTED] wrote: you wrote it! :) -igor On 9/5/07, Johan Compagner [EMAIL PROTECTED] wrote: is also something really going wrong?? because 501 is this: try { method = clz.getMethod(is + name, null

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
I take the discussion is about removing onPopulate now? why not keep onPopulate and remove the final? On 9/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the reason for it being final is that the super.onbeforerender() call HAS to be done last, otherwise new items do not get onbeforerender

Re: DIV TAG HEADER DO NOT WORK IN WICKET

2007-09-06 Thread Johan Compagner
TSEE IS THAT AS LOUD AS YOU CAN GET? On 9/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: WHAT IS WRONG WITH IT? -IGOR On 9/6/07, bhupat parmar [EMAIL PROTECTED] wrote: THE HEADER IS NOT WORKING DIV id=header UL LIA href=# wicket:id=homeLinkHome/A/LI

Re: And The Fastest Growing Web Framework Is...

2007-09-06 Thread Johan Compagner
http://www.indeed.com/jobtrends?q=java%2C+jsfl= java is all you need to know for wicket so jsf seems pretty low to me in that picture.. On 9/6/07, cowwoc [EMAIL PROTECTED] wrote: This might be of interest to the Wicket community: http://www.javalobby.org/java/forums/t101110.html -- View

Re: And The Fastest Growing Web Framework Is...

2007-09-06 Thread Johan Compagner
In Germany, the best sold car is the VW Golf. But does this mean I should buy one? No, there are a lot of better alternatives (in the meaning of quality and design, for example). really? i thought it was German Build Quality! The best there is! Are there even better? (don't mention now

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
please tell me, tell me! johan On 9/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: because the final is there for a very important reason? -igor On 9/6/07, Johan Compagner [EMAIL PROTECTED] wrote: I take the discussion is about removing onPopulate now? why not keep onPopulate

Re: How to set wicket's locale?

2007-09-06 Thread Johan Compagner
, session.foo.sushi.bar); ? On 9/6/07, Gabor Szokoli [EMAIL PROTECTED] wrote: On 9/5/07, Johan Compagner [EMAIL PROTECTED] wrote: can you make an jira issue for this? https://issues.apache.org/jira/browse/WICKET-936 Any ideas on encapsulating the session as a propertymodel

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
that super.onbeforerender() be called last, that way it will cascade to any new items added in repeater's onbeforerender(). -igor On 9/6/07, Johan Compagner [EMAIL PROTECTED] wrote: please tell me, tell me! johan On 9/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: because the final

Re: @SpringBean and serialization checker

2007-09-06 Thread Johan Compagner
the custom serialization is already off by default for quite some time the org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: only kicks in (so also for the default) when an IOException happens with writeObject So that you get a nice trace which field it exactly is of

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
for keeping onpopulate, it would just be confusing -igor On 9/6/07, Johan Compagner [EMAIL PROTECTED] wrote: and? why can't AbstractRepeater.onBeforeRender() be not final? If i overwrite to do what ever i want (but i do need to call onBeforeRender at some point else we generate an error

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
thats why i said the concreet repeaters that implement onPopulate should make them final also what do you mean with funny errors, you only get funny errors when you override both or 1 and start calling the other. calling super on different times in your onBeforeRender doesn't create anything funny

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
that i could make onbeforerender final. -igor On 9/6/07, Johan Compagner [EMAIL PROTECTED] wrote: thats why i said the concreet repeaters that implement onPopulate should make them final also what do you mean with funny errors, you only get funny errors when you override both or 1

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
this drain my attention span. the only reason i introduced onpopulate is so that i could make onbeforerender final. -igor On 9/6/07, Johan Compagner [EMAIL PROTECTED] wrote: thats why i said the concreet repeaters that implement onPopulate should make them

Re: Why the AbstractRepeater#onBeforeRender is final wicket-1.3.0-SNAPSHOT (6 sept 2007)?

2007-09-06 Thread Johan Compagner
sure no problem, just point them out :) On 9/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: well, whenever those emails comein...why doesnt onbeforerender is getting called...you can answer them :) -igor On 9/6/07, Johan Compagner [EMAIL PROTECTED] wrote: who? that overrides

Re: {wicket 1.3 beta 3} Howto add keywords No cache etc?

2007-09-07 Thread Johan Compagner
2 tags generating the same milisecond for the same client/session? that looks very very very odd to me. johan On 9/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Actually we discussed that. I suggested it but as Matej wrote: don't think so. you can have two tags

Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-07 Thread Johan Compagner
hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i will also drag Maurice to the table. johan

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-07 Thread Johan Compagner
could do this a bit more near belgium? :-) On 9/7/07, C. Bergström [EMAIL PROTECTED] wrote: Johan Compagner wrote: hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i

Re: Disable the SecondLevelPageCache?

2007-09-10 Thread Johan Compagner
invocation count 1?? So you only do 1 request and you profile that? thats not a good test. You have to do plenty and multiply on the same time (10 for 100 request or something like that) to really see the difference. (and have a warm up phase) johan On 9/10/07, Alex Objelean [EMAIL

Re: Disable the SecondLevelPageCache?

2007-09-10 Thread Johan Compagner
[EMAIL PROTECTED] wrote: Maybe the profiling was not a perfect one. But still, I have to give up using SecondSessionLevelStore just because the responsiveness of the application is very slow. Johan Compagner wrote: invocation count 1?? So you only do 1 request and you profile

Re: How to force a delete (from disk) of the session from the session store?

2007-09-10 Thread Johan Compagner
you should call invalidate() anyway instead of invalidateNow() there could maybe be usecases where you should call the invalidateNow() for example if you want to invalidate the current http session and make in the same request a new one (if that is possible??) But you should do invalidate()

Re: Wicket Stuff Dojo Repository

2007-09-10 Thread Johan Compagner
yes please change this because else i can keep on deleting constantly stuff :( On 9/10/07, Maurice Marrink [EMAIL PROTECTED] wrote: @vincent Hmm, looks like you are generating unique id's for your snapshots. I don't think that is wise as the server will run out of disk space like that in no

Re: Disable the SecondLevelPageCache?

2007-09-10 Thread Johan Compagner
as IPageStore (specified in session store constructor). Then go to your tmp dir and you should be able to find the serialized pages there. -Matej On 9/10/07, Alex Objelean [EMAIL PROTECTED] wrote: How can I figure it out? Johan Compagner wrote: if you save the page to disk how

Re: Disable the SecondLevelPageCache?

2007-09-10 Thread Johan Compagner
of the fields, the size of the page dropped dramatically. Alex. Johan Compagner wrote: you got to be kidding me...32MB really? Or is this a nice joke so in the middle of the day :) johan On 9/10/07, Alex Objelean [EMAIL PROTECTED] wrote: It is about 32MB. Kind

Re: Form.updateFormComponentModels bug?

2007-09-10 Thread Johan Compagner
The extra memory for the ClickListener is negligible and does give you more flexibility because now you can have more than one interested party for the link click. My use case (fetch nested component, add listener) was already answered sufficiently by Martijn (bad OO, components should

Re: Disable the SecondLevelPageCache?

2007-09-10 Thread Johan Compagner
and also keep the ui state down to a minimum - which will make your app clusterable and thus scalable for the future. the app is clusterable it could serialize it just fine ;) 32MB and everything is serializeable thats an accomplishment! johan

Re: Wicket validation flaw?

2007-09-10 Thread Johan Compagner
convertvalue() isn't called for a datefield i think... because i think the type is set (to Date) and then the converter is called: convertedInput = converter.convertToObject(getInput(), getLocale()); so i don't think it will be trimmed... johan On 9/7/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

Re: Page state, undo and versioning?

2007-09-10 Thread Johan Compagner
and that shouldn't be done because then backbutton or what ever you do will always request the page again, that would fix our back button problem even more :) but thats a horrible user experience johan On 9/10/07, Matej Knopp [EMAIL PROTECTED] wrote: It doesn't set the no-store flag.

Re: First Day Disgust!

2007-09-10 Thread Johan Compagner
what are we to provide? a prebuilt project for eclipse? a prebuilt project for netbeans? a prebuilt project for idea? a prebuilt project for jedit? a prebuilt project for ant? a prebuilt project for make? a prebuilt project for buildr? a prebuilt project for foo? i want Igors Special Build

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Johan Compagner
is helpful to me :) Amersfoort is fine for me. Danny On 9/7/07, Johan Compagner [EMAIL PROTECTED] wrote: hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i will also drag

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-11 Thread Johan Compagner
just like last week? On 9/11/07, Maurice Marrink [EMAIL PROTECTED] wrote: I don't think Martijn will be here tomorrow Johan. He has taken some time off to work on the book. Maurice On 9/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 9/11/07, Wouter Huijnink [EMAIL PROTECTED] wrote:

Re: Default focus behavior for ajax request

2007-09-11 Thread Johan Compagner
see my comments in that issue. Its not that we have to do something on the serverside this is a clientside issue. johan On 9/11/07, Carlos Pita [EMAIL PROTECTED] wrote: behavior if the event is onblur. Can you submit RFE? Done. I filed it as minor improvement

Re: Exception

2007-09-12 Thread Johan Compagner
i think we are closing the response now later then we did even after Session.detach() will look at it. On 8/30/07, Jan Kriesten [EMAIL PROTECTED] wrote: Hi, with the latest snapshot I get the following exception when invalidating a session: ---8--- [09:46:04.142]

Re: Exception

2007-09-12 Thread Johan Compagner
hmm we always closed the buffer at that place it seems that resin suddenly wants to do a save of session objects when it wants to redirect that seems very odd, it should at least test if it can do that. I would report a bug by caucho. johan On 8/30/07, Jan Kriesten [EMAIL PROTECTED] wrote:

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-12 Thread Johan Compagner
i think that will be a bit to much for a first time user group meeting that is more or less for dutch people (but ofcourse everybody is welcome) johan On 9/12/07, Arje Cahn [EMAIL PROTECTED] wrote: Hi there, Great to see that there's so much interest in a Wicket meeting in The Netherlands!

Re: How to remove a page from Wicket's back button memory?

2007-09-12 Thread Johan Compagner
On Sep 12, 2007, at 12:59 AM, Johan Compagner wrote: page.getPageMap().remove(page) johan On 9/12/07, Justin Morgan (Logic Sector) [EMAIL PROTECTED] wrote: Hi, Okay, another newbie question. :) I have some secured pages that require a user login. The main page

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-13 Thread Johan Compagner
looks like a good idea On 9/13/07, Wouter Huijnink [EMAIL PROTECTED] wrote: Maybe it's an idea to setup a Wiki page where people can add their name so we really get some insight in how many people would actually be interested in joining such a meetup? Maybe it's just 10 and then I'll shut

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-15 Thread Johan Compagner
because it seems there can be quite a lot of people i have to look around where to do it. and also what kind of day because this many people then 2,3 hours in the evening is maybe a bit to little time. we could do it in a weekend on saturday (afternoon) and then maybe later on getting something to

Re: compressing resources which are not in the classpath

2007-09-17 Thread Johan Compagner
shared resources and refenences to it are for basic use pretty simple, SharedResourece.add() adds a resource under a specific name, and then you make a ResourceReference with that same name in your component that has a src or href that wants to show the resource On 9/17/07, Andrew Klochkov [EMAIL

Re: serving images from db - direct url access

2007-09-17 Thread Johan Compagner
look at WebApplication.mountSharedResources() and RequestCycle.urlFor(final ResourceReference resourceReference, ValueMap parameters) johan On 9/17/07, Leszek Gawron [EMAIL PROTECTED] wrote: Hello, I already know how to serve an image from database - dead easy. Thing is the image is a

Re: serving images from db - direct url access

2007-09-17 Thread Johan Compagner
thats completely automatic. in your Resource that you have mounted under /images/ when you get a request to it you just do: Resource.getParameters() johan On 9/17/07, Leszek Gawron [EMAIL PROTECTED] wrote: Johan Compagner wrote: look at WebApplication.mountSharedResources

Re: Error in invalidateNow()

2007-09-18 Thread Johan Compagner
we really should make that invalidateNow() method very hard to find or something like that. don't use invalidateNow() so easily that is only valid is very very specific circumstances. just call invalidate() But what you encounter is a bug that should be fixed if it isn't already by matej johan

Re: threading issues - continued

2007-09-18 Thread Johan Compagner
the nullpointer comes from outside of wicket (criterion class) but you say if you click quickly you only get it? all pages are blocked by a barrier that is build around the pagemap. its in Session.get page method. only 1 request can pass that at the same time.

but what is suddenly null that you

Re: wicket scalability

2007-09-19 Thread Johan Compagner
What do you mean with Scaling? Wicket scales pretty well. because we fully support clustering out of the box. So you can add just add new servers. Wicket it self is fast, the database would be much more of a bottleneck. johan On 9/19/07, Lowell Kirsh [EMAIL PROTECTED] wrote: For work I'm

Re: PropertyResolverConverter and non-String values

2007-09-19 Thread Johan Compagner
thats final you could try to do something with: protected Object convertChoiceIdToChoice(String id) But that is an id and how is that id converted to what? Is that the ClassDescriptionBean? And that Again must be converted to something else? johan On 9/19/07, Federico Fanton [EMAIL PROTECTED]

Re: threading issues - continued

2007-09-19 Thread Johan Compagner
suspicion is that the browser is still busy parsing the last update and click B sends a form in an intermediate state. Does that sound likely? I've seen it in the past that after innerHTML you have to wait a while to access the DOM. Johan Compagner wrote: do you click fast on a dom

Re: StringResourceModel.toString()

2007-09-23 Thread Johan Compagner
toString is for debug (except for the default String/Number classes and so on) The problem is that StirngResourceModel uses internal stuff that doesnt have to be set at that time of the toString() call so debug statements don't work and generate nullpointers. johan On 9/21/07, Jan Kriesten

Re: Possible to validate file size prior to sending?

2007-09-23 Thread Johan Compagner
wow, uploading 200+mb files! and you still go over that?
i don't think we get the size somehow in advance On 9/21/07, spencer.c [EMAIL PROTECTED] wrote: I have a form with a FileUploadField, where the maximum file size is fairly large (100-200MB). I set the maximum size using the form's:

Re: NoSuchMethodException / PropertyResolver

2007-09-25 Thread Johan Compagner
thats just a debug log: * catch* (Exception e) { *log*.debug(Cannot find getter + clz + . + expression, e); } maybe i should just delete that log statement to kill the confusion. johan On 9/25/07, Phillip Rhodes [EMAIL PROTECTED] wrote: Hi guys, I'm seeing a weird problem with Wicket.

Re: auto dirty and widget factory

2007-09-26 Thread Johan Compagner
we already have a change recorder on a page for its components, all the methods you mention should also call that.
Then it can also be made much more fail prove because a component should just 'fire' call the change method. because state is not just those what you mention but could be anything On

Re: auto dirty and widget factory

2007-09-26 Thread Johan Compagner
but this discussion is not just about getter/setters (i don't care about those) but also for add and remove.. then we are getting into some other stuff johan On 9/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 9/26/07, Martijn Dashorst [EMAIL PROTECTED] wrote: I disagree. We need to

Re: auto dirty and widget factory

2007-09-27 Thread Johan Compagner
componentChanged(component) on a page (or somekind of listener) and that component did trigger it self what ever did happen on it (getting a child, settting the visibility, or setting an internal none wicket core property) johan On 9/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 9/26/07, Johan

Re: auto dirty and widget factory

2007-09-27 Thread Johan Compagner
recorder: http://www.nabble.com/forum/ViewPost.jtp?post=12473029framed=y Did I get the wrong end of the stick? Johan Compagner wrote: we already have a change recorder on a page for its components, all the methods you mention should also call that.
Then it can also be made much more fail

Re: Clustering Question - Can the 2nd Level Page Cache be shared in a clustered filesystem configuration?

2007-09-28 Thread Johan Compagner
Why don't you want session sticky load balancing? How does none sticky sessions work then? If there are 2 request comming in then wicket makes sure that the page is access in one thread. So that the page is not changed by 2 threads at the same time Does your application server lock over the nodes

Re: Clustering Question - Can the 2nd Level Page Cache be shared in a clustered filesystem configuration?

2007-09-28 Thread Johan Compagner
Serialize to the session is a completely wrong statement Nothing is serialized into the session, it is put in the session. and then the application server can serialize the session to other nodes or to disk or what ever. If you have an standard app server and you don't have multiply nodes and you

Re: auto dirty and widget factory

2007-09-28 Thread Johan Compagner
by the final thing since I'd like them gone for my auto-dirty, first/last class attribute and so I can keep using onClick and onSubmit... If I'm hitting an imaginery brick wall then I'd be delighted to be shown the light. Cheers Sam Eelco Hillenius wrote: On 9/26/07, Johan Compagner

Re: auto dirty and widget factory

2007-09-28 Thread Johan Compagner
yes we do we use it still extensively we dont cache the changes anymore those are gone, but we still uses it to bump up the versions else how can we do that? johan On 9/29/07, Matej Knopp [EMAIL PROTECTED] wrote: On 9/27/07, Johan Compagner [EMAIL PROTECTED] wrote: the problem

Re: auto dirty and widget factory

2007-09-28 Thread Johan Compagner
but then still we have the event.. johan On 9/29/07, Matej Knopp [EMAIL PROTECTED] wrote: newVersion(); looks much better to me than addStateChange(new ChangeThatIsNotUsedAnyway() { public void undo() }); -Matej On 9/29/07, Johan Compagner [EMAIL PROTECTED] wrote: yes we do we

Re: auto dirty and widget factory

2007-09-29 Thread Johan Compagner
) or anywhere I like. Matej Knopp-2 wrote: On 9/27/07, Johan Compagner [EMAIL PROTECTED] wrote: the problem is that that still not really does auto dirty.. Because where does it end? just add/remove/visitble/enable? The nice thing is we have already something like that: thats page versioning

Re: auto dirty and widget factory

2007-09-29 Thread Johan Compagner
, Johan Compagner [EMAIL PROTECTED] wrote: but then still we have the event.. johan On 9/29/07, Matej Knopp [EMAIL PROTECTED] wrote: newVersion(); looks much better to me than addStateChange(new ChangeThatIsNotUsedAnyway() { public void undo() }); -Matej

Re: auto dirty and widget factory

2007-09-30 Thread Johan Compagner
be happy with a 90% solution that was very simple and that was what I was after. Something like the change tracker would be lovely but it seems in doubt if that will even exist for long. I won't raise this issue again. Thanks for your time. Johan Compagner wrote: i have told you now i

Re: substitute same value in several places

2007-09-30 Thread Johan Compagner
look at BoundedCompoundPropertyModel (i could type the name a bit wrong, cant check at this time) With that you can do something like: label1.setmodel(bcpm.bind('key') and do the samething for label2 On 9/27/07, Peter Dotchev [EMAIL PROTECTED] wrote: Hi, I'd like to use the same value in

Re: Presented Wicket to my Company...

2007-09-30 Thread Johan Compagner
nicely said! could be adde to our webpage/wiki! On 9/29/07, Ryan Holmes [EMAIL PROTECTED] wrote: Arguments that should get some traction with managers: - Wicket is more productive than JSF. The simple creation of custom components, lack of XML configuration and tight Ajax integration mean

Re: Wicket Meetup Amsterdam: a proposal

2007-10-02 Thread Johan Compagner
i also have been asking around for a big room. And Servoy is willing to sponser a big room if needed (if there are really comming 30+ people) The problem is that the coming 2 weeks i can't do much about it because first we (servoy) has its own conference next week (servoy world) johan On

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Johan Compagner
are you talking about 1.2 or 1.3? in 1.2 a session could grow a little bit because we have there max 7 pages that all also can contain some version info. But as you said when you do setResponsePage(Page.class) everything drops to normal that means that you have to use 1.3 because then the newly

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Johan Compagner
ok found it, We are leaking auto add html header containers. Looking to fix it. On 10/3/07, Johan Compagner [EMAIL PROTECTED] wrote: are you talking about 1.2 or 1.3? in 1.2 a session could grow a little bit because we have there max 7 pages that all also can contain some version info

Re: Session size is constantly increasing on setResponsePage(getPage())

2007-10-03 Thread Johan Compagner
for this or is it to minor to justify the overhead? bw, Martin Johan Compagner wrote: ok found it, We are leaking auto add html header containers. Looking to fix it. On 10/3/07, Johan Compagner [EMAIL PROTECTED] wrote: are you talking about 1.2

Re: webpage instance scope?

2007-10-03 Thread Johan Compagner
pages are stored in the session (if they are statefull, that means they have callbacks) A stateless page could maybe been seen as a request scope object. there is no such thing as a combination of those 2. johan On 10/3/07, dukehoops [EMAIL PROTECTED] wrote: Hi, I'm evaluating Wicket as

  1   2   3   4   5   6   7   8   9   10   >