JSF Design support for custom controls

I am creating some custom JSF components, for use in my projects. They work fine, but I was not able to make them display correctly in design time (I am using Websphere).They appear like small rectangles, even when they are grids. What is the standard way to provide design time support to my controls? Or al least a way to show them properly in Websphere designer? There must be some way to make it work, because standard components and IBM components are displayed correctly.
Some hint?

At the moment, the best you can do is fill out all the metadata in faces-config.xml for your component and renderer. Beyond that, each tool developer is currently defining proprietary XML metadata and/or programmatic extensions to provide better tool support. This is, of course, an awful state of affairs, and there are the beginning of efforts today to work towards common metadata and extensions for component developers.
-- Adam Winer (EG member)

Similar Messages

  • Data Binding for Custom Controls?

    Hello,
    I'm a little bit confused of how to use databinding for custom controls.
    I know i can bind a property, as seen here http://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f0f3cd6f4d1014b6dd926db0e91070/content.htm, but how can I map whole arrays?
    My problem is the following:
    I want to create a custom table control in SAPUI5 (as the default one doesn't provide the neccessary options and properties I need), but I can't seem to find an example how to bind "rows".
    There has to be a way to do this properly. All I can think of now, and implemented, is, passing the name of the variable in the model...
    var x = new my.controls.complex.table({data: "/status"});
    var row1 = new my.controls.complex.columnHeaderRow();
    row1.addColumn(new my.controls.complex.column({text: "", rowspan: "2", colspan: "1", content: "FIRST_COL"}));
    x.addColumnsRow(row1);
    x.placeAt("content");
    ...my JSON/model looks like:
    { "status": [ {"FIRST_COL": "a" , ...}, {"FIRST_COL": "b", ... }, ... ], ... }
    (which should translate into /status/0/FIRST_COL, /status/1/FIRST_COL, ... AFAIK)
    ... and then I use this variable name by getting the application-wide model and use the variable passed as key for the model... (please note, this code is just a snippet)
           var sapCore = sap.ui.getCore();
                if (sapCore !== undefined) {
                 var model = sapCore.getModel().getObject();
                 if (model === undefined || model == [] || model == null){ } else {
                  $.each(model, function(idx, item){
                   $.each(oControl.getColumnsRows(), function(idx, item2) {
                    $.each(item2.getColumns(), function(idx, item3){
                     var content = item3.getContent();
                     if (content !== undefined && content != ""){
                      outpLine = outpLine + "<td>" + model[idx][content] + "</td>";
    ...which still leaves me with the problem of to get an event to react to re-render on changes within the data model, as well as when there would be just an control-specific model, or just a sub-node within a model etc.
    So my question is:
    Is there a way/best practice to define data binding in a custom control and have a way to react on it, and how to react on data changes within a custom control?
    Thanks & KR
    Chris

    I create a entirely new control, from sap.ui.core.Control.
    sap.ui.core.Control.extend("my.controls.complex.table",{... });
    I did define a aggregation...
            aggregations : { columnsRows: {type : "my.controls.complex.columnRow", multiple : true, visibility: "public"}     },
    ...yet I'm still unclear how I work with this aggregation and databinding. I know we can use the bindAggreation functionallity, but since the aggregation is a object (my.control.complex.columnRow) I don't know how my JSON model should be able to bind to that aggregation (as well as how would one be able to cascade a aggregation like this down futher? For example if there is an aggregation in the object of my aggregation?), plus it still doesn't solve my problem of how I can react (for example redraw) on model changes.
    Thanks in advance,
    Chris

  • Add support for custom xmp panels

    Please add support for custom xmp panels.
    Thanks

    I would strongly support that too!!!
    Here is why: We have been working at an XMP implementation of the Darwin Core to support standardized metadata on biodiversity information. Have a look here. I would love to have an Panel in Lightroom to support the metadata that I am embedding with IDImager:
    http://wiki.idimager.com/index.php?title=DarwinCoreXMP#.27.27.27Darwin_Core_XMP.27.27.27
    Cheers,
    Frank

  • Add support for colorist control surfaces

    A Lightroom feature I would like to see is support for colorist control surfaces such as those made by Tangent Devices, JL Cooper, Euphonix, etc. Working with still images in Lightroom is rather like color grading motion scenes (daVinci, Apple Color, etc.). A colorist interface with simultaneous image adjustments would really bring a whole new level of interactivity and efficiency to a photographer's photos.

    Hi all,
    I've been around midi music and controlers for a while, and I believe I posted a question for LR+midi a (possibly VERY) long time ago to one of the forums (I can't even remeber the answer).
    IMHO, if adobe were ever to do something like that, THE reference is http://www.novationmusic.com/products/midi_controller/nocturn
    This is a contoller+software, where the contolers "sees" in what window (read LR module) you are working, "talks" to LR to get information on which sliders are available and then auto-maps the available hardware sliders and buttons to the onscreen ones.
    The advantage, you don't develop a hardware product which is dedicated to one software (even version) and it is very customisable.
    But maybe let's first focus on getting LR3 our in good shape and get this on Adobe's list for 3.X somewhere.
    Kindest regards,
    Bart

  • Design approach for custom Fiori application

    Dear Experts,
    Good day to all...!
    I am having a query on finalizing design approach for one of my custom Fiori Application development  using SAP UI5.
    Current Application design and  Features:
    As now we are having application, which is been used in laptops. The application structure is like (SAP R3 --> SUP -->UI (using .net) [back-end à Middlewareà UI).
    The UI is hosted on IIS server and the application type is desktop, so the users can use the application in offline as well.
    Once its connected to internet, they push all the data back to SAP via SUP.
    Proposal :
    We are planning to migrate the same application into Fiori with same offline features and extending to mobiles and devices.
    I have few queries here.
    What will be the best approach to deploy the application either SUP(Latest version of SMP) or SAP R3.
    If SAP R3 to deploy App:
    If we choose to deploy the application in R3, How to support the offline usage mobile and devices.
    Will the HTML5 local storage or indexed DB’s are sufficient to support the offline usage.
    In this case, Shall we drop the SUP/SMP, Since the application directly accessed from SAP R3 ..?
    SUP/SMP to deploy the app:
    In this case, I need to create (wrap the ui5 files into hybrid application) a hybrid application to support the mobile and devises as native application..? Correct me If I am wrong..:)
    Hope I can use the SUP/SMP local storage options to support my offline usage..? Correct me If I am wrong..:)
    What will be the best option to support desktop offline  usage.
    We are yet to take a decision on this.. Please provide your valuable inputs , which will help us to take some decisions.
    Thanks & Regards
    Rabin D

    Hi Anusha,
    considering the reusability aspect the components approach is the much better one (see also the best practices dev guide chapter regarding components SAPUI5 SDK - Demo Kit).
    It allows you to reuse that component in different applications or other UI components.
    I also think that the Application.js approch will not work with Fiori, cause the Fiori Launchpad loads the Components.js of the Fiori app in an Component Container.
    Best Regards, Florian

  • Design advice for custom painting

    Hi,
    Can someone give me some high-level design advice on designing a JPanel subclass for custom painting? My panel class is becoming very complex, with lots of drawing and scaling methods, so I'm wondering if I could abstract away some of these graphical elements by creating new classes to make the design more object-oriented. However, I'm finding that there are also disadvantages in representing some of my graphic components as classes. Specifically,
    1. It will lead to a much higher level of class coupling. My panel will depend on all these new classes to work correctly. In fact the situation is even worse because my panel is an inner class and, to do some of the scaling, needs to use methods from an object stored in the parent class. I would therefore have to also pass this object reference as an argument to many of these new classes.
    2. It will lead to a lot of awkward passing of data between classes. For example, I need to use g2.drawImage(img, x, y, w, h, this), so I will have to pass not only the graphics context but also the panel reference itself.
    Is it common for panel subclasses that do custom painting to be complex?
    thanks,
    Eric

    I wrote the map view for a commercial GIS system. Drawing and scaling on a JPanel is challenging, but it need not be complex.
    1. To eliminate class coupling, you need to create a couple of interfaces: Renderable (what you want drawn) and Renderer (the thing doing the low-level drawing). Renderer will have before and after setup and reset methods (to do things like scaling and rotation), and methods that the renderables can use to draw graphics. The Renderable interface can be as simple as a single method: draw(Renderer).
    Every type of graphic that you draw on the screen would be a different class that implements Renderable, and which knows how to draw itself using whatever lower-level drawing commands you put in the Renderer. If you construct each Renderable in terms of java.awt.Shape, then Renderable.draw() could call a method Renderer.draw(java.awt.Shape, java.awt.Color).
    2. The Panel becomes fairly simple. It has a Renderer and a collection of Renderable objects. Its paint() method calls the Renderer setup method, calls Renderable.draw(Renderer) on each object, and calls the Renderer reset method. Each Renderable in turn calls Renderable.draw(java.awt.Shape, java.awt.Color) one or more times.
    Renderer should get a Graphics2D from the Panel when the setup method is called. That's when the Renderer does all of the scaling, positioning, and rotation on the Graphics2D. The Renderable implementations shouldn't even need to know about it.
    I don't think custom painting code is necessarily complex, merely challenging to write. If you're only drawing a few lines and circles, you probably don't have to be too concerned about design elegance and code maintainability. The map view I designed for our GIS system, on the other hand, has to handle all kinds of map geometry, icons, text, and aerial photos.

  • Designer support for Oracle 9i database features

    How does Designer support the creation of Materialized Views, Bitmap Join indexes and Index Organized tables ? Which version of Designer does this ?
    Dwaraka

    I do not fully understand your question, but I'll give a start answer.
    Bitmapped indexes can be defined by setting the index type to bitmap. SImply create an index and set the indextype to bitmap.
    Index Organized Tables can be created by creating a relational table and set the index-organized option under storage in the property palette to Yes. Designer has a special folder for the materialized view.
    IOT's and bitmapped indexes where already supported in Designer 6.0. Materialized views are supported in Designer 6i. I know for sure in designer 6i release 4.2 (designer 9i).
    I hope this answers your questions.
    Edwin van Hattem

  • Frustrating lack of support for Mission Control / Spaces on Mac OS

    I'm posting this on the InDesign board, but this question applies equally to all apps in the Creative Suite.
    Is there any way to make InDesign/Creative Suite work properly with Spaces (a feature that has been around for years now)? It is incredibly frustrating to not be able to use this excellent organisational aid with any of the Adobe apps. There seems to be a whole mishmash of problems with it, from pallettes disappearing and moving to a different space to the document you are working on, to entire apps not being visible in Mission Control. Not to mention problems when trying to hide/unhide apps.
    When I'm working with any other apps on my system, I can take advantage of Mission Control, but have forego these advantages when using the Creative Suite. Isn't it really about time that Adobe put some effort into supporting these OS-level features. Whether you favour Mac OS or Windows, you should be able to take advantages of the system you prefer to work on.
    Is there any word on whether CS6 will support these features? (I'm not exactly holding my breath).
    Thanks.

    When I'm working with any other apps on my system, I can take advantage of Mission Control, but have forego these advantages when using the Creative Suite. Isn't it really about time that Adobe put some effort into supporting these OS-level features. Whether you favour Mac OS or Windows, you should be able to take advantages of the system you prefer to work on.
    Is there any word on whether CS6 will support these features? (I'm not exactly holding my breath).
    There is no word on anything about InDesign CS6 yet. (Those who know can't say, and I'm not aware of any substantive leaked information.)
    I think that Spaces/Mission Control support is probably predicated on the Carbon to Cocoa conversion. So until InDesign is a Cocoa app, this is unlikely to improve. Personally I manage to avoid using Spaces to any significant degree, so I don't really notice these things. Have you tried Photoshop, which is a Cocoa app? Does it behave better?
    I don't know to what extent these issues are specific to the app, or all tied up in libraries that are common to all the Adobe apps.

  • Design Suggestion for Custom ADF Application

    Hi
    I have a custom database table.
    I have a custom database view which has query from multiple tables including the above table.
    The custom table in the view is joined with other tables by columns like inventory_item_id, organization_id etc.
    I have to show user a screen where the results of this view are shown in a table.
    The user should be able to enter some data in the screen for these rows.
    (he will be able to enter the data only for fields from my custom table)
    When he press save button, we should enter the new data given by user into the custom table
    along with some other values from view rows .. like inventory_item_id, organization_id etc ..
    Can you suggest a best approach to achieve this ?
    I have to use BC4J for Model and ADF For UI.
    As far as my knowledge goes, I think we will not be able to do this with an updateable view since we might hit the error
    ORA-01779: cannot modify a column which maps to a non key-preserved table
    Is there a design pattern we can follow in BC4J so that this can be achieved?
    Thanks for any help.
    Sameer

    Any view can be made updatable if you write INSTEAD OF triggers for it. That might be a good solution for you. You can also base a View Object on more than one Entity Object, and as long as there are good associations between the EOs it ought to work fine.

  • Design considerations for custom C223

    Hi all,
    I'm building a custom report using C223 as a base. I think I've determined that the struct mkal-expand is used to store the record set returned upon executing the transaction. I want to add a couple of fields to the struct by including another struct, which I define, in the mkal-expand struct. Is that a good aprroach for adding my fields to the report? Also, when I view the screen layout in design mode all of the fields which are displayed in the executed report are NOT displayed? Why...and would I add my fields in that case?
    regards,
    Mat

    Hi WalterLaan
    Thanks again for your assistance. I still think I might be better off drawing my own charts because I know that I have a bunch of unique stuff that I have to add to the charts (results of custom market analysis techniques)... e.g. if I have to draw custom annotations above (and/or between) the 5th and 10th bars on the chart, it will be easier for me to do this if I have drawn the bars myself (i.e. I'll know exactly where the bars are on the screen... to the pixel)... whereas there may be guesswork involved if I have to find the location on the screen of the 5th bar drawn by a third-partly library (unless they explicitly provide that in their API, to determine the x and y co-ordinates of a particular bar).... but even if they provide this, I may have to deal with the complexity of having to add a transparent pane above the chart element (or some other complexity) just so that I can go ahead and draw my own custom annotations to the chart.
    Again, for now I'm thinking I should just draw the charts myself... that doesn't sound too hard. The most important thing I needed to get my head around was the interactions between the data processing piece and the GUI components. I think you have laid out a pretty reasonable system for me in that regard... so thank you.
    Just a quick question.... Does repaint() have to be called from the Event Dispatch Thread? I'm thinking not because as far as I understand it just schedules a paint event. I think what you said made sense... just call repaint after each new piece of data is processed.
    Thanks for all your help
    Eddie

  • Designer support for Subquery against SAP BW Bex Query

    BusinessObjects designer has an option in the paramaters window to turn on "Allow Sub-Queries" in a universe that has been created using a olap source.  SAP BW BEX Query to be specific.  Once turned on, you can build a query and the subquery button and functionality is actually enabled and allows you to build it.  When running the query I get an error message "A filter contains a wrong value. You cannot run this query". 
    Now, I am pretty sure this functionality is not supported on a BW or OLAP source but, I can not find anything definitive from SAP stating that it is not supoorted.  So I want to make sure that this is not one of those situations where everyone just says "It's not supported" but really just doesn't know.  Does anyone have the official word or link to an SAP statement that this functionality is officially not supported.

    What I would say is, it won't support. The reason could be, as its not support any structure view in universe designer, that means we cannot create any derived tables where we could use sql query.
    I believe the same applies  here too. Even if you look at LOV defintions in universe, it won't show any query.
    So the same applies to reports.
    Hope this helps.
    Regards
    Gowtham

  • ACR 5 - Support for Custom Camera Profiles

    ACR 4 allows users to select from a list of four device-independent colour spaces (Adobe RGB 1998, ColorMatch RGB, ProPhoto RGB and sRGB). Unlike other RAW processors, it does not allow selection of a custom camera profile. This capability is very useful when colour accuracy is of considerable importance (e.g. reproduction of art works). Does ACR 5 allow for selection of custom profiles?

    When this question had been asked in the past the answer has always been, "No, because these choices are all that you need." This may seem to be a rather close minded answer. But in reality the Prophoto color space encompasses everything else that is available. So the solution has been to do all of your work in ACR in Prophoto and send the image on to Photoshop in that color space. Then convert to the desired color space in Photoshop.

  • EPM Multi language support for custom list in demand management

    Dear Team,
    We have installed EPM 2013 with English as base language and Arabic language pack as secondary language. We have implemented demand management and portfolio management as part of EPM implementation. Currently demand management have some workflow and
    custom list supporting these workflow. Just want to check, when user changes language setting from English to Arabic then all the forms ( build using custom lists) supporting English input forms should able to take Arabic text as input to these forms.
    Please let us know how we can achieve.
    Please help..:(
    Regards,
    Anup  
    Anup Kumar Presale Lead Wipro

    Was able to do it by adding new files to the shared folder and updating the style in the lang folder to point to the new files.

  • MLS Support for Custom forms

    Hi,
    We need to create custom forms for an installation having more than 1
    installed language. How should we take care of the various language
    translations? Can anyone who has done this before shed some light on the
    process?
    Thanks,
    Ashish

    Hi,
    Thanks for the response. Couple of more questions:
    1) How do i translate the boilerplate texts? Do I need to maintain a lookup table for this? Any details on this would be appreciated.
    Do you have any document on this?

  • BIA Support for Customer Solution

    What is the position of SAP when it comes to BIA installations that are developed by customers?  Do you need to get approval from SAP before installation?  Would there be SAP consulting services needed to give the stamp of approval? 
    I will be contacting our SAP rep but I wanted to fire something here in the short term.  Looking to see if this is case-by-case.
    Any help is appreciated.
    Thanks,
    Steve

    Thanks for the quick replies but here is why I am asking the question.  When I read through the Cookbooks and SAP Netweaver HA guides, they mention any hardware storage deviations must be OK'd by SAP.  I assumed this to mean not just storage but the entire hardware solution.  Having built a training system with HP DL380 G5 servers with OCFS (it is working well) I just wondered if SAP would give it a stamp of approval for production rollout. 
    I do understand the hardware specific points of view but our existing BIA hasn't been supported/maintained like a "black box".  We are frustrated and we are just looking for alternatives.
    If there are none, that is fine, but it doesn't hurt to ask.
    Thanks,
    Steve

Maybe you are looking for

  • Inconsistency in receiveing the messages in inbound Proxy in SAP  from XI

    Hi All, We have a Scenario where our Source System is Websphere MQ and target system is SAP Deposit Management System. To post the data in SAP DM we are using inbound  ABAP Proxy There is an inconsistency in receiveing the messages in inbound Proxy.

  • How to prolong U410 battery life?

    Hey guys, Just bought a IdeaPad U410 a few days ago. I have tested the battery life, and it was pretty decent after uninstalling Smart Update (5 - 6 hours of casual use).  However, because of my previous experience of using Acer and Toshiba laptops,

  • How to print activities together with bar chart

    Hi, Anyone can advise how to print out an activities together with bar chart. When you try to print, an insufficient bar chart come out. Why? Thank you

  • Back to School promo UK

    I added a Macbook to my shopping cart, and selected yes when it asked me if I also wanted an ipod nano. I selected a 2gb ipod nano and it asked me what colour I wanted, but the only choices were black or white and the nano now comes in other colours

  • Extract paragraph style name with formating

    All kindly help me How to extract ParagraphStyle name with formating to Sample.txt: EG: Style Name: "Body" Font = "15" leading = '"18" Aligh = "Left" etc... Regards Hurix Edit by Dave Saunders: Something is preventing the Reply button from working. I