ER - Problem with ADF Faces filter when running ADF Faces within a portlet
I am attempting to get ADF Faces to run within Oracle Portal, i.e. within a portlet using the JPDK.
This, I am sure you are about to tell me, is not something that is fully supported, as yet.
However, I have been successful in getting MyFaces to run within a portlet, by customizing the form tag.
MyFaces, it seems, keeps track of the current viewid by storing it in the session, then uses this within the viewhandler and navigationhandler to determine the next view to load, based on the faces-config.xml navigation entries.
By customizing the form tag it is then possible to retrieve this viewid from the faces context and outputting it in the form's action parameter.
It is also possible, with a few more customizations, to run JSF RI within a portlet, i.e. by adding a custom viewhandler and loading a session variable with the current viewid from the faces context, then retrieving the viewid and outputting it as the action string in the customized form tag .
Unfortunately there does not appear to be any way of getting ADF Faces (EA19 version) to run as a portlet, with either the RI or with MyFaces.
I have configured a basic .jspx document in the <showPage> tags of the provider.xml file.
This uses only the form tag and a few input tags and works when executed directly within my portlet project in JDeveloper (http://localhost:8988/TestJSFAppContext/faces/htdocs/facesportlet/index.jspx) using a redirectfilter (*.jspx htdocs -> /faces/htdocs).
It is not possible to run ADF Faces with RI as a portlet since customization of the ADF Faces ViewHandler appears not to be supported.
When attempting to run this with MyFaces as a portlet, however, I get the following message:
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl verifyFilterIsInstalled
WARNING: The AdfFacesFilter has not been installed. ADF Faces requires this filter for proper execution.
I am having difficulty in understanding as to why this is happening but am guessing it must be something to do with either redirect URLs or due to the .jspx files being under /htdocs, i.e. the ADF Faces renderkit is checking that the ADF Faces filter is configured but the check fails since the filter does not execute.
I have configured the filter in web.xml, as detailed in the documentation:
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>ADF Faces Servlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>ADF Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ADF Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>and have modified the provider.xml file as follows:-
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<renderCustomize>true</renderCustomize>
<autoRedirect>true</autoRedirect>
<contentType>text/html</contentType>
<showPage>/faces/htdocs/facesportlet/index.jspx</showPage>
<editPage>/htdocs/facesportlet/FacesportletEditPage.jsp</editPage>
<editDefaultsPage>/htdocs/facesportlet/FacesportletEditDefaultsPage.jsp</editDefaultsPage>
</renderer>with the following tags also set:
<session>true</session>
<passAllUrlParams>true</passAllUrlParams>In order to ensure that the session stays alive so that the views are retrieved.
As I say, the page loads OK when run directly within the JPDK project within JDeveloper, with a redirect filter (*.jspx -> /faces/*.jspx) but not when run from within Oracle Portal.
In fact I have found that this filter is very sensitive, i.e. ADF Faces will not run in any project unless the configuration is exactly as above.
It seems that the MyFaces team have got around the problem of maintaining session state with redirections but that ADF Faces needs the page URL that is passed in to the filter to be consistent.
Is there some way around this, i.e. some kind of customization that I can implement to get the filter working?
Thnks
I have found a way to go round the problem.
I use the servlet 2.4/jsp 2.0 route and then
change the web.xml header to the servlet 2.3/jsp 1.2
format. Everything then works fine after this!
Please fix this for production.
Behnam
Similar Messages
-
Hi
can you help or suggest a remedy for this problem please?My Liquify effect only shows a black preview area and I cannot use the brushes. | Mylenium's Error Code Database
Mylenium -
When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. The change has something to do with Apple "push". I recently had a problem with"push" on iTunes when I tried to sync my iPod Touch. I have latest software for iTunes and iPod. Can anyone tell me what to do to get this change to install?
ptford wrote:
When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware
Since hardware cannot be changed with software, perhaps you would be so kind as to post the exact wording of the message? -
i have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything
Will u help me or not?
-
I have Windows 7 and just recently experienced a problem with itunes freezing up when I clicked on the "apps" tab which shows the apps that are loaded on my phone. Everything else in the itunes software seems to be working okay. The problem is in the part where you sync the newly purchased apps. The apps will all be blank that are downloaded and that part of the software crashes itunes or freezes up. I can get out of itunes okay after the freeze up, but it just stops me from syncing anything that I have newly added. If anyone has had this problem before or knows someone that has, please let me know how I can fix it. I have uninstalled and reloaded itunes 4 or 5 times, but the problem is still there. I might add that I have been using itunes and purchasing apps for 2 to 3 years without any problems. HELP.
You would get better response from the iTunes community forum.
Have a nice day! -
I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?
Hello,
Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
~Deepak -
Ive used compressor and then tried to put it in dvdsp put its not working. I am having problems with the audio or when i burn it , i cant play the dvd? any help would be appreciated
I suspect you are attempting to burn an HD DVD, which will not play on a DVD player...
But if you provide more details such as the settings you are applying in Compressor, then we would be able to provide you more accurate information.
How are you adding the files to Compressor?
In FCP, what are your footage properties (command-9) and sequence settings (command-0) -
Anyone having problems with Elements organiser 13 when try to import photos from Mac photos which was an upgrade from Iphotos on 9th April 2015. Before when I was using Iphotos all was ok...
hi I have been trying to do this, but PE13 comes up with a fail message saying that file types are not supported, am only trying to import jpeg files so can't understand this. So far have been unable to use PE13 at all, any ideas anyone please!
-
Im have a problem with my adobe id when i try to covert pdf files.
Im have a problem with my adobe id when i try to covert pdf files.
I think your question should go in the ExportPDF forum,
http://forums.adobe.com/community/exportpdf -
Hello I have encounted a problem with Photoshop. Normally when you start a new documant, you are given the options to have A4, A3, ect page set ups. These inbuilt page set ups seem to have disapeared, does anyone please know how to fix this? Many thanks Ben [email protected]
Hello Trevor
Thanks for your message. You can custom set pages but there are no preset of page sizes like A4, A3, ect. I cannot click the size preference, nothing comes up
Ben -
hi, i have problem with my apple id when i want purchase app even free one, asked me for complete my card informations... but i don't want to use debit card because already i have gift card and charge it in my id... please help me.
when i unchek the card information it was show me an error!Though you are being asked for card details it doesn't necessarily mean that the card will be charged for the purchase (unless you want to gift content). Have you tried entering your card's details to confirm the account ? You should then be able to remove it.
From http://support.apple.com/kb/HT5582 :
When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance
Is it a new account ? If it is then unless a new account is created by following the instructions on this page (the instructions won't work with existing accounts) : http://support.apple.com/kb/HT2534
then you will need to enter card details (debit cards are no longer accepted in all countries) before the account can be used to download any item from the store. -
I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the automatically uploading of old material?
ThanksYou have 2 unreachable statements in this method.
public static int eval(String s2, String op, String s3) {
return lookup(s2);
return lookup(op);
return lookup(s3);
} You're missing a } at the end of this method:
public static int lookup(String s) {
for(int k = 0; k < symbols.length; k++){
String symbol = symbols[k];
if(s.equals(symbol))
return k;
}You have some loose } and ; at the end of the file:
public static void main(String args[])
commandline();
} -
IS ANY ONE HAVING PROBLEM WITH LIGHTROOM CC BRUSH WHEN THE GPU IS TURN ON
F. McLion wrote:
Update your graphic card driver to the latest version.
btw.: Rule number 2 - Do not use all caps - Netiquette Wiki
And for a very practical reason from your point of view: using all caps looks like SHOUTING, and people will concentrate more on the SHOUTING than on answering your question. Some will just ignore you for this reason.
If updated drivers don't fix the problem, perhaps you can tell us what is the "PROBLEM WITH LIGHTROOM CC BRUSH WHEN THE GPU IS TURN ON" that you are having. -
My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?
I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported. -
İ have a problem with my itunes accounts.when i want to buy in-app features i got an error that;
"Please comtact with itunnes support for completing this process"
İ checked my device settings and tried my account with another ios device but result not changed.i still get same error.my credit card address info and my account address info same with each other.i tried my other credit cards but i got same error.
Please check my account details for solving this issue.
My account details :
email: [email protected]These are user-to-user forums, you are not talking to Apple here.
You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, the try selecting Purchases, Billing & Redemption
Maybe you are looking for
-
There's any cable to connect my iPhone 4S with the TV
I have not any apple tv or something like that! I'm only asking about any cable to connect my iPhone 4S to my PanasonicTV. Thanks at all!
-
Dynamic PL/SQL Report with html embedded in result
Hi, I am trying to embed an html image tag element in an query result. I have followed the how to example (MS SQL down; Oracle up) successfully. However I now require the query to be dynamic based upon sone filtering criteria simalar to the how to ex
-
Each month I email out our Parish Newsletter to about 120 addressees. This month, for the first time, it failed to deliver, returning an error message saying that I am exceeding the temporary limit of the server and that I have too many recipients.
-
Firefox Hangs Downloading and Displaying PDF Files
I've had a problem with Firefox for several years where it hangs in the middle of the file when downloading and displaying a PDF file. Typically it downloads a few hundred kilobytes and then stalls. Recently I upgraded from Acrobat 8.1 to Acrobat 9.
-
Just installed Firefox for Windows8. The default page display is, I'm guessing, 140%. I actually have to zoom out to get them to a normal size. Is there any sort of settings option that will let me set a smaller default display for web pages?