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

2009-03-05 Thread Johan Compagner
you > are putting instances 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: >

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

2009-03-05 Thread Johan Compagner
On Wed, Mar 4, 2009 at 15:35, Brill Pappin wrote: > if "xxx" is a mutable Set then it should work. > > However you have to be careful about how you remove elements from the > collection you working with, depending on your you do it, you'll get an > exception about concu

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

2009-03-04 Thread Johan Compagner
} > ... yes, it passes! > That means that you could have elements of the same type in both your > collections and still get a different result from each of your two snippets > depending on the Comparator passed in to a sorted collection referred to by > set1. > > I think there may

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

2009-03-03 Thread Johan Compagner
rdness. > > > > 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(col

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: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModel> to IModel>

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 List when we declare it as a 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 that then somethi

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

2009-03-01 Thread Johan Compagner
fields to a > newly-loaded object, then Hibernate will be able to detect cases in which > the user 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

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 wrote: > Hi all, > > I'm after your thoughts on the following method. > > Suppose there is

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 T

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 wrote: > 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, Joh

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

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

2009-02-20 Thread Johan Compagner
override the getDefaultChoice() and generate a (yes empty) and the if selected is also empty generate On Fri, Feb 20, 2009 at 15:31, pixologe wrote: > > I tried overriding getDefaultChoice already, returning an empty string, > this > did not work, unfortunately. > > The 'Please choose one' opt

Re: Avoid serialization troubles with static members

2009-02-19 Thread Johan Compagner
but if you just use static fields then the only thing you have to do in your app is when the Application.init() is called you just set them once through a static setter on that component. (or reflection) So you have to do all your injection over your components onces at startup of your application

Re: maven guru/wickstuff project maintainers..

2009-02-19 Thread Johan Compagner
know.. I reported that to sourceforge months ago... :/ And it seems > to be very unpredictable.. > > However Jeremy's server seems to have no problems.. > > 2009/2/19 Johan Compagner > > > First i also have to checkout why this happens and why it happens only to > >

Re: maven guru/wickstuff project maintainers..

2009-02-19 Thread Johan Compagner
p on that. > > Martijn > > On Thu, Feb 19, 2009 at 9:16 AM, Johan Compagner > wrote: > > First i also have to checkout why this happens and why it happens only to > > sourceforge wicketstuff > > only from that server > > > > Caused by: java.net.ConnectExc

Re: maven guru/wickstuff project maintainers..

2009-02-19 Thread Johan Compagner
/ >> [3] - http://www.wickettraining.com/ws-snaps/ >> [4] - http://www.wickettraining.com/ws-sites/ >> >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael < >>

Re: maven guru/wickstuff project maintainers..

2009-02-19 Thread Johan Compagner
.wickettraining.com/ws-snaps/ > [4] - http://www.wickettraining.com/ws-sites/ > > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > I see t

Re: Avoid serialization troubles with static members

2009-02-19 Thread Johan Compagner
no because the component isnt instantiated so that wount be called. after deserialization that field will be null. maybe you could bulid in a container/page a deserialize hook and when that is called go over all your components and inject it again johan On Thu, Feb 19, 2009 at 08:41, Martin Sac

Re: Avoid serialization troubles with static members

2009-02-18 Thread Johan Compagner
a static service inside a component? why would you have that? that sounds weird to me Then you share that services over all sessions, if that is the case then you can just as well make it a single ton class by itself (MyService.getInstance()) johan On Wed, Feb 18, 2009 at 15:52, Christian Helmb

maven guru/wickstuff project maintainers..

2009-02-18 Thread Johan Compagner
Hi, if i look into this dir: http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/ i am getting really really sad :( I want to get rid of all those horrible timestamps snapshots these should be removed for everything, this will run out of disk space soon like t

Re: IResourceStream.close

2009-02-17 Thread Johan Compagner
as far as i know it is called all over the place For example WicketFilter.getLastModified() But you are right about the RSRT that one should call close on detach as far as i can see can you make a jira issue? On Tue, Feb 17, 2009 at 12:44, Adriano dos Santos Fernandes < adrian...@gmail.com> wrote

Re: WicketURLEncoder.QUERY_INSTANCE result not (even near) same as java.net.URLEncoder?

2009-02-17 Thread Johan Compagner
as far as i know it does follow the spec specially for query portion and the path portions. On Tue, Feb 17, 2009 at 08:26, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > The constructor WicketURLEncoder(Type type) explains a whole lot about > the compatibility of QUERY_IN

Re: N-level CompoundPropertyModel

2009-02-16 Thread Johan Compagner
uot;modelObject.smallObject"))) > > However, ComponentPropertyModel does the same thing in a clearer and > slightly more efficient manner. > > W > > > > On Feb 16, 2009, at 3:04 PM, Johan Compagner wrote: > > do it then a bit different >> >> public

Re: N-level CompoundPropertyModel

2009-02-16 Thread Johan Compagner
The below solution requires that SmallComponent know it's parent has > CompoundPropertyModel and that there is a member called "smallObject." I'm > trying to keep SmallComponent generic, like the Wicket built-in components. > > W > > > > On Feb 16, 2009, a

Re: N-level CompoundPropertyModel

2009-02-16 Thread Johan Compagner
yes initmodel shouldnt call getModel() on the parent because that was a big performance penalty on some solutions because that would create and walk over the complete hierarchy of things and then many many in between models are created, that dont do really anything. But why not something like this

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-13 Thread Johan Compagner
On 13/02/2009, Adriano dos Santos Fernandes wrote: > Johan Compagner escreveu: >> if that happens then the newWindowBrowser detection is enabled and >> executed. >> This makes sure that a new tab or browser window (but same session) will >> have there own pagema

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread Johan Compagner
against hibernate and then when it was finished swapped it for something else? johan On Fri, Feb 13, 2009 at 16:59, Hoover, William wrote: > First of all, thank you for entertaining this idea :o) > > See comments below... > > -Original Message- > From: Johan Compagn

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread Johan Compagner
> > From a developers point-of-view standardization can often be a thorn in our > side, but for management it can offer a > vendor-independent/implementation-independent solution. > Maintaining/upgrading infrastructure is difficult, expensive and time > consuming. From the point-of-view of manageme

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-13 Thread Johan Compagner
if that happens then the newWindowBrowser detection is enabled and executed. This makes sure that a new tab or browser window (but same session) will have there own pagemap On Thu, Feb 12, 2009 at 18:45, Adriano dos Santos Fernandes < adrian...@gmail.com> wrote: > Thomas Mäder escreveu: > >> Why

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread Johan Compagner
more "cut your development costs > in two with Wicket". From experience, I am totally convinced that you can > save 50% off your development costs if you switch to wicket (from just about > any other framework), however, I've yet to find a contracting job here in > Zür

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Johan Compagner
switch to wicket (from just about any other > framework), however, I've yet to find a contracting job here in Zürich where > wicket is asked for (it's JSF, or even Struts). > > Thomas > > On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner > wrote: > >> And t

Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Johan Compagner
And for 1.4+ we could make that map concurrent if that isnt already the case On 12/02/2009, Thomas Mäder wrote: > The synchronizationn is around a HashMap lookup. Considering how much longer > it takes to actually process a request, I very much doubt that there is much > contention. Modern VM's a

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Johan Compagner
And then come into the horrible voting/administive stuff? Long Release cycles that are controlled, features that are discussed over and over. Hmm On 12/02/2009, Hoover, William wrote: > Just out of curiosity... Are there any plans to push a JSR that Wicket > could follow. I think there would be

Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Johan Compagner
i can attend both and also can present something on both if needed. But i dont know what :) johan On Wed, Feb 11, 2009 at 23:53, Martijn Dashorst wrote: > During ApacheCon EU 2009 we can fill a 3 hour slot in the evening with > a real Wicket community meetup. The meetup will be hosted in the >

Re: Wicket BDD with JDave training at ApacheCon EU 2009 on Tue 24 March in Amsterdam

2009-02-08 Thread Johan Compagner
Talking about apache con eu 2009 Shouldnt we organize a get to gether? I think we can now use the conference rooms of apache con them selfs. On 06/02/2009, Timo Rantalaiho wrote: > Hello all, > > My colleagues Markus Hjort and Marko Sibakov and I are > holding a full-day training session on apply

Re: Increasing session size

2009-01-30 Thread Johan Compagner
xtend. > > J. > > > > Johan Compagner wrote: > >> yes it grows until a max >> >> public DiskPageStore() >>{ >>this((int)Bytes.megabytes(10).bytes(), >> (int)Bytes.megabytes(100).bytes(), 50); >>} >> >> (10MB for one p

Re: Increasing session size

2009-01-30 Thread Johan Compagner
yes it grows until a max public DiskPageStore() { this((int)Bytes.megabytes(10).bytes(), (int)Bytes.megabytes(100).bytes(), 50); } (10MB for one pagemap and 100MB for a complete session over multiply pagemaps) On Fri, Jan 30, 2009 at 09:44, Jürgen Lind wrote: > Probably I was a

Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Johan Compagner
no i mean Tomcat settings not wicket settings search for "tomcat utf uri encoding" in google On Fri, Jan 30, 2009 at 09:11, Philipp Daumke wrote: > Hi Jonas, > > thanks for your help, but I think it doesn't help. Just to make sure that I > understood the Application#init correctly, you meant to

Re: UTF-8 bug in wicket? Or in Tomcat?

2009-01-30 Thread Johan Compagner
Did you configure tomcat correctly for utf 8? Search this list for the right settings On 30/01/2009, Philipp Daumke wrote: > Hi all, > > when I enter German umlauts (e.g. "äöü") in a wicket text field it's > converted to "äöü". Everything seems to be in "UTF-8". I already > tried to apply a fi

Re: getRequest().getPage() always null

2009-01-29 Thread Johan Compagner
because in the onbeginrequest of the requestcycle the request parsing starts.. it is not done yet. so the request cycle doenst know the page What you should do is have a AbstractSecurePage and do you stuff there (and so on) But look at the other projects like Swarm/Wasp or wicket-aut-roles On We

Re: Performance question

2009-01-25 Thread Johan Compagner
I guess wicket should dump the page serialized size in development mode. So that users see them when developing. On 21/01/2009, Michael O'Cleirigh wrote: > Hello, > > A big delay in refreshing can be a sign that your pages are serializing > your domain object graph as part of the page serializati

Re: Observation and page (map) eviction

2009-01-25 Thread Johan Compagner
detached. > > It seems to me that for wicket to support comet/bayeux, there will have > to be a solution for the kind of problems I'm running into here. I > don't think pushing the problem to the application developer (as I think > you are suggesting) is acceptable in th

Re: Observation and page (map) eviction

2009-01-25 Thread Johan Compagner
en the session is detached. > > It seems to me that for wicket to support comet/bayeux, there will have > to be a solution for the kind of problems I'm running into here. I > don't think pushing the problem to the application developer (as I think > you are suggesting) is

Re: Access last page

2009-01-25 Thread Johan Compagner
You should hold that info yourself Not the page itself but just the id and the version number (and pagemap) Then through session.get(x,y,z) you can get the page On 25/01/2009, Per Newgro wrote: > Hi, > > can i easily access the page from which another page is called? I would > like to share the

Re: Observation and page (map) eviction

2009-01-24 Thread Johan Compagner
I think having references to or from pages is a bad idea in wicket. We serialize pages so if pages would have listeners then the are also serialized. If others reference pages then after serialization/deserialization they point to the wrong instance. Way better is pure pull support. Components kno

Re: I'm intersted in design

2009-01-17 Thread Johan Compagner
Can i then do this? Component x = new Component() parent.add('first', x) parent.add('second',x) Or should it then throw an exception at runtime (it wil in develop mode) And if there are situations that the component wants to know its name before its added to the parent (in its constructor for ex

Re: ERROR - DiskPageStore - Error flushing page

2009-01-17 Thread Johan Compagner
What kind of dirs doe jou see in that dir under tomcat? How many entries? Do you have it for all your sessions? Is the filename incorrect? On 16/01/2009, ragu_sree wrote: > > I am using wicket1.3.5 version only , but still getting the problem , any > one please provide me the solution > -- > Vi

Re: Things I miss in Wicket

2009-01-16 Thread Johan Compagner
> An ideal web-application is developed once and the Java code is never > touched again for 3-5 years until there are a lot of new features > necessary where do you live? thats not my experience. Yes after a while the web app code is pretty done but then it did already run for 1 or 2 years i

Re: how to remove jsessionid parameters in the url at the first time ppl visit the site?

2009-01-06 Thread Johan Compagner
create your own BufferedWebResponse and overwrite this method: public CharSequence encodeURL(CharSequence url) and do nothing, just return the url johan On Tue, Jan 6, 2009 at 18:14, Quan Zhou wrote: > Firstly, i should say i have already read about those past threads which > are > concerned

Re: Bug? The page set by setReponsePage does not process its own response.

2009-01-06 Thread Johan Compagner
This is because of your: getSession().replaceSession(); call You can change that in 2 ways change the place where you call that so not at the beginning of the onsubmit but completely at the end: // Return onto the same page but disable inputField setResponsePage

Re: Moments of awesome.

2009-01-06 Thread Johan Compagner
> think a big part of making it so good was the dutch cultural willingness > (even eagerness) to puzzle over things until they make sense ("discussion" > they call it). :)

Re: About a thread safe problem of the WebApplication class

2008-12-24 Thread Johan Compagner
1.3 has its own ConcurrentHashmap copied from the 1.4 port On Wed, Dec 24, 2008 at 17:46, kanou wrote: > > It might be one idea to use concurrenthashmap. > However, concurrenthashmap is API supported from JDK1.5. > Moreover, I think that the Wicket1.3 series was JDK1.4 support. > > Therefore, I

Re: About a thread safe problem of the WebApplication class

2008-12-23 Thread Johan Compagner
Hmm weird nobody else seem to notice this before, we just should make it a concurrenthashmap On 24/12/2008, 加納充照 wrote: > The following errors occurred when the performance of the wicket > application was tested. > > [Trace of error] > [08/12/18 9:53:34:575 JST] 003e SystemOut O 2008-12-18 >

Re: How to donate to Wicket Project

2008-12-16 Thread Johan Compagner
really? if somebody wants by bankaccount to put some large sum of money on it that also would be more then welcome ;) johan On Mon, Dec 15, 2008 at 19:19, Eelco Hillenius wrote: > As for the Wicket team, nothing is more welcome than being part of the > community and contributing patches and on

Re: Hi!

2008-12-09 Thread Johan Compagner
yes something like that more: On Tue, Dec 9, 2008 at 15:07, Ernesto Reinaldo Barreiro <[EMAIL PROTECTED]>wrote: > do you mean? > > .. > > .. > > > > > > > > On Tue, Dec 9, 2008 at 3:04 PM, Ernesto Reinaldo Barreiro < > [EMAIL PROTECTED]> wrote: > > > Hi Wadi, > > > > Sorry, but I do

Re: Hi!

2008-12-09 Thread Johan Compagner
no thats on the todo for 1.5 On Tue, Dec 9, 2008 at 14:51, Wadi Jalil Maluf <[EMAIL PROTECTED]> wrote: > Hi All! I would like to know if the multiple wicket child is implemented. > > Thanks in advance, > > Regards, > > Wadi > >

Re: Bug of Wicket when iterate the form using iterator()?

2008-12-01 Thread Johan Compagner
fixed On Mon, Dec 1, 2008 at 16:48, Johan Compagner <[EMAIL PROTECTED]> wrote: > i am busy fixing it > but it is not as straightforward as just replacing it with Object[] > > > On Mon, Dec 1, 2008 at 16:38, jWeekend <[EMAIL PROTECTED]>wrote: > >> >> Yes

Re: Bug of Wicket when iterate the form using iterator()?

2008-12-01 Thread Johan Compagner
i am busy fixing it but it is not as straightforward as just replacing it with Object[] On Mon, Dec 1, 2008 at 16:38, jWeekend <[EMAIL PROTECTED]> wrote: > > Yes, your suggestion should stop that runtime exception being thrown. A new > (or more comprehensive) test for that method could confirm th

Re: Monitor session size in Tomcat

2008-12-01 Thread Johan Compagner
you can monitor what wicket does with the IRequestLogger On Mon, Dec 1, 2008 at 16:13, Adriano dos Santos Fernandes < [EMAIL PROTECTED]> wrote: > Hi! > > This is not a direct wicket question, but important for wicket usage, so > I'm asking here... > > What you use to monitor Tomcat sessions size?

Re: Prototyping mode: Automatic markup generation

2008-11-29 Thread Johan Compagner
What kind of markup? Div? wrote: > While I understand the Wicket authors do not want a magic framework, I > wonder if anyone else than me ever wished for a "development mode" or > option on the error page when protyping and receiving the very typical > "org.apache.wicket.WicketRuntimeException: Th

Re: Problem with Crypted URL

2008-11-28 Thread Johan Compagner
correctly. >>> >>> you mean that it should have been in 1.4-rc1 but it is not? so i >>> could expect this to be fixed in 1.4-rc2 or 1.4 final? >>> >>> francisco >>> >>> On Mon, Nov 24, 2008 at 5:22 PM, Johan Compagner <[EMAIL PRO

Re: Wicket Session grows too big real fast

2008-11-26 Thread Johan Compagner
if you make this: final Recommendation recommendation = (Recommendation) item.getModelObject(); not final does it compile? If it doesnt then you have a leak johan On Wed, Nov 26, 2008 at 10:02 AM, jhp <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a serious problem with our application. It u

Re: Problem with Crypted URL

2008-11-24 Thread Johan Compagner
est(RequestCycle.java:498) >at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444) >at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoF

Re: isVisibilityAllowed() not consulted before calling onBeforeRender()?

2008-11-23 Thread Johan Compagner
We really should straighten this isVisible up. Make it final, and let that on check flag and the other isVisible things with an overridable method that users can override. (and maybe cache this result in a flag for 1 request) On 11/23/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > sounds like a bu

Re: Compoundpropertymodel with shadow map?

2008-11-21 Thread Johan Compagner
If you dont want to use an original object why not just clone/create a copy of the original end use that and then copy the values over again? (i think beanutils or something van do that for you) On 11/18/08, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > Im trying todo a

Re: Memory consumption per session

2008-11-20 Thread Johan Compagner
/08, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > That was only after he cut the listview sizes - problem is that his sessions > are 2MB now. Still should support quite a few (1000 = 2GB), but there is > probably a memory issue to address there. > > On Thu, Nov 20, 2008 at 9:2

Re: Generics changes in 1.4-rc1

2008-11-20 Thread Johan Compagner
Please make issues for this in jira On 11/20/08, aditsu <[EMAIL PROTECTED]> wrote: > > Hi, I've been using m3 for a while and just tried switching to rc1. I found > several problems: > - LabelTree.getNodeTextModel requires IModel and returns IModel. I was > overriding it and returning a Model, but

Re: Memory consumption per session

2008-11-20 Thread Johan Compagner
200kb per session sounds very reasonable. Then you should be able to handle quite a lot of concurrent sessions. What kind of hardware do you use? On 11/20/08, Ralf Siemon <[EMAIL PROTECTED]> wrote: > Hi, > > we have recently launched our new Wicket-based website, and now we are > experiencing th

Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread Johan Compagner
We tried that once, to have state transfered to the client, we didnt like it (where it did go to) and we dropped it. Cpu time and bandtwidth is way more expensive then memory. Wicket takes now memory on the server but the overhead it would generate by serializing and base64 every page into the resu

Re: Help with load-balancing and fail-over in a Hibernate, Spring, Wicket 3-tier architecture

2008-11-19 Thread Johan Compagner
Can mysql really load balance like that? How does it work with transactions and so on? Normally you scale the webservers and have 1 big database server thats serves all of them. For wicket you just need tomcat with sticky sessions. Then you only have to take care of the hibernate caching on each

Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-18 Thread Johan Compagner
no the only realy thing that i know most browser really look it up again is "no-store" thats why we have that disabled by default: protected void setHeaders(WebResponse response) { response.setHeader("Pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache, max-age

Re: Problem with Crypted URL

2008-11-17 Thread Johan Compagner
> > > > > I already changed the handling of that in trunk so that now a page > expired > > is thrown when that happens. > > johan when did you exactly change that? does it also impact my issue? dont know exactly but it is in M1 and the current trunk of 1.3 You dont have it yet if you are on au

Re: Problem with Crypted URL

2008-11-17 Thread Johan Compagner
i guess this is because we now use sessionid as the seed for the encryption of the urls So when a session times out and that user makes another request to it we cant decrypt it anymore because another seed is used. I already changed the handling of that in trunk so that now a page expired is thro

Re: Simple GET based stateless form

2008-11-17 Thread Johan Compagner
dont use a wicket form But only have the form inside your html not as a component And configure that form to just do a get to the url it is on Then url must be mounted/bookmarked The page must then have a PageParameters constructor where you read your parameters from johan On Mon, Nov 17, 2008

Re: Page references and serialization

2008-11-17 Thread Johan Compagner
was also > identical. > > Also on line 246: > channel.write(ByteBuffer.wrap(page.getData()), window.getFilePartOffset()); > > PageA is written to channel twice with identical content. > > > Hope this helps. > > Regards, > Mikko Pukki > > -Original Message-

Re: Page references and serialization

2008-11-14 Thread Johan Compagner
Doesnt have to be a bug, (it could be a new version of page a) but besides that dont we have a sliding window in the pagemap, so if page a is touched shouldnt it get its own new place in the file (more 2 the top) so that it doesnt get overwritten later on to early? On 11/14/08, Matej Knopp <[EMAI

Re: offtopic (a bit ;) for all the generics lovers here on the list :)

2008-11-14 Thread Johan Compagner
should i? On Fri, Nov 14, 2008 at 6:09 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > youve never coded WTL? > > -igor > > On Fri, Nov 14, 2008 at 8:17 AM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > Who has a real live example of this function: > >

offtopic (a bit ;) for all the generics lovers here on the list :)

2008-11-14 Thread Johan Compagner
Who has a real live example of this function: http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166ydocs/jsr166y/forkjoin/ParallelArrayWithMapping.html#withMapping(jsr166y.forkjoin.Ops.BinaryOp,%20jsr166y.forkjoin.ParallelArrayWithMapping) Its one of the most beautiful generic methods i have ever seen!

Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Johan Compagner
Where is the Wicket solution! On Thu, Nov 13, 2008 at 3:48 AM, Jeremy Thomerson <[EMAIL PROTECTED] > wrote: > This is off-topic, but I figured there couldn't be a better pool of people > to ask. I have several friends and family members that want to set up > small > websites for their businesses

Re: Wicket with GWT

2008-11-13 Thread Johan Compagner
Personally i dont see an integration at all between GWT an Wicket. Both are ui techs that do things completely different. Give us an example how you see flow (setResponsePage()) in wicket and what GWT then should do On 11/13/08, nitingupta183 <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am worki

Re: ModalWindow and Component.writeObject

2008-11-12 Thread Johan Compagner
I guess somehow the pages hold references to each other so if you press the button on the inner page, and do your stuff, after that wicket serializes that page it also encounters the other pages and those are also serialized. On 11/12/08, Stefan Lindner <[EMAIL PROTECTED]> wrote: > I have a ModalW

Re: Issue with FileUpload.writeToTempFile()

2008-11-11 Thread Johan Compagner
If you use eclipse you should use the project specific format we have defined for it. You should have a .settings dir or something like that. Look at the wicket project preferences and look what formatter you use there On 11/12/08, Bruno Borges <[EMAIL PROTECTED]> wrote: > sure igor... :-) your op

Re: mounts and resources

2008-11-11 Thread Johan Compagner
I think that is what happens. If pages are mounted we will fix the images so that they are not screwed up because of the mount. What is ecactly in the html? I guess ../images/xxx right? On 11/11/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > wicket should be rewriting static urls for you so it sho

Re: Size of session cache

2008-11-11 Thread Johan Compagner
(getDefaultFileStoreFolder(), maxSizePerPagemap, maxSizePerSession, fileChannelPoolCapacity); } On Tue, Nov 11, 2008 at 2:37 PM, David R Robison < [EMAIL PROTECTED]> wrote: > The size the session takes up on the disk. David > > > Johan Compagner wrote: > >> which size ex

Re: Size of session cache

2008-11-11 Thread Johan Compagner
which size exactly are you talking about? On Mon, Nov 10, 2008 at 11:03 PM, David R Robison < [EMAIL PROTECTED]> wrote: > Is there a convenient way to tell the size of user's session cache? David > > -- > > David R Robison > Open Roads Consulting, Inc. > 103 Watson Road, Chesapeake, VA 23320 > p

Re: pages from session

2008-11-05 Thread Johan Compagner
you could do something like that through the pagefactory i guess override the default one On Wed, Nov 5, 2008 at 4:12 PM, miro <[EMAIL PROTECTED]> wrote: > > I mounted a page in my Application > > now any time user requests the mounted path I want wicket to pull the > instance of the page from s

Re: How to terminate the session on not bookmarkable page?

2008-11-05 Thread Johan Compagner
that does work no you cant invalidate the session and then redirect to an instance/session page. What you could try is the invalidateNow() method and then the new instance page will be created in the new session. Also clearing pagemap or maybe just replacing the http session should work (a new met

Re: pages from session

2008-11-05 Thread Johan Compagner
wicket already works that way. but what do you mean by "selects the page" how does one "select" a page in the browser? if you just use page links (back links) to the page then that will always happen On Wed, Nov 5, 2008 at 1:25 PM, miro <[EMAIL PROTECTED]> wrote: > > I want to make a page sessi

Re: How does serialization work?

2008-11-04 Thread Johan Compagner
thats simple what you there create is an inner class in an inner class... so your textfield has a ajax behavior that is an inner class fo the Visitor inner class so that behavior has a parent reference to the visitor.. make that ajax behavior his own class and your problem is solved johan On T

Re: How does serialization work?

2008-11-04 Thread Johan Compagner
we still have a last x pages stored on disk. it is just not a number of pages but it is how many pages fit in the default window size of the file on disk (1 file per pagemap) by default it is 10MB per pagemap and 100MB per total session. so by default you can hold 10 pagemaps of 10MB after that le

Re: Migration to 1.4 - generic headache

2008-10-30 Thread Johan Compagner
i agree and we only need 2 things to be fixed improved by sun and then all the current problems are completely gone But i guess we never get them Because they find JavaFX way more importand.. I am glad the focused on that because it gave us Java6U10 but that whole JavaFX i dont have much hope f

Re: Migration to 1.4 - generic headache

2008-10-30 Thread Johan Compagner
i added my comments on how generics should be in a javalobby/dzone thread about java 7: http://java.dzone.com/articles/java-7-and-art-patience couldnt help myself :) I think java 7 could help wicket in 2 areas generics: class Foo { Foo(){} Foo(Bar){} } better type inference Foo

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Johan Compagner
one model because you have to manually call wrap() on those > anyways...lately ive been writing a lot of components that take more > then one model so i noticed this :) > > -igor > > On Wed, Oct 29, 2008 at 8:59 AM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > its

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Johan Compagner
its not just compound we have 2 special cases for this: IComponentAssignedModel and IComponentInheritedModel which will be both pretty tricky to do if the users must make a field for the model them selfs. but we will see. johan On Tue, Oct 28, 2008 at 5:22 PM, Igor Vaynberg <[EMAIL PROTECTED]>

Re: CompoundModel based on proxies

2008-10-29 Thread Johan Compagner
gt; > > > >>> > and use it like this: > > >>> > > > >>> > form.add(new TextField("firstName", customer.firstName)); > > >>> > form.add(new TextField("lastName", customer.lastName)); > > >>> > > > &

Re: CompoundModel based on proxies

2008-10-29 Thread Johan Compagner
posed above seems really smart as well. However I'd rather > keep is 100% java (ie not cglib) if possible. > > Thanks for any update if anyone knows anything! > Wayne > > > > > > Johan Compagner wrote: > > > > no i really dont like that > > then ever

Re: Meetings in the Netherlands (or neighbouring countries)

2008-10-28 Thread Johan Compagner
me to On Tue, Oct 28, 2008 at 9:33 PM, Rob Sonke <[EMAIL PROTECTED]> wrote: > Not really a meeting but at november the 12th there's the NLJug's JFall > again with at least one wicket session. I'll be there anyway. > > Rob > > > > Harro Lissenberg wrote: > >> A colleague and I are getting more and

Re: wicket and 508 compilance

2008-10-28 Thread Johan Compagner
i also dont want to have another constructor with that title parameter But if there are a certain amount of components that could use something for accessibility then i am more for just a method setTitle(IModel model) or something like that johan On Tue, Oct 28, 2008 at 5:15 PM, Steve Swinsbu

Re: Stateless AJAX links

2008-10-27 Thread Johan Compagner
:51 PM, aditsu <[EMAIL PROTECTED]> wrote: > > Hi, I thought about what you said, and debugged some more. Here's what I > found out: > > > Johan Compagner wrote: > > > > RequestCycle.isRedirect() is right, because that is a call that tells us > > must i

Re: Stateless AJAX links

2008-10-27 Thread Johan Compagner
redirect flag. johan On Mon, Oct 27, 2008 at 11:11 AM, aditsu <[EMAIL PROTECTED]> wrote: > > > Johan Compagner wrote: > > > > what doesnt work? > > it will throw a page expire now and that works. > > It should work now just as normal links. > > > &

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