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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo