Re: OLark script block

2013-03-01 Thread George Ludwig
I'm dealing with this exact issue right now, and it makes me wonder why the UserVoice script works fine, but Olark does not. Harry, did you have to put this code on every page, or did you put it in the layout? Also, did you hard-code the script, or load it from a file? -George On Sun, Feb 26, 2

Re: NPE in Tree when I dont have any data

2013-03-01 Thread bhorvat
I have manged to fix this problem partially. It turns out that my getChildlren methods where hard coded to return true/false. This in turn triggered a NPE. It seems that if we getChildren method returns true it means that there has to be some data so not even empty list will work. Creating Defau

Re: How to disable bootstrap label/button hover behavior?

2013-03-01 Thread George Ludwig
Thanks for the info! On Wed, Feb 20, 2013 at 11:56 PM, Ivan Khalopik wrote: > // Hover/focus state, but only for links > a { > &.label:hover, > &.label:focus, > &.badge:hover, > &.badge:focus { > color: @white; > text-decoration: none; > cursor: pointer; > } > > } > > This

Re: NPE in Tree when I dont have any data

2013-03-01 Thread bhorvat
I guess it cant hurt to show you my root class just to see that I really am not returning a null for the list public class AssetGroupRootValueWrapper implements ValueWrapper { private List children; public AssetGroupRootValueWrapper(List assetGroups) { children = new LinkedList

Re: NPE in Tree when I dont have any data

2013-03-01 Thread bhorvat
Hi, I would say that this is a bug as the NPE is thrown deep under the code. I have something like a categories and items under that. If I have a categories that dont have any items or if I dont have any categories this exception is thrown. I call the code as follows public TreeModel get

Re: [ANN] Weaves, a new Tapestry 5 module

2013-03-01 Thread Muhammad Gelbana
Nice, thanks for sharing it :) On Fri, Mar 1, 2013 at 4:20 PM, antalk wrote: > It's been a while but i've managed to update our Tapestry 5 component > library > 'Weaves'. > > New in this version: > > - A Jquery based datatable > - A tooltip mixin > - Code improvements and optimizations > > A dem

Re: [ANN] Weaves, a new Tapestry 5 module

2013-03-01 Thread antalk
It's been a while but i've managed to update our Tapestry 5 component library 'Weaves'. New in this version: - A Jquery based datatable - A tooltip mixin - Code improvements and optimizations A demo can be found here: http://intercommitweavesdemo.intercommit.cloudbees.net/ Full code and binari

Re: Conditional service override

2013-03-01 Thread Thiago H de Paula Figueiredo
On Fri, 01 Mar 2013 01:30:38 -0300, Alex Kotchnev wrote: Thiago - I can probably try going the decoration route, although it feels a little bit "not right" -conceptually I want to 'override' the original implementation. It may not feel 100% right, but a decorator is still a different

Re: A blank option in a dropdown list populated from a database

2013-03-01 Thread esper
as soon as I've submitted the message I've found the answer. I just used the "blankLabel" option. duh! -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-blank-option-in-a-dropdown-list-populated-from-a-database-tp5720293p5720300.html Sent from the Tapestry - User mailing

Re: A blank option in a dropdown list populated from a database

2013-03-01 Thread esper
Great, thanks for the response. but that leads me to another question. The specification says: "The value for the blank option is always the empty string, the label may be the blank string;" I wonder if that could be set to anything else? cheers -- View this message in context: http://tapest

Re: NPE in Tree when I dont have any data

2013-03-01 Thread Geoff Callender
Sounds like a bug to me - the documentation doesn't say anything about null or empty not being allowed, so throwing NPE from somewhere inside isn't cool. On 01/03/2013, at 8:21 PM, Lance Java wrote: > I'm going to guess that you're using DefaultTreeModel. There are 2 > constructors: > > public

Re: A blank option in a dropdown list populated from a database

2013-03-01 Thread Geoff Callender
The Select component has a parameter "blankOption" with a default value of AUTO: http://tapestry.apache.org/5.3.6/apidocs/index.html?org/apache/tapestry5/corelib/components/Select.html and the meaning of AUTO is here: http://tapestry.apache.org/5.3.6/apidocs/org/apache/tapestry

Re: NPE in Tree when I dont have any data

2013-03-01 Thread Lance Java
I'm going to guess that you're using DefaultTreeModel. There are 2 constructors: public DefaultTreeModel(ValueEncoder encoder, TreeModelAdapter adapter, T root) and public DefaultTreeModel(ValueEncoder encoder, TreeModelAdapter adapter, List roots) If your tree is null, then you have no roots. Do

Re: NPE in Tree when I dont have any data

2013-03-01 Thread Lance Java
Can you post your TreeModel? Are you returning null from getRootNodes()? If so, I suggest returning an empty list instead. -- View this message in context: http://tapestry.1045711.n5.nabble.com/NPE-in-Tree-when-I-dont-have-any-data-tp5720289p5720295.html Sent from the Tapestry - User mailing li

Re: Conditional service override

2013-03-01 Thread Ivan Khalopik
There is a helper method in configuration classes for service autobuilding: configuration.addInstance(FooService.class, DevFooService.class); But I think autobuilding inside service override contribution is not a good idea as it can result in recursion if service has complex dependency tree. The

A blank option in a dropdown list populated from a database

2013-03-01 Thread esper
Hi all, How to insert a blank option or a "select all" option into tapestry t:select control populated through tapestry selection model? The examples from a jumpstart page seem to have a blank field which is never set explicitly so I just assumed Tapestry handles it by default?! I don't get the b