composite

Calling a Composite's GWT method from another Composite

I'm new to GWT and trying to make a simple app (like a small version of fmylife). Up to now i made a composite that loads the facts and another composite that has a form to submit new facts (this one has a load method that clear the list and populate again). I have a button that when you press it, it shows a Window with a form. That fo...

GWT: IE8 problem with composite over DockLayoutPanel, the unit EM, and the Singleton design pattern

Hi everyone, I have a "Welcome Screen" which is made by hand from the entry point. On the other side, I have Widget named Main which uses the Singleton pattern: this Widget encapsulates the application funcionality and there should be only one instance in the application. This Widget is a composite over a DockLayoutPanel, which has nor...

How to override S#arp architecture automapping with HBM files?

I'm facing problems with composite keys in S#arp architecture. Anyone have an example of how to do that or how to use mapping files with automapping? ...

Microsoft Smart Client Composite UI

I have been trying to run the project given in this MSDN Magazine but am unable to do it. There is reference to Microsoft.IntegratedDesktop.Controls.StackBar namespace in one of the project but I'm not able to find the DLL that contains this namespace. Please help. ...

NHibernate - Composite entity, joining table mapped by another entity.

I have the following tables: A -- Id : int SomeString : varchar(20) B -- Id : int BString: nvarchar(10) AId : int // FK to A I have an entity A which is already mapped to the table A. For the entity B, I'm trying to do a composite so that I have all the data from B, as well as the fields from A. The fields from A shouldn't be cha...

Example for using WCF RIA Services with Prism?

Is there a current and good example how to use WCF RIA Services together with Prism? There's a lot of information about each topic. But at the moment I can't see how to put everything together into a "real world" LOB application. ...

Printing the Largest Prime Factor of a Composite Number in C

I was solving a puzzle, where im required to find the largest Prime Factor of a composite number entered by the user. I thought of something and have tried it out, but it doesn't manage to detect the largest prime factor amongst the factors of the composite number. I'm appending my code below, I'd be grateful if anyone could help me out...

HIbernate Query returning incorrect records when used with Composite Keys

class Mstatkey // This defines the coomposite key over the columns deviceid, groupaddr, srcaddr @Embeddable public final class MstatKey implements Serializable { private Integer associatedNetDeviceId; private Long groupAddr; private Long sourceAddr; .... // Here we use the composite key class Mstat @NamedQuery( ...

JSF define custom namespace for component declaration

Hello, when you use a component from extarnal libraries (or custom component) in JSF page you add the xmlns declaration, for example: xmlns:util="http://java.sun.com/jsf/composite/component/util I would like to know what I have to do to use a private address in the Namaspace like this below: xmlns:p="http://primefaces.prime.com.tr/ui...

Java: Composite

Hi, I'm implementing a diagram that shows the level of a container. Depending on the fill level, the colour of the line should change (for instance, close to the maximum it should show red). Rather than calculating different segments of the line and setting their colours manually, I'd like to define a band in which the colour automatica...

C# Composite Server Control Datapager not working

I am building a composite server control that includes a listview & a datapager. When I view the page, the listview renders correctly but the datapager is empty. When I step through the code, it shows total rows of the datapager to be 0 although the item count in the listview I have created (and attached to the datapager) is 12. Anyho...

Composite ids between multiple tables in Hibernate

Hi, I'm pretty new with Hibernate, and I'm facing some trouble working with composite ids and foreing keys, I just want to make this work: ======= ======= Table A Table B ======= ======= atr1 PK atr1 FK(Table A, atr1) PK atr2 PK atr2 FK(Table A, atr2) PK atr3 atr3 FK(Table C, atrN) PK atr4 And the re...

Is there a design pattern that would be useful in creating and populating a complex hierarchy of objects generated from an xml schema?

I have a composite object that was generated from an xml schema that I need to populate with data from a database. The generated code doesn't enforce the schema's rules regarding required elements, max occurances, etc. I'd like to create a class (or collection of classes) to help fill in the composite object and ensure when its serializ...

Is it possible to have multiple composite (aka "many-to-many", ManyToMany) joins that don't make the result set huge.

Situation: Table book is associated with one or more authors via the _author_book table. It is also associated with one or more genres via the _book_genre table. When selecting all the books, and all their genres, and all their authors, the number of rows returned is (assume each book has at least one genre and author): PROBLEM: book...

How individual modules/views behave in Prism (composite application pattern for WPF)

This may come off as a totally n00b question as I know very little about PRISM at all yet, but let's imagine I have a hypothetical situation of a composite application consisting of 3 controls: Control A (a chart), Control B (a table) and Control C (a calculator). Are all of these controls running on the same UI thread? For example if ...

Postgresql function returns composite - how do I access composite values as separate columns?

I have a Postgresql function which returns a composite type defined as (location TEXT, id INT). When I run "SELECT myfunc()", My output is a single column of type text, formatted as: ("locationdata", myid) This is pretty awful. Is there a way to select my composite so that I get 2 columns back - a TEXT column, and an INT column? ...

SWT Composite maximum size

I have a ScrolledComposite, the contents of which are being truncated. I have Googled and am aware that it is a known issue on Windows. The only suggested workaround I can find is to use the canvas.scroll functionality: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet48.java?view=mar...

Composite Index vs. INCLUDE Covering Index in SQL Server

Hi Folks I understand that Composite Indexes are always used Left to Right (e.g. if an Index was on City, State, WHERE City = "Blah" or WHERE City = "Blah" AND State = "AA" would work fine but WHERE State = "AA" would not). Does this same principle apply to INCLUDE indexes? Thanks in advance! Clay ...

Blitting in the right order - a visitor problem

I'm designing a simple GUI. I have Widgets, which have children and one parent. Each Widget is a Composite object, with a vector of WidgetComposite objects. One of those WidgetComposites is a PaintingBehaviour, but the Widget doesn't know it as such. To display my window, I use a Visitor, called the ScreenVisitor. When the Visitor is c...

Composite pattern in Swing

This is basically a architectural question. I want to implement composite pattern in handling Swing components; that is, I want to combine several components with their listeners and logic behind a single component for easier handling. Consider for example a simple directory browser; say, a JTree in JScrollPane with some logic which ha...