visibility

Kotlin instance variable is null when accessed by Spring proxied class

ぃ、小莉子 提交于 2020-02-26 14:17:29
问题 I have a service class that is being proxied by Spring, like so: @Service @Transactional open class MyService { ... } If I remove the open modifier, Spring complains that it needs to proxy the class to apply the @Transactional annotation tweaks. However, this is causing issues when calling a function on the proxied service, which attempts to access a variable: @Service @Transactional open class MyService { protected val internalVariable = ... fun doWork() { internalVariable.execute() //

pdo variable is undefined in mysql function

大憨熊 提交于 2020-02-26 04:23:50
问题 I have an index.php which is like: require_once("../resources/config.php"); require_once(LIBRARY_PATH . "/mysql.php"); ... if(checkIfMailExists($email)) { $error = true; $errormsg = "This e-mail is already in use!"; } mysql.php is: try { $pdo = new PDO('mysql:host=' . $config['db']['db1']['host'] . ';dbname=' . $config['db']['db1']['dbname'], $config['db']['db1']['username'], $config['db']['db1']['password']); }catch(PDOException $e){ echo "Cant connect to mysql DB!"; } function

How to disable or enable the chart visibility in BIRT

北战南征 提交于 2020-02-07 12:26:34
问题 I have a problem, I need to dynamically show the chart according to the user's selection with BIRT. Could anyone tell me how to do that with script? I have created the parameter for the selection. 回答1: The easiest way is to set the visibility property of the chart (or of a grid containing this chart) with an expression using a parameter. This example hides the grid of a crosstab if the value of "View" report parameter equals to "charts". However this is not the most efficient approach,

How to disable or enable the chart visibility in BIRT

谁说我不能喝 提交于 2020-02-07 12:26:30
问题 I have a problem, I need to dynamically show the chart according to the user's selection with BIRT. Could anyone tell me how to do that with script? I have created the parameter for the selection. 回答1: The easiest way is to set the visibility property of the chart (or of a grid containing this chart) with an expression using a parameter. This example hides the grid of a crosstab if the value of "View" report parameter equals to "charts". However this is not the most efficient approach,

Kotlin internal members not accessible from alternative test source set in Gradle

…衆ロ難τιáo~ 提交于 2020-02-02 02:44:06
问题 Following https://docs.gradle.org/current/userguide/java_testing.html#sec:configuring_java_integration_tests and https://www.michael-bull.com/blog/2016/06/04/separating-integration-and-unit-tests-with-gradle we are attempting to separate our integration tests from plain unit tests. The problem we have is internal members in Kotlin are not accessible from such tests. As per Kotlin doco there is a visibility exception for test source sets. The internal visibility modifier means that the member

Xamarin forms: How to handle the flowlistview selected item visibility?

柔情痞子 提交于 2020-01-25 08:15:09
问题 I have some images in a flowlistview, initially show only question mark image. When tap on the question mark image, the real image will visible instead of the question mark image. I have done like below, but the problem is, when tapping all real images are visible instead of the selected image. I need to show only the real image under the question mark image. XAML <flv:FlowListView x:Name="MemoryMatchList" FlowItemsSource="{Binding ImageItems}" FlowColumnCount="2" HasUnevenRows="true"> <flv

Hide SVG element from C#

北城余情 提交于 2020-01-25 04:43:06
问题 I have a svg which contains two groups. <svg viewBox="0 0 150 150" xmlns="http://www.w3.org/2000/svg"> <g id="gr1" fill="white" stroke="green" stroke-width="5"> <circle cx="40" cy="40" r="25" /> <circle cx="60" cy="60" r="25" /> </g> <g id="gr2" fill="white" stroke="green" stroke-width="5"> <circle cx="90" cy="60" r="25" /> <circle cx="96" cy="40" r="25" /> </g> </svg> Is there a way, using C# or javascript (preferably C#), to hide the group gr2 at some event (button click, x value>y value,

What is the difference between the hidden attribute (HTML5) and the display:none rule (CSS)?

让人想犯罪 __ 提交于 2020-01-18 19:37:53
问题 HTML5 has a new global attribute, hidden , which can be used to hide content. <article hidden> <h2>Article #1</h2> <p>Lorem ipsum ...</p> </article> CSS has the display:none rule, which can also be used to hide content. article { display:none; } Visually, they are identical. What is the difference semantically? Computationally? What guidelines should I consider on when to use one or the other? TIA. EDIT : Based on @newtron's responses (below), I did more searching. The hidden attribute was

What is the difference between the hidden attribute (HTML5) and the display:none rule (CSS)?

ぃ、小莉子 提交于 2020-01-18 19:37:50
问题 HTML5 has a new global attribute, hidden , which can be used to hide content. <article hidden> <h2>Article #1</h2> <p>Lorem ipsum ...</p> </article> CSS has the display:none rule, which can also be used to hide content. article { display:none; } Visually, they are identical. What is the difference semantically? Computationally? What guidelines should I consider on when to use one or the other? TIA. EDIT : Based on @newtron's responses (below), I did more searching. The hidden attribute was

What is the difference between the hidden attribute (HTML5) and the display:none rule (CSS)?

不问归期 提交于 2020-01-18 19:36:43
问题 HTML5 has a new global attribute, hidden , which can be used to hide content. <article hidden> <h2>Article #1</h2> <p>Lorem ipsum ...</p> </article> CSS has the display:none rule, which can also be used to hide content. article { display:none; } Visually, they are identical. What is the difference semantically? Computationally? What guidelines should I consider on when to use one or the other? TIA. EDIT : Based on @newtron's responses (below), I did more searching. The hidden attribute was