1. A method for generating a user interface, the user interface being configured for use in a client-server environment, the method comprising: providing an editor for designing a visual representation of a user interface, the editor providing a workspace and a task panel to be displayed on a display device on a client system, the workspace being provided to design the visual representation thereon, the task panel providing a plurality of elements for use in designing the visual representation, one or more of the elements being associated with a server system remotely located from the client system; selecting a first actor from the task panel, the first actor being a data source object that is one of the elements and includes application logic needed to access application layer provided in the server system; inserting the first actor into the workspace; inserting a second actor selected from the task panel into the workspace; diagrammatically defining a relationship between the first actor and the second actor; and generating executable code from the first and second actors and the relationship thereof.