Naming of view components

I'm trying to implement an application using a fairly typical MVC architecture. Basically I have a number of classes which represent my data, a variety of interfaces (such as tree interfaces, recordset interfaces) which some or all of my data classes implement, and a variety of UI components which are able to view/edit objects which implement certain interfaces. I've run into a bit of a conceptual problem with exactly what the contract of my view components should be. At present I've given them names like TreeModelView and RecordModelView. However, I want to implement a number of different components which view objects of type ITreeModel in different ways. Maybe I should give them names like EditableTreeView, GridView etc to reflect the way in which they are viewed rather than what they view. Any general advice/pointers to information about this would be greatly appreciated!

If I wanted a Tree View to display a Table Model, I'd
write a TreeModel implementation which adapted a
TableModel in to some form of tree (for however that
made sense for the application...).Imagine you have a table like this:
---�---�---�---�---
A � 1 � 1 � 1 | 1
A � 1 � 1 � 1 | 2
A � 1 � 1 � 2 | 1
A � 1 � 2 � 1 | 1And so forth. It's a table, alright, but isn't it better presented as a tree?
A
+-1
� +-1
�   +-1
�     +-1
�     +-2
�   +-2
�     +-1
� +-2
    +-2
      +-1The view is responsible for showing a tree. The model can still be a table. Or the other way around. You need a transformation, but since the transformation is for "optical" purposes only, I think the view needs to do it, instead of creating a whole new and completely redundant tree data model. So the class should be a SomethingTreeView, and not a SomethingTableModelView. That wouldn't give you any info about what would appear on the screen - which is the important part.
Surely you need the view to be able to understand the model, but when it comes back to naming the view's class, I think it shouldn't have the name of the model, rather than the name of its appearance.

Similar Messages

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • How could I test Hierarchy Viewer Components with OATS?

    Hello,
    I need some help with OATS. I am new to the program and I am not sure is it possible to record actions on Hierarchy Viewer components.
    Any help will be appreciated.
    Thank you in advance.
    Edited by: 1008138 on 2013-5-27 2:36

    imjolly wrote:
    you can try downloading inssider3 (istumbler if MAC) and then run it. This will show the broadcasting networks round about you and their channels including your own and take out any guesswork. If you then enter your router and change your wireless channel to a free or less congested channel.
    inssider3.1.2.1
    Do you downlod on a WiFi run computer?
    I just downloaded on my Desktop attached to my router by ethernet and It did not recognise any WiFi network?

  • JavaFX as renderer for JSF view components

    I don;t know if I am asking the right question.
    Since javaFX has GUI components, Does sun provide JavaFX as a default renderer for JSF applications. Wouldn't that be cool say I define my view in some standard format and just configure a renderer in some xml and then with a magic, the UI is all based on JavaFX

    ejp wrote:
    So my question is primarily 'does this make sense?' Yes. I don't see why this wouldn't make sense.
    If so, secondly, does this imply I should/shouldn't use Facelets?For now on, it's recommend to start with it. It will be the default supported view technology as per JSF 2.0 and it offers much more advantages than the legacy JSP. Here's a nice document to start with: [https://facelets.dev.java.net/nonav/docs/dev/docbook.html].
    Thirdly, what else might I need in the stack?Maybe a 3rd party component library to take out the boring UI and ajaxical work from your hands. For example RichFaces.

  • Unable to view components in Object Browser & Properties window- Xcelsius

    Hi - I have prepared a dashboard which consits of many labels and just a few components. But as I proceed with taking more components on the dashboard ,I am unable to see the components  in the object browser and properties window (it is just visible placed on the canvas but not visible in obj browser and Property window)....can any1 suggest the reason and how to proceed ?

    HI,
    Check in the object browser, whether there is any group element. if all your components are grouped, then they will appear under that group. if you click on any component which is grouped the property window of the group will be displayed.
    if you want to see the propery of each individual component, in the object browser-- expand the node and double click the component to see its properties.
    hope this helps
    uma

  • Viewing components of BOMs that are components of a top level BOM

    Hi All,
    Can anyone help with the following issue; in EAM I have an Asset BOM, which has a list of components. One of the components is itself a BOM (a sub assembly) but I can work out how or even if it is possible to see the components of the sub assembly in any reports for work orders usiing the Asset BOM rather than just the name of the sub assembly component. This is in version 12.1.1.
    Many Thanks for any help or suggestions,
    Paul

    If you are on the BOM screen , you can simply go to tools > define subassembly to open the subassembly bom.
    If you want similar screen on the Work order scren, you will have to write a quick personalization that opens up the Subassembly bom.
    If you want it on a report, you will have to customize it.
    The other option is that on your Parent BOM, you can make supply type of the subassembly = Phantom. This will make the subassembly components show up on the Parent's work order as well as on all WIP reports. But it also means, you will not get a demand for the subassembly at all. Instead, WIP/ MRP will explode the demand to the components of the subassembly. Make sure that your mfg. process supports this change.
    Hope this answers your question
    Sandeep Gandhi
    Independent Techno-functional Consultant
    513-325-9026

  • Naming Convention (Fc) - ESS Business Logic Components

    Hi Gurus,
    Why does SAP name components with pre-fix 'Fc' as in <b>Fc</b><i>ComponentName</i> while naming Business Logic Components in ESS?
    What does 'Fc' stand for?
    Thanks,
    Anjana R.

    Hi Gurus, Any ideas?
    Anjana R.

  • Excel View web part - multiple named items

    Are you able to define more than one named item in an excel viewer web part? I am for instance displaying a power pivot chart with a name chart1 and i also have some slicers added to the sheet in excel. can i show both the chart and the slicers in the
    same excel viewer web part?
    yaddaimean

    Hi yaddaimean ,
    No, you cannot define more than one named item in an excel viewer web part.  In an Excel Web Access Web Part, you can display one or more worksheets (in Worksheet view) or a named item such as a chart
    or an Excel table (in Named Item view).
    Reference:
    http://office.microsoft.com/en-us/sharepoint-server-help/introduction-to-excel-web-access-web-part-HA010377880.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • SAP MDG webdynpro view errors.

    Hi All,
    In SAP MDG i have created view components, successfully executed and activated, but i am facing some errors. warning error and Syntax error.
    at that time i do't know where exact that error. please help me. in the below i have attached screen short document.
    Thanks & Regards,
    Sreeram

    Hi Sriram,
      Error 1- Created label "site_name_label" is not assigned any input_field. As per naming i think you are supposed to assign labelfor  property of  "site_name_label" to "site_name_input" .
    Same way you check for error2.
    Regards
    Santhosh

  • How do I use the option "table view" in NetWeaver 2004s Query Designer?

    Dear,
    We have used NetWeaver 2004s Query Designer, We found a strange problem. The option to select table view is not available. It is greyed out. How can you select table view (tabular) in 2004s Query Designer?
    I have read the help doc about tabular view of NetWeaver 2004s Query Designer, I check my query, it has only one structure . but the option is still greyed out. I rebuild the query with 3.x Query Designer in tabular view, and reopen it with 2004s Query Designer, So there is a tab named "tabular view" display, but the option to select table view is still not available, and when users view the query result in web , it is still not in tabular view display. So I am confused, is there a bug with NetWeaver 2004s Query Designer?
    Please help me. Thanks!

    Note 1002271. Seach this note to use key word "table view"

  • More than one view with iphone SDK.

    Hi
    I'm trying to make more than one view in Interface Builder and then switch between them in xcode. But I can not figure it out.
    I tryed reading guides, watching tutorials, but with no luck.
    Can anyone here give me a small tutorial on how do that?

    Your best bet is to look through the code (and xib files) distributed by Apple. I was in much the same position a couple of months ago, except my expertise was in JEE. It is really not that difficult to get going. Just a regular Cocoa development book can also help you (it helped me understand how to get going).
    Here is what you will start with
    ApplicationDelegate - Will be connected by default in your primary xib file. For simple applications that is all you need. If you need multiple views, you can still make the primary nib file you primary view and lay it out as you need. Add methods as appropriate to remove current view and display next view you want.
    Xxx.nib - Your primary xib file. Layout out as required. Create a UIViewController and connect to the File's Owner. That connects your controller to the view. Make connections to the view components in the xib file, event handlers etc. It is not difficult, but IMO IB is not very intuitive, though you will get the hang of it very quickly.

  • Problem with linking PDF documents using named destinations

    Linking from one PDF document to another PDF document using named destinations viewed in Reader works great but once the documents are viewed inside a browser environment the link will only open the go to document and will not go to the named destination.
    If I make the links using the page number - yes they will work perfectly in the browser. But my problem is that the documents may change in the future and the links may be on differnt pages, so I need to use named destinations to bring me to the page of the PDF they are on.
    Any suggestions? I need them to work in IE.
    Thanks

    You can link to a named destination with a URL. This might work better in
    your case... To do it use the following format:
    http://example.org/doc.pdf#nameddest=Chapter6

  • Hierarchy Viewer and Drag Drop

    Hi I am new for ADF Hiearchy Viewe components. I am trying drag from ADF table rows to drop ADf Hierarchy viewer node and introduce by http://docs.oracle.com/cd/E28280_01/web.1111/b31973/dv_hviewer.htm here.
    1. can get selected rows from drag source ADF rich table and I couldn't get Drop Row Key. In my source some hierarchy node work and some are not work. sourc here.
    <pre>
        public DnDAction toDropListener(DropEvent event)
            RichTable table = (RichTable) event.getDragComponent();
            Transferable t = event.getTransferable();
            DataFlavor<RowKeySet> df = DataFlavor.getDataFlavor(RowKeySet.class, "rowmove");
            RowKeySet rks = t.getData(df);
            Iterator iter = rks.iterator();
            List<Row> sourceRow = new ArrayList<Row>();
            while (iter.hasNext())
                List key = (List) iter.next();
                table.setRowKey(key);
                JUCtrlHierNodeBinding rowBinding = (JUCtrlHierNodeBinding) table.getRowData();
                sourceRow.add((Row) rowBinding.getRow());
            Transferable transferable = event.getTransferable();
            DataFlavor<Object> dataFlavor = DataFlavor.getDataFlavor(Object.class);
            Object transferableObj = transferable.getData(dataFlavor);
            if (transferableObj == null)
                return DnDAction.NONE;
            UIComponent dropComponent = event.getDropComponent();
            Object dropSite = event.getDropSite();
            if (dropSite instanceof Map)
                String clientRowKey = (String) ((Map) dropSite).get("clientRowKey");
                Object rowKey = getRowKey(dropComponent, clientRowKey);
                List<Key> keys = (List<Key>) rowKey;
                System.out.println("Row Key: "+rowKey+ " Size of Keys: "+keys.size());
                if (rowKey != null)
                    DCIteratorBinding itrEmp;
                    if(keys.size()==1)
                        itrEmp = ADFUtils.findIterator("ParentEmpTreeVO1Iterator");
                    }else
                        itrEmp = ADFUtils.findIterator("ChildEmpTreeVO1Iterator");
                    ViewObject hist=itrEmp.getViewObject();
                    Key key = keys.get(keys.size() - 1);
                    Row targetRow = hist.getRow(key);
                    System.out.println("Key: "+key);
                    System.out.println("Employee Id: " + targetRow.getAttribute("EmpId"));
                    if (sourceRow != null && !sourceRow.isEmpty())
                        for (Row row : sourceRow)
                            Row newRow=itrEmp.getRowSetIterator().createRow();//hist.createRow();
                            newRow.setAttribute("EmpId", row.getAttribute("EmployeeId"));
                            newRow.setAttribute("FirstName", row.getAttribute("FirstName"));
                            newRow.setAttribute("ManagerId", targetRow.getAttribute("EmpId"));
                            itrEmp.getRowSetIterator().insertRow(newRow);//hist.insertRow(newRow);
                            System.out.println("Created Row.");
                else
            RequestContext.getCurrentInstance().addPartialTarget(event.getDropComponent());
            return event.getProposedAction();
        private Object getRowKey(UIComponent component, String clientRowKey)
            if (component instanceof UIHierarchyViewer)
                UIHierarchyViewer hv = (UIHierarchyViewer) component;
                ClientRowKeyManager crkm = hv.getClientRowKeyManager();
                return crkm.getRowKey(FacesContext.getCurrentInstance(), component, clientRowKey);
            return null;
    </pre>
    and in hierarchy viewer added row displayed on level one for session then reload page it is ok why shot in level 1
    Where I missed? how to Selected rows assign to hierarchy viewer object? thanks juddi

    thanks for your reply shay. i am just trying to understand how a dvt HV could render in iPhone mobile browser (eg. iOS simulator) as its a part of ADF Faces components. as a part of mobile development we have only trinidad components available (not HV) and it renders in iOS simulator.
    I have tested a HV app (JDev 11.1.1.6) in Safari web browser and it works fine there. Please share your thoughts on this.
    ~Abhijit

  • Refresh ADF Business Components

    I create view(ADF business components) with my sql statiment
    select e.*,d.* from scott.emp e, scott.dept d where e.deptno=d.deptno
    on my first page JSP I drop ReadOnly table
    on my second page JSP i drop InputForm for edit.
    and so
    I run my project, on first page have the button "Edit" which is bound my JSF Navigation Case with second page.
    I try edit emp.DeptNo and commit change. When I back on first page i see that emp.DEPTNO changed but dept.DNAME not changed.
    How I can refresh my first page that see all changed?

    Hi Frank!
    I use JDeveloper 10.1.3 EA1.
    I Create Application through Application Template (Web application [Default] -
    This application template is configured for building a data-bound web application. It consists of one project for the view components (JSF, JSP) and controller (JSF), and another project for the data model (ADF Business Components))
    I create page through faces-config.xml.
    I create JSPX page. Then I Drag and Drop my VO from Data control palette.
    My CommandButton from ADF Faces core from Component palette.

  • Plant specific component views in BOM

    Hi,
    I have 2 Plants say, A and B. I have a Product say P which has several components C1, C2, C3 ...
    I wish to create a single centralized BOM with all the components. However, Plant A should be able to view components C1 and C2 only whereas Plant B should be able to view components C2 and C3 only.
    When I make changes in the centralized BOM, the change should be reflected in the respective Plant views accordingly. I do not want to create BOMs individually at each Plants for the Product.
    I tried using Group BOM and Plant Assignment, but not able to restrict component visibility as required above. I tried using Effectivity Filter using Effective Parameter as Plant. But doesn't seem to work ...
    Is there any simpler way ...?
    Thanks.
    Raj

    hi
    is plant A using only two components C1 &c2
    is plant B using only c2& c3
    plz let clear your requirement ,why its needed
    create alternative bom using authorisation key
    probably solve   your problem
                                      sasikanth

Maybe you are looking for

  • Sent items from Blackberry not appearing in Outlook sent items

    I used to use hotmail and all sent items appeared in outlook sent items, I am now using outlook and they are not.  Please explain in very very simple language using no IT terminology(!!!) how I make my blackberry sent items show up in outlook! Thanks

  • Differentiating layers with same name using script

    Hi, In Illustrator, different layers can have the same name. Is there any unique identifier to differentiate between the layers having same name? Photoshop assigns an id to each layer. But in Illustrator I could not find any such property. I need to

  • Deleting what I believe are cache files.

    After editing images in PSE8 and I try to go back into iPhoto 09 I get the spinning wheel for about 20 secs before it lets me into Events. I've noticed that in iPhoto Library / show packages / there are two folders, named Modified and Originals. Thes

  • This form template is currently browser-enabled but it cannot be browser enabled on the site

    Hi, we have an issue with infopath form when trying to publish the form with browser enabled feature it is showing error "this form template is currently browser-enabled but it cannot be browser enabled on the site" and also "Enable thisf orm to be f

  • After Parameter Form trigger failed

    REP-0771. I have the trigger returning to false on a condition, however, this is when I get the error. All I want to do is return to the parameter form, and it's giving me an error. Is there any way to suppress this error?