Update:
This question is a duplicate of http://stackoverflow.com/questions/375542/
The answers given here appear to be disjoint from those given at the other node, so this question was not (yet) deleted. If possible, please merge the answers here into the other node.
Question:
Is there any such thing as a programming language (other ...
Hi,
I am trying to fill object[] with List<string> but I cannot figure out how to use ConvertAll. MSDN did not help me.
At first I tried to create an instance of Converter but it looks like it expects delegate?
Converter<string, object> conv = new Converter<string, object>(??); //why delegate?
this.comboBox1.Items.AddRange(Form1.Anima...
Does anyone knows a java library that could easily encode java Maps into json objects and the other way around?
UPDATE
For reasons couldn't explain ( and I hate sometimes ) I can't use generics on my environment.
What' I'm trying to do is to have something like this:
Map a = new HashMap();
a.put( "name", "Oscar" );
Map b = new Ha...
Hi,
I want to have a facelet page with a formular and a dropdown menu. With the dropdown menu the user shoul select a POJO of the type Lieferant:
public class Lieferant extends AbstractPersistentWarenwirtschaftsObject {
private String firma;
public Lieferant(WarenwirtschaftDatabaseLayer database, String firma) {
this...
I need the flv converter from swf and mp4 files without any of the website logo or any watermarks.
Please suggest some websites
...
In XAML I want to bind the height of one element to be half the height of another element.
Is there a way to do this that doesn't involve writing a converter in the code-behind?
Example:-
What I've got...
<Button Name="RemoveButton" Content="Remove Stage" Width="100" Height="{Binding ElementName=AddButton, Path=Height, Converter={Stat...
Hi,
I have the follwing code inside a facelet page:
<h:inputNumber value="bean.property">
<f:convertNumber type="currency" />
</h:inputNumber
The converter is because there can be a kind of default value inside the input field, which comes from the bean property. Everything is rendered correctly. The value inside the input field...
I create DataGrid Columns with Binding (where i is a Int value):
dataGrid.Columns.Add(new DataGridTextColumn
{
Header = i.ToString(),
Binding = CreateBinding(i),
});
private Binding CreateBinding(int num)
{
Binding bind = new Binding(string.Format("[{0}]", num));
bind.Converter = new CellValueConverter();
retu...
I've got a list of several hundred book titles. Is there a way to batch convert them to Amazon.com ASIN codes? I realize I could do it manually one by one, but I don't have that kind of patience or time. I know there are some ISBN to ASIN converters but I don't have the ISBNs.
Thanks.
...
I'm creating a game desk. I wanted to specify field size (one field is a square) as a attached property and with this data set value of ViewPort which would draw 2x2 matrix (and tile mode would do the rest of game desk).
I'm quite at loss what is wrong because the binding doesn't work.
Testing line in XAML for the behaviour I would lik...
Hi,
I have a collection of hex strings that represent colours and I am binding a combobox's ItemsSource to that collection.
The combobox items are templated to have a filled rectangle with the relevant colour. I therefore need to use a converter to convert the hex value to a string. Easy enough.
However, Blend is telling me that this ...
Hello,
I'm currently dealing with customs messages Beans in Java.
After filling in the Beans with different values, I want to produce an EDIFACT CUSDEC message corresponding to each message.
For each attribute of a message Bean, I have the information to put the attribute in the right place in EDIFACT CUSEDC format.
Thus, I am looking...
Hi,
I need to give one client the ability to convert some videos to f4v h264 before loading it up to an AIR app.
I normally doing with the Adobe Media Encoder CS4 but that only ships with adobe products (you can't download it as a free standalone app - which, start rant is odd, you'd think they would push the format - Microsoft's compe...
I'm looking for a while to programmatically convert (or use a tool already created) MACESS .cra, .acr, and .err files to a readable format?
I'd prefer a .NET way of doing it however at this point I'll take any programmatic way.
PS> I tried adding tags "MACESS Sungard" but I don't have 250 rep yet to do so.
...
I'll start off and say I am not using the MVVM pattern for my WPF app. Please forgive me.
Right now I have a data template with two buttons, each binds to a different command on the CLR object this data template represents. Both use the same command parameter. Here's an example of the buttons.
<Button x:Name="Button1"
Command="...
Hello All...
I Have one situation where I need to convert integer value into hexadecimal way.
I have done with some logical, but I want the optimized solutions...
Thanks in advance...
EDIT : Sorry I forgot to post that I am not allowed to use any in-built functions.
...
Hi!
I'm new to JSF, so this question might be strange. I have an inputText component's value bound to managed bean's property of type Float. I need to set property to null when inputText field is empty, not to 0 value. It's not done by default, so I added converter with the following method implemented:
public Object getAsObject(FacesC...
I have two objects, Culture and Translation, neither of which are complicated. Culture is like a simple CultureInfo, but with an extra field. Cultures likely won't change often, and there won't be many to begin with. However, there will be many Translations, and each Translation has a CultureID property. Translations each have a Trans...
What is the simplest way to convert HEX value to ebcdic char type in Java
e.g. The example below will return at sign but I would like to get ebcidic equivalent i.e. space char..
String hex = "40";
char c = (char) Integer.parseInt(hex, 16);
...
Just wondering if it is possible to show a WPF on a disabled item ONLY (and not when the item is enabled).
I would like to give the user a tooltip explaining why an item is currently disabled.
I have an IValueConverter to invert the boolean IsEnabled property binding. But it doesn't seem to work in this situation. The tooltip is show b...