Dynamic declarative component won't work properly within table row

Hi guys,
I built a dynamic declarative component which basically consists of an af:inputText surrounded by a af:panelLabelAndMessage tag.
The component works fine until I put it inside a table column, then none of the attribute values get set.
The problem seems to be related to the table row binding #{row.binding.Name.inputValue} , if I use a regular binding #{binding.Name.inputValue} it works ok.
The declarative components attribute is defined as
<attribute>
    <attribute-name>kbez</attribute-name>
    <attribute-class>java.lang.Object</attribute-class>
</attribute>and is used as the inputText's value attribute
<af:componentDef var="attrs" componentVar="component">
    <af:panelLabelAndMessage label="#{attrs.label}" id="dc_plam1"
                             for="dc_it1" labelStyle="white-space:nowrap;"
                             showRequired="#{attrs.showRequired}"
                             rendered="#{attrs.rendered}">
        <af:inputText id="dc_it1" value="#{attrs.kbez}"
                      autoSubmit="true" immediate="false" ...>The component inside a table column is set like this
<af:declarativeComponent viewId="/WEB-INF/ikb.adf.kreda.basis/mitarbeitersuche/ddc/mitarbeiterLOV.jsff"
                         id="ddc1" label="Mitarbeiter"
                         kbez="#{row.bindings.Kbez.inputValue}"/>My JDeveloper version is 11.1.1.5.
Am I doing it wrong or is this a bug?
Any help is appreciated.
Thank you,
Achim
Edited by: Achim Rosenfeld on Mar 8, 2013 8:41 AM

Hi,
+#{row.binding.Name.inputValue} , if I use a regular binding #{binding.Name.inputValue} it works ok.+
Don't think that #{binding.Name.inputValue} works okay in a table because it doesn't stamp the component per row. Actually I don't know if we support dynamic declarative components in a stamped environment (table). I know though that we don't for taglib declarative components in this context.
Reason why it doesn't work: Tables are stamped at runtime, which means that for better performance, only the generated HTML is reused for each row with different data - not the component. Your component requires itself to be re-created for each row so it can re-read the attribute again. This is not the case in a stameped environment
Solution: For your particular use case I don't think that a dynamic declarative component is needed as you can add the construct (af:inputText surrounded by a af:panelLabelAndMessage) directly into an af:column tag. The declarative component makes more sense for reuse of layout areas (e.g. custom tabs) that are iterated within an af:forEach (in which case instances of the decalarative components would be created).
Bottom line: tables stamp their components and as such the attribute property exposed on a DDC doesn't seem to be called for each row, which is by design. This can be considered a bug if there is a use case demanding for a DDC in a table. If this is a requirement for you (and you can't directly add the components to the af:column tag) feel free to file this as a service request with customer support (required a support contract) so development can have a look if the requirement is feasible to implement.
Frank

Similar Messages

  • Why AdobePPro CS4 won't work properly with Win7 Ultimate OS

    Can u please explain why Adobe PremierePro CS4 won'r work properly with Windows 7 Ultimate?? Is it because of a "bit" differences?? or for any other reason?? I have freezing problems on time line.. I am using Sony XD EX1 clips on the time line. Sometimes it works up to Dynamic LInk Encore and when it starts encoding, after few seconds it gives an error message "Encode failed" My computer config: WIN7 Ultimate/ Xeon 2.4 GHz, 12 GB RAM, Nvidia FX3800 Video card with 1GB RAM, C:\ 1TB SASHDD on RAID 5 system, D:\600 GB SAS HDD (not on RAID) Any thoughts to get it going? Thanks

    Read A fix via Virtual XP
    http://forums.adobe.com/thread/702693?tstart=0

  • Dynamic Declare Component cannot find property

    We currently have one main page calls a DDC(Dynamic declarative component) page fragment to create/update a record in database. The main page pass in a key to DDC when it loads DDC. The DDC binds to a view object with bind variable (get value from the passed key and load data from table) and several LOV attributes. Once user clicks submit button in main page, we wish that all the fields displayed in DDC could be committed to a database table to save.
    I use 11.1.1.5.
    In order to assign the bind variable of VO, we wrote a method in Application Module and make it invoked as the first executable when the main page is loaded. The deployment is fine. However, the runtime always thrown some exception to complain it cannot find property definition like this:
    ####<Aug 15, 2011 6:32:24 PM CDT> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <curmailts1-corp> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <6b1af60b3a40d50a:-6c52e935:131cfc2d522:-8000-000000000000024c> <1313451144494> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: Target Unreachable, 'WorkDescription' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
    Questions: 1) Why my method in Application Module not called?
    2) Whether DDC is a right solution for our use case? Any suggestion or sample are welcomed!
    Thanks,

    Hi,
    I appreciate if you can show your code, but before that, make sure if you're following this tip below:
    "Declarative Components are regular JSF components except that they are built as a composite out of existing ADF Faces components. Declarative components cannot have a PageDef file associated with it and instead use value or method attribute to communicate with the consuming page. When creating a declarative component, the attrs implicit object is defined that allow you to reference the component's exposed value attribute from ADF Faces components within.
    An input text field contained in an declarative component may reference a value attribute "compValue" defined on the declarative component by using the following EL
    #{attrs.compValue}
    The declarative component compValue attribute then would us an EL reference like shown next to read/write values from or to the ADF binding layer:
    #{bindings.attribute_name.inputValue}"
    (Oracle ADF Code Corner)
    Regards,

  • Iphoto9 won't work properly in Snow Leopard

    On my Macbook (2008) iphoto9 won't work properly in Snow Leopard. What do I do? Upgrade to iphoto 11 or is there another way?
    I was happy with iphoto9.

    Had a look around the message boards and found this link, has solved the problem.
    http://www.apple.com/support/downloads/proapplicationsupport31macosx104.html

  • IPOD won't work properly if drive C: is available on your computer

    The Windows XP driver for the Apple IPOD USB Device has a bug that makes your system very slow or even hang when you try to connect or eject your IPOD if Drive "C:" is available on your machine. Another symptom is that when you connect your ipod, the computer doesn't automatically launch the ITunes app and it is very slow to open manually.
    A typical problem is that if your system has had a hard drive replaced and/or the drive "C" is not assigned for some reason, then the IPOD USB Driver will attach itself as drive "C:" and then it won't work properly seemingly because of conflicts with the Windows OS. Other USB devices never grab drive "C:" but this Apple-supplied device driver appears to think it is OK to use drive C: but then it doesn't work properly.
    The fix is to make sure some real (physical) drive is always connected to or mapped to drive "C:" so that the IPOD USB driver attaches to a drive from "D:" and up.
    Also try reading: http://docs.info.apple.com/article.html?artnum=93499 for more info.

    yeah, the ipod normally gets assigned the f, g, or h drive letters. i don't really know though if windows is responsible for assigning the drive letters to usb devices or the ipod driver. to my understanding the ipodservice.exe only makes sure that itunes can comunicate to the ipod through the drive letter that windows assigns to the ipod. windows is the os and therefore responsible for managinig its drive letters.

  • Since updating to ios 6 my ebooks won't work properly on my iPad. Skips from first page of a chapter directly to first page of next chapter. I'm very unimpressed

    Since updating to ios 6 yesterday, my ebooks won't work properly. They jump from first page of one chapter onto first page of next chapter. Obviously missing all the pages in between. Anyone else having this problem? Help please....

    I have a similar problem with Microsoft Visual C# 2010 Step by Step.  This ebook worked fine until I upgraded to ios 6.

  • My iMessage won't work properly on my iPhone4

    My iPhone 4s iMessage won't work properly and I don't know why.

    I am also getting the message to connect to iTunes to use notifications even though I have notifications turned off for the app???

  • Keypad won't work properly on 'A'

    I need help about my keyboard. i'm using a curve 8520 on 0S5.
    My letter 'A' in the keyboard suddenly won't work properly.. Just a soft touch and it would appear automatically... in Uppercase. Because of this, i am having a hard time when typing. i copy paste the lower case 'a' so typing would be easy.
    Also, since the 'lock' is also in that key, my phone would always lock automatically and with that... my phone seems to go 'off' and i would have to longpress any key so it would come alive again.
    i tried the application clean-up thing in the desktop manager as @BlackberryHelp tweeted me when i asked them about this but still there are no changes.. i also tried putting a tissue in the back of the metal plate thing. i am so worried coz i just got this phone 3 months ago. Please help me about this! Thank you so much.

    i managed to unlock my phone by keeping power on, remove battery and presto its unlocked. problem is stil letter "a" in keypad is not working can anyone suggest how to fix it instead of going to a technician?

  • Dynamic Declarative Component managed bean returned null

    Hi,
    In a project from an application a DDC component is defined. This component uses a managed/backing bean with view scope.
    Using this component inside this project is working fine. This component should be used in other view controller projects, and here where the problems are.
    This project(let's call it Common) is deployed as ADF Library jar, and used in the other V-C projects.
    The big problem is that the managed bean defined for the logic of this component is not 'reacheable'.
    (Another problem is that the attribute value is not seen as its EL expression but as string, for this i found a workaround.)
    In project Common the adfc-config.xml file:
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__4">
        <managed-bean-name id="__2">ExtendedShuttle</managed-bean-name>
        <managed-bean-class id="__1">com.xyz.portal.taskflow.common.extendedshuttle.ExtendedShuttle</managed-bean-class>
        <managed-bean-scope id="__3">view</managed-bean-scope>
      </managed-bean>
    </adfc-config>A part from component declaration:
          <af:table var="row" rowBandingInterval="0" id="ta"
                                  rowSelection="multiple" columnStretching="last"
                                  disableColumnReordering="true" fetchSize="-1"
                                  binding="#{viewScope.ExtendedShuttle.allItemsTable}"
                                  value="#{viewScope.ExtendedShuttle.allModel}"
                                  partialTriggers="::dc_cb5 ::dc_cb3"
                                  filterVisible="true"/>The root exception is :
    javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
    This exception is throw on com.sun.faces.application.ApplicationImpl.createComponent when *#{viewScope.ExtendedShuttle.allItemsTable}* is evaluated.
    Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    Caused By: javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:70)
         at oracle.adfinternal.view.faces.taglib.UIXTableTag.doStartTag(UIXTableTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.data.UnifiedTableTag.doStartTag(UnifiedTableTag.java:50)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, 'ExtendedShuttle' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:259)
    Can you help figure it out, why is not working or why the managed bean is not visible in other projects but only in the one where the component is defined?
    Thank you for your time,
    Bogdan
    ps: how can i format the source code, on this fourm?

    Hi Frank,
    Thank you for the answer.
    I must say i'm quite new with ADF technology and maybe my questions are silly.
    Here is a Quote from "Oracle Fusion Developer Guide - Building Rich Internet Application with Oracle ADF" by Frank Nimphius and Lynn Munsinger Chapter 15 page 498:
    "You build dynamic declarative components *instead* of tag library based declarative components, if component resuse is required *only within the application* that has the component defined."
    Maybe i misunderstand the meaning of application from this sentence, but i need this component in several ViewController projects from only one application (ADF application).
    Tag lib declarative component I would not like to have, since the (automtically) build process is not my responsability and it will take some time till is pinpointed, but still is a last resort.
    Anyway two things are strange:
    1. Why the component is still available in other projects(and the beans not)?
    2. Why when a binding variable (for example: of type FaceCtrlHierBinding) has the correct type in the declarative project and in the order projects is of type String and its value is the variable name?
    Example:
    <af:declarativeComponent ...
    AllItems="#{bindings.Action}"
    In project where the component is declared its value is an instance of FacesCtrlHierBinding and in the rest of the projects is of type String with value "Action".
    Once again thank you a lot,
    Bogdan

  • "Manually manage" won't work properly?

    I just recently got a new iPhone, switching from an iTouch, and I have my music sprawled across 2 laptops (Dell and Acer) and a Dell PC. I used to be able to check "Manually manage music and videos" and just take from each of my computers, but now it wont work properly. I check to manually manage, click accept on one computer, put the songs on, but when I go to the next one it still prompts me to "Erase and sync". My iTunes is set to NOT automatically sync as well. It also wont let me put anything from that computer onto it without erasing the other songs, and all of the content is spread almost equally over all computers, so it is a hassle to move all the files to one. I click to manually manage but it only works on one library or else I have to erase and sync anyway. Please help with this, I cant afford to move my songs to one computer at this point.

    Sync iPod/iPad/iPhone with two computers
    Although it isn't possible to sync an Apple device with two different libraries it is possible to sync with the same logical library from multiple computers. Each library has an internal ID and when iTunes connects to your iPod/iPad/iPhone it compares the local ID with the one the device normally syncs with. If they are the same you can go ahead and sync...
    I have my library cloned to a small 1Tb USB drive which I can take between home & work. At either location I use SyncToy 2.1 to update the local copy with the external drive. Mac users should be able to find similar tools. I can open either of the local libraries or the one on the external drive and update the media content of my iPhone. The slight exception is Photos which normally connects to a specific folder on a specific machine, although that can easily be remapped to the current library if you create a "Photos" folder inside the iTunes Media folder so that syncing the iTunes folders keeps this up to date as well. I periodically sweep my library for new files & orphans with iTunes Folder Watch just in case I make changes at one location but then overwrite the library with a newer copy from the other. Again Mac users should be able to find similar tools.
    As long as your media is organised within an iTunes Music or Tunes Media folder, in turn held inside the main iTunes folder that has your library files (whether or not you let iTunes keep the media folder organised) each library can access items at the same relative path from the library folder so the library can be at different drives/paths on different machines. This solution ensures I always have adequate backups of my library and I can update my devices whenever I can connect to the same build of iTunes.
    When working with an iPhone earlier builds of iTunes would remove any file not physically present in the local library, even if there was an entry for it, making manual management practically redundant on the iPhone. This behaviour has been changed but it will still only permit manual management with a library that has the correct internal ID. If you don't want to sync your library between machines on a regular basis just copy the iTunes Library.itl file from the current "home" machine to any other you want to use, then clean out the library entires and import the local content you have on that box.
    tt2

  • Syncing Phone won't work properly

    I sycned my 6131 phone to Outlook (PC has windows 2000) and I had problems! 1) The contacts I deleted in Outlook were still on my phone. 2)The contacts where I updated details in Outlook were added as ADDITIONAL contacts on my phone. Effectively I had certain contacts listed twice, rather than once with updated information. The setting I chose on Nokia PC Suite was to update one way - from Outlook to my phone. Why won't the sync work properly?

    2 way sync is what original sync is all about:
    1) first phase, 2 databases (this case PC/Outlook and Nokia/Phone, both having phonebook with different data
    2) Let's introduce "SYNC", which means that after "sync session" both databses are IDENTICAL.
    Then these 1 way sunc's are just some sorry sessions that try to meet a need of a user that has a need that really cannot be fulfilled by sync.
    (my opinion only)

  • Ipod Nano won't work properly in my Car's AUX

    I had the old ipod before and somehow i lost it. So i decied to buy the new ipod nano but when i connect it to my car's aux , the music won't sound properly there is always a interference and a annoying noise.But the thing is this never happend to me on my old Ipod and it worked perfectly so what should i do please help..

    can someone respond please

  • Why is it that each time I upgrade my iPad, half of my apps won't work properly but worst of all my email won't send after the latest "patch" today, wake up Apple I am a new user and getting sick of this problems

    WHy is it that each time I get an upgrade some of my Apps won't work when they did with the previous version. I have just upgraded to v7.01 and now I cannot send email, wake up Apple and get it right as I am a new user of Apple technology and not impressed.

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • Photoshop elements uploader to facebook won't work properly.

    Photoshop Elements 11 gives the opportunity to share pictures with facebook.
    The facebook uploader doesn't work for me. Uploading in high resolution won't work at all. But even in standard resolution, the following problems occur:
    1) uploader does not recognise albums in facebook, and
    2) worst of all: uploades images won't be visible to friends, unless they dive into yout profile. I mean: in the uploader window i choose: visible to friends. When i log on to facebook, the images are there, but they are tagged as privat. Untagging them to 'visible for friends' won't help.
    What am i doïng wrong (PRE11)
    While uploading al settings are correct, in facebook settings become different.
    Operating system: W7, 4GB RAM, E8600
    Browser: IE 9
    (i posted this question before, apparantly in a wrong forum

    Hello Andaleeb,
    Thx for your suggestion to a solution. I'm sorry to say that it doesn't answer (all) my questions. I will try to see what difference matching the settings give, but no mather the result the following question persists:
    I have to choose an option: adding to an existing album or creating a new one. Since most of the time i (read: my wive) wants to use the uploader to share some photographs with friends, the only right option seems to create a new album. (I could live just fine without creating an album, but that option isn't available).
    So: While creating a new album with the uploader, the uploader is used to set the settings vof the new album. Now the trick: the album in facebook gets different settings.
    I would very much appreciate an solution to this particular problem.
    Thx for your help in advance.

  • Links in Google won't work properly.

    For example, if I type "green bay packers" in the Google window, then search, a link might appear that reads"Official Site of the Green Bay Packers" with a URL "www.greenbaypackers.com" at the bottom of the link. However, when I click the link, it'll open "Flurry", Infomation", or some other site I don't use, nor intend to use. (However, I can copy the URL & enter it into the URL box at the toppa the page & it'll work properly. My bookmarx are not bothered by this prob.)
    I use Google as my home page.(Not Chrome.) The prob also exists in Safe mode.

    Hello,
    As I can see from the code of the page, you seems to have a invisible rectangle (one with blue border and rounded corners) on top of the iframe HTML item.
    You need to select the rectangle and then Right click>Arrange>Send to back to place it behind the html.
    Hope this helps.
    Regards,
    Sachin

Maybe you are looking for

  • How can I distinguish special characters or signs in Doc through VBA?

    How can I distinguish special characters or signs in Doc through VBA? I have a few large documents written in word 2003 format and now I work on them under word 2007. Such large documents containing lots of special characters.  I want to change them

  • VF02 error in Release Billing document to Accounting document

    Hello SAP Folks, A sales order (VA01) and corresponding billing document has been posted (in VF01). When I try to release the billing document to Accounting, an error "Incorrect document no. XXXXXXXX.  Select the document number between yyyyyyyyy and

  • Need to fetch results as the output from QGA2

    Hi Gurus, My scenario is that i need to develop an interface in which I would send Material,Plant,MIC and Period from one system to SAP R/3 and I need to fetch the output as I get the output from QGA2 while i enter the above mentioned fields. Input:

  • Why is there no progress bar in the iTunes Miniplayer? PLEASE UPDATE THIS! (iTunes 11)

    The progress bar show in the iTunes Miniplayer in previous versions was extremely practical and useful instead of having the entire window open or flipping between spaces, especially when multitasking on one space. Please update this ASAP! I have no

  • Fast data retreival from Table BSAD

    Dear Friends, I want to retrive data from table BSAD and right now it have more than 1,300,000 records. for "where condition" i have Customer number, Document number, Document type fixed RV and only debit side S. What should i do for fast retreival o