Giter VIP home page Giter VIP logo

contexthelp's People

Contributors

gitter-badger avatar jeperon avatar zch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

contexthelp's Issues

VContextHelp.updateServersideState(...) throws TypeError when $doc.activeElement is null

In IE9 JS console (or Vaadin debug window), it can be seen that following error sometimes appears when intializing layout including ContextHelp, or when closing a help bubble:

JavaScriptException: (TypeError): Unable to get value of the property 'id': object is null or undefined
 description: Unable to get value of the property 'id': object is null or undefined
 number: -2146823281

This is because there's following line in VContextHelp.updateServersideState(...):

client.updateVariable(uidlId, "selectedComponentId", getHelpElement().getId(), false);

Whenever getHelpElement() returns null, getId() on that will obviously fail and trigger the TypeError. And sometimes, there just isn't anything in focus. Perhaps a simple null check would suffice.

This is especially annoying on layout intialization, where the error stops further processing and user can see only blank page. I have not yet noticed any drawback coming from this when closing a help bubble.

Help bubble does not show when RichTextArea gets focus.

The help bubble does not appears when clicking in the textarea for adding text.
In the contrary it shows up when clicking a button to select Bold or another Font in the menu.
In my form I have different components, standard Fields, wrapperFields and combinations of customcomponent in wrapperField which work all fine.
The exception is the RichTextArea which acts differently.
Is there somehow a workaround to have the same behaviour as on the other components?

The programmatic control demo is bad

  • type into the field
  • click toggle help
  • click the typed text
    -> the help bubble is hidden

Autohide should be off by default in the demo, which probably is what would be used in normal circumstances and is the way that you expect the above case to behave.

Also: add indicators for what state the demo is in (bubble showing/hidden, autohide on/off)

First use of wrapped field shows an empty help bubble

This is visible in the ContextHelp demo:

http://jonatan.virtuallypreinstalled.com/ContextHelp/

Click on "Wrapped fields"
Click on a ?
Uploading bubble.png . . .

(Image upload isn't working. What I see is an empty help bubble, in the top-left corner of the screen.)

I also get a stack trace:

stack: TypeError: Cannot read property 'c' of null
at uCf (0.js:5062:118)
at oCf (0.js:5020:98)
at tCf (0.js:4815:85)
at eCf (0.js:3098:23)
at Object.iBf as jc
at Mk (0.js:5333:102)
at Ek (0.js:4537:60)
at Object.Rk (0.js:6041:4335)
at Kk (0.js:2457:25)
at ck (0.js:3511:29)
at ik (0.js:5363:57)
at eval (0.js:4482:45)
at eval (0.js:4743:50)
at eval (0.js:4468:53): Cannot read property 'c' of null
at Unknown.uCf(0.js@118)
at Unknown.oCf(0.js@98)
at Unknown.tCf(0.js@85)
at Unknown.eCf(0.js@23)
at Unknown.iBf(0.js@1973)
at Unknown.Mk(0.js@102)
at Unknown.Ek(0.js@60)
at Unknown.Rk(0.js@4335)
at Unknown.Kk(0.js@25)
at Unknown.ck(0.js@29)
at Unknown.ik(0.js@57)
at Unknown.eval(0.js@45)
at Unknown.eval(0.js@50)
at Unknown.eval(0.js@53)

After you use F1 to bring help, subsequent requests work. I've observed this on Firefox and Chrome.

Communication Problem While reloading page

Hi

I am using vaadin 6 and Liferay Community Edition 6.1.0
If i use context help for a text box,Its works fine and in loading time i don't have any issues.
In Time of reload or sign out ,I am getting Communication Problem error.
I cant able to find any log in browser console.
Please help me to sort this issue.

Thanks in Advance

Regards
Gowtham J

Possibility to add css class on .v-contexthelp-bubble level

Hi

There is no easy way to add css class to .v-contexthelp-bubble. Problem for example with windows. If I want to show selected context help only on specific windows. For now z-index of .v-contexthelp-bubble is lower than vaadin window. But in this situation I can't show context help on vaadin window.

Could You take a look on it?

Regards

Communication Problem pressing Escape Key with Firefox 7

If the ContextHelp is not in follow focus mode and the help bubble is displayed, typing the "Esc" key crashes the App with a

Communication Problem

and error message: Invalid status code 0 (server down?)

The issue seems to occur only on Firefox
my current version is 7.0.1

Running on a Windows XP platform

Too much recursion gwt error with the 7.4 release candidate

Hi I know 7.4 hasn't been released yet but the 7.4.0.rc1 is out and looking at the Vaadin milestones it'll be out within the next week or so and thought I'd still report it
When I compile the ContextHelp with this version and try to use it with my TextField the help popup doesn't show up and I see this error in Firebug (testing on firefox)

too much recursion com.google.gwt.event.shared.UmbrellaException: Exception caught: (InternalError)

followed by a long stacktrace (I can provide that if you need)
When I switch to 7.3.10 it works fine

Make styling easier

Make styling with CSS easier. One user reports that setStyleName is not working - check this.

Gradle couldn't download addon as compile dependency

  > Could not resolve org.vaadin.jonatan:contexthelp:2.0.0.beta1.
      > Could not parse POM http://maven.vaadin.com/vaadin-addons/org/vaadin/jonatan/contexthelp/2.0.0.beta1/contexthelp-2.0.0.beta1.pom
         > Could not find any version that matches org.vaadin.jonatan:contexthelp-modules:2.0.0.beta1.

Dependencies on Defaulthelpprovider

I miss two methods in the HelpProvider interface. Now, even if i set a HelpProvider that i have set myself
i cannot affect the way the helptexts are added, only how they are retrieved. So my question is, if you could
remove the cast to DefaultHelpprovider in the below methods and add the methods in the interface so
the set helpprovider is used.

addHelpForComponent

setPlacement

I am a little bit stuck on this one :)

Cannot set the HelpProvider

Cannot use anything but the default help provider. Need the possibility to set my own HelpProvider, for example with
a setHelpProvider method. This small change would be greatly appreciated.

Hiding a bubble when it's field disappears is laggy.

  1. setting the hideOnBlur to true
  2. show a bubble for a field
  3. navigate away without first closing the bubble
    -> the bubble is still visible a moment after having navigated away and finally disappears

This is apparent at least in a TabSheet, navigating between tabs.

JavaScript error when opening programmatically

I have the following application:

    public void init() {
        final Window mainWindow = new Window("Playground Application");
        setMainWindow(mainWindow);

        final ContextHelp ch = new ContextHelp();
        mainWindow.addComponent(ch);

        final Button button = new Button("test");
        mainWindow.addComponent(button);

        ch.addHelpForComponent(button, "This is a test");
        ch.showHelpFor(button);
    }

When I try to open the application, nothing renders and the following error can be seen in the debug window.

JavaScriptException: (TypeError): Cannot read property 'childNodes' of null
 arguments: childNodes,
 type: non_object_property_load
 stack: TypeError: Cannot read property 'childNodes' of null
    at RTb (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2340:30)
    at STb (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2244:108)
    at hUb (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:1932:68)
    at Object._Tb [as Sd] (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:3032:6949)
    at UHb (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2055:107)
    at Object.Xhb [as Sd] (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:3020:7817)
    at mCb (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2997:970)
    at LV (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2993:644)
    at tU (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2771:311)
    at uU (http://localhost:8080/Playground/VAADIN/widgetsets/com.example.playground.widgetset.PlaygroundWidgetset/9FB8EE0DB4C133E5E12A564735F39082.cache.html:2691:206)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.