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

2007-07-02 Thread Karl M. Davis
for [EMAIL PROTECTED] #appendParameters(AppendingStringBuffer, Map)} and * [EMAIL PROTECTED] #decodeParameters(String, Map)} was copied verbatim from * [EMAIL PROTECTED] IndexedParamUrlCodingStrategy}. * * @author Karl M. Davis */ public class IndexedParamResourceUrlCodingStrategy extends

[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] 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: Responseparsed.Nowinvokingsteps... INFO: INFO:

Re: [Wicket-user] ModalWindow

2006-10-23 Thread Karl M. Davis
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 update. When I do this-- the Ajax for that page

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, October 23, 2006

[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] 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
t("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 double click to open a popup window. I don't really care if it's Ajax or static _javascript_, I jus

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
. 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 PROTECTED] wrote: Igor

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
you are using parameters a (PageParemeters params) constructor. -igpr On 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better

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
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, I put together a modified version

[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 treewhen I callTree.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 wanted

Re: [Wicket-user] Problem Selecting Tree Nodes

2006-09-26 Thread Karl M. Davis
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 call Tree.updateTree(target); (my

Re: [Wicket-user] Problem Selecting Tree Nodes

2006-09-26 Thread Karl M. Davis
)}, new Object[]{child}); return child; } } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl M. Davis Sent: Tuesday, September 26, 2006 2:12 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user

Re: [Wicket-user] Problem with tree width

2006-09-24 Thread Karl M. Davis
for tree table wouldn't work well. -Matej Karl M. Davis wrote: 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

[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--

[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 to

[Wicket-user] AbstractRequestTargetUrlCodingStrategy implementation

2006-08-14 Thread Karl M. Davis
Hello all, What I would like to have is a sitewhere 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")*

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 load.