[ADF, JDev12.1.3] How to embellish (style) the af: menuBar?
Hallo,
in the homepage of my request, there is a menu bar.
His style is similar to that I can find in a desktop application.
I would like to know if there is some CSSs well made to beautify the menu bar and give it a style a little more closely the style of web.
Thank you
Federico
Federico, Google is your friend!
The problem is that you cannot copy just part of the skin. A defined appearance the identity of your application. It should be defined in sound together and not only at certain times.
There are a couple of good tutorials available (again Google it) and you must use the skin editor that allows you to see what changes you make are looking in the application.
Watch http://m.youtube.com/watch?v=QEfOpHtkXyI
Start: Oracle ADF Skin Editor 12 c (12.1.2)
https://blogs.Oracle.com/jdevotnharvest/entry/how_to_learn_adf_skinning
For ux Oracle RCUI Guidelines guidelines
And you use 12.1.3 http://www.oracle.com/webfolder/ux/middleware/alta/index.html might also interest you
Timo
Tags: Java
Similar Questions
-
[ADF, JDev12.1.3] How/where to set the session timeout
Hallo,
After a few minutes of inactivity, the browser displays a message to inform that the session is not more active and only OK been must be clicked to refresh the page.
If a dialog box "btf" has been opened on the left, it becomes...
I would like to know what is the right place/method to set a deadline.
If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).
The application of ADF Essentials and is deployed to the GlassFish application server.
My concern is... what should happen to the open operation / pending when the time-out occurs?
For example, the user is modifying an af:table but it has not clicked validate or cancel...
Thank you
Federico
I would like to know what is the right place/method to set a deadline.
For java web applications, you can set the session timeout in the web.xml file. (this is the global settings associated with all sessions)
If you wish, you can set the timeout of session by program (and this is related only to the current http session).
If possible I would like that when the timeout checks, the application performs a redirect to a page I like (for example the login page).
http://fortunefusionminds.blogspot.com/2014/04/how-to-redirect-to-custom-page-whenever.html
ADF: Session expires management redirect to login page | Bungbutan
ADF developers World: Detection and handling of user session expiry
My concern is... what should happen to the open operation / pending when the time-out occurs?
Well, session is destroyed, it will destroy all instances of AM and do rollback.
Dario
-
Hallo,
I have a master VO based on entities and a retail entity based VO to which JDev automatically created a link display (1 to 1 relationship).
In the request Module I programmatically access MasterVO and I would like to get the value of a field of DetailVO...
ViewObject vo = getMaster1(); RowSetIterator iterator = vo.createRowSetIterator(null); iterator.reset(); if (iterator.hasNext()) { MasterVORowImpl row = (MasterVORowImpl) iterator.next(); System.out.println(row.getField1); System.out.println(row.getField2); // ... System.out.println( <DetailVO.Field1> ); // How to...? // ... } iterator.closeRowSetIterator();
How can I achieve this?
Thank you
Federico
In MasterVORowImpl should be getter for the detail rows (if you selected "Include the accessors" option when you generated class MasterVORowImpl).
Dario
-
Hallo,
I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:
- the column headings of the af: table
- Visible property (true/false) of the columns af:table
- the actual query of the VO instance used to create the af: table
- the values of real bind variables passed to the query of the instance of VO
I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.
I'm a little confused on who use the code to achieve this... you kindly help me?
I did a similar qustion here
but then I guessed that it was preferable to create a new thread.Thank you
Federico
For this, you can use this type of code
Context LocaleContext = _adfTableBinding.getLocaleContext ();
for (attr AttributeDef: attributeDef) {}
Label As String = attr.getUIHelper () .getLabel (context);
_logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)
"Name:"+ label);
}
which produces this output
Timo
-
Hallo,
popups messages of faces that I take the floor in managed beans or auto-affichent by the application to show errors (e.g., https://dl.dropbox.com/s/hsje8m0meci2wai/FacesMessage.png?dl=0) do not adjust automatically based on the content.
I would like to know how I can fix this problem and:
- If and how I can style messages (content and containing);
- If there is a simple way to display error messages online (e.g., https://dl.dropbox.com/s/rbw9i4h80mfvcxd/ErrMesInLine.png?dl=0);
- If you can provide me with, if there are any, some nice links other ways to display messages in the ADF applications.
Thank you
Federico
Well, for automatic resizing, you can use this workaround: https://agungor.wordpress.com/2014/05/14/handling-un-resizable-facesmessage-popup/
Also, if I remember correctly, you can download the fix for this problem for Oracle Support(if you have support contract).
Inline messages you must provide the id of the component when you create messages of faces.
For global inline messages you need to af:messages component.
As an alternative, you can use something like this: Awasthi (Jdev/ADF) Ashish Blog: better interface user-display the notification message of jQuery (for error, warning, info) to Oracle ADF
Dario
-
Hallo,
I would like to create a cookie in my ADF application.
To start I used the code shown in this thread code example for create / read a cookie value? but the cookie seems to not be created.
It is not present in Firebug or it can be retrieved by the code.
Cookie userCookie = new Cookie("myCookie", "hello"); userCookie.setMaxAge(-1); FacesContext ctx = FacesContext.getCurrentInstance(); ((HttpServletResponse) ctx.getExternalContext().getResponse()).addCookie(userCookie); Cookie retrieveCookie = (Cookie) ctx.getExternalContext().getRequestCookieMap().get("myCookie"); if (retrieveCookie != null) System.out.println("My cookie is: " + retrieveCookie.getName() + " " + retrieveCookie.getValue());
What's not in the code?
There may be something to confiure in the application of the ADF?
Thank you
Federico
- Cookie userCookie is new Cookie ("MyCookie", "Hello");.
- userCookie.setMaxAge(-1);
- FacesContext ctx = FacesContext.getCurrentInstance ();
- (Ctx.getExternalContext () m:System.NET.FtpWebRequest.GetResponse ()) .addCookie (userCookie) (HttpServletResponse);
- Cookie retrieveCookie = ctx.getExternalContext () .getRequestCookieMap () .get ("myCookie") (Cookie);
- If (retrieveCookie! = null)
- System.out.println ("my cookie is:" + retrieveCookie.getName () + "" + retrieveCookie.getValue ());
Is - this code is run from the same method in java?
If this will not work (cookie is added to the http response if you can't get this until the next http request arrives)
Dario
-
Hallo,
I have a VO that selects records from a table databace where FkId = < value >.
For example: this is the database table...
ID RowDetNumber OtherFields FkId
1 3 1 ...
2 3 2 ...
3 3 3 ...
4 3 4 ...
5 4 1 ... |
6 4 2 ... | -VO selects these records (where FkId = 4 for example)
7 4 3 ... |
8 5 1 ...
9 5 2 ...
When a new record is created the field RowDetNumber must be calculated with the logic of the max (RowDetNumber) + 1.
So for the example above, the calculated value should be 3 + 1 = 4.
I would like to know how I can calculate the value and assign to the RowDetNumber attribute.
I did some experiments using a Groovy expression as a default value for the field, but I got only errors.
I'm a bit confused on how I can do so a few details / examples / tips are welcome
In particular, a small example for every possible approach would be happy.
Thank you
Federico
Federico, the solution mentioned in the block will work as it only generates unique numbers without guarantee that the generated numbers are without flaw. However, if you want to use max + 1 this normally means you want to have a sequence without gap. It is very very complicated in nature. It doesn't matter what application you're trying, there is almost always room for error, ending with duplicate numbers.
The trigger also works as the DB supports triggers on MS SQL.
If you don't need a number of gap-less for the attribute, you can use the groovy solution and just get a number of a sequence is is guaranteed unique and greater value, like the last number that you asked of the sequence. In this way, you can have the sorted records
ID RowDetNumber OtherFields FkId
1 3 1 ...
2 3 7 ...
3 3 9 ...
4 3 10 ...
5 4 3 ... |
6 4 5 ... | -VO selects these records (where FkId = 4 for example)
7 4 12 ... |
8 5 4 ...
9 5 6 ...
Timo
-
Hallo,
I have a LOV associated FieldB and showed it in the popup LOV, these must be filtered according to the value of FieldA (2 fields belongs to the same TableVO VO).
The LOV associated FieldB is based on a VO that has a binding variable 'BindCodInstitute '.
I would like to know how I can assign the vuale of FieldA to the variable binding.
What expression I have co-debtors variable binding?
Thank you
Federico
also see - https://blogs.oracle.com/aramamoo/entry/how_to_create_multi_level
-
Hallo,
in my application, I would use SelectOneChoiche components a range of years including start/end of the year can be different based on other values/conditions of display.
I found this thread helpful Andrejus Baranovskis Blog: select a choice with select elements Tag which explains how to fill a PLOUGHSHARE of a managed bean.
Would it be possible (and how) to create a reusable component (something to drag them to the design-time user interface) configurable with expressions of start/end of year?
This would avoid as me to write the code to fill the SOC whenever I need one of them.
Thank you
Federico
You can see this example ADF practice: component example declarative ADF which shows how to create a component declarative which shows a decimal lov.
This Oracle magazine article Oracle ADF: Build Your Own is another example that will guide you throughout the process.
Timo
-
Hallo,
I create a stubborn workflow that begins with a create operation on the table where a new record should be added.
The recording fields must be filled in by the user, but before committing, I have to fill a field of the reocord with the address IP of the PC of the user.
Could you kindly advice me which are the possible recommended approaches to achieve this?
Thank you
Federico
Hello
See this post: Blog of Zeeshan Baig: how to get the IP address of the customer in ADF merge request
You can use a createWithParams operation and to fill in this field.
Reference: Andrejus Baranovskis Blog: CreateWithParams operation for Oracle ADF 11g BC
Kind regards
Ruben.
-
Hallo,
on GlassFish 3.1.2 I have deployed my ADF Essentials application.
Now I configure GlassFish server to run my application using HTTPS/SSL.
I would like to install the certificate MyDomainCert.crt, Intermediate.cert and MyDomainPrivateKey.crt files and configure GlassFish.
Could you kindly advice me a clear and not to hard document that describes how to configure the application server?
Thank you very much
Federico
Finally, I reached the goal
These links also helped me:
https://javadude.WordPress.com/2013/03/22/GlassFish-v3-1-2-and-SSL/
In addition, I would say to use the free program "KeyStore Explorer" (key - homepage file Explorer) to easily import the certificates and private key in the keystore of Java.
Ciao,.
Federico
-
Hallo,
I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.
I need to fill programmatically after you click on the search button.
Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?
Thank you
Federico
I would like to know how to avoid that an af:table created from a VO istance automatically fill the area itself.
I need to fill programmatically after you click on the search button.
Use VO.executeEmptyRowSet () Andrejus Baranovskis Blog: Oracle ADF Tuning: prevention of the execution of the SQL query on the loading of the Page
Then I would turn off, and the button 'open file' if the af: table is empty or if af:table contains documents... enable how can achieve this?
Bind "disabled" property #{bindings.yourIterator.estimatedRowCount == 0}
Dario
-
Hallo,
I started to raise this issue with the rohanwalia type () in this thread but maybe it's better to make the question in a separate thread.
I have a page home.jspx with some user interface components (menus bars, text entry, buttons,...).
Unbounded workflow
loginPage.jspx - loginSuccess-> home.jspx
Based on the logged in user, I programmatically to hide (for example some buttons and menu items) or to add UI components on the page home.jspx.
Thus, in the managed bean (request scope, right?), associated with the page I want to write a method that before appear the home.jspx makes the task above.
{initPage()}
Here, I call an AM method for each component that says that if
-According to the user - it should be visible or not.
This information is stored in a Boolean vars, one for each component.
IT1.setVisible (it1visible);
IT2.setVisible (it2visible);
B1.setVisible (b1visible);
...
}
How can I do to make this method runs automatically when the page is rendered?
Thank you
Federico
Hi Federico
you use links to visible false, but before pageload links are not accessible at the bean so when you call after the page load button works but before pageLoad, it won't
so rather than use binding use variables of bean to the value true or false and provide references to the visible property of inputField
Suppose that to create a Boolean variable and getter setter now is the button click set a value false
Thank you
-
Hallo,
I have a page with 2 legs and they both contains an af:table created by dragging an instance of VO in the user interface.
The 1st tab uses a master VO while the 2nd uses a VO detail.
Between 2 your, there is not a link of VO master / detail.
Opening Details tab I update the secondary table by calling the method ExecuteWithParams of the detail VO instance (in a managed bean).
I would now like to generate a report that loop on the master table and that, for each line of master:
- He writes in the report;
- loops of registration of details (which are based on the master record) and also writes the report.
Could you kindly suggest me which is the best way to achieve that through a code to write in a managed bean?
Here I am interested how do to loop through the data, not in how to write the report.
Thank you
Federico
Yes it will affect the selected line. If you want to ignore try using this code
DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("DepartmentsView1Iterator"); ViewObject vo = iter.getViewObject(); for (int i = 0; i < vo.getEstimatedRowCount(); i++) { Row r = vo.getRowAtRangeIndex(i); System.out.println("DeptId= " + r.getAttribute("DepartmentId")); }
-
Hallo,
I have a VO with numeric columns. I dragged the VO to UI to create an af:table.
I would like to know if ADF allows you to easily add a footer to the af: table that automatically show the total of each digital line.
This is to avoid creating a just another VO only to calculate and show the totals.
Thank you
Federico
Why so complicated?
Groovy is your friend here. Cech Tech Blog of Rohan Walia: ADF - Groovy for a Total of a column in a Table amount or do you it directly in the DB using Analytics functionms as shown here Andrejus Baranovskis Blog: Analytic Functions Oracle for Total and averaging in British Colombia ADF
Timo
Maybe you are looking for
-
When I had previously had iPhoto open "iCloud" appears under "Sharing" and I was able to click on it to bring up the photos that I had shared and also those that others have shared with me. "iCloud" is so more from the list; How can I get that back?
-
Tecra 8100: Advice replace please - audio card?
My 8100 Tecra faithful and beloved which is ideal for my purposes locked up the other day, in the middle of a session. Restart windows resulted in blocking machine once Windows is running.I started in safe mode - no problem.I have disabled all device
-
Vista hangs in the window of "Sign Off"
My computer hangs up in the window "Logging Off" and will not be closed which needs to be cut. This only happens if I used once sleep or hibernation. If I turn on your computer and later to arrest him without using the sleep or hibernate closing oc
-
Original title: what is the number of the download version 03/03/2011 for Visual C++ 2010SP1 x 64 Redistributable? It is newer than the 10.0.30319(x64)? Roxio Creator 2012 stopped running and comes up with an error in the Visual C++ Runtime library.
-
Vista - can only map a drive to IP\share, not machinename\share
After an upgrade on up a laptop Vista SP1, this computer can now only map drives to the actions on the network by using the IP address of the remote computer. Example: NET use M: \\machinename\sharename DOES NOT WORK NET use M: \\192.168.0.115\share