|
Hey,
After the user fills my backing bean with info through the forms, I want to process the instance in Java code (such as JAXB marshalling).
So at the moment i'm doing this like so:
<% OtherBean.method(myBackingBean); %>
which is - if i'm right...
Started by wheelie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And configure.
You could have one backing bean as an instance variable of the other bean.
|
|
When defining properties I like to do just before property declaration, something like this
private IList<SomeType> _myList; public IEnumerable<SomeType> MyList { get { return _myList;} }
But if I place ///<summary> tag on the property...
Started by epitka on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
MyList { get { return _myList;} } private IList<SomeType> _myList;
If the backing field become less of a concern to me; I have taken to putting any explicit backing fields that I need.
|
|
Is there a rake task for backing up the data in your database?
I already have my schema backed up, but I want to make a backup of the data. It's a small MySQL database.
Started by Maudite on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
For backing up my MySQL db, but I did write a script in Ruby to do just that for my WordPress DB.
|
Ask your Facebook Friends
|
I hope that in this post, I can get people's opinions on best practices for the interface between JSF pages and backing beans.
One thing that I never can settle on is the structure of my backing beans. Furthermore, I have never found a good article on...
Started by Zack on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are practicing domain driven design, you will be tempted to include the business logic in to backing things, you might be feeling ....
It depends where are you coming from.
This is fine to have a business logic in your backing bean.
|
|
C# 3.0 offers us getters and setters with compiler generated backing fields - this is really great, but there are plenty of times that you still need to use a backing field.
In a perfect world (opinion), you would be able to do something like
class MyClass...
Started by sylvanaar on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I tend to keep the backing fields together at the top, but then I do that with method variables too { _myOtherBackingField = value; } } }
If the lack of proximity bothers you, you can put the backing;} } private int _integer1 = 0;
Why?
because....
|
|
My project contains a large number of classes with properties whose backing field is marked readonly as they are only set at construction. As a matter of style, I like using auto-properties as it eliminates a lot of boilerplate code and encourages use...
Started by JadeMason on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In particular they would have to provide a way to set the backing field access to the backing....
But in the setter itself would still require a bit of work from C# .
The setter and go straight to the backing field in the constructor.
|
|
I'm using reflection to access and store properties and fields. However, to avoid having redundant data, I want to get rid of auto-implemented properties' backing fields, which are also enumerated as normal fields. Looks like these backing fields are ...
Started by Trap on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Classes the compiler annotates those automatic property backing fields with the CompilerGenerated.
|
|
Is there any way to access the backing field for a property in order to do validation, change tracking etc.?
Is something like the following possible? If not is there any plans to have it in .NET 4 / C# 4?
public string Name { get; set { if (value != ...
Started by Jonathan Parker on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want to access the backing field, then don't use a property as shown in the following example....
No there isn't.
If you're gonna do so, why you are using auto properties?!
A simple property has done it way back, a normal property will do.
|
|
I find it tedious to have to backup databases every week. And I also think weekly backups should be turned into daily backups. If I had to do that, I don't want to do it manually. What's the best way to automate the backing-up of PostgreSQL databases ...
Started by Randell on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
The split command allows you to split the output into pieces that are acceptable in size to the... .
Pg_dump dbname | gzip > filename.gz
Reload with
createdb dbname gunzip -c filename.gz | psql dbname
or
cat filename.gz | gunzip | psql dbname
Use split .
|
|
Is there a way to tell R# to apply different naming strategy for property backing fields (_camelCase) vs class instance fields (camelCase)?
Reason: I want my dependencies to be named just a any other variable. Especially if the type of the field is the...
Started by epitka on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The naming convention for a property backing field should....
Would you then feel it necessary then want to rename the field? It would no longer be a backing field.
Instance field may later be used as the backing field for a property.
|