Setpropertyactionlistener on JSFF page load

Can I call af:setPropertyActionListener ona JSF fragment page load. Otherwise, how would I go about setting a property on my managed bean when a JSFF loads.
I'm using Jdeveloper 11g, with Oracle ADF faces.

Hi Frank,
thankz for ur reply..........
1. I wish to show a popup on particular JSFF(individual) page loading...
2. It just toolbar for this particular form
3. Specific to one single JSFF form only
Help me Please.......................
PMS
Edited by: pms on May 7, 2012 9:29 AM

Similar Messages

  • Show a Popup on JSFF page load

    Hi Experts ,
    JDEV 11.1.2
    Is it possible to show popup on JSFF page loading in a dynamic Region ? if yes , how?
    PMS

    Hi Frank,
    thankz for ur reply..........
    1. I wish to show a popup on particular JSFF(individual) page loading...
    2. It just toolbar for this particular form
    3. Specific to one single JSFF form only
    Help me Please.......................
    PMS
    Edited by: pms on May 7, 2012 9:29 AM

  • Calling a javascript on load of jsff page

    I have a jsff page which is loaded as a taskflow from region.
    i tried to call an alert function on load of jsff page as follows:
    <af:clientListener type="load" method="jsMethod"/>
         <af:resource type="javascript">
         function jsMethod() {
            alert("Hi Page loaded");
    </af:resource>
    If it works fine i intent to call backing bean method from javascript later.
    the alert is not being called in this case.
    what's wrong with this method?

    Duplicate of https://community.oracle.com/thread/2617922
    Please don't ask your question multiple times!
    Timo

  • How to refresh JSFF page only when page loaded using ADF 11g

    Hi
    I am facing an issue with prepreModel() usage in the .jsff page fragment. I want to invoke executables only when the specific jsff page get's loaded. I tried using 'prepareModel' as a refresh condition, but I can see always executables are getting executed. Does 'prepareModel' behaves differently for .jsff when compared to .jspx ?
    Thanks in Advance

    Hi,
    ADF Regions have a slightly modified lifecycle. However, prepareModel behaves the same. Its marking a specific time in the ADF request lifecycle when the iterators are refreshed. Try prepareModelIfNeeded
    Frank

  • Looking for hook into a mb method on page load of jsff with auto query on view criteria.

    Hello,
    I have a View Criteria that is set to Query Automatically (showing data to match today's date).  The target table has a detail table and there is a control that shows parsed XML from the current row in the detail table into a table that I build dynamically. The main table and the detail table show the proper data on page load but the table for the parsed XML is empty.  The dynamic table is bound to a managed bean where the parsing is done and data is created.  I have the control refreshing properly on a row change of the main and detail tables and on a queryListener for the view criteria.
    This is for a jsff page. I have been trying a bunch of approaches with no success.  The detail table has a ppr to the main table and the query.  I am looking some event on either the query, the main table or the detail table where I can make a call to my managed bean to parse the XML, build the table and refresh the control.  I have an attribute binding to the XML data (when I placed it in a control as plane XML it refreshed properly).  I only need this on initial page load or first time the tables are populated, I have the other use cases covered.
    Running JDev 11.1.2.4
    Thank you
    Rudy

    ok but where?
    i have read a topic about "setRefreshOption", but i need a component to execute it.
    i have read a topic about a false criteria (1=2), and when i want search, i remove it, but again, i need a component to execute it.
    i have read a topic about ${adfFacesContext.postback == true} to write into iterator proeprty, but i haven't this view into my appmodule.
    i'm really sorry, but please, can you explain me a little ?
    Edited by: bradici on 8 oct. 2009 16:36

  • Show popup in jsff at page load

    Hi,
    I see a lot of posts and blogs discussing the scenario of showing af popup at page load but could not find a case where the popup component is in a jsff page fragment.
    I have a popup in a jsff page fragment which goes as a region in multiple jspx pages. I need to show the popup when the page loads.
    how can I achieve this? I tried using javascript in the page fragment but it didn't work.
    Any pointers please...
    Thanks.

    The solution depends on your jdev version. However, Frank sumarized all of them in this blog http://www.oracle.com/technetwork/developer-tools/adf/learnmore/108-triggerpopupinregion-1994836.pdf
    Timo

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • Query on Page Load

    I want to get the query result on Page Load.
    Is there any way for this?

    Hi,
    You can use the afterMethod property on the f:view tag (if you are on a JSPX page) to perform the query and access the result, or use a method call activity if you are in a bounded task flow using jSFF
    Frank
    Edited by: Frank Nimphius on Feb 21, 2011 7:12 AM

  • Displaying default image on page load if actual image is not retrieved

    Hello All,
    In jsff i have something like below
    <af:image source="path/something.jpg" id="id_1" styleClass="displayingImage">
    but if the image is not present in the path then a red cross is displayed.
    Is there any way where i can display a default image on page load if image is not properly loaded.

    Approach 1
    If i bind "source" property to back bean and check it will work.
    But because of the complexity of project, it is not possible to go with this approach.
    Approach 2 (I am selecting this approach)
    (Working fine)
    When i click on image, the image is set to as default image
    <af:resource type="javascript">
    var changeImage = function (event) {
        $('.cssclass').each(function(){
            var image = $(this);
            $(image).hover(function(){ 
                    $(image).attr('src','/path/defaultImage.png');
    </af:resource>
    <af:image source="http://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}/file/#{pageFlowScope.bean.imageName}&amp;Rendition=164FixedWidth" id="id_1" styleClass="cssclass"
                  rendered="#{!empty pageFlowScope.bean.imageName}">
         <af:clientListener method="changeImage" type="click" />
    </af:image>
    (Not Working fine)
    On page load
    <af:resource type="javascript">
    $(document).ready(function(){                        //on page load
          alert("Check");                                         //alert is displayed correctly
          $('.cssclass').each(function(){                         //search for all image with name "cssclass"
              var image = $(this);
              $(image).load(function(){}).error(function(){       //JQuery experts, can you please tell me if this line works in ADF
                  $(image).attr('src','/path/defaultImage.png');
    </af:resource>
    <af:image source="http://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}/file/#{pageFlowScope.bean.imageName}&amp;Rendition=164FixedWidth" id="id_1" styleClass="cssclass"
                  rendered="#{!empty pageFlowScope.bean.imageName}">
    </af:image>
    <af:image source="http://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}/file/#{pageFlowScope.bean.imageName}&amp;Rendition=164FixedWidth" id="id_2" styleClass="cssclass"
                  rendered="#{!empty pageFloScope.bean.imageName}">
    </af:image>

  • By default all nodes expanded  in tree table in jsff page in adf

    Hi All,
    I have a jsff page there is a table tree on it.I want it to be expanded on page load(or default behavior).
    How will I achieve it.
    This is to be noted that this jsff page so I can not use before phase or after phase.
    There is a property in tree table which is expandAllEnabled it does not expand nodes of tree.
    There is one more property in tree table which is Initially expanded it shows only first node of tree table expanded.
    Thanks & regards,
    Vikas
    Edited by: vikasadf on May 16, 2013 8:02 AM

    Hi,
    It means store the variable ps in pageflowscope variable calles expanedAllNodes and use the disclosed property of treetable.
    example:
                if (ps == null) {
                    ps = new RowKeySetImpl(true);
                    ps = new RowKeySetImpl(true);
                    ADFContext.getCurrent().getPageFlowScope().put("expanedAllNodes", ps);
                disclosedRowKeys="#{pageFlowScope.expanedAllNodes}"
    Thanks
    Raj Gopal K

  • Inputtext component refreshes and the entered data is vanishes only happen when page loads first time

    Hi,
    Am using 11.1.1.5 adf jdev.
    I got unique issue , i have couple of jsff seach pages . In jsff , i have user enterable inputtext box ,Issue is when user enters data for first time . the component refreshes and the entered data is vanishes .
    But it happen for the first time when page loads, There is no partial triggers on dat input text box.

    Hi John,
    My page is not a part of a task flow. The whole app is an Admin app comprising of multiple individual pages navigated using Menu.
    I have tried to run this page individually on my local machine as well as when deployed on the WLS server. The behavior is the same.
    Kindly advice,
    Thanks,
    Ram

  • Reload a jsff page from scratch

    Hi,
    I have an ADF project that has several jsff pages and I switch between them using a dynamic region (this is done by changing the taskflowid of the region).
    Each time I go back to a jsff page that was previously loaded I find out that its state is still as it was, in other terms the “checkboxes” and the “pick lists” and the “select multiple choices” and any other components still have their previous values / state.
    So the question is, does anyone know how to reload the jsff page when I request it (I request it by changing the taskflowid of the dynamic region), like it is the first time.
    Or does anyone know how to destroy the jsff page once the dynamic region swith to another jsff page.
    Note that I’m using jdeveloper 11g.
    Thanks,
    Alain.

    Hi Alain,
    The following link would be of help. Dynamic Region And Taskflow
    Pino

  • NullPointerException on page load

    I have attached my application code (Application1) and the war file. Please have a look.
    lovtest.jsff is the page fragment that gets called by the main page (MainPage.jspx)
    On page load I get this exception on page load:
    java.lang.NullPointerException
    org.apache.catalina.connector.Response.toAbsolute(Response.java:1592)
    org.apache.catalina.connector.Response.encodeURL(Response.java:1214)
    org.apache.catalina.connector.ResponseFacade.encodeURL(ResponseFacade.java:366)
    javax.servlet.http.HttpServletResponseWrapper.encodeURL(HttpServletResponseWrapper.java:76)
    com.sun.faces.context.ExternalContextImpl.encodeResourceURL(ExternalContextImpl.java:393)
    org.apache.myfaces.trinidad.util.ExternalContextURLEncoder.encodeResourceURL(ExternalContextURLEncoder.java:44)
    oracle.adfinternal.view.faces.config.rich.URLEncodingConfigurator$RestrictedResourceURLEncoder.encodeResourceURL(URLEncodingConfigurator.java:90)
    oracle.adfinternal.view.faces.config.rich.URLEncodingConfigurator$RestrictedResourceURLEncoder.encodeResourceURL(URLEncodingConfigurator.java:90)
    org.apache.myfaces.trinidadinternal.config.URLEncoderExternalContext.encodeResourceURL(URLEncoderExternalContext.java:26)
    org.apache.myfaces.trinidad.context.ExternalContextDecorator.encodeResourceURL(ExternalContextDecorator.java:122)
    org.apache.myfaces.trinidad.context.ExternalContextDecorator.encodeResourceURL(ExternalContextDecorator.java:122)
    org.apache.myfaces.trinidad.context.ExternalContextDecorator.encodeResourceURL(ExternalContextDecorator.java:122)
    org.apache.myfaces.trinidad.context.ExternalContextDecorator.encodeResourceURL(ExternalContextDecorator.java:122)
    org.apache.myfaces.trinidadinternal.style.util.CSSUtils._resolveCSSURI(CSSUtils.java:919)
    org.apache.myfaces.trinidadinternal.style.util.CSSUtils._resolveURL(CSSUtils.java:836)
    org.apache.myfaces.trinidadinternal.style.util.CSSUtils.resolvePropertyValue(CSSUtils.java:71)
    org.apache.myfaces.trinidadinternal.style.util.CSSGenerationUtils.writeCSS(CSSGenerationUtils.java:329)
    org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._createStyleSheetFiles(FileSystemStyleCache.java:883)
    org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._createEntry(FileSystemStyleCache.java:589)
    org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache._getEntry(FileSystemStyleCache.java:465)
    org.apache.myfaces.trinidadinternal.style.cache.FileSystemStyleCache.getStyleSheetURIs(FileSystemStyleCache.java:183)
    org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.StyleSheetRenderer.encodeAll(StyleSheetRenderer.java:97)
    org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
    org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
    javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
    oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._renderSkinStylesheet(DocumentRenderer.java:2242)
    oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1027)
    oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
    org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
    org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:840)
    javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
    javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:273)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:204)
    javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:979)
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:408)
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:237)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:128)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    What is your Jdev Version ?
    I tried to open you file in Jdev 12.1.3 and it worked fine without any issues.
    Can you try to delete the .data and classes folder and restart Jdeveloper and see what happens ?
    Cheers
    AJ

  • Getting Page Load Error while opening a Opportunity in new window

    Hi All,
    outbound SSO is enabled.
    when i try to punch-in to my application from CRM through opportunity web link with Web Link Target as "open in custom tab" its working properly, but when i have Web Link Target as "open in new window" i am getting page load error. previously with out Outbounf SSO it is working properly.
    Do i need enable any settings in CRM
    thanks

    when the web link target is "open in new window" or "open in current window" the request send to third party application from CRM ONDemand is HTTPS request as SSL is not enabled it is giving "page load error"(In the web link we are specifying http only) (User athentication type is "username & password/ SSO")
    Is there any setting in CRM Ondemand to send Http request only instead of HTTPS?

  • I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded

    Here is a ticket regarding our current client web application (  Image data add, edit , delete in folder with form data in MSSQL Database) that using code c#, web form, ajax, VS2008, MSSQL Server2008 , it appears that there is an error where the HTTP
    503 error occurs. 
    . Below is a conversation with Host Server support assistant.Can you take a look at it? 
    Ben (support) - Hi 
    Customer - We're having an issue with our windows host 
    Ben (support) - What's the issue? 
    Customer - 503 errors 
    Ben (support) - I am not getting any 503 errors on your site, is there a specific url to duplicate the error? 
    Customer - no, it comes and goes without any change Customer - could you have access to any logs ? 
    Ben (support) - Error logs are only available on Linux shared hosting, however with this error it may be related to you reaching your concurrent connections 
    Ben (support) - You can review more about this at the link \ 
    Customer - probably yes - how can we troubleshoot ? 
    Ben (support) - http://support.godaddy.com/help/article/3206/how-many-visitors-can-view-my-site-at-once 
    Ben (support) - This is something you need to review your code and databases to make sure they are closing the connections in a timely manner 
    Customer - we're low traffic, this is an image DB to show our product details to our customers 
    Customer - ahhhh, so we could have straying sessions ? 
    Ben (support) - Correct Customer - any way you could check if it's the case ? 
    Customer - because it was working previously 
    Ben (support) - We already know that's the case as you stated the 503 errors don't happen all the time if it were issue on the server the the 503 would stay. 
    Customer - so our 2/3 max concurrent users can max out the 200 sessions 
    Customer - correct ? 
    Customer - is there a timeout ? 
    Ben (support) - no that's not a time out concurrent connections are a little different then sessions and or connections. Lets say for an example you have 5 images on your site and 5 7 users come to your site this is not 7 concurrent connections but 35. They
    do close after awhile hence why the 503 error comes and goes. You can have these connections close sooner using code but this is something you have to research using your favorite search engine 
    Customer - thank you so much 
    Customer - I'm surprised that this just started a few weeks ago when we haven't changed anything for months 
    Customer - any changes from your side ? lowering of the value maybe ? 
    Customer - I'm trying to understand what I can report as a significant change 
    Ben (support) - We haven't touched that limit in years 
    Ben (support) - This could just be more users to your site than normal or even more images 
    Customer - I was thinking that could be it indeed 
    Customer - so I need to research how to quickly close connections when not needed 
    Ben (support) - Correctly 
    Ben (support) - correct 
    Customer - thanks !! 
    Ben (support) - Your welcome 
     Analysis : 
     The link provided tells us : All Plesk accounts are limited to 200 simultaneous visitors. 
     From what Ben (support) says and a little extra research, if those aren't visitors but connections then it's quite easy to max out, especially if the connections aren't closed when finished using. I'd suggest forwarding this to Kasem to see what he thinks. 
    Cheers, 
    Customer

    Hi Md,
    Thank you for posting in the MSDN forum.
    >>
    I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded.
    Since
    Visual Studio General Forum which discuss VS IDE issue, I am afraid that you post the issue in an incorrect forum.
    To help you find the correct forum, would you mind letting us know more information about this issue? Which kind of web app you develop using C# language? Is it an ASP.NET Web Application?
    If yes, I suggest you could post the issue directly on
    ASP.NET forum, it would better support your issue.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

Maybe you are looking for