zch / contexthelp Goto Github PK
View Code? Open in Web Editor NEWContextHelp is a component for Vaadin (http://vaadin.com/) that allows showing of contextual help.
Home Page: http://vaadin.com/addon/contexthelp
ContextHelp is a component for Vaadin (http://vaadin.com/) that allows showing of contextual help.
Home Page: http://vaadin.com/addon/contexthelp
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.
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?
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)
Add a removeHelp method and a mode that does not automatically dismiss the bubble.
Context help does not go the popup window. Is this not supported or I am missing something?
The bubble shouldn't close if I click to move the cursor in a text field that already has focus. It should only close if focus is moved from the field.
This is visible in the ContextHelp demo:
http://jonatan.virtuallypreinstalled.com/ContextHelp/
Click on "Wrapped fields"
Click on a ?
(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.
"Now if there was only a way to integrate this with a help icon next to my form fields without completely customizing my form layouts..."
From http://vaadin.com/forum/-/message_boards/message/221084
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
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
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
If I run the demo http://jonatan.virtuallypreinstalled.com/ContextHelp/ and aktivate "Make the help bubble follow focus" then F1 opens the Chrome Help in addition to the field help :)
The help bubble does not follow the associated element when the latter's position changes in the case when the bubble was shown programmatically.
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 with CSS easier. One user reports that setStyleName is not working - check this.
> 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.
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 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.
This is apparent at least in a TabSheet, navigating between tabs.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.