DataProvider not called on every render?

I'm using JDev 10g preview. In the documentation for Data Binding, it says that a <method> specified in a <provider> tag "will be called once each time the page renders", but I don't think this is what I'm seeing.
I will post my page code and the provider method below. What I'm trying to accomplish is that, if the 'pageId' parameter is not present or has an invalid value, and the bean has not already been initialized, an error message displays. If the 'pageId' is present, it should be used to (re)initialize the bean.
I've put an output line ('Informant') at the top of the method call that returns the bean, but it's only printing when I first call the page (when I generally have not yet specified a 'pageId' parameter), not when I issue subsequent requests with a 'pageId' parameter. That is, I right-click on the page in JDev and run; debug line is printed and the page comes up with no parameter in the URL and prints the error message. Then, I add the '?pageId=1' and resubmit the request (hit enter) and the debug line is not printed and the page still renders with the error message.
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
        <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
            <provider>
                <data name="pageBean">
                    <method class="com.avega.portlets.view.BeanProvider"
                            method="getPageBean"/>
                </data>
            </provider>
            <contents>
                <document>
                    <metaContainer>
                        <head title="Key Indicators Portlet"/>
                    </metaContainer>
                    <contents>
                        <body>
                            <contents>
                                <tableLayout borderWidth="1"
                                             rendered="${ not pageBean.inErrorState }">
                                    <contents>
                                        <rowLayout>
                                            <contents>
                                                <include node="${ctrl:parsePage(uix,'controlView')}"/>
                                                <include node="${ctrl:parsePage(uix,'displayLayout')}"/>
                                            </contents>
                                        </rowLayout>
                                    </contents>
                                </tableLayout>
                                <styledText text="${ pageBean.errorString }"
                                            rendered="${ pageBean.inErrorState }"/>
                            </contents>
                        </body>
                    </contents>
                </document>
            </contents>
        </dataScope>
    </content>
    <handlers>
        <event name="hide show">
            <set target="${uix.pageState}" property="${param.source}"
                 value="${param.event}"/>
        </event>
    </handlers>
</page>Here is the method:
     public static Object getPageBean( RenderingContext context, String namespace, String name ) {
          Informant.debug( "BeanProvider.getPageBean" );
          BajaContext bajaContext = BajaRenderingContext.getBajaContext( context );
          HttpSession httpSession = bajaContext.getServletRequest().getSession();
          boolean newPageBean = false;
          PageBean pageBean = (PageBean)httpSession.getAttribute( PAGE_BEAN_ATTRIBUTE );
          if ( pageBean == null ) {
               pageBean = new PageBean();
               pageBean.setHttpSession( httpSession );
               httpSession.setAttribute( PAGE_BEAN_ATTRIBUTE, pageBean );
               newPageBean = true;
          HttpServletRequest request =  bajaContext.getServletRequest();
          String pageId = request.getParameter(ViewConstants.PARAM_PAGEID);
          if ( newPageBean || !Strings.isNullOrEmpty( pageId ) ) {
               pageBean.setPageId( pageId );
               try {
                    pageBean.initialize();
                    pageBean.setControlViewBean(
                         (PanelBean)pageBean.getPanelBeansByPortletPanel().get(
                              pageBean.getPortletPage().getDisplayedControl()  ));
               } catch ( NullPointerException npe ) {
                    pageBean.setInErrorState(true);
                    pageBean.setErrorString("Unable to initialize PageBean. "+
                         "'pageId' is probably null or specified a non-existant Page.");
          return pageBean;
     }Here is the server log:
03/11/18 16:52:32 Requested page = Page[name=page]
03/11/18 16:52:36 Rendering page = Page[name=page]
03/11/18 16:52:38 BeanProvider.getPageBean
03/11/18 16:52:47 Requested page = Page[name=page]
03/11/18 16:52:47 Event = null
03/11/18 16:52:47 Parameter pageId=1
03/11/18 16:52:47 Rendering page = Page[name=page]

Hmmm... I tried a simple experiment with the code provided below, and in this case I /do/ see the println for every request. So there must be something in the code I posted above that is keeping the provider from being called. Any idea what it might be?
<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      expressionLanguage="el">
    <content>
        <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
            <provider>
                <data name="testBean">
                    <method class="uix.test.BeanProvider"
                            method="getTestBean"/>
                </data>
            </provider>
            <contents>
                <document>
                    <contents>
                        <body>
                            <contents>
                                        <styledText text="${ testBean }" />
                            </contents>
                        </body>
                    </contents>
                </document>
            </contents>
        </dataScope>
    </content>
    <handlers>
        <!-- Add EventHandlers (<event> elements) here  -->
    </handlers>
</page>
package uix.test;
import oracle.cabo.ui.RenderingContext;
public class BeanProvider  {
     public BeanProvider() {
     public static Object getTestBean( RenderingContext context, String namespace, String name ) {
          System.out.println( "BeanProvider.getTestBean" );
          return new Object() {
               public String toString() {
                    return "message";

Similar Messages

  • Ajax:callback function not called for every readystatechange of the request

    Author: khk Posts: 2 Registered: 2/17/06
    Feb 17, 2006 11:04 PM
    Hi
    I am working with an ajax program.
    In that i have defined a callback funtion
    but that function is not being called for every readystatechange of the request object for the first request .
    but it is working fine from the second request.
    function find(start,number){
    var nameField=document.getElementById("text1").value;
    var starting=start;
    var total=number;
    if(form1.criteria[0].checked) {
    http.open("GET", url + escape(nameField)+"&param2="+escape("exact")+"&param4="+escape(starting)+"&param5="+escape(number));
    else if(form1.criteria[2].checked) {
    http.open("GET", url + escape(nameField)+"&param2="+escape("prefix")+"&param4="+escape(starting)+"&param5="+escape(number));
    http.onreadystatechange = callback2;
    http.send(null);
    function callback2(){
    if (http.readyState == 4) {//request state
    if(http.status==200){
    var message=http.responseXML;
    alert(http.responseText);
    Parse2(message);
    }else{
    alert("response is not completed");
    }else{
    alert("request state is :-"+http.readyState);
    }

    Triple post.
    You have been answered here: http://forum.java.sun.com/thread.jspa?threadID=709676

  • Button action event not call in dataprovider

    hi,
    i have JSF table and it's bound to Mysql database table. when i bound the table and run it's working properly but it's button action event is not call action. when i use static jsf table then it's table action event work properly.
    my jsp code is
    <ui:table binding="#{search.search_table}" id="search_table" lite="true" selectMultipleButton="true" sortPanelToggleButton="true"
                                style="height: 70px; left: 240px; top: 240px; position: absolute; width: 600px" title="Search Text :" visible="true" width="600">
                                <ui:tableRowGroup binding="#{search.tableRowGroup1}" id="tableRowGroup1" rows="5" sourceData="#{search.srch_tablevalDataProvider1}" sourceVar="currentRow">
                                    <!--    <ui:tableColumn headerText="Script" id="tableColumn2" width="700">
                                        <ui:staticText id="staticText4" text="#{currentRow.value['search_script']}"/>
                                    </ui:tableColumn>-->
                                    <ui:tableColumn binding="#{search.tableColumn13}" headerText="Search Word" id="tableColumn13" style="#{search.columnStyle}">
                                        <ui:staticText binding="#{search.search_word1}" id="search_word1" text="#{search.search_word1}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{search.tableColumn4}" headerText="#{search_lang['search.contentName']}" height="39" id="tableColumn4"
                                        style="#{search.columnStyle}" width="100">
                                        <ui:staticText id="staticText1" onMouseOver="play_video(this);" text="#{currentRow.value['name']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{search.tableColumn6}" headerText="#{search_lang['search.srchTag']}" id="tableColumn6"
                                        sort="search_tags" style="#{search.columnStyle}">
                                        <ui:staticText id="staticText3" text="#{currentRow.value['search_tags']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{search.tableColumn5}" headerText="#{search_lang['search.tpDetail']}" id="tableColumn5" style="#{search.columnStyle}">
                                        <ui:imageHyperlink action="#{search.action}" id="imageHyperlink1" text="#{currentRow.value['details']}"/>
                                        <ui:button action="#{search.button2_action}" id="button2" text="Button"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                             </ui:table>and back bean code is
    public String button2_action() {
            // TODO: Process the button click action. Return value is a navigation
            // case name where null will return to the same page.
            System.out.println("Invoke");
            return null;
        }i don't know what is problem there if found any solution, help me.

    You need to make sure that the getter of the datatable value returns exactly the same list in the apply request values phase of the form submit as it did during the render response phase of the initial display. Only this way JSF can find out which action which row was been invoked. Alternatively you can also place the data bean in session scope (which may have more impact), or use for example Tomahawk's t:dataTable with preserveDataModel attribute set to "true".

  • My Xserve does not wake up every Saturday from a cold start / cold boot up.

    Hello, everyone,
    This is my first time using this Apple Discussions Forum here and so hope any expert out there who can solve my problem, I'd deeply appreciated. Basically the problem is like this.
    I configured Xserve to
    wake up 8:50 am wake up every morning.
    shut down system 1:00 am every morning.
    There are two places to be configured here:
    1. System Preferences' Energy Saver
    2. Workgroup Manager>Computer List>Preferences> Schedules>Mac OS X Server.
    The time schedules in those two places are ensured to be at the same setting.
    (does anyone know which is the main one?)
    Furthermore,
    I have a clock timer set to 2:00 am to shut down the main power supply to the Xserve. And so,
    Power Supply timer provides power to Xserve:
    8:40 am every morning (before scheduled Xserve waking up time, 8:50 am)
    Power supply cut down the power to Xserve:
    2:00 am every morning (after scheduled Xserve shutting down time, 1:00 am)
    Why am I doing this? Because I think it is good for Xserve's power supply fan. If I let Xserve's power supply run 24/7 for years, the motor is wearing down soon. It also saves some energy for me.
    Normally the power supply would first provides the power to Xserve before Xserve would boot up as scheduled.
    Now, this setting works pretty well for me for months until recently.
    My Xserve will not boot up every Saturday morning as scheduled. I cannot figure out why it does this weird behavior.
    I tried to search forums and google many many places, and find no solution.
    Here are a list of things I have tried:
    I changed 2 new PRAM battery twice in one month.
    I have tried to reset SMC.
    I have tried to reset PRAM.
    I tried to reset PRAM before SMC reset. I also tried to reset SMC before PRAM reset.
    Worse yet, on Saturday morning, Xserve is like in a deep coma, I tried to remotely boot it up by LOM, it does not even respond to my LOM waking up call. It is like a naughty kid refusing to wake up in the Saturday morning. The only way to wake it up is that I I have to take a long walk and physically go to my Xserve and hold the power button for 5 seconds and press it again and so it wakes up. Note that if I just press the power button once, it does not boot up neither. Why?
    Then the next day, it is normal again for another 6 days until next Saturday. I could not figure out why it does this. Why just Saturday? Why not Sunday or any other day between Monday to Friday?
    Funny and strange behavior.
    The problem is periodic and so I believe it has something to do with the software and/or the PRAM caching the alarm time, which may influence the SMC setting.
    Note: the Apple website says SMC controls the waking time while Apple manual also says PRAM is responsible for alarm clock.
    I would normally
    shut down system
    unplug the cable
    hold the power button for 5 seconds and let it go
    plug back the power cable.
    Xserve should either boot up by itself or stay cold for me to boot up.
    note: the manual just say unplug the cable for 5 sec but did not say hold the power button for 5 second, and I think that is wrong; you have indeed have to hold the power button for 5 seconds as the Apple website said. Otherwise when I cut down power supply every day, my SMC is reset by itself every day.
    I have a voltage regulator before my Xserve's power supply and so the voltage is very stable.
    Any Xserve experts out there has the same problem like I do??

    Hi, MrHoffman , I couldn't agree more with your view point. Xserve not only reacts poorly to sudden power shortage, its HDDs may also get hurt during sudden power removal. Therefore, I was extremely careful when resetting SMC. Bad SMC procedure can hurt HDD.
    MrHoffman , my problem is not totally solved and you knew I will come back, right? I do accidentally find your blog. Is the site yours?
    http://labs.hoffmanlabs.com/node/976
    Your blog and threads from here has inspired me to investigate in the direction on LOM issue. Thank you.
    http://discussions.apple.com/thread.jspa?messageID=11911509
    http://discussions.info.apple.com/message.jspa?messageID=11902981
    http://discussions.apple.com/thread.jspa?messageID=11255905&#11255905
    I've come to narrow down the problem and suspect the root cause is LOM bug. Basically this is what happens in the last 4 days.
    After nearly 3 weeks of monitoring my Xserve, it was running perfectly normal until 4 days ago. Suddenly, my Xserve fails to wake up for 4 days in a row. I almost made it---a perfect run for 1 month without ever having to reset SMC once! This time, the failed waking-up event took place during normal weekdays. So it is still a mystery to me that why my Xserve previously fails to wake up only on Saturday (perhaps, hackers prefer Saturday because that's when they are free?---just kidding). However, at least I now know the problem can take place at anytime.
    Maybe I should first list my Xserve's specification.
    Xserve Late 2006 Model
    2.0 GHz Dual-Core Intel Xeon
    8G RAM
    Mac OS X Leopard Server 10.5.8 (Build 9L34)
    Boot ROM: XS11.0080.B01
    LOM version: 1.2.8
    I am only using en0 for both LAN and LOM.
    So since I was not able to wake up my Xserve remotely by LOM, it is intuitive to check Server Monitor on Xserve side.
    On my Xserve side, I had
    Name: Nothing (it was localhost)
    IP Address: 127.0.0.1
    Status Summary: Software is not installed properly on server.
    At this point, I was wondering where did my Status Summary go? So as an incentive move, I delete the 127.0.0.1 from Server Monitor list and go to >Server Monitor>Server>Configure Local Machine, trying to re-add the localhost server back to Server Monitor list. Then it is when all of the troubles occur.
    The Server Monitor simply hangs there. When check Finder>Force Quit Applications, I see Server Monitor (not responding).
    So I was questioning myself that if this failed waking-up event is a software issue or a hardware sensor issue. Before answering to this question, as a good habit, let me post my log file.
    Jul 31 13:27:06 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:27:36: --- last message repeated 4 times ---
    Jul 31 13:27:40 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:28:10: --- last message repeated 4 times ---
    Jul 31 13:28:15 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:28:45: --- last message repeated 4 times ---
    Jul 31 13:28:49 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:29:19: --- last message repeated 4 times ---
    Jul 31 13:29:23 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:29:53: --- last message repeated 4 times ---
    Jul 31 13:29:58 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:30:21: --- last message repeated 3 times ---
    Jul 31 13:30:21 xserve01 /usr/sbin/spindump[2056]: process 2006 is being monitored
    Jul 31 13:30:23 xserve01 /usr/sbin/spindump[2056]: process 2006 is being force quit
    Jul 31 13:30:26 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:30:29 xserve01 /usr/sbin/spindump[2056]: process 2006 is being no longer being monitored
    Jul 31 13:30:33 xserve01 kernel[0]: AppleKCS::waitForIBF timed out!
    Jul 31 13:30:32 xserve01 com.apple.launchd[250] ([0x0-0x27027].com.apple.servermonitor[2006]): Exited: Killed
    Hardly can I find any reference about AppleKCS::waitForIBF timed out! on Google. So any senior Apple Xserve engineer please helps!

  • Decode function not called for a custom component

    I know this problem happened in the past - in the EA2, EA4 and I believe the beta version as well, but does anyone know if it has been solved for the release ?
    In short - I'm working with the release, created a menuBar component and the decode method in the renderer is not called after I submit the page. In the past, there were rumors that this happened due to relative paths in the JSP (for js files, images, etc.).
    Does anyone else have this problem ? or better , know how to solve it ?
    Thanx,
    Netta.

    It's not that simple - The component is getting rendered, all the encode methods are called and the decode is called also , but only the first time the form is submitted.
    I added this custom component to the guessNumber application, and I have a menuBar in the greeting.jsp that leads to the response.jsp and vice versa. it looks like this in the greeting.jsp page -
    <!-- Start Menu -->
    <t:MenuBar id="bar1" styleClass="myClass" >
    <t:Menu id="menu1" name="menu1">
    <t:Menu id="menu2" name="menu2">
    <t:MenuItem id="item2_1" name="item2_1" action="/mytest/guess/response.jsp"/>
    <t:MenuItem id="item2_2" name="item2_2" action="http://www.msn.com"/>
    <t:Menu id="menu3" name="menu3">
    <t:MenuItem id="item3_1" name="item3_1x" action="http://www.msn.com"/>
    </t:Menu>
    </t:Menu>
    </t:Menu>
    <t:MenuItem id="item3" name="item3" action="http://www.cnn.com"/>
    </t:MenuBar>
    <!-- End Menu -->
    In the response it looks like this -
    <!-- Start Menu -->
    <t:MenuBar id="bar2" styleClass="myClass" >
    <t:MenuItem id="item3" name="item3" action="/mytest/guess/greeting.jsp"/>
    </t:MenuBar>
    <!-- End Menu -->
    and every time a menuItem is clicked on, the JS calls submit form.
    Since the menus are rendered, I assume there's nothing wrong with the rendererType and any other renderer problem. Since the decode is called only once, I assume the right form is being submitted.
    So, what can cause it to stop calling the decode ???
    Could it be that becase I go directly to the page and not through the navigation rules ( I call window.open directly from the JS), it creates a problem ??
    Please help, I've been wasting so much time on this !
    Netta.

  • Firefox become not responsive after every 10 minutes for few seconds, and it back again.

    Firefox 4 become not responding after every few minutes ( mainly 10 minutes). And it came back to its normal state within 10-15 seconds. I reinstall windows and Firefox, but same problem occur. On using chrome 11 and IE 9 I have no problem. I also check that there is no problem on using Firefox 3.
    I mainly use Firefox for my web browsing, but due to Firefox 4 I totally disappointed. What should I do for now?

    You have an add-on installed called Internet Download Manager. It's on Mozilla's Add-on Blocklist @ https://www.mozilla.com/en-US/blocklist/ at the foot of the page.
    Uninstall it by clicking the orange Firefox button, go to Add-ons and then remove it in the Extensions menu.
    If the problem persists, try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your other add-ons is the culprit.

  • FillClaimsForEntity not called in my custom claim provider

    Hi,
    I have created a custom claim provider in SharePoint 2013 in order to augment claims with some custom values. It's mostly boilerplate code - nothing special. After deploying and enabling a corresponding farm feature I noticed that the FillClaimsForEntity
    method is not called at all. Moreover, other two methods required for augmentation (FillClaimValueTypes and FillClaimTypes) are called only once - when the feature is activated. From my understanding all three methods should be called every time a user logs
    in to SharePoint. I'm using integrated Windows authentication with NTLM.
    This is abbreviated code showing only important parts:
    public class MyClaimProvider : SPClaimProvider
    protected const string MyClaimType = "http://www.mywebsite.ca/identity/claims/parrot";
    protected const string StringTypeClaim = "http://www.w3.org/2001/XMLSchema#string";
    protected override void FillClaimTypes(List<string> claimTypes)
    if (claimTypes == null)
    throw new ArgumentNullException("claimTypes");
    // add our claim types
    claimTypes.Add(MyClaimType);
    protected override void FillClaimValueTypes(List<string> claimValueTypes)
    if (claimValueTypes == null)
    throw new ArgumentNullException("claimValueTypes");
    // add our claim value type
    claimValueTypes.Add(StringTypeClaim);
    protected override void FillClaimsForEntity(Uri context, SPClaim entity, List<SPClaim> claims)
    if (entity == null)
    throw new ArgumentNullException("entity");
    if (claims == null)
    throw new ArgumentNullException("claims");
    claims.Add(CreateClaim(MyClaimType, "kakadu", StringTypeClaim));
    public override bool SupportsEntityInformation
    get { return true; }
    // ... the rest of code goes here
    and this is my feature code:
    public class MyClaimProviderRegistrationEventReceiver : SPClaimProviderFeatureReceiver
    public override string ClaimProviderAssembly
    get { return this.GetType().Assembly.FullName; }
    public override string ClaimProviderType
    get { return typeof(MyClaimProvider).FullName; }
    public override string ClaimProviderDisplayName
    get { return "MyClaimProvider"; }
    public override string ClaimProviderDescription
    get { return "MyClaimProvider desc"; }
    public override void FeatureActivated(Microsoft.SharePoint.SPFeatureReceiverProperties properties)
    base.FeatureActivated(properties);
    var cpm = SPClaimProviderManager.Local;
    foreach (var cp in cpm.ClaimProviders)
    if (cp.ClaimProviderType == typeof(MyClaimProvider))
    cp.IsUsedByDefault = true;
    cp.IsEnabled = true;
    cpm.Update();
    break;
    Does anybody know why the methods are not called when a user accesses SharePoint?
    Thanks,
    Leszek
    Wiki: wbswiki.com
    Website: www.wisenheimerbrainstorm.com

    Hi,
    The following articles would be helpful:
    How often will FillClaimsForEntity in my Custom Claims Provider be called?
    http://blogs.msdn.com/b/brporter/archive/2010/11/30/how-often-will-fillclaimsforentity-in-my-custom-claims-provider-be-called.aspx
    Checklist for Issues with Custom Claims Providers in SharePoint 2010 and 2013
    http://blogs.technet.com/b/speschka/archive/2013/05/15/checklist-for-issues-with-custom-claims-providers-in-sharepoint-2010-and-2013.aspx
    SharePoint Custom Claims Provider
    http://blog.podrezo.com/sharepoint-custom-claims-provider/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • N73 - Can not call contacts

    Sometimes I cant call my contacts or the caller log. This error have followed me through all the firmware upgrades, but it is still the same.
    The error occurs from time to time and nothing happens when I press the green button. When I open caller log I can see all numbers but nothing happens when I press green. Same happens with contact list. I can open contacts, open details, but when I press "voicecall" nothing happens.
    I can dial number manually and then call them. I can also send messages to contacts, but I can not call them in other ways than pres the number manually
    The only thing that helps is a reboot.
    Does anyone have any experience with this?

    faizalajith wrote:
    In N73 a major problem or error occurs it is "*u cant dial contact in ur phone directly*" but manually u can dial by entering the whole number.
    There no fix till now only option was *switch off & on*.. which is still annoying..
    i have noticed
    *v home* software is a fix for it
    only use v home screen to dial number.
    Settings in Vhome for
    "dial contact by name" is
    >settings>smart dialling>name alone.
    Still u dont want to switch off the phone every time go 4 vhome....
    Download Here
    gallery.mobile9.com/f/2507590/
    Hi,
    Welcome to the forum!
    Try to perform the restore factory settings. Note that your files won't be deleted. To do this, go to Tools and then Settings. Select General and then Orig. phone settings. Enter the security code or the lock code. The default code is 12345 unless you changed it. If that didn't work, it's best to have your phone physically checked at the Nokia Care Point. They'll be able to help you with your concern. Note that charges may apply for the out of warranty phone.
    You can visit this link for your local support page for further assistance: www.nokia.com/support

  • ActionMethod in CommandLink is not called whenadding Components dynamically

    I want to create a customTable component in which paginator will be a sub tag.
    <custom:customTable value="#{testBean.data}" var="current1">
    <t:panelGrid binding="#{tableBean.paginator}"></t:panelGrid>
    <t:column>
              <h:outputText value="#{current1.name}"/>
    </t:column>
    <t:column>
              <h:outputText value="#{current1.id}"/>
    </t:column>
    </custom:customTable>
    In the encode method of custom renderer ,I am writing logic to render the paginator child component.
    In encode:
    List children = getChildren(uiComponent);
              for (int j = 0, size = getChildCount(uiComponent); j < size; j++) {
                   UIComponent child = (UIComponent) children.get(j);
                   if (child.isRendered()) {
                        boolean columnRendering = child instanceof HtmlPanelGrid;
                   if(columnRendering){
                        RendererUtils.renderChild(facesContext, child);     
    In <t:panelGrid binding="#{tableBean.paginator}"></t:panelGrid> ,getPaginator returns a PanelGrid which has dynamically created CommandLinks.CommandLink has action bind to a method in the managed bean.
    HtmlCommandLink htCommLink = (HtmlCommandLink) jsfUtil
                             .createComponent(HtmlCommandLink.COMPONENT_TYPE);
                   htCommLink.getAttributes().put(IISWebConstants.VALUE_ATTRIBUTE,
                             "A");
                   htCommLink.setAction(jsfUtil.createMethodBinding("#{tableBean.createData}"));
                   htCommLink.getAttributes()
                             .put(IISWebConstants.ON_CLICK, "submit()");                    
                        htCommLink.getAttributes().put(IISWebConstants.RENDERED,
                                  Boolean.TRUE);
                        htCommLink.getAttributes().put(IISWebConstants.STYLE_CLASS,
                                  "link");
    //hpg PanelGrid instance                                   hpg.getChildren().add(htCommLink);
    Problem:Paginator is rendering,Table is rendering but if I click on the commandLink ,action method is not calling.Can any body tell me how to resolve this issue

    i have found the reason!
    after click on this command link, a listener from a SelectOneMenu tag was invoked first. very interesting, but read further to know why!
    i didn't change anything in this input tag, but the problem is that the SelectOneMenu value was initalized with an empty string, but it's first SelectItem was initalized with SelectItem("x", ""). So there was an old value "" and a new value "x" and therefore it was invoked before the action method. this took me some hours to find that out.
    in this listener i made something like this at the end:
           UIViewRoot view = context.getApplication().getViewHandler().createView(context, viewPath);
           view.setViewId(viewPath);
           context.setViewRoot(view);
           context.renderResponse();so it's clear, why it didn't execute the action method.
    so as a global rule, check all your listeners (breakpoints!) when you have a similar problem!

  • AE CS3 Crashes after every render with Apple ProRes 422 HQ

    I'm rendering some green screen shots with composited backgrounds (short clips, only 10-20 seconds max) and After Effects will crash after every render of footage that has been exported from Final Cut to Apple Pro Res 422 HQ codec. The original footage was Sony EX1 codec, but as I say - was converted before importing into AE.
    It will also not let me do batch renders, and will only get a few seconds in to the render. After every time it crashes, it tells me that it saved a copy of the render, and then usually gives me a message about how AE quit unexpectedly and I have the option of reporting or relaunching.
    I have 12 Gb of Ram in my MacPro with 2x3.2 Ghz Quad-Core Xeon processors and the latest OS.
    AE behaves normally when i animate some Illustrator or Photoshop files and render to various codecs and will not crash. Any suggestions?

    Animation at best quality is lossless so you can't get any better than that for the bit depth. The only problem with Animation Codec is that the files are big. I try and use lossless codecs for all of my interim renders. I only use compression when I'm doing the final renders.

  • System Crash on every render!   _CS6

    just bought a brand new Mac Pro. 12 core (2012 5,1) that crashes every single time i render anything in AE CS6 using the queue. i've worked in these exact same project files on my old quad core (3,1) and had no problems whatsoever. i'm literally opening the same files.
    if i activate multiprocessing in preferences *at all* my entire system will crash after every render in AE. i've tried several settings from 80% dedicated to AE all the way to 80% dedicated to "other apps" and everything in between. the only way to render out a project file using the queue is to first turn off multiprocessing. which obviously causes render times that remind me of the 90's.
    i've found quite a few people in different forums (including here) experiencing the same issue on the newer multi core machines. i've heard theory's but wow, this seems to be a tough one.
    the funny thing is i can work in AE with 50gb assigned to it and the other 14 to the system (and let me tell you it SCREAMS!) but i HAVE to turn off multiprocessing and restart before rendering anything? i've read about rumors with quicktime (specifically H.264 codec) and using v7 as opposed to X but i render from other software with the exact same codecs and no issues at all. and in fact it doesn't matter what codec i use to render from AE. same result. kaboom!
    as far as specifics, like i said i'm working with the exact same files with the exact same plugins i created on my 2008 mac pro and never had an issue at all. also i 'fresh installed' CS6 and everything for that matter. no copying from the old system. those wondering about having 2 GPU's, that was my first test. pulling one at a time and seeing if that made a difference. nothing other than some performance stuff (not related but really great results .. if you want to message me i'll fill you in). checked the crash report, not memory (crucial brand). and i REALLY want to point out, it's not just AE that crashes it's the entire OS. not a kernel panic but everything just freezes and i have to hard restart using the power button.
    is there a workaround anyone has found yet?
    i tried using dynamic link to render in Premiere but it didn't recognize one of the plugins used and rendered without it.
    for those who might have set-up questions.
    64 GB memory - Crucial
    3 internal Crucial 500 GB SSD's. 1TB Western Digital running the OS
    ATI 5770 & Nvidia Quadro 4000 (i've tested every combination with regards to this to eliminate it as a possibility)
    After Effects CS6 [11.0.2.11]
    quicktime X and 7 installed

    Figured it out! *fingers crossed
    While troubleshooting to further narrow possible causes I imported the AE Comp using dynamic link in Premiere. For the record it rendered using QT/264 just fine.
    But there was a clue in the .mov file when I viewed/tested the results! One of the plugins used was disappearing a reappearing throughout the scene. [Plexus 2.0.6, by Rowbyte]. That prompted me to go back to AE and as my grandpa would say "fiddle around with some stuff".
    I won't bore you all with the details but I finally just created a new project and started from scratch. Everything is working fine now. Actually better than fine, this thing is flying! I have NEVER seen AE run so fast. I dropped geometry in there, applied Plexus, added cameras, DOF & some animation and it's playing back in real time without caching! Attaching my settings:)
    (it appears AE is using both GPU's?)

  • JHeadstast 10.1.3 - JhsPageLifecycle issue : jhs prepareRender not called

    Hello,
    I'm evaluating Jheadstart 10.1.3.
    I have created 2 projects but both don't behave the same way.
    In one project everything works as expected but not in the second.
    It seems that the prepareRender phase implemented in JhsPageLifecycle is not called appropriately.
    Here are the relevant stack traces :
    [WORKING PROJECT]
    7 nov. 2006 11:27:03 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:initContext
    7 nov. 2006 11:27:03 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:prepareModel
    11:27:03 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/create.jspx, pagedef=createPageDef
    11:27:03 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    7 nov. 2006 11:27:03 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:prepareRender
    11:27:03 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/create.jspx, pagedef=createPageDef
    [NOT WORKING PROJECT]
    7 nov. 2006 11:28:35 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:initContext
    7 nov. 2006 11:28:35 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:prepareModel
    11:28:35 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/app/temp.jspx, pagedef=app_tempPageDef
    11:28:35 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    7 nov. 2006 11:28:36 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:initContext
    7 nov. 2006 11:28:36 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:prepareModel
    7 nov. 2006 11:28:36 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:prepareRender
    7 nov. 2006 11:28:36 oracle.adf.controller.v2.lifecycle.Lifecycle executePhase
    FIN: [ADFc] Execute:prepareRender
    What should I look at in order to make both projects work ?
    Thanks,
    Seb.

    I've checked my faces-config.xml. It had the folowing inside :
      <application>
        <default-render-kit-id>oracle.adf.core</default-render-kit-id>
      </application>
      <lifecycle>
        <phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
      </lifecycle>Since JhsCommon-beans.xml redefines the phase listener, I had un instable state.
    May be this will serve someone else.
    Seb.

  • MacBook Pro does not requiring password every time

    My new MacBook Pro (Late 2013 Retina) does not requiring password every time (ver. 10.9.2).  It is set to require a password and it does most of the time but it often does not.  I have seen some posts of other people having this issue but have not seen any fix? 

    Chisand wrote:
    My new MacBook Pro (Late 2013 Retina)
    I have seen some posts of other people having this issue but have not seen any fix? 
    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • IPhone 5 iOS 7.1.4 Call failed every time when the other person hung up before me

    iPhone 5 iOS 7.0.4 says Call failed every time when the other person hung up before me,
    Is there anything I can do to about that please?

    Hey there Yonidawit,
    It sounds like you are are getting a message saying that the call failed, when the person you are talking to hangs up. I have a few things to recommend here. First close all the open apps:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone and test it out again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If that does not resolve it, try resetting your network settings:
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    From: iOS: Troubleshooting Wi-Fi networks and connections
              http://support.apple.com/kb/ts1398
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Problem with f:ajax , setters not called

    Hi,
    I have this jsf
    <ui:define name="content">
    <h:form>
    <h:selectOneRadio value="#{chargeMenuBacking.inputMethod}">
    <f:selectItem itemValue="#{chargeMenuBacking.COMMUNITY}" itemLabel="Community" />
    <f:selectItem itemValue="#{chargeMenuBacking.FILE}" itemLabel="File" />
    <f:ajax event="click" render="myGroup" />
    </h:selectOneRadio>
    <h:panelGroup id="myGroup">
    <h:panelGroup id="CommunityGroup" rendered="#{chargeMenuBacking.inputMethod==chargeMenuBacking.COMMUNITY}">
    <h:selectManyListbox value="#{chargeMenuBacking.communitiesSelections}">
    <f:selectItems value="#{chargeMenuBacking.communities}" var="u" itemValue="#{u.id}" itemLabel="#{u.name}"/>
    </h:selectManyListbox>
    </h:panelGroup>
    <h:panelGroup id="FileGroup" rendered="#{chargeMenuBacking.inputMethod==chargeMenuBacking.FILE}">
    <h:inputText value="#{chargeMenuBacking.filename}" />
    </h:panelGroup>
    </h:panelGroup>
    <h:commandButton value="OK" action="#{chargeMenuBacking.doCharge}"/>
    <h:commandButton value="Cancel" action="#{chargeMenuBacking.doCancel}"/>
    </h:form>
    </ui:define>
    and I have this backing bean
    @Named(value = "chargeMenuBacking")
    @RequestScoped
    public class ChargeMenu implements Serializable ... (blah blah)
    When the bean is RequestScoped the setter for chargeMenuBacking.communitiesSelections is not called.
    However if the bean is SessionScoped or if I do not use the <f:ajax> tag (thus always rendering the component) the setter is called.
    Do you have any ideas why this is happening?
    I am using Glassfish v3 with netbeans 6.9.1 and JSF 2.0

    The solution seams to be declaring the bean as having view scope.

Maybe you are looking for

  • Message in BPM

    Hello everyone, I have two diff  interfaces both are outbound Interfaces to which there is common i/P IDOC , Both the interfaces are using BPM. When we trigger an IDOC from background SAP system , Interface 1 completes successfully . But The iNterfac

  • JAILBREAKING IPHONE 3G

    Hi, I am a rookie with Iphone. Please help me in deciding wither should I jailbreak my Iphone 3G or not..? Please tell me what is the up's and down's of doing it..? Thank you.

  • GB struggling with power issues- What do I do to make it work?

    I have an imac Lion 10.7.4 with 4 GB 1333 MHz DDR3. Ive recorded a whole album over 7 months and I am aware if you use too many FX etc you are putting strain on GB to perform properly. This is what Ive done to make my Imac work as well as it can ..wh

  • ConvertDateTime pattern

    Hai friends... I am using <f:convertDateTime pattern/>  to format the date ... <h:outputText value="#{employee.startDate}">      <f:convertDateTime pattern="*MM-dd-yyyy*" /> </h:outputText> When i am trying to display the values it diplays : *07-02-2

  • SOLMAN_CONNECT shows blank screen

    I am setting up a Solution Manager 7.0 EhP1 system and have gotten all the systems connected, and EWA and System Monitoring and MOPZ all working.  I am now trying to test out the Service Connections functionality (SOLMAN_CONNECT). When I go to that t