Skin class customized for the element of the ADF.

Hi all

I use jdev 11.1.1.5.0 version

I create a skin (css) for my adf application.

where I set my table adf column property.

af|column::column-header-cell {
    background-image: url("../images/yellow_bg2_rep.jpg");
    background-position: center center;
    background-repeat: repeat-x;
    color: #C4112F;
    font-size: 12px;
    font-weight: bold;
    height: 25px;
    /*    line-height: 29px; */
    /*    padding: 5px 15px; */


    border-right: 1px inset #8C8E95;
    background-color: transparent;
}

and is applied to all components of adf table exist on request. but my question is I want to set a different style for different table not even for all the table.

So how can I achieve this.

any Suggestion?

Thank you

Manish

Hello

You can create named style classes and set the table accordingly styleClass property.

Ex:
.table1Style af | : column-to-head-cell {}

}

.table2Style af | : column-to-head-cell {}

}

and then set the table/column accordingly styleClass property.

Arun-

Tags: Java

Similar Questions

  • Creating instances of the class customized for XML nodes

    Hi guys,.

    I'm trying to load an external XML document in my application and create an instance of a custom class for each node in the XML file based on the value of some of their elements. Instances created later will end by in a DataGrid by the way. The problem I have is there seems to be several ways to make small parts of it and I have no idea how do them all gel. Initially, I use HTTPService to load the XML file, but I've seen people just use a XML object. Then, after that, I put the XML loaded to an ArrayCollection collection initially, but others used XMLList or XMLListCollection. I have no idea of what is the best way to do it.

    Finally, when I created all of these instances by looping through XML and their creation how I'll make them bindable to the DataGrid? I guess I'll have to group together them somehow...

    Any help would be greatly appreciated. Thank you

    Create a class customized for your 'point' of dataGrid dataProvider objects
    * Use HttpService to get the XML code.
    * use an e4x expression for the child nodes of the xml in an XMLList: myXML.children () or myXML.myNodes;
    * use a for loop on the XMLList
    * inside of the loop, create a new instance of the custom class
    * Of the [i] myXMLList, obtain all necessary attribute values and assign them to the appropriate properties in the instance of the custom class.
    * always inside the loop, use myArrayCollection.addItem (mycustomClass) to add the element to the collection of the dataProvider ArrayCollection.

    Tracy

  • Creating a custom for the current scale

    Hi guys,.

    I need help in the creation of a custom scale. I read motor current (analog I / P) and I want to show that on a chart and write it to a file. I need to use a linear scaling for custom scale. The slope is 2 and the intersection point is 0. I have attached the code to clearly indicate what I'm currently building. The way I put up right now, it's not the scaling. It has 2 spots in the code. I would like to create a custom for the first task, as in the attached code scale. I had a scale customized using VI to Express DAQ Assistant. But I do not see these options when I try to do the same with the DAQmx task. Please let me know how this can be done. Any help is greatly appreciated.

    Thank you

    REDA

    Ah.

    on the pallate DAQmx > advanced > the balance settings

    There is a scale property node and "Create Scale.vi"

  • What is the best practice for the enumeration for the ADF?

    Dear all,

    What is the best practice for the enumeration for the ADF?

    I need to add the enumeration to my request. ex: sex, marital status.

    How to deliver? Declarative custom components or is there another way?

    Thank you.
    Angelique

    Check out this topic - '5.3 fill view object Rows with static data' in Guide of Dev
    http://download.Oracle.com/docs/CD/E17904_01/Web.1111/b31974/bcquerying.htm#CEGCGFCA

  • Correct location for the ADF - settings.xml?

    What is the correct location for the adf ADF - settings.xml in JDev 11 g applications file? Documentation conflicted says:

    (1) as by Frank & Lynn Oracle Fusion Developer Guide pg 92, it appears in the correct location for the ADF - settings.xml is < workspace >/.adf/META - INF.

    (2) according to the ADF Web Guide, it seems, it must be < workspace > / < project > / META-INF: http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/ap_config.htm#BABCBJAB

    Which is correct? With our thanks,

    DMI

    Chris,

    the recommendation to create the ADF - settings.xml in the project source META-INF directory solves the problem of two projects to be used in a single workspace. If the two projects use ADFc MDS got confused. Notes version in R1 mentioned as follows:

    If your J2EE ADF (EAR) application contains several modules web application (WAR files) and contains more than one ADF task flows, then you can get unexpected behavior due to the web application using another its flow XML file with the same name of task (the problem is more likely to occur with the adfc config.xml file because each web application has usually one). You can avoid this problem by defining a 'root web application' separate for each web application (WAR). Web application at most one cannot have any parameters of root web app. To set the "web app root" for an application, you must add an XML file called META-INF/adf - settings.xml to WAR under WEB-INF/classes with content as follows:

    +
    xmlns:WAP = "http://xmlns.oracle.com/adf/share/http/config" >
    ++
    ++
    +
    +
    ++

    The value of the rootName attribute can be any name that uniquely identifies the web application (war) within the overall application (ear).

    In JDeveloper, the new file can be added as follows:

    + 1. Expand the web application project in the browser Application.
    + 2. Right-click on "Sources of the Application", and then select the item 'new ' +.
    + 3. Select "XML Document" and click OK.
    + 4. Type "adf - settings.xml ' under the file name +.
    + 5. Click on the "Browse" button, select the source directory of the project, click the iconic button "Create a new subdirectory" at the top right, type "META-INF" directory name and click OK, then click Select.
    + 6. You should now have a directory and file name "adf - settings.xml ' name '/META-INF +.
    + 7. Click OK to create the new file.
    + 8. In the Source Editor, paste in the XML file above and put a value appropriate for the rootName attribute (this is known as the parameter 'root web application').
    + 9. Make sure that the deployment for the Web application profile includes the new file META-INF/adf - settings.xml under WEB - INF / classes.

    So, if your application has a single web project then this configuration as documented in the book is good to use. To avoid the problem described above (which is in response to bug 8395585) you set it in the project's source. Note that adding adf - setting.xml in the project was presented as a work-around. The bug is closed with a fixed rate per 11.1.1.2, which means that, since the PS2 there should be no need to store the ADF - settings.xml in the source of the project more.

    So long answer that leads to a simple answer: the book is good and the documentation lists always bypass it. However, I'll fill a bug against documentation and make report understand (do not have the time to check the issue being fixed)

    Frank

  • Customized for the RT FIFO device details

    Hello

    I have a few questions about the FIFO VeriStand in a custom device asyncrounous.

    I saw a post earlier where a - 1 to the function of reading of FIFO of RT for him to wait indefinitely for an item to enter the FIFO. This allows pseudo - synchronize the PCL with a device custom asyncrounous. I wonder if this causes the boundary wire custom sleep or it stay active and keep returning? Is it possible to change the polling to blocking?

    Another quick question, if I only want to write to the RT FIFO when the data has changed it will cause unforeseen problems? As the channels time or need to wake up or something? Certain conditions can only write channels once every 1000 iterations of the PCL and loop device custom.

    I know that I can not write the channels selected in a FIFO RT, but can I create multiple FIFOs in a custom device to actually do the same thing? I imagine then having the outputs 1, outputs etc 2 in VeriStand.

    Thank you

    B

    Hi B,

    If you look at the RT VI pilot generated from custom device model you will see exactly what is happening. If you set the time-out for the reading of FIFO-1 then the botton loop will be essentially suspended unless there are items to read in the FIFO. Meanwhile, the thread will always be active because the RT read that VI is querying data during the time specified in the timeout.  I don't think that there is a way to change the FIFO mode to blocking since the dismissal of the FIFO is spent Veristand engine to the RT VI driver.

    The PCL writes and reads data from and to asynchronous custom FIFO device at each step of the execution. In your custom device, you can configure to read and process data of the 1000th step. I don't see any problems with it.

    You can have a FIFO for input channels and a FIFO for the output channels. You can write to an output channel given by writing data in a function index element in the output array that is passed to the function RT FIFO Write.

  • Filter KeywordFilterField customized for the tabular data model

    I am currently looking for the rows in the table that is filtered through the KeywordFilterField. The underlying data are in table form:

    Contact {name, phone, etc etc}

    The KeywordFilterField shows only what I pass to it (Contact.Name) by calling setSourceList() and filters that the channels in the list. So if I get the numbers, which will return a list empty, because none of the Contacts have numbers in their names.

    However, what I want to do is query the table, like a SQL query, retrieve lines that correspond to a part of Contact.Name or Contact.Phone. (Remember this application don't use SQLite.) I'm using RMS to persistent storage and I created my database and queries of base by hand.)

    Is there a way I could customize/override the filter query so that the KeywordFilterField calls my query functions rather than it's default filter String? It is a base with search CRUD application. I use KeywordFilterField because it's everything I need.

    Any help would be useful.

    It is possible with a text field and a list field, this way you can make your own personalized search for the keyword filter field does not search your data the way you want. In addition, I know that the keyword filter field is broken and that it was returning always completely incorrect search result for me.

    Here's an overview of what to do. Some things I can't tell you how for example to what is happening in the function "searchContacts" since it is up to you to write the code to do whatever custom search you want.

    class CustomKeywordFilterScreen extends MainScreen implements FieldChangeListener, ListFieldCallback
    {
        //just a slightly modified edit field for use in entering keywords
        private CustomKeywordField _filterEdit;
        //a standard list field
        private ListField _countryList;
    
        //temp variable to hold the last keyword searched so we don't search for it again
        //you'll see this used later on
        private String _previousFilterValue;
    
        //any other private vars you need to hold search results go here
        //we'll use an a Contact[] for illustration
        private Contact[] _contactResults;
    
        CustomKeywordFilterScreen()
        {
            super(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //initiaize to empty string
            _previousFilterValue = "";
    
            //searchContacts is whatever function you write to do the customized search you want,
        //in this example passing an empty string returns all contacts
            _contactResults = searchContacts(_previousFilterValue);
    
            //create the edit field and set it as the title of the screen so it's always visible,
        //even when you scroll the list
            _filterEdit = new CustomKeywordField();
            _filterEdit.setLabel("Search: ");
            _filterEdit.setChangeListener(this);
            setTitle(_filterEdit);
    
            //create the list for showing results
            _contactList = new ListField();
            _countryList.setRowHeight(-2);
            _contactList.setSize(_contactResults.length);
            _contactList.setCallback(this);
            add(_contactList);
        }
    
        protected boolean keyChar(char c, int status, int time)
        {
            if (c == Characters.ESCAPE)
            {
            //user pressed escape key, if there's something in the edit field clear it
            //otherwise handle it as closing the screen or whatever else you want
                if (_filterEdit.getTextLength() > 0)
                {
                    _filterEdit.setText("");
                }
                else
                {
                    //close the screen or do something else, it's your call
                    //maybe even do nothing, whatever you want
                }
                return (true);
            }
            else
            {
            //all other keystrokes set focus on the edit field
                _filterEdit.setFocus();
            }
            return (super.keyChar(c, status, time));
        }
    
        public void fieldChanged(Field field, int context)
        {
            if (field == _filterEdit)
            {
            //test the edit field's value against the previously searched value
            //if NOT the same then do a search and refresh results
                if (!_filterEdit.getText().equals(_previousFilterValue))
                {
                //cache the newest search keyword string
                    _previousFilterValue = _filterEdit.getText();
    
                    //search your data
                    _contactResults = searchContacts(_previousFilterValue);
            //update the list size to cause it to redraw
                    _contactList.setSize(_contactResults.length);
                }
            }
        }
    
        public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width)
        {
            if (listField == _contactList && index > -1 && index < _contactResults.length)
            {
                //draw your list field row as you want it to appear
            }
        }
    
        public Object get(ListField listField, int index)
        {
            if (listField == _contactList && index > -1 && index < _contactResults.length)
            {
                return (_contactResults[index]);
            }
            return (null);
        }
    
        public int getPreferredWidth(ListField listField)
        {
            return (Display.getWidth());
        }
    
        public int indexOfList(ListField listField, String prefix, int start)
        {
            return (-1);
        }
    }
    
    class CustomKeywordField extends EditField
    {
        CustomKeywordField()
        {
            super(USE_ALL_WIDTH | NO_LEARNING | NO_NEWLINE);
        }
    
        protected void paint(Graphics graphics)
        {
            super.paint(graphics);
    
            //Draw caret so the edit field always shows a cursor giving the user an indication they can type at anytime,
        //even when the focus is on the list field that is used in conjunction with this edit field to create a
        //keyword filter field replacement
            getFocusRect(new XYRect());
            drawFocus(graphics, true);
        }
    }
    
  • How to select the resolution of the PC to the customer for the execution of LV App?

    Hello

    My GUI is 1250 x 812. (assuming that it is the value of a pixel. This is measured using the width and height-> resize option object).  What resolution PC should I offer for the customer who is going to run this GUI?

    Thank you!

    1280 X 1024.

    List of common resolutions

    SXGA (1280 x 1024)

  • Generate custom for the host storage reports

    Hello

    I have a use case where a I need to generate storage reports customized for i.e host host-> screen-> storage reports (reports on :) is an extension on reports taken hosts storage supported? I've seen examples of views views of performance or monitor. Please see the attachment for details

    If the case is taken over the extension on storage reports, we add another report for the reports on as an action?

    Thank you!

    Sorry, the points supported only buckets are those described in the SDK Programming Guide (and in document ExtensionPoints.html)

  • Set a custom for the first password rule

    Hi all friends of apex

    How to define custom rules for the first password resets.
    for ex
    Password length 6 min
    Must have 1 capital
    Must have 1 tiny
    Time-out in 20 minutes
    Must have a punctuation character
    At least 2 characters must change password next



    Thank you!

    Not all these features exist, but here's how to set password policies in the Apex:

    http://docs.Oracle.com/CD/E14373_01/admin.32/e13371/adm_wrkspc.htm#AEADM204

  • Preflight check customized for the size of the page in the crop marks

    I would like to implement a preflight custom archiving that recognizes and flags up, like a mistake, an incorrect page in benchmarks of crop size.

    I can get to recognize the dimensions overall document (outside the crop and bleed marks), but not the original InDesign page located in the landmarks of crop size.

    I offer it ads many different magazines, which have different page sizes. AW all must be equipped with crop and bleed. Would be great if the preflight verify the dimensions of size real page were correct, not only the size of the document.

    Any ideas? Thank you

    Open upstream, switch on the Panel single control, and then in the menu options create a new check.

    In the search box type "size of the trimming area", then add to your check with dimensions of everything that you are looking to match.

    There is also a check for the nesting of page boxes which is useful to add to the stack, so you can take documents were not exported with a bleeding.

  • Signature custom for the maximum number of connections

    Hi, is there a signature to check the maximum number of connection to a host attacker to open a port to the victim? or should I make a costom for this signature?

    Hello

    You certainly can do it on the IP addresses, follow these steps in making a signature Atomic-ip looking for a tcp packet with only the SYN flag set on port 443 to the destination. You would then add a number of events for the number of connections you need. According to the site however this will flood the channel alarm with alerts, because traffic going out etc it will trigger. Of course, this can also be problematic with NAT.

    I don't know one of the guys ASA on these forums could give an answer better than me with regard to the configuration of the SAA.

    I understand they'RE a dynamic IP filtering or something that can be used to do this, although I've never configured myself.

    Thank you

    Neil

  • How to set a password that is customized for the linux model

    Hi, I tried to put a personal password for the model of linux but every time I deploy the model of linux, that the password is always regenerated by VCD;

    Pls advise

    Hi, can you confirm that you have managed to put the rest of the options mentioned Tim?

    You should see the option, if you enter the vApp and right-click on the virtual machine, you are trying to reconfigure? See the attached capture screen...

  • Counting: can we do "@import url('skin/base.css');" in the ADF?

    Hi all

    I am using counting in the ADF and it works very well but we want to organize custom skin file by extracting common style classes / global switch in a folder that could act as a base css file...
    (There are a few commercial reasons and also several separated css and all project not be in battery tech ADF...)

    I use a url('skin/base.css') @import; in my css and hope that she will do all the class world alias/style available in my file imported css...
    If my request is:

    1 does url @import ("path / < name of the css file > '") works in the ADF? [That I couldn't make it work... :(]
    2. If so, how can I access styleclass defined in the imported class?

    Thanks in advance...

    Not yet, although I have seen this issue on the list of MyFaces so he could come in the future. In the meantime, you can use the feature to add skin to fragment your files or expansion even as the case of the exact use of the skin. Please see http://myfaces.apache.org/trinidad/devguide/skinning.html for the skinning documentation explaining how to use skin-addition.

    Kind regards

    ~ Simon

  • Performance problem for the ADF calendar

    Hello

    We intend to apply the calendar adf for one of our customers. They will use the calendar as a planner. There will be at least 350-500 activities for a provider and a month.

    We are filtering of calendar data by selecting provider from the drop-down list box. However, execution of the view object takes about 4-5 seconds and activities appear 15 seconds. Total waiting time may be 20 seconds.

    How can I improve performance? Customer will use the calendar as a scheduler of tasks online. Therefore, it must be very fast.

    JDeveloper Version: 11.1.1.6.0

    Please note that all the components are bind to the backup of the attributes of bean whose calendar itself jsff layout.

    Steps for filtering:

    1 combo box action in backing bean:

        public void onResourceChange(ValueChangeEvent valueChangeEvent) {
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            if (valueChangeEvent.getNewValue() != null) {
                if(valueChangeEvent.getNewValue() != valueChangeEvent.getOldValue()) {
                    applyFilter();
                }
            }
            else {
                removeFilter();
            }   
            
            RequestContext context = RequestContext.getCurrentInstance(); 
            context.addPartialTarget(getC1());
        }
    

    2 ApplyFilter and removeFilter in backing bean methods:

        private void applyFilter() {
            DCBindingContainer dcbindings = (DCBindingContainer)ADFUtils.getBindingContainer();
            XxntcCalendarAMImpl am = (XxntcCalendarAMImpl)dcbindings.getDataControl().getApplicationModule(); 
            DCIteratorBinding garageIterator = ADFUtils.findIterator("XxntcGarageInfoVO1Iterator");
            Row currentGarageRow = garageIterator.getCurrentRow();
            Number resourceId = (Number)currentGarageRow.getAttribute("ResourceId");
            am.applyCalendarFilter(resourceId);        
        }
        
        private void removeFilter() {
            DCBindingContainer dcbindings = (DCBindingContainer)ADFUtils.getBindingContainer();
            XxntcCalendarAMImpl am = (XxntcCalendarAMImpl)dcbindings.getDataControl().getApplicationModule();  
            am.removeFilter();
        }
    

    3. the application model Impl applyCalendarFilter removeFilter methods and

        public void applyCalendarFilter(Number resourceId) {
            XxntcServiceCalendarEOVOImpl calendarVo = (XxntcServiceCalendarEOVOImpl)getXxntcServiceCalendarEOVO1();
            System.out.println(new java.util.Date());
            ViewCriteria vc = calendarVo.createViewCriteria();
            vc.setName("fiterCalendar");
            ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
            vcRow.setAttribute("ResourceId", "= " + resourceId);
            vc.insertRow(vcRow);
            calendarVo.appendViewCriteria(vc);
            calendarVo.executeQuery();
            
            /*calendarVo.setWhereClause(null);
            calendarVo.setWhereClause("RESOURCE_ID = :pResourceId");
            calendarVo.defineNamedWhereClauseParam("pResourceId", null, null);
            calendarVo.setNamedWhereClauseParam("pResourceId",resourceId);         
            calendarVo.executeQuery();*/
            System.out.println(new java.util.Date());
        }
        
        public void removeFilter() {
            XxntcServiceCalendarEOVOImpl calendarVo = (XxntcServiceCalendarEOVOImpl)getXxntcServiceCalendarEOVO1();
            calendarVo.removeApplyViewCriteriaName("fiterCalendar");
            //calendarVo.removeNamedWhereClauseParam("pResourceId");
            calendarVo.executeQuery();
        }
    

    Kind regards

    Anil

    Hi all

    Problem is solved.

    There are three important points for the solution.

    1 oracle has proposed to use a separate iterator for suppliers. Here is the explanation of SR Oracle:

    @ The iterator binding of the calendar and the iterator binding of the

    @ suppliers are the same, there is no point at all. Normally, the

    @ the iterator binding calendar is for the events calendar and the provider

    @ the iterator is on another iterator which gives information about the provider, the

    @ provider in the timing of the event is the foreign key to the iterator of provider.

    @You need to create a table for the vendor and then set object entity / view

    @ the object on the table, an iterator will be generated. The provider_id in the

    @ event table should be the foreign key to the table of the provider and the

    @ providerDefinition must point to the iterator of the vo provider.

    @ You cannot use the same table to set the calendar events and providers,

    @ This just doesn't make sense.

    2. I am able to set the iterator range size if I use a separate iterator for suppliers. Otherwise, ADF throws it npe: ' java.lang.NullPointerException: ADFv: calendar activity Id and Vendor Id cannot be null. "

    3. I forgot to use parameters of connection (StartDayTime, EndDayTime and time zones) in my query where clause. Creation of a criteria like this where clause "((HrCalendarEvents.START_TIME > =: StartDayTime) AND (HrCalendarEvents.END_TIME)"<= :enddaytime="" )="" )="" "="" solves="" fetching="" all="" rows="" problem.="" now="" it="" fetches="" just="" current="" time="">

    Kind regards

    Anil

Maybe you are looking for

  • IOS10, Coast stars, purchased playlist, iTunes

    I am running IOS10.0.1 on an iPhone 6. I am a subscriber of Apple's music. Where are the freekin' star ratings (?) on Apple's music application? I spent a decade meticulously curating my collection of music using the coast to stars provided. I have a

  • I can't get my phone to turn on

    Im having trouble getting my phone to turn on, Ive tried all the usual things to put on the back of the phone. The phone is fully charged, please help?

  • Lost an attached document changed to email Yahoo. Where at - it go?

    I opened a document (with Word 7) attached to an e-mail that I received in my Yahoo email account.  I've made changes in the document, click Yes, when asked if I wanted to save my changes, close the document, closed the email and Yahoo.  Now I can't

  • Download Driver b mn-510 wireless adapter?

    lost cd - does anyone know where I can download the driver for this?

  • My windows vista computer has the look of windows 2000?

    Hello. I have problems with my windows programs. I fell asleep last night in front of my computer, and when I woke up, I found that most of my windows programs like version of windows 2000 Microsoft word, excel and paint that old look and my scroll b