New HOWTO is available - HTML rendering

Take a look at the following URL
http://otn.oracle.com/products/jdev/howtos/jsp/renderers.html
Comments and feedback are welcome.

Some comments:
1. the provided renderers read the properties every time becuase they are meant to be 'generic' and there are possible parameter differences between one attribute and another. You can easily hard-code the property values into the renderer implementation and 'never' look at the properties for parameters. The same applies for the dynamic renderer.
2. The set of renderers applis to both UIX JSP and JSP. There some bugs in the UIX JSP that prevent this in 9.0.2, but they will be fixed in Jdev 9.0.3.
3. The 'control type' is a shortcut way to select some of the default renderers. If you specify the 'Renderer' properties, they take precedence over any control types selected at design-time.
4. A cool way to re-use renderers is to create a new domain class and setup the renderer properties at that level. You can then use tihs domain type in your entity objects. all the rendering selection will happen automatically.
5. You can retrieve the current locale by using the ApplicationModule.getSession().getLocale() , make sure you use this method instead of the default locale since a single web application may be used by different users with different locale settings. We take the http locale information and map it into the application module's locale. If you need locale specific values, use resource bundles.
6. I agree that we need better javadoc for the renderers, but you also have source code to the implementation. You can copy\subclass\use the current implementation to meet your application requirements.
7. The RADIOGROUP type is an option of the PickList renderer.
8. As far as generating your own HTML, it's as simple as overrinding the render to string method shown in the sample renderers. You can generate any content that is applicable to the attribute type.
9. Learn how to use the oracle.jbo.AttributeDef class to figure out which type of attribute your are rendering.

Similar Messages

  • New Howto guide available: HOW to INSTALL and CONFIGURE A TWO-NODE CLUSTER

    Hi,
    I am not sure that this has been posted or not. But for all of us who are too lazy (like myself) to read the full set of documentation, or who have not enough time, please have a look at this short document with screen shots that explains how to setup a simple two-node cluster.
    http://www.sun.com/software/solaris/howtoguides/twonodecluster.jsp
    I still recommend to browse through the "Sun Cluster Concepts Guide for Solaris OS" http://docs.sun.com/app/docs/doc/819-0421
    Have fun
    Hartmut

    I am afraid there is no such document. But I can try to give you some hints.
    N+1 can be seen as two things:
    - the phsical setup of the cluster and
    - the logical configuration of services
    A physical N+1 setup would mean, that you have one server that is connected to all shared storage, but the other N nodes are only connected to the shared storage they need.
    This configuration would also need the logical N+1 setup, namely that all HA services could only run on 2 nodes, their primary node and as a backup this one dedicated node that is connected to all shared storage.
    If you do not have the physical N+1 setup, you could easily have a logical N+1 setup, by having a N*N topology, j.e. all nodes connected to all storage, but logically each service again would have only 2 nodes on its nodelist.
    It seems that the second option is the one that is used more often, as ift offers you the ability to reconfigure things in case of failures.
    With regards to asymmetric and symmetric I am not quite sure what you mean: And I do not think that these terms are used in the SC docs.
    What I can think of is, that asymmetric means that you have one node being active with 1 or more HA services and have one inactive secondary node as a backup.
    Regards
    Hartmut

  • HTML Renderer - Links that do not open a new window

    Hi All,
    I have links which navigates users to an area within the page, however all anchor tags (<a></a>) which are not http://com.sap.cm in html rendered by the html collection renderer are opened in a new window (target=_blank).  Even if I specify target=_self, it changes to target=_blank automatically.
    Is there anyway to implement <a target="_self" href="#aLocationInPage">link</a>?
    Cheers,
    Vic

    Hi there,
    we had the same issue - I opened an OSS and got following reply :
    <i>
    <b>08.03.2007 - 12:45:49 CET    SAP    Reply</b>
    I have checked from my development colleague and confirmed that
    this parameter is not supported currently and development has recently
    no plans to support this feature.
    I apologize for the inconvenience caused here.
    Thank you for your cooperation.
    Best Regards
    </i>
    Can you believe this ? I don't, as this parameter has been around since SP12 or so and still there is no official note regarding this issue.
    > Please reward points :o) <

  • HTML Rendering for PDF

    <div><font face="Arial" size="2"><span class="493345917-06032007">We viewed a demo on webElements and have a question about something that was mentioned in that demo, i.e. "You can create a PDF report, but you have to do some tricks."  </span></font><font face="Arial" size="2"><span class="493345917-06032007">We need to know what those tricks are! <hr /></span></font></div><div><span class="493345917-06032007"><font face="Arial"><font size="2">The background on our particular situation is this:</font></font></span></div><ul><li><font face="Arial" size="2"><span class="493345917-06032007">We want to incorporate a text editor, similar to this one, in various forms to allow formatting of text in long text fields.</span></font></li><li><font face="Arial"><font size="2"><span class="493345917-06032007">The HTML output will be stored in / retrieved from a<span class="981485618-06032007"> SQL</span> database.</span> </font></font></li><li><font face="Arial"><font size="2"><span class="493345917-06032007">We need to be able to use/modify existing reports generated through Crystal to create PDF output.</span> </font></font></li><li><font face="Arial"><font size="2"><span class="493345917-06032007">The HTML formatting functionality built into Crystal XI report items does not appear to be adequate, since it does not handle several HTML tags that we need - bulleted/ordered lists, perhaps tables.</span> </font></font></li><li><font face="Arial"><font size="2"><span class="493345917-06032007"> We are using java on WebSphere application servers, with embedded Crystal reports. We do have Business Objects Enterprise available, but it is not configured for HTML pass-through, or webElements yet.</span> </font></font></li><li><font face="Arial" size="2"><span class="493345917-06032007">We want to use Enterprise, but if it doesn&#39;t solve our immediate problem (creating PDFs with embedded HTML, rendered properly) we will work on getting that set up later.</span></font></li></ul><div><font face="Arial" size="2"><span class="493345917-06032007"><hr />Bottom line question --  Can we expect that the PDF generation from HTML data fields in webElements/Enterprise is better than that which exists in Crystal standalone?</span></font></div><div><span class="493345917-06032007"><font face="Arial"><font size="2"><span class="981485618-06032007">And/o</span>r - do you have "tricks" that you can share that will help?<span class="981485618-06032007"> </span></font></font></span></div><div><span class="493345917-06032007"><font face="Arial"><font size="2"><br /><span class="981485618-06032007">Thanks for any help you can offer,</span></font></font></span></div><div><span class="493345917-06032007"><font face="Arial"><font size="2"><span class="981485618-06032007">Fran </span></font></font></span></div>

    <p>hello,</p><p>the webelements library uses a feature of pass-through html available in xi & xir2. activating pass through html allows the report developer to embed html into a report so one can create custom html that would not work by formatting a field or text object to display as html.</p><p>pass-through html will not render controls on pdf exports and will show up as regular text in pdf.</p><p>you might have miscronstrued a portion of the demo where it was mentioned that one could get around pass-through html showing up as text in pdf...the workaround is to hide this text and does not render the actual web controls.</p><p>jw</p>

  • Fonts used in HTML rendered components not displayed

    Hi all,
    I have a problem using fonts in components with text that is being rendered by the HTML renderer.
    It's the exact same problem as described in this topic;
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=222691
    but no solution found...
    When I do this, my font isn't displayed (only the default SansSerif font is used at this point);
    JLabel label = new JLabel("<html>a text</html>");
    InputStream fontStream = getClass().getResourceAsStream("SystemVIO.ttf");
    Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
    label.setFont(font.deriveFont((float)12));SystemVIO is placed in a JAR-file (loaded in my classpath).
    And when I do this, it is displayed correctly;
    InputStream fontStream = getClass().getResourceAsStream("SystemVIO.ttf");
    Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
    JLabel label = new JLabel("<html>a text</html>");
    label.setFont(font.deriveFont((float)12));But the real problem here is, if one component is made with a HTML renderer, none of the other components can use a font if it's loaded after the FIRST component with HTML renderering is constructed.
    So, for some reason, the fonts aren't reloaded in the HTML renderer (is the html renderer native?) whenever I use createFont().

    Hi Sundar,
    if I understand your post properly, what your are doing in your BSP is executing a procedure to create an Adobe document, and then placing that document into the HTTP response.
    If you have built this code by following some of the blogs in SDN, you probably do something like...
    response->set_header_field( name  = 'content-type'
                                value = 'application/pdf' ).
    l_pdf_len = XSTRLEN( l_pdf_xstring ).
    response->set_data( data   = l_pdf_xstring
                        length = l_pdf_len ).
    navigation->response_complete( ).
    What this code does is change the type of the HTTP response to 'application/pdf', set the content of the HTTP repsonse to the PDF data stream, and finally signal the HTTP runtime that processing has completed.
    Once processing has been completed control is returned to the HTTP runtime. This means any further 'down-stream' code in your BSP will not be executed. This includes the Layout section of your BSP.
    It is not possible to send two responses, PDF data and HTML data, to a single HTTP request. If you want to show both on the same web page you need to embed the Adobe document into the HTML page using frames or some other method.
    Cheers
    Graham Robbo

  • Add new Content to a html/plain file

    Hi Everybody,
    how can is it possible to add new content (a new line) to a existing html/plain file? I have two methods, with the first one i can create a file but with the second one it is not possible to add new content to the just created file. What is my mistake?
    Create a file (works!)
    IResourceContext ctx1 = buildResourceContext();     
    RID rid1 = RID.getRID("/SP");     
    final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
    aCollection =(ICollection) aResourceFactory.getResource(rid1, ctx1);
    String out = new String("<h3> Welcome </h3>");     
    filedataStream = new ByteArrayInputStream( out.getBytes() );
    fileContent =
         new Content(
           filedataStream,
           "text/html",
           filedataStream.available());
    if (aCollection != null) {          
         fileResource = aCollection.createResource(
                       "NewFile.html",
                       null,
                       fileContent );
    Add new Conent (doesn't work)
    private void addNewContentToFile(){
    IResourceFactory factory = ResourceFactory.getInstance();               
    IResourceContext ctx = buildResourceContext();                         
    RID rid = RID.getRID("/SP/NewFile.html" );
    IResource resource = factory.getResource(rid,ctx);
    String out = new String("<h3> my New Line </h3>");
    ByteArrayInputStream data = new ByteArrayInputStream(out.getBytes());
    IContent newContent = new Content(data, "html/plain", data.available());
    resource.updateContent( newContent );
    regards,
    Seed
    Edited by: seed_mopo on Oct 28, 2008 10:49 AM

    Sorry, there was an exception (NoCheckOut...) --> Versioning = false.

  • When will the new iPad be available to purchase in Thailand Apple store?

    When will the new iPad be available to purchase in Thailand Apple store?

    Does this help:
    http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html?cid=AOSA10000 022132

  • I am unable to install the latest version of Muse 2014. When I open Muse it comes up with a 'new version is available' and when I click on 'install now' it takes me to the adobe muse website where I click on the 'Download' button. It will then come up wit

    When I open Muse it comes up with a 'new version is available' and when I click on 'install now' it takes me to the adobe muse website where I click on the 'Download' button. It will then come up with 'Muse is downloading now'. It will then take me back to the Muse app again with the same 'install now' message. The new version has not installed, could some one please let me know the reason why it isn't installing.

    Hi Jeff I have uninstalled Muse from my applications and have tried to download the new version but it displays a message 'file not found'. I have included a screenshot.

  • My iPhone 4s says that my software version 5.0.1 is up to date.  Why am I not receiving the notification that the new update is available for me to download?

    I have an iPhone 4s, not jailbroken.   I was able to update to 5.0.1 when it came out last year.  When 5.1.1 came out, I noticed that I never received the
    notification that a new update was available.  I updated my 2 ipads and my wife's iphone 4.  I didn't bother looking into it, since I didn't feel the need to update to 5.1.1.  Now I want to update to ios 6, but when I go to Settings > General > Software Update.  It checks for updates , but still shows me that my 5.0.1 is up to date.  I plug into itunes and check for update there and it still indicates that 5.0.1. is up to date as well. 
    Does anyone know what this is happening and how I can update to ios 6?
    Thanks for the input.

    muneer86 wrote:
    hi, i have iphone 4s with version 5.1.1(9B206). im unable to update the version to ios 6? if im updating my phone in middle it says this an error occur while updating . can anyone help me to update my phone to latest version?
    Follow the instructions that were already given in this discussion.

  • Automatic MOLAP cube : Proactive caching was cancelled because newer data became available

    When I process the cube manually after processing Dimension, It works fine. But when I append data into database column, It performs proactive caching, at that time it fails.
    Sometimes: It does not get key attribute because measure gets processed before dimension
    and sometimes it gives error:  
    Proactive caching was cancelled because newer data became available  Internal error: The operation terminated unsuccessfully. OLE DB error:
    OLE DB or ODBC error: Operation canceled; HY008. Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'call dim Monthly 201401 2', Name of 'call dim Monthly
    201401 2' was being processed. Errors in the OLAP storage engine: An error occurred while the 'MSW' attribute of the 'call dim Monthly 201401 2' dimension from the 'callAnalysisProject' database was being processed.  etc....

    I have also seen this error occur in other scenarios.
    In the first if you have set Pro-Active caching to refresh every 1 minute and your query takes 2 minutes to refresh the error above can be displayed.  Solution increase your refresh time or tune your Pro-Active caching query.
    In connection with the above if your server is limited on available resources this can also cause the slower query response times during refresh and the message above.

  • Have iphoto 9.0 working on a mac osx 10.7.4 yesterday ilife with idvd was downloaded into my mac,i can't open my iPhoto now its telling me to update app, but when i do it says no new updates are available at this time,and iPhoto update mesg pops up again.

    Have iphoto 9.0 working on a mac osx 10.7.4 yesterday ilife with idvd was downloaded into my mac,i can't open my iPhoto now its telling me to update app, but when i do it says no new updates are available at this time,and iPhoto update mesg pops up again.

    Hi,
    I scoured the web looking everywhere for a solution to this.
    Exit Code 15
    OSX 8.5 with Work@Home DVD media for CS6
    I followed instructions to run 3rd party cleaner software
    I tried the adobe removal tool
    removing all copies of adobe software manually
    installing from a new account, safe mode, plist everything suggested that i found did not work.
    A colleague suggested that removing the below folder would allow the installation:
    /Library/Application Supports/Adobe
    They turned out to be correct, so i am passing this on, because this took far too many hours of my time.
    Cheers,
    Smokey

  • I used to update my iPhone 4S applications whenever a new update is available, but at this time, "unknown error" displays after entering my apple id password. Anyone who could help, whom they might have experienced? Thanks

    I used to update my iPhone 4S applications whenever a new update is available, but at this time, "unknown error" displays after entering my apple id password. Anyone who could help, whom they might have experienced? Thanks

    Hi Christianjr,
    When you say you reset your network settings, what do you mean, exactly?
    I saw another post on this issue, and the poster indicated that they resolved the problem by turning off their cellular date option and wifi options in Settings, and then turned them back on.
    Also, resetting your phone may help - press the Home and Power buttons at the same time and continue to hold both down until the Silver Apple appears. Once it is back up, click on the update option and see if it fixes the problem.
    If none of those things work, then need to have details on what you did to reset your network settings....
    Cheers,
    GB

  • How can I resolve error code -54 in iTunes? I am using the latest iTunes. No new updates are available.

    How can I resolve error code -54 in iTunes? I am using the latest iTunes. No new updates are available. I'm using iTunes 11.3 on a MacBook Pro, OS X 10.6.8. I can't save my library in iTunes, the message just keeps popping up.

    From an OS9 reference, error -54 is a software lock on a file or a permissions error. (Although there is no formal list of OSX error code some of the old codes still apply to OSX .)
    First, try simply restarting your computer.
    Try quitting iTunes, then deleting the .xml (not .itl !) version of the library file in the iTunes folder (iTunes will generate a new one).
    iTunes Library cannot be saved (Error -54) - https://discussions.apple.com/thread/1912814 - various things to try.
    Unknown error (-54) while syncing ipod - https://discussions.apple.com/thread/1082953 - problem was locked files
    Why does iTunes keep showing a -54 error when I sync my iPad? - https://discussions.apple.com/thread/3727114
    Error -54 possibly related to Touch Copy - https://discussions.apple.com/thread/3727114 - cleared by deleting preferences on iPad.
    iTunes: Missing folder or incorrect permissions may prevent authorization - http://support.apple.com/kb/ts1277
    Troubleshooting permissions issues in Mac OS X - http://support.apple.com/kb/HT2963

  • When I open Muse, I get a message that a new update is available.  When I hit install it just closes and nothing happens.  Then I got a message  I needed Adobe Creative Cloud App to resolve the issue.  I downloaded a copy of Creative Cloud desktop but it

    When I open Muse, I get a message that a new update is available.  When I hit install it just closes and nothing happens.  Then I got a message  I needed Adobe Creative Cloud App to resolve the issue.  I downloaded a copy of Creative Cloud desktop but it says that my Muse is up to date.  It was last updated in May but you have a new update today and it will not update.  I thought maybe I am not suppose to have the Creative Cloud update because all I have is the individual app Muse and the photography program.  So I uninstalled the CC desktop.  Then when I open Muse it says I need the CC desktop to help with the update.  So I get stopped either way.  Now I also had a Pre-Release Muse on my computer and I don't know if that complicated things.  Please advise.

    All future installs/updates of Muse (and most other Adobe apps) are through the Creative Cloud desktop app. Thus you do need to have it installed.
    Are you on Windows or Mac? What OS version?

  • "A newer version is available" error

    A little background: I have a SharePoint farm with 2 web front ends load balanced, a application server and a database server, serving content to over 600 users. 
    I've started experiencing some issues with users on shared accounts. For ease of use (though I don't like it) a number of staff at certain locations all login with the same user account. We use roaming profiles to maintain consistency between the computers and these shared profiles are mandatory. The internet explorer temp files are not redirected and are stored locally. 
    These staff members regularly have to update a specific excel spreadsheet in a document library in SharePoint. The shared accounts are not allowed access to SharePoint for tracking and security reasons. So users log into SharePoint using their own credentials. 
    Lately I've been having an issue of when they open a document and check it out to make edits they get a bar at the top that says "A newer version is available. To modify this workbook, open the latest version or save a copy." 
    I've verified that it's not been checked out and had the user attempt to check this document out and they still get this error. It seems to be random and possibly per different computers. 
    I first suspected it was an internet explorer caching issue and adjusted setting to clear the cache on close and to check for a new content on every visit to the page. That didn't seem to make a difference. 
    We're in the process of rolling out IE 7 and I suspected maybe that would solve this issue, but we're still having the problem. I've also tried repairing and reinstalling office 2007 to no avail. I have the latest service packs and hot fixes on Office 2007 and Windows XP. I haven't upgraded SharePoint to service pack 2 yet but I do have the latest infrastructure updates on it.
    I’ve seen a little information from searching around on Google but nothing specifically similar to this that has more of an answer then “reinstall office”. Does anyone have any insight into these errors and how I can go about solving them? Thanks!

    I’m not clear from the 2 posts what should be deleted.
    One says:
    Deleted the registry hive \Software\Microsoft\Windows\CurrentVersion underneath
    HKEY_CLASSES_ROOT\Software\Microsoft\MasterAggregatorForIPP\OleDbHandlers\{E1D2BF40-A96B-11d1-9C6B-0000F875AC61}.
    The other says:
    HKEY_CLASSES_ROOT\Software\Microsoft\MasterAggregatorForIPP\OleDbHandlers
    {E1D2BF40-A96B-11d1-9C6B-0000F875AC61} System
    Does that mean delete the key \{E1D2BF40-A96B-11d1-9C6B-0000F875AC61} or the values underneath it? And where does System come into play? I don’t see that in the registry on the PC’s I’ve checked.
    I’m not sure how \Software\Microsoft\Windows\CurrentVersion relates to HKEY_CLASSES_ROOT\Software\Microsoft\MasterAggregatorForIPP\OleDbHandlers
    {E1D2BF40-A96B-11d1-9C6B-0000F875AC61} System
    Thanks.

Maybe you are looking for