[ADF, JDev12.1.3] How to Center horizontally in a form or a table (or in general a group of CiU) in the page?
Hallo,
I created a lot of pages and fragments containing the tables and forms (research).
By default, the content of the page is left aligned (and it's OK ) but now I want to center the content of my page horizontally.
For example the form should be cenetered horizontally on the page.
How can I achieve this?
Thank you
Federico
Should be very easy to do with a panelGridLayout defining a column having halign = "center".
Try this page:
Tags: Java
Similar Questions
-
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
-
[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 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 want to hide the "magnifying glass" to a field LOV.
This is possible only by using a CSS approach like this Ashish Awasthi (Jdev/ADF) Blog: search to hide from af icon: inputListOfValues using CSS & StyleClass-Oracle ADF?
Since then, I need to calculate in a bean managed if the magnifying glass must be hidden or not... I would like to know if there is an appproach simple and clean alternative.
Thank you
Federico
Hi Federico,.
You can use the same approach, as mentioned in the blog. Just you need not set the StyleClass on the page.
In the method of bean managed when you calculate that there should be no magnifying glass, then get the reference to lov and set its styleclass (LOV.setStyleClass) and refresh the LOV.
This way you can conditionally hide and display magnifying glass.
Thank you
-
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'd like to go to the page that contains an af:table of 2 different menus: "Edit/insert data" and "read data".
Is it possible to make a page that is read-only when the user accesses by "Read data" and that allows for changes when you access it through 'edit/insert data?
Or do I have to create 2 different pages?
Thank you
Federico
If the menu is outside the region, you must pass a parameter in the area and read this parameter passed within the region. You cannot directly access the bean of expanded view of inside the workflow.
You can check out my blog 11.1.1.5.0 JDeveloper: router to use to create new or modify existing line | JDev & ADF Goodies
That uses a router within a workflow to decide which page to display based on the parameter. Using this solution you can easily implement your use case using two different pages to show the table, a read-only, and the other to change.
Timo
-
Hallo,
the answer is in the topic
I guess it can be done in CSS... I've tried a few, but I managed only to horizontally align the content in the Center.
Thank you
Federico
Hi see Federico - Ashish Awasthi (Jdev/ADF) Blog: Customize with af: button (font, shape, size, color etc) count - Oracle ADF (12.1.3)
You can use like this in CSS
AF | : button {text
padding-top: 12px;
}
Thank you
-
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,
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 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 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
-
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
Maybe you are looking for
-
How do we know which email address I used to create my Skype account.
Hello I have a Skype account, but do not remember the email address I used for this account. I know that I used it in the past for Skype credit and most of my friends and my family have me in their list of contacts under this name. I created a new ac
-
Satellite L300D-10 q - restore to factory settings
Hello I have just received this laptop and would like to recovery it to its factory settings, but no disk not supplied with the laptop and it had Windows XP installed on Vista. The recovery partitions are still present but I can't seem to restore the
-
Satellite A660 - need driver wireless adapter
I recently did a clean install, and while I have most of the drivers, I can't seem to be able to properly install the wireless network card drivers. Whenever I try to install the WLan Intel driver from the Toshiba page, it installs something or rathe
-
Wi - fi has disappeared from my Satellite L500D - 16L
Please can someone help? the light on the front of my laptop wireless lights when you turn on for a few seconds, then turns off.It seems that some how wireless bits have been removed? He used to work, but now does not work? I need help fool proof tha
-
lost recieXbox 360 Wireless Controller for Windows
How can I get a replacement receiver