Re: [Wicket-user] DynamicWebResources, ResourceLinks, and URL Parameters

2007-07-02 Thread Karl M. Davis
urce}s, not bookmarkable pages. * * NOTE: The code for [EMAIL PROTECTED] #appendParameters(AppendingStringBuffer, Map)} and * [EMAIL PROTECTED] #decodeParameters(String, Map)} was copied verbatim from * [EMAIL PROTECTED] IndexedParamUrlCodingStrategy}. * * @author Karl M. Davis */ pub

[Wicket-user] DynamicWebResources, ResourceLinks, and URL Parameters

2007-06-30 Thread Karl M. Davis
Hey there all, I've got a DynamicWebResource that I'm mounting via mountSharedResource(...) and creating a ResourceLink to. That Resource requires parameters and I'd love for it to operate similar to how IndexedParamUrlCodingStrategy works, where my parameters are numbered and look like just

[Wicket-user] OT: writing a plugin-driven app

2006-10-29 Thread Karl M. Davis
Hey there all,   Sorry for being slightly off-topic but I was hoping someone here might be able to point me in the right direction.  I'd like my wicket app to support plugins.  What I need is a way to dynamically discover what plugins are available to be instantiated.  A plugin in this case

[Wicket-user] ListChoice and default value

2006-10-23 Thread Karl M. Davis
Hello all,   This is a minor annoyance, but I figured I'd throw it out there anyways...   Is there a way to have a ListChoice that has no option selected by default and does not insert a default choice (e.g. "Choose One" or an empty entry if you set setIsNullValid(true))?  It's possible in

Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
Matej, Thanks-- that seems to have done it. At least, it's crashing respectably now with a markup error that I'll look at later (my fault, I'm sure). -- Karl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl M. Davis Sent: Monday, O

Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
st doesn't work I'll certainly look at that. -Matej Karl M. Davis wrote: > Hello all, > > I am having a problem in my first attempts to use ModalWindow. What > I'm trying to do is have a ModalWindow that is part of a panel which > is added during an Ajax upd

[Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
Hello all,   I am having a problem in my first attempts to use ModalWindow.  What I'm trying to do is have a ModalWindow that is part of a panel which is added during an Ajax update.  When I do this-- the Ajax for that page "hangs" on: << INFO: Response parsed. Now invoking steps... INFO:

Re: [Wicket-user] AjaxTabbedPanel - changing tab label

2006-10-22 Thread Karl M. Davis
I haven't checked, but since AbstractTab takes a Model for the title, you could try just changing the value that model returns.   e.g. Model tabLabel = new Model("label1"); ... new AbstractTab(tabLabel) {...   ... onAjaxUpdate ... tabLabel.setObject("label2"); ...   From: [EMAIL PROTECTED]

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
On 10/17/06, Karl M. Davis <[EMAIL PROTECTED]> wrote: Wow, that was idiotic of me.  I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not.   Is there a way to have _javascript_ open a popup to a page that is

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
p settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis <[EMAIL PROTE

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
" + url + "'");  if(target != null)    tag.put("ondblclick", target.appendJavascript(popupSettings.getPopupJavaScript());  }}-igor On 10/16/06, Karl M. Davis <[EMAIL PROTECTED]> wrote: Hello all,   What I'm trying to do is have a Label that I can doub

[Wicket-user] Open Popup via Ajax

2006-10-16 Thread Karl M. Davis
Hello all,   What I'm trying to do is have a Label that I can double click to open a popup window.  I don't really care if it's Ajax or static _javascript_, I just need it to work.  However, Ajax seemed easiest so I've added the following Ajax behavior to a Label:   <<  private static class

Re: [Wicket-user] Handling tree node onclick

2006-10-13 Thread Karl M. Davis
Matej, Doesn't it make more sense just to override onNodeLinkClicked(...)? That's what I've been doing, anyways. That way you don't have to worry about how the ndoes are created-- just what to do with them once one is clicked. If you want to control how the nodes look, override renderNode(...)

Re: [Wicket-user] Problem Selecting Tree Nodes

2006-09-27 Thread Karl M. Davis
y. -Matej Karl M. Davis wrote: > Matej, > > Ended up with some extra free time today. > > I took a look at the existing unit tests and didn't see any that > jumped out at me for testing the tree component. So instead of a unit > test,

Re: [Wicket-user] Problem Selecting Tree Nodes

2006-09-26 Thread Karl M. Davis
DefaultMutableTreeNode child = new DefaultMutableTreeNode(new ModelBean(nodeText)); parent.add(child); fireTreeNodesInserted(this, parent.getPath(), new int[]{parent.getIndex(child)}, new Object[]{child}); return child;

[Wicket-user] Problem Selecting Tree Nodes

2006-09-26 Thread Karl M. Davis
Matej,   I'm getting an ArrayIndexOutOfBounds when I go to select a tree node right after it has been inserted into the tree when I call Tree.updateTree(target); (my tree model is firing the correct events).  If you'd like, I can get you a test case for this in a day or two, but I just wante

Re: [Wicket-user] Problem Selecting Tree Nodes

2006-09-26 Thread Karl M. Davis
llegal, it can be bug in tree. Would you mind testing svn version first, it _might_ be already fixed. Thanks, -Matej Karl M. Davis wrote: > Matej, > > I'm getting an ArrayIndexOutOfBounds when I go to select a tree node > right after it has been inserted into the tree when I

Re: [Wicket-user] Problem with tree width

2006-09-24 Thread Karl M. Davis
hat replacing tr in ajax doesn't work in ie (and > opera), so > > I had to use divs instead. However, I still think using nested > divs for > > tree table wouldn't work well. > > > > -Matej > > > > Karl M. Davi

Re: [Wicket-user] Problem with tree width

2006-09-22 Thread Karl M. Davis
Matej,   I've been wondering why you chose to implement the tree as a set of floated divs rather than as a nested list?  The list would be much more semantic and fallback gracefully if the user has CSS turned off as well.  This is one of the better examples of this I've seen: http://www.silv

[Wicket-user] Run Javascript before Ajax Form submit

2006-09-18 Thread Karl M. Davis
Hello all,   I have a form I'd like to submit via AJAX.  The problem is, before the form can be submitted, I need to run a _javascript_ command: "tinyMCE.triggerSave(true, true);"   I've tried adding a normal Button with it's getOnClickScript() overridden to return this.  That works fine--

Re: [Wicket-user] Matej's Tree Overflow problems

2006-09-09 Thread Karl M. Davis
To clarify: preferably the tree would be set to add scroll bars if any of the rows overflow the width. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl M. DavisSent: Saturday, September 09, 2006 2:32 AMTo: wicket-user@lists.sourceforge.netSubject: [Wicket-user] Matej's T

[Wicket-user] Matej's Tree Overflow problems

2006-09-09 Thread Karl M. Davis
Hey there,   I'm having a problem with Matej's tree.  The way it's set up, if any of the rows' text is too wide for the 20em space allocated to the tree, the row "disappears".  I can make the tree wider, but this becomes a problem for arbitrarily-large trees. I'm hoping this is something I

[Wicket-user] Matej's Tree Demo

2006-08-29 Thread Karl M. Davis
Hey there,   Just wanted to mention that the demo of Matej's "new" tree on the web page (http://wicketframework.org/wicket-extensions/index.html) is down.   Does anyone know where I can find some sample code and/or a working demo?  I'd really love to start using this and it's always easier

[Wicket-user] AbstractRequestTargetUrlCodingStrategy implementation

2006-08-14 Thread Karl M. Davis
Hello all,   What I would like to have is a site where user-specific feature pages map to hierarchical URLs.  For example: * /site/user/karl/blog/2006/08/14 maps to BlogViewer(bob, "2006", "08", "14") * /site/user/karl/content/BestEssayEver maps to ContentViewer(fred, "MyLifeStory") * /sit

[Wicket-user] Component To Display Arbitrary HTML

2006-06-18 Thread Karl M. Davis
PageHeader is output as <h1>PageHeader</h1> in the page source… not quite what I’m looking for. How should I go about this?   Thanks, Karl M. Davis ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/li

Re: [Wicket-user] Wicket Newbie Best Practices Questions

2006-06-11 Thread Karl M. Davis
Hello again all,   Thanks very much for all of your advice.  I think I'm starting to grasp how models should be used now.  Just a couple of follow up questions:   Model for ListChoice selections: I am now using a LoadableDetachableModel for pulling the list of snippets on each page loa