I edited my question to be more precise as I have more time to write it.
I have a JSF form that should modify the value of the different properties of a dog :
<h:form id="submit">
<h:outputLabel value="Dog name:"/>
<h:inputText value="#{User.dog.name}" id="dogName"/>
<h:outputLabel value="Name :"/>
<h:inputSecret va...
I have an Object who's internal representation is not conducive to data entry. I have a class with multiple custom components, one of which is a Range class. The Range class is easiest to input using two text field inputs rather than as one text field that uses a custom PropertyEditor.
I have a fully functional constructor that could ...
Lets say you have a Class with 300 properties with no backing variables, each of those properties returns a decimal/double.
Example:
public decimal MathValue { get; set; }
Now you decided that each one of those values should be rounded.
I am looking for the simplest way to refactor this without having to rewrite all of those proper...
I encoutered a somewhat (at least for me) strange behaviour in a library I'm building;
I have this method:
public class Lib
{
private string field = "field";
public string Field
{
get
{
return field;
}
}
public void Add(Lib lib)
{
string field = DoSomething(lib);
Console.WriteLine(field);
}
protected string DoSo...
Hi I am having issue of set property tag not working properly. I have a jsp which I am including in webcenter as portlet.
<jsp:useBean id="pathEditor" class="backing.bean.AppletBean" scope="page"/>
<jsp:getProperty name="pathEditor" property="username" />
${pageContext.request.remoteUser}
<jsp:setProperty name="pathEditor" property="us...
I need a good old-fashioned 2-dimensional array of integers in my program, but no matter how I try to declare it as an ivar, and then use @property/@synthesize, I get one compiler complaint or another.
I declare
int spotLocations[10] [10]
as an ivar.
That much works, but then the @property/@synthesize process never passes must...
I believe there is no human way to change any attribute or field inside an Attribute apart from doing it in the constructor. That is, short of redesigning and recompiling Visual Studio yourself. There is already a similar question posted here:
http://stackoverflow.com/questions/51269/change-attributes-parameter-at-runtime
but I believe t...
Hi ,
Is there a way to re-assign the value for the ant property task? Or is there anyother task available for the same?
Regards,
Priya.R
...
I'd like to test whether an object has a writeable @property in the iPhone SDK.
One possible way of doing this is to check the -valueForKey: method, but that seems rather inelegant!
Example:
@try {
id *value = [instance valueForKey:@"myProperty"];
}
@catch (NSException * e) {
// Key did not exist
}
Is there a better...
Hello,
If i have the following code example:
public class ClassBass
{
public int ID { get; set; }
public string Name { get; set; }
}
public class ClassA : ClassBass
{
public int JustNumber { get; set; }
public ClassA()
{
this.ID = 0;
this.Name = string.Empty;
this.JustNumber = string.Empty;...
I need to make a instance of some class to provide informations when it's property is being changed. Basically I am trying to implement a binding mechanism, which will watch the properties of the bound class and inform the system that the property has been changed.
The only solution I have found is to:
Add an event PropertyChanged us...
Put simply, is there a way to receive a general notification when any property in an Objective-C class is changed? I know I can use KVO to monitor particular property changes, but I have the need to call a particular method whenever any setProperty: message is sent to my class. I want to be able to receive a generic notification without ...
Hello,
I have a UINavigationController with two UITableViewControllers pushed onto its stack. Is there any way to reference a property on the first TableViewController that is under the second? I would like to do this in the second controller's viewWillAppear method.
Thank you for any help you can give....
...
Howdy,
I'm playing around with property in Python and I was wondering how this @propertyName.deleter decorator works. I'm probably missing something, I could not find clear answers by Google.
What I would like to achieve is when this deleter behavior is called, I can trigger other actions (e.g: using my 3d application SDK).
For now j...
What is the proper way to handle a module level array in a VBA class?
I use Property Let and Property Get for other variables, but I haven't figured out how to pass arrays to and from Properties.
Updated. This code works thanks to Mark Nold.
Option Explicit
Private mstrTestArray() As String
Public Property Get TestArray() As String(...
Does anyone know if there is some option in VS2010 or some third party tool that I can use to detect recursive properties such as:
private string name;
public string Name
{
get{ return this.Name; }
}
The above is obviously an error, but the compiler offers no warnings. I can appreciate that, in general, recursive methods are perf...
I can use DataContext.GetTable< Order >();
Is it possible to use DataContext.GetTable< MyProperty >();
public TEntity MyProperty
{
get { return .....; }
}
Thank You.
...
I have some doubt about the title, but I couldn't come up with anything better.
Say I have the following enum
public enum ClassProperties
{
Primary = 0,
Secondary = 1,
}
And a class that looks this
public class Test
{
Primary { get { return _primary; }}
Secondary { get { return _secondary; }}
// more irrelevant...
Is there such a thing?
I'd like to do something like this in PHP but I can't see how to do it from the PHP docs:
public class User : ValidationBase
{
[NotNullOrEmpty(Message = "Please enter a user name.")]
public string UserName { get; set; }
}
What I'm looking for is the PHP equivalent of an ASP.NET/C# property attribute, ...
I want to have a textbox append a specific string once the user tabs out of the control, i.e. LostFocus, however I prefer the textbox to validate as the user types, so UpdateSourceTrigger is set to PropertyChanged.
Is there a way to get this to work in WPF?
Looked at this question which is similar but wondering if there is a cleaner ...