Re: Dynamically adding tree nodes upon selection

2007-08-03 Thread James McLaughlin
Hi Doug, First I would make sure your TreeNode implementation creates children lazily. You probably should only create children when children() is actually called and provide logic for isLeaf and getChildCount() that don't require creating the children. You can create the initial state for the

Re: Menu???

2007-08-04 Thread James McLaughlin
I actually have a rough version of yui menu done in wicket-contrib-yui. It needs to be polished up quite a bit, which I have been intending on doing for about 5 months now. It works with yui 2.2.2 with the exception that you must strip wicket tags or else the yui menu parser barfs. Any help

Re: wicket contrib yui

2007-08-28 Thread James McLaughlin
Also note that we did something similar in wicket-datetime. Maybe, in some future, it would be great to have all the YUI components together. For now, we could look whether the projects can at least be used together without having them bite. A thread of two weeks ago discussed this. The

WicketTester, FormTester, and AjaxSubmitLink

2007-09-06 Thread James McLaughlin
Hi, Hacking away at some tests, I figured the proper way to test an AjaxSubmitLink would have been as follows: Panel p = tester.startPanel(EventPanel.class); FormTester ft = tester.newFormTester(p.getId() + :eventForm); ft.setValue(messageField, ALARM_MESSAGE);

Re: Context menu within a LinkTree?

2007-09-27 Thread James McLaughlin
On 9/27/07, Doug Leeper [EMAIL PROTECTED] wrote: Has anyone been able to create a context menu for items on a LinkTree? If so, was it all JS based (like YUI)? or did you create a small framework to be used in Wicket? If the latter, would it be possible to contribute to the

Re: Ajax question

2007-10-18 Thread James McLaughlin
On 10/18/07, Doug Leeper [EMAIL PROTECTED] wrote: I am using 1.3 (Trunk). I am calling AjaxRequestTarget.target.appendJavascript() right after i call AjaxRequestTarget.target.addComponent(). Is this the right approach? Do I have access to IHeaderResponse in an Ajax call? Have your

Re: Best practice question

2007-11-02 Thread James McLaughlin
Hi Doug, It is hard to say without knowing more about your app. As a rule, I never keep references to data in my components. Components have only refs to services (injectable) and all the data are encapsulated by IModels of one sort or another. The IModels always implement IDetachable and keep

Re: wicket:enclosure ( setting visible when hidden on render )

2009-10-23 Thread James McLaughlin
. Then I set visible(true) during runtime and at the component to the AjaxTarget. The component is not rendered. Is there a way to get this to work? Add the parent component that contains the wicket:enclosure markup to the AjaxRequestTarget.

Re: LinkTree will not be updated

2009-04-22 Thread James McLaughlin
add tree.updateTree(target) before adding the tree to the target. hth, jim tree.addTreeListener(new TreeListener() { @Override public void onActivityClicked(String nameOfNode,AjaxRequestTarget target){

Re: Dynamically update TreeTable model

2009-04-22 Thread James McLaughlin
You should not recreate the TreeModel and for most cases DefaultTreeModel is what you want. If you are adding a node, add it with:

Re: cannot render a menubar using menu2 package

2007-11-30 Thread James McLaughlin
rik rik, you don't need to include the yui libraries. YuiMenuBar will do that automatically. Remove them from your html and everything should work fine. best, jim On Nov 30, 2007 3:58 AM, rik rik [EMAIL PROTECTED] wrote: Hi to all, I've downloaded the sources of menu2 from svn, but I'm not

Re: cannot render a menubar using menu2 package

2007-12-03 Thread James McLaughlin
A quickstart attached to jira would be most appreciated. http://wicketstuff.org/jira/browse/WSYUI. Yui menu's distaste for wicket tags has been a long standing issue. To get around it at first, we did tMarkupSettings().setStripWicketTags(true). But then I thought that was changed to calling

Re: cannot render a menubar using menu2 package

2007-12-03 Thread James McLaughlin
Hi Doug, We definitely don't want to require users to strip wicket tags, if that still needs to be done. I think we did that just to get it working. I thought setRenderBodyOnly was enough, but if we still have issues we should add in a MarkupFilter or use a Transformer. If menu2 only works with

Re: TreeGrid and DataGrid open source

2008-01-14 Thread James McLaughlin
Looking ahead, I can imagine that as Wicket becomes ever more popular, there will be many organisations who will see it as a big plus that there are well-respected developers building, selling and maintaining well engineered, reliable and high-quality components with interesting features that

Re: parse directive in velocity template failing

2008-01-21 Thread James McLaughlin
fattymelt, It used to work that you could jar up your templates and put them under WEB-INF/lib. If that doesn't work, create your own velocity.properties file and define the init-params velocityPropertiesFolder and velocity.properties in your web.xml. You can define there which loaders to use and

Re: parse directive in velocity template failing

2008-01-22 Thread James McLaughlin
, fattymelt. James McLaughlin-3 wrote: fattymelt, It used to work that you could jar up your templates and put them under WEB-INF/lib. If that doesn't work, create your own velocity.properties file and define the init-params velocityPropertiesFolder and velocity.properties in your web.xml

Re: parse directive in velocity template failing

2008-01-22 Thread James McLaughlin
param-namevelocity.properties/param-name param-valuevelocity.properties/param-value /init-param load-on-startup2/load-on-startup /servlet James McLaughlin-3 wrote: On Jan 21, 2008 11:45 PM, fattymelt [EMAIL PROTECTED] wrote: Just to be sure

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-18 Thread James McLaughlin
+1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Application Context

2008-04-09 Thread James McLaughlin
Have a look at Springs WebApplicationContextUtils.getWebApplicationContext(...). This in conjunction with org.springframework.web.context.ContextLoaderListener should give you what you need. best, jim On Wed, Apr 9, 2008 at 12:41 PM, Pinger [EMAIL PROTECTED] wrote: So I am using wicket