New paper published on using Groovy in JDeveloper 11g.
If you are looking to use Groovy expressions in ADF Business Components but finding the current developer guides less than helpful, I've pulled together some typical use cases into a new white paper
http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf
Please let me know if you have any corrections/questions/feedback/
Thanks
Grant
Thanks Grant for this paper.
I was wondering what could be the next level of integration of groovy besides ADF BC inside ADF apps.
As I have no real experience with Groovy at this time, would it be realistic to write groovy classes either in the model or the view/controller layer ?
The idea is to benefit from Groovy powerful aspects as a dynamic and very concise language. Such groovy classes would be used to extend ADF framework classes for example.
Does that makes sense to you and do you see any oppurtunities of such an integration ?
Thanks,
Seb.
Similar Messages
-
How to use JPublisher in Jdeveloper 11g?
Hi! I have question. How to use JPublisher in Jdeveloper 11g? Maybe someone can help?
Best regards!Hi! I have question. How to use JPublisher in Jdeveloper 11g? Maybe someone can help?
Best regards! -
XML Publisher 5.6.2 in JDeveloper 11g
The data engine in the Oracle XML Publisher 5.6.2 does not run with the Oracle JDBC library in JDeveloper 11g. Error gets generated in the class oracle.apps.xdo.dataengine.DBConnection.
Use JDeveloper 10.1.3 for Oracle XML Publisher 5.6.2.
http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.htmlXML Publisher 5.6.2 API may be used in JDeveloper 11g by importing the Oracle JDBC library definition from JDeveloper 10.1.3. Instead of the Oracle JDBC library in JDeveloper 11g create a Oracle JDBC library from the JDeveloper 10.1.3 Oracle JDBC library JAR files.
-
I recently inherited a few projects that where first done using Eclpse with the Dojo toolkit.
I was wondering if there is a Dojo release for JDeveloper 11g, if so where can i get it.
If there is'nt a downloadable plugin is there a way to get the projects to run without it?You should be able to just pick up the project and import it into JDeveloper - no need for any plug-in or extension.
Dojo is just a Javascript library that you can include in your project and run with it in JDeveloper. -
Send data to JMS queue using CQL in Jdeveloper 11g CEP application
ALTER QUERY q_basic_event ADD DESTINATION
“<EndPointReference><Address>_file:///home/cep/test.txt</Add
ress></EndPointReference>" ---- CQL is being used to transfer data to an output file(test.txt).
How do we change the destination so that the data is sent to a JMS queue in Jdeveloper 11g where we are using a CEP application?Hi Narayanan,
Thank you for your prompt reply. I understand that we need to create an external delivery channel to post the message to a JMS Queue from TP2. Currently I am using default AQ's (b2b.IP_IN_QUEUE & b2b.IP_OUT_QUEUE) at TP2 end to receive the message.
But, I want to post the message to JMS Queue. For this I need to create an external delivery channel and the corresponding end point should be the name of that JMS Queue. Is my assumption correct?
I have already gone through the thread that you have mentioned and the pdf as well. But, I am not able to find an option on how & where to create that JMS Queue?
Could you clarify on this?
Regards,
Satya. -
Need build.xml to create Ear file using Ant in jdeveloper 11g??
Hi all,
I think Jdeveloper use ANT to create Ear file and how to get build.xml from Jdeveloper.
1) I have created ADF Fusion web Application having separte Model and View Controller.
2) Now when I select View Controller project and then i create New ant-> Build.xml i get the required build.xml which can be used to create war file for my View Controller project.
3) Similarly when I select Model project and then i create New ant-> Build.xml i get the required build.xml which can be used to create Jarfile for my Model project.
4) If I select my application and then i click deploy... I'm able to create my ear file having both war file for View Controller and Jar File for Model.
5) But I dont know how to get built.xml file which will create ear file having both View Controller and Model in it.
Thanks a lot....However note the generated Ant script includes unnecessary targets. See the following blog post: http://one-size-doesnt-fit-all.blogspot.com/2010/11/using-ojdeploy-and-ant-for-creating-adf.html
CM. -
How to use ant with Jdeveloper 11g
Hello, as we develop our app with ADF Faces & EJB 3.0 we are using tomcat 6.x + openEJB 3.0 as a sort of app server. So we need to build application archive 2 differrent methods (collapsed war for tomcat and ear for Jdev's integrated WLS). Besides, some xml files need to be modificated depending on target server. So we are going to use ant to build archives.
My questions:
- Where should I copy built archive for deployment on integrated WLS (should I copy it in ant's target or Jdev can do it for me)? Or there is another way to do the following: when one presses Run button on a page ant builds an archive for local WLS and then app is deployed and the page is opened in a new browser tab (just like default Jdev behaviour)?
- Where can I find tutorial on integration of Jdev & ant?Here is a good example [http://biemond.blogspot.com/2009/04/weblogic-jdeveloper-ant-tasks.html]
-
Best Practice for using UML in JDeveloper 11g
Hi,
We are embarking upon a big program that involves development of a Webcenter 11g based Portal. We will be using JDeveloper for doing the development work. We are investigating whether we can use JDeveloper for doing the design work too. Towards that we would like to know if there are any best practices documented around using JDeveloper's UML capabilities in a Webcenter 11g Portal delivery activity that spans across several sprint teams and involves delivering an application that could involve several hundreds of java classes ? If so, can you please share the same / provide pointers to the same ?
We are keen on using class diagrams and sequence diagrams for the design work.
We will be using JDeveloper 11.1.1.5.0.
Many thanks!
Best Regards,
RameshCheck this to get an idea of UML support in JDeveloper:
http://download.oracle.com/docs/cd/E18941_01/tutorials/jdtut_11r2_81/jdtut_11r2_81_1.html
Thanks,
Navaneeth -
How to insert data using jdeveloper 11g
hi all..
i'm starting my first web aplication using JSF in jdeveloper 11g.
I have one table in the database has two attributes(id and name). i connected to the database succrssfuly.
i built adf application and created JSF page then i draged my view from data controls to built adf form without selected submit button.
and i draged commit operation and created a button to save .
but when i run the application the adding process didn't work.
plz, help me to complete my application .
thankswell Learn ADF first :)
check this simple Create Edit form http://orclsamples.googlecode.com/files/CreateEditRecord.zip might help you to get started
also check my blog i post basic cook book kind style ADF examples for newbies http://baigsorcl.blogspot.com/search/label/ADF -
Hi,
There is a howto about using ICESfaces with JDeveloper 10g http://www.oracle.com/technology/products/jdev/howtos/1013/icefaces/jpaicefaces.htm. The howto is well explained and it work fine. But i'm not able to use ICESfaces with JDeveloper 11G.
Can you give me instructions about how to use ICESfaces with 11g?
Thanks.I know that JDeveloper have many rich components (that i actualy use) but i want to keep looking to ICEfaces new versions if they introduces mores rich component that are not available in 11G.
Thanks
(excuse my poor english i'm a french speaking)
Here is the error:
]] Root cause of ServletException.
java.lang.Exception: javax.faces.FacesException: javax.el.ELException: javax.faces.el.EvaluationException: javax.el.ELException: java.lang.NullPointerException
at com.icesoft.faces.context.View.servePage(View.java:136)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.faces.FacesException: javax.el.ELException: javax.faces.el.EvaluationException: javax.el.ELException: java.lang.NullPointerException
at javax.faces.component.UIData.getValue(UIData.java:611)
at com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:345)
at com.icesoft.faces.component.panelseries.UISeries.processCurrentRowData(UISeries.java:142)
at com.icesoft.faces.component.panelseries.UISeries.setRowIndex(UISeries.java:134)
at com.icesoft.faces.component.ext.renderkit.TableRenderer.renderFacet(TableRenderer.java:145)
at com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeBegin(TableRenderer.java:122)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
at javax.faces.component.UIData.encodeBegin(UIData.java:950)
at com.icesoft.faces.component.panelseries.UISeries.encodeBegin(UISeries.java:286)
at com.icesoft.faces.component.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:110)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:514)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
at com.icesoft.faces.context.View$2$1.respond(View.java:47)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.context.View$2.serve(View.java:72)
at com.icesoft.faces.context.View.servePage(View.java:133)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.el.ELException: javax.faces.el.EvaluationException: javax.el.ELException: java.lang.NullPointerException
at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:87)
at javax.faces.component.UIData.getValue(UIData.java:608)
at com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:345)
at com.icesoft.faces.component.panelseries.UISeries.processCurrentRowData(UISeries.java:142)
at com.icesoft.faces.component.panelseries.UISeries.setRowIndex(UISeries.java:134)
at com.icesoft.faces.component.ext.renderkit.TableRenderer.renderFacet(TableRenderer.java:145)
at com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeBegin(TableRenderer.java:122)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
at javax.faces.component.UIData.encodeBegin(UIData.java:950)
at com.icesoft.faces.component.panelseries.UISeries.encodeBegin(UISeries.java:286)
at com.icesoft.faces.component.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:110)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:514)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
at com.icesoft.faces.context.View$2$1.respond(View.java:47)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.context.View$2.serve(View.java:72)
at com.icesoft.faces.context.View.servePage(View.java:133)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.faces.el.EvaluationException: javax.el.ELException: java.lang.NullPointerException
at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:117)
at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:84)
at javax.faces.component.UIData.getValue(UIData.java:608)
at com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:345)
at com.icesoft.faces.component.panelseries.UISeries.processCurrentRowData(UISeries.java:142)
at com.icesoft.faces.component.panelseries.UISeries.setRowIndex(UISeries.java:134)
at com.icesoft.faces.component.ext.renderkit.TableRenderer.renderFacet(TableRenderer.java:145)
at com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeBegin(TableRenderer.java:122)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
at javax.faces.component.UIData.encodeBegin(UIData.java:950)
at com.icesoft.faces.component.panelseries.UISeries.encodeBegin(UISeries.java:286)
at com.icesoft.faces.component.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:110)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:514)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
at com.icesoft.faces.context.View$2$1.respond(View.java:47)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.context.View$2.serve(View.java:72)
at com.icesoft.faces.context.View.servePage(View.java:133)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.el.ELException: java.lang.NullPointerException
at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:73)
at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:113)
at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:84)
at javax.faces.component.UIData.getValue(UIData.java:608)
at com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:345)
at com.icesoft.faces.component.panelseries.UISeries.processCurrentRowData(UISeries.java:142)
at com.icesoft.faces.component.panelseries.UISeries.setRowIndex(UISeries.java:134)
at com.icesoft.faces.component.ext.renderkit.TableRenderer.renderFacet(TableRenderer.java:145)
at com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeBegin(TableRenderer.java:122)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
at javax.faces.component.UIData.encodeBegin(UIData.java:950)
at com.icesoft.faces.component.panelseries.UISeries.encodeBegin(UISeries.java:286)
at com.icesoft.faces.component.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:110)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:514)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
at com.icesoft.faces.context.View$2$1.respond(View.java:47)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.context.View$2.serve(View.java:72)
at com.icesoft.faces.context.View.servePage(View.java:133)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
java.lang.NullPointerException
at oracle.com.view.DepartmentsBean.getDepartments(DepartmentsBean.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:73)
at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:113)
at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(ValueExpressionValueBindingAdapter.java:84)
at javax.faces.component.UIData.getValue(UIData.java:608)
at com.icesoft.faces.component.panelseries.UISeries.getDataModel(UISeries.java:345)
at com.icesoft.faces.component.panelseries.UISeries.processCurrentRowData(UISeries.java:142)
at com.icesoft.faces.component.panelseries.UISeries.setRowIndex(UISeries.java:134)
at com.icesoft.faces.component.ext.renderkit.TableRenderer.renderFacet(TableRenderer.java:145)
at com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeBegin(TableRenderer.java:122)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:802)
at javax.faces.component.UIData.encodeBegin(UIData.java:950)
at com.icesoft.faces.component.panelseries.UISeries.encodeBegin(UISeries.java:286)
at com.icesoft.faces.component.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:110)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:514)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:481)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
at com.icesoft.faces.context.View$2$1.respond(View.java:47)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.context.View$2.serve(View.java:72)
at com.icesoft.faces.context.View.servePage(View.java:133)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
<ice:form>
<ice:dataTable id="depTable" value="#{DepartmentBean.departments}"
var="dep"/>
</ice:form> -
Hi.
Is there an easy way to generate POJOs and mapping files automatically using Hibernate and JDeveloper 11g pointing to Oracle 11g database similar to what one can do with NetBeans IDE?
Thanks a lot.JDeveloper can generate POJO mappings to database objects using the JPA standard.
And this tutorial:
http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
We are using the Java EE 5.0 JPA standard API and not specific Hibernate implementation. The underlying JPA implementations used there is EclipsLink. -
Requesting Versioning ChangeSet Example in Jdeveloper 11g
Hi !
Can Anyone Please Provide Any Assitance Regarding The Awareness Of The ChangeSet(Versioning)Concept Through Any Example In Jdeveloper 11g .
Hoping A Positive Response ASAP,
Regards,
RKHi Frank,
Using subveriosning in Jdeveloper 11g and in the versioning module there exists a topic called "ChangeSet" i.e for Instance doing a modification in one file affecting two or more files in the repository and in this case if we are supposed to Update all the files including the Changing file we can use "Change Set" Concept .But In the Jdeveloper 11g Help Menu,specification about this topic is very less .
Can U Please provide any examples regarding this in Jdeveloper 11g !
Thanks & Regards,
RK -
Xml publisher 5.6.2 and jdeveloper
Problem :
I wanted to generate a pdf from a OA page. I was successful ingenerating the PDF from a OA Page but the problem is I am not able to find suitable xml publisher libraries to include in the Jdeveloper
OA Framework Version 11.5.10.CU1.
Requested soultion for
Please provide me the list of libraries xml publisher to be included in jdeveloper.
Approach for Libraries:
Took XDO/ORACLE XML PUBLISHER OA ROLLUP PATCH 5.6.0 and extracted the zip file j456151.zip from the patch and included it as a library. My class compiled. But when I run from jdev the output is not generated. But I put the class on the JAVA_TOP it worked.
If it has worked why do I need libraries?
xml publisher is very powerful and I want to use the other features like data template and delivery manager. I want need corrrect libraries in jdeveloper.
Experience with Oracle Support
Oracle XML Publisher Support was of little help. I really felt helpless. I had to dig out everything from the patches. For oracle internal managers who want to see that we get proper support the tar number is
5619199.992 NEED AN EXAMPLE FOR USING XML PUBLISHDOC...
Severity: 3 , OS: n/a
Below is the approach I just followed if you have a better way please let me know.
Approach for gererating PDF which worked:
In the Application Module :
public ClobDomain getXMLData()
GapProjectListVORowImpl row = getSelectedProjectRow();
ClobDomain cd = new ClobDomain();
if(row != null)
try{
cd.getCharacterOutputStream().write("<?xml version=\"1.0\" encoding='windows-1252'?>\n");
cd.getCharacterOutputStream().write("<AllNodes>");
oracle.xml.parser.v2.XMLElement ele = (oracle.xml.parser.v2.XMLElement)getGapCostDetailsVO1().writeXML(0,XMLInterface.XML_OPT_ALL_ROWS);
ele.print(new java.io.PrintWriter(cd.getCharacterOutputStream()));
ele = (oracle.xml.parser.v2.XMLElement)getGapCostTotalsVO1().writeXML(0,XMLInterface.XML_OPT_ALL_ROWS);
ele.print(new java.io.PrintWriter(cd.getCharacterOutputStream()));
ele = (oracle.xml.parser.v2.XMLElement)row.writeXML(0,XMLInterface.XML_OPT_ALL_ROWS);
ele.print(new java.io.PrintWriter(cd.getCharacterOutputStream()));
cd.getCharacterOutputStream().write("</AllNodes>");
//System.out.println(cd.toString());
catch(Exception e)
e.printStackTrace();
return cd;
In the controller use
ClobDomain xmlData=(ClobDomain)am.invokeMethod("getXMLData");
if(xmlData!=null)
byte[] bytes = xmlData.toByteArray();
ByteArrayInputStream l_erXML=new ByteArrayInputStream(xmlData.toString().getBytes());
DocumentHelper.exportDocument(pageContext,"CDM","XXCDMGAP","en","US",l_erXML,"PDF",null);
}Create a JAR file with $JAVA_TOP/oracle/apps/fnd and $JAVA_TOP/oracle/apps/xdo. You can have them in the same jar file or separate JAR files. The oracle directory MUST be the top directory.
Add this/these jar files to your project libraries in JDev and you are ready to go. I have used this method with XMLP 5.5 to 5.6.2 and works just fine.
HTH
Message was edited by:
newtoJava -
I read this new paper by Frank Nimphius, and it is pretty easy to follow. I tried it out, and had a few problems. I am using JDeveloper 10.1.3 (not 10.1.3.1 or 10.1.3.2).
In several places, the paper says that all web applications running in the embedded OC4J container are executed as "current-workspace-app". Yet, in the example of using the editor for system-jazn-data.xml, Figure 2 shows the name as "default-web-app". Which is correct?
The paper says that the OC4J Deployment Descriptor Wizard will write data-sources.xml in the project's WEB-INF directory. When I did this, the file was created under META-INF in Application Sources. The Tools/Embedded OC4J Properties wizard did update the file where it was.
So far, I don't have this working - worse I don't see any error message to give me a clue where I've gone wrong.I was at Collaborate last week, and didn't get a chance to try this until this morning. I removed the "casing" option and tried again. Didn't work. Here are the messages from the log:
FINE: [DBTableOraDataSourceLoginModule]User query string: select user_id,password from dasis.authorized_users where username= (?)
Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule performDbAuthentication
FINE: [DBTableOraDataSourceLoginModule]User primary key value found = 5
Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule performDbAuthentication
FINE: [DBTableOraDataSourceLoginModule]User not authenticated: username or password mismatch
Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule login
FINE: [DBTableOraDataSourceLoginModule]Logon Successful = false
Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule abort
FINE: [DBTableOraDataSourceLoginModule]Abort called on LoginModule
Apr 23, 2007 8:00:41 AM oracle.security.jazn.oc4j.OC4JUtil doJAASLogin
WARNING: Login Failure: all modules ignored
javax.security.auth.login.LoginException: Login Failure: all modules ignored
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:921)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3659)
at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Apr 23, 2007 8:00:41 AM oracle.security.jazn.oc4j.GenericUser authenticate
FINE: JAAS-OC4J: Authentication failure for user: AZUSER
Apr 23, 2007 8:00:41 AM oracle.security.jazn.oc4j.RealmUserAdaptor isMemberOf
FINE: JAAS-OC4J: Membership check for group: TEDS failed for user: anonymous
The primary key returned is correct, username AZUSER has user_id = 5. So I know that the SELECT is succeeding, and retrieving the correct row. But it doesn't think that the password matches. I am not currently encrypting passwords. Any ideas?
In the meantime, I'm taking another look at using LDAP for authentication - I saw a presentation at Collaborate that gave me some ideas. I wanted to use the table, because an older application with some of the same users uses this table, and I want to let the users use the same usernames and passwords. But there may be a way to let the older application get its authentication information from LDAP. -
I am using jdeveloper 11.1.2.0.0
according to previous thread I can use groovy function "sum" to calculate the number of rows in my iterator which contains the attribute "Status" equal to 20 just like that
bindings.MyIterator.viewObject.sum['Status == 20 ? 1 : 0'] != 0
then I can use that to display link if there is at least on row contains he attribute "Status" equal to 20
so I modified the attribute "Rendered" to be
rendered="#{bindings.MyIterator.viewObject.sum['Status == 20 ? 1 : 0'] != 0} "
now I have new requirement
I need to display the link if there are at least on row contains he attribute "Status" equal to 20 or equal to 21
I tried to modify the render link to be
rendered="#{bindings.MyIterator.viewObject.sum['Status == 20 or status == 21 ? 1 : 0'] != 0} " but it doesn't work :(
and tried
rendered="#{bindings.MyIterator.viewObject.sum['Status == 20 ? 1 : 0'] != 0 or bindings.MyIterator.viewObject.sum['Status == 21 ? 1 : 0'] != 0} "
but doesn't work too :(
how can I implement this requirement ?You can create function in your managed bean, iterate through rows in your VO, and bind this function to rendered(or visible) property, for example:
public boolean isLinkVisible(){
boolean visible = false;
RowSetIterator iterator = yourViewObject.createRowSetIterator(null);
iterator.reset();
while (iterator.hasNext()) {
Row row = iterator.next();
if(row.getAttribute("Status").equals(20)){
visible = true;
break;
iterator.closeRowSetIterator();
return visible;
}Dario
Maybe you are looking for
-
HT1351 how to transport ipod songs to itunes using the same account
Hi i have been purchasing songs directly from my iphone, and ive been doing this for a long time. My itunes on my computer is not up to date with the ones from my iphone. And there are alot of songs that are on my computers itunes but not on my phone
-
How do I change the default phone number for imessage on my MacBook Pro?
-
Is there an easy way to batch process channel swapping?
I'm creating a IR time-lapse, and I need an easy/effective way to swap the red/blue channels and do a few other things in Photoshop before I transfer the work to Lightroom to finish. I know that you can batch process for resizing and whatnot, but it
-
Display Time-Dependent Characteristic in 2different date columns (HR-data)
Hello. I want to create a specific Query on a Self-defined HR-HeadCount cube. On this Cube I have Employee-number + characteristic values per month (e.g. PayScaleArea). Month is my most granular level. The Query I want is the following : 04.2
-
Windows 8.1 RTM stuck on loading screen
HP Pavilion g6 2100sy I have problem Windows 8.1 RTM stuck on loading screen (clean install). No updates, drivers or programs not installed. Windows 8 works perfectly. Please help.