Re: "Dot" in DataTable Columnheader - not allowed?
@Igor Vaynberg-2: I guess You're right. The error is outgoing from the PropertyColumns used in the DataTable. Unfortunately we already extended the Datatable way too far to just switch to another Column-Type (it's the time factor). But we will (hopefuly) remember that cicumstance in our next 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-Columnheader-not-allowed-tp4413767p4469213.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Initiating File Download through Ajax is not working
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 component (AjaxLink, AjaxFallbackLink or AjaxButton... or similar) and initiate your download in its onSubmit method via "yourAJAXDownload.initiate(yourIResourceStream);". Basically its 100% like in the example given here: https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html - 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/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p4469023.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: "Dot" in DataTable Columnheader - not allowed?
Some more info: My DataProvider is using a Model of the type List>, 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 to find a shelter ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dot-in-DataTable-Columnheader-not-allowed-tp4413767p4416416.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
"Dot" in DataTable Columnheader - not allowed?
Hi, I just explored a strange behavior of the DataTable component in Wicket 1.5.4. If a column header has a "." (dot) in it's name, the values of the cells belonging to to that column aren't rendered properly - they are rendered like empty cells. For example: If I do a SQL-Command like 'SELECT f.Value "f.val" FROM values', all cells in that column are rendered emtpy (but they are properly accessible through the DataProvider). If I instead do a SQL-Command 'SELECT f.Value "fval" FROM values', everything works like a charm. This problem seems to have nothing to do with the charset (its UTF-8), because other special-chars won't harm the rendering. Neither seems it to have to do with the DataProvider, because sorting and everything else worsk as suggested too (checked via Debugger). Does anybody else ever seen this behavior or maybe has a clue on where to fix that instead of just not to use "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 mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom CSS-Class for OrderByLink (possible?)
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 labels DataModelObject. - 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/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4281731.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom CSS-Class for OrderByLink (possible?)
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 HisOrderByLink.CssModifier(this, cssProvider)); And in my CSSModifier I implemented the Check i needed. Unfortunately this was a false approach :D I won't need a class on the OrderByLink but on the container holding the .th - I will investigate further on this^^ - 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/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4269006.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom CSS-Class for OrderByLink (possible?)
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 request-parameter that is catched up in OrderByLink.nextSortOrder(...). But what I can't from this point is to set my new SortOrders and to implement the belonging css-classes that are being set via OrderByLink.DefaultCssProvider - at least not without the need to replace very much code and classes. - 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/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268712.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Custom CSS-Class for OrderByLink (possible?)
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: http://apache-wicket.1842946.n4.nabble.com/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268672.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Numeric Filter on TextField
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: http://apache-wicket.1842946.n4.nabble.com/Numeric-Filter-on-TextField-tp4264649p4268663.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Custom CSS-Class for OrderByLink (possible?)
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 +3 states (for every given one I need 1 more that represents an extended version of itself) for 3 more css-classes. But as I can't extend enums (SortState) and all major classes that deal with SortState (either in SingleSortState and innerclasses in OrderByLink) are either static or final I don't get the point on where to start, without the need of replacing dozens of classes... So my question is: Is there any "easy" way where I can hack my extended-SortState in? P.S.: To determine the needed class it is a must have to have the ability to read a attributes-list I added to the DataProvider-Class. I think this too is the main reason why I have so much problems in dealing with all that final-classes/-methods... - 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/Custom-CSS-Class-for-OrderByLink-possible-tp4268604p4268604.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Numeric Filter on TextField
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 ASCII-table to find other keycodes that might be worth to be lettin through (ENTER on IE8, or ctrl on FF and others). - 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/Numeric-Filter-on-TextField-tp4264649p4265030.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: my book updated for Wicket 1.5.x
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 in an airplane but - as an example for the reason to get the chance to sit beside a beautiful woman - want to get a seat in the economy class I although won't have to pay again... - 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/my-book-updated-for-Wicket-1-5-x-tp4242471p4264587.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DefaultDataTable column style and orderbylink
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: http://apache-wicket.1842946.n4.nabble.com/DefaultDataTable-column-style-and-orderbylink-tp2241495p4260952.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org