Mix ADF Faces with HTML, JavaScript, CSS, JSTL question

Dear all,

The project is now starting to deploy to the production server. When we try to deploy to the production server who made a lot of mistake. As this used widely used project mix ADF faces with
HTML/JavaScript/CSS/JSTL. I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
There is in the project

1 mix of tags html with ADF Faces components
2. the use of JavaScript/CSS inline
3. mix the JSF/ADF Faces and JSTL tags

Help me how to address this issues as well as links to useful blog.

JDeveloper IDE version: 11.1.1.5.0 with Webcenter
WebLogic version: 10.3



Best regards
KT

Published by: KT on May 16, 2013 21:23

Hello

In addition to this project widely used mixture ADF faces with HTML, JavaScript, CSS, JSTL.

JavaScript, CSS, and JSTL is not a problem, whereas - according to the JSF version - HTML is. JSF 2 is the first version of the JSF, which allows you to mix HTML with less side effects, if you use Facelets as view declaration language.

I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?

There is in the project

+ 1. mixture of html with ADF Faces components tags +.

This could ruin your pages, lead to update issues and - in case of frequent use in the trees - even destroy the functionality

+ 2. online use of JavaScript / CSS +.

Poor performance because of heavy weight pages. If you were using ADF Faces and your JS addresses the DOM instead of the architecture of client cJavaScript ADF Faces then chances are JS will fail for the components that have changed their HTML output (which has an impact on the DOM structure) or changes are not submitted to the server.

For CSS, CSS inlineStyle not applay to the DOM element that is external, which means for example af:input the background text color will color the lavel

+ 3. mix JSTL and JSF/ADF Faces tags +.

Dependa on how you do. JSF has postponed EL syntax, which means that EL resolves at run time, whereas JSTL resolves at compile time. So the race conditions could become a problem

Overall, it is difficult to say if things were coded wrong in the project (although for the use of HTML you can be sure) without seeing the code. It seems that the team that built the application however did not dare to the suite of recommended practices

Frank

Tags: Java

Similar Questions

  • Stress Test ADF Faces with JMeter, simulate multi user - unique number doc

    Hi all
    I was able to configure JMeter to test ADF faces 10g application, now is the time to define the load and the scenario.
    When reading JMeter docs, I'm curious if others has been doing so successfully and can share it. (at least Mr. Chris Muir...?  :)

    I have two questions:

    (1) the page I want to test is a Page of entry of order with master - detail (form - editable table).
    I f I just create a group of JMeter threads with Thread number = 50.
    These '50 users' insert exactly the SAME data, even if I have a single Unique constraint on a field "Order-Ref" (which is not automatically generated, but entered by the user).
    Is it possible to use a meter on JMeter, so this "Order-Ref" field will be filled with 'REF-1', ' REF - 2 "etc...?". (so that I can survive the unique constraint)

    (2) have you tried JMeter to insert data of editable table ADF?

    Thank you very much
    xtanto

    Search the concept of function in JMeter, more precisely the function of the counter:
    http://Jakarta.Apache.org/JMeter/UserManual/functions.html#__counter

    CM.

  • ADF faces with the META tag

    Hi guys,.

    I am with a problem. I need to add the META tag in a JSF page that works with ADF Faces. How does do it?

    The tag I need to add is:
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    Thank you very much

    http://technology.AMIS.nl/Blog/4631/ADF-11g-include-meta-data-tags-in-head-element-using-afdocument-and-metacontainer-facet

  • Formatting with HTML and CSS issues

    When I have upgraded to Dreamweaver CS5.5, make simple changes to a website has become more complicated.

    Let's say I want to Center a line of text. Before I could just press the center alignment button in the "Shortcut" pane at the bottom.

    Now, I find 2 choices in the "Properties" pane to see how to format a web page:

    One choice is HTML, I know. But there is no central alignment button here.

    The other choice is CSS, which I am not familiar with. There is a center alignment button, but when I hit him, he asked me to create a "new CSS rule" with a strong name as "style130."

    I worked on this site for many months without understanding what it means...

    http://www.brasstackspress.host-Ed.me/

    Now if I format anything (Center, "BOLD", etc.), some unrelated page will also get to the format.

    What should I do?

    Learn CSS.

    http://www.html.NET/

    Adobe dropped deprecated HTML tags "align" DW interface, so your code will not throw validation errors.

    HTML - http://validator.w3.org/

    To center the text, create a reusable class name called .center.

    . Center {text-align: center}

    Apply this class to your paragraph or the position since the HTML by clicking the drop-down list properties panel class.  See screenshot.

    class = "center"> this paragraph is centered

    This paragraph is not centered

    Centering of Pages, Images and other elements with CSS

    http://cookbooks.Adobe.com/post_Centering_web_pages_and_other_elements_with_CSS-16640.html

    Nancy O.

  • Some way to work in a text box with HTML javascript editor

    Hello

    I understand that javascript does not work in a text box with the HTML editor. I need to use an event of javascript onFocus on my article which is a text box with the HTML editor. Someone did another way? Thank you.

    Suni

    Suni,

    If you are talking about The MINIMAL HTML EDITOR or HTML STANDARD EDITOR then APEX is actually creates a version of the FCKEditor .

    You can record events with the FCKEditor using JavaScript. I find including code JavaScript in the footer of the page TEXT are preferable because it is less likely to encounter problems that FCK editors still instantiated yet.

    Here's and example popping up an alert on the entrance and exit.

    
    

    The first function (FCKeditor_OnComplete) logs an event OnFocus and OnBlur with the FCKEditor that its creation is complete. Aware however that in this example, the events will be be assigned to EACH instance of the FCKEditor on the page. If you want to reduce it to a single or to assign different events to instances of the editor, you could do it using the IF or CASE instructions inside the OnComplete function.

    I hope this helps.

    Doug Gault
    [Sumner technologies | http://www.sumnertech.com/]

  • Image with HTML and CSS placement - please help I'm a newbie

    Hello
    The CSS code for my entry page/index.html page is attached. Some great people helped me fix the css code so that the picture fills the space properly and looks the same in IE and Firefox. So now I have the photo in the right area, but in doing so, my text has fallen out of the area on the inside... EEEEEK
    Thank you!
    the Web site address so it can be accessed: www.jonasphoto.com

    Steve...
    Look at the site entrance page, and you will see that the news of the site entry are now down below...
    I like to keep the text within the borders
    Get closer... Thank you

  • Is it possible to disable text CSS and design with HTML only?

    I am designing the text html only IE: font, color, size. The only method I know is to highlight the text and then go to insert > Html > text objects. This method is tedious and time consuming.

    I don't no the arguments or reasons as to why I should be using CSS, I'm just looking for a solution to disable the design with HTML and CSS. I use Dreamweaver CS5.

    Thank you

    Paul

    The option to disable CSS has been removed from Dreamweaver CS4. CS5 is the same.

    If you have a strong need for the use of font tags, open the favorite category of the bar/panel insert, right click and select customize Favorites.

    In the dialog box that opens, select HTML in the menu of items available. At the bottom of the list, you can find fonts Tag Editor. Highlight it, and then click the double chevron to move it in the right panel. Click OK to insert the font tag editor in your Favorites.

    You can use tag editor of text fonts with font style tags.

    The alternative is to use the CSS inline styles that can be created using the menu rule target in the property inspector when on the left, the CSS button is selected.

  • Convert HTML/javascript AIR app AIR flex application?

    Hi all

    I have already built an AIR with HTML/javascript application I want to monetize.

    I would use the O2app e-Commerce Framework, which supports only this time created Flex AIR apps.

    My question: is there a simple way to "convert" an AIR of HTML/javascript app in Flex 3? I don't want to rebuild from scratch in Flex 3 application if I have to. :)

    Thank you

    Al

    Thank you very much for this information.

    Initially, I asked the question because, at the time, I thought that AIR Flex applications could be protected against copying, but it seems that they too can not be protected against copying (the exe file is created AFTER the installation).

    Thanks again,
    Al

  • Question about the mix of Trinidad component with ADF Faces

    Dear all,

    I have a requirement for complex layout that I can't do with just ADF Faces component.
    I found this blog nice wfrom Jobinesh http://jobinesh.blogspot.com/2010/11/layout-tips-organizing-page-content.html
    and I quickly realize that this will solve my problem.

    Please note that components of Trinidad has not all client components peer as we have for the ADF Faces. You may need to be measured while choosing this guy

    I'm just concerned about this line. I can't really understand what it means and how it will impact my programming of the ADF.

    Thank you

    Neliel,

    Which, in my view, that Jobinesh says it's that you will not be able to use the HTML elements of the Trinity as targets for partial triggers. As far as I know, using HTML of Trinidad (trh :) components with ADF is OK, but using 'clean' Trinidad (tr :), you can have problems.

    John

  • Request clarification on the ADF Faces + Trinity mix on the same page 11 g

    Hello

    I wonder if someone Oracle could indicate support of this. JDeveloper 11 g release notes contains a section titled, "ADF Faces and data visualizations," in which we find the following:

    The use of Apache MyFaces Trinidad components

    The mixture of Apache MyFaces Trinidad tr: tags with ADF Faces af: tags on the same page is not supported. You can mix the trh Trinidad: tags with ADF Faces AF: tags. However, there may be some problems of introduction to cross-browser with the help of the trh Trinidad: tags. As a best practice use the ADF Faces AF: layout tags as your first choice, unless the provision is not feasible using the trh Trinidad: tags.

    Does that mean that only DVT + Trinidad is not supported, or that someone else suggested that active af: tags are not taken in charge, or we cannot mix tr: and af: at all?

    Best,

    John

    John,

    the brief summary is that generally you are on the right side when you do not mix the components of the Trinity with ADF Faces RC components. It of IO to use components on separate pages, but not in a single page.

    The summary of average size is that not all components of Trinidad cause conflict with ADF Faces Rich client and that in fact the active components issue requests for PPR can cause serious problem. The integration of PPR is a major problem between the two batteries. If you use - for example trh:script to include JavaScript or CSS to your page ADF Faces, then it doesn't cause damage. Ditto for the layout to the Trinity labels that do not use PPR to disclose their children.

    Frank

    PS. : We had a bug filed against this and dev on both teams looked at how to solve the problem. It seems, however, that it would take major architectural changes

    Published by: Frank Nimphius on May 1st, 2009 12:58

  • Combination of ADF Faces and JSTL is advisable or trap?

    Dear all,

    Our applications(ADF/Webcenter) of fusion using JSTL and ADF Faces inside is advisable or pitfall. ADF Faces features are enough or do we need to rely on the JSTL functions? I prefer to use ADF Faces/JSF functions without the combination with others.

    for example 1


    < jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.1".
    xmlns:f = "http://java.sun.com/jsf/core".
    xmlns:h = "http://java.sun.com/jsf/html".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    xmlns:fn = "http://java.sun.com/jsp/jstl/functions" >

    for example 2

    < jsp:root xmlns:jsp = "http://java.sun.com/JSP/Page" version = "2.1".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    xmlns:f = "http://java.sun.com/jsf/core".
    xmlns:h = "http://java.sun.com/jsf/html".
    xmlns = "http://java.sun.com/jsp/jstl/core" >


    Best regards
    KT

    Hello

    Our applications(ADF/Webcenter) of fusion using JSTL and ADF Faces inside is advisable or pitfal?

    To suggest a rule: feature edge try ADF Faces before reaching out to the JSTL. The difference between JSTL and JSF in general, is that the JSTL expressions are evaluated in compiling page while JSF expressions are evaluated deferred. This difference can have an impact on the PPR updates and data rendering (which, in many cases I guess you can fix by defining the ADF Faces, content delivery component immediate instead of deferred). On a light background, I scored with a JSTL alert 'heads up' for this reason

    Frank

  • How to redirect to another page Using JavaScript in ADF Faces?

    Hi guys,.

    I have a case of user UI that has an af:menu which contains mutiple af:goMenuItem. When the user clicks on the menu, the menu slides down and the af: goMenuItem presents itself. As we know, you can set page destinations in af:goMenuItem to go to another page when the user has clicked, but af:menu itself cannot be redirected to another page. Well, the case of the user wants the menu itself could be redirected if the user clicks on it.

    So I think that the use of JavaScript to do this: when you click on the af: menu, redirect to another page. BUT, I've looked over the ADF Faces Javascript API and wasn't able to find this piece of code to do this. Any help?

    Another work around to the user scenario is to use the brands of HTML + CSS/JavaScript instead of af: menu and af:goMenuItem, but this changes the scope of the technology although it is not hard to do

    Any other idea to make the case of the user other than what I could think?


    Thank you guys!

    Jay

    Hello

    1. you can have a control hidden element to the navigation based on a case of control flow. In this case, you access the JavaScript command component create a new ActionEvent and he queued
    2 - JavaScript can use an af:serverListener to call a server side managed bean method to perform the navigation

    There is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event-driven framework and we do not support the developers of fight against the framework.

    Frank

  • ADF BC + ADF Faces 10.1.3.3: Ajax with ADF.

    Hi Comunity

    I developed an ADF Faces page with AJAX functionality, im not using other frameworks such as icefaces or richfaces I develop code ajax by myself. I try to add dynamic html tags in a table by incrementing row by row, when I combined a div with a binding value as the id #{status.index} results eventually equals the value does not print on the page.

    Any suggestions. ¿ ?.

    Hi Peter

    I had the same problem a few weeks ago.

    The limitation is that JSF 1.1 does not allow the mix and the matching of the elements HTML and JSf, I found the solution using af:script to print the tag html combined with the value #{status.index} as follows:

    I works very well for me.

    Good luck.

  • JDeveloper 10 g &amp; ADF Faces: how to pass parameters to the html page request?

    I have a simple HTML as follows:
    ...
    < name of the form = "form1".
    action = "http://myserver/MyApp/faces/start.jsp".
    method = "POST" >
    < label for 'USER' = > USER < / label >
    < input type = "text" id = "USER" > < / input >
    < input type = "submit" value = "Send" > < / input >
    < / form > < / body >
    ...
    In my ADF Faces application, I traced a javax.servlet.Filter custom class with the following text for the doFilter method:

    ' Public Sub doFilter (ServletRequest request, ServletResponse response,)
    FilterChain chain) throws IOException,.
    ServletException {}

    System.out.println ("filter in MyApp");
    Map map = request.getParameterMap ();
    User String = (String) map.get('zoom') ("USER");
    System.out.println ("map of ask size:" + map.size () + "user:" + user);

    ...
    }

    What is printed:

    02/11/16 14:27:26 filter in MyApp

    02/11/16 14:27:26 length of content: 0 coding: iso-8859-1 getContentType: application/x-www-formulaires-urlencoded

    02/11/16 14:27:26 size request card: 0 user CRDBApps: null


    What can be the problem?

    Thank you!

    Hi Wes Fang

    Maybe you can try to use "name" instead of "id" for the input tag?

    
    

    success
    Jan Vervecken

  • ADF Faces RC JavaScript docs

    Hello

    where are located the ADF Faces RC JavaScript docs?

    The only link I can find on the web is http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/js_docs_out/index.html
    which returns HTTP 404

    BTW: Same link is used on the [page ADF Code corner | http://www.oracle.com/technology/products/jdev/tips/fnimphius/index.html]


    Thank you
    Andreas

    This is the one you are looking for... ?

    http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12046/overview-summary.html

    Kind regards
    ~ K

Maybe you are looking for

  • What to do about an iMac running hot

    My iMac running Yosemite 10.10.5 slowed and I received a lot of beach balls to the point where I couldn't even force quit. Restart helps a little, but something was still wrong. So I ran Disk Warrior and the first he said was that the computer worked

  • All my Applications magically disappeared - why

    Hello For some reason, all my apps are gone. Last night I was with my computer, I installed a new program (PHPStorm) used for awhile and just before I got a notification from the system update so I clicked on the option to install and stop and went t

  • lost internet access after the connection to the server

    Have had this problem in the past and in the hope that a workaround is available. MAC OS X El Capitan worm 10.11.2 runs and loses the Internet when connected to a server/sharedrive(on Microsoft Windows environment).

  • OfficeJet 4500 g 510g - m: Officejet 4500 g 510g - m software for Mac

    I need to know if there is software for the MAC computer.  Just bought the MAC and this is my first one so really unaware of things like that.  If someone can point me in the right direction, I would appreciate it, of course! Thank you very much!

  • UFT install error file not found

    When you install MISS, I get this error message. I am able to locate the file, but I don't know if the record is correct. What should do?