Binding and rendering

My problem exist in the fact that the component have not been rendered when the binding setter is invoked.
Om trying this whith .getParent and .getValue and the first time i call the page they all return null and the > 1 time it returns the correct values, is there any way to force the encode, or is it not the encode thats the trouble?
JSF Code
<x:dataList id="buttonsData" styleClass="ListTableBorder"
var="button"
binding="#{printBean.renderActionButtons}"
value="#{listBean.actionbuttonslist}">
</x:dataList>
Java Code
public void setRenderActionButtons(HtmlDataList in){
htmlDataList = in;
logger.debug("htmlDataList "+htmlDataList);
if(htmlDataList!=null){
Object obj1 = htmlDataList.getValue();
Object obj2 = htmlDataList.getParent();
Object obj3 = htmlDataList.getVar();
logger.debug("obj1 " +obj1 );
logger.debug("obj2 " +obj2 );
logger.debug("obj3 " +obj3 );
}

Just to be clear:
The oracle.adf.model.binding.DCBindingContainer (a.k.a. Binding Container) represents the pageDef file for the page/fragment. In a JSF page you can refer to it via the EL expression #{bindings}. As Puthanampatti mentions the Binding Container contains references to the other bindings in your page including Value and Action bindings.
The oracle.adf.model.BindingContext (a.k.a. Binding Context) is a parent class to all the DCBindingContainer instances in your application. In a JSF page you can refer to it via the EL expression #{data}.
Note it is considered bad form to attempt to access the DCBindingContainer of another page/fragment from your current page/fragment. This is because the framework doesn't guarantee the Binding Container for the other page/fragment will be initialized.
Regards,
CM.

Similar Messages

  • Model Binding and Calculated Field Syntax for "class" Attribute

    Hi,
    I tried to use the calculated field syntax from SAP UI5 to change the CSS class attribute of an element based on some model property, i.e., I wanted to change the class in the corresponding formatter function based on the currently bound value. However, my formatter function is not called. When I use the same syntax on a text attribute, it works.
    I also tried to use normal property binding, but it did not work on the class attribute either (it just put class="{property}" in the rendered HTML).
    Is there anything I missed or is it just not possible to use property binding and calculated field syntax for class attributes? Did anybody try something like this before?
    I think it is a standard use case to change the CSS class based on some model property. So, if anybody knows how to do that, could you give a short example?
    Best regards
    Svenja

    They have a class property. At least, I can do the following in an XML view:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="my-button-class" />
    I would expect the following to work as well, but for me it did not:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="{/customClass}" />
    This renders the following HTML (cropped to the important parts):
    <button type="button" class="sapMBtn {/customClass}">
    </button>
    It seems like the class attribute is something special although I don't see a reason why. Other HTML templating engines, for example, support things like that.

  • Html comment in JSP compiled and rendered in NW7.3?

    Hi,
    We are updateing from EP NW7.0 to NW7.3 and are facing a strange issue with html comment (<!-- -->) in JSP files. It seems as in 7.3 html comment is compiled and rendered but of course does not work.
    Is this correct or is it a bug?
    Thanks,
    Stefan

    Hi,
    We are updateing from EP NW7.0 to NW7.3 and are facing a strange issue with html comment (<!-- -->) in JSP files. It seems as in 7.3 html comment is compiled and rendered but of course does not work.
    Is this correct or is it a bug?
    Thanks,
    Stefan

  • What sequence setting would you use to edit 1280 x1080 DVCProHD (P2) and 1920 x 1080 AVCHD (Sony) in FCP. Experiencing Quality and rendering issues.

    What sequence setting would you use to edit both 1280 x1080 DVCProHD (P2) and 1920 x 1080 AVCHD (Sony) in a single timeline in FCP. I'm experiencing quality and rendering issues.  I've tried numerous settings but can't seem to figure this one out.  Thanks for your assistance.

    Although you can combine the avchd 1920x1080 material with prores 1920x1080 in the same timeline, you might land up saving time just converting everything to 1920x1080 prores 422.   You'd probably reduce the amount of rendering while you're working and exporting when you're done by a great deal.  This workflow will require much more drive space.

  • Pe10: opening a previously saved and rendered project, the work area indicates non-rendered sections

    Pe10: when I open a previously saved and rendered project, the work area indicates a majority of non-rendered sections.
    When I open a previously saved and rendered project, the work area indicates non-rendered sections. My project is approximately 59 minutes and 27 seconds.
    What must be done to have a saved and rendered project, when open again, be rendered?

    TRUE_SEEKER wrote:
    The price tag of $245 for the Prodad's Mercalli  video software is too steep for me right now.
    Corel's Avid VideoStudio Pro X4 Ultimate (what a mouthful) includes Mercalli SE. It was on sale at half-price on Amazon Black Friday and I missed it - mostly because I was trying to find out what the 'SE' part of it meant.
    Annoyingly (very much so) it seems that Mercalli SE is pretty much the whole deal - a YouTube review of the Mercalli feature in VideoStudio by ProDAD (the Mercalli authors) included all the features I would expect to use.
    So it seems that the $80 VideoStudio product includes the $150 Mercalli plug-in. Thus a workflow starting with Mercalli stabilisation in VideoStudio and then switching to PRE is viable. I can't really afford the full price VideoStudio product so I'm hoping for a similar 50% reduction after Christmas.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Getting "Ordinal binding and Named binding cannot be combined" error

    Hello,
    I am getting following exception while calling stored produre:
    *"Ordinal binding and Named binding cannot be combined"*
    I am calling stored procedure with JDBC with 1 input parameter and 1 output parameters as mentioned below:
    CallableStatement collableStat = connection.prepareCall("{ call sp_clnt_intermed_validation(?,?) };
    // Registering In parameters          
    collableStat.setString("p_user_name", "SampleUser");                              
    // Registering Out parameters
    for(String paramKey : paramKeysSet) {                                   
    collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);
    // execute stored procedure
    collableStat.execute();
    Please guide.
    Regards,
    Akshay.
    Edited by: 914678 on Feb 15, 2012 5:48 AM

    Why is the registerOutParameter in a loop?
    You don't state your DB version but as of 10g there is no support for named parameters for a PL/SQL function because there is no 'name' of the returned parameter. So use ordinal indexes for both parameters.
    Instead of
    collableStat.setString("p_user_name", "SampleUser");
    collableStat.registerOutParameter("p_success_flag", Types.VARCHAR);use
    collableStat.setString(1, "SampleUser");
    collableStat.registerOutParameter(2, Types.VARCHAR);Next time post this in the JDBC forum.
    Edited by: rp0428 on Feb 15, 2012 11:48 AM

  • Component and renderer can't share the same name in face-config.xml

    Hi All,
    I've noticed that a component and a renderer can't share the same name in <face-config.xml>.
    For instance,
    <component>
    <component-type>tree</component-type>
    <component-class>com.xxx.tree.component.Tree</component-class>
    </component>
    <render-kit>
    <renderer>
    <renderer-type>tree</renderer-type>
    <renderer-class>com.xxx.tree.renderer.Tree</renderer-class>
    </renderer>
    </render-kit>     
    generates a cryptic error message.
    It's not a big deal but would be nice to support it.
    The workaround of course is to use a different name for the component and renderer (tree and treeRenderer for instance)
    Stephane

    i dont know why it doesn't work for you. It works for me alright. Can u elaborate on what error messages you are getting? It maybe some other problem.

  • Setting up and rendering 1280x756 composition

    Hi, I need an advise on setting up and rendering 1280x756 composition. My editor requested that I render my animation with the following settings:
    1280 756 p field1 render animation codec 29.97frame rate.
    My comp is setup as 1920x1080. I don't see a 1280x756 option in AE CS3 Composition Settings.

    ??? That resolution is no valid HD video resolution, so I don't know what the editor would even do with it. It would be squeezed or cropped when importing it in a standard editing program. Apart from that, feel free to set your composition size to whatever you need. AE doesn't mind and does "resolution-independent compositing".
    Mylenium

  • Where to find javax.xml.bind and javax.jdo

    One of my application require import javax.xml.bind and javax.jdo packages. I could not find them. Someone can help to let me know where to download them or they come with some other toll\packages?
    Thanks
    John

    Hi John ,
    I have the same problem: Getting the javax.jdo Packge . . . .(WHERE ?)
    if you found out ow already, please tell me at: [email protected]
    thanks,
    edan

  • Do you know any program for 3d modeling and rendering for Mac?

    Do you know any program for 3d modeling and rendering for Mac?

    I use MegaPov for 3D-rendering. MegaPov is a Mac version of the free PovRay, a photrealistic renderer. It is perfect, if you like to write animation scripts to program elaborate animations and shading.
    If you prefer a GUI to a scripting language you may consider Blender; it is also free.
    Rather expensive, but with an elaborate GUI are Maya and Cinema 4D; both are available for the mac.

  • Updated to LR 5.4, images now importing extremely slow. After importing and rendering images are still very slow to go through and develop. No issues in LR 5.3 which was very fast.

    After importing and rendering images are still very slow to go through and develop. No issues in LR 5.3 which was very fast. Canon,Nikon, Leica and Fuji files all rendering slow. iMac 2.9 ghz 16gb RAM OSX 10.8.5. Catalogs and images are kept on external drives. Drives running fine. Really need a fix on this since I'm norally imported and processing at least 4,000 images per LR Catalog. Is there way to revert back to 5.3? I can't use 5.4 is its current state. Thanks.

    Download LR 5.3 and install it
    By the way, lots of people have this complaint about LR 5.4, and the advice I give is to use LR 5.3 unless you need one of the new camera models supported by LR 5.4

  • Trying to restore the software locks up the iphone and renders it unusable

    Trying to restore the software locks up the iphone and renders it unusable

    Thanks for your reply.
    When connected to the PC the screen on the phone showed the apple logo and stayed frozen with that image. The only way to get rid of the image was to hold both the power and home buttons. The message on the iTunes app said: iTunes is restoring the software on this iPhone. I left it like that overnight, but there was no change in the morning. Took it to the Telstra Shop in Melbourne, and they tested and said it was 'broken'. They gave me a new phone, but I had to recover all my contacts, agenda, etc from backup on the PC.

  • After Effects CC Crashing Itself and Computer During Previews and Rendering

    After several attempts to render a video in After Effects CC (have also tried on CS6) and it crashing either itself or my entire computer, I have uninstalled and reinstalled all of my Adobe applications deleting the preferences while I was at it. After reinstall, I am still coming across the same problem. Quicktime is installed as well. The problem occurs at different times when I'm scrubbing a video, RAM previewing, and rendering. I have tried rendering with "Render Multiple Frames Simultaneously" on and off. It has worked on Draft Settings for rendering before, but now that isn't even working. The information for my system and other needed info is below:
    After Effects CC 12.2.1.5 & (latest update, I believe)
    Source Footage: H264 - MPEG-4 AVC
    Classic 3D
    Windows 8.1 Pro 64-Bit
    CPU: Intel Core i7-3770K @ 3.50 GHz
    GPU: NVIDIA GeForce GTX 650 Ti   (Driver Version: 9.18.13.3523)
    RAM: 16.0 GB
    Disk Drives (2): 120 GB Kingston HyperX 3K SSD,  1TB Seagate Barracuda ST1000DM003-9YN16
    Cache Settings:
    Memory and Multiprocessing Preferences: (I have tried numerous setups)
    Render Settings:
    Output Module Settings:

    Well everything worked on my other computer, though slower. Since it seems to be the hardware causing the issues, could someone point me in the right direction as to which component is causing it? My log file is at the link below:
    https://drive.google.com/file/d/0B5kV4zr48LGDblAxZzFhRzMySzg/edit?usp=sharing
    Thanks for the quick responses and help!

  • What installation of windows for powerfull 3D modelling and rendering.

    Hi everybody.
    I need a config to use windows in a very compatible, easy to use and powerfull way. No simple bootcamp installation as I will be rebooting all the time, between mac apps , Adobe CS (OSX) and Rendering Software (Shot/Bunkspeed -windows).
    So what installation of windows should I have? Virtual Computing or Virtualization? and what Software for everything to go fast enough?
    Then What hardware should I have for everything to run well? Any special requirement?
    Thanks for the answers.

    I would have posted in Mac Pro forum. Why do you say "simple bootcamp" as actually a VM is much easier and less fuss but will never live up to what you need.
    A VM will NEVER be as fast or as well as running natively, especially with 3D or anything hardware resource intense.
    Maybe time to build a PC or switch CS5 to Windows (it does have some advantages though CS5 caught up some) but to use CUDA you would need the only nVidia Apple sells probably.
    Run OS X off a RAID.
    Put your VM on its own drive or array.
    Normally I would say CS5 etc then the Quadro 4000 would be ideal as 2nd video card.
    Most people install Windows natively first on its own partition, what Apple calls "Boot Camp" but overuses the term, so that they can dual boot; then, install Parallels or Fusion so that they can use Windows as a guest OS under Mac OS when they don't need full access to all the RAM, more cores, and direct access to graphics.
    Easy to use to me, Windows 7 or OS X, both are fine, though Windows on Mac has some limitations.
    People have run multiple VMs on Mac Pro and find performance to be good thanks to dual processor, plenty of RAM and multiple fast hard drives.
    I would install Windows on its own hard drive first, Windows 7 Pro 64-bit (System Builder is fine but you need Pro to use more RAM and dual processors).
    http://discussions.apple.com/forum.jspa?forumID=1320

  • Component binding and state saving

    Hello,
    I have a few questions in regards to component binding and state saving (specifically in regards to the reference implementation) when the saving method is client and backing-beans are in the request scope rather than in the session scope:
    1) if a component instance is bound to a backing-bean property then does the state of that component get saved when the view state is saved?
    2) for UIData component, if the component value is bound to a list, does the actual list (after being wrapped) serve as the local data for the component? If this is the case, when the state is saved and then subsequently restored, does the list get re-created with the original number of items?
    Regards,
    Len Takeuchi

    Thanks for the quick response.
    (2) The actual list is not saved; the list will be
    re-queried on subsequent requests.The list composition may have changed by the time the list is re-queried. If the table being displayed is updatable then transfer of information from request back to the list (during Apply Request Values) may not happen properly. So does that pretty much mean that the original list has to be kept around (in the session)? If the state saving method is server then does the saved state maintain a reference to the original list across requests?
    Len Takeuchi

Maybe you are looking for

  • Itunes keeps quiting unexpectedly

    my itunes quits a couple times a day with error saying "quit unexpectedly" or something along those lines only since the last update im on a mac and never had this prob before... any ideas? i always send the report to apple please fix

  • External SATA USB drive not playing fair...

    I have a 1TB Samsung SATA drive, that was installed in my PC.  The PC is going, and I've now put the SATA into an external USB enclosure.  Everything was installed, wired up, connected and plugged in.  The drive was found OK. It showed up as a remova

  • My iphoto app wont open

    my iphoto app wont open

  • Spread sheet to java

    Hi all, I am very new to java, in fact I haven't even tried a simple script as yet. However, I developed a matrix using a spread sheet which uses standard spread sheet functions such as "IF" strings, "SUM" functions and a, well, I don't know what you

  • How to influence the substitution workitem list in the inbox?

    Hi gang, Do you have an idea if there is a simple way to filter the work item list offered for an agent in his inbox? BADI preferably, 'nice' modification (enhancement spot?) in the worst case. I got a requirement, that for some work items the substi