ADF 11g Date input
I am using date input component in ADF 11g.
This component let u select only date. but I want the user be able to select date and time as well.
which date component should I drop on page ?
thx
p
All you have to do to see it in action is give your ADF BC EO date field the type of Timestemp instead of Date, and possibly add a nice format mask under the UI hints like: yyyy-MM-dd HH:mm:ss
But, I do not have Entity Object in my application. ADF page was generated as part of "right click BPEL Human Task ---- Auto generate ADF Task Form".
How do I have time as well in this case ?
thx
p
Similar Messages
-
Display row with date search ADF 11g 11.1.1.2.0
Hi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm want to display the table rows according to the date between search.
My screen
From ______ To ______ Seachbutton
EMPNO EMPNAME JOINDATE
001 JACK 04/05/2010
002 JILL 02/05/2010
003 PALIN 06/05/2010
when i select date with adf input date in both text box and fire search . i want display the searched records/rows
sorry ......
thanks in advance
Edited by: user9010551 on May 6, 2010 3:43 AMHi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm want to display the table rows according to the date between search.
My screen
From ______ To ______ Seachbutton
EMPNO EMPNAME JOINDATE
001 JACK 04/05/2010
002 JILL 02/05/2010
003 PALIN 06/05/2010
when i select date with adf input date in both text box and fire search . i want display the searched records/rows
sorry ......
thanks in advance
Edited by: user9010551 on May 6, 2010 3:43 AM -
ADF 11g can not select and copy data from cell of readonly table in IE
hi,
In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
is it a bug?
Edited by: kent2066 on 2009-5-18 上午8:46Hi Timo,
Sorry forgot to mention versions.
We are using 11.1.1.7 and IE 9.
I tried in Google but could not get the solution.
Kindly let me know solution for this.
PavanKumar -
Reg: Exporting the data into excel in ADF 11g application.
Hi All,
We have developed an application in ADF 11g which retrieves the data from database in the form of table. Now we have a requirement to export that data into an excel sheet.
Can anyone please help us regarding this.
Thanks,
HarshaHi Harsha,
you can use <af:exportCollectionActionListener /> component to do that. Set the exportedId property to point to of the table. You have options to export all rows or only selected rows.
<af:commandToolbarButton text="Export All Rows to Excel" immediate="true"
id="exportAll">
<af:exportCollectionActionListener type="excelHTML" exportedId="table"
filename="export.xls"
title="ADF Faces Export - All" exportedRows="all"/>
</af:commandToolbarButton>
<af:commandToolbarButton text="Export Selected Rows to Excel" immediate="true"
id="exportSelected">
<af:exportCollectionActionListener type="excelHTML" exportedId="table"
filename="export.xls"
title="ADF Faces Export - Selected Rows"
exportedRows="selected"/>
</af:commandToolbarButton>Good Luck,
Luc Bors -
Default Date Format in ADF 11g RC
Dear All,
I am searching for a possibility to set a default date format pattern ("yyyy-MMM-dd") in an ADF 11g RC application.
I know that I can set this format in every entity/view object's attributes. But I am looking for a central way.
I already tried to override the javax.faces.convert.DateTimeConverter and configured it in the faces-config.xml.
But without success.
Any ideas?
Thanks!
RichardHi,
in another post of yours I pointed you to the trinidad-config.xml file - so you may want to have a look there. Also maybe property sets can give you a helping hand
http://one-size-doesnt-fit-all.blogspot.com/2008/09/jdev-11g-adf-bc-new-feature-property.html
Frank -
Hi,
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm display'g view object i.e, i drag some xxxvo1 from datacontrol and drop on jsf with from - i selected ADF form. Now i add a adf button like ADD(+) on top of the panel form.
here when i fire Add button , i want to add the same set of input text box with label of ADF form i mean the above i have created ADF form.
like
ADF FORM
+ --> ADD BUTON
EMPNO ________
EMPNAME ______
EMPDEPT ____
when i fire "+" ADD BUTTON
+ -- > ADD BUTTON
EMPNO ________
EMPNAME ______
EMPDEPT ____
EMPNO ________
EMPNAME ______
EMPDEPT ____
i hope above example give some idea.
thanks in advaceSee the example code as below. I use the countries table from HR schema.
<af:table value="#{bindings.CountriesRO1.collectionModel}" var="row"
rows="#{bindings.CountriesRO1.rangeSize}"
emptyText="#{bindings.CountriesRO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.CountriesRO1.rangeSize}"
rowBandingInterval="0" id="t1" columnSelection="none"
rowSelection="none" horizontalGridVisible="false"
verticalGridVisible="false" contentDelivery="immediate"
contextMenuSelect="false">
<af:column sortProperty="CountryId" sortable="false"
id="c2" >
<af:panelFormLayout id="pfl1">
<f:facet name="footer"/>
<af:inputText value="#{row.bindings.CountryId.inputValue}"
label="#{bindings.CountriesRO1.hints.CountryId.label}"
required="#{bindings.CountriesRO1.hints.CountryId.mandatory}"
columns="#{bindings.CountriesRO1.hints.CountryId.displayWidth}"
maximumLength="#{bindings.CountriesRO1.hints.CountryId.precision}"
shortDesc="#{bindings.CountriesRO1.hints.CountryId.tooltip}"
id="it2">
<f:validator binding="#{row.bindings.CountryId.validator}"/>
</af:inputText>
<af:inputText value="#{row.bindings.CountryName.inputValue}"
label="#{bindings.CountriesRO1.hints.CountryName.label}"
required="#{bindings.CountriesRO1.hints.CountryName.mandatory}"
columns="#{bindings.CountriesRO1.hints.CountryName.displayWidth}"
maximumLength="#{bindings.CountriesRO1.hints.CountryName.precision}"
shortDesc="#{bindings.CountriesRO1.hints.CountryName.tooltip}"
id="it1">
<f:validator binding="#{row.bindings.CountryName.validator}"/>
</af:inputText>
<af:inputText value="#{row.bindings.RegionId.inputValue}"
label="#{bindings.CountriesRO1.hints.RegionId.label}"
required="#{bindings.CountriesRO1.hints.RegionId.mandatory}"
columns="#{bindings.CountriesRO1.hints.RegionId.displayWidth}"
maximumLength="#{bindings.CountriesRO1.hints.RegionId.precision}"
shortDesc="#{bindings.CountriesRO1.hints.RegionId.tooltip}"
id="it3">
<f:validator binding="#{row.bindings.RegionId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.CountriesRO1.hints.RegionId.format}"/>
</af:inputText>
</af:panelFormLayout>
</af:column>
</af:table> -
Urgent help needed in achieving below ADF 11g flow
Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
I have a below requirement.
Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
Screen1
Col1 Col2 Col3
Nm1 Code1 10
Nm1 Code1 30
Nm2 Code1 30
Nm1 Code2 20
Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.
Screen 2
Col1 Nm1
Col2 Code1
Tot *40*
Col2 Select
Code1 X
Code2
Now here if user selects the radio of 'Code2' Then my above data should change as below
Col1 Nm1
Col2 Code2
Tot *20*
Col2 Select
Code1
Code2 X
I do this by passing the col1 value as a param to a query VO.
I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
Urgent help is needed.
Thanks in advanceI have resolved your problem and build a sample application.
You have to create 2 views and use master detail.
First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
Let me know your email id. I will email you the sample application.
SID
Edited by: manieshsailoz on Apr 26, 2010 5:12 PM -
ORA-01460 error only in production enviorment in ADF 11g application
Hi ,
We are using ADF 11g rel 1 11.1.1.4.0
And database is
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE 11.2.0.1.0 Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
All our enviornments are running the same database
But when we are deploying the application in Production we get the Error
JBO-27122: SQL-fejl under forberedelse af sætning. Sætning:
select DB_TST_API.test_proc(Id1, id2) from table;
## Detail 0 ##
java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested
While executing the query which has a call tp API and input variable
select DB_TST_API.test_proc(Id1, id2) from table;
The DB function is defined as
the FUNCTION test_proc(p_value IN VARCHAR2, p_list IN VARCHAR2) RETURN number;
The input parameter is only 10 digit integer in ADF application, there is a logical difference that the DB function takes a string and ADF is supplying with Integer, but the code has worked before and has suddenly started giving this error
The code also works fine on all other test eviornments
Also the sql query when run from sql devleoper on production DB does not give any error
Its becoming difficult to find out what could be causing this only on production enviornmentIn ANY case, I'd be using explicit conversions here, not implicit ones, so my recommendation would be one of these:
a). Use TO_CHAR on the input
b). Use Java to convert the integer to a string
c). Change the functionto take a NUMBER as the parameter (if it really is a number)
d). Write a wrapper for the function. The wrapper should take a number and convert it using TO_CHAR and call the real function
John -
Maintaining different sessions in browser tabs in ADF 11g application
I have a simple ADF 11g application which uses ADF BC 11g.
I want to maintain different sessions between the tabs in the same browser.
Currently it is messing up with session variables. Please reply to me ASAP.
Thanks,
Bobby
Edited by: 866444 on Jun 16, 2011 11:35 AMAssuming you are having problems because of the usage of JSF Session scope beans, then the answer is to use pageFlowScope for that set of data - then it is not shared between tabs.
-
Error executing ViewObject in ADF 11g application
Hi,
I've just deployed my ADF 11g (11.1.1.2.0) application to a standalone WebLogic 10.3 server. The app contains a single page with a dvt graph and it is configured to use a JDBC data source. I've created the data source via the WebLogic console and chosen the standard Oracle XA Thin driver.
Most of the time the app works perfectly well, however very occasionally the graph fails to load and an error dialog is given instead showing a NullPointerException. The full stack trace is as follows:
Caused By: java.lang.NullPointerException
at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:11145)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:815)
at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName(Unknown Source)
at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4649)
at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3613)
at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:19076)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1060)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:842)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:6163)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1130)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1299)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1217)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1211)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6097)
at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingWithParams(DCJboDataControl.java:2911)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1531)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
at oracle.adf.model.binding.DCInvokeAction.refreshInternal(DCInvokeAction.java:64)
at oracle.adf.model.binding.DCInvokeAction.refresh(DCInvokeAction.java:36)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3153)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2791)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:21)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:364)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)After receiving the error, we simply restart the browser and try again (this time the page loads successfully).
I've tried some basic Googling for possible solutions but can't find any other instances of this NullPointerException from the driver. Since I don't have the driver source, I can't debug this. Can anyone within Oracle shed some light on why the driver is throwing this error?Bumping a 2-year-old thread isn't likely to get you any solution. Best course for you is to post a new thread with all of your details (which will be different, unless you are using the very old 11.1.1.2 version - in which case you will be told to try a later release).
John -
How to set todays date in message date input field in uix
Hello everybody,
Im using jdeveloper 9015+adf+uix
I am having an input form and in that i want to set the date input field with the current date(default value).
Does anybody of you know how I should do this.
Any help is appreciated,
Thanks in advanceHi,
Did you figure out on how to default system date in a date input field??
I have a similar requirement in OA framework. Please let me know if you have any ideas.
Thanks,
vinay. -
Urgent!! Pagination in ADF 11g..
Hi,
May i know how we can set pagination in ADF 11g? In OAF there was a table property for number of columns.
Can anyone help me on this.
ThanksYou are talking about ADF rich table?
There is no pagination in adf rich tables. They fetch the data when needed.
You define the hight of the table and the fetch size of the iterator. The fetch size of the iterator should be greater or equal then the number of row visable in the UI. The the visible part of the table is loaded in one call to the server-
If your table hight can show 50 rows at once and you set the fetch size of the iterator to 10 it just means the table goes 5 times to the server to fill up and then show all rows.
If you only want to see a portion of the available rows you have to reduce the hight of the table in the UI to only hold as much rows as you want.
Timo -
ADF 11g - persist users component state to database - af:panelCollection
Hi all
We have a case where we require the state of a component, an af:panelCollection in this instance, to be saved to the database for each user of the application. This data is then retrieved upon application startup when it will be used to set the initial state of the af:panelCollection.
The logic to achieve the above is outlined in the following post:
http://technology.amis.nl/blog/4595/adf-11g-persisted-run-time-user-ui-personalization-or-impatient-mans-mds
We have used the above resource to implement the manipulation of the af:panelCollection accordingly but we now wish to persist this data to the database, it is currently hard coded.
Any help is greatly appreciated
Regards
TonyHi,
the next release of JDeveloper 11g (planned for summer) provides MDS, which helps you with a repository based approach for end user personalization. I think that if you can wait then it makes sense to do so instead of implementing functionality on your own that sooner or later you find in the product.
If you can't wait then all you can do is to setup listeners that detect changes (attribute listener work in many cases) and persist the information for the page, component ID and user
Frank -
What are the best coding standards for ADF 11g?
Hi,
Do we have any link that will suggest the best coding standard practices used for ADF 11g?
I am looking out from the perspective of some standards that can be defined before starting my project to know the team on how to
1. Minimize Duplicity and max reusability of code
2. Package the code
3. Resource bundle usage and its calls
4. Maintainning format consistency eg. date display format, number format
5. Exception handling
6. Logging
7. Namiing conventions
Also then we might have standards on
1. Task flow dev.
2. EO and VO creation standards
3. UI development standards [purely ADF component based]
Thanks in advance
Edited by: user8925296 on May 26, 2010 3:24 PMThe ADF Enterprise Methodology Group has a page on standards that gives you a starting point on many of your questions: http://groups.google.com/group/adf-methodology/web/adf-coding-standards
John -
ADF 11g: Desktop Integrator- Export to Excel issue
Hi,
We are using ADF 11g.
In our application we have one feature where end users can download data in excel format from our web application.
To export data to excel file, users need to click Export to Excel button. But after deployment of code to standalone WLS 11g we are facing following issue with this functionality:
To export data to excel file we have to keep pressing control key through out the operation
If we don't do so it does not downloads the file.
We want the file should be downloaded as soon as user clicks Export to Excel button. (We don't want users to keep pressing control key through this process)
Please help on this how to achieve this.
Thanks and Regards
Manav RatraHi Shay,
I implemented this functionality following Franks blog on export data to excel.
Ya in your application we are able to export to excel without holding control Key.
The same is happening in our case if we run application using integrated WLS 11g on JDev 11.1.1.3
but after hosting the application on standalone WLS 11g. We need to hold control key. :|
Are there any properties which we need to set to avoid this.
here is code :
*<af:commandButton text="Export to Excel"*
*binding="#{backing_Rates.btn_Export}"*
*id="btn_Export" inlineStyle="width:150.0px;"*
*shortDesc="Click to Save table in excel sheet">*
*<af:exportCollectionActionListener exportedId="pctbl:t1"*
*type="excelHTML"*
*filename="#{backing_Rates.seName}_Rates.xls"*
*title="Rates for - #{backing_Rates.seName} are:"/>*
*</af:commandButton>*
Please help.
Thanks & Regards
Manav Ratra
Maybe you are looking for
-
Migration assistant freezes - PLEASE HELP ASAP
I am trying to run the migration assistant on a new imac i7 that I received. The "old" machine is an i5 ,and it is transferring about 500gb of data. It ran for many hours, and has been stuck on "19 minutes" remaining for about an hour now. What shoul
-
64bit windows 7 home premium Ran memcheck, no errors Funnily enough, I run VMWare Workstation 9 and Firefox also crashes in WIndows XP in there. Wondering if it has to do with the ASUS drivers. I have updated the drivers to the latest version, but th
-
Windows partition unmountable after Win8.1 update
I've run into an interesting snag after running the Windows 8.1 update on my MacBook Pro 7,1. After installing the update, OSX no longer recognizes the Windows partition on the drive. I can't mount it or access any files, but when I access the Boot C
-
"invalid directory" error. SOS
My JDK1.3.1 is working fine when I compile my programs using Kawa editor. But when I try to get in to enter into the jdk1.3.1 directory in my DOS shell, I get a message "invalid directory" , and returns to the c:\ prompt. Why is that so?? Fyi, I have
-
Categories associated with folders
I have created a category with attributes and associated it with a folder created in collaboration suite. When I upload a file into this folder shouldn't collaboration suite prompt me to enter the attributes associated with the category? In our setup