Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
Yeah that is the problem with Generics You cant say take the from the model you get in the constructor Then everything would be perfect. But i really dont think that in link is redundant why is it? You call later on getModelObject() on it.. so you use the model/modelobject of Link so you need t

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
odel()) { >public void onClick() { >setResponsePage(new EditPage(getModelObject())); >} >}); > } > > So both are used often, but mostly to pass things around. > > Martijn > > On Thu, May 22, 2008 at 11:25 AM, Johan Compagner <[EMAIL PROTECTED]> > w

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
component subclass you coud do IModel getModel() > > { return (IModel)super.getModel() }, similiar with > > getmodelobject so you wouldn't have casts all over places and it would > > be safer too). > > > > -Matej > > > > On Thu, May 22, 2008 at 9:39 AM, Johan Co

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
tmodelobject so you wouldn't have casts all over places and it would > be safer too). > > -Matej > > On Thu, May 22, 2008 at 9:39 AM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > It isnt all or nothing.. i never said that > > > > I just say if you

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
ic IModel getModel() { > > > return (IModel) model; > > > } > > > } > > > > > > I like this. Even with the possible class cast exception. Because > > > without generics, it doesn't leave you no other option than to cas

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
. > > > > Also, for myself, I disagree that type safety is not a primary goal of > > generics. Even if the API were completely clear already, I'd still prefer > > more type safety. > > > > > > Martijn Dashorst wrote: > >> > >> On Wed, May 21

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
f, I disagree that type safety is not a primary goal of > generics. Even if the API were completely clear already, I'd still prefer > more type safety. > > > Martijn Dashorst wrote: > > > > On Wed, May 21, 2008 at 5:05 PM, Johan Compagner <[EMAIL PROTECTED]> &

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
you no other option than to cast it > to your model, which isn't much better either, as you get the same > result except that it looks uglier. > > -Matej > > On Wed, May 21, 2008 at 10:07 PM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > no i am really agai

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
t; not strong. > >> > >> we can still use generics such as setresponsepage(class >> page>) to gain bits of typesafety here and there, but if we remove > >> them from component we obviously have to remove them from imodel. > >> > >> so lets s

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
imodel. > > > > so lets start a vote with a parallel discussion thread just for this. > > > > -igor > > > > On Wed, May 21, 2008 at 8:19 AM, Martijn Dashorst > > <[EMAIL PROTECTED]> wrote: > >> On Wed, May 21, 2008 at 5:05 PM, Johan Compagner

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
arallel discussion thread just for this. > > -igor > > On Wed, May 21, 2008 at 8:19 AM, Martijn Dashorst > <[EMAIL PROTECTED]> wrote: > > On Wed, May 21, 2008 at 5:05 PM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > >> Generics is type safety > > &g

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
goal. API clarity > was, and JavaDoc is not API clarity. > > Martijn > > On Wed, May 21, 2008 at 4:59 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> > wrote: > > Johan Compagner wrote: > >> > >> yes i also thought about some time ago. > >> > &g

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
yes i also thought about some time ago. But this is not really better... Now without you doing a cast in the code (so that you know what you are doing) you suddenly have a class cast exception at some point later on class MyComp extends Component { public MyComp() { IModel mode

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
help a little: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6384510 > > (verified with java 1.5 on mac os x leopard) > > > > > > Am 21.05.2008 um 11:13 schrieb Martijn Dashorst: > > > >> On Wed, May 21, 2008 at 11:03 AM, Johan Compagner <[EMA

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
c static class Derived extends Base > { > } > } > > > > > > > > > Am 21.05.2008 um 10:38 schrieb Gerolf Seitz: > > > On Wed, May 21, 2008 at 10:30 AM, Johan Compagner <[EMAIL PROTECTED]> >> wrote: >> >> always strange that

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
I see a lot of problems and type > duplication for little gain. I think having IModel generified is a > good thing because it allows you to specify types on your component > constructors. > > Martijn > > On Wed, May 21, 2008 at 10:38 AM, Gerolf Seitz <[EMAIL PROTECTED]> &g

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
always strange that that works If you just look at it then it seems to be the same thing :) i already did those changes for IVisitor, from public final Object visitChildren(final Class clazz, final IVisitor> visitor) to this i believe. public final > Object visitChildren(final Class clazz, final

Re: Panel's LoadableDetachableModel not being loaded

2008-05-20 Thread Johan Compagner
so you have Panel SubPanel1 SubPanel2 all three of them have a LoadableModel and the 2 subs depend on the Parent panel? But does the parent panel itself do anything with the data? do you call getModelObject on it? or getModel().getObject() ? if not that you dont need to give that panel the

Re: ListItem queries

2008-05-20 Thread Johan Compagner
final MyPanel[] firstPanel =new MyPanel[1]; ListView featuresList = new ListView("listView", myList) { protected void populateItem(ListItem item) { MyPanel panel = new MyPanel("panel", item.getModelObject())); if (firstPanel[0] == null) firstPanel[0] = panel; item.add(panel); } }.

Re: ListItem queries

2008-05-20 Thread Johan Compagner
where do you want get the first panel? On Tue, May 20, 2008 at 5:46 AM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to get access to the first panel added to a list item in > onBeforeRender from its parent. > > I have the following > > ListView featuresList = new ListView("listView"

Re: Encoding problem when deploying on production server

2008-05-20 Thread Johan Compagner
can you please confirm or infirm this? > > > Thank you ;) > > > > Johan Compagner a écrit : > >> what are you doing with that StringResponse? >> Because that string response still is just java so UTF >> when that string is streamed or converted to bytes yo

Re: Providing IModel to Validators

2008-05-20 Thread Johan Compagner
we kind of have that support in AbstractValidator protected Map variablesMap(IValidatable validatable) { final Map resourceModel = new HashMap(1); return resourceModel; } the problem is that somehow it should do a call back to the IValidatable (which is FormComponent m

Re: stream content with an IndicatingAjaxLink

2008-05-20 Thread Johan Compagner
what do you want to do with that picture? what should happen? a save dialog? (attachement?) if that is the case then the best thing i guess to do is use a normal link or use an ajax link that sets the window.location.href = xxx in a piece of javascript. (maybe inside a iframe?) johan On Mon, Ma

Re: Encoding problem when deploying on production server

2008-05-20 Thread Johan Compagner
what are you doing with that StringResponse? Because that string response still is just java so UTF when that string is streamed or converted to bytes you should do something.. johan On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien <[EMAIL PROTECTED]> wrote: > Hello guys, > > I have a problem

Re: Contribution for Wicket

2008-05-20 Thread Johan Compagner
I think Matej can give you his paypal number ;) But kidding aside i dont know if this happens with individual apache projects. The thing i could think of is that you sponsor a wicket meeting or the apache foundation in general. Johan On 5/20/08, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > >

Re: New wicket site and wiki post

2008-05-19 Thread Johan Compagner
you should be in Switzerland in june :) I will be in Swi from 7 - 14 june. When are you in holland? On Mon, May 19, 2008 at 5:48 PM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > Very cool! I will be in the Netherlands in June. > People tell me they are crazy for football there. > People paintin

Re: [JUG] Advanced Wicket - Cincinnati, OH (tonight)

2008-05-19 Thread Johan Compagner
love to come, but i think i just just cant make it even i i start moving now :( On Mon, May 19, 2008 at 4:18 PM, James Carman <[EMAIL PROTECTED]> wrote: > All, > > If anyone is in the Cincinnati, OH area, I'm giving an "Advanced > Wicket" talk tonight at our Cincinnati Java Users Group > (www.cin

Re: Thread safety for components

2008-05-19 Thread Johan Compagner
event. Not all of my > users are Web users, so the underlying list model is receiving events > from other processes (mailer daemon, and so forth). > > Johan Compagner wrote: > > Accessing pages in other threads then the request thread is very bad > idea. > > Because http se

Re: State of 1.4-m1

2008-05-19 Thread Johan Compagner
M2 will be there anyday now. I guess that M3 will follow M2 in about 3,4 weeks and hopefully we can release 1.4 a few short weeks (2) after that. On 5/19/08, Ned Collyer <[EMAIL PROTECTED]> wrote: > > I'm just curious as to an approximate release schedule for 1.4 getting out > of > its milestone r

Re: Thread safety for components

2008-05-18 Thread Johan Compagner
oblem >> you have run into? > > No, nothing specific yet - just a general foreboding of future > problems - having been bitten, before. > > Johan Compagner wrote: >> Pages are threadsafe and that is not done by a big sync block, but by >> placing a barrier. See Session

Re: Page pooling (for stateless pages)

2008-05-18 Thread Johan Compagner
For stateless pages?? The whole point of stateless is that they arent kept in the session/memory. And pooling pages is not really what you want any way, you can only pool then for a single user/sessiion so you would have a pool for every session. And when do you decide to return a pooled page? O

Re: Page pooling (for stateless pages)

2008-05-18 Thread Johan Compagner
For stateless pages?? The whole point of stateless is that they arent kept in the session/memory. And pooling pages is not really what you want any way, you can only pool then for a single user/sessiion so you would have a pool for every session. And when do you decide to return a pooled page? O

Re: IChoiceRenderer: RadioGroup CheckBoxMultipleChoice

2008-05-18 Thread Johan Compagner
Isnt the value used by us already?? To know what checkbox/radio is selected? On 5/16/08, Hoover, William <[EMAIL PROTECTED]> wrote: > It could be left as is and use the display value as expected (i.e. > ). > > Another option would be to have an identifier renderer: > > public interface IChoiceRend

Re: Wicket java.lang.IllegalAccessError bug?

2008-05-18 Thread Johan Compagner
I have no idea what could cause that suddenly in 1.4 Maybe something that java 5 source compiler does? But a simple if works fine? On 5/17/08, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > I just upgraded from 1.3.1 to 1.4-m1 and I received the strangest of errors. > > Has anyone had the sam

Re: Using ResourceReference in osgi bundle

2008-05-18 Thread Johan Compagner
Did you impl your own classresolver so that the class can be resolved correctly? What is the url and should the class come from a bundle? Then you have to make sure that wicket finds your class On 5/17/08, james yong <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a javascript file inside a osgi bun

Re: "after render" using a behavior vs. override in the component

2008-05-18 Thread Johan Compagner
setFlag(FLAG_AFTER_RENDERING, false); > } > > It looks to me that according to the API Javadoc the output should be same. > But it isn't. > Am I misunderstanding something or there's a minor bug? > > On Sat, May 17, 2008 at 1:45 PM, Johan Compagner <[E

Re: SWARM Login

2008-05-17 Thread Johan Compagner
But that is simple,just check in your real/default home page if the user is logged in. So yes throw a redirect exception to his homepage On 5/17/08, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello, > > you are right, Application.getHomePage() is not the "user home". > every user has a "user home"

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-17 Thread Johan Compagner
man Rahmatizadeh <[EMAIL PROTECTED]> wrote: >>> Or just copy WicketFilter into your source, and fix it there, it'll >>> override >>> the default. Its a quick fix until the release comes out. >>> >>> Iman >>> >>> On Fri, May 16, 200

Re: "after render" using a behavior vs. override in the component

2008-05-17 Thread Johan Compagner
lang="en"> > > Button Test > > > wicket:id="extendingButton">Extending Button > wicket:id="behavioralButton">Behavioral > ButtonAbstractBehavior.onRendered(...) > > > This is just before the html closing tag > > >

Re: Wicket Visibility vs. CSS visibility

2008-05-16 Thread Johan Compagner
Many people expect that is the component is not visible also the models and the data ias not called or touched. Because there state cant be resolved correctly. Als security is depending on it, it can never be that some thing where security says it is not visible/cant render that is still renders da

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread Johan Compagner
t in an Ajax world, there really is no other way > around the problem, is there ? > > > > Johan Compagner wrote: > > > > no i am against no-store as default. > > > > back button should be quick. If the line is a bit slow then users get > very > > very

Re: Back button retrieving cached data even with proper headers.

2008-05-16 Thread Johan Compagner
no i am against no-store as default. back button should be quick. If the line is a bit slow then users get very very very (i would) annoyed if the back button takes a while because it connects back to the server. A back button shouldnt do that. I know we in wicket wants it to do it but from an en

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-15 Thread Johan Compagner
Or get the snapshot build from or wicketstuff maven repo On 5/16/08, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Chris, > > If you read the thread carefuly you can extract a quick fix. You'll need > it as the core developers argumented against a quick bugfix release. > Just checkout Wicket from S

Re: Thread safety for components

2008-05-15 Thread Johan Compagner
It is not sync around session, for one thing the wicket Sessio object is not thread safe.. Same for shared resources those 2 can be hit by multiply rerquest at once. Pages are threadsafe and that is not done by a big sync block, but by placing a barrier. See Session.getPage() there there is code t

Re: Using generics with some non-generic classes in Wicket

2008-05-15 Thread Johan Compagner
yes and those i already came across some in wicket i changed to and suddenly in extentions and/or examples compile errors all over the place... then i quickly turn it off again... (for now) johan On Thu, May 15, 2008 at 4:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > this is the usecase we

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread Johan Compagner
ersionNumber=0] > > as i understand it pagemapname=null is just the default page map, so that > shouldnt be a problem. Im still at a loss as to why this happens though. > > > > > Johan Compagner wrote: > > > > look at setAttribute then for the store > > It should be

Re: ErrorPage won't render

2008-05-15 Thread Johan Compagner
t; > > On Thu, May 15, 2008 at 3:46 PM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > > ok somehow spring does something > > Caused by: > > org.springframework.transaction.CannotCreateTransactionException: > > Could not open JDBC Connectio

Re: "after render" using a behavior vs. override in the component

2008-05-15 Thread Johan Compagner
t; > public but more protected or final.. > > > > johan > > > > > > On Thu, May 15, 2008 at 2:44 PM, Eyal Golan <[EMAIL PROTECTED]> wrote: > > > > > ok. thank, I'll try it (though I have never written JavaScript till a > few &g

Re: "after render" using a behavior vs. override in the component

2008-05-15 Thread Johan Compagner
, Eyal Golan <[EMAIL PROTECTED]> wrote: > ok. thank, I'll try it (though I have never written JavaScript till a few > days ago...) > BTW, why is the difference between the overriding method and the behavior > method? > > On Thu, May 15, 2008 at 2:52 PM, Johan Compagne

Re: "after render" using a behavior vs. override in the component

2008-05-15 Thread Johan Compagner
use a behavior that adds an onDocumentLoad/Ready script to the browser On Thu, May 15, 2008 at 12:35 PM, Eyal Golan <[EMAIL PROTECTED]> wrote: > Hello, > I have a MyButton that extends Button. > I have a JavaScript that I need to ad to the output markup after the > button's markup. > I'm trying t

Re: ErrorPage won't render

2008-05-15 Thread Johan Compagner
ce(NativeConstructorAccessorImpl.java:39) >at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >at > > org.apache.wicket.sessi

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread Johan Compagner
look at setAttribute then for the store It should be but into the session in the detach of the request. On Thu, May 15, 2008 at 12:30 PM, richardwilko < [EMAIL PROTECTED]> wrote: > > I still get the same behaviour with the httpsessionstore. > > the problem seems to be that the page isnt put in th

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread Johan Compagner
e problem, but i dont see the problem on other > pages with lazy loaded components. > > > > > > Johan Compagner wrote: > > > > so it seems a terracotta problem or config problem... > > What kind of session store are you using? > > > > On Thu, May

Re: ErrorPage won't render

2008-05-15 Thread Johan Compagner
do you have more stacktrace like Cause : x On Thu, May 15, 2008 at 11:22 AM, Sergey Podatelev < [EMAIL PROTECTED]> wrote: > Hello, > > I have a custom error page BaseErrorPage: > > public class BaseErrorPage extends WebPage { > >private final static long serialVersionUID = 1L; > >publ

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread Johan Compagner
so it seems a terracotta problem or config problem... What kind of session store are you using? On Thu, May 15, 2008 at 11:15 AM, richardwilko < [EMAIL PROTECTED]> wrote: > > Hi, > > I almost have clustering working now - thanks for all the help people have > given me. > > However keep seeing pa

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
s have to suppress warnings in their code, which is > unacceptable at least to me. the whole generics thing turned out to be > quiet a lot crappier then i thought it would. > > -igor > > > On Wed, May 14, 2008 at 12:48 PM, Johan Compagner <[EMAIL PROTECTED]> > wrote: &

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
Component should be parameterized > > so that means we have to change our sig to > > but then we are back to the problem described in this thread. > > generics suck. > > -igor > > On Wed, May 14, 2008 at 12:12 AM, Johan Compagner <[EMAIL PROTECTED]> > wrote:

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
nteger in the model then? save an extra > memory slot, because if you make it Void then no one can set the > modelobject anyways. > > -igor > > On Wed, May 14, 2008 at 8:28 AM, Johan Compagner <[EMAIL PROTECTED]> > wrote: >> hmm i will make it >> because the Loo

Re: A question about IHeaderContributor

2008-05-14 Thread Johan Compagner
as long as eelco wants to fix it i dont mind On Wed, May 14, 2008 at 9:59 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > On Wed, May 14, 2008 at 2:33 AM, Eelco Hillenius < > [EMAIL PROTECTED]> > wrote: > > > If you think it is a bug, please open a JIRA > > issue for it. > > > didn't we EOL Wicket

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
nt: Wednesday, May 14, 2008 8:21 AM > >>> To: users@wicket.apache.org > >>> Subject: Re: Using generics with some non-generic classes in Wicket > >>> > >>> > >>> Somewhat related to this thread, when I moved to generics win Wicket > >>

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
; Joham, could you please change the following class too ? > > file: Loop.java > line:53 > from: LoopItem extends WebMarkupContainer > to: LoopItem extends WebMarkupContainer > > thx ;) > Stefan > > > > > Johan Compagner wrote: > > >

Re: Why Localizer Retained so many heapsize?

2008-05-14 Thread Johan Compagner
r i deploy it in a high load circumstance. > > I'm not sure about what you said about your fix for not including page. > can you make it some clear? thanks very much. > > > 2008/5/14 Johan Compagner <[EMAIL PROTECTED]>: > > > ok so you dont store the tested cacheKey '

Re: Why Localizer Retained so many heapsize?

2008-05-14 Thread Johan Compagner
super.putIntoCache(cacheKey, string); > } > }); > > > > 2008/5/14 Johan Compagner <[EMAIL PROTECTED]>: > > > but what did you do there in that method? > > nothing? you dont cache anything anymore? > > > > On Wed, M

Re: persistent sessions in Tomcat

2008-05-14 Thread Johan Compagner
r in my > application... but I haven't any error messages... ok, I'll continue > experiments. > Does that message "page expired" mean that the session is gone? So I have > next question: default session timeout for Tomcat is 30 minutes but "page > expired&quo

Re: Why Localizer Retained so many heapsize?

2008-05-14 Thread Johan Compagner
thing. I know some of > > ICU's > > resources are stored this way. > > > > > > > > Jonathan Locke wrote: > > > > > > > > > maybe localizer should limit its size or use a soft reference cache? > > > > > >

Re: FYI: new wicket site

2008-05-14 Thread Johan Compagner
ahh with view source i can finally see that it is really wicket ;) its not that you dont use any javascript... man what an includes :) johan On Wed, May 14, 2008 at 10:52 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > nice :) > > one thing though: i went searching for uitjes and after clickin

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
a warning > because the method says it's generified, so you should be using the generic > type. > > Johan Compagner wrote: > > > I dont care, because i cant do any thing with the ? The only thing it > > enforces is that it must now be a generic class which is annoying

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Johan Compagner
that also cause a > warning in user's code? > > also having those suppress annotations practically _everywhere_ will be > annoying > > -igor > > > On Tue, May 13, 2008 at 11:56 PM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > I dont care,

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
that or we do use it and then suddenly it is in my eyes restricted to much. On 5/14/08, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > Johan Compagner wrote: > > yes thats the reason > > > > you are calling the method add with a generified component but that > > c

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
rough. i was just pointing out another option. > in some sense a label shows a string like a listview shows a list. > that's all. > > > Johan Compagner wrote: > > > > cant i have a Label that has a Date as a object? > > That is resolved by the converter for disp

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
gt; Or should I make a RFE, or can I help anyway-for example attach a patch ? > > I love your work and Wicket, so I do my best, to make it better ;) > > Stefan Simik > > > > > > > Johan Compagner wrote: > > > > yes thats the reason > > >

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
yes thats the reason you are calling the method add with a generified component but that container itself is not generified i dont like this about generics expecially the onces like this: add(MarkupContainer container) then suddenly a none generified component cant be added... thats really stup

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
> public class Label extends WebComponent > > not saying this is the right thing to do as it might break a lot of code, > but it would be more precise. > > > Johan Compagner wrote: > > > > the only thing i can quickly come up with is this > > > >

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
works ! Thx. > > But, is not String something Serializable ? > I cannot understand where was the problem, > but I know, this is more about Java Generics, not about Wicket. > > > > > Johan Compagner wrote: > > > > the only thing i can quickly come up with is t

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Johan Compagner
the only thing i can quickly come up with is this public ExtendLabel(String id, T string) { super(id, new Model(string)); } On Tue, May 13, 2008 at 4:55 PM, Stefan Simik <[EMAIL PROTECTED]> wrote: > > Thx Maurice, your are right. I was using Wicket 1.4M1. >

Re: Inmethod Grid patch for Wicket 1.4-m1

2008-05-13 Thread Johan Compagner
i guess Matej wil gladly apply it for you Except that Matej then has to branch... i what does he like that... :) johan On Tue, May 13, 2008 at 11:02 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello, > > Inmethod Grid does not support Wicket 1.4 currently. Apply the attached > patch (creat

Re: persistent sessions in Tomcat

2008-05-13 Thread Johan Compagner
the default config of tomcat already restarts the wicket example sessions just fine for me I havent changed 1 thing about that On Tue, May 13, 2008 at 11:59 AM, ElSe <[EMAIL PROTECTED]> wrote: > > Do you mean tomcat logs? No I don't. Some *.ser files appear in the > work\Catalina\localhost\ dir

Re: encapsulation, extension and transparent resolvers

2008-05-12 Thread Johan Compagner
Does it break api? Or is it dangerous on some level? Can it break running code? On 5/13/08, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > On Mon, May 12, 2008 at 7:26 PM, Jan Kriesten <[EMAIL PROTECTED]> > wrote: > > > maybe gerolf didn't want to step into ground where others may have more > > insight

Re: Why is it illegal to update hierarchy in onAfterRender?

2008-05-12 Thread Johan Compagner
Except events back to them dont work.. (because they only lived in the response phase of the page) On 5/13/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > Hmm i am affraid the source for more info is the source.. > > AutoAdd can be done in the rendering. They are only there just t

Re: Why is it illegal to update hierarchy in onAfterRender?

2008-05-12 Thread Johan Compagner
wrote: > Johan Compagner wrote: > > What you can use is try to add it as auto add.. > > So create an auto add component, we will remove those for you > > > I tried to find some more on this topic, but both google as the Wicket > wiki are not very informative.

Re: How to use AjaxFormChoiceComponentUpdatingBehavior in Check/CheckGroup

2008-05-12 Thread Johan Compagner
Code seems fine. What is the hrml output? On 5/12/08, freak182 <[EMAIL PROTECTED]> wrote: > > Hello, > I having problem integrating AjaxFormChoiceComponentUpdatingBehavior. my > code snippet: > > final WebMarkupContainer container = new WebMarkupContainer("wmc"); > final CheckGroup chkGrp = new Ch

Re: encapsulation, extension and transparent resolvers

2008-05-12 Thread Johan Compagner
A whole story about bladiabla, but what is now the actual problem?? Why do you need transparant resolvers and why dont they work for you ? On 5/12/08, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > hi martijn, > > > I don't do that. I pose that it is very easy to say that feature X > > must be impl

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Johan Compagner
a reall UUID? that cant be then all the keys would change constantly... The point is that the paths of components on a page class are quite stable and for those the keys are stored If we use UUID for those then every key would be different for the "same" component on a page class The thing is tha

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Johan Compagner
and that would walk over the hierarchy.. how would that help? also getInputName is a bit smarter. That can stop with the first form it finds. Because an input name only have to be unique for the form. johan On Mon, May 12, 2008 at 1:02 PM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > hi johan,

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Johan Compagner
AIL PROTECTED]> wrote: > Is there any way to make getCacheKey() return smaller keys ? Those huge > keys > are consuming a lot of memory and also the equals/hashcode check on the > key > will take resources. > > On Mon, May 12, 2008 at 12:33 PM, Johan Compagner <[EMAIL PROTECTE

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Johan Compagner
no the api is just opened up to be able to create your own map impl I can change it to be ICache. But the localizer currently just needs a Map thats a pretty common thing to have. But i agree wit that contains call. thats just double up because if it is we have too look it up again. I will remov

Re: Wicket 1.4 Generics

2008-05-12 Thread Johan Compagner
merged On Mon, May 12, 2008 at 11:30 AM, Andre Prasetya <[EMAIL PROTECTED]> wrote: > thanks, how about the wicket-spring-annot ? > > http://repo1.maven.org/maven2/org/apache/wicket/wicket-spring-annot/ > > is the 1.3.3 version compatible with the 1.4-m1 ? > > Frank Bille wrote: > > > http://repo1

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Johan Compagner
why? that cache will be used now and there in the localizer. Because we also have support for not caching at all and then we have to test the cache if it is null we just have a protected factory method now for a cache implementation that must be a map. johan On Mon, May 12, 2008 at 11:15 AM, J

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread Johan Compagner
nsions.markup.html.repeater.data.table.DataTable$1:rows-ir.co.meraat.avicenna.web.components.AvicennaDataTable$InnerDataTable:inner-table-ir.co.meraat.avicenna.web.components.AvicennaDataTable$1:filter-form-ir.co.meraat.avicenna.web.components.AvicennaDataTable:table-ir.co.meraat.avicenna.vita.Grad

Re: javascript error in internet explorer

2008-05-12 Thread Johan Compagner
is there a jira issue for this patch? On Sat, May 10, 2008 at 12:34 AM, PITI <[EMAIL PROTECTED]> wrote: > > I had a similar problem. In wicket-ajax.js, I made the following changes, > and > now it works fine : > > if (Wicket.Focus && Wicket.Focus.lastFocusId) { > t.setRequestHeader("Wicket-Fo

Re: Load serialized (or in session) page/model on refresh..

2008-05-11 Thread Johan Compagner
HybridUrlEnoding On Sun, May 11, 2008 at 9:04 AM, mfs <[EMAIL PROTECTED]> wrote: > > Guys, > > Firstly, Is that a right understanding that doing a browser-refresh of the > page would result in a new instance of the page being created everytime and > similarly a new model instance would be binded

Re: Good wicket patterns

2008-05-11 Thread Johan Compagner
nents > in the search panel in order to issue the search. So, the search button (as > opposed to the form submit button), had to issue that partial > validate/updateModel work using visitors. Could it have been done better? > > > > Johan Compagner wrote: > >

Re: form fields become page parameters

2008-05-11 Thread Johan Compagner
hmm i think this is very hard to pass over.. If it is a statelessform and the page must first be created yes the page gets the pageparameters of the request And yes that is ofcourse then all the fields of the form.. And at that point it is a normal bookmarkable request.. after the page is created

Re: AjaxLazyLoadPanel question

2008-05-11 Thread Johan Compagner
just to make it more clear to you AjaxLazyLoadPanel == a Panel == Own markup so what you have is not possible you can have that code just fine in lazy load panel but the panel must have its own markup that is this: option 1 option 2

Re: Redundant method only works for PropertyModel

2008-05-11 Thread Johan Compagner
> > Well , it is in fact a my custom MyModel extends Model , > besides getCity() , setCity(...) , there are still other getter/setters out > there. > That's why I wrote PropertyModel(model , "city") there. > But if a PropertyModel sees a IModel as its object then it will call getObject() and on th

Re: add method on Form for wicket 1.4

2008-05-11 Thread Johan Compagner
so you compile against 1.4? then you run against 1.3 because i see that it wants to have the array type and that is an 1.4 method (varargs) johan On Sun, May 11, 2008 at 9:40 AM, m_salman <[EMAIL PROTECTED]> wrote: > > Hi, > > I am very very new to Wicket and I am at a very early stage of my >

Re: Why Localizer Retained so many heapsize?

2008-05-09 Thread Johan Compagner
Can you really see what it holds? Almost 2G in memory in localizer is extreme... Thats really a lot of strings.. You could try to read that dump with yourkit if your current one doesnt show enough. On 5/9/08, Quan Zhou <[EMAIL PROTECTED]> wrote: > Hello everyone. > > I recently develop my App use

Re: Good wicket patterns

2008-05-09 Thread Johan Compagner
About point 1, there you mean that yoiu have formcomponents inside a formcomponent like formcomponent panel? We dont go further there because that is the responsibility of the parent, the childs could be standalone nothing. And only concatted it is valid On 5/9/08, gurgel2 <[EMAIL PROTECTED]> wrot

Re: PageParameters request-for-enhancement

2008-05-09 Thread Johan Compagner
I will look at it this weekend On 5/9/08, Doug Donohoe <[EMAIL PROTECTED]> wrote: > > What is the likelihood that we can get this patch included in the next 1.4 > milestone? > > Again, I'll repeat my offer to submit it myself if given commit access. I > updated the JIRA issue with the API javadoc

Re: ModalWindow / zindex

2008-05-09 Thread Johan Compagner
I think that is hardcoded, make a patch/jira issue On 5/9/08, Doug Leeper <[EMAIL PROTECTED]> wrote: > > Is there a way to programatically change the zindex for the modalwindow? > > I am having issue where the ModalWindow is being placed behind images on my > page (actually behind an iframe). > >

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