Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-01 Thread Robert Dahlström
Hi, I currently have an application reading a cookie in my session. All of my unit tests where the pattern is: Create page - submit form - redirect to new page fails to read this cookie after the redirect to new page. The cookie is added both to the response and request before each new test

Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-01 Thread Robert Dahlström
Thanks, I'll add the info I have to the bug. Regards Robert On 02/01/2011 01:02 PM, Pedro Santos wrote: Hi Hobert, I reopened the WICKET-1886 2011/2/1 Robert Dahlströmrobert.dahlst...@bwin.org Hi, I currently have an application reading a cookie in my session. All of my unit tests where the

Re: ListChoice move up and down

2011-02-02 Thread Robert Dahlström
Not sure if this is what you want but maybe it can work as a starting point: ListView.moveDownLink ListView.moveUpLink Regards Robert On 02/02/2011 10:16 AM, Altuğ Bilgin Altıntaş wrote: Hi; Any example about how to move up and down via Javascript ListChoice items. Thanks.

Re: Wickettester, cookies and redirects in Wicket 1.4.15

2011-02-02 Thread Robert Dahlström
Thanks for the tip but I'd prefer to stick with WicketTester for the moment. Regards Robert On 02/02/2011 10:36 AM, Kent Tong wrote: Hi, I currently have an application reading a cookie in my session. All of my unit tests where the pattern is: Create page - submit form - redirect to new page

Re: DataTable and toolbar

2011-02-11 Thread Robert Dahlström
In the addToolbar() method you have: WebMarkupContainer item = new ToolbarContainer(container.newChildId()); That's where the magic happens :) Regards Robert On 02/11/2011 02:26 PM, Alex Shubert wrote: Sure thing, but how exactly does it works if there are no such ID in html markup for

Re: DataTable and toolbar

2011-02-11 Thread Robert Dahlström
As far as I can tell yes. But maybe someone with better knowledge can enlighten us? /Robert On 02/11/2011 02:38 PM, Alex Shubert wrote: So, the toolbar id just droppped out? It is used only as a marker? 2011/2/11 Robert Dahlströmrobert.dahlst...@bwin.org: In the addToolbar() method you

Re: preferred php framework by wicketeers...

2011-03-08 Thread Robert Dahlström
+1 for Symfony, probably as good as you can get for PHP. But no, it won't work like wicket. Afaik there are no stateful PHP frameworks out there (but I could be wrong). /Robert On 03/08/2011 01:30 PM, Martin Makundi wrote: Sorry..not close but far...maybe I meant keep enemies closer ;) **

Nested forms and conditional validation

2011-03-30 Thread Robert Dahlström
Hi, I'm currently trying to work out how to do conditional validation with nested forms. Googling a bit gave me the following suggestion on how to disable a nested form: (From https://cwiki.apache.org/WICKET/conditional-validation.html) Form nestedForm = new Form(nestedForm) { @Override

Re: Nested forms and conditional validation

2011-03-30 Thread Robert Dahlström
I did manage to get this working using the other pattern from the conditional-validation page (i.e. using the FormVisitorParticipant) but I'm still curious if the isEnabled solution should work or not? Regards Robert On 03/30/2011 02:45 PM, Robert Dahlström wrote: Hi, I'm currently trying

Re: AttibuteModifier question

2011-04-06 Thread Robert Dahlström
If you're outside of the onComponentTag you can do: String cssClass = component.getMarkupAttributes().getString(class); Regards Robert On 04/06/2011 08:36 AM, Wilhelmsen Tor Iver wrote: 1. get the existing class value, Only when parsing the markup in onComponentTag(). - Tor Iver

Re: 1.5 RC4

2011-05-05 Thread Robert Dahlström
DataTable component Cheers Robert On 05/05/2011 11:04 AM, Madan Mohan wrote: Hi, Can anybody give me the best solution in the below case, In database there are two fields say A, B In UI i want to display a column which shows the value which is equal to A/B and this column should be sortable

Re: warn on exit from browser

2011-05-19 Thread Robert Dahlström
With just a quick look: setRedirect(true) may help and not just setResponsePage() Regards Robert On 05/19/2011 08:53 AM, rebecca wrote: Thank you all for replying It does sound like I'm trying to do something impossible, but I would like to post my code here in case i did not explain the

Re: [WICKET-3552] Is adding another parameter to the constructor required?

2011-06-08 Thread Robert Dahlström
+1 on skipping a boolean flag in the constructor. Igors suggestion to provide a mode parameter feels like a good one. /Robert On 06/08/2011 10:18 AM, Martin Grigorov wrote: Hi Per, I see your point. It is just my opinion (and ticket's reporter) that this additional boolean parameter to the

Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
Hi, I've been trying for some time now to localize a somewhat random stackoverflow error. I've done an overhaul of the code and am now convinced we no longer have any reference to the session object but we still get StackOverflowErrors during page serialization. This has probably been covered

Re: Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
No, we should not have any references to the session in models. Thanks Robert On 06/20/2011 11:43 AM, Serban.Balamaci wrote: Hello, Are you perhaps using your WebSession in a PropertyModel? like new PropertyModel(getSession(), username) for example? This way the web session might get

Re: Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
Besides me not being able to figure where we have done the wrong thing I don't have a problem with the serialization in Wicket 1.4 :) Regards Robert On 06/20/2011 11:40 AM, Martin Grigorov wrote: Hi, Wicket uses Java Serialization to do this. So the question is: What are the do not's of Java

Re: Locating StackOverflowErrors

2011-06-20 Thread Robert Dahlström
Interesting idea, but I'm pretty sure we get a cyclic reference somewhere. (I'm basing that on the stacktrace below) which has been somewhat edited for brevity: [org.apache.wicket.Session] - Exception when detaching/serializing page java.lang.StackOverflowError ... at

Re: Page Is Not Found In Page Map After Some Time.

2011-07-06 Thread Robert Dahlström
Not a complete reply but I think the default limit is 99 versions. This can be configured. Regards /Robert On 07/06/2011 08:44 AM, Horacio Natyural wrote: Hi, we ofen get this error after performing back several times in an application. It happens occassionally, does wicket's page map store

Re: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-02 Thread Robert Dahlström
If all you need is to scrape for them just give them a specific class. No need to use custom attributes. Regards Robert On 09/01/2011 10:38 PM, Brown, Berlin [GCG-PFS] wrote: Well setMarkId is already there. And I have seen it done before, I think with the render Header? I think I got what I

Re: Replacing the contents of a table with ajax

2011-09-07 Thread Robert Dahlström
Usually, put a container around the table and update the container through ajax and not the table directly. /Robert On 09/07/2011 04:22 PM, Werner Riegel wrote: Hello, im trying to update the contents of a table, but it doesn't really work. I hope you guys can help me with that. My page

Re: Is it possible to turn off page serialization in 1.5?

2011-10-05 Thread Robert Dahlström
Why not simply wrap your objects in a LoadableDetachableModel? That way you don't need to force serializable objects in your code. /Rob On 10/05/2011 08:52 AM, Chris Colman wrote: In 1.4 we had used: getPageSettings().setAutomaticMultiWindowSupport(false); and everything worked perfectly

Re: Upgrading of Wicket application on server without losing state

2011-11-02 Thread Robert Dahlström
Well, IF you're really keen on non-intrusive upgrades you can always put in a version in the db and make the code handle both old new version. But that's admittedly a lot of extra work. Downtime is way easier when schemas change and for web-apps the downtime should be easy to keep short.