ADF Dialog Framework and ValidateModelUpdates phase
Hi! I've noticed that when I launch a popup using the ADF Dialog framework, it seems that the validateModelUpdates phase of the JSF Lifecycle doesn't get called when it returns to the main page. I am using the ADF BC4J framework. When I return from the dialog, I updated my Model data on the returnListener. I updated a value on the main page bound to table on the database. I got the value from the dialog and it was invalid based on some business rule. But when I traced it the validator called did not get fired at all. Is there anyway to force the ValidateModelUpdates phase to run inside the returnListener? Regards, Anton
Javascript function called only once
I am implementing a custom button component with Dojo and Mabon. When clicked, it calls a javascript which in turns calls a managed bean method. The problem is the dojo/javascript function that calls the managed bean is called only on the first click of the button. Subsequent clicks do not call the dojo/javascript function. Have you encountered this type of problem? Regards, Anton *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: JavaScript and Dialog Framework
Hi I have successfully launched a dialog from a javascript. I can get the correct FacesContext objects. Problem now is how do I setup a returnListener for the Dialog. The Dialog is launched during an onblur event of an InputText. So I'm planning to extend the CoreInputText component and implement it as a DialogSource. Do you have any suggestion on where can I start doing this? What are the steps needed? -Original Message- From: Anthony Yulo Sent: Thursday, October 05, 2006 11:08 PM To: 'adffaces-dev@incubator.apache.org' Subject: RE: DWR and ADF Faces Yes, I know, if only the component was an ActionSource, then things would be a little bit easy. -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 11:03 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces Actually that will work only if your component launching the dialog isan ActionSource, as I mentioned in my first replies. On 10/5/06, Simon Lessard [EMAIL PROTECTED] wrote: On a side note, I didn't check at all if it's doable, but you could check how a commandButton opening a dialog looks like (the javascript enerated mainly) and add that code to your onmouseover event. That way you would use the PPR framework instead of DWR, and if it works, all technical difficulties I was mentioning in the previous post would not apply. Regards, ~ Simon On 10/5/06, Simon Lessard [EMAIL PROTECTED] wrote: If it works, the result will be consistent in any environment. What I'm unsure about is the feasibility in a short time in an easy way. Let me enumerate the technical difficulties I see, maybe they willappear trivial to you: 1. Get a FacesContext instance. Fix: Change DWRServlet code a bit to instanciate the FacesContext. Main difficulty: I don't know if FacesContextFactory will like the XMLRequest format of AJAX, it's possible that it don't whine at all though. If that's the case, this point is not a real issue. 2. Get a RequestContext instance. Fix: Add AdfFilter to DWRServlet. Main difficulty: None connected directly to this point. 3. Use the dialog feature of RequestContext. Difficulty: None 4. Open the dialog, e.g. how do you manage the callback method? Difficulty: Dialog is based on some internal Trinidad JS and PPR code that will call a window.open instead refreshing the page. With DWR you'll most likely need to do that yourself, but I'm not perfectly sure on that point. I know the dialog framework, but I'm not a guru. 5. Managing return event. Fix: I have no clue, it might works like magic, but I never used dialog framework that way. If you try it an it works, I would be glad to hear it though. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Im planning to do this on a production environment. Nightmarish? So you're saying that this is not adviseable to implement this on a production environment? What do you mean nightmarish? The results will not be consistent? -Original Message- From: Simon Lessard [mailto: [EMAIL PROTECTED] Sent: Thursday, October 05, 2006 10:29 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces Using DWR to do that will be nightmarish I think... You'll need a TrinidadContext instance as well to push the dialog... Hmmm I think this could be a nice improvement for Trinidad though, an attribute to send an action from any JavaScript event. Maybe a keyword placed in the event attributes, or new attributes altogether. All components implementing that would have to also implement ActionSource/ActionSource 2 though. This is not a small change, but it would open a whole new level of functionality. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Well I know the launchDialog function gets called so I know that the DWR is working and that I can all java code from the javascript. However, the popup window is not showing and that the browser is issuing an alertbox with message: null. And, Simon said that as long as you don't use the FacesContext's instance, it will be fine. But here I am using the FacesContext. Here is the actual code: public void launchDialog() { System.out.println (Launch Dialog called.); FacesContext context = FacesContext.getCurrentInstance(); ViewHandler viewHandler = context.getApplication ().getViewHandler(); UIViewRoot dialog = viewHandler.createView(context, /pages/iv/dialogPage.jsp); HashMap properties = new HashMap(); properties.put(width, new Integer(250)); properties.put(height, new Integer(150)); AdfFacesContext.getCurrentInstance ().launchDialog(dialog,properties,null,tru e
RE: JavaScript and Dialog Framework
By the way I used Dojo, Mabon and Weblets to call bean method from a javascript method. -Original Message- From: Anthony Yulo Sent: Thursday, October 26, 2006 4:11 PM To: 'adffaces-dev@incubator.apache.org' Subject: RE: JavaScript and Dialog Framework Hi I have successfully launched a dialog from a javascript. I can get the correct FacesContext objects. Problem now is how do I setup a returnListener for the Dialog. The Dialog is launched during an onblur event of an InputText. So I'm planning to extend the CoreInputText component and implement it as a DialogSource. Do you have any suggestion on where can I start doing this? What are the steps needed? -Original Message- From: Anthony Yulo Sent: Thursday, October 05, 2006 11:08 PM To: 'adffaces-dev@incubator.apache.org' Subject: RE: DWR and ADF Faces Yes, I know, if only the component was an ActionSource, then things would be a little bit easy. -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 11:03 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces Actually that will work only if your component launching the dialog isan ActionSource, as I mentioned in my first replies. On 10/5/06, Simon Lessard [EMAIL PROTECTED] wrote: On a side note, I didn't check at all if it's doable, but you could check how a commandButton opening a dialog looks like (the javascript enerated mainly) and add that code to your onmouseover event. That way you would use the PPR framework instead of DWR, and if it works, all technical difficulties I was mentioning in the previous post would not apply. Regards, ~ Simon On 10/5/06, Simon Lessard [EMAIL PROTECTED] wrote: If it works, the result will be consistent in any environment. What I'm unsure about is the feasibility in a short time in an easy way. Let me enumerate the technical difficulties I see, maybe they willappear trivial to you: 1. Get a FacesContext instance. Fix: Change DWRServlet code a bit to instanciate the FacesContext. Main difficulty: I don't know if FacesContextFactory will like the XMLRequest format of AJAX, it's possible that it don't whine at all though. If that's the case, this point is not a real issue. 2. Get a RequestContext instance. Fix: Add AdfFilter to DWRServlet. Main difficulty: None connected directly to this point. 3. Use the dialog feature of RequestContext. Difficulty: None 4. Open the dialog, e.g. how do you manage the callback method? Difficulty: Dialog is based on some internal Trinidad JS and PPR code that will call a window.open instead refreshing the page. With DWR you'll most likely need to do that yourself, but I'm not perfectly sure on that point. I know the dialog framework, but I'm not a guru. 5. Managing return event. Fix: I have no clue, it might works like magic, but I never used dialog framework that way. If you try it an it works, I would be glad to hear it though. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Im planning to do this on a production environment. Nightmarish? So you're saying that this is not adviseable to implement this on a production environment? What do you mean nightmarish? The results will not be consistent? -Original Message- From: Simon Lessard [mailto: [EMAIL PROTECTED] Sent: Thursday, October 05, 2006 10:29 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces Using DWR to do that will be nightmarish I think... You'll need a TrinidadContext instance as well to push the dialog... Hmmm I think this could be a nice improvement for Trinidad though, an attribute to send an action from any JavaScript event. Maybe a keyword placed in the event attributes, or new attributes altogether. All components implementing that would have to also implement ActionSource/ActionSource 2 though. This is not a small change, but it would open a whole new level of functionality. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Well I know the launchDialog function gets called so I know that the DWR is working and that I can all java code from the javascript. However, the popup window is not showing and that the browser is issuing an alertbox with message: null. And, Simon said that as long as you don't use the FacesContext's instance, it will be fine. But here I am using the FacesContext. Here is the actual code: public void launchDialog() { System.out.println (Launch Dialog called.); FacesContext context = FacesContext.getCurrentInstance(); ViewHandler viewHandler = context.getApplication ().getViewHandler(); UIViewRoot dialog = viewHandler.createView(context, /pages/iv/dialogPage.jsp
RE: ADF Faces/Trinidad Shale?
/20/06, Anthony Yulo [EMAIL PROTECTED] wrote: This is the complete web.xml: ?xml version = ' 1.0' encoding = 'windows-1252'? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns= http://java.sun.com/xml/ns/j2ee; descriptionEmpty web.xml file for Web Application/description context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameCpxFileName/param-name param-valueorg.clarke.pagedefs.DataBindings /param-value /context-param !-- Commons Chain Configuration Resources -- context-param param-nameorg.apache.commons.chain.CONFIG_WEB_RESOURCE/param-name param-value/WEB-INF/chain-config.xml/param-value /context-param !-- Shale Application Controller Filter -- context-param param-nameorg.apache.shale.view.EXCEPTION_DISPATCH_PATH /param-name param-value/exception/correct.faces/param-value /context-param !-- Commons Chain Configuration Listener -- listener listener-class org.apache.commons.chain.web.ChainListener /listener-class /listener !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- JavaServer Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping servlet servlet-nameresources/servlet-name servlet-classoracle.adf.view.faces.webapp.ResourceServlet /servlet-class /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping session-config session-timeout10/session-timeout /session-config mime-mapping extensionhtml/extension mime-typetext/html/mime-type /mime-mapping mime-mapping extensiontxt/extension mime-typetext/plain/mime-type /mime-mapping filter filter-nameadfFaces/filter-name filter-classoracle.adf.view.faces.webapp.AdfFacesFilter/filter-class /filter filter filter-nameadfBindings/filter-name filter-class oracle.adf.model.servlet.ADFBindingFilter/filter-class /filter filter filter-nameshale/filter-name filter-class org.apache.shale.faces.ShaleApplicationFilter /filter-class /filter filter-mapping filter-nameadfFaces/filter-name servlet-name*.jsp/servlet-name /filter-mapping filter-mapping filter-nameadfFaces/filter-name url-pattern*.jspx/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping welcome-file-list welcome-file/faces/pages/welcome.jsp/welcome-file /welcome-file-list /web-app -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 9:13 PM To: adffaces-dev@incubator.apache.org Subject: Re: ADF Faces/Trinidad Shale? Hello, try adding those lines to web.xml filter filter-nameadfFaces/filter-name filter-classoracle.adf.view.faces.webapp.AdfFacesFilter /filter-class /filter filter-mapping filter-nameadfFaces/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping On 10/20/06, Anthony Yulo [EMAIL PROTECTED] wrote: Shale uses the standard JSF Servlet: How do I this? servlet servlet-namefaces/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class /servlet servlet-mapping servlet-namefaces/servlet-name url-pattern*.faces/url-pattern /servlet-mapping -Original Message- From: Simon Lessard [mailto: [EMAIL PROTECTED] Sent: Friday, October 20, 2006 8:52 PM To: adffaces-dev@incubator.apache.org Subject: Re: ADF Faces/Trinidad Shale? I'm not well versed with Shale yet. However I can go with an hypothesis. Does Shale use a Servlet? If so, you must place ADF Faces filter on that servlet as well. Regards, ~ Simon
RE: ADF Faces/Trinidad Shale?
execute, it means that adfFaces filter won't be executed. Have you tried removing it?-- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping !-- Duplicate entry -- !--filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping-- filter-mapping filter-nameshale/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping /web-app On 10/20/06, Simon Lessard [EMAIL PROTECTED] wrote: Ok... That's not a really clean web.xml. Let me clean it up fast and see if the new version works. On 10/20/06, Anthony Yulo [EMAIL PROTECTED] wrote: This is the complete web.xml: ?xml version = ' 1.0' encoding = 'windows-1252'? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns= http://java.sun.com/xml/ns/j2ee; descriptionEmpty web.xml file for Web Application/description context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameCpxFileName/param-name param-valueorg.clarke.pagedefs.DataBindings /param-value /context-param !-- Commons Chain Configuration Resources -- context-param param-nameorg.apache.commons.chain.CONFIG_WEB_RESOURCE/param-name param-value/WEB-INF/chain-config.xml/param-value /context-param !-- Shale Application Controller Filter -- context-param param-nameorg.apache.shale.view.EXCEPTION_DISPATCH_PATH /param-name param-value/exception/correct.faces/param-value /context-param !-- Commons Chain Configuration Listener -- listener listener-class org.apache.commons.chain.web.ChainListener /listener-class /listener !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- JavaServer Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping servlet servlet-nameresources/servlet-name servlet-classoracle.adf.view.faces.webapp.ResourceServlet /servlet-class /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping session-config session-timeout10/session-timeout /session-config mime-mapping extensionhtml/extension mime-typetext/html/mime-type /mime-mapping mime-mapping extensiontxt/extension mime-typetext/plain/mime-type /mime-mapping filter filter-nameadfFaces/filter-name filter-classoracle.adf.view.faces.webapp.AdfFacesFilter/filter-class /filter filter filter-nameadfBindings/filter-name filter-class oracle.adf.model.servlet.ADFBindingFilter/filter-class /filter filter filter-nameshale/filter-name filter-class org.apache.shale.faces.ShaleApplicationFilter /filter-class /filter filter-mapping filter-nameadfFaces/filter-name servlet-name*.jsp/servlet-name /filter-mapping filter-mapping filter-nameadfFaces/filter-name url-pattern*.jspx/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping welcome-file-list welcome-file/faces/pages/welcome.jsp/welcome-file /welcome-file-list /web-app -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 9:13 PM To: adffaces-dev@incubator.apache.org Subject: Re: ADF Faces/Trinidad Shale? Hello, try adding those lines to web.xml filter filter-nameadfFaces/filter-name filter-classoracle.adf.view.faces.webapp.AdfFacesFilter /filter-class /filter filter-mapping filter-nameadfFaces/filter-name servlet-nameFaces Servlet/servlet-name
ADF Faces/Trinidad Shale?
Anyone has tried to incorporate Shale into existing Trinidad Apps? I initially tried this, I added a the necessary entries on the web.xml. When I run the application it displays an error saying: 500 Internal Server Error Illegal StateException:No AdfRenderingContext //StackTrace follows *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: ADF Faces/Trinidad Shale?
Yes Im working on ADF Faces. Do you have an idea why this is not working? This happens when I put the necessary entries for shale on the web.xml file. But when I erase the Shale entries, everything's fine. Im trying again to call a managed bean function from a javascript function, -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 8:20 PM To: adffaces-dev@incubator.apache.org Subject: Re: ADF Faces/Trinidad Shale? AdfRenderingContext no longer exists so I assume you're actually working with ADF Faces? Your trinidad filter must be installed, but not the ADF Faces one maybe? On 10/20/06, Anthony Yulo [EMAIL PROTECTED] wrote: Anyone has tried to incorporate Shale into existing Trinidad Apps? I initially tried this, I added a the necessary entries on the web.xml. When I run the application it displays an error saying: 500 Internal Server Error Illegal StateException:No AdfRenderingContext //StackTrace follows *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: ADF Faces/Trinidad Shale?
This is the complete web.xml: ?xml version = '1.0' encoding = 'windows-1252'? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; descriptionEmpty web.xml file for Web Application/description context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-nameCpxFileName/param-name param-valueorg.clarke.pagedefs.DataBindings/param-value /context-param !-- Commons Chain Configuration Resources -- context-param param-nameorg.apache.commons.chain.CONFIG_WEB_RESOURCE/param-name param-value/WEB-INF/chain-config.xml/param-value /context-param !-- Shale Application Controller Filter -- context-param param-nameorg.apache.shale.view.EXCEPTION_DISPATCH_PATH/param-name param-value/exception/correct.faces/param-value /context-param !-- Commons Chain Configuration Listener -- listener listener-class org.apache.commons.chain.web.ChainListener /listener-class /listener !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- JavaServer Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping servlet servlet-nameresources/servlet-name servlet-classoracle.adf.view.faces.webapp.ResourceServlet/servlet-class /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping session-config session-timeout10/session-timeout /session-config mime-mapping extensionhtml/extension mime-typetext/html/mime-type /mime-mapping mime-mapping extensiontxt/extension mime-typetext/plain/mime-type /mime-mapping filter filter-nameadfFaces/filter-name filter-classoracle.adf.view.faces.webapp.AdfFacesFilter/filter-class /filter filter filter-nameadfBindings/filter-name filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class /filter filter filter-nameshale/filter-name filter-class org.apache.shale.faces.ShaleApplicationFilter /filter-class /filter filter-mapping filter-nameadfFaces/filter-name servlet-name*.jsp/servlet-name /filter-mapping filter-mapping filter-nameadfFaces/filter-name url-pattern*.jspx/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping welcome-file-list welcome-file/faces/pages/welcome.jsp/welcome-file /welcome-file-list /web-app -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 9:13 PM To: adffaces-dev@incubator.apache.org Subject: Re: ADF Faces/Trinidad Shale? Hello, try adding those lines to web.xml filter filter-nameadfFaces/filter-name filter-classoracle.adf.view.faces.webapp.AdfFacesFilter /filter-class /filter filter-mapping filter-nameadfFaces/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping On 10/20/06, Anthony Yulo [EMAIL PROTECTED] wrote: Shale uses the standard JSF Servlet: How do I this? servlet servlet-namefaces/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class /servlet servlet-mapping servlet-namefaces/servlet-name url-pattern*.faces/url-pattern /servlet-mapping -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 8:52 PM To: adffaces-dev@incubator.apache.org Subject: Re: ADF Faces/Trinidad Shale? I'm not well versed with Shale yet. However I can go with an hypothesis. Does Shale use a Servlet? If so, you must place ADF Faces filter on that servlet as well. Regards, ~ Simon On 10/20/06, Anthony Yulo [EMAIL PROTECTED] wrote: Yes Im working on ADF Faces. Do you have an idea why this is not working? This happens when I put the necessary entries for shale on the web.xmlfile. But when I erase the Shale entries, everything's fine. Im trying again to call a managed bean function from a javascript function, -Original
DWR and ADF Faces
Has anyone tried to integrate DWR with ADF Faces? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: DWR and ADF Faces
Actually what I want is to launch a dialog when the onfocus() event fires. I am getting the FacesContext Instance on the method that is called by the javascript so that will pose a problem? af:inputText ... onfocus=FocusFunction() / ... ... ... // function FocusFunction() { BackingBean.launchDialog(); } ... ... ... public void launchDialog() { FacesContext context = FacesContext.getCurrentInstance(); ... ... ... } -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 9:41 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces I did not try it, but I don't see any reason why it would not work though, as long as you don't need a FacesContext instance in your DWR method. If you do, it might get hellish. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Has anyone tried to integrate DWR with ADF Faces? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: DWR and ADF Faces
How do I put in front of the DWR servlet? :D Do I just set it on the web.xml file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Thursday, October 05, 2006 10:23 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces AdfFacesContext (or RequestContext in trinidad) .getCurr...() will also return null, unless you put the filter in front of the DWR servlet, I guess... On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Well I know the launchDialog function gets called so I know that the DWR is working and that I can all java code from the javascript. However, the popup window is not showing and that the browser is issuing an alertbox with message: null. And, Simon said that as long as you don't use the FacesContext's instance, it will be fine. But here I am using the FacesContext. Here is the actual code: public void launchDialog() { System.out.println(Launch Dialog called.); FacesContext context = FacesContext.getCurrentInstance(); ViewHandler viewHandler = context.getApplication().getViewHandler(); UIViewRoot dialog = viewHandler.createView(context, /pages/iv/dialogPage.jsp); HashMap properties = new HashMap(); properties.put(width, new Integer(250)); properties.put(height, new Integer(150)); AdfFacesContext.getCurrentInstance().launchDialog(dialog,properties,null,tru e,properties); System.out.println(after launch + componentId); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Thursday, October 05, 2006 10:08 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces what was the result of that? or haven't you tried? On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Actually what I want is to launch a dialog when the onfocus() event fires. I am getting the FacesContext Instance on the method that is called by the javascript so that will pose a problem? af:inputText ... onfocus=FocusFunction() / ... ... ... // function FocusFunction() { BackingBean.launchDialog(); } ... ... ... public void launchDialog() { FacesContext context = FacesContext.getCurrentInstance(); ... ... ... } -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 9:41 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces I did not try it, but I don't see any reason why it would not work though, as long as you don't need a FacesContext instance in your DWR method. If you do, it might get hellish. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Has anyone tried to integrate DWR with ADF Faces? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than
RE: DWR and ADF Faces
Alright. Thanks guys. I'll try to do your suggestions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Thursday, October 05, 2006 10:54 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces I think we can't say that. We just haven't used it. But you see from our mails that there maybe some issues... On the other hand, I read a success message about JSF and DWR on the myfaces list in the past... On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Im planning to do this on a production environment. Nightmarish? So you're saying that this is not adviseable to implement this on a production environment? What do you mean nightmarish? The results will not be consistent? -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 10:29 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces Using DWR to do that will be nightmarish I think... You'll need a TrinidadContext instance as well to push the dialog... Hmmm I think this could be a nice improvement for Trinidad though, an attribute to send an action from any JavaScript event. Maybe a keyword placed in the event attributes, or new attributes altogether. All components implementing that would have to also implement ActionSource/ActionSource 2 though. This is not a small change, but it would open a whole new level of functionality. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Well I know the launchDialog function gets called so I know that the DWR is working and that I can all java code from the javascript. However, the popup window is not showing and that the browser is issuing an alertbox with message: null. And, Simon said that as long as you don't use the FacesContext's instance, it will be fine. But here I am using the FacesContext. Here is the actual code: public void launchDialog() { System.out.println(Launch Dialog called.); FacesContext context = FacesContext.getCurrentInstance(); ViewHandler viewHandler = context.getApplication ().getViewHandler(); UIViewRoot dialog = viewHandler.createView(context, /pages/iv/dialogPage.jsp); HashMap properties = new HashMap(); properties.put(width, new Integer(250)); properties.put(height, new Integer(150)); AdfFacesContext.getCurrentInstance ().launchDialog(dialog,properties,null,tru e,properties); System.out.println(after launch + componentId); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Thursday, October 05, 2006 10:08 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces what was the result of that? or haven't you tried? On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Actually what I want is to launch a dialog when the onfocus() event fires. I am getting the FacesContext Instance on the method that is called by the javascript so that will pose a problem? af:inputText ... onfocus=FocusFunction() / ... ... ... // function FocusFunction() { BackingBean.launchDialog(); } ... ... ... public void launchDialog() { FacesContext context = FacesContext.getCurrentInstance(); ... ... ... } -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 9:41 PM To: adffaces-dev@incubator.apache.org Subject: Re: DWR and ADF Faces I did not try it, but I don't see any reason why it would not work though, as long as you don't need a FacesContext instance in your DWR method. If you do, it might get hellish. Regards, ~ Simon On 10/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Has anyone tried to integrate DWR with ADF Faces? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error
RE: Complete Skin Selectors listing
Thanks again. Right now I am using the ADF Faces version the came with JDeveloper 10.1.3.1. What I am using now is not the Trinidad version. So, is the selectors listing on /trinidad/src/site/xdoc/skin-selectors.xml, should be usable on the ADF Faces version that came JDev 10.1.3.1? I am trying to change the appearance of the af:inputText when it is normal, disable and readonly. When I set the selectors: af|inputText::content {} af|inputText::disabled::content {} af|inputText::readOnly::content {} , There is no change in appearance of my inputTexts, when I run my page. -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 8:58 PM To: adffaces-dev@incubator.apache.org Subject: Re: Complete Skin Selectors listing Hello Anthony, /trinidad/src/site/xdoc/skin-selectors.xml Regards, ~ Simon On 9/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Hi! What again is the xml file to look for the complete CSS selectors? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: Complete Skin Selectors listing
Alright, so I cant use the /Trinidad/../../skin-selectors.xml huh? When I refer to the skin selectors list on oracle (http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/excha nge/jsf/doc/skin-selectors.html), there is no af|inputText:content, selector. I tried to style the af:inputText using this selector instead: .AFFieldText { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; vertical-align: middle; border: 1px solid #FF9ABC } this selector rendered the inputText with a white background and a border. The problem with this is when the inputText is readonly or disabled, the inputtext is rendered with transparent background(color similar to the panelForm that contains the inputText) and the border. I don't want that. I want the readonly, disabled inputText version the same when it was rendered as not readonly or not disabled or atleast remove the border. Any thoughts regarding this one? -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 9:28 PM To: adffaces-dev@incubator.apache.org Subject: Re: Complete Skin Selectors listing Ahh, Use the following link then: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchan ge/jsf/doc/skin-selectors.html I think the selectors you want are actually af|inputText::content {} af|inputText:disabled::content {} af|inputText:readOnly::content {} At least those are the good one in Trinidad. Regards, ~ Simon On 9/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Thanks again. Right now I am using the ADF Faces version the came with JDeveloper 10.1.3.1. What I am using now is not the Trinidad version. So, is the selectors listing on /trinidad/src/site/xdoc/skin-selectors.xml, should be usable on the ADF Faces version that came JDev 10.1.3.1? I am trying to change the appearance of the af:inputText when it is normal, disable and readonly. When I set the selectors: af|inputText::content {} af|inputText::disabled::content {} af|inputText::readOnly::content {} , There is no change in appearance of my inputTexts, when I run my page. -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 8:58 PM To: adffaces-dev@incubator.apache.org Subject: Re: Complete Skin Selectors listing Hello Anthony, /trinidad/src/site/xdoc/skin-selectors.xml Regards, ~ Simon On 9/5/06, Anthony Yulo [EMAIL PROTECTED] wrote: Hi! What again is the xml file to look for the complete CSS selectors? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
Complete Skin Selectors listing
Hi! What again is the xml file to look for the complete CSS selectors? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: Ajax RenderKit Question.
My question was if the Commercial version of ADF Faces not Trinidad. I need to build a custom component based on the commercial version with Ajax functionalities. I asked you this question because if the Ajax Render Kit described on the article by Jonas Jacobi and John Fallows (The Benefits of the Ajax RenderKit http://ajax.sys-con.com/read/232061.htm), is available on the Commercial version, then I can just leverage the Ajax render kit when I am doing my custom JSF/AJAX component. If not, then what I can do is use the commercial version and Trinidad side by side with my app. I can build custom JSF/Ajax component from scratch but I want to leverage existing frameworks provided. Regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Saturday, September 02, 2006 1:39 AM To: adffaces-dev@incubator.apache.org Subject: Re: Ajax RenderKit Question. PPR is not really Ajax in meaning of XmlHttpRequest. but PPR is available in Trinidad, if you mean that with Ajax RK. -Matthias On 9/1/06, Simon Lessard [EMAIL PROTECTED] wrote: Hello Anthony, Yes, PPR is fully functional in Trinidad. Regards, ~ Simon On 9/1/06, Anthony Yulo [EMAIL PROTECTED] wrote: Is the Ajax Render kit built in also on the licensed version of ADF Faces?*The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.* -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
Ajax RenderKit Question.
Is the Ajax Render kit built in also on the licensed version of ADF Faces?*The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: Custom Skins for Different Form Factors
Can you point to me some reading articles and resources on how to properly start developing skins in ADF? Maybe an advance article on this one as I have already made some simple skins. I already started making a custom skin with the skinning article on OTN, however its not complete. I need the complete css selectors. I did find some selectors by searching for .css and .xss files on the jdev directory but its not complete. *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*
RE: Custom Skins for Different Form Factors
Hi. I tried to get the source of ADF Faces/Trinidad on SVN integrated in JDeveloper. I got the url from the homepage of Faces: http://svn.apache.org/viewvc/incubator/adffaces/ When I tested the connection, the message was: svn:PROPFIND request failed... ...302 Moved Temporarily... ... Is there an updated url? *The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.*