Re: [Wicket-user] Spring design in Wicket

2007-03-09 Thread Erik van Oosten
Hello Roland, Personally I would not recommend the (beta) javaconfig thing to an unexperienced spring user. Avoiding XML hell is done by doing the wiring with Spring, and doing configuration separately (with or without Spring). I know this is a fine line of distinction, but one well worth

Re: [Wicket-user] Retrieving a value from a PropertyModel

2007-03-09 Thread Tim Squires
Thanks Igor, I was having the same issue as Jason (see [Wicket-user] Getting value of a text field via Ajax, no form ) I changed to using AjaxFormComponentUpdatingBehavior and all is happy. Thanks again, Tim Igor Vaynberg wrote: havent looked at your code but here is how i would do it

[Wicket-user] He plans to unveil the findings next week at an international prospector's convention in Toronto.

2007-03-09 Thread Walter Q. Gregg
Note: This story has been adapted from a news release issued by National Energy Technology Laboratory. However, something seems to have gone awry in this case. Skip to:Search BoxSection NavigationNetwork NavigationContentView the SitemapNEWS. It's possible they may point the way to a

Re: [Wicket-user] Spring design in Wicket

2007-03-09 Thread ZedroS Schwart
Hi Roland and Erik Thanks for your replies, notably the best practices provided. Regarding the way to design, I would sum your answers as following : - one can follow a Domain Driven Design, with a manager per kind of object. - In the Spring ApplicationContext file, I should only define

[Wicket-user] Frustracted with JDBC...

2007-03-09 Thread ChuckDeal
I really don't know where to ask this, so I am trying here because someone may have encountered a similar problem... I use MSSQLServer 2000 and JTurbo (JDBC 2.1) driver. Wicket 1.3, Databinder 1.1 I ran into a case where my tables had triggers on them. Hibernate wouldn't let the update occur

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread ChuckDeal
I was able to narrow the problem scope a little. The difference is between getting a result from a Criteria object vs Session.load(). With both drivers, using the criteria object gets a fully populated object (with children) With the JTurbo (JDBC 2.1) driver, Session.load returns the fully

Re: [Wicket-user] Design questions: Use of controllers and wicket models

2007-03-09 Thread Thomas R. Corbin
On Thursday, 08 March 2007 07:58 pm, Igor Vaynberg escreveu: see above. take a simple example where you have a list of checkboxes and you want all selected objects to end up in a collection. how do you do it? sounds like a complex mapping? the most elegant way is to write a custom model.

Re: [Wicket-user] What's the best way of doing menus in Wicket?

2007-03-09 Thread Thomas R. Corbin
On Friday, 09 March 2007 04:18 am, Ryan Holmes escreveu: MyGosuMenu is worth a look. It's a stagnant project, but it's simple, fast and still has good cross-browser support (although I probably wouldn't use it for a public site). Here's an example of the standard drop down menu:

Re: [Wicket-user] Spring design in Wicket

2007-03-09 Thread Erik van Oosten
Hi, ZedroS Schwart wrote: - one can follow a Domain Driven Design, with a manager per kind of object. That is a major simplification, but yes, that is true. - In the Spring ApplicationContext file, I should only define implementations and in my Java code I should only use interfaces. Is

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread Scott Swank
If you have lazy-loaded objects in your graph then they are initially populated with Hibernate proxies and only resolved from the database when you access them in your application code. I imagine that in one case the Hibernate transaction is being closed before you have walked the object graph

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread ChuckDeal
Scott Swank wrote: If you have lazy-loaded objects in your graph then they are initially populated with Hibernate proxies and only resolved from the database when you access them in your application code. I imagine that in one case the Hibernate transaction is being closed before you have

Re: [Wicket-user] Design questions: Use of controllers and wicket models

2007-03-09 Thread Igor Vaynberg
yes, but then you are married to the output it genereates. [] label [] label whats below you can use just for the checkbox, so you are free to generate your own label/panel/whatever. eg selecting rows in a table. -igor On 3/9/07, Thomas R. Corbin [EMAIL PROTECTED] wrote: On Thursday, 08

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread Igor Vaynberg
you do know that session.load() will return a proxy even if the object doesnt exist, where as session.get() will return null. -igor On 3/9/07, ChuckDeal [EMAIL PROTECTED] wrote: Scott Swank wrote: If you have lazy-loaded objects in your graph then they are initially populated with

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread ChuckDeal
igor.vaynberg wrote: you do know that session.load() will return a proxy even if the object doesnt exist, where as session.get() will return null. -igor Yeah, but that really doesn't apply to this sceanrio. I KNOW that there is data. I KNOW that with either driver, when I use a

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread Scott Swank
I'd look for something like auto-commit inserting itself between these two lines. result = (SpecChangeModelObject) criteria.uniqueResult(); assertNotNull(SpecChangeModelObject should not be null, result); but that's just my best guess. Scott

Re: [Wicket-user] AjaxTimer clearTimeout

2007-03-09 Thread Eelco Hillenius
On 3/7/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi all, I have a panel with an AjaxTimerBehavior that can be replaced through an AjaxLink by another panel. However, this leaves the AjaxTimerBehaviors setTimeout behind to fire off after the replacement. When it fires and wicket can't

Re: [Wicket-user] AjaxTimer clearTimeout

2007-03-09 Thread James McLaughlin
On 3/9/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Hmmm, yeah, that's interesting. Maybe others thought of this before, but I hadn't. So we can add header (/body?) contributions via ajax dynamically now. What we want here is the opposite: remove them when the linked component was removed/

Re: [Wicket-user] AjaxTimer clearTimeout

2007-03-09 Thread Matej Knopp
Hi, I'm afraid there's no easy solution. But two thoughts are quiete right. Either you can clearTimeout, or wrap the setTimeout method callback (not the settimeout itself!) to check a condition whether it actually can fire ajax request to server. But for both these you will need to slightly

Re: [Wicket-user] Spring design in Wicket

2007-03-09 Thread ZedroS Schwart
Thanks a lot. I definitely have to learn more of it :) ZedroS On 3/9/07, Erik van Oosten [EMAIL PROTECTED] wrote: Hi, ZedroS Schwart wrote: - one can follow a Domain Driven Design, with a manager per kind of object. That is a major simplification, but yes, that is true. - In the

[Wicket-user] mountBookmarkablePage problem

2007-03-09 Thread Joel Hill
I cannot seem to get mountBookmarkablePage() to work. Any time I try an access a page through the mapping I set up, I get a 404 error. The strange thing is, if I set up a wicket Link in my app to link to the mounted page, it puts the proper mapped address in the browser's address bar but still

Re: [Wicket-user] mountBookmarkablePage problem

2007-03-09 Thread Igor Vaynberg
make sure your servlet mapping ends with /* and not just / -igor On 3/9/07, Joel Hill [EMAIL PROTECTED] wrote: I cannot seem to get mountBookmarkablePage() to work. Any time I try an access a page through the mapping I set up, I get a 404 error. The strange thing is, if I set up a wicket

Re: [Wicket-user] Design questions: Use of controllers and wicket models

2007-03-09 Thread Thomas R. Corbin
On Friday, 09 March 2007 11:57 am, Igor Vaynberg escreveu: yes, but then you are married to the output it genereates. [] label [] label whats below you can use just for the checkbox, so you are free to generate your own label/panel/whatever. eg selecting rows in a table. Ooooh -

[Wicket-user] How to get a dynamic home page?

2007-03-09 Thread Pierre Métras
Hi, I face a small problem: the first page of my application must display data coming from the Wicket filter initialization parameters in web.xml. So I redefined WebApplication.init() to read the parameters. But now, how can these values be used in WebApplication.getHomePage() or as the

[Wicket-user] 你=好

2007-03-09 Thread 发(票*开)代-理
--柏远实/业有-限-公-司- 您.好!    本公司以(低.税.率)代.办珠三角地区各专用票|类业|务,如:商品销售、其他服|务行业发|票等;真伪性绝对%。如有需求欢.迎来.电咨.询,进一步洽/商与合/作! 手机:13544271905 联 系 人:杨先生 [EMAIL PROTECTED]/2/6.co/m

Re: [Wicket-user] How to get a dynamic home page?

2007-03-09 Thread Eelco Hillenius
You can read them in in your home page's constructor ((WebApplication)Application.get()).getInitParameter(foo) Eelco On 3/9/07, Pierre Métras [EMAIL PROTECTED] wrote: Hi, I face a small problem: the first page of my application must display data coming from the Wicket filter initialization

Re: [Wicket-user] How to get a dynamic home page?

2007-03-09 Thread genepi
Hi, Eelco Hillenius wrote: You can read them in in your home page's constructor ((WebApplication)Application.get()).getInitParameter(foo) I forgot to tell that there is no difference between the home page and secondary pages. In secondary pages, I can obtain dynamic information from

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-09 Thread Shams Mahmood
Regarding the constructor change in 2.0, in some of my components (in wicket 1.2) I used wicket 2.0 type constructor where i could pass null as the parent. In such a scenario I would have to add the child components explicitly. When i passed a non-null value to the constructor the component

Re: [Wicket-user] How to get a dynamic home page?

2007-03-09 Thread Eelco Hillenius
You only have to code it once, if you share a base page. Alternatively (or additionally), take a look at IPageFactory. Eelco On 3/9/07, genepi [EMAIL PROTECTED] wrote: Hi, Eelco Hillenius wrote: You can read them in in your home page's constructor

[Wicket-user] Question about DataGridView

2007-03-09 Thread blackboy zabaha
Hi, I have a little question, I'm using a DataGridView to display dynamic columns in table, each row has modify link, view detail link, and a selecting chckbox that when user select some checkbox and submit delete button, rows with selected checkbox will be deleted. modify link

Re: [Wicket-user] Question about DataGridView

2007-03-09 Thread Igor Vaynberg
On 3/9/07, blackboy zabaha [EMAIL PROTECTED] wrote: - with the checkbox I can't get the list of selected row, I try to do DataGridView.getModelObject but it return null, so my question is how can I get list of model object in current page of DataGridView, it take IDataProvider rather than

[Wicket-user] Reverting the constructor change of 2.0

2007-03-09 Thread Eelco Hillenius
Hi, It looks like the discussion around reverting the constructor change that we did for 2.0 has cooled down. This email is not a vote yet, but a summary of opinions so far[1]. Those of you Wicket committers who didn't have your say yet (Juergen, Frank, Gwyn, Janne, Jan, Ate), I consider that an

Re: [Wicket-user] AJAX validation

2007-03-09 Thread Jean-Baptiste Quenot
* Arnout Engelen: So far it seems either Apache2, mod_caucho or Resin (2.1.16) is eating the POST body parameters. Has anyone ever seen something like this? Any idea where to look? Is POST followed by a redirect? If yes, is the URL missing a trailing slash? What Wicket version are you

Re: [Wicket-user] Reverting the constructor change of 2.0

2007-03-09 Thread Eelco Hillenius
a) focus on stabilizing 1.3 first, meanwhile keep supporting 2.0 (though only for bugfixes). 1.4 will be the release with backports of the currently missing 2.0 features, and 1.5 will be 1.4 + the Java 5 features (including generics). b) as a) but rather than developing 1.3 up to a final