Re: [Wicket-user] Exception on startup with 2.0 latest and greatest

2006-10-23 Thread Eelco Hillenius
That's because of a signature change in IBehavior this weekend: onRequest now gets the component the request initiated through passed in. I thought/ think it's a little bit inconsistent that most methods of IBehavior get the component passed in, and this method didn't, while the info is available.

[Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
Hello all, I am having a problem in my first attempts to use ModalWindow. What I'm trying to do is have a ModalWindow that is part of a panel which is added during an Ajax update. When I do this-- the Ajax for that page "hangs" on: INFO: Responseparsed.Nowinvokingsteps... INFO: INFO:

Re: [Wicket-user] Exception on startup with 2.0 latest and greatest

2006-10-23 Thread Eelco Hillenius
Oops, that was a stupid mistake. Too focussed on the bookwriting, so I didn't get to the testing part. I forgot about the fact that callback interfaces in Wicket have to be interfaces with one method that takes no arguments. Sorry, will fix right away. Eelco On 10/23/06, Eelco Hillenius [EMAIL

[Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
Hi all, I just start using wicket and would like to centralize all the pre-processing logic, like permission checking, and post-processing logic, like resource cleanup. How can I do that in wicket? - Using Tomcat but need

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Eelco Hillenius
Depends on what exactly you want to do. Be careful not to force yourself in a procedural way of programming where you don't need to (typically, 'centralized' as 'global' should ring alarm bells). Anyway, A typical global entry point is RequestCycle, with methods #onBeginRequest and #onEndRequest.

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Depends on what exactly you want to do. Be careful not to force yourself in a procedural way of programming where you don't need to (typically, 'centralized' as 'global' should ring alarm bells). Yes... in fact I've do a simple web search

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Eelco Hillenius
On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote: On 10/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Depends on what exactly you want to do. Be careful not to force yourself in a procedural way of programming where you don't need to (typically, 'centralized' as 'global' should ring

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
And in fact I'm wondering what that component manager is doing anyway? As this would be more typical: Look like we've some misunderstanding here, the component manager is something that return a service for my old application. Where a service in that application like an Object of Page in

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Eelco Hillenius
On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote: And in fact I'm wondering what that component manager is doing anyway? As this would be more typical: Look like we've some misunderstanding here, the component manager is something that return a service for my old application. Where a

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Sharma, Kamlesh
I made further digging in the issue and found that TabbedPanel component needs to provide access to its tabs list attribute and ITab interface needs setTitle method. I am new to wicket hence, I don't know weather therewill issues to add, these facilities to TabbedPanel component. I will

Re: [Wicket-user] getObjectAsString always null in 1.2.2

2006-10-23 Thread Johan Compagner
that seems to be the error then.What is the full stacktrace of that error?johanOn 10/23/06, kurt heston [EMAIL PROTECTED] wrote:Is this normal behavior or a good place to start chasing down my issue: java.lang.NoSuchFieldException: usernamekurt heston wrote: Something changed about how I'm

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Scott Swank
In a related vein, where would you suggest starting ending JTA transactions (or Hibernate transactions or whatever). Something like 99+% of the time transactions should start with the client request and end with the client request -- whether that's Wicket or Swing or whatever. Multiple

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Martijn Dashorst
The request cycle is perfectly suited for that, though some/many prefer to use the hibernate filter supplied with Spring for managing the transactions. Martijn On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote: In a related vein, where would you suggest starting ending JTA transactions (or

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Scott Swank
Thank you. Is that filter as in servlet filter? On 10/23/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The request cycle is perfectly suited for that, though some/many prefer to use the hibernate filter supplied with Spring for managing the transactions. Martijn On 10/23/06, Scott Swank

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Igor Vaynberg
TabbedPanel has a getTabs() method which returns the list of ITab objects.if you want to have a settitle() then implement ITab directly instead of using AbstractTab.dont forget to add the panel to the ajax target when you change the label. -IgorOn 10/23/06, Sharma, Kamlesh [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Igor Vaynberg
see org.springframework.orm.hibernate3.support.OpenSessionInViewFilter-IgorOn 10/23/06, Scott Swank [EMAIL PROTECTED] wrote:Thank you.Is that filter as in servlet filter? On 10/23/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The request cycle is perfectly suited for that, though some/many prefer

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Sharma, Kamlesh
Thanks, Igor. I don't see getTabs method on TabbedPanel, I have wicket-extensions-1.2.2, it may be older version. Do I have to pull wicket-extensions from svn repository? Regards --Kamlesh From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Monday, October

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Carfield Yim
Thx Eelco for answereing , and Scott Swank point out one of the functions I think I need. On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote: In a related vein, where would you suggest starting ending JTA transactions (or Hibernate transactions or whatever). Something like 99+% of the time

Re: [Wicket-user] ModalWindow

2006-10-23 Thread Matej Knopp
Can you tell me what version of Wicket are you using? There have been couple of fixes since the latest stable release, so you might want to try the latest svn version. If the latest doesn't work I'll certainly look at that. -Matej Karl M. Davis wrote: Hello all, I am having a problem in

[Wicket-user] location.href not working on button

2006-10-23 Thread Steve Knight
Hello,I have a Cancel button in my forms that, when clicked, should redirect the user back to the previous page. This works fine in all but one of my forms. It is almost identical to all the others, so I don't know why it doesn't work. I am simply using setResponsePage(backPage) in the onClick

Re: [Wicket-user] Where I can put pre-processing logic and post-processing logic?

2006-10-23 Thread Scott Swank
Very helpful, thanks Igor. On 10/23/06, Carfield Yim [EMAIL PROTECTED] wrote: Thx Eelco for answereing , and Scott Swank point out one of the functions I think I need. On 10/23/06, Scott Swank [EMAIL PROTECTED] wrote: In a related vein, where would you suggest starting ending JTA

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-23 Thread Igor Vaynberg
looks that way.-IgorOn 10/23/06, Sharma, Kamlesh [EMAIL PROTECTED] wrote: Thanks, Igor. I don't see getTabs method on TabbedPanel, I have wicket-extensions-1.2.2, it may be older version. Do I have to pull wicket-extensions from svn repository? Regards --Kamlesh From: [EMAIL

Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
It's one of the 1.2.2 snapshots from the old 1.2.x branch (which seems to have been switched to 1.x now). I'll install the latest snapshots and let you know if that fixes it. -- Karl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matej Knopp Sent:

Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
Matej, Thanks-- that seems to have done it. At least, it's crashing respectably now with a markup error that I'll look at later (my fault, I'm sure). -- Karl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl M. Davis Sent: Monday, October 23, 2006

[Wicket-user] ListChoice and default value

2006-10-23 Thread Karl M. Davis
Hello all, This is a minor annoyance, but I figured I'd throw it out there anyways... Is there a way to have a ListChoice that has no option selected by default and does not insert a default choice (e.g. "Choose One" or an empty entry if you set setIsNullValid(true))? It's possible in

Re: [Wicket-user] ListChoice and default value

2006-10-23 Thread Igor Vaynberg
set listchoice's model value to one of the choices and the problem will go away-IgorOn 10/23/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, This is a minor annoyance, but I figured I'd throw it out there anyways... Is there a way to have a ListChoice that has no option selected by

Re: [Wicket-user] ListChoice and default value

2006-10-23 Thread Igor Vaynberg
alternatively override getdefaultchoice and return an empty string-IgorOn 10/23/06, Igor Vaynberg [EMAIL PROTECTED] wrote:set listchoice's model value to one of the choices and the problem will go away -IgorOn 10/23/06, Karl M. Davis [EMAIL PROTECTED] wrote: Hello all, This is a minor

[Wicket-user] Help needed: Best practise or exa mple for first level navigation model

2006-10-23 Thread bednarz-hannover
Hi there ! I am new in wicket developement and currently setting up my first project. Everythin is so far very fine, but I am still lokking for a best practice navigation model. What I would like to do is someting like one level tree navigation as shown here: - Topic 1 (goes to Topic1.class)

[Wicket-user] Autoenabled links and custom style for em element

2006-10-23 Thread bednarz-hannover
Hallo there, I would like to change the output class of the em element for autoenabled links. Currently I use the following code to create a link: Link link = new BookmarkablePageLink(link, pageClass).setAutoEnable(true); After rendering such a link I get a href=/portal class=menuSub 1/a