Bug or by Design? Commented-out ADF components still appear on .JSP page

I normally use all .jspx pages, but for a couple of pages I'm using a .jsp page because I need to include <f:verbatim> HTML code.
I'm noticing an odd occurrence where ADF component statements contained within comments still appear on the .jsp page (this does not occur with .jspx pages, and, regular comments w/o ADF components do not appear.) For example the following still shows up on the rendered page?:
<!-- <af:panelLabelAndMessage label="#{bindings.View1mlm.label}">
<af:outputText value="#{bindings.View1mlm.inputValue}">
<f:convertNumber groupingUsed="false"
pattern="#{bindings.View1mlm.format}"/>
</af:outputText>
</af:panelLabelAndMessage> -->
This statement is not contained with the verbatim tag which appears later. I've also re-saved, re-compiled, etc. to make sure I wasn't using an older version of the page.
Is this a bug or something I'm not aware of related to <!-- comments containing af: components --> within a .jsp page?

The different comments jsp are:
<!-- This is an HTML comment -->
<%-- This is a jsp comment --%>
The difference is the HTML comment is send to the browser, but the browser should not render comments to the user.
The jsp comments are not send to the browser, since they are stripped off by the compiler.
This reminds me of one project, where we used the write HTML comments on the jsp-pages like
<!-- This sucks, please correct before next release -->. Luckily, the QAs corrected us before going live. ;o))

Similar Messages

  • ADF BC:Displaying Image On JSP page

    Hai All
    I'm using ADF BC and JDev 10.1.3.
    I want to show an image on my jsp page from database.
    For this I have written an servlet with the following code
    response.setContentType("image/gif");
    OutputStream os = response.getOutputStream();
    String amDef = "package.AppModuleName";
    String config = "Configuration Name";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
    ViewObjectImpl vo =
    (ViewObjectImpl)am.findViewObject("ViewObject"); // get view object (the same as used in the table)
    System.out.println("vo:" + vo);
    vo.executeQuery();
    Row row = vo.first();
    BlobDomain image = (BlobDomain)row.getAttribute("field");
    //System.out.println("image:" + image);
    InputStream is = image.getInputStream();
    // copy blob to output
    byte[] buffer = new byte[10 * 1024];
    int nread;
    while ((nread = is.read(buffer)) != -1)
    os.write(buffer, 0, nread);
    os.close();
    Configuration.releaseRootApplicationModule(am, false);
    This servlet working perfectly.The image is displayed on the page while running
    the servlet alone.
    My problem is the image is not got displyed on the jsp page
    I tried following code to call the servlet
    <af:objectImage source="ImageServlet"/>
    <img src="ImageServlet" width="140px" height="50px" align="right">
    Where ImageServlet is the url-pattern in the web.xml for the servlet
    Both method are not working
    Any body please help me.......
    what I'm missing..............
    Is there any other way to display an image on JSP page using backing bean
    method.
    Thanks
    Ans

    HI,
    See: http://kuba.zilp.pl/?id=241
    Kuba

  • ADF Search form inside a jsp page's panel page container

    I am going through the Oracle JDeveloper 10g for Forms & PL/SQL book and I got to page 391 where I need to drop a search form onto a jsp page set up with a panelpage. The form show up but when I go to delete the extra fields JDeveloper completely locks up. I am running JDeveloper version 10.1.3.3.0.4157. I tried reinstalling it and it still locks up. I tried going back a few steps and recreate the search form and it still locks up.
    Can anyone explain why it is locking up or how to delete the extra fields without locking up?

    I also tried selecting a field in the source file code window. Just selecting a field in any form or window locks up JDeveloper. My program worked find until I created a search form from a data set. I think it is a bug in the version of JDeveloper I have. I did a similar task in a previous version and it worked fine. I could select and delete fields with no problem.

  • Can i design UI part in flex with an existing JSP page

    hello
    my name is sandeep, i have one JSP page can i implement it in
    FLEX 2.0 , as i am very much interested to design the UI part in
    FLEX 2.0 , can i make it, the JSP page is a login page it contains
    username and password textfields and onclicking the submit button
    it has to validate the user and password is valid or not, and
    onclicking reset button it has to clear the textfields. can u give
    suggest how to implement this in FLEX 2.0 ,
    thanks & regards
    [email protected]
    Text

    i didn't got , as i am a fresher to this FLEX 2.0 , i
    designed the UI part in flex, but when i click the submit button it
    has to forward to the JSP page to check against the valid
    user,password , sop how to forward the page to jsp(i mean from flex
    to jsp) , if u can suggest me with an example, it will be easy for
    me,
    thanks for ur speedy reply, hopping to get the solution for
    this issue,

  • A bug or by design: locked out in the wrong language

    I use two languages on my Mac: English and Russian. I was writing an email in Russian when I had to leave my computer - so I locked it. When i came back, I tried to log back in. A shocking surprise: Mac was using a Russian layout and I have found no way to switch back to English to type my username and password (which are in English). I tried:
    - resetting the PRAM (booting while holding option+Command+R+P)
    - booting in single user mode and adding an admin user with empty username/password
    - booting in single user mode and messing around with /var/log/CDIS/.custom (turned out it was set to "English" anyway)
    I booted in a normal mode and started trying all random key combinations in hopes to switch to English. I frustration, I typed my password in the password box -- while using the Russian layout -- and voila - I was logged in.
    What happened was: when I added another layout, I had no idea that I needed to check a box to "Show input method on login screen" in a menu that is completely different from "Languages and Input" menu (in the Accounts-> Login Options). So when computer got locked, it wanted me to use the language I used last to login without providing an option of switching. I argue this is not user-friendly.
    When I did select that box to show languages at login, I discovered something else: the username box wants you to use the language you used last by default (i.e. Russian), but the password box wants you to use English (that's why I was abke to login at all). Also: when focus is on the password field (and the language box show an American flag), when I go to switch the language, it shows a list of three Russian layouts of which only one is enabled -- and no English at all!
    Have anybody run into this? Can anyone explain why whould the login screen be designed in such a way?

    lynxoid wrote:
    I tried:
    But you didn't try the right way, which is
    <http://support.apple.com/kb/HT1274>
    I argue this is not user-friendly.
    Possibly not, but who are you arguing with?
    SL is what it is. No amount of arguing or feedback will change a jot or a tittle. It's dead and we're history. The most we can hope for is a couple of sec updates before we're buried. Life with Apple.

  • Can I sort Comments by the order they appear on a page (i.e., top to bottom)?  Or can I only sort by page, but not within a page?

    I would like to be able to sort Comments not only by page, but also in the order they fall within a page.  For example, starting at the top of the page and working my way down so I am not jumping all over the page.  Is there such an option?

    Inspector > Document > Document Margins
    The word is border. Boarders are the Harry Potters of this world.
    Peter

  • On click of lov new jsp page which has only text area for adding comment

    hi all ,
    please help me to do this task. on click of lov new jsp page should be opend which has only text area for adding comment and upon clicking submit on the jsp page the value entered on the textarea should fall on the text field of lov.
    with regards
    prabhakaran.p

    The only reason I see for such a requirement is "Notes" require more space for entering a detailed note and would be inconvenient to write it in small single-line text input box. But, still in this case, getting the entered text back to the page and displaying it will have the same inconvenience of reading it from that field. And, I still think that removing one amongst the two (text field or image link) would be good, design wise.
    Anyway, did u try the following:
    1. Add a flow layout to the table bean
    2. Add text input and image item to the flow layout.
    3. Attach the notes page as the destination uri for the image.
    Did u start the working on it, let us know how far did u reach so that we can guide you through from that point.

  • In SQL Editor Window '--' at end of line comments out the next line

    Hello,
    when I run a query with '--' at the end of a line, the next line seems to be commented out:
    select * from v$parameter
    where 1 = 1
    -- and value = '0' ------------
    and value LIKE 'AMERICA%'
    this will result in showing all v$parameter records!
    When I change the last character, it works properly.
    select * from v$parameter
    where 1 = 1
    -- and value = '0' ------------ X
    and value LIKE 'AMERICA%'
    Regards,
    sknoess

    Bugged in EA2: Bug with '--' inside string
    K.

  • Commenting Out Library Code

    When a Library item is inserted into an html document, it automatically adds some commenting out code
    <!-- #BeginLibraryItem "/Library/footer.lbi" -->
    <!-- #EndLibraryItem -->
    but still appears in Design View (which is expected). There are times when I don't want the actual Library item (a footer in this case) to be visible in Design View, and simply applying an html comment doesn't work (I assume because you are basically trying to double comment the code). So the question is: is there another way to temporarily hide a library item from appearing in Design View? The reason I'm asking this (and maybe there is another underlying issue) is because looking in Design View, the footer appears in the middle of hte page, but renders properly when previewing in either Live Mode or previewing in browser.
    Design View: the red outline shows where the library item (footer) appears - in the middle of the design view area - worth noting, I work in Split view (with code on top, preview on bottom), so maybe that has something to do with not rendering items properly on screen?
    Live View or Browser Preview:
    I don't know if this is happening because of CSS styles of possibly some html code or maybe even an underlying issue somewhere else. This is more irritating than anything else. Does anyone have a clue what might be going on?
    To add: the only way I am currently able to temporarily hide the footer library item is to open the library item, comment out that code, then update all pages (which is a pain for when I need to go back and forth)...

    If this helps, I've uploaded what I think is enough to see what I'm facing.
    As an FYI, your page content falls out of the box when end-users increase default text-size in their browsers (Firefox, View >  Zoom > Zoom Text Only), hit Ctrl+++.
    See screenshot below where I've highlighted dark text on dark background to be visible:
    Height: value in pixels is a restriction in all browsers except IE.  If needed to reveal a background image, use values in ems or the min-height property with Conditional Comments for pre-IE7 browsers.
    CSS:
    #homeContent {
        position: relative;
        width: 892px;
       min-height:400px;
    Conditional Comment:
    <!--[if lt IE 7]>
    <style type="text/css">
    #homeContent {
    height: 25em
    </style>
    <![endif]-->
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Hide ADF components in email notification Human Task BPM 11g

    How can I hide ADF components in email notification?
    I what to hide some buttons and comments section.
    I'm using BPM 11g 11.1.1.6
    Thanks everybody.

    Hi Frank,
    Just wanted to know if someone has already tried a usecase similar to this as it also involves ADF DI. :)
    Posted in SOA Suite forum : ADF DI integration with SOA Human Task
    Thanks,
    Anoop
    Edited by: Anoop Kumar Shukla on Jan 29, 2013 2:32 AM

  • Why Adf components with box outline in visual editor

    When I drag and drop components from the Component Palette to a page in the visual editor, save it and open the page again, instead of the UI component, I see the components with box outline in the design view of the visual editor.
    Why is the happening, and is there a way I can make the UI components to appear.
    Thanks for your help in advance.

    Are you using a brand new production build? (or have you got your hands on a non-public build! ;o) sometimes this happens with interim builds... If its a public build try the following....Go into the project properties and the node JSP Tag Libs...Remove the ADF libs and then reattach them....
    Don't ask me why! but that sometimes works! ;o)
    Regards
    Grant Ronald
    Oracle Product Management

  • ADF Components vs Trinidad Components licence

    Hi,
    Can I use ADF Components instead of Trinidad Components to deploy an application in Tomcat without to pay a licence?
    Thanks.

    Hi,
    - Why is a preview release ? when we can get a production release ?
    Its not only ADF Faces but the full Fusion stack that makes the release train. The ADF Faces RC components may be in a better shape than some other components, but this doesn't make them earlier to ship. There is no date for the production release and until then we release technlogy previews. Hoe that production isn't too long away anyway
    - Oracle would give us technical support ?
    No. You can work with your local Oracle organization to see if - depending on the project - they will step in and help you with advice and hints, but there is no official support for the technology preview
    - How much the product and support cost ?
    If you use Oracle Application Server then the product licence is covered. Support is a separate contract and I suggest you get in touch with your local Oracle sales force to get the pricing for your case
    - There is a Oracle commercial plan for the future.
    There is no statement of directions available yet.
    - And how about Apache RFC Proposal ? when they will start ...
    As soon as possible. Its accepted and incubation can start when the sources are ready. Still, we have to go by the rules of the Apache community. I don't expect the open source community to have a first release before next year (with ADF Faces it took us almost 1 1/2 to get out of incubation)
    Frank

  • [svn:fx-trunk] 10065: Comment out code causing an RTE in SWFLoader.

    Revision: 10065
    Author:   [email protected]
    Date:     2009-09-08 13:14:26 -0700 (Tue, 08 Sep 2009)
    Log Message:
    Comment out code causing an RTE in SWFLoader. Will fix as part of per-module styles feature development.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-23081
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23081
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as

    Hello, first post here..
    I maintain a java based lobby for an opensource RTS
    engine called spring at http://taspring.clan-sy.com
    You can find my lobbys source code at:
    https://taspring.clan-sy.com/svn/spring/trunk/AFLobby/
    Of note being the unitsync.dll/so library used to
    handle mods and maps. Implementing this library in
    pure java is not an option.
    I've dealt with quite a few JNi errors dealing with
    the linux users but we got through them all and it
    all worked great.
    I released a windows installer, and most users can
    run it fine with no issues with JNI, but 2 users seem
    to have problems, despite correctly installing
    everything.Does the JNI code use perl?
    This error message shows several hits on Google for perl related stuff.

  • ADF Faces Components and HTML/JSP Pages

    We would like to create HTML/JSP pages and include some of the ADF Faces Components; ie: date picker, radio buttons, etc.
    When we develop this type of page, upon running in the embedded OC4J, the HTML is processed first and then the ADF Faces Components are processed. In the design panel/editor, everything is in the correct sequence. Upon running in the OC4J, it doesn't matter where in the code we place the ADF Faces Components, these ADF Faces Components always appear at the end of the other HTML and JSF Faces components in the displayed page.
    How can we mix the two technologies? ADF Faces alone is not flexible enough for our needs. We want to use the JSP:include tag for reusable code which works fine in a HTML/JSP page, but not in a ADF Faces PanelPage or PanelBorder or anything similar.
    We're running the EA17 version of the tag library.
    Can we mix the technologies? What are we missing? Is this an issue with the embedded OC4J? Will it make a difference if we develop JSP pages as pure JSP or the JSPX option?
    Thank you.
    Message was edited by:
    [email protected]

    The following tag lib allowed me to mix HTML and JSF tags (not sure about other JSP tags though). Hope this helps:
    http://jsftutorials.net/htmLib/
    Chris

  • How to delete the commented out lines in PC editor of a SAP Script?

    Hi Experts,
    I hv lot of commentde out code in the PC editor of a my_SAP_Script.........so, wanna to delete all this commented out code, so, let me know that, Do we hv any option other than manual deletion.
    Currently am doing it by,
    keeping the line totally blank,
    keeping the left small box, where we define paragraph formts,
    going BACK,
    save + activating,
    now, those lines r disappearing!!
    but, let me know, Is there any other MENU/push button optin to delete these lines?
    replies appreciatesd,
    thanq

    [pc editor doc|http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/b49f1b453611d189710000e8322d00/frameset.htm]

Maybe you are looking for

  • Thunderbolt port not showing connected device

    I'm trying to use my 2d iMac 27" as a second monitor.  I have the two iMac's connected via thunderbolt ports systems do not show any devices connected to either port. Also, CMD F2 function (Target Display Mode) is not working. Has anyone else this pr

  • Using an External Hard Drive Helps

    I am relatively new to imovie HD, so forgive me if this is obvious. I just wanted to say that I'm using a Seagate external hard drive to manage all my movies, and it's been great. By importing the tapes straight into the external drive, saving them t

  • ORDER BY clause with expression

    Considering that all the column names and table name is valid, what happens internally when the following query is run? SQL> SELECT STU_ID, STU_NAME FROM STUDENT ORDER BY 2+3, STU_ID; What i found out was the rows get ordered in ascending order of ST

  • Using photoshop elements with aperture

    I recently purchased and installed Aperture 1.5. I have yet to import my photos. I plan on keeping my photos on an external drive. The drive is shared with a windows laptop. I have about 5k of photos. Most of the time, the edits I make will only be c

  • Trouble downloading Adobe Flash Player and Reader

    Microsof Office XP Standard 2000 Internet Explorer 8 Cipher 128 bit (unsure if it refers to connection speed) Here is the message I got after trying to download Adobe: " This file doesn't have a program associated with it for performing this action.