tag:blogger.com,1999:blog-5874979429188093780.post4379073771092211824..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: JDeveloper 11g PS2 Update - Custom Declarative Components in ADF Faces Rich ClientAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-5874979429188093780.post-65388860697146107612012-02-27T16:46:04.707+01:002012-02-27T16:46:04.707+01:00Hi Andrejus:
I want to know how to build a declar...Hi Andrejus:<br /> I want to know how to build a declarative component with a java class associated. Something like ViewObjects with ViewObjectImpl. I want like to access to all attributes of my declarative component throw my java class. So, if my declarative component had a LOV, I want to have an access like this myJavaClassInstance.LOV..... . Can you give an idea. Regards. Zinov<br /><br />can you reply this question to zinova1985@gmail.com or give an url of your blog to see the answer?<br />Best wishes.<br />Ivan ZinovZinovnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-38906971098138011262011-08-16T17:10:10.322+02:002011-08-16T17:10:10.322+02:00Ok I found a solution to my problem.
I set inputL...Ok I found a solution to my problem.<br /><br />I set inputListOfValues component's autoSubmit to false.<br /><br />Then I add an listening to "onBlur" events.<br /><br />And in the javascript code executed on blur, I call an AdfCustomEvent wich do nothing.<br /><br />I think this call refresh UIComponents or something like this, so the outputTextField is populated with the good value.<br /><br />And without autoSubmit=true, I have no more problem with the LOV search execution or I don't know what.<br /><br />h0sAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-29130709393326555902011-08-16T15:20:12.082+02:002011-08-16T15:20:12.082+02:00Hi,
Nice component!
But it seems there is a strang...Hi,<br />Nice component!<br />But it seems there is a strange bug...<br />With your exemple, if I put 20 and I press TAB Key, the LOV research Popup appears with 20 and 200. I choose 20 and both input and output fields are populated. OK.<br />Now, I put 40 and I press TAB Key : the component put the previous value (20). I try another value and it put again 20.<br />This bug appears only with TAB Key. If I put value then I click on another field it works good.<br /><br />I would like to modify this LOV component to focus next field when using TAB Key. I try something like it is explained here : http://blogs.oracle.com/jdevotnharvest/entry/how-to_control_the_keyboard_tab_behavior_in_a_lov_field<br />But, whith autoSubmit=true, the LOV search is executed and the focus is set on the LOV search buton. (and I have the bug).<br /><br />Is there a solution to keep autoSubmit=true but without the LOV search query automatic execution?<br />or a way to populate the outputfield (departmentName) without setting autoSubmit=true?<br /><br />I'm not sure I am very understandable...<br /><br />I use JDevelopper 11g release 2. (11.1.2.0.0).<br /><br />Thanks,<br /><br />h0sAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-58170332620980664962011-08-03T07:13:52.594+02:002011-08-03T07:13:52.594+02:00You should contact Oracle, if you want to make you...You should contact Oracle, if you want to make your extension available from Updates Center. Then it will be available for all Oracle JDeveloper users in the world.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-13759052819487843692011-08-03T03:37:27.206+02:002011-08-03T03:37:27.206+02:00Hi Andrejus,
Thank you for the blog.
I created my ...Hi Andrejus,<br />Thank you for the blog.<br />I created my own foobar custom component. I deployed it and added the adf lib jar to my project. Now I want to be able to distribute this to other people without just passing the jar file. In other words, maybe make it available as an extension from the update center and when someone picks it up, i want jdeveloper to take care of loading the libraries for my foobar component. I'm using jdev 11.1.2. Do you have suggestions about this or any documentation on how to go about this ?<br /><br />Thanks,<br />SandySandynoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-46673090007281145232011-07-25T15:56:36.809+02:002011-07-25T15:56:36.809+02:00Yes, should be possible.
AndrejusYes, should be possible.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-86892245574726347062011-07-25T15:55:10.985+02:002011-07-25T15:55:10.985+02:00Can this declarative component be used inside by ...Can this declarative component be used inside by changing attribute hints?nmshttps://www.blogger.com/profile/14708011165274497634noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-84584664137682218952011-04-14T17:28:28.603+02:002011-04-14T17:28:28.603+02:00Okej, so its reproduced even for basic LOV compone...Okej, so its reproduced even for basic LOV component, not only declarative. Can you test same with PS3, may be its fixed?<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-49579963148525401732011-04-14T11:56:21.221+02:002011-04-14T11:56:21.221+02:00Hi Andrejus
I've tested also standart adf com...Hi Andrejus<br /><br />I've tested also standart adf component inputListOfValues without declarative component, but it was placed in a row of a table and it doesn't work.<br /><br />My version of jdev is Studio Edition 11.1.1.3.0<br /><br />PeterUnknownhttps://www.blogger.com/profile/03999496701087915723noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-41678700241965810632011-04-13T19:15:55.923+02:002011-04-13T19:15:55.923+02:00Hi,
Did you tried to test same behavior with stan...Hi,<br /><br />Did you tried to test same behavior with standard LOV, does it work?<br /><br />Which version of JDev you are using?<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-39636538508764662922011-04-13T19:04:10.693+02:002011-04-13T19:04:10.693+02:00Hi,
This component is a great job, but I found a l...Hi,<br />This component is a great job, but I found a littel bug. When You try to use advance query and add two filter on the same field, in Your case DepartmenName. Then press search everything is ok. But trie to change one filter value and one more time press search. It doesn't work as the first time. The component doesn't see changes. What I found and it's vrey strange, this work only for field that is first in the view object. I now it's strange and I've check it few times. The problem occures only for listOfValues. Have You any idea what is going on with that component and how to fix it?<br /><br />Regards<br />Peter.Unknownhttps://www.blogger.com/profile/03999496701087915723noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-49448388370824861542011-04-07T17:47:20.483+02:002011-04-07T17:47:20.483+02:00Saikiran,
try setting the binding to
binding=#{req...Saikiran,<br />try setting the binding to<br />binding=#{requestScope.myBindingName}<br />then you can retrieve it from requestScope.Donnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-22965438222631954902010-12-20T14:53:02.636+01:002010-12-20T14:53:02.636+01:00A quick one I was able to create ViewObject using ...A quick one I was able to create ViewObject using stored procedures but when I drop it as inputListOfValues on jspx it appears at af:outputlabel in running mode.<br />What am I not doing on ViewObject.<br />Thanks in advance.Unknownhttps://www.blogger.com/profile/09524109792534047716noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-8634358067572243352010-06-16T09:47:12.947+02:002010-06-16T09:47:12.947+02:00Hi,
I created a Custom Declarative component, w...Hi,<br /> I created a Custom Declarative component, which has a panel header, but i wanted to expose the binding property of the panel header, so i added a attribute of type RichPanelHeader, and used it in bindings of the panel header, but i am getting following error,<br /> Unserializable value:RichPanelHeader[UIXFacesBeanImpl, id=dc_cnt_ph1] for key:PropertyKey[phBinding]<br /><br />is there any solution?Saikiranhttps://www.blogger.com/profile/13666944135145560103noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-20272584675506850062010-05-23T10:11:49.525+02:002010-05-23T10:11:49.525+02:00Dear Andrejus
Thanks for your helpful blog.
I ha...Dear Andrejus<br /><br />Thanks for your helpful blog.<br /><br />I have the same problem as mavell. I had a component in JDeveloper 11.1.1.1.0 including 4 LOVs. It worked well. We have recently immigrated to JDeveloper 11.1.1.2.0, and the trouble began. I simplified using just one LOV, but it didn't work yet. I had two attributes for each LOV, one of type String for its value and one of type ListOfValuesModel for its model.<br />Something like this:<br /><br /> <af:componentDef var="attrs" componentVar="component"><br /> <af:inputListOfValues label="" <br /> id="lovGeneral"<br /> value="#{attrs.generalValue}"<br /> model="#{attrs.generalModel}"<br /> partialTriggers="lovGeneral"<br /> autoSubmit="true"><br /> </af:inputListOfValues><br /> <af:xmlContent><br /> <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component"><br /> <display-name>selectAccount</display-name><br /> <component-class>component.SelectAccount</component-class><br /> <attribute><br /> <attribute-name>generalModel</attribute-name><br /> <attribute-class>oracle.adf.view.rich.model.ListOfValuesModel</attribute-class><br /> </attribute><br /> <attribute><br /> <attribute-name>generalValue</attribute-name><br /> <attribute-class>java.lang.String</attribute-class><br /> </attribute><br /> <component-extension><br /> <component-tag-namespace>component</component-tag-namespace><br /> <component-taglib-uri>/mcfsComponentLib</component-taglib-uri><br /> </component-extension><br /> </component><br /> </af:xmlContent><br /> </af:componentDef><br /><br />and the usage was like this:<br /><br /><mcfs:selectAccount id="selectAccount2"<br /> generalModel="#{bindings.AccAccount.listOfValuesModel}"<br /> generalValue="#{bindings.AccAccount.inputValue}"/><br /><br />I changed it using just one attribute of FacesCtrlLOVBinding type. I got both value and model from it. It didn't work too.<br />The component:<br /><br /> <af:componentDef var="attrs" componentVar="component"><br /> <af:inputListOfValues label="" <br /> id="lovGeneral"<br /> value="#{attrs.generalListBinding.inputValue}"<br /> model="#{attrs.generalListBinding.listOfValuesModel}"<br /> partialTriggers="lovGeneral"<br /> autoSubmit="true"><br /> </af:inputListOfValues><br /> <af:xmlContent><br /> <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component"><br /> <display-name>selectAccount</display-name><br /> <component-class>component.SelectAccount</component-class><br /> <attribute><br /> <attribute-name>generalListBinding</attribute-name><br /> <attribute-class>oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding</attribute-class><br /> </attribute><br /> <component-extension><br /> <component-tag-namespace>component</component-tag-namespace><br /> <component-taglib-uri>/mcfsComponentLib</component-taglib-uri><br /> </component-extension><br /> </component><br /> </af:xmlContent><br /> </af:componentDef><br /><br />and the usage:<br /><br /><mcfs:selectAccount id="selectAccount2"<br /> generalBinding="#{bindings.AccAccount}"/><br /><br />I read your post, and I replaces FacesCtrlLOVBinding with ListOfValuesModel. but it didn't work as well. Do you have any idea what my fault is?<br /><br />Thanks for reading mu novel ;)<br />MehdiMehdi Javanhttps://www.blogger.com/profile/18017572089435381357noreply@blogger.com