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

2008-05-13 Thread Johan Compagner
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. Not to mention that in that area eclipse and javac accept different things So or we in wicket dont use any where and have supress warning everywhere for tha

Re: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread RUMikeP
Why would you want to delete those jars? I am busy using them and the appear to be working fine (for what I am using). Please can you explain what is broken/why it would be better to use 1.3-SNAPSHOT? What do I lose by reverting back to 1.3-SNAPSHOT? What is the latest version of Wicket that I

Re: Wicket play nicely with GWT

2008-05-13 Thread Igor Vaynberg
you can always generate a callback url using urlfor(interface) and then pass that url to the gwt component. for example of this see how Link generates a url that results in onLinkClicked() being invoked on it. -igor On Tue, May 13, 2008 at 8:51 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > Thank

Re: Terracotta and PatternValidator

2008-05-13 Thread Eelco Hillenius
> I have run into the same issue. I solved it with brute force by > writing a regexp to capture all the inner classes from the Pattern > class and inserting them into my terracotta config's dso section. It > is not the most elegant solution but it will get you past this issue. Why not just wri

RE: Wicket play nicely with GWT

2008-05-13 Thread Brill Pappin
I just now saw your post *just* before this one... Looks like we have a magic bullet here :) Thanks for you help! - Brill Pappin -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 10:53 PM To: users@wicket.apache.org Subject: Re: Wicket play

RE: Wicket play nicely with GWT

2008-05-13 Thread Brill Pappin
Thanks, I'll try that. What I did while waiting to see what others come up with is dump the servlet session and see what the key was. Messy (and error prone as I refactor) but worked in the short term. Here it is from inside the GWT servlet in case anyone is interested: private String getTokenFrom

Re: Wicket play nicely with GWT

2008-05-13 Thread Igor Vaynberg
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getSession() should get you the raw http session. -igor On Tue, May 13, 2008 at 7:23 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > Ok, I've read over several threads on Wicket+GWT and know that are several > people us

Re: consistent way of getting httpservletresponse?

2008-05-13 Thread Igor Vaynberg
On Tue, May 13, 2008 at 7:10 PM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > Whats the consistent way of getting HttpServletResponse from the > RequestCycle? ((WebRequestCycle)RequestCycle.get()).getWebResponse().getHttpServletResponse(); > Why doesnt the Response class have abstract or de

Wicket play nicely with GWT

2008-05-13 Thread Brill Pappin
Ok, I've read over several threads on Wicket+GWT and know that are several people using the two together. I've got a nice clean setup that is working all except for one minor detail. The problem is that Wicket actually does the authentication and I store a token in the sessionStore, however I nee

Re: Terracotta and PatternValidator

2008-05-13 Thread Ryan
Richard, I have run into the same issue. I solved it with brute force by writing a regexp to capture all the inner classes from the Pattern class and inserting them into my terracotta config's dso section. It is not the most elegant solution but it will get you past this issue. Good luck, Ryan

consistent way of getting httpservletresponse?

2008-05-13 Thread Ritz123
Hi, Whats the consistent way of getting HttpServletResponse from the RequestCycle? In one of my compoents, I have tried both ((WebResponse)Component.getResponse()).getHttpServletResponse() and ((WebResponse)RequestCycle.get().getResponse()).getHttpServletResponse() but both of them fail becaus

Re: How to reset the feedback panel

2008-05-13 Thread Eelco Hillenius
In 1.3 and up (so this won't work for 1.2): You can use Session.get().getFeedbackMessages().clear() (or call clear using a filter to just clear specific ones). Component specific feedback messages are also temporarily stored in the session, so you'll get those as well. Btw, Session#getFeedbackMes

How to reset the feedback panel

2008-05-13 Thread Michael Mehrle
How do I reset the feedback panel from within an event handler? I tried to set the feedback's model to null, but that throws an error: org.apache.wicket.WicketRuntimeException: No get method defined for class: class com.evite.event.model.Event expression: feedback at org.apache

Re: getBodyContainer replacement for appending attributes to body tag

2008-05-13 Thread Eelco Hillenius
> That's described in the migration document here: I meant: http://cwiki.apache.org/WICKET/migrate-13.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: getBodyContainer replacement for appending attributes to body tag

2008-05-13 Thread Eelco Hillenius
Hi, That's described in the migration document here: [quote] Replacement for getBodyContainer If you had code like this: public void renderHead(HtmlHeaderContainer container) { ((WebPage) getPage()).getBodyContainer().addOnLoadModifier("foo();", null); super.renderHead(container); } you sho

Re: A question about IHeaderContributor

2008-05-13 Thread Eelco Hillenius
On Tue, May 13, 2008 at 5:28 PM, nate roe <[EMAIL PROTECTED]> wrote: > I can try that I suppose. > > The Javadoc for 1.2 seems to mention Component quite a lot though: > > http://wicket.sourceforge.net/apidocs/wicket/markup/html/IHeaderContributor.html Right. I guess I just lost track of what w

Re: Processing a form before page components are created

2008-05-13 Thread Eelco Hillenius
> The reason I want to do this is that my pages are stateless, and I want to > process the submitted form before all the components on the page are > initialised, incase I need to load different data models, or redirect the > request to another page, thus saving unnecessary database calls and > co

Re: A question about IHeaderContributor

2008-05-13 Thread nate roe
I can try that I suppose. The Javadoc for 1.2 seems to mention Component quite a lot though: http://wicket.sourceforge.net/apidocs/wicket/markup/html/IHeaderContributor.html On Tue, May 13, 2008 at 5:22 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > I'm not sure, but I think in 1.2 you can onl

Re: A question about IHeaderContributor

2008-05-13 Thread Eelco Hillenius
I'm not sure, but I think in 1.2 you can only use this interface for behaviors. Am I right Matej/ others? Nate, can you try adding what you want as a behavior to the form? Eelco On Tue, May 13, 2008 at 4:33 PM, nate roe <[EMAIL PROTECTED]> wrote: > I'm using Wicket 1.2. > > I have a Form that im

A question about IHeaderContributor

2008-05-13 Thread nate roe
I'm using Wicket 1.2. I have a Form that implements IHeaderContributor. My intent is to use renderHead(Response) to write some JavaScript to the response. The Form is added to the Page. However, renderHead(...) on my Form is never called. Am I using this interface incorrectly? Thanks, Nate

SSL RequestCodingStrategy question

2008-05-13 Thread Ritz123
Hi, Have a question about the reference document on wiki for "How to switch to ssl mode (http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html), why do SecureWebRequestCodingStrategy and even the custom RequestProcessors throw away the query string and ?wicket: portion of the URL? Isnt th

Re: DateTextField - what am I missing here?

2008-05-13 Thread standon
"this" points to current wicket page. So wicket looks for "expiryDate" in the wicket page. If you declare "expiryDate" within wicket page, you won't get error message. Otherwise, as suggested by Mr Mean, instead of "this" you should pass model which has getter/setters for "expiryDate". Sanjeev

Re: How to implement hint text in a TextField?

2008-05-13 Thread nate roe
I have one last small problem with this topic which is that I don't see any particularly elegant place to clear the hint text from this TextField when the form is submitted. I've considered adding JavaScript to the Form to implement the "onSubmit" handler. I don't like this case because then Java

Re: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Maurice Marrink
Ok, so i did some testing (and in the process found another bug, unrelated to your issue :)), but i could not reproduce your permission denied. Here is my simple setup: public class ContainerPage2 extends SecureWebPage { /** * Construct. */ public ContainerPage2(

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

2008-05-13 Thread Sebastiaan van Erk
Johan Compagner wrote: 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 a

Re: DateTextField - what am I missing here?

2008-05-13 Thread Maurice Marrink
When you do new PropertyModel(this, "expiryDate"), this refers to your page EditDiscountCode which does not have get/setExpiryDate. Instead of this you should use the model you also pass to the form which contains a DiscountCode. Maurice On Tue, May 13, 2008 at 11:13 PM, V. Jenks <[EMAIL PROTECTE

Re: DateTextField - what am I missing here?

2008-05-13 Thread V. Jenks
I don't know, would it? That's what I'm trying to figure out, the example is very vague. By that logic, I should name pass in "expiryDate" even though I've already named the field that? I tried: DateTextField expiryDate = new DateTextField( "expiryDate", new Pr

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

2008-05-13 Thread Johan Compagner
yeah i know just wanted to give an example But Label == String is not the really the same thing as ListView == List.. Because for a Label getModelObject() doesnt have to be a String (it can be anything) but for ListView.getModelObject() does have to be a List.. This is also because our converter

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

2008-05-13 Thread Jonathan Locke
have not thought it through. 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 display? > > johan > > >

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

2008-05-13 Thread Johan Compagner
i already did the commit just yet.. i did make them all because i think people generally dont want to generify them anyway (use the model object) On Tue, May 13, 2008 at 9:48 PM, Stefan Simik <[EMAIL PROTECTED]> wrote: > > please, and will be these classes later generified ? > Or should I ma

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

2008-05-13 Thread Stefan Simik
please, and will be these classes later generified ? 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 > > you are calling the method a

Re: DateTextField - what am I missing here?

2008-05-13 Thread Gwyn Evans
>From a very quick look, won't your property model value of "date" will mean it'll be doing a "getDate()" not "getExpiryDate()"? /Gwyn On Tue, May 13, 2008 at 8:38 PM, V. Jenks <[EMAIL PROTECTED]> wrote: > > Sorry, I'll clarify, was trying to be as condensed as possible. > "EditDiscountCode" is

Re: DateTextField - what am I missing here?

2008-05-13 Thread V. Jenks
Sorry, I'll clarify, was trying to be as condensed as possible. "EditDiscountCode" is the name of the page, which inherits WebPage. The model object of the form, which is my "DiscountCode" entity, does have a getter/setter for the expiryDate field, which is what I showed you in my initial post.

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
cant i have a Label that has a Date as a object? That is resolved by the converter for display? johan On Tue, May 13, 2008 at 6:09 PM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > well, unless this: > > public class Label extends WebComponent > > became: > > public class Label extends WebC

Re: DateTextField - what am I missing here?

2008-05-13 Thread Maurice Marrink
Assuming EditDiscountCode is a wicket component, given the new PropertyModel(this, "date") You probably want to either use an object that has a get/setDate (your model object) or add those methods to your component. Maurice On Tue, May 13, 2008 at 9:04 PM, V. Jenks <[EMAIL PROTECTED]> wrote: > >

Re: JPA suggestions?

2008-05-13 Thread Nino Saturnino Martinez Vazquez Wael
You could also see http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite , at some point Iolite will evolve into a little more sophisticated solution than now but you should get some of the idea anyhow. http://cwiki.apache.org/WICKET/blog-tutorial.html David Nedrow wrote: I have

DateTextField - what am I missing here?

2008-05-13 Thread V. Jenks
I must be missing something obvious but I can't spot itI'm using a DateTextField (Wicket 1.3.2) in my form like so: Java: DateTextField expiryDate = new DateTextField( "expiryDate", new PropertyModel(this, "date"), new StyleDateConverter("S-", true));

Re: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Maurice Marrink
On Tue, May 13, 2008 at 6:48 PM, Andrea Jahn <[EMAIL PROTECTED]> wrote: > > Hi, > > I've changed to the 1.3.1-SNAPSHOT version. Therefore I have only replaced > the constructor PolicyFileHiveFactory() by > PolicyFileHiveFactory(ActionFactory). > The result was the same as with version 1.3.0 (r

Re: Wicket Stuff devs - teamcity is open for registration

2008-05-13 Thread Frank Bille
You should have enough now Frank On Tue, May 13, 2008 at 7:57 PM, Martin Funk <[EMAIL PROTECTED]> wrote: > Hi, > > may someone please grant me some karma to manage my own build configuration? > > username: funkattack > projects: wicket-contrib-gmap2, wicket-contrib-gmap2-examples > > mf > >

Re: Wicket Stuff devs - teamcity is open for registration

2008-05-13 Thread Martin Funk
Hi, may someone please grant me some karma to manage my own build configuration? username: funkattack projects: wicket-contrib-gmap2, wicket-contrib-gmap2-examples mf 2008/5/5 Martijn Dashorst <[EMAIL PROTECTED]>: > We have moved our build server to run on teamcity. Our previous > software was

Re: JPA suggestions?

2008-05-13 Thread Eelco Hillenius
It really depends on your preferences. Either a databinder (using JPA related classes directly in your UI code) or a DAO/ services based approach will work. Eelco On Tue, May 13, 2008 at 8:29 AM, David Nedrow <[EMAIL PROTECTED]> wrote: > I have a data "driver" package built around JPA and an Enti

Re: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Andrea Jahn
Hi, I've changed to the 1.3.1-SNAPSHOT version. Therefore I have only replaced the constructor PolicyFileHiveFactory() by PolicyFileHiveFactory(ActionFactory). The result was the same as with version 1.3.0 (resultHiddenPanel not visible and the same output in the logfile). Then I changed t

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

2008-05-13 Thread Jonathan Locke
well, unless this: public class Label extends WebComponent became: 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 thi

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

2008-05-13 Thread Stefan Simik
I have one idea, the reason of the warnigs is, that parent of AjaxPagingNavigator is PagingNavigator, which has parent Panel ---> that is not parameterized. The same problem is with LoopItem, which extends the WebMarkupContainer ---> that is not parameterized. ? could this be the reason ?

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

2008-05-13 Thread Stefan Simik
Mhmm, it is meaningful ;) I will know in future, thx One of the last occuring warning is, when working with MarkupContainer#add(...) or #addOrReplace(...) method. Example: I have a simple AjaxPagingNavigator, to which I add a simple ListView --

Re: Problem with CheckBox and CheckGroup

2008-05-13 Thread Rob Sonke
There is no such thing as setSelected(true). You'll have work with a model like: new CheckBox("checkbox", new PropertyModel(yourModel, "checkboxSelected")); in that case you can lookup your model like yourModel.getCheckboxSelected(); (which you could do in your onUpdate()) You can select you

Re: [inmethod-grid] javascript error closing modal window containing grid

2008-05-13 Thread Matej Knopp
Hi, I'll look at it as soon as I get some spare time. In the meanwhile, can you try putting the modal window in a wicket form and see if that helps? -Matej On Tue, May 13, 2008 at 5:23 PM, ChuckDeal <[EMAIL PROTECTED]> wrote: > > I am experiencing a javascript error when closing a ModalWindow t

Re: JPA suggestions?

2008-05-13 Thread James Carman
Have you looked into using Spring's JPA support? On Tue, May 13, 2008 at 11:29 AM, David Nedrow <[EMAIL PROTECTED]> wrote: > I have a data "driver" package built around JPA and an Entity Manager > Factory (javax.persistence.EntityManagerFactory). This is currently used by > a couple of standalone

JPA suggestions?

2008-05-13 Thread David Nedrow
I have a data "driver" package built around JPA and an Entity Manager Factory (javax.persistence.EntityManagerFactory). This is currently used by a couple of standalone applications and works well. What is the best way to leverage this package in the context of a Wicket-based web applicatio

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

2008-05-13 Thread Johan Compagner
no String != T and the super constructor wants to have T not String. and i think you cant in that constructor ok T == String so String is valid.. i have no idea how to do that. johan On Tue, May 13, 2008 at 5:23 PM, Stefan Simik <[EMAIL PROTECTED]> wrote: > > Uuf, great :) It works ! Thx. >

[inmethod-grid] javascript error closing modal window containing grid

2008-05-13 Thread ChuckDeal
I am experiencing a javascript error when closing a ModalWindow that contains an inmethod-grid control. I am having trouble tracking where the error originates. Could anyone offer some advice on how to begin debugging an error with the ModalDialog? This is a quickstart that shows the problem

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

2008-05-13 Thread Stefan Simik
Uuf, great :) It 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 this > > public ExtendLabe

Re: Inmethod Grid patch for Wicket 1.4-m1

2008-05-13 Thread Erik van Oosten
Hello Matej, all, Ah, that is good to hear. The patch makes grid trunk in sync with wicket-1.4-m1. There might be differences with wicket-1.4 trunk? In any case, we could not build grid trunk with wicket-1.4-m1 when we retrieved it (last Friday). So please Matej, do not apply this patch on your r

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: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
Thx Maurice, your are right. I was using Wicket 1.4M1. I checked out latest from trunk, and it OK. ;) So another problematic compiler warning. For example simple - subtype of Label, which has model type of anything Serializable. public class ExtendedLabel extends Lab

Re: Inmethod Grid patch for Wicket 1.4-m1

2008-05-13 Thread Matej Knopp
Grid trunk is 1.4 of course. But it's kept in sync with 1.4 trunk. Why would Your patch basically reverses that, why would I want to apply it? :) -Matej On Tue, May 13, 2008 at 3:31 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > i guess Matej wil gladly apply it for you > Except that Matej the

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

2008-05-13 Thread Maurice Marrink
It is generified in trunk, but it might be possible that it was not yet at the time of the 1.4-m1 release. Maurice On Tue, May 13, 2008 at 3:47 PM, Stefan Simik <[EMAIL PROTECTED]> wrote: > > Hi boys, > > I would like to ask something about wicket generics. I have a warning, that > I don't kno

Using generics with some non-generic classes in Wicket

2008-05-13 Thread Stefan Simik
Hi boys, I would like to ask something about wicket generics. I have a warning, that I don't know, how to solve. For example in such a line: IModel model = new StringResourceModel( ... ); I have a warning, which I cannot remove:

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: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Maurice Marrink
Meaning either use the ComponentSecurityCheck or the snapshot version. not that stuff about changing the policy file. Mauirce On Tue, May 13, 2008 at 3:21 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > Ah got it, must have been looking with my wrong glasses on earlier :) > You are using versio

Re: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Maurice Marrink
Ah got it, must have been looking with my wrong glasses on earlier :) You are using version 1.3.0 that version of SecureContainerCheck only checks the class of the container, hence the message about missing permissions for SecureWebMarkupContainer. permission ${ComponentPermission} "xxx.yyy.zzz.fro

Re: Url resolve...

2008-05-13 Thread danielepiras
I've the same behavour describe http://www.nabble.com/is-it-a-bug--(using-beta-4)-td13284326.html#a13321146 here . I've solved my problem using: mountBookmarkablePage("/home", getHomePage()); -- View this message in context: http://www.nabble.com/Url-resolve...-tp17203548p17207838.html Se

Problem with CheckBox and CheckGroup

2008-05-13 Thread Dubois, Fabien
Hi everybody, I need really your help. In a form, from the bdd, I create checkgroups with checkgroupselectors. This checkgroup works fine with the Check. But a want to add a Checkbox with thanks to AjaxBehavior can select or unselect all the checkgroup. But I don't succed. This is t

Re: Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Andrea Jahn
Hi, here the code again without the linebreaks: Hive: 01 // pages allowed for all users 02 grant 03 { 04 permission ${ComponentPermission} "xxx.yyy.zzz.front.Login", "inherit, render"; 05 permission ${ComponentPermission} "xxx.yyy.zzz.front.Login", "enable"; 06 permission ${ComponentPermissi

Processing a form before page components are created

2008-05-13 Thread Joel Halbert
Hi, I was wondering if anyone had any good suggestions or patterns on how to process a form without using Form.onSubmit and model objects? The reason I want to do this is that my pages are stateless, and I want to process the submitted form before all the components on the page are initialis

Re: Url resolve...

2008-05-13 Thread Doug Donohoe
That actually looks to be correct behavoir.If your URL is www.myserver.com/myapplication/ , then going to .. takes you to www.mysesrver.com/myapplication (no trailing slash). Then going to /css/styles.css takes you to www.myserver.com/myapplication/css/styles.css Where is your CSS file stor

Swarm: Authorization for WebMarkupContainer

2008-05-13 Thread Andrea Jahn
Hi, I tried to create a "SecureWebMarkupContainer" (contains a DataView, Label,..), which should be only visible for authorized users. But although the user has the permission "APPL_ADMIN", he cannot see the "resultHiddenPanel". Within the hive I used the wicket id "resultHiddenPanel" to iden

Re: Url resolve...

2008-05-13 Thread James Carman
Have you tried surrounding that stylesheet link with a ? On Tue, May 13, 2008 at 4:25 AM, danielepiras <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm developing an application that run on www.myserver.com/myapplication/ > In my Index.html page, I include a css: > > > The problem is that wicket t

Re: an "lost in the dark" exception question

2008-05-13 Thread Eyal Golan
Thanks Frank, 1. ManagedItemDecorator is Serializable but without a no params constructor. 2. We are using development mode. I'll try to change to production mode and see if we can put a no-param-constructor. Cheers ... On Tue, May 13, 2008 at 12:26 PM, Frank van Lankvelt < [EMAIL PROTECTED]> wr

Re: persistent sessions in Tomcat

2008-05-13 Thread ElSe
Do you mean tomcat logs? No I don't. Some *.ser files appear in the work\Catalina\localhost\ directory so session is serialized but isn't restored. Do I understand correctly that my assumption is correct and the wicket session must be restored with the tomcat persistent manager? So there must be

Re: an "lost in the dark" exception question

2008-05-13 Thread Frank van Lankvelt
According to a conversation I had with Johan, only the last shown page is kept in memory. Earlier versions are written to disk. When using ajax, the page does not have to be actually written to disk as you cannot reach the previous state by using the back button. When using a BookmarkableLink, t

Inmethod Grid patch for Wicket 1.4-m1

2008-05-13 Thread Erik van Oosten
Hello, Inmethod Grid does not support Wicket 1.4 currently. Apply the attached patch (created by my colleague Job de Noo) to the trunk version to get it running again. Have fun, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ Index: grid-examples/src/test/java/com/inmethod/

Re: an "lost in the dark" exception question

2008-05-13 Thread Eyal Golan
First of all, thanks. (most of) all the above I found out. I mentioned "weird" because if that was the problem (Serialization or invalid constructor), then the Expand link would have never worked. Am I correct? BUT, The exception happens only after I go to a BookmarkableLink. It's not we didn't t

Url resolve...

2008-05-13 Thread danielepiras
Hi, I'm developing an application that run on www.myserver.com/myapplication/ In my Index.html page, I include a css: The problem is that wicket transform href url and if I give a look to the page source I find: So the css is not found because is refer to www.myserver.com/css/style.css and no

Re: an "lost in the dark" exception question

2008-05-13 Thread Martijn Dashorst
On 5/13/08, Eyal Golan <[EMAIL PROTECTED]> wrote: > We have a weird exception in our system. Not so weird when you read the exception trace. It is a dark art, but worth the effort of learning. > My team mates created a non standard DataView: Uh oh... :) So read this part: > 2008-05-13 10:55

an "lost in the dark" exception question

2008-05-13 Thread Eyal Golan
Hello all, We have a weird exception in our system. My team mates created a non standard DataView: final DataView dataView = new DataView("rows", dataProvider) { protected void populateItem(final Item item) { final ManagedI

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

2008-05-13 Thread Erik van Oosten
Hi Johan, > AutoAdd can be done in the rendering. They are only there just then. > And they will be removed by wicket after rendering. Thanks Johan, those 2 lines explain it for me. Could you add them to the javadoc of MarkupContainer? Regards, Erik. Johan Compagner wrote: > Hmm i am affra