composite

Not able to save composite foreign key

I am not able to save the many to one composite foreign key value. PricingSheetFeeLineItem has one-to-many relation with SaleObjectPricingSheet. saleObjectPricingSheet has composite primary key. When I called session.saveOrUpdate(aPricingSheetFeeLineItem), the value for saleObjectPricingSheet is not able to be caught by hibernate so the...

Disable user interaction in a GWT container?

I want to disable/enable user interaction (mouse click more specificly) on many widgets like hyperlink, button, etc which are contained in a composite (flextable) there are more than one click handlers, and I don't want to bother with removing and adding listeners according to mode (interaction enabled/disabled) Any ideas would be appr...

SWT nested composite layout problem

I am new to SWT but have plenty of experience w/ other GUI layout managers. I have run in two a weird problem when nesting a composite inside of another composite. http://www.swooby.com/swt/nestedcontrolproblem.png If I run the audiocontrol as a standalone bean it works fine. If I run it nested in another composite it starts to act fun...

GWT Spreadsheet Cell

I am trying to reproduce the behavior of a spreadsheet cell using GWT. I was able to make a Composite widget called "Cell" which is by default a "Label" widget. When a user clicks on this widget, it becomes a "TextBox" widget. On a blur event, the widget becomes a "Label" widget once again. My question concerns efficiency and rendering ...

WPF: Composite Application with Page Navigation

I am currently writing an application to which the composite methodology fits like a glove.... almost! I also need a way to navigate between views, including maintaining a journal for navigation backward and forward. What is the best way to combine these two methodologies, on one hand the single Window based CAG shell with its UserCont...

How do I save a composite field value in Grails GSP?

I have a composite domain object as follows: class Person { static embedded = ['forSale'] Boolean isSelling House forSale } class House { Integer numBedrooms } I have a select control for the numBedrooms as follows: <tr class="prop"> <td valign="top" class="name"> <label for="numBedrooms"><g:message code="perso...

How to clear the canvas for redrawing

Hi there, After experimenting with composite operations and drawing images on the canvas I'm nog trying to remove images and compositing. How do I do this? I need to clear the canvas for redrawing other images; this can go on for a while so I don't think drawing a new rectangle every time won't be the most efficient option. Thanks! ...

ScrolledForm does only show one bar and never both

i have created a View which contains 1 ScrolledForm only. All Children Composites of this ScrolledForm are instantiated with GridLayout and the depest children are created with a FormLayout. mForm = toolkit.createScrolledForm(this); mForm.setExpandHorizontal(true); mForm.setExpandVertical(true); mForm.set...

Newbie in JSF: composition vs composite

I am starting development on a new web application which uses JSF 2 as the view technology. I have no prior experience with JSF and am a bit confused about the concepts. I read some documentation on JSF and the main idea was that it a component based framework. Applications are built from components. But now there are two ways of crea...

Redrawing control behind composite with SWT.NO_BACKGROUND

Hello Experts Original goal: I have a TreeMenu that i use to display my Menu. In this tree, a user can select different items. I would like to disable the tree, so that a user cannot select a new item after choosing the first. The catch is, we cannot use setEnabled, because we are not allowed to use the greyed out look. The look/color...

wpf prism composite command

I have a composite WPF application. I am planning to implement tool bar functionality . There are few toolbar items ( basically print,save , hide , expand , undo) which will be common to all views in the main region. For this i have created default toolbar module which will add these items ( print,save , hide , expand , undo) to the to...

mysql composite indeces should i be using them

I got question on index strategies for mysql - mainly when to use a composite index I have a fairly common relational db scenario, heres my table set up: Maintable - table consisting of "products" including brandid, merchantid So I create a table to store the brands and merchants Brandtable - brandname, brandid Merchanttable - merc...

Composite Commands Not Working

I am working on a Composite MVVM application and trying to get Global Binding events happening - Except it is NOT!.. the buttons are disabled by default although the CanRun returns true!! !! I have followed the Composite Guide and the OnLoadMenu is not firing!!! I have been going around in circles (Event Aggregators, DelegateCommands,...

HTML5 Canvas compositing question (source-in)

I am trying to recreate a page flipping type animation in HTML5 using canvas. The animation is based on ideas from here: hxxp://oreilly.com/javascript/archive/flashhacks.html but thats not really important. The problem I am having is that using the 'source-in' composite operation is not giving me the results I expect and would like clari...

Composite Primary keys and Foreign key constraint error

Hi, I have an SQL table defined as below: CREATE TABLE [TestComposite] ( ID int, SiteUrl nvarchar(255), Name nvarchar(max) NOT NULL, ParentID int NULL, PRIMARY KEY (ID, SiteUrl) ); Items and folders are stored inside the same table, if an item is inside a folder, the ParentID column is the ID of the ...

How can I resolve image paths in views that are part of a module based on the Composite Application Guidance using Silverlight

I have a Silverlight application with several modules, which each resides in its own project. Unfortunately, all the paths used in images aren't resolved anymore (no pictures are shown in my Silverlight application). Anyone a clue how to set image paths using the Composite Application Guidance in Silverlight for views residing in module...

Composite + Chain of Responsibility example

Hello! Can anyone give a practical example of using the design patterns Composite and Chain of Responsibility together? Thanks ...

display a 'view' list within a composite layout in drupal

Hi, I've installed the composite layout module and I created a view with a list of 'testomonials'(just a simple list of title and excerpt). On my front page, I have been able to include a couple of other nodes within that page and a couple of blocks (e.g. within then same composite layout). However, I want to also include the list v...

select with conditions on array of composite types (postgresql)

For example I have type: CREATE TYPE record AS ( name text, description text, tags text[]) And table: CREATE TABLE items ( id serial, records record[] ) How can I select all items with records with tags 'test' (without using PL/pgSQL)? ...

JSF 2.0 custom composite controls & nesting

Greetings, I'm trying to implement my custom TAB control. I'd like it to be based on new composite components feature of JSF 2.0: <i:tabControl width="480" height="320" value="#{backingBean.someIterable}" var="tab" > <i:tabItem href="#{tab.href}" caption="#{tab.caption}"/> <i:tabControl/> The problem is I don't know how to impleme...