Re: Assert that all models are detached at the end of the request?

2008-08-31 Thread Erik van Oosten
Eelco is on http://chillenious.wordpress.com. The link you mentioned http://day-to-day-stuff.blogspot.com/ is from your's truly. Regards, Erik. Kaspar Fischer wrote: Matijn, thank you for your hint. I searched on your blog, http://martijndashorst.com/blog/, and Eelco's,

Re: Instance Variables in Web Page of Wicket Portlet

2008-08-31 Thread Timo Rantalaiho
On Mon, 25 Aug 2008, prabha77 wrote: If instance variables are defined in a subclass of WebPage, would they be thread-safe? For convenience, we're passing a reference to the parent page to it's child components. We are seeing these instance variables overwritten by other users and then those

Re: build from the wicket-1.4-m3 source failing

2008-08-31 Thread Timo Rantalaiho
On Tue, 26 Aug 2008, wicket user wrote: when i try to build the wicket from the wicket-1.4-m3 source its failing with the following message What Java version do you use to compile? In 1.5 there have been a lot of generics bugs, some of which are fixed in recent 1.5 versions. Best wishes,

Re: StringResourceModel: use MessageFormat features without params array?

2008-08-31 Thread Timo Rantalaiho
On Wed, 27 Aug 2008, pixologe wrote: Short question: if my interpretation of the source code is correct, it is not possible to use StringResourceModel's MessageFormat features just with a single model (without passing a params array). If this is right: would it be a good idea to make it

Re: Clicking add to cart repeatedly

2008-08-31 Thread James Carman
full stack trace please? Are you using persistent sessions in tomcat? On Sat, Aug 30, 2008 at 7:54 AM, wil2008 [EMAIL PROTECTED] wrote: I am new to Wicket (but not new to HTML, Java and Spring). I tried to follow the examples in the ebook of Wicket in Action. Everything is fine until Chapter

DataTable - tfoot before tbody?

2008-08-31 Thread egolan74
Hi, I have a customized DataTable. Here's what we have in the constructor: super(id, columns, dataProvider, rowsPerPage); add(HeaderContributor.forCss(/eurekify/style/EurekifyDataTable.css)); add(new AttributeAppender(class, true, new

Re: GetModelObject returns null-filled Object?

2008-08-31 Thread Timo Rantalaiho
On Wed, 27 Aug 2008, Markus wrote: Ok, figured out, that the Spring-injected Bean is the reason for this behavior! Works fine if I use u = new Users(); instead of the Spring-injected Users as Model. Any clues how to circumvent this behavior without instantiating the model myself?? It

Property that references property

2008-08-31 Thread Martin Makundi
Hi! Sometimes I think it would be useful to refer properties from properties. Example: WicketApplication.properties -file: myProperty=The maximum width allowed is ${property.maxWidth} pixels property.maxWidth=30 Now I would like to use the maxWidth simultaneously for both validation purposes

Re: Mount files outside container

2008-08-31 Thread Ritesh Trivedi
You probably can do this by enclosing your images (and other resources) inside wicket:link and have custom resource loaded defined for your application, which will load from whatever path(s) you want. Mathias P.W Nilsson wrote: Thank you very much for the suggestion. By doing this I must

Re: Clicking add to cart repeatedly

2008-08-31 Thread wil2008
Sorry. The complete stack trace shown on the web page is as follows. I noted that they mirrored what have been logged by Tomcat. I was with Tomcat's default config. And I did not persist anything consciously yet. How to check if persistent sessions are in use in Tomcat? Thanks I am not sure

Re: Property that references property

2008-08-31 Thread Ritesh Trivedi
I havent tried this myself, but if its not working I guess you could pass getString(property.maxWidth) value as a parameter to however you are accessing myProperty (possibly StringResourceModel). Hope that helps. Martin Makundi wrote: Hi! Sometimes I think it would be useful to refer

Re: Property that references property

2008-08-31 Thread Ritesh Trivedi
Also just found this in StringResourceModel javadoc... So I guess you can certainly do what I mentioned earlier. * liparameters - The parameters parameter allows an array of objects to be passed for * substitution on the found string resource (see below) using a standard *

Re: DataTable - tfoot before tbody?

2008-08-31 Thread Ritesh Trivedi
This happened to me when my HTML markup containing the table was little off. Make sure your HTML enclosing the table is proper XHTML and try it in IE or FF 3 (multiple browsers) to catch the problem. egolan74 wrote: Hi, I have a customized DataTable. Here's what we have in the constructor:

Re: Clicking add to cart repeatedly

2008-08-31 Thread jWeekend
Does this happen under jetty too? To try this you can use mvn jetty:run or from your IDE run Start Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk wil2008 wrote: Sorry. The complete stack trace shown on the web page is as follows. I noted that they mirrored what

Possibility of mounting multiple pages on / and Custom URL coding strategy?

2008-08-31 Thread Ritesh Trivedi
Hi, As part of my requirement, I have to create a custom url coding strategy for bookmarkable pages. The URLs should be like e.g. http://domain.com/somestr_[id].html. The problem I am facing is all the bookmarkable pages need to have a static mount string, which makes the URL to be

Re: DataTable - tfoot before tbody?

2008-08-31 Thread Jan Kriesten
Hi Eyal, When I look at FireBug, I see that the tfoot section of the table is BEFORE the tbody. Has anyone encountered this? Do I do something wrong? this is intented and required by the HTML spec: http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3 Best regards, --- Jan.

Re: Possibility of mounting multiple pages on / and Custom URL coding strategy?

2008-08-31 Thread Igor Vaynberg
this is already possible, create your own irequestcycleprocessor -igor On Sun, Aug 31, 2008 at 10:16 AM, Ritesh Trivedi [EMAIL PROTECTED] wrote: Hi, As part of my requirement, I have to create a custom url coding strategy for bookmarkable pages. The URLs should be like e.g.

@SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
Dear All -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

@SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
Dear All -- I was having an issue with @SpringBean injection -- my dao class was not initialized properly with the dependent beans. I spent some time exploring internals of CGLib and Spring Injections and then a thought struck me: how really helpful is this injection? Consider this code:

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread jWeekend
Are you planning on serialising your DAOs? How will you mock out your Locator for unit tests? Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Sasha O-2 wrote: Dear All -- I was having an issue with @SpringBean injection -- my dao class was not initialized properly

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
Are you planning on serialising your DAOs? No -- I mark them as transient. How will you mock out your Locator for unit tests? I didn't provide the implementation in the parent, but it's pretty obvious: /** Use for unit tests */ public static class MockLocator extends Locator

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
The problem is keeping a reference to the service. Right, actually I skipped the transient keyword I use in my code: class MyPage { ... transient MyDAO dao= Locator.find(myDAO, MyDAO.class); ... } transient prevents the field from being

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
what happens after your page is serialized and deserialized, then dao is null... The dao field is supposed to be initialized again in the class constructor. Igor Vaynberg wrote: what happens after your page is serialized and deserialized, then dao is null... -igor On Sun, Aug 31, 2008 at

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Igor Vaynberg
class constructor is not called after deserialization... -igor On Sun, Aug 31, 2008 at 12:31 PM, Sasha Ovsankin [EMAIL PROTECTED] wrote: what happens after your page is serialized and deserialized, then dao is null... The dao field is supposed to be initialized again in the class

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread jWeekend
If you mark that DAO as transient, what will happen after deserialising your page? Will you implement your own serialisation strategy to go with your home-made dependency injection mechanism? Are you just trying to avoid using Spring or do you just not like @SpringBean and the underlying Wicket

Re: Browser multiple tabs and page expired/class not found issues

2008-08-31 Thread Johan Compagner
This should work find if you version your pages. Can you make an jira issue with a sample? On 8/29/08, Ritesh Trivedi [EMAIL PROTECTED] wrote: Hi, I have tried opening 2 IE 7 tabs (in the same brower window obviously), loading the same bookmarkable url in both the tabs. I then did some

Re: Browser multiple tabs and page expired/class not found issues

2008-08-31 Thread Matej Knopp
Was it bookmarkable URL or hybrid? -Matej On Sun, Aug 31, 2008 at 11:05 PM, Johan Compagner [EMAIL PROTECTED] wrote: This should work find if you version your pages. Can you make an jira issue with a sample? On 8/29/08, Ritesh Trivedi [EMAIL PROTECTED] wrote: Hi, I have tried opening 2

Re: Browser multiple tabs and page expired/class not found issues

2008-08-31 Thread Ritesh Trivedi
By versioning you mean assigning serial version id? if yes - I have declared serialVersionUID for all the classes that are serializeable. I do not update the version # when I change the page - not sure if that is what you mean by versioning my pages. This errors occurred for the same session (IE

Re: Browser multiple tabs and page expired/class not found issues

2008-08-31 Thread Ritesh Trivedi
Actually, I was doing setResponsePage(new BookmarkablePage(new Pagepamaeters()) on the form submission. I realized later I shouldnt, since this makes the URL to have ?wicket:interface.. Shouldnt mounted bookmarkable pages - even though they are created using constructor have the mounted url

Re: Possibility of mounting multiple pages on / and Custom URL coding strategy?

2008-08-31 Thread Ritesh Trivedi
To implement resolve() for requestcycleprocessor, unfortunately I cannot get list of mounted pages to resolve them to respective requesttargets since IRequestTargetMountsInfo is optional and CryptedUrlWebRequestCodingStrategy doesnt implement it. Is there a way to get mount list which works no

Re: Browser multiple tabs and page expired/class not found issues

2008-08-31 Thread Matej Knopp
no. only if you mount the pages using HybridUrlCodingStrategy. -Matej On Sun, Aug 31, 2008 at 11:37 PM, Ritesh Trivedi [EMAIL PROTECTED] wrote: Actually, I was doing setResponsePage(new BookmarkablePage(new Pagepamaeters()) on the form submission. I realized later I shouldnt, since this

Re: Possibility of mounting multiple pages on / and Custom URL coding strategy?

2008-08-31 Thread Igor Vaynberg
if you implement your own request cycle processor you dont need to mount anything, just check the url and resolve it to a request target of your choice. -igor On Sun, Aug 31, 2008 at 2:47 PM, Ritesh Trivedi [EMAIL PROTECTED] wrote: To implement resolve() for requestcycleprocessor,

[OT] Wicket in Action Woes

2008-08-31 Thread James Carman
I called my local Barnes Noble today asking if they had a copy of WIA and the lady said that book is out of print; perhaps you can get one used through BN.com. The Waldenbooks in our mall said it was on back order (I'm assuming this is because of my two talks I gave to the Cincinnati Java Users

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
class constructor is not called after deserialization... Oops, I didn't know that :-$ In this case, I will need to use extra indirection; still pretty straightforward: class MyPage ... { ... LocatableMyDAO dao= new LocatableMyDAO(myDAO, MyDAO.class); ...

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Igor Vaynberg
On Sun, Aug 31, 2008 at 3:44 PM, Sasha Ovsankin [EMAIL PROTECTED] wrote: You may end up with a solution that is quite convoluted, hard to learn/maintain, less elegant and hard to get just right in all cases (for example testing, serialization/deserialisation etc...). We will see, but so far

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread Sasha Ovsankin
Igor -- Here is what I had: class Bean1 {...} class Bean2 { public Bean2(Bean1 bean1) {} } Spring config: bean name=bean1 class=Bean1/ bean name=bean2 class=Bean2 constructor-arg name=bean1 ref=bean1/ /bean

Re: AjaxFallbackDefaultDataTable - goto page number on return from another page

2008-08-31 Thread steve222
Anyone know how to solve this? Thanks. steviezz wrote: Wicket 1.3.4. I have a Page (ThingListing) containing an AjaxFallbackDefaultDataTable - created like: private WebMarkupContainer listContainer = new WebMarkupContainer(listContainer); private

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread jWeekend
Sasha, If you have time to make a minimal http://wicket.apache.org/quickstart.html quickstart project that demonstrates the issue you might find that you can save yourself 100 LOC, or at least that someone here will spot what's not right and then you can make your decision. Regards - Cemal

Re: Crystal Report

2008-08-31 Thread freak182
Hello, Yah, Cryastal Report has some concurrent process licensing issue. i just encountered it in the project where I'm supporting to. It is such pain in the ass that we don't know what going wrong until we found that freaking CPL issue. Nwei, im encouraging the PM of next project I'm into to use

Re: @SpringBean injection -- why pretend?

2008-08-31 Thread jWeekend
Sasha, Does the trace at the end of this note, in my PS, look familiar? Now try the following code (notice the addition and use of the IBean2 interface) - things should work once you make the type of the reference in your component (a Page in this case) the interface. If you can't do that on

Re: @SpringBean injection problem

2008-08-31 Thread Sasha Ovsankin
Cemal -- Thanks, the trace indeed looks familiar. I will try the suggestion to make Bean2 an interface. I will also try to distill a test from this problem. Will let you know. Thanks, -- Sasha jWeekend wrote: Sasha, Does the trace at the end of this note, in my PS, look familiar? Now try

Re: @SpringBean injection problem

2008-08-31 Thread Igor Vaynberg
this isnt really wicket-specific. this is just something you need to be aware of when dealing with IOC containers. if you wanted to eg have transactional methods on this bean you would run into the same problem as spring would try to create a proxy of your class to manage transactions (unless you

Re: ResourceStreamLocator is not testable using WicketTester?

2008-08-31 Thread jWeekend
Sasha, This was fixed recently. Try again with SNAPSHOT. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Sasha Ovsankin wrote: Hi again -- I set custom ResourceStreamLocator in my application but when I test using WicketTester my custom ResourceStreamLocator is not

Re: @SpringBean injection problem went away

2008-08-31 Thread Sasha Ovsankin
Igor and all -- I also had this problem when using default constructor and initialization by properties. OTOH I have Hibernate DAO classes using transactions, and they work fine. Good news, the problem went away when I broke the Bean1-Bean2 chain because of application reasons. If/when the

how to mark wicket html response as cacheable?

2008-08-31 Thread ywtsang
i want to set my html with last modified date in order to allow client side caching how can we do that in wicket? or we need to manipulate the response header directly? -- View this message in context:

Re: how to mark wicket html response as cacheable?

2008-08-31 Thread jWeekend
One way is to override WebPage's setHeaders(WebResponse response) method and call setHeader on the passed in WebResponse. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk ywtsang wrote: i want to set my html with last modified date in order to allow client side caching

Re: ResourceStreamLocator is not testable using WicketTester?

2008-08-31 Thread Sasha Ovsankin
Cemal -- Thanks, I found the https://issues.apache.org/jira/browse/WICKET-1737 . Will try to upgrade. Thanks, -- Sasha jWeekend wrote: Sasha, This was fixed recently. Try again with SNAPSHOT. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Sasha Ovsankin wrote: Hi again

RE: [OT] Wicket in Action Woes

2008-08-31 Thread Stefan Lindner
Amazon says that it ist to be published on Sept. 28. It's the seond time that the publishing date moved towards the end oft he year. Stefan -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von James Carman Gesendet: Montag, 1. September 2008 00:24

Re: [OT] Wicket in Action Woes

2008-08-31 Thread Eelco Hillenius
I have no idea. Martijn and I (or rather, my parents in Holland) received a bunch of paper copies, so the actual book *is* out. Eelco On Sun, Aug 31, 2008 at 9:56 PM, Stefan Lindner [EMAIL PROTECTED] wrote: Amazon says that it ist to be published on Sept. 28. It's the seond time that the

Re: [OT] Wicket in Action Woes

2008-08-31 Thread Robby O'Connor
Why hasn't manning shipped the book then...? --rob Eelco Hillenius wrote: I have no idea. Martijn and I (or rather, my parents in Holland) received a bunch of paper copies, so the actual book *is* out. Eelco On Sun, Aug 31, 2008 at 9:56 PM, Stefan Lindner [EMAIL PROTECTED] wrote: Amazon says