Re: DefaultDataTable column style and orderbylink

2012-01-04 Thread Rain... Is wet!
Maybe You can check the actual class of the columnheaders on the pages loadup and then add a class to your columns via javascript. With the use of the jQuery framework this should be a quite easy task. -- View this message in context:

Re: my book updated for Wicket 1.5.x

2012-01-04 Thread Rain... Is wet!
I already got Wicket In Action, and am playing with the idea to buy your book aswell. What gets in my way is the idea to buy the paper-version and then have to pay (even with a discount) for the electronic-version again... To bring an example on whats in my mind: If I paied for the business class

Re: Numeric Filter on TextField

2012-01-05 Thread Rain... Is wet!
In the markup, add the attribute onkeypress=YOURFUNCTION(event) to your textfield. In your function get the keycode from the event and then use if/else or switch/case to return true on every keycode from 47 to 57 (ASCII-codes for 0 to 9) or to return false for any other keycode. Get yourself an

Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
Hi, I'm currently extending the DataTable and used classes to support some more stuff. I already extended OrderByLink to get the ability for interpreting additional request-parameter and this is working just fine. The only thing thats left for now is a way to extend the given SortState to provide

Re: Numeric Filter on TextField

2012-01-06 Thread Rain... Is wet!
Maybe this is more helpful to You than my previous post: http://www.mkyong.com/wicket/how-to-dynamic-add-attribute-to-a-html-tag-in-wicket/ - Never forget your umbrella ! In case You did, try to find a shelter ;) -- View this message in context:

Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
I'm using 1.5 and You're right, was just a typo of mine, I ment the enum SortOrder, not SingleSortState or ISortState... - Never forget your umbrella ! In case You did, try to find a shelter ;) -- View this message in context:

Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
In DataProvider i implemented a List of columns in which there should be generated group-totals. In addition to the given SortOrders NONE, ASCENDING, DESCENDING I need NONESUM, ASCENDINGSUM, DESCENDINGSUM. What I've come so far is the ability to set those attributes via an additional

Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-06 Thread Rain... Is wet!
Found an not so complicated way to implement own css-class to orderbylink. After calling the constructor of the superclass I just removed the standard-css Modifier and added my own implementation instead. this.removeAll(); this.add(new

Re: Custom CSS-Class for OrderByLink (possible?)

2012-01-10 Thread Rain... Is wet!
Got what I want, but had to give up this approach :( Instead of adding more css-classes, I just added a label to the HeadersToolbar, to switch the ordering state via css background-image and doing my checks for grouptotals in HeadersToolbar.onConfigure() where an sumup-symbol is added as the new

Dot in DataTable Columnheader - not allowed?

2012-02-23 Thread Rain... Is wet!
dots in column-headers? Regards Rain... Is wet! - Never forget your umbrella ! In case You did, try to find a shelter ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dot-in-DataTable-Columnheader-not-allowed-tp4413767p4413767.html Sent from the Users forum

Re: Dot in DataTable Columnheader - not allowed?

2012-02-23 Thread Rain... Is wet!
Some more info: My DataProvider is using a Model of the type ListHashMaplt;String, Object, where list-index is acting as a table-row, the string is the name of a column and the object is the value of a cell. Regards Rain... Is wet! - Never forget your umbrella ! In case You did, try

Re: Initiating File Download through Ajax is not working

2012-03-13 Thread Rain... Is wet!
I'm using the AJAXDownload with success in my current project (Wicket 1.5.4). Just create an instance of the AJAXDownload, override getResourceStream to return your IResourceStream and getFileName (would recommend it) to return your desired filename. When done, add it to your AJAXSubmit

Re: Dot in DataTable Columnheader - not allowed?

2012-03-13 Thread Rain... Is wet!
project. For now it's goin fine with just abandoning dot's as column descriptors^^ Thank You anyway :) Regards Rain... is wet! - Never forget your umbrella ! In case You did, try to find a shelter ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dot-in-DataTable