Questions tagged [getproperty]
84 questions
0
votes
1 answer
Creating instance within get parameter method? known pattern or?
Recently I've adopted a handy way to make sure tree-like structure members are aware of their parent node:
private metaCollection _servicePages;
///
/// Registry of service pages used by this document
///…

hardyVeles
- 1,112
- 11
- 13
0
votes
1 answer
Get array from XMLModel in OpenUI5?
How to get array from XMLModel in OpenUI5?
I tried:
this.oXmlModel = new XMLModel();
this.oXmlModel.setXML('\
\
\
text 1.1 text 1.2 \
text…

endrx
- 17
- 6
0
votes
1 answer
How to use getValue from GetProperty returned from the result of Task
So my question is, I would like to refactor this piece of code.
I need to retrieve 3 values ,SpentTimeHours, RemainingTimeHours and InitialEffortEstimateHours that are nullable double (double?),
This values must come from the cache (dictionary) or…

jolynice
- 514
- 1
- 8
- 25
0
votes
1 answer
Add new line to custom Exception message in Anypoint Studio Mule
I am using Anypoint Studio 6.1 and Mule 3.8.1 and want to return an Exception message with the "\n" returned as a new line. I am trying to use System.getProperty("line.separator") but the "\n" still appear in the message as text and not a new…

user3165854
- 1,505
- 8
- 48
- 100
0
votes
1 answer
C# "Object reference not set to an instance of an object" Get Type / Get Property
Hi guys I'm receiving an error: "Object reference not set to an instance of an object". I'm not quite sure why... Here's the code:
public void LoadUserContacts(ListBox FriendsLb)
{
FriendsLb.DisplayMember = "Display";
var query = from o in…

richardj97
- 79
- 1
- 10
0
votes
0 answers
Java Properties.getProperty() with an Array of Objects
I have a configuration file formatted as this,
object1=1
object2=2
object3=3
array={
sub_object1=sub_1
sub_object2=sub_2
sub_object3=sub_3
}
object4=4
object5=5
I have been trying to process this with Properties.getProperty, but am unable…

woahguy
- 261
- 3
- 13
0
votes
1 answer
How to know what JTextField is coming into the DocumentListener
I am trying to use a DocumentListener on a number of JTextFields. I need to know which textField is coming into the DocumentEvent so I can do some specific processes. Below is how I have my DocumentListener coded and one of the JTextFields set up…

EricG
- 65
- 9
0
votes
1 answer
Inconsistency with System.getProperty("user.dir")
I have been using this line of code in AndroidStudio to get the path of a file in my project:
String srcDir = System.getProperty("user.dir");
Currently when I am trying to access the same project using intelliJ the value of srcDir returned is…

Naman
- 27,789
- 26
- 218
- 353
0
votes
1 answer
Why am I getting null value when trying to get a property value based on the name?
I have this code for getting value of the property based on string name of the property
public class Person
{
public String LastName;
}
static void Main()
{
Person person1 = new Person { Born = new DateTime(1989, 10, 7), FirstName =…

Vasiliy
- 151
- 1
- 8
0
votes
1 answer
Jboss Server Not Loading Java Environment Properties
I am trying to load a properties file in a web application using the following code in Java.
InputStream in = ContextEventListener.class.getResourceAsStream(resourceConstVal);
Properties config = new Properties();
config.load(in);
When this…

Allzhere
- 1,280
- 1
- 11
- 19
0
votes
1 answer
getPropertyValue doesn't wok in IE9?
I want to use transition and transform to make a slider. I use the getPropertyValue to check the current slide. It works fine in Chrome, but in the IE9 it shows an error: TypeError: Cannot read property '0' of null (I marked the line with **)
the…

Brick Yang
- 5,388
- 8
- 34
- 45
0
votes
1 answer
LogManager getProperty MyClass.filter in java
I have create the following code in java :
LogManager manager = LogManager.getLogManager();
String className = this.getClass().getName();
String level = manager.getProperty(className + ".filter");
nevertheless, the variable is null after the call…

onda47
- 615
- 2
- 6
- 21
0
votes
3 answers
c# orderBy type in string
I would like to do pass the filter as string parameter.
public static List Search(string filtre){
var contacts = bdContext.Contact.OrderBy( e => e.[filtre]).ToList();
return contacts;
}
Code:
var contacts =…

Fabrice Kyams
- 29
- 5
0
votes
2 answers
Groovy - Correct way to implement getProperty method
I need to run some code whenever a property value is retrieved, so naturally it made sense to define the getProperty method in my class. This method will get automatically called whenever a property value is retrieved. Here's roughly what I have…

Harry Muscle
- 2,247
- 4
- 38
- 62
0
votes
2 answers
Vaadin How to handle IndexedContainer.Property.ValueChangeEvent for specific Item or PropertyId?
I want to handle Property.ValueChangeEvent in my IndexedContainer, when the value is changed in specific row. I expected the "event" passed as argument will supply the information what has been changed.
IndexedContainer container = new…

Hink
- 1,054
- 1
- 15
- 31