[ADF, JDev12.1.3] How to change the image displayed in a page based on a parameter in the URL?
Hallo,
the index of my application page is called by the URL that ends with .../MyApplication/faces/index
I want to add a parameter in the URL so that the picture in the page change based on this setting.
The param doesn't have to be the name of the image file to display, but only a code.
For example
? param = 1-> pathX/imageA.jpg
? param = 2-> pathY/imageB.jpg
? param = 3-> pathZ/imageC.jpg
...
You could you kindly help me in this?
Thank you
Federico
So if you have something like: .../MyApplication/faces/index?someParam=1
You can use:
Or you can link to custom as servlet:
Dario
Tags: Java
Similar Questions
-
Hallo,
I need to change the font size for all the inputTexts, LOVs of outputText, labels, etc. which are in different panelFormLayouts inside a panelBox.
I tried to define a CSS class and to assign to the panelBox but it has not worked.
You kindly suggest me an easy way to do this?
Thank you
Federico
Hello
You can try something like this:
AF | panelBox::content label, af | panelBox::content, af | panelBox::content entry, af | panelBox::content select {}
your style
}
At least the style of the components you named should be changed. If you need more you can add others.
Kind regards
Ruben.
-
How to change the url of sites in the new firefox tab page
If we open newtab in firefox 9 tabs are visible. How to change the url address of the previously pinned tab.
I found the solution for this problem.
1. type Subject: config in firefox url and click Enter.
2. an alert will be displayed when clicking on the button "I'll be careful, I promise!
3. type browser.newtabpage.pinned in the text box and click on enter.
4. right click and select the Edit option to change the URL.
I want to change this URL
[{"url": "http://localhost: 8080/Admin/login", "title": null},]After changing the URL in firefox
[{"url": "http://localhost: 8080/Admin", "title": "Admin"},] -
How to change the URL target in JDeveloper
Hi all
I am facing a problem when running the OAF in JDeveloper Page.
I connect to applications using VPNS.
When I run the Page-ÖAF, JDeveloper takes Url target as my office url instead of the url of the application server.
can someone help how to change the url target in the form url apps.
Thank you in advance.
Best regards,
Ravi.
-
How to change the URL of the OEM
Hi, I created my installation of Oracle 10 g on a laptop at home. I use XP and I wanted to know how to change the URL of the Manager of the company? I'm on a new network that is why want to do. I want the new URL to reflect the new network.
Kind regards
JohnJohn,
If your host name or IP address changes, you will need to EMCA allows you to reconfigure EM.
EMCA - deconfig dbcontrol db-rest drop
EMCA - config dbcontrol db-rest createor
EMCA - deconfig dbcontrol db
EMCA - config dbcontrol db-rest recreatemore info here
EMCA using when the name of the database host or IP address changes
http://download.Oracle.com/docs/CD/B19306_01/EM.102/b40002/structure.htm#sthref92 -
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
-
How to change the URL path?
How to change the default URL [http://localhost/] need to change like this http://server Address/analytics/saw.dll IP? Dashboard... we're using IIS, where I need to change... They is any code that I need to mention?
I find this code, but this one for OC4J
< html >
< head > < title > My OBIEE Application < / title > < / head >
< frameset lines = "0%, 100%" >
< frame src = "" noresize = "noresize" > "
< frame src = "move.html" >
< / frameset >
< / html >
Move.html
< html >
< Head >
< meta http-equiv = "refresh" content = "0; URL = http://localhost/analytics/saw.dll?Dashboard">
< / head >
< / html >
in
Published by: chir0n on January 27, 2010 12:30
Published by: chir0n on January 27, 2010 12:43Hi ChirOn,
I have no configuration of IIS for me to test this, but this gives a shot:
To redirect requests to another Web site or directory
1. in the services manager IIS, expand the local computer, right-click on the Web site or directory you want to redirect, and click Properties.
2. click on the home directory, virtual directory, or Directory tab.
3. under content from this source should come from, click a redirection to a URL.
4. in redirecting to the zone, type the URL of the directory of destination or of the Web site. For example, to redirect all requests for files in the directory of the catalogue to the NewCatalog directory, type/NewCatalog.Good luck!
Best regards
-Joe
-
How to change the url link that Slate Adobe provides when you publish your project
Slate Adobe - I would like to change the url link that Slate Adobe provides when I publish my project... Is it possible
Hello
I suggest you view the query on the forum of users of slate: https://feedback.photoshop.com/photoshop_family/categories/photoshop_family_adobe_slate
Kind regards
Sheena
-
How to change the url of the page to redirect to ADF
Hi Experts ADF,
I have a requirement like the exit command link, I need to redirect my google page for which I use code below.
ExternalContext ectx is FacesContext.getCurrentInstance () .getExternalContext ();.
HttpServletResponse response = (HttpServletResponse) ectx.getResponse ();
String url = "www.google.com";
try {}
response.sendRedirect (url);
} catch (Exception ex) {}
ex.printStackTrace ();
}
but after the execution of the function of the url in the browser address bar does not change to "www.google.com".
Help, pleaseMy fault. Simply redirect http://www.google.com to avoid related redirects
Frank
-
How to change the URL of google?
Hello
Currently I use Mozilla Firefox & Google Chrome for my navigation. But recently (4 days ago) it's URL has changed. Whenever I want to search anything through these two browser the URL appeared in 'Hong Kong' site. In search bar "https://www.google.com.hk".
This thing happen. But I don't want to "hk". How can I solve this problem?Try to clear the cache and delete cookies only from Web sites that are causing problems.
"Clear the Cache":
- Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.
'Delete Cookies' sites causing problems:
- Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
-
Hallo,
I would like to not display the asterisk in front of the label of the fields...
... so I set for all areas of the ShowRequired property to false.
I do not understand why the asterisk continues to display...
I have to set another property somewhere?
Thank you
Federico
Check the documentation for the showRequired property (jdev or online: ADF RichClient API - ).
As a workaround, you can put af:inputText in af:panelLabelAndMessage component and set simple = "true" to hide the label.
Dario
-
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 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 an extended session bean that contains some features and some simple attributes (integer and string).
I have written/public class implements Serializable MySessionBean without the implementation of serialization (de).
Now I would like to add a new attribute to a custom class to the bean, I defined: class contains attributes of simple type and some attributes in the hash table.
HashMap implements serialization (de)... so this means that my class is serializable and while I do not worry (de) serialization?
Thank you
Federico
Yes, some respond that in your other thread. The bean is serializable if each attribute, or if this is not it must be marked as transient. More info on http://www.javabeat.net/what-is-transient-keyword-in-java/
Timo
-
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
Maybe you are looking for
-
How to get 5.1 sound on Satellite P100-286
I had to replace my old P100-347 of 2 months, because of cracks on the hinge. The only model they had available was the P100-286. It is almost identical, except one thing, that I was not informed until I got it home and so too late to resume. Basical
-
Update on each start upward.
I have a windows vista service pack 2. In the last few weeks whenever I shut down the computer, a simple update rises, that on the next cast causes wait 6 + minutes before I can start working. This happens even when I start several times a day. What
-
I lost my desktop background on image and I'm left with one blank screen other than the icons
I am a user of Skype and when I go on Skype I lose my background image the top desktop icons on the desktop are always there but except that I have now a screen empty, I had this back by a movement of system restore but I have now lost the image agai
-
Factory setting removes viruses and malware on windows vista
What can I do? If I suspect that virus or malware on my computer.
-
Software for Peachtree Accounting XP mode on Windows 7
WANT TO ADD MY OLD VERSION OF 3.5 PEACHTREE ACCOUNTING SOFTWARE TO A NEW SERIES OF IQ 500 TOUCHSMAT I THINK THAT HAS VISTA. MY OLD BROKEN COMPUTER AND I LOVE MY ACCOUNTING SOFTWARE. I DON'T WANT A MORE RECENT VERSION OF THIS SOFTWARE. WHEN I TRY TO I