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
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
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
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
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,
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
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 ;-)
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
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
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
is it possible to put Ajaxlinks in tree nodes ?
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
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
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
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
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
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
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
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
19 matches
Mail list logo