File uploading in ADF faces
I tried to use af:inputFile component to upload files, but i can't upload file bigger than 2K, for example i received:
Successfully uploaded file 1.txt (4337 bytes) - file.getLength() returns
but:
Available to upload : 2048 - file.getInputStream().available() returns
I try to set in web.xml params:
<context-param>
<!-- Maximum disk space per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
<!-- Use 5,000K -->
<param-value>5120000</param-value>
</context-param>
<context-param>
<!-- Maximum memory per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
<!-- Use 500K -->
<param-value>512000</param-value>
</context-param>
<context-param>
<!-- directory to store temporary files -->
<param-name>oracle.adf.view.faces.UPLOAD_TEMP_DIR</param-name>
<!-- Use an ADFUploads subdirectory of /tmp -->
<param-value>D:\tmp</param-value>
</context-param>
but nothing changed. How can i upload file bigger than 2K ?
JDeveloper 10.1.3
Application Server: OC4J
Hi,
set the following context parameter in web.xml
<context-param>
<!-- Maximum memory per request (in bytes) -->
<param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
<!-- Use 5000K -->
<param-value>5120000</param-value>
</context-param>
Frank
Similar Messages
-
Threading problem during File Upload with Apache faces upload tag
First I am going to tell you "My Understanding of how JSF Apache Upload works, Correct me if i am wrong".
1) Restores View (to show Input box and Browse button to facilitate users to select a file for upload)
2) Translates Request Parameters to Component Values (Creates equivalent components to update them with request values).
3) Validates Input(Checks to see whether the User has input the correct file)
4) Updates Backing Bean or Model to reflect the values.
5) Renders response to user.
I am uploading huge files of sizes 400MB and above with the help of JSF apache extensions tag
<h:form id="uploadForm" enctype="multipart/form-data">
<x:inputFileUpload style="height:20px;" id="upload" value="#{backingbean.fileContents}" storage="file" size="50" />
</h:form>
In the backing bean
private UploadedFile fileContents;
public UploadedFile getFileContents() {
return fileContents;
public void setFileContents(UploadedFile fileContents) {
System.out.println("File being uploaded...");
this.fileContents = fileContents;
Since, the file size is so huge, I am using temp folder to use for the apache tag instead of memory.
In web.xml i am using like this
<filter>
<filter-name>ExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>600m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>10m</param-value>
</init-param>
<init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/uploadfolder/</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
The upload process is working perfectly fine.
Now coming to the problem:
Suppose one user is logging into the application & uploading say 400MB of files.
Until these files are linked to the model objects as my understanding of step 2, if second user tries to open the application he gets stuck with the loading page.
The page gets loaded only after the request files are linked to the component values(Step 2 above) and updates the backing bean's values.
I don't see any error in the logs. User is getting stuck. The user is getting stuck only when uploading the files. The other operations like searching are not blocking any other activities performed by the user.
Server used: IBM Application Server V6.0. CPU is normal, memory usage is normal.Dear friend,
i am also trying to upload using the common file upload.
when try to run the file error is coming
can give some suggestion.
can i use if concurrent user file upload at a time -
Java OutOfMemoryError on File Upload in ADF
Hi All,
I am using JDeveloper 11.1.1.5.0.
I am uploading a file in ADF. i should be able to upload files upto 10MB. below is the method I am calling when user puts the filename.
public void setUploadedFile(ValueChangeEvent valueChangeEvent) {
UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
if (file != null && file.getLength() > 0l) {
filename = file.getFilename();
filetype = file.getContentType();
try {
InputStream is = file.getInputStream();
long length = file.getLength();
if (length > Integer.MAX_VALUE) {
// File is too large
byte[] bytes = new byte[(int)length];
int offset = 0;
int numRead = 0;
while (offset < bytes.length &&
(numRead = is.read(bytes, offset,
bytes.length - offset)) >= 0) {
offset += numRead;
if (offset < bytes.length) {
try {
throw new IOException("Could not read complete file");
} catch (IOException e) {
e.printStackTrace();
is.close();
byte[] encoded = Base64.encode(bytes);
filecontents = new String(encoded); //getting java.lang.OutOfMemoryError: Java heap space error here
} catch (IOException e) {
e.printStackTrace();
}else{
}I am getting a java.lang.OutOfMemoryError: Java heap space error at the mentioned point. This is happening for files larger than 5MB.
My web.xml have below entries.
<context-param>
<param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
<param-value>512000000</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
<param-value>51200000</param-value>
</context-param>
<context-param>
<!-- directory to store temporary files -->
<param-name>oracle.adf.view.faces.UPLOAD_TEMP_DIR</param-name>
<!-- Use an ADFUploads subdirectory of /tmp -->
<param-value>/tmp/ADFUploads/</param-value>
</context-param>how can i resolve this issue?
regards,
Rajanbyte[] bytes = new byte[(int)length];means that you try to load the whole file into memory (regardless of the parameters in web.xml). And after the file is loaded you need the same amount on memory for
filecontents = new String(encoded); You should upload the data from the stream into a file and then process the file when you need to do it. For this you can use http://projects.apache.org/projects/commons_io.html
Timo -
XML file Upload in ADF UI page
Hi,
I have following requirement:
a) There will be an upload button on the ADF UI page.
b) The ADF UI will allow user to browse and select the XML file
c) Once XML file is selected there will be a Load button.
Note: I am fine till step c)....
d) Upon the Load, UI Screen should be populated with the XML content.
e.g. UI screen will have Book Title and Author text boxes and the data for Title and Author should be loaded from XML file.
e) Once data is loaded in ADF UI page (from XML) , it should allow user to modify Title and Author in UI screen.
f) After modifying the data, user should be allowed to save modified content either in XML file or Database.
Note: On the OTN forum I posted similar question and I found the partial solution of using the URLConnection Data control, however this data control does not allow you to modify the content on the ADF UI page.
ThanksHi,
Note: On the OTN forum I posted similar question and I found the partial solution of using the URLConnection Data control, however this data control does not allow you to modify the content on the ADF UI page.
Not quite true what you say. The data control shows the data as read only. However, setting the updateable property on the metadata will allow you to create an input form, which is editable. For this, in the Data Control for the URL data control, select the collection and choose "Edit Definition" from the context menu. Select Attributes and if this doesn't show the attributes, follow the link in the Attributes field. Then select each attribute and set the updateable property using the PI
The question then is how you perform the update, which is what the URL data control doesn't do for you. For this you need to expose methods in a POJO that you then expose as a POJO data control. With your knowledge about the location and name of the XML file, you can then use JAXB to upload the XML, or a database bound collection (EJB, ADF BC or JDBC) to write changes to the database. Note that JAXB could also be used read from teh XML file and show the data in the UI using the JavaBean Data Control.
To access the object to use for updating the XML file or the database, you use ((DCIteratorBinding)bindings.get("IteratorNameInPageDef")).getCurrentRow().getDataProvider()
Frank -
Hi,
I have a project developed with ADF-Faces. I've copied it and pasted in another computer. This other computer has installed jdev 10.1.3.4, same version used for developing, and loaded the project without problems, aparently. When I tried to buil the project I have compilation errors due to missing libraries. I went to the web project's properties and found at the Libraries options that all ADF-Faces related entries have problems and can't be found, and, when opening files that use ADF-Faces objects imports can't be resolved. JSP pages won't find the tag libraries. How can I fix this problem?
Any help is mostly welcome. Thanks.thanks for your reply.
I did try that. In the project properties' window, down in the Libraries I had five adf entries, which were masked as with problem:
ADF Common Runtime
ADF Controler Rintime
ADF Faces Cache
ADF Faces Runtime
ADF Model Runtime
I removed them, and tried to add them again, but only two loaded again out of the five:
ADF Faces Cache
ADF Faces Runtime
The same happened in the JSP Tag Libraries menu. I had
ADF Faces Cache 1.0
ADF Faces Components 1.0
ADF Faces HTML 10_1_3_2
JSF Core 1.0
JSF HTML 1.0
deleted and tried to add them again, but only two out of five were available
JSF Core 1.0
JSF HTML 1.0
Any ideas what might be the problem? -
A Question about ADF Faces, File Uploading in distributed environment
Hello,
I am using ADF Faces for my project. In my project members will be able to create their albums and upload their photos..
The problem is that i can do upload in a single server enviroment but i dont know what will happen when count of members will grow.. What is the best way
for managing these photos in clustered enviroment. 1 Server will not be enough if too many people upload their photos.
I do not have exact server number because i will add additional server nodes when it will be necessary, so i must think how to do that before production.
Do you advice me to use XML or keep addresses of photos in database? Or anything else? As i mentioned, i dont know how many servers i will have... maybe 1 maybe 5 maybe 10.
Thanks for your helps..Hi,
First of all, thanks for your replies..
Actually i do not want to keep all of videos and photos in database. Keeping them in directories will be better for me but i do not know how to share them between multiple server nodes..
This is the thing that i have never done before..
Can you please tell me the terms & keywords that i need look for? So i can find some documents about making this happen.
Thanks again.. -
How to Upload/Attachment File in MYSQL ADF???
HEY Guys...
How to Upload/Attachment File in MYSQL ADF???
Regards Ninja,You need to provide more information.
Which jdev version do you use?
Which ui technology?
I see two question to be answered:
1) load the attatchments ADFrc af:inputFile (http://technology.amis.nl/blog/2297/adf-faces-file-uploading-it-is-really-that-simple)
2) store the loaded data in the DB -> mysql doc or google should have the needed information
Timo -
ADF BC / JBO-25009 BlobDomain / file upload problem
That's terrible problem, what time the Oracle is planning to solve it for? else what can we do?
Mucahid UsluHi Frank,
I know it is not a bug, just i think why does not the blob type handle as easy as other datatypes, so it requiers additional handlers.(because i am using jheadstart, it creates easily :)
also i've found your article about download and upload files at following link;
http://thepeninsulasedge.com/blog/2006/11/06/adf-faces-and-adf-bc-fileupload-and-blobs-continued/
Regards.
Mucahid Uslu -
I'm using JDeveloper 10.1.3 Developer Preview along with ADF Faces EA15. I'm trying to set the parameters oracle.adf.view.faces.UPLOAD_MAX_MEMORY and oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE to control the maximum allowed size of uploaded files and used the following tutorial on Oracle's website:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/fileUpload.html
It says that these two parameters should be used in web.xml as filter initialization parameters of the AdfFacesFilter, but they only work for me when I use them as context initialization parameters.
So is this a bug in ADF? Or is it just that the documentation hasn't been updated?
ThanksThis discrepancy still exists in ADF EA16.
The work around is as you suggested to use the
<context-param>
<param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
<param-value> myNumericalValue</param-value>
</context-param>
Fill in your byte value for myNumericalValue.
Can someone from the Oracle please respond to this? -
Error message in adf-faces-config.xml file in myEclipse
hello,
i'm trying to customize appearance of my JSF/ADF Faces app (which worked fine until now), and tried to insert a adf-faces-config.xml file in my WEB-INF directory, this is it (copied from a tutorial) :
<?xml version="1.0"?>
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<!-- Enable debug output -->
<debug-output>true</debug-output>
<!-- Pick accessibility options based on a per-user managed bean -->
<accessibility-mode>#{user.accessibilityMode}</accessibility-mode>
<!-- A silly use of EL: English users get one appearance, -->
<!-- others get another -->
<skin-family>
#{view.locale.language=='en' ? 'minimal' : 'oracle'}
</skin-family>
</adf-faces-config>
after saving the file (in myEclipse) i get the following error message on the second line :
cvc-elt.1 : Cannot find the declaration of element 'adf-faces-config'
what does that mean and what should i do ?
thx...hello,
i'm trying to customize appearance of my JSF/ADF
Faces app (which worked fine until now), and tried to
insert a adf-faces-config.xml file in my WEB-INF
directory, this is it (copied from a tutorial) :
<?xml version="1.0"?>
<adf-faces-config
xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<!-- Enable debug output -->
<debug-output>true</debug-output>
<!-- Pick accessibility options based on a per-user
managed bean -->
<accessibility-mode>#{user.accessibilityMode}</accessi
bility-mode>
<!-- A silly use of EL: English users get one
appearance, -->
<!-- others get another -->
<skin-family>
#{view.locale.language=='en' ? 'minimal' : 'oracle'}
</skin-family>
</adf-faces-config>
after saving the file (in myEclipse) i get the
following error message on the second line :
cvc-elt.1 : Cannot find the declaration of element
'adf-faces-config'
what does that mean and what should i do ?
thx...Hello again,
i'm still stuck with this, could somebody PLEASE give me a hint ?
thx,
dom. -
File upload, download using ADF UIX and not JSP
I have examples for the file upload, download using JSP
But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
Users will select a file from their desktop
This will be stored into the database (Any document. Word, Excel)
When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local systemSure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
public class ProgressListenerImpl implements ProgressListener {
private int percent = 0;
public int getPercentComplete() {
return percent;
public void update(long pBytesRead, long pContentLength, int pItems) {
if (pContentLength > -1) { //content length is known;
percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
}So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
ServletFileUpload upload = new ServletFileUpload();
ProgressListenerImpl listener = new ProgressListenerImpl();
upload.setProgressListener(listener);
request.getSession().setAttribute("ProgressListener", listener);
...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
response.getWriter().println("" + listener.getPercentComplete());
...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
HTH -
How to solve Fusion ADF file upload and download?
Now we are building web application with Fusion ADF (JDeveloper 11.1.2.0.0). We want to downloading and uploading from tables.Is there any special tool in Fusion ADF or should I going with traditional java coding. Thanks
Actually ADF Provide Components for file upload and download
Download :
<af:fileDownloadActionListener/>
See tagDoc: http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_fileDownloadActionListener.html
Upload
<af:inputFile/>
See tagDoc: http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_inputFile.html
Edited by: -CHS on Jul 6, 2011 9:52 AM -
Upload and download file in jdev adf
hi,
i'm still looking for upload and downlaod files in jdev adf
any idea sir
TQHi spnolin,
Can u tell me how to download a file from server, so that the client can get the file. such as click on the link or button, and the pop up windows (save as) appear?
Please tell me in details. if possible provide the example code as well and some explanations.
Thx in advance
FELIX -
ADF FACES: jdeveloper hangs on opening a .jspx file
I may not have had this file open since updating to EA13, but I'm not positive. Upon trying to open the file (code below), jdeveloper hangs. It sucks down roughly 50% of the CPU and the memory footprint slowly grows (about 3 MB per minute). As of now, I've tried restarting jdeveloper and then opening the file, but the behavior is the same. I have let it run for nearly 15 minutes and it is still hung (to the point that the display is not redrawn when a window, such as the task manager, is closed after obscuring part of the jdeveloper window).
I'm running jdev version 10.1.3.0.2.223
ADF Faces EA13
On windows 2003 Server
Here's the code:
<?xml version='1.0' encoding='iso-8859-1'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/EA13"
xmlns:afh="http://xmlns.oracle.com/adf/faces/EA13/html"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
<f:view>
<afh:html>
<afh:head title="Case Details">
<!--<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>-->
<title>
Case Details
</title>
</afh:head>
<afh:script source="js/mwb_gecko.js" rendered="#{clientInfo.gecko}"/>
<afh:script source="js/mwb.js"/>
<afh:body>
<af:form>
<af:panelPage title="Case Details">
<f:facet name="messages">
<af:messages/>
</f:facet>
<f:facet name="brandingApp">
<af:panelGroup>
<af:outputFormatted value="MedCierge Workbench" styleClass="OraHeader"/>
<af:objectImage source="/images/pbs.gif"/>
</af:panelGroup>
</f:facet>
<f:facet name="brandingAppContextual">
<af:outputFormatted value="Flagship Healthcare Management, Inc."
styleUsage="inContextBranding"/>
</f:facet>
<f:facet name="menuGlobal">
<af:menuButtons>
<af:commandMenuItem text="Home" action="agenthome"/>
<af:commandMenuItem text="Logout" action="logout"/>
<af:commandMenuItem text="Help" action="help"/>
</af:menuButtons>
</f:facet>
<f:facet name="infoUser">
<af:outputText value="Logged in as #{sessionScope.agentName}"
styleClass="OraPageStampText"/>
</f:facet>
<f:facet name="actions">
<af:panelButtonBar>
<af:commandButton id="ReturnButton"
textAndAccessKey="&Return to #{pageFlowScope.caseReturnName}"
action="#{nav.returnFromFlow}"/>
</af:panelButtonBar>
</f:facet>
<f:facet name="appCopyright">
<af:outputText value="copyright facet"/>
</f:facet>
<f:facet name="appPrivacy">
<af:commandLink text="privacy facet" action="action.none" />
</f:facet>
<f:facet name="appAbout">
<af:commandLink text="about facet" action="action.none" />
</f:facet>
<af:panelGroup type="vertical">
<af:panelForm labelWidth="5%">
<af:panelLabelAndMessage label="Owner:">
<af:outputText value="#{pageFlowScope.case.owningAgentId}"
styleClass="OraFieldText"/>
<af:outputFormatted value=" <b>[You own this case]</b>"
styleClass="OraFieldText"
rendered="#{pageFlowScope.case.owningAgentId == sessionScope.agentId}"/>
<af:outputFormatted value=" <b>[You do not own this case]</b>"
styleClass="OraFieldText"
rendered="#{pageFlowScope.case.owningAgentId != sessionScope.agentId}"/>
</af:panelLabelAndMessage>
<af:inputText label="Case ID:" value="#{pageFlowScope.case.id}" columns="10"
readOnly="true" shortDesc="Unique ID for this case"/>
<af:inputText value="#{pageFlowScope.case.serviceType}" label="Service Type:"
columns="10" readOnly="true"
shortDesc="Service requested: 'referral' or 'emergency'"/>
<af:inputText value="#{pageFlowScope.case.openDate}" label="Opened:"
columns="10" readOnly="true" shortDesc="Date this case was opened">
<f:convertDateTime pattern="MM/dd/yy HH:mm"/>
</af:inputText>
<af:inputText value="#{pageFlowScope.case.closeDate}" label="Closed:"
columns="10" readOnly="true" shortDesc="Date this case was closed"
inlineStyle="{color: red}"
rendered="#{!(empty pageFlowScope.case.closeDate)}">
<f:convertDateTime pattern="MM/dd/yy HH:mm"/>
</af:inputText>
<af:inputText value="#{pageFlowScope.case.primaryRequest}" label="Primary Request:"
columns="80" readOnly="true"
shortDesc="Short summary of the member's request"/>
<af:inputText value="#{pageFlowScope.case.appointmentPreferences}"
label="Appt. Preferences:" columns="80" readOnly="true"
shortDesc="Member's preferences on appointment times"/>
<af:inputText value="#{pageFlowScope.case.callbackData}" label="Call Back Data:"
columns="40" readOnly="true"
shortDesc="Phone/email to use for calling member back"/>
</af:panelForm>
<af:panelGroup type="vertical">
<af:forEach items="#{pageFlowScope.case.activitiesByDate}" var="act">
<af:objectSpacer height="10" width="0"/>
<af:objectSeparator/>
<af:outputFormatted value="<b>#{act.date}</b>" inlineStyle="{background-color:#cccc99}"/>
<af:objectSpacer height="5" width="1"/>
<af:panelGroup type="horizontal">
<af:panelForm>
<af:inputText label="ID:" value="#{act.id}" readOnly="true"/>
<af:inputText label="Type:" value="#{act.type}" readOnly="true"/>
<af:inputText label="MedCierge:" value="#{act.agentId}" readOnly="true"/>
</af:panelForm>
<af:objectSpacer width="5" height="1"/>
<af:inputText rows="4" readOnly="true" columns="80" value="#{act.notes}"/>
</af:panelGroup>
<!-- Output data specific to Inbound Call activities -->
<af:objectSpacer height="10" width=""/>
<af:panelGroup rendered="#{act.type=='ibcall'}">
<af:commandButton text="Show Call Details" action="dialog:showCall"
partialSubmit="true" rendered="#{!(empty act.call)}"
windowHeight="500" windowWidth="750">
<af:setActionListener from="#{act.call}"
to="#{pageFlowScope.call}"/>
</af:commandButton>
</af:panelGroup>
<!-- Output data specific to Inbound Email activities -->
<af:panelGroup rendered="#{act.type=='ibemail'}">
<af:outputText value="Inbound email #{act.type}"/>
</af:panelGroup>
<!-- Output data specific to Outbound Call activities -->
<af:panelGroup rendered="#{act.type=='obcall'}">
<af:outputText value="Outbound Call #{act.type}"/>
</af:panelGroup>
<!-- Output data specific to Outbound Email activities -->
<af:panelGroup rendered="#{act.type=='obemail'}">
<af:outputText value="Outbound email #{act.type}"/>
</af:panelGroup>
</af:forEach>
</af:panelGroup>
</af:panelGroup>
</af:panelPage>
</af:form>
</afh:body>
</afh:html>
</f:view>
</jsp:root>Helo there,
I am having exactly the same problem, everytime I include af:forEach tag inside the af:selectOneChoice for example, preview of JSP is not shown and whole developer hangs, in task manager I can see 100% CPU occupation by JDeveloper.
But the code itself is ok, if I run the page while editor is in Source mode Page is properly shown in browser, but when I change editor mode to Design it hangs.
I am using Faces EA17 and JDeveloper 10.1.3
Does anybody else face the same issue?
ferdo -
Error with adf-faces-config.xml file in myEclipse
hello,
i'm trying to customize appearance of my JSF/ADF Faces app (which worked fine until now), and tried to insert a adf-faces-config.xml file in my WEB-INF directory, this is it (copied from a tutorial) :
<?xml version="1.0"?>
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<!-- Enable debug output -->
<debug-output>true</debug-output>
<!-- Pick accessibility options based on a per-user managed bean -->
<accessibility-mode>#{user.accessibilityMode}</accessibility-mode>
<!-- A silly use of EL: English users get one appearance, -->
<!-- others get another -->
<skin-family>
#{view.locale.language=='en' ? 'minimal' : 'oracle'}
</skin-family>
</adf-faces-config>
after saving the file (in myEclipse) i get the following error message on the second line :
cvc-elt.1 : Cannot find the declaration of element 'adf-faces-config'
what does that mean and what should i do ?
thx...hello,
i'm trying to customize appearance of my JSF/ADF
Faces app (which worked fine until now), and tried to
insert a adf-faces-config.xml file in my WEB-INF
directory, this is it (copied from a tutorial) :
<?xml version="1.0"?>
<adf-faces-config
xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<!-- Enable debug output -->
<debug-output>true</debug-output>
<!-- Pick accessibility options based on a per-user
managed bean -->
<accessibility-mode>#{user.accessibilityMode}</accessi
bility-mode>
<!-- A silly use of EL: English users get one
appearance, -->
<!-- others get another -->
<skin-family>
#{view.locale.language=='en' ? 'minimal' : 'oracle'}
</skin-family>
</adf-faces-config>
after saving the file (in myEclipse) i get the
following error message on the second line :
cvc-elt.1 : Cannot find the declaration of element
'adf-faces-config'
what does that mean and what should i do ?
thx...Hello again,
i'm still stuck with this, could somebody PLEASE give me a hint ?
thx,
dom.
Maybe you are looking for
-
Updating video driver for my HP G6 2232EE notebook
im having a hard time looking for an updated driver of my notebooks video driver. i cant see the driver either in hp's website. please help me out finding the right/appropriate driver for my vid. the game im playing is like a a stop dance whenever im
-
Holding documents in t-code FB50
Dear all Can you please explain why I can't hold a document and how i can start holding documents. I get the error message below. Many thanks Peter Held documents must be converted; read long text Message no. F5410 Diagnosis The structure of the docu
-
Trying to activate a new 5c but won't connect to wifi
I am in the beginning stages of activing a new 5c. However when I try to connect to wifi or the cellular network it doesn't connect. I also cannot get into the settings for the phone because it has not been activated yet. I also cannot install itunes
-
There is a problem installing iTunes on my laptop
I was using iTunes software which was supplied to me with my iPod Video (30GB), it installed ok and worked fine, even the updates worked. Then there was an error and I was told to try reinstalling iTunes, I did so with the disc I had and it now wont
-
When I try to update my iMovie to be Maverick compatible, this is what I get " Your computer's video card does not meet the minimum system requirements." Any suggestions? Thanks