ADF class Naming Convention when the content compression is enabled

Hi all

I'm a user experience designer, I am currently working on a project that requires to use numbers for objects and custom Styleclass2 to meet the requirements of style, I've referenced the styleCalsses custom in the skin file and everything works very well, just as I expected.

But when my colleagues turned on compression of content to boost the performance of the application, all class names, including my custom Styleclass2 are converted into things like x 25, x 26, x1nh, x1ni...

Then manually, I have reproduced all the skin css attributes and changed all the names of those newly created class, although this method seems to work, I still don't know if it's the safe way and good practice for the future development, because there is nothing to prove that these new class names are unique and static which means one day my css may lose effect entirely.

Does anyone have the same experience when you use the compression of content and what is your recommendation when dealing with content compression?

Thanks in advance,

Joey

It is not safe to modify and use compressed names.  Instead, you should be specifying your style classes in the skin of the ADF.  Use a syntax such as

.myRedContentCell. Af AFPanelFormLayoutContentCell | inputText::content {}

color: Red;

}

Then in the jspx in class style property set the style class to be what I bold below

label = "#{bindings." DepartmentId.hints.label}.

required = "#{bindings." DepartmentId.hints.mandatory}.

columns = "#{bindings." DepartmentId.hints.displayWidth}.

maximumLength = "#{bindings." DepartmentId.hints.precision}.

shortDesc = "#{bindings." DepartmentId.hints.tooltip}"id ="it1.

styleClass ="myRedContentCell" >. "

Tags: Java

Similar Questions

  • Disable the scroll bar when the content is less than the viewport?

    Hello

    I have a vertical scroll bar has always shown (JScrollPane.VERTICAL_SCROLLBAR_ALWAYS).
    but I want that it should be disabled when the content in the display is lower at the height of the viewport.

    For example, browser Chrome in Windows: when you open Google, the content of the page is fairly low in height and scrolling in Chrome bar will be disabled. As soon as you have enough content on the page of the scrollbar will be active.

    How can I achieve this?
    Thank you

    Hello

    It isn't really a problem, I just know that it is a limitation of the SWING, (...)
    Almost all app have this behavior; It is not very nice visually.

    I don't have Chrome and haven't seen this problem until now, anywhere (but it is true, I'm way behind in terms of GUI mode).
    The behavior that I'm used to (and which Swing designers apparently supposed to be standard too), which is a scroll bar disappears when the width of the view does not justify it ( SCROLLBAR_AS_NEEDED ). Using SCROLLBAR_ALWAYS implies that you want to the scroll bar, no matter if the width of the merit. How the scroll bar looks like in this case sounds like a look and feel selection instead (I don't have older OSs, but maybe you know an operating system where this behavior is the norm? In this case, Yes, this is a limitation of the corresponding Swing L & F).

    Maybe there is a work around.

    Because this isn't the OS Lebanese armed forces, which can be "manually coded", by listeneing to resize events and thus change the appearance of the ScrollBar.
    Assuming that the "disabled" appearance scroll bar is what you are looking for (no idea, it's just an example, if that do not meet your needs, you can do something else in the placeholder code), here is one, certainly dense enough, workaround.
    Notice how the vertical and horizontal scroll bar is different (I applied workaround only to the latter).

    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    
    public class TestDisableScrollBar extends JPanel
    {
        private static final String SHORT_TEXT = "text";
        private static final String LONG_TEXT = "texttexttexttexttexttexttexttexttexttexttextte";
    
        private static void createAndShowGUI()
      {
            JFrame frame = new JFrame("Demo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JTextArea textarea = new JTextArea(5, 5); // just to take up some space.
            final JLabel label = new JLabel(SHORT_TEXT);
            JPanel view = new JPanel();
            view.setLayout(new GridLayout(2, 1));
            view.add(label);
            view.add(textarea);
            final JScrollPane widget = new JScrollPane(view, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            widget.getHorizontalScrollBar().setEnabled(false);
            widget.getViewport().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    widget.getHorizontalScrollBar().setEnabled(
                            widget.getViewport().getWidth()<
                            widget.getViewport().getView().getWidth());
                }
            });
            frame.getContentPane().add(widget, BorderLayout.CENTER);
            JButton alternateText = new JButton("Switch width");
            alternateText.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    label.setText(label.getText().equals(SHORT_TEXT)?
                        LONG_TEXT : SHORT_TEXT);
                }
            });
            frame.getContentPane().add(alternateText, BorderLayout.SOUTH);
            frame.pack();
            frame.setVisible(true);
          }
    
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
                  }
              });
        }
    
      }
    
  • [ADF, JDev12.1.3] Why the content of a line in my af:table disappears when I select a new line?

    Hallo,

    I created an af:table like this https://community.oracle.com/servlet/JiveServlet/downloadImage/2-12620067-7140/cmnt1.png following the advice that the kind has been suggested to me by Ashish (for details, see [ADF, JDev 12.1.3] how to display multiple records on the same page... not in a table, but display a form for each record)

    When the table is loaded for the first time, it appears correctly.

    But often (not always) when I select a new line, the selected line up to become "white" and its content disappears http://digilander.libero.it/flattit82/OTN_FILES/rowDisappearing.png

    This product especially if I change the value of 1 or 2 fields contained in the line.

    If I select several lines - one after the other one - the part visible AF: table may become totally white.

    Looks like a refresh problem.

    The table is in a tab.

    If I switch to the tab, then I it again once the table appears again correctly.

    Another thing I noticed: for example 2 rows have disappeared, I select an end of line I have empty in a required field: when I select another line, the popup "this field is required" appears in the row selected previously and magically all the missing lines are coming back!

    The problem seems to be less frequent if I set the selection table = none... but it is always present.

    You could you kindly help me to solve this problem?

    Thank you

    Federico

    Hi Federico

    See I've made a few changes in your application, this problem is due to your provision

    as there are a lot of line of the grid, groups, I simple used Panel of and provision of group only

    Download the Application

    Thank you

  • Y at - annex it in any way a timer for when the content is published online?

    I am building a website that will be a lot of different things being posted at different times during the day. I already have the content, but I don't want to have to download at random hours of the day. Is there a way to set a timer to automatically publish things online? I use Adobe Muse.

    Hello

    Unfortunately there is no such feature in Muse right now. I would say to create an idea for this here and let the people for that.

  • What is the syntax to name a webapp/category classification using named parameters when the category is a subcategory?

    {module_webapps id = "" # "filter = 'class' itemid = 'Category name' model = 'collection1' collection =" ' "}

    Works very well...

    {module_webapps id = "" # "filter = 'class' itemid ="Name of the Sub category"collection model = 'collection1' =" ' "}


    Can't seem to get the subcategory to work, this will only work on the top level categories?


    That something is overlooked or I just need to know the right syntax?

    {module_webapps id = "webappnameorid" filter = 'class' itemid =' 'name of the Parent category /Sub category name "collection = 'collection1'" model = ""}

  • Hide the caption only when the content of the field is empty for an Adobe form field

    Hi all

    We try to hide only the caption of a field if the content of the field is empty.

    (a) the following code allows you to hide all cru (the entire field including the legend). What we should change the code to hide the legend?

    -------------------------------------------------------

    If (this.) RawValue is nothing)

    {

    This.Presence = "hidden".

    }

    -------------------------------------------------------

    (b) another option would be to use the conditional formatting-> change of text in the caption to the text color white, if the content of the field is empty to make it invisible on print.

    Are there options available ALD or code that must be used to achieve one of the options above?

    Thank you in advance!

    Kind regards

    Roy

    Modify the script to:

    If (this.) RawValue is nothing)

    {

    xfa.resolveNode("this.caption.value.#text").value = "";

    }

  • When the content of the browser minimized site seems to move to the left

    When my demo site is minimized http://fingerprint02.BusinessCatalyst.com/ and I click on a menu item, the page scrolls down and to the left, this could be a simple anchor or a width that I'm missing? It works well when the browser in maximized window, any help would be great, thanks

    Hello

    Try to align all the anchors with the angle on the left of the browser area (all anchor points must be in a vertical straight line). In addition, when you click an item that links to an anchor, he's trying to put the anchor in place near the upper left corner of the visible area of the browser, and it is a normal behavior. It is more probably what is causing the right scrolling effect here.

    See you soon

    Parikshit

  • Turn on the border of the text field only when the content is entered

    Hello

    Can someone tell me a method to achieve the following objectives:

    Using LiveCycle ES2, I want to set some text to have no default border fields.

    When the user enters text into a field in the finished form, I want to turn on a border for this field.

    When there is no text in this field, I want to turn off the border.

    Is this possible? If Yes, are there any suggestions?

    Thank you!

    Just put in the output of the textfield event (in formcalc):

    If ($.isNull == 0) then

    $. border.edge.presence = "visible".

    else $. border.edge.presence = "hidden".

    endif

  • When the privacy mode is enabled, each its own separate tab is? A sneaky cookie created in a tab will be seen by another tab? Tracking cookie of some item hidden on one page can be seen on another website, if its open in another tab?

    Is a tab as a separate instance of the VM when privacy mode is enabled? Independent 3rd party cookies goes out. (They are). This type of behaviour can be turned on?

    In private browsing mode all cookies settings are the same as in normal mode, so all open tabs and windows share the same set of cookies.

    The only difference is that you do not have access to cookies created in normal mode (you get a new set) and the session mode PB cookies are never saved on disk and are deleted when the end of this session of PB.

    There are extensions that allow obtaining a whole independent cookies, drank, I don't know how they work in mode of PB.

  • from the start, password cannot sign in when the satellite wireless is enabled

    laptop works strangely lately, but I've not had problems with not being is not able to connect to the computer when the wireless is turned on and having to switch off to sign into the system.

    Hi copa94,

    1. did you of recent changes on the computer?

    2. how to turn wireless turn on or OFF on the computer?

    3. what type of keyboard and mouse do you use?

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you perform a clean boot and check.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • [ADF, JDev12.1.3] When the operationBinding.getErrors () .isEmpty () which are 1) common causes and 2) actions recommended to do?

    Hallo,

    When you call a method from the link layer errors my arrive and the code base to make sure it is...

    if (! operationBinding.getErrors().isEmpty()) {
      // Error handling
      return false;
      }
    

    In the error handling, we can save the error and perform other actions.

    List errors = operationBinding.getErrors();
    Throwable t = null;
    Iterator<Throwable> it = errors.iterator();
    while (it.hasNext()) {
      t = it.next();
      log(t.getMessage());
      // Specific action for the exception
      }
    

    Given that my error handling section don't ever serve during the tests... I ask you what kind of error may occur when you call a method in the link layer?

    What are the common mistakes that can happen?

    What actions are usually performed in case of error?

    Cancellation of the transaction?

    Output of the application?

    What have I to do not forget to check?

    Thank you

    Federico

    Federico, read http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23adf-1897193.html , who read the part called "Oracle ADF Error Handling Architecture". Frank described here kind of mistakes that each layer can lift and how to manage them. You can even start your own exceptions derived from local and get in the list.

    Delivery errors, it's something you have to decide on each case. Get an error while you commit could do a necessary restore, but only sometimes display a form one let the fix for the user of the problem. If you call a method in the rich throws module request a mistake because a service is not available, you can continue if you do not need data he or so while the application if the data are required.

    It must be decide for ach calls you make. In general you must connect at least a message with error to leave to find the best solution in a later version, and then just to save the message.

    Timo

  • Some features not available when the contents of the tags are used

    So the new function of Adobe Muse that allows for content to be applied and adjusted tags on different device site is based is great. However, I noticed when these tags are used, certain features appear to not work. Examples: In a setting of text marked with a content label, you can not "BOLD" specific words. Also, you cannot paste into a chart and apply the text wraps. Unless I'm missing something, is somewhat a disappointment.

    No you're not missing something. This currently limits for Muse. It is a relatively new feature that I am confident will grow as Muse is changing.

  • No response when the contents of package

    Hi Guy,

    I followed the quick guide to installation completely. However, when I'm about to package content in Flash Access Manager, I press the button 'Package Media' and are getting out and newspapers such as AdobeFlashAccess.log, it does not show any window on the Panel either warning dialog. I should be configured correctly according to the guide, I'm not sure that it's correct because I installed on the VPN servers.

    Is someone can you please tell me what step I was missing?

    Thanks for your answer in advance!

    Lewis.

    The error message in AdobeFlashAccess.log can be ignored unless HSM is used in your Management Server package. It is a known problem, and it does not block the Management Server package contents package.

    The real problem here is that there is an extra space in the path of Tomcat (for example, C:\Program Files\Java\Tomcat). I think that it is a bug in Java. We are woking on workaround to the present. Please make sure that there is no space in the path of your Tomcat folder for now. Thank you.

    Wang Chao

  • Naming Convention in the window of Swap Image.

    Hello

    I use behavior Swap Image and the dialogue window does not completely meaningless to me.  I called all my images and they are in my _images folder in the site folder.   On every image I imported, I assigned an alternative text.  Then why say 'unamed < img >' for my images?

    How can I display their name?

    Thank you!

    Gary

    When you say that you named yoru iamges, do you mean gave you the file names, or you select each image and then use the property inspector to assign a unique name in the name field?  It is the latter that is needed.

    Hope that helps.

    --

    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • ADF BC: named datasource in the module of the application

    We have a module application configured to use a data source named. The data source has been created in the weblogic server were deploy us our application.
    The problem is that when we wan to make changes on our model project, JDev tries to connect to the database, but it can not find the data source.
    What I have to, so we can continue to develop without having to change the configuration of the app module?

    Tiznit,

    Once u go for DataSource u cant run your model project

    This is incorrect. JDev 11 g will implicitly create a data source for you for each connection defined in your application with the name "java: comp/env/jdbc /DS" so if you name your data source in your other servers WLS in the same way, you can have a single configuration that works for the test via the tester AM, running in the integrated WLS and running on outside WLS.

    Documentation of reference [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcservices.htm#CHDJDBJB] here

    John

Maybe you are looking for