Re: Prefill form not model?

2009-07-08 Thread Johan Compagner
The hack is awful Just have a detachable model that holds on first render the defaults then when a submit is done populate the object (another) that you want On 07/07/2009, Martin Makundi martin.maku...@koodaripalvelut.com wrote: The hack is cleaner 2009/7/7 James Carman

Re: Mysterious NullPointerException

2009-07-01 Thread Johan Compagner
Thats just a dumpstack of the current line in the onRuntimeException. Cant you just debug it somehow an break on exception? Or call fillstacktrace or something on it? Its weird that the exception it self just wont generate a stack.. On 01/07/2009, Jeremy Levy jel...@gmail.com wrote: Okay, I

Re: Component.getPage() always returns null

2009-06-27 Thread Johan Compagner
You cant do that in the bind because the bind is called when you add the behavior to the component and that is on construction time so the component itself isnt added to its parent, or the parent/panel isnt added to its parent (you are in the constructor of a panel) So the hierarchy isnt complete

Re: Component.getPage() always returns null

2009-06-27 Thread Johan Compagner
By the way what you want to do (adding a js reference to the page isnt needed at all, just do that in the render head of the component/behavior itself) wicket transfers it for you to the head of the page On 27/06/2009, Johan Compagner jcompag...@gmail.com wrote: You cant do that in the bind

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Johan Compagner
you do reply on an email with the subject [announce] Wicket 1.4-RC5 released so what bad could be happend here? I guess the website isnt updated yet. On Wed, Jun 24, 2009 at 12:55, Marcin Palka marcin.pa...@gmail.com wrote: Hi all, Did anything bad happen to the RC5? I mean I cannot see

Re: Apache Logs, Session IDs, and PageExpiredException

2009-06-19 Thread Johan Compagner
What do you mean with sessionid disappears? From the url? Thats basic tomcat, the first urls are with session id but if session cookie works it wont append it to the url, or you really have to tell tomcat that it has to do that everytime. On 17/06/2009, Jeremy Levy jel...@gmail.com wrote: We see

Re: [announce] Wicket 1.4-RC5 released

2009-06-19 Thread Johan Compagner
or add the lastmodifiedtimestamp to your resources (thats a wicket setting) On Fri, Jun 19, 2009 at 12:32, James Carman jcar...@carmanconsulting.comwrote: Only problem I'm having with 1.4-rc5 seems to be some JavaScript incompatibilities. I had to clear my cache to get some of my ajax stuff

Re: [announce] Wicket 1.4-RC5 released

2009-06-19 Thread Johan Compagner
no but you can turn it on. Then these problems are not an issue. On Fri, Jun 19, 2009 at 16:14, James Carman jcar...@carmanconsulting.comwrote: Is it turned on by default? I don't think I changed anything with respect to that setting. On Fri, Jun 19, 2009 at 9:33 AM, Johan

Re: [announce] Wicket 1.4-RC5 released

2009-06-19 Thread Johan Compagner
yes On Fri, Jun 19, 2009 at 17:07, James Carman jcar...@carmanconsulting.comwrote: I assume that's getResourceSettings().setAddLastModifiedTimeToResourceReferenceUrl(true)? On Fri, Jun 19, 2009 at 11:04 AM, Johan Compagner jcompag...@gmail.com wrote: no but you can turn

Re: Conversation scope in wicket

2009-06-18 Thread Johan Compagner
+1 that whole api like beginConversation, end etc just looks to me like set/get methods on session. Or and that is in my eyes better is to transport the conversation object (1 object not many) from 1 page to the next or use as below 1 page and just replace panels. And then the page model object

Re: status of the PageMap

2009-06-17 Thread Johan Compagner
about future plans?, How can i provide my own custom implementation? thanks Joe On Tue, Jun 16, 2009 at 9:19 PM, Johan Compagner jcompag...@gmail.com wrote: in 1.4 it is still an part of wicket. But it is not that needed anymore as before but that is sinse 1.3 when we started saving

Re: 1.4 trunk broken?

2009-06-16 Thread Johan Compagner
i do remember one change for that invalidurlexception (that we should throw that as an exception instead of just a page expired or something) On Tue, Jun 16, 2009 at 18:09, Stefan Lindner lind...@visionet.de wrote: Using current 1.4 trunk gives me the error [RequestCycle]

Re: status of the PageMap

2009-06-16 Thread Johan Compagner
in 1.4 it is still an part of wicket. But it is not that needed anymore as before but that is sinse 1.3 when we started saving to disk. johan On Tue, Jun 16, 2009 at 20:03, Joe Fawzy joewic...@gmail.com wrote: Hi alli was wondering , what is the status of the pageMap? i saw in the wiki

Re: [OFF TOPIC] Java desktop applications

2009-06-15 Thread Johan Compagner
+1000 On Mon, Jun 15, 2009 at 14:14, Christopher L Merrill ch...@webperformance.com wrote: nino martinez wael wrote: The largest issue about going towards a desktop solution with java are that designing the ui really are a pain if you dont use something like mattise, it's even worse that

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Johan Compagner
Ha this is funny, I hear things like swing is horrible to design, from users that use wicket so html apps. I guess those dont design the webapps themselfs, because if i have to choose i would choose swing or swt over html/css any day.. I really hate css For swing apps just have a good ui builder

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Johan Compagner
css is really crap (until i really can use box-sizing: border-box everywhere that will be a great relieve) who ever thought about that content-box should be shot and not through the head but shot at various places so that he will die a very painfull and slow death. its completely counter

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Johan Compagner
Yes if you dont want to have page expires you could try to use bookmarkable pages all the way and use the hybrid coding to get mixed book/session pages. Or store something in the db record the last page for every user... On 12/06/2009, Jeremy Thomerson jer...@wickettraining.com wrote: the path

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Johan Compagner
What you describe i already replied Thats the hybrid approache if pages can be stateless then wicket can generate already urls that can generate the page again if expired and the call the event On 12/06/2009, Martin Sachs sachs.mar...@gmail.com wrote: I wonder why this is so a big problem. On

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Johan Compagner
why would you encrypt the hybrid? 2009/6/10 Vytautas Čivilis vytautas.civi...@gmail.com Hi. Is it possible to use both? CryptedUrlWebRequestCodingStrategy understands only QueryStringUrlCodingStrategy (i.e. params encoded in x=1so=on format). Do I need to provide my own extension to

Re: HybridUrlCodingStrategy and CryptedUrlWebRequestCodingStrategy

2009-06-10 Thread Johan Compagner
logic or security related concerns. in the same manner as /path1/path2/param1=value1 would cvl Johan Compagner wrote: why would you encrypt the hybrid? 2009/6/10 Vytautas Čivilis vytautas.civi...@gmail.com mailto:vytautas.civi...@gmail.com Hi. Is it possible to use both

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Johan Compagner
[XXX] Yes release 1.4-rc5 On Tue, Jun 9, 2009 at 17:08, Jeremy Thomerson jer...@wickettraining.comwrote: I've created a release for Wicket 1.4-rc5. Until it is officially released, you can download from the following locations: SVN Tag:

Re: stack overflow in wicket-autocomplete.js

2009-06-08 Thread Johan Compagner
:11 Johan Compagner wrote: I guess it would be better to fix it. Have to look into the code better, do you have a patch for it? On 02/04/2009, Lutz Müller lutz.muel...@combase.de wrote: Hi, I have a problem with onfocus behaviour of autocompletetextfields in IE

Re: Ajax URL encoding and

2009-06-07 Thread Johan Compagner
: Johan Compagner [mailto:jcompag...@gmail.com] Gesendet: So 07.06.2009 00:25 An: users@wicket.apache.org Betreff: Re: Ajax URL encoding and ahh yes it is the ajax event behavior that is altered (thats an behavior that is attached to events so on attributes like onclick) which behavior

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
a1 = http://foo.bar:8080/app/CurrentPage s1 = http://foo.bar:8080/app/CurrentPage a2 = http://foo.bar:8080/app/ s2 = http://CurrentPage/ http://currentpage/ a1 , s1 are correct , a2 , s2 are totally wrong. a1 , s1 en a2 are all correct. but why s2 is a result when a2 is the input

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
it On Sun, Jun 7, 2009 at 19:03, smallufo small...@funp.com wrote: 2009/6/7 Johan Compagner jcompag...@gmail.com a1 = http://foo.bar:8080/app/CurrentPage s1 = http://foo.bar:8080/app/CurrentPage a2 = http://foo.bar:8080/app/ s2 = http://CurrentPage/ http://currentpage

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
that it doesnt give you the hostname/port is ofcourse a bug print out these variables: getRequestCycle().urlFor(CurrentPage.class ,pps).toString() I think that one time it will give you just the url and one time ../.././CurrentPage i guess that is your problem but you need to debug a bit

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread Johan Compagner
please attach a failing test case On Sun, Jun 7, 2009 at 21:16, smallufo small...@funp.com wrote: 2009/6/8 Johan Compagner jcompag...@gmail.com that it doesnt give you the hostname/port is ofcourse a bug I've submitted this bug to JIRA : https://issues.apache.org/jira/browse/WICKET

Re: ListMultipleChoice and HashSet

2009-06-06 Thread Johan Compagner
What does the converter of that component that is bound to the set create? It seems to me that that doesnt create a set object but only a user?? And then not a set of users is the argument but the user itself so bang you get that exception you have.. On 04/06/2009, Igor Vaynberg

Re: singletons, pools, wicket, web services and architecture

2009-06-06 Thread Johan Compagner
We (Servoy) use the same kind of stuff as you are building We also have a description of the UI and we use ComponentFactories (1 for swing 1 for web) to generate pretty much the exact same interface in swing and in the web. The web is ofcourse way harder because of html and not the least the most

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-06 Thread Johan Compagner
can you debug and see what this returns for both situations? ((WebRequest)RequestCycle.*get*().getRequest()).getHttpServletRequest() .getRequestURL().toString() On Sat, Jun 6, 2009 at 21:49, smallufo small...@gmail.com wrote: This is my code : String s1 =

Re: Ajax URL encoding and

2009-06-06 Thread Johan Compagner
This should be fixed in the current trunk i think yes getCallbackUrl doesnt escape the markup yet But the onComponentTag of the AjaxBehaviors should escape it right before it gets inserted into the attributes markup. On Sat, Jun 6, 2009 at 20:34, Stefan Lindner lind...@visionet.de wrote: In

Re: Ajax URL encoding and

2009-06-06 Thread Johan Compagner
. Von: Johan Compagner [mailto:jcompag...@gmail.com] Gesendet: Sa 06.06.2009 23:28 An: users@wicket.apache.org Betreff: Re: Ajax URL encoding and This should be fixed in the current trunk i think yes getCallbackUrl doesnt escape the markup yet But the onComponentTag

Re: Wicket and HTML5

2009-06-05 Thread Johan Compagner
and what browser are you planning to target... When will be the day that 50-80% of the users are using a html5 browser... On Fri, Jun 5, 2009 at 18:49, Igor Vaynberg igor.vaynb...@gmail.com wrote: what features are you referring to? -igor On Fri, Jun 5, 2009 at 5:32 AM, Gabriel

Re: test

2009-06-04 Thread Johan Compagner
nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: test test test test - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: test

2009-06-04 Thread Johan Compagner
so the message exactly tells you what the problem is (message too big for system) On Thu, Jun 4, 2009 at 17:23, Daniele sdaniel...@tiscalinet.it wrote: Johan Compagner ha scritto: nope doesnt work On Thu, Jun 4, 2009 at 17:18, Daniele sdaniel...@tiscalinet.it wrote: I have problem

Re: RequestLogger and session invalidation

2009-05-28 Thread Johan Compagner
why are you using invalidateNow? On Thu, May 28, 2009 at 10:11, Taneli Korri tko...@gmail.com wrote: On Thu, May 28, 2009 at 6:49 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Please open a JIRA so this doesn't get lost. I haven't looked, but it sounds wrong if it truly

Re: Whats wrong with my component?

2009-05-26 Thread Johan Compagner
doe NOT give the compound model to the FormComponents itself! only to the parent of the form component (so the panel) On Tue, May 26, 2009 at 10:53, HHB hubaghd...@yahoo.ca wrote: Please all forgive my ignorance as this is my first component. My custom component is just a text area and a

Re: AbortWithWebErrorCodeException(404) results in blank page

2009-05-25 Thread Johan Compagner
Your really just have to digg a bit into the container what it exactly does But you want that the conatainer redirects to a /404 url and that is again served by wicket? As a page that is mounted under /404? Is the url becoming /404? What happens if you just ask for that? On 25/05/2009, Sergey

Re: wicket features security plans for next version... already ended?

2009-05-15 Thread Johan Compagner
we already have url encryption (based on a session id as seed) On Fri, May 15, 2009 at 14:52, manuelbarzi manuelba...@gmail.com wrote: Hi, at wicket features security there is a mention about: There are plans for the next version of Wicket to add URL encryption to support highly secure

Re: wicket features scalability, clustering plans for next version... already ended?

2009-05-15 Thread Johan Compagner
nope that is dropped and isnt very likely implemented in a coming release On Fri, May 15, 2009 at 15:15, manuelbarzi manuelba...@gmail.com wrote: hi, again regarding wicket features scalability, clustering there is a mention about: The next version of Wicket will support client-side

Re: Detaching models

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

Re: Detaching models

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

Re: Get tag type?

2009-05-03 Thread Johan Compagner
You only can know then when it is getting rendered so not before. So for example the onComponentTag methods of component/behavior On 03/05/2009, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi How do I get the underlying tag type of a component (the tag the component are bound

Re: LoadableDetachableModel onDetach() event

2009-05-03 Thread Johan Compagner
We dont need to give the object to the method if we would call ondetach first and then set the boolen/clear the reference. You can then just call getModelObject to get it. I dont see currently all the implications if we change this. Can you make a jira issue so that we can track this? On

Re: Wicket Offline Applications

2009-05-03 Thread Johan Compagner
I cannot believe that a typical wicket application (and a banking app fall under that category) does well in offline mode, to me offline mode works if the app is just about personal data (like gmail for your email) because if that is not the case and loads of none peronal == shared data is used,

Re: [Improvement] getPageParameters()

2009-05-03 Thread Johan Compagner
make a jira issue for this. On Sun, May 3, 2009 at 11:38, Objelean Alex alex.objel...@gmail.com wrote: When using getPageParameters(), I used to have some troubles because forgetting to call page super(params). As a result, getPageParameters() returns null. This problem also occur when

Re: Why I'm getting NPE?

2009-04-30 Thread Johan Compagner
What is the stacktrace when group is null? On 29/04/2009, HHB hubaghd...@yahoo.ca wrote: Hey, I'm trying to employ DataTable in our application. * public class SortableContactDataProvider extends SortableDataProvider { @SpringBean private Service

Re: https://issues.apache.org/jira/browse/WICKET-847

2009-04-28 Thread Johan Compagner
no that one isnt in 1.3.5 The commit is done by igor together with: WICKET-1916, WICKET-1998 On Tue, Apr 28, 2009 at 09:43, Steve Swinsburg s.swinsb...@lancaster.ac.ukwrote: Comparing the commits attached to the Jira to what is in the 1.3.5 tag in svn shows it's not. I'm a little confused

Re: Performance Benchmarks

2009-04-27 Thread Johan Compagner
With the request logger you can turn on logging of the session size * boolean * getRecordSessionSize() if you want to record 1 specific pages you should just do that in Requestcycle.detach johan On Mon, Apr 27, 2009 at 11:19, Vladimir K koval...@gmail.com wrote: Can wicket help with

Re: Announce: new JavaScript Inheritance Implementation

2009-04-25 Thread Johan Compagner
Java doesnt work like that If you are in X and you call super.Y() then you will skipp the Y of that class but really go to a super impl. You seem to have implemented it in js with _super exactly like we do also in our product Servoy, only there the 'classes' are not js things but Forms (UI

Re: Announce: new JavaScript Inheritance Implementation

2009-04-25 Thread Johan Compagner
Yes attributs is not a limit but is a logical thing, there are no multiply implenetations of an attribute so calling super on them isnt logical in my eyes anyway Of course java does have multiple implementations of an attribute but those are private and cant be accessed any way. I evendont know

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Johan Compagner
Buttons and links dont make much sense yes. Dont remember why we should do this. Will check the code On 16/04/2009, Igor Vaynberg igor.vaynb...@gmail.com wrote: this code is there so we can track focus and properly restore it after ajax modifies the dom. i am not sure why we need to track and

Re: isRequired: Use function instead of boolean

2009-04-15 Thread Johan Compagner
is a Predicate serializable? On Wed, Apr 15, 2009 at 18:05, Charles A Deal cd...@csc.com wrote: I have a number of Form Components that have a conditional required status. In the past, I've seen recommendations to override the component and supply a custom implementation of the isRequired

Re: URL error?

2009-04-14 Thread Johan Compagner
Are your js and css files really also under that mount? I guess not So you have to rewrite your links to those resources in your markup so that they dont use relative urls On 15/04/2009, Joe huanghu...@yahoo.cn wrote: Hi All, We are using Sitemesh2.2.1 along with wicket1.3.1 in our product.

Re: serialVersionUID

2009-04-13 Thread Johan Compagner
Or if you use a cluster that somehow (would be bad practice i know) had different kinds of jvm's on them Because the generated uid is depended on the jvm Also the generated takes to much stuff of the class when it generates, An inner class would already trigger again a different uid. and i my

Re: BUG: Wrong behavior when calling super(parameters)

2009-04-10 Thread Johan Compagner
Did you create a jira issue for this? On Fri, Apr 10, 2009 at 00:18, Eduardo Nunes esnu...@gmail.com wrote: Hi guys, Yesterday I sent a mail to this list about a possible bug with webpage + panel + form. I made a sample application that reproduce the bug. Please, run this application mvn

Re: BUG: Wrong behavior when calling super(parameters)

2009-04-10 Thread Johan Compagner
please do else it will be lost here on the mailing list On Fri, Apr 10, 2009 at 15:16, Eduardo Nunes esnu...@gmail.com wrote: No, not yet On Fri, Apr 10, 2009 at 4:45 AM, Johan Compagner jcompag...@gmail.com wrote: Did you create a jira issue for this? On Fri, Apr 10, 2009 at 00:18

Re: How to use Wicket in cluster to avoid memory problem?

2009-04-07 Thread Johan Compagner
the system which is that? On Tue, Apr 7, 2009 at 15:54, Wenke Ji jiwe...@gmail.com wrote: Hi I am new to Wicket , in using wicket , the system often tells me the memory is not enough. Is there any one kindly tell me how to use wicket in cluster to avoid it or any document/example for it?

Re: Found this in logs: Unable to redirect to: ?wicket:interface=:2:1:::,

2009-04-07 Thread Johan Compagner
most of the time if those things happen you have send something yourself into the buffer somehow/somewhere johan On Sun, Apr 5, 2009 at 20:15, Daniel Toffetti dto...@yahoo.com.ar wrote: Hi all, I've found this exception in the catalina logs: 05/04/2009 14:51:17

Re: Wicket Noob: Long cannot be cast to java.lang.String

2009-04-07 Thread Johan Compagner
You seem to have a String validator on a number field. What do you want to test a range? Or max value of that long? Use a different validor On 08/04/2009, David Brown dbr...@sexingtechnologies.com wrote: Hello Wicket dev, gurus and mortals, I was successfully using Wicket to build the UI for my

Re: setResponsePage() and mounted URLs

2009-04-05 Thread Johan Compagner
what happens if you try this: add(new StatelessLink(statelessPage1 ) { public void onClick() { setResponsePage(StatelessPage1.class); RequestCycle.get().setRedirect(true) } johan On Sun, Apr 5, 2009 at 05:38, Matthew Welch matt...@welchkin.net

Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-02 Thread Johan Compagner
Ahh really? But i want to!!! Can i? Can i??? On 02/04/2009, Jeremy Thomerson jer...@wickettraining.com wrote: Let's not even start this discussion again, please! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Apr 2, 2009 at 2:34 PM, Philippe Marschall kus...@gmx.net wrote:

Re: stack overflow in wicket-autocomplete.js

2009-04-02 Thread Johan Compagner
I guess it would be better to fix it. Have to look into the code better, do you have a patch for it? On 02/04/2009, Lutz Müller lutz.muel...@combase.de wrote: Hi, I have a problem with onfocus behaviour of autocompletetextfields in IE. The stackoverflow exists in Firefox as well, but IE pops

Re: [announce] WASMP , Wicket AsSeMbler Project

2009-04-01 Thread Johan Compagner
Will WASP and SWARM run on WASMP? On Wed, Apr 1, 2009 at 10:32, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Guys Im happy to announce the new Shiny Wicket Assembler Project on behalf of the WASMP team. Do you need speed? Then WASMP is for you, in it's first release it will be

Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Johan Compagner
Failed eXtremely On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org wrote: Please excuse my EXTREME ignorance, but what exactly does or will the FX mean from a Wicket standpoint? What does it do or allow a developer to do that would designate it as FX? -Original

Re: number of active users

2009-03-26 Thread Johan Compagner
RequestLogger On Wed, Mar 25, 2009 at 20:02, Andreas Kaluza kal...@rhrk.uni-kl.de wrote: Hi @ all, I'm using Wicket 1.35 with a jetty server. My question is if I can get the number of the active users, who are logged in the system. Perhaps getting the number of active sessions or

Re: toString( ) and naming conventions in Component class

2009-03-26 Thread Johan Compagner
if you have a patch for better toString() impl be my guest and attach it to jira Those Changes classes are internal to component, they are inner classes of Component so they dont have to specify that extra name.. Its just verbose. Also those 2 are protected final but i think they could be private

Re: Xml models [Was: Making wicket work with Dynamically created html]

2009-03-25 Thread Johan Compagner
do you really use such ugly id's? :) On Tue, Mar 24, 2009 at 15:15, Erik van Oosten e.vanoos...@grons.nl wrote: Interesting. I think we have something similar. We do stuff like new TextField(/addresses/address[1]/street) and this will automatically bind the text field to a node in the XML

Re: Xml models [Was: Making wicket work with Dynamically created html]

2009-03-25 Thread Johan Compagner
agree with you. I also think ProxyFactory should be made an interface, not a concrete class. What I would do is jack up the release number if I ever wanted to change it. On Wed, Mar 25, 2009 at 12:50 PM, Johan Compagner jcompag...@gmail.com wrote: you mean the PropertyModel based on proxies

Re: Client-side models for zero-state scalability

2009-03-24 Thread Johan Compagner
Our first try just failed. Because that had pretty huge performance issues and the pages are way bigger because of the serialized state everything needs then to be rewritten like a post, the list goes on and on. At that point we just came the the conclusion that this was not the way to go.

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Johan Compagner
The latest code in 1.3 and 1.4 are working with private fields and only getters If you have a property model on those fields it will use the field reference directly to set it. johan On Tue, Mar 24, 2009 at 13:15, Andrea Aime aa...@opengeo.org wrote: Hi, I'm trying to make a component that

Re: Bingind a bean that has getters, but no setters

2009-03-24 Thread Johan Compagner
hmm normally i think we try to create the object by calling the default constructor And i see it does have a default constructor But is that Envelope object really your model object? Do you have a simple test case that i can add to the PropertyResolverTest ? On Tue, Mar 24, 2009 at 15:11,

Re: newSession() not being called

2009-03-19 Thread Johan Compagner
which one do you override? On Wed, Mar 18, 2009 at 18:42, Edwin Ansicodd erik.g.hau...@gmail.comwrote: have a SpringWebApplication with overridden newSession, but for some reason newSession is not being called. Have closed browsers and started new browsers, authenticating, but newSession in

Re: IMarkupCacheKeyProvider - getCacheKey Problem

2009-03-17 Thread Johan Compagner
thats the whole point that getMarkupResourceStream is called over and over again i guess... Because you dont cache it.. the MarkupCache is called through MarkupContainer.getAssociatedMarkupStream(final boolean throwException) and that one is called now and then. So if it is never cached then it

Re: Why are we top-posting...

2009-03-15 Thread Johan Compagner
I vote for top or interleaved, dont bottom post thats the most horrible one On 14/03/2009, taha siddiqi tawushaf...@gmail.com wrote: Hi, The story goes like this... Once I was brave enough to take on linux-kernal programming and joined a mailing list. My first post brought me a link which

Re: memcached session store

2009-03-13 Thread Johan Compagner
.. That element isnt there anymore... On Fri, Mar 13, 2009 at 11:58, Martin Grotzke martin.grot...@javakaffee.dewrote: On Wed, 2009-03-11 at 20:09 +0100, Johan Compagner wrote: thats impossible to do completely A refresh of a browser is for example 1 Ok, from a technical/academical point of view

Re: memcached session store

2009-03-13 Thread Johan Compagner
. Cheers, Martin On Wed, 2009-03-11 at 17:45 +0100, Johan Compagner wrote: In my point of view none sticky sessions are just broken or can be broken very easily I dont know exactly how all the implementations work but does this example all ways work? a user clicks

Re: Managing Pagemaps

2009-03-13 Thread Johan Compagner
do you mean multiply wicket applications on the same host? (just like our example?) then yes you have a pagemap set per wicket app in your session (prefixed with the wicket app name) There are no such hooks because a wicket app 1 is independent on wicket app 2, they should be isolated. (they

Re: memcached session store

2009-03-11 Thread Johan Compagner
In my point of view none sticky sessions are just broken or can be broken very easily I dont know exactly how all the implementations work but does this example all ways work? a user clicks on a button that button click does take some time and in the mean time a user clicks on the same or another

Re: memcached session store

2009-03-11 Thread Johan Compagner
would need to handle this on the client side, by disabling buttons/links when they are clicked. Also AJAX communicatoin has to be handled, as this is also often a candidate that triggers multiple requests running in parallel. Cheers, Martin On Wed, 2009-03-11 at 17:45 +0100, Johan Compagner

Re: Future of WicketObjectStreamFactory

2009-03-10 Thread Johan Compagner
that one will be depricated/removed in the further It is to hard to do it on our own and supporting new features of newer platforms (java 6/7) when we are still on java 4/5 the problems you have should be fixed differently On Tue, Mar 10, 2009 at 06:15, David Leangen wic...@leangen.net wrote:

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
remove elements from the collection you working with, depending on your you do it, you'll get an exception about concurrent modification. - Brill On 3-Mar-09, at 5:44 PM, Johan Compagner wrote: Is this the same? Set set1 = xxx Collection col1 = xxx; foreach (col in col1) set1.remove

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
of it into hashed collections. Even if that isn't causing the main issue you are demonstrating, you may witness surprising behaviour. Regards - Cemal http://jWeekend.com jWeekend Johan Compagner wrote: it has nothing to do with threading or concurent modification Its really a simple test just run

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
yes thats my point The TreeSet doesnt use hash or equals you define that with the comparator what it should do If you look at my last reply where i do define hash and equals then it also doesnt work. Problem is that i did encounter this in an eclipse plugin we use Sometimes it worked

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
that is then the wrong spec that i talk about That is completely stupid With a comparator you just OVERRIDE the equals, thats the whole point! johan On Thu, Mar 5, 2009 at 13:44, Pointbreak pointbreak+wicketst...@ml1.netpointbreak%2bwicketst...@ml1.net wrote: Sorry, I have to correct

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
For example. You want a tree set with a case insensitive comparator.. Because you want to order case insensitive.. That breaks the equals contract. So that note in the doc just makes the TreeSet completely worthless johan On Thu, Mar 5, 2009 at 13:46, Johan Compagner jcompag...@gmail.com

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
contract for set (or map), which is defined in terms of equals. http://java.sun.com/javase/6/docs/api/java/util/Comparator.html On Thu, Mar 5, 2009 at 1:50 PM, Johan Compagner jcompag...@gmail.com wrote: For example. You want a tree set with a case insensitive comparator.. Because you

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
behavior for other code that assumes the Set-contract on such collections. The removeAll/retainAll oddities you demonstrated are bugs. Somebody should file a bug report with sun... On Thu, 05 Mar 2009 14:05 +0100, Johan Compagner jcompag...@gmail.com wrote: yes i know but the TreeSet does also

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
, Johan Compagner jcompag...@gmail.com wrote: yes i know but the TreeSet does also say that in the javadoc that it is an exception because of the Comparator And they could really just make it a black box. The only things they just need to fix then is the removeAll and retainAll methods Why

Re: a bit of topic but i couldnt resist ....

2009-03-05 Thread Johan Compagner
But now you are completely breaking My contact My object is an database object MyObject { id name } MyObject is only equals if the id is the same But now i want a TreeSet that orders by name (sometimes case is important,sometimes not) Those things are not the same! I cant make my object

Re: a bit of topic but i couldnt resist ....

2009-03-04 Thread Johan Compagner
collection referred to by set1. I think there may be more stuff that can go wrong here, but let's see where this thread heads off to! Regards - Cemal http://jWeekend.com jWeekend Johan Compagner wrote: Is this the same? Set set1 = xxx Collection col1 = xxx; foreach (col in col1

a bit of topic but i couldnt resist ....

2009-03-03 Thread Johan Compagner
Is this the same? Set set1 = xxx Collection col1 = xxx; foreach (col in col1) set1.remove(col) or set1.removeAll(col1); ???

Re: a bit of topic but i couldnt resist ....

2009-03-03 Thread Johan Compagner
. On Mar 3, 2009, at 5:44 PM, Johan Compagner wrote: Is this the same? Set set1 = xxx Collection col1 = xxx; foreach (col in col1) set1.remove(col) or set1.removeAll(col1); ??? - To unsubscribe, e-mail: users

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-02 Thread Johan Compagner
If we loose the wildcard is it then still possible to do everything? We have it to be able to use a Manager List when we declare it as a People When you have that you have to copy it over i guess by a helper method. I just want to know for sure that i dont miss something that if we remove it

Re: bad practice in sharing models between wicket form and hibernate?

2009-03-01 Thread Johan Compagner
You shouldnt put that object directly in a CPM, but have a loadabled detachable model in between. Because now you probably have that hib object in the page between requests On 28/02/2009, Stephen Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, I'm after your thoughts on the following

Re: bad practice in sharing models between wicket form and hibernate?

2009-03-01 Thread Johan Compagner
is trying to save edits to a stale version of the object. This isn't always useful, but it might be, depending on your requirements. W On Mar 1, 2009, at 5:09 AM, Johan Compagner wrote: You shouldnt put that object directly in a CPM, but have a loadabled detachable model in between

Re: How to send serialize/byteArrayOutput stream from wicket page

2009-02-26 Thread Johan Compagner
you cant do it like that look at ResourceStreamRequestTarget what you want is a combination of that and AbstractRestartResponseException so you must set the RequestTarget in the RequestCycle and then throw an AbstractRestartResponseException (just like RestartResponseException works) johan On

Re: DropDownChoice without preselection and without 'Please choose one'

2009-02-20 Thread Johan Compagner
override the getDefaultChoice() and generate a optionoption (yes empty) and the if selected is also empty generate option selected=trueoption On Fri, Feb 20, 2009 at 15:31, pixologe pixol...@mailinator.com wrote: I tried overriding getDefaultChoice already, returning an empty string, this

Re: Wicket meetup in Switzerland?

2009-02-20 Thread Johan Compagner
if you would do it in a time that i am in the swiss then i could also attend But that is now and then +/- 1 time in 2 months.. (this week i am in Bern) I dont have a problem if it was in real german, but it cant be in that swiss german (which has i my eyes nothing to do with german anyway)

Re: Wicket meetup in Switzerland?

2009-02-20 Thread Johan Compagner
that was the whole idea, now you spoiled it! ;( On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson jer...@wickettraining.comwrote: I've seen plenty of programming language flame wars, but it looks like Johan is starting a REAL language flamewar. :) On Fri, Feb 20, 2009 at 9:41 AM, Johan

<    1   2   3   4   5   6   7   8   9   10   >