-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing oncontextmenu and disable textarea whitespace #105
Comments
Inside the view I found .setIndented(false) which can fix the textarea being not empty (would prefer only on areatext rather than whole document) but with async view you get a stack overflow error.
|
Hi @ottolewis8, Well, I will try to answer all the different points of this Issue:
1.
|
Thanks for the response. Does async view support multiple threads using a view at the same time, I have an example view which simulates async behaviour.
This only happens with 4.2, 4.1 does not have this issue. |
Hi @ottolewis8, TLDR In parallel thread scenarios, you must use Additionally, I have significant doubts about your necessity of an
Maybe documentation is not clear. Could you please specify which statement misled you regarding the role of Regarding your example, it was a matter of luck that one of them works and the other doesn't. Concurrency is not deterministic. On my machine, both fail, and one of them enters an infinite loop. And, even when your test completes successfully, there is a high likelihood of the resulting HTML being incorrect. I developed a unit test with your example and you can observe that both views (i.e. HtmlView and HtmlViewAsync) run successfully and produce valid HTML. Notice, both views are built with HtmlViewAsync<Object> view = HtmlFlow.viewAsync(TestAsyncViewInConcurInMultpleThreads::template).threadSafe();
...
HtmlView<Object> view = HtmlFlow.view(TestAsyncViewInConcurInMultpleThreads::template).threadSafe(); However, if you remove |
You are correct I don't Asyc view as no Future, pulushers etc is used. I was looking at the V4 documentation and there is no mention of thread safety: https://htmlflow.org/features but there is on V3 https://htmlflow.org/features_version3. Making the changes you have suggested. |
Fixes on new release 4.3. |
I have an element that when right click will show a custom menu, using oncontextmenu function which returns false prevents the default browser context menu from showing.
The attribute oncontextmenu is missing, you can use attrOnauxclick or attrOnclick and look at the event to determine if a right click was sent but the browser context menu is shown.
I have a work around to use a custom attribute which works but can you add oncontextmenu?
Also textarea></textarea> should not have any white space between tags as the browser adds this to the form.
Text area is not empty
The text was updated successfully, but these errors were encountered: