Why is SortParam.getProperty generic?

2012-11-17 Thread Jochen Mader
It might be due to the fact that I am sick but I don't get why SortParam.getProperty doesn't return a String but T. So far I always used getProperty as vasis for a PropertyModel to resolve things. Any hint would be appreciated, Jochen

Intro, Wicket 6, RuntimeException error page

2012-11-17 Thread Rob Schroeder
Hello, I'm a new list member and I'll start with a quick introduction: After one or two earlier, but aborted attempts to try and get into Wicket, I've finally decided to take the plunge now, even if only for some pending personal projects and possible future side-jobs. On my primary job as a

Re: Intro, Wicket 6, RuntimeException error page

2012-11-17 Thread Jordi Deu-Pons
Hi Robert, I'm using a custom error page in Wicket 6 adding a RequestCycleListener at WebApplication init like this: /* In case of unhandled exception redirect it to a custom page */ getRequestCycleListeners().add(new AbstractRequestCycleListener() { @Override public

Re: Why is SortParam.getProperty generic?

2012-11-17 Thread Sven Meier
It's just that some devs wanted to use other things than strings to identify the sort order: https://issues.apache.org/jira/browse/WICKET-4535 Perhaps Jesse has an example? Sven On 11/17/2012 01:19 PM, Jochen Mader wrote: SortParam.getProperty doesn't return a String butIt might be due

Re: Why is SortParam.getProperty generic?

2012-11-17 Thread Jochen Mader
On Sat, Nov 17, 2012 at 3:42 PM, Sven Meier s...@meiers.net wrote: It's just that some devs wanted to use other things than strings to identify the sort order: https://issues.apache.org/jira/browse/WICKET-4535 Perhaps Jesse has an example? Sven On 11/17/2012 01:19 PM, Jochen Mader

Re: Why is SortParam.getProperty generic?

2012-11-17 Thread Jochen Mader
I was just about to answer my own question. We migrated a big part of our application to use LambdaJ instead of PropertyModels. With getProperty being generic it's now possible to use it instead of passing around strings. Thanks, Jochen On Sat, Nov 17, 2012 at 4:01 PM, Jochen Mader

Re: Intro, Wicket 6, RuntimeException error page

2012-11-17 Thread Rob Schroeder
Hi Jordi, excellent, thanks! It seems that the matter was discussed before, resulting in ticket https://issues.apache.org/jira/browse/WICKET-2659 with a proposal for a change to Wicket that would automatically pass an Exception to the page specified by

Include one .js file into another .js file in wicket

2012-11-17 Thread delta458
Hello, I have 2 .js files. Invoice.js: content is something like: /var price var recipient .../ Rules.js: content is something like: /if(price 100){ //do Something }/ What I need: I need to include the Invoice.js into Rules.js. What my application does: I fill in a form and with compound