binding

Java package scanner - find all classes with a given interface

In C# you can easily read all classes from a given assembly. I'm looking for equivalent feature in Java. I need this to automatically bind EJB beans to my Guice Module. ...

How to auto bind plugin initializations for content loaded through ajax

I'm using expandable plugin by Brandon Aaron to auto grow my textareas in the form and it is working ok. the problem is that I'm loading a lot of pages through ajax so I need to rebind the plugin method to the textareas loaded through ajax. is there a way to do this kind of method calls like $("textarea").expandable(); through li...

WPF ViewModel Commands CanExecute issue

Hi all, I'm having some difficulty with Context Menu commands on my View Model. I'm implementing the ICommand interface for each command within the View Model, then creating a ContextMenu within the resources of the View (MainWindow), and using a CommandReference from the MVVMToolkit to access the current DataContext (ViewModel) Command...

Can I change the binding source to another source in XAML?

I want to change the source in XAML to another object source. For example: I have a Listview, part of a window bound to a "Model A", it has many properties, but one is called "Total". This property is not shown on the View Each ListviewItem has its own source (ItemsSource), BUT, one of the fields should show "Total" from "Model A" Ca...

Binding JBoss to IP Address

Hi, I am running a JBoss instance on a linux server I am using the ./run.sh -b This is not working what could be the reason. I am unable to share the error message details as of now will post it when I can, till then any alternatives or solutions ? ...

How do I use Flex's Binding in a Flash AS3 project

I have a flash app using the flex framework - I would like to bind a display object textField with data from my dataModel. How do I do this without the flex binding brackets "{ }" Thanks in advance everyone. ...

WCF interoperability binding for duplex communication?

I have a wcf sevice and silverlight client. My contract has callbacks and therefore I implement PollingDuplexHttpBinding. Now, I want connect to wcf service from java or c++ code. What binding should I use for this? ...

Bind listbox in WPF with grouping

Hi, I've got a collection of ViewModels and want to bind a ListBox to them. Doing some investigation I found this. So my ViewModel look like this (Pseudo Code) interface IItemViewModel { string DisplayName { get; } } class AViewModel : IItemViewModel { string DisplayName { return "foo"; } } class BViewModel : IItemViewModel { ...

getting a gridview and dropdownlist to remember their states after navigate away and back button scriptmanager

hi i have a page filling a gridview which is all working fine. the grid is basically the result of a search .. the filters for which are a number of dropdowns and a couple of textboxes the data from the grid and dropdowns are saved in the session and the whole page lives inside an updatepanel when i navigate away from the page (as i...

Can I set the base path outside of my application directory when binding an image source path to a relative path in WPF?

So I'm trying to display an image that is ouside the path of my application. I only have a relative image path such as "images/background.png" but my images are somewhere else, I might want to choose that base location at runtime so that the binding maps to the proper folder. Such as "e:\data\images\background.png" or "e:\data\theme\im...

WPF - How to bind a DataGridTemplateColumn

Hi, I am trying to get the name of the property associated with a particular DataGridColumn, so that I can then do some stuff based on that. This function is called when the user clicks context menu item on the column's header... This is fine for the out-of-the-box ready-rolled column types like DataGridTextColumn, since they are boun...

Create Event Handler for TreeViewItem in WPF

Im adding items to TreeView control via ItemsSource property and ItemTemplate property to set the template for TreeViewItem. How can i add an event handler to handle selection change event on TreeViewItems? For now my ItemTemplate looks like this: <Window.Resources><DataTemplate x:Key="PeerDetailTemplate"> <TextBlock Text="{Bind...

How to get proper value of .contentHeight after scaling? content of s:Group

<?xml version="1.0" encoding="utf-8"?> <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="creationCompleteHandler(event)" xmlns:mx="library://ns.adobe.com/flex/mx" mouseWheel="mouseWheelHandler(event)" backgroundAlpha="0" width="100%" ...

WPF CustomControl and Image binding

Hi all, I am really getting mad since 2 days with a stupid problem. I already have asked the question here but seem like my question in lost where nobody will see it again. So here is my simple problem : I have a project containing a CustomControl (a library project), this custom control code is inherited from the Window control. So it...

WPF, getting two way binding to work on custom control

Two way binding does not work on my custom control with the following internals: public partial class ColorInputControl { public ColorInputControl() { InitializeComponent(); colorPicker.AddHandler(ColorPicker.SelectedColorChangedEvent, new RoutedPropertyChangedEventHandler<Co...

What does binding mean exactly?

I always see people mention that "Python binding" and "C Sharp binding" etc. when I am actually using their C++ libraries. What does binding mean? If the library is written in C, and does Python binding means that they use SWIG kind of tool to mock a Python interface? Newbie in this field, and any suggestion will be welcomed. ...

WPF MVVM: TextBox and default Button binding does update too late

I've got a simple WPF dialog with these two controls: <TextBox Text="{Binding MyText}"/> <Button Command="{Binding MyCommand}" IsDefault="True"/> Now, when I enter some text in the TextBox and click the button using the mouse, everything works like expected: the TextBox will set MyText and MyCommand is called. But when I enter some t...

Spring @InitBinder not invoked when showing form => CustomEditors not defined

hi, I have following (simplified to the bone) Controller: @Controller public class TestController { @RequestMapping(value = "/test.htm", method = RequestMethod.GET) public String showForm(final ModelMap map) { final TestFilter filter = new TestFilter(); filter.setStartDate(new Date(System.currentTimeMillis())); map.addA...

In WPF, how do I update the object that my custom property is bound to?

I have a custom property that works perfectly, except when it's bound to an object. The reason is that once the following code is executed: base.SetValue(ValueProperty, value); ... then my control is no longer bound. I know this because calling: base.GetBindingExpression(ValueProperty); ... returns the binding object perfectly - U...

How to get relative source of item in ItemTemplate

I have a ListBox with specified ItemTemplate. And the ItemTemplate contain itself ListView and I want to display in that ListView a collection, which is actually a property of the item of the ListBox. Could you show me how to do Binding. I'm thinking about RelativeSource thing, but I don't know what correct syntax would look like... ...