Re: Generic warning ListMultipleChoice

2010-02-27 Thread Juris Maskalans
Thanks for your quick response. But I have already tried to add needed type, e.g. String and got the error. I suppose the case is not so simple. IModelListString allYearsModel = new PropertyModelListString(this, selectedYears); ListMultipleChoiceString allYears = new

Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-02-27 Thread danisevsky
thank you. I tryed this, but do not work. I think problem is that image has no .jpg suffix. I do not know, how to solve it.. :( here is the result preview: http://img5.imgup.eu/prevzfs.jpg

Wicket Ajax Channels

2010-02-27 Thread Xavier López
I've been facing a scenario where AJAX requests processing times were abnormally elevated. That situation has already been fixed (problem of AppServer configuration), but meanwhile, I was looking for some way to avoid queueing all requests, in a way such that only the last request should be

Re: Debugging in Netbeans - Lists don't load

2010-02-27 Thread gnugrf
Riyad, Thanks for replying - I may have not been clear enough. The database connection is fine when I run the application normally. The choices from the dropdown list are loaded, and I've also put a temporary system.out line to spit the contents of the list out immediately after loading, so that

Re: Localized PropertyTreeColumn header string

2010-02-27 Thread DCarr
Anyone have any hints/tips/wiki page references, or are column headers really not internationalizable? Thanks, Doug. DCarr wrote: Hi, Is there a recommended way to set the header string in a PropertyTreeColumn when that string should come from a resource file? It doesn't take a model,

Re: Wicket Ajax Channels

2010-02-27 Thread Daniel Frisk
Hello Xavier, you can override AbstractDefaultAjaxBehavior.getChannelName() to return something|d and the channel will switch to drop behavior. I'm still using 1.3 so it may be different in 1.4. I've seen no documentation other than the code itself, but if my memory serves me right there are

Re: Wicket Ajax Channels

2010-02-27 Thread Xavier López
Thanks Daniel, didn't notice AbstractDefaultAjaxBehavior.getChannelName(). Not that I needed it, just curious. About the channel modes, that's what I supposed, just wanted to be sure I'm not missing any possibly interesting features. And thanks for the post 'Discard queued Ajax Requests ;-)

Re: Localized PropertyTreeColumn header string

2010-02-27 Thread Igor Vaynberg
all you had to do was look at the source. its not that difficult to do... new propertytreecolumn(...) { public component newhreader(parent, id) { label l=super.newheader(parent,id); l.setdefaultmodelobject(getstring(l.getdefaultmodelobjectasstring()); } } -igor On

Re: Localized PropertyTreeColumn header string

2010-02-27 Thread DCarr
Doh! Found it - didn't dig deep enough. Thanks! So the string that is required in the constructor is simply ignored if I supply an overridden newHeader - it looks like I should be able to use 'null' there without ill effects. I'm curious though: is there a reason why the constructor

RE: Print friendly panel

2010-02-27 Thread Josh Chappelle
Thanks Michael, I actually got the popup to work by just putting target=_blank in the anchor tag. I didn't think about doing it your way. My main problem is rendering the component into a string as well as to the browser. Thanks for your help! Josh -Original Message- From: Michael

wicket example Simple tree

2010-02-27 Thread tubin gen
is it possible to put Ajaxlinks in tree nodes ?

Re: wicket example Simple tree

2010-02-27 Thread fachhoch
I mean links to show popups, like modal window , or file download etc ? fachhoch wrote: is it possible to put Ajaxlinks in tree nodes ? -- View this message in context: http://old.nabble.com/wicket-example-Simple-tree-tp27730550p27730594.html Sent from the Wicket - User mailing list

Re: wicket example Simple tree

2010-02-27 Thread Sven Meier
Sure, see LinkTree and #setLinkType(). Sven * *fachhoch wrote: I mean links to show popups, like modal window , or file download etc ? fachhoch wrote: is it possible to put Ajaxlinks in tree nodes ? - To

Re: wicket example Simple tree

2010-02-27 Thread fachhoch
here the code from wicket examples private void add(DefaultMutableTreeNode parent, List sub) { for (Iterator i = sub.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof List) { DefaultMutableTreeNode child

Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-02-27 Thread Richard Nichols
Could it be a content type issue? I haven't served images in this way before using dynamic resource refs, but if you were doing a similar thing with a servlet then you would need to ensure the mime type was being sent as image/jpeg. If the http headers all look good, it may be a limitation of

Re: wicket example Simple tree

2010-02-27 Thread Sven Meier
This code from the example is just building the tree model - no place for Wicket components yet. Creating an AjaxLink comes later, when the tree nodes are represented by Wicket components - see AbstractTree#newLinkComponent(). Sven fachhoch wrote: here the code from wicket examples

Re: wicket example Simple tree

2010-02-27 Thread fachhoch
is there any example of adding links to LinkTree ? svenmeier wrote: This code from the example is just building the tree model - no place for Wicket components yet. Creating an AjaxLink comes later, when the tree nodes are represented by Wicket components - see

RE: Print friendly panel

2010-02-27 Thread Alex Rass
Josh, This doesn't answer your question directly (about a popup). But a MUCH simpler way is to make your page printer friendly by supplying an alternative CSS for printing format (google on that). Makes life much easier. When you tell your page which css to use, you can say use this CSS for

Re: Print friendly panel

2010-02-27 Thread Riyad Kalla
This is what I've done in the past as well, allows your user to just print the page they are staring at and have the browser do the right thing in using an alternative style sheet for rendering the page -- this includes using a lot of display:none to trim down the parts of the page that you don't