Filtering a Look up column on page load.

I'm trying to filter a look up column using something like CAML to only show me a subset of the values in a list. Basically when the New or Edit Form loads I'd like to parse a value out of the URL (in my case the Document Set Name) and then filter a the
look up. 
To understand what I'm trying to do: The business requirement is to create a look up column to the same library we're working in that only shows documents within the current Document Set (very similar to a folder if your not familiar) as Options. 
If anyone can think of an easier way to accomplish this or something similar please let me know. Otherwise if anyone has experience dynamically filtering look up columns, I'm curious to hear how you accomplished it. 
Thanks.

try these links:
http://howididit-sharepoint.blogspot.in/2012/04/filtering-lookup-columns.html
http://sharepoint-works.blogspot.in/2012/02/cascading-dropdown-or-filtered-values.html
http://www.codeproject.com/Articles/203818/SharePoint-Filtering-Lookup-column-using-Java
you can use cascading dropdown using spservice
jquery.

Similar Messages

  • Slow page loads

    Hello,
    I created an application a while ago and have been looking into why the pages load so slowly. I thought maybe it was due to a function that I had on Page 0 so I made a copy of the application and removed the function on page 0 and put it in an application item/computation. I'm not sure if that was the reason behind the pages loading so slowly, but in my copy application the pages now load pretty darn quick. I made the exact same changes to the production application, but the pages still load slowly.
    When I look at the pages in Debug mode, I see that it starts to slow down when the "Fetch application meta data" is performed (from .01 to 1.51...I even saw 2.67 on one page load). When I look at the copied application in Debug mode, everything looks the same except the load times are quick.
    Does anyone have an idea as to why this is happening?
    Thank you,
    Tammy

    Assuming the department names aren't needed for your page, you could add a condition to the function that makes it only fire on specific pages.
    If they are needed, you're going to need to look at the query's performance and how the data is used on the page. I don't think we have enough information at this point to help.
    -David

  • Named Criteria for Table Not Filtering on Page Load

    Hi Guys and Gals,
    I'm tying to create a filtered table using named view criteria (http://docs.oracle.com/cd/E24382_01/web.1112/e16182/web_search_bc.htm#BABBCHIH).
    I create the Named Criteria; I drag from the Named Criteria from the Data Control onto the page; I select ADF Read-Only Filtered Table option. I run the page and much to my chagrin, the table is not filtered. A table with all results, plus a filter box with a value "S" (my named criteria filter value), is displayed.
    Shouldn't the results already be filtered upon page load?
    The filter works correctly when I run tests in my AppModule.
    Using JDev 11.1.2.1.0.
    Will

    I've found a workaround.
    I drag and drop the VO (unfiltered) from the Data Control and select read-only table. In my pageDef, I select the table's binding and check the "Enable Filtering" box. I then select the attribute to filter on and the applicable filter text.
    The table then displays filtered results on page load.
    However, I only see this working for very simple filtering (i.e. one column with simple filter requirements). It should be nice to know why dragging and dropping Named View Criteria onto the page does not automatically filter table results on page load.
    Will

  • 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

  • Looking for a way to load 100 pages without images/style

    Hi,
    I have a bookmark folder that contains nearly 100 pages
    I can right-click on the folder and choose "Open all in tabs", which is what I want, but I'd like to get rid of all the pictures/style otherwise it lags and eats too much bandwitdh.
    I don't really need those, I just want to have the pages loaded once.
    Any suggestions on how to do so ?
    ty!

    hello, you can use the quickjava extension in order to disable the loading of such elements conveniently: https://addons.mozilla.org/firefox/addon/quickjava/

  • Display look up column as drop down list in a web part in SharePoint 2013

    Hi,
    I have a look up column in SharePoint 2013 calendar list.I want to show that field with values in the page as drop down list to filter the data based in selected value.
    Is it possible through OOB or javascript.
    Please help .
    Thank you.

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • ADF/JSF page loads when any command button is clicked

    Hello All,
    I am lost in the ADF/JSF page flow (using Jdev 10.1.3). Following are the tags (in order) in my page;
    (WHEN THIS PAGE LOADS, IT GOES TO THE DATABASE TO GET VALUES (for the drop down lists that will appear on the page); THIS SHOULD HAPPEN JUST ONCE AND AT THIS POINT)
    <f:view>
    <afh:body>
    <afh:html>
    <af:form>
    <af:panelpage>
    <f:facet name="contextSwitcher">
    <af:panelHorizontal> has a af:commandLink </af:panelHorizontal>
    </f:facet>
    <f:facet name="messages">
    <af:messages/>
    </f:facet>
    <af:panelform>
    <h:panelGrid columns="2" cellspacing="14">
    has 2 panelgroups (one group has *2 SelectOneChoice lists (that need to be populated by fetching data from database* and the other group has 2 CommandButtons - 'Go' and 'Cancel") (GO BUTTON SETS THE SHOWPANEL() TO TRUE)
    (WHEN GO BUTTON IS CLICKED, THE PAGE GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD (action="#{muBean.doWork}" )THAT IS ASSOCIATED WITH GO BUTTON ACTION SHOULD BE CALLED)
    </h:panelGrid>
    <h:panelGrid columns="2" cellspacing="14" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 inputText fields
    </h:panelGrid>
    <af:table var="someTable" rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has a bunch of af:columns
    </af:table>
    <af:panelHorizontal rendered="#{myBean.showPanel}"> (THIS ONE IS RENDERED WHEN SHOWPANEL() METHOD IS TRUE)
    has 3 af:commandButtons - submit, save, add row
    (WHEN submit or save or add row BUTTON IS CLICKED, THE PAGE KIND OF LOADS AND GOES TO THE DATABASE (AS IT DID ON PAGE LOAD). *THIS SHOULD NOT BE HAPPENING*. ONLY THE METHOD THAT IS ASSOCIATED WITH submit/save/add row BUTTON ACTION SHOULD BE CALLED)
    </af:panelHorizontal
    </af:panelForm>
    </af:panelPage>
    <!-- Footer -->
    <jsp:include page="/pages/includes/footer.jspx"/>
    </af:form>
    <f:verbatim>
    <script type="text/javascript" src="../script/tree.js"></script>
    </f:verbatim>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    _*why is it that when the command buttons are clicked, the whole page is loaded? Only the methods associated with the action (action="#{newMapRequestItem.addARow}" ) should be called.*_
    _*IS THERE A WAY TO AVOID THIS WITHOUT USING PARTIAL PAGE RENDERING ?*_
    _*DOES MY TAG NESTING LOOK OK?*_
    Edited by: user12054715 on Mar 24, 2010 12:00 PM

    Can somebody please address this?
    Thanks,

  • What can be done to reduce page loading time?

    Hi,
    I've built a site to showcase my photographs and pages load slowly. It has about 70 pages and each page uses the same custom template that contains graphics and type. Hyperlinks navigate from page to page or from section to section. Each page has a unique photograph. The site can be seen at...
    http://web.mac.com/peter_tangen/iWeb/pt/enter.html
    I'd like to reduce the time it takes to load a page.
    In other web design applications it's possible to have all pages access a single graphic file, this speeds up page loading as the cache "remembers" the contents of the file and eliminates the need to reload it. Other posts in this forum indicate that this capability is not currently available in iWeb, however hoped for in Ver 2.0.
    I'd appreciate any suggestions!
    FYI: A typical page contains the following files (from the page)...
    http://web.mac.com/peter_tangen/iWeb/pt/portrait01.html
    backgroundimage_1.png
    photo-filtered.jpg
    portrait01.css
    portrait01.js
    shapeimage_1.png
    shapeimage_2.png
    shapeimage_3.png
    shapeimage_4.png
    shapeimage_5.png
    shapeimage_6.png
    shapeimage_7.png
    shapeimage_8.png
    shapeimage_9.png
    shapeimage_10.png
    shapeimage_11.png
    transparent.gif
    Thanks for your time!
    g4 laptop   Mac OS X (10.4.4)  

    pvt:
    If you load the page you linked to and then open Safari's Activity window you'll see that those png files are all about from 0.1 to 2.6 kb in size. thats not very large at all. The largest file there is 66kb, the jpg background, and again not big. The Elijah jpg is 53 kb.
    Those small png files are your links below the photo and probably the borders around it.
    Here are some tips I've learned from these sites:
    1 - do not use and frames or borders, etc. around photos.
    2 - don't use any reflections.
    3 - create your own navigation bar with linked text* and turn of the iWeb Navigation bar. The nav bar is all png based.
    4 - use only the web safe fonts from the Font pane.
    5 - do not use drop shadow on fonts.
    6 - turn off smart quotes.
    The above will reduce the number and size of files associated with a web page quite a bit. Photos with fancy frames and reflections can generate a thumbnail png of around 110KB whereas the plain version will be a jpg of only 28KB. Although it doesn't sound like a lot, it will speed up loading of the page and be more darkside (i.e. PC) friendly.
    Run a test with a test site and publish to a folder. Then follow the hints above and publish to another folder and compare folders.
    *Put your linked text directly under the Navigation bar. Then turn off the nav bar in the Inspector window. The nav bar will disappear and the linked text will move up to the top of the page. (This wouldn't apply to your site)
    None of the pages I visited had any large png or unusually large files. One on the portrait 2 page was 448 kb and was the largest jpg I found.
    On your portrait 6 page the drop shadows on the photos produced png files of 2.1 and 0.9 kb. The background is 66 kb.
    As I said all the small png files are the borders and text links. I don't know if knocking out those drop shadows and eliminating those two files would make that big a difference for that page. One of the gurus here mentioned only adding a color background for the page and not the browser. I don't know how that would look or affect your site.
    I like it by the way. Nice customization.
    Tutorials

  • How to query from view with parameter, only  when the JSP-page loading

    I use JSF/ADF BC, create two viewes:view1 and view2, in the JSP page the user press a button to query from the view1, but I hope the view2 can be queried only when the page loading, it have no relation with user-operator, and pass the column value of view2 into some variables, the view2 return one record.

    Hi -
    You may want to have a look at this other thread:
    Re: Execute ViewObject with Parameters at JSF Page Load?  JSF/ADF/BC 10.1.3
    John

  • Class added on page load giving a validator error

    hello All;
    I have an adf_bc application with 2 pages, in the main page the user selects to create or edit a record, in the edit page he selects the id of the record from an LOV, back at the main after saving, the look up description of the ID should be displayed
    i have done everything as the above, only when i select to save the look up description, which i added to the SQL of the view is not appearing, i tried to add on page load class, to re-execute querry but is giving me a validator error when i debug,
    any idea's on how to re-execute the querry and display results
    regards
    Halim

    sorry man::
    i am displaying a table, which has the ID of departments, i created a view which returns the description of the selected department ID, and then i added the description from the view as an adf read only column to the table, and it worked fine
    the page has an edit button which takes the user to another page, where he selects an ID for the department using an LOV
    THE PROBLEM: when the user selects save with the new ID in the edit page, and returns to the main page, the description of the ID is not appearing, unless i re-excute the query, thats why i added a class on page load to re-execute the querry
    is there a better way, to refresh the results

  • How to assign concatenated output to an item on page load

    Hi,
    I have a table that reads something like this
    City Route
    NewYork 2
    NewYork 4
    NewYork 5
    London A
    London B
    Paris X1
    I want to assign Routes (concatenated) to an item on page load... as an example for NewYork it should read like this
    P2_ROUTE = 2, 4, 5
    I am looking to do the above using query, something like this
    select (concatenated route)
    from Table_A
    where
    City = :P2_City
    any suggestions how to concatenate variables.?

    tparvaiz wrote:
    I am looking to do the above using query, something like this
    select (concatenated route)
    from Table_A
    where
    City = :P2_City
    any suggestions how to concatenate variables.?Yes. This is known as string aggregation, and there are many ways to do it. For example:
      Oracle 11.2; list length <= 4000 bytes
    SQL> select
      2      l.city
      3    , listagg(d.department_id, ', ')
      4        within group (
      5          order by d.department_id) departments
      6  from
      7      locations l
      8        join departments d
      9          on l.location_id = d.location_id
    10  group by
    11*      l.city;
    CITY                      DEPARTMENTS
    Bern                      240
    Bombay                      230
    Geneva                      90, 100, 110, 120
    Hiroshima                 170
    London                      40, 260
    Munich                      70
    Oxford                      80
    Seattle                  10, 30, 130, 140, 180, 190, 210, 250
    South Brunswick             150, 160
    South San Francisco            60
    Southlake                 50
    Stretford                 270
    Tokyo                      220
    Toronto                  20
    Utrecht                  200
    15 rows selected.
      Previous versions or 11.2 list length > 4000 bytes
    SQL> select
      2      l.city
      3    , rtrim(
      4          xmlserialize(
      5           content
      6           xmlagg(
      7               xmlparse(content d.department_id || ', ')
      8               order by d.department_id))
      9        , ', ') departments
    10  from
    11      locations l
    12        join departments d
    13          on l.location_id = d.location_id
    14  group by
    15*      l.city;
    CITY                      DEPARTMENTS
    Bern                      240
    Bombay                      230
    Geneva                      90, 100, 110, 120
    Hiroshima                 170
    London                      40, 260
    Munich                      70
    Oxford                      80
    Seattle                  10, 30, 130, 140, 180, 190, 210, 250
    South Brunswick             150, 160
    South San Francisco            60
    Southlake                 50
    Stretford                 270
    Tokyo                      220
    Toronto                  20
    Utrecht                  200
    15 rows selected.See Re: 4. How do I convert rows to columns? and here for more.

  • 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.

  • ADF ProcessScope -- I get a new AdfFacesContext on each page load

    I am trying to store some variables in the ADF processScope. But the next time the page is loaded and calls the managed bean methods, the AdfFacesContext is different, and so the processScope is empty. The managed bean is session scope, and I am setting the processScope variables in the bean's Java code.
    In particular this happens when I click on the af:table pagination links, e.g. the "next 25".
    How can I get access to the same AdfFacesContext (and therefore the same processScope) the next time the page loads and calls the managed bean?
    I am using JDeveloper 10.1.3.3.0.
    Here is the example code, and the output that is produced from my System.out.println statements:
    ========== Controller.java (session scope managed bean) ===============
    package adfproject;
    import java.util.Map;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import oracle.adf.view.faces.context.AdfFacesContext;
    public class Controller {
    private List<Map> list = new ArrayList<Map>();
    private String label;
    private static int counter;
    public Controller() {
    // initialize list with Map objects
    for ( int i = 1; i<10 ; i++) {
    Map map = new HashMap();
    map.put("A","first column");
    map.put("B", "row " + i);
    list.add(map);
    // called from JSP to initialize the ECO bean
    public String getLoad() {
    printAdfProcessContext("in getLoad");
    // get value from current process scope
    String currentLabel = (String)getProcessAttribute("LABEL");
    // print currentLabel
    System.out.println("current LABEL = "+currentLabel);
    // if currentLabel null, build new one with counter, incr counter
    if (currentLabel == null) {
    label = "xyz " + ++counter;
    System.out.println("new LABEL: "+label);
    // remember the current label in the process scope, and in member
    setProcessAttribute("LABEL",label);
    return ""; // empty string so nothing is displayed on web page
    public static void printAdfProcessContext(String label) {
    AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
    System.out.println("============ "+label+" ===========");
    System.out.println("AdfFacesContext = "+afCtx);
    Map ps = afCtx.getProcessScope();
    System.out.println("Process scope = "+ps);
    * Get attribute from ADF "processScope".
    * This is a special scope provided by ADF which is in between Session
    * and Request.
    * @param name attribute name
    * @return
    public static Object getProcessAttribute(String name) {
    AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
    return afCtx.getProcessScope().get(name);
    * Add or overwrite attribute in ADF "processScope".
    * This is a special JSF "scope" provided by ADF Faces which is somewhere
    * between Session scope and Request scope. It can be accessed in JSF
    * pages using the EL expression #{processScope.myAttribute}.
    * @param name attribute name
    * @param value attribute value
    * @return
    public static void setProcessAttribute(String name, Object value) {
    AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
    afCtx.getProcessScope().put(name,value);
    public String getLabel() {
    return label;
    public List<Map> getList() {
    return list;
    ============= jsftest.jsp =====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <afh:html>
    <afh:head title="ADF Context Test">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <h:form>
    <af:outputText value="#{controller.load}"/>
    <h:panelGrid columns="2">
    <af:outputLabel value="LABEL"/>
    <af:outputText value="#{controller.label}"/>
    <af:outputLabel value="Map"/>
    <af:table emptyText="No items were found" value="#{controller.list}"
    var="row" rows="4">
    <af:column sortable="false" headerText="A" formatType="text">
    <af:outputText value="#{row.A}"/>
    </af:column>
    <af:column sortable="false" headerText="B" formatType="text">
    <af:outputText value="#{row.B}"/>
    </af:column>
    </af:table>
    </h:panelGrid>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    ================= Console Output when page loads initially ==================
    08/09/03 15:27:18 ============ in getLoad ===========
    08/09/03 15:27:18 AdfFacesContext = oracle.adfinternal.view.faces.context.AdfFacesContextImpl@101751
    08/09/03 15:27:18 Process scope = ProcessScopeMap@7009019[_map={}, token=null,children=null]
    08/09/03 15:27:18 current LABEL = null
    08/09/03 15:27:18 new LABEL: xyz 1
    ======= Console Output when I click the "next 4" link on the table, and the page reloads ========
    08/09/03 15:32:42 ============ in getLoad ===========
    08/09/03 15:32:42 AdfFacesContext = oracle.adfinternal.view.faces.context.AdfFacesContextImpl@16bf9ce
    08/09/03 15:32:42 Process scope = ProcessScopeMap@31287037[_map={}, token=null,children=null]
    08/09/03 15:32:42 current LABEL = null
    08/09/03 15:32:42 new LABEL: xyz 2
    ====== Comments =========
    As you can see above, the AdfFacesContextImpl object has changed, so I have lost the ProcessScopeMap.
    Also, on the displayed page, the label is still "xyz 1" instead of changing to "xyz 2".
    Thanks for your help,
    JbL

    Thanks for the idea, Murph.
    I didn't need a session scope bean, request would be fine, I just was trying to make something work that would allow me access to the process scope attributes. I want to allow multiple browser windows searching on different objects independently, so I don't want to use session scope.
    I tried removing the variable declaration and setting/getting the processScope attribute in the setter/getter methods, to make the process scope attributes independent of the managed bean. But each time the page loads (by clicking the table navigation links), I still lose the process scope attributes. I tried with both session and request scope beans. Either way, in the getLoad() method, when I try to get the label from the process scope (using the new version of getLabel()), it is null.
    So the root problem is still there.
    For continued discussion on this more specific problem, see my separate thread "JSF ProcessScope attribute missing on page reload from af:table pagination"
    at JSF ProcessScope attribute missing on page reload from af:table pagination

  • I have just downloaded the latest version and some sites are part loading then taking ages to complete the page load. why and can you or I do anything about it please.

    latest version loads the main banner of page then takes too much time loading the content of page > I have even had to stop the page loading and refresh before it will load properly> I did not experience this before installing the latest version the pages used to load insantaneously. I am not the only one experiencing this as my friend has reverted back to explorer.
    Please can you do something about this.

    It could be caused by a Firewall. Disable your internet security and then see if QT will open.
    Are you an administrator account? It could be a permissions issue. Open the User Accounts control panel to see what type of account you have. Open the QT control panel to File Types. Does it show programmatically set? If so that will indicate permissions have been set by an administator.
    Also are there too many applications running at once or loading at start up? Look down at the bottom right corner of the screen, is it loaded with icons? If so close them all out and stop them from running at start up, then see if QT will open. The only application that should load at start up is your internet security and maybe volume control, anything else you can open as needed.
    If none of the above is a solution than I can help you uninstall QT and install, if so what version of QT is on the computer now. Open the QT control panel and click on About QuickTime

  • Creation of components on page load

    Hi All,
    My question stems from the answers I received in these forum posts:
    - http://forum.java.sun.com/thread.jspa?threadID=5262963
    (how to dynamically add components to a specific position in the page)
    - http://forum.java.sun.com/thread.jspa?forumID=427&threadID=5262253
    (how to register a PhaseListener to trigger before rendering the response)
    What I'm trying to do now is to dynamically create components inside a container as soons as the page loads. To do this I have placed the following code inside the beforePhase() method of my PhaseListener:
    FacesContext.getCurrentInstance().getApplication().addComponent("Label", Label.class.getCanonicalName());
    Label label = (Label)FacesContext.getCurrentInstance().getApplication().createComponent("Label");
    label.setText("Hello World!");   
    panelGroup.getChildren().add(label);I've also modified my JSP page as follow:
    <webuijsf:panelGroup binding="#{TestPage.panelGroup}"/>I've tried debugging the code, and my PhaseListener is definitely working (as my code gets executed), but when the view is rendered the label isn't displayed at all. It works fine, however, if I put the code inside a method and connect an actionListenerExpression to it which gets called when a button is pushed.
    Any ideas?
    Ristretto

    Hi Ristretto,
    A couple comments. First, if the "Label" component is already declared in a faces-config.xml file somewhere, you don't need to re-register it w/ JSF... and you certainly don't need to do it each time your code is executed. If this is the Woodstock Label component (as the "webuijsf:" prefix implies for your other components), then you don't need to do this. So you can remove the first line of code (the addComponent() line).
    From what you've described, I would think it should work. Your panelGroup variable is the same instance of the object returned from the binding in your JSP, and the phase listener gets invoked before anything gets rendered. If that happens, everything should work as you want it to. Obviously something's not right, though... and unfortunately I don't see it either.
    Why do you want to do this in a phase listener instead of during your binding?
    I would not recommend creating a hierarchy of managed beans that register themselves as phase listeners and provide behavioral functionality for your application. This is very likely to be difficult to maintain, will cause every page to execute these phase listeners, and simply cause you problems. That said... there may be cases where phase listeners are a good fit in order to execute code on every request, so maybe what you're doing is ok for your use-case -- that's your call. :)
    Let me show you a complete, runnable example of how JSFT can do exactly what you described below w/o writing any Java code or compiling, etc.:
    <sun:page>
    <sun:html>
    <sun:head title="Woodstock Example" />
    <sun:body>
    <sun:form id="form">
    <sun:panelGroup id="panelGroup">
        <!afterCreate
            createComponent(type="sun:label", id="label", parent="$this{component}", component=>$attribute{comp});
            setUIComponentProperty(component="$attribute{comp}", property="text", value="Hello World!");
        />
    </sun:panelGroup>
    </sun:form>
    </sun:body>
    </sun:html>
    </sun:page>The "sun:" tags are the same as the "webuijsf:" tags (woodstock) you are using. If you use the facelets syntax w/ JSFT, you can map the prefix to "webuijsf:" also. When run, the panelGroup part of the page looks like this in the browser's source:
    <span id="form:panelGroup"><label id="form:panelGroup:label" class="LblLev2Txt_sun4">
    Hello World!
    </label></span>The "createComponent" and "setUIComponentProperty" handlers are builtin to JSFT and do what your simple example needed, however, using a simple annotation you can create your own custom handler to do anything you want (assuming your performing some logic or retrieving data from somewhere to create these components on the fly). These handlers demonstrate that there are better alternatives to "managed beans." Managed beans tend to get tied to a particular page and scope... but logic should neither be tied to a page, scope, or a particular use-case. By allowing parameterized handlers to exist, you can invoke them from anywhere. This is the re-usability you are trying to achieve through inheritance without the overhead that you will incur.
    If you'd rather add the component during the rendering phase instead of the restore view phase (afterCreate is during the restore view phase in JSFT), you can use the "beforeEncode" event. And furthermore, you don't have to associate the event w/ the component in which it should be associated with (although you can)... for example you could put this event at the top of the page so that it gets invoked at the beginning of the render response phase:
    <!beforeEncode
        getUIComponent("form:panelGroup" component=>$attribute{parent});
        createComponent(type="sun:textField", parent="$attribute{parent}", component=>$attribute{comp});
        setUIComponentProperty(component="$attribute{comp}", property="text", value="#{pageSession.foo}");
    />This causes a woodstock textfield to be added before rendering the page. However, unlike creating a component tree, rendering happens each time the page is refreshed. So, this code could potentially get invoked many times... just add a button w/o any navigation rule and you'll see it add a new text field each time you click the button.
    Last... you may want to consider using facelets way of composing pages. This allows you to create a template which may include page-based phase listeners, or events (as shown above), or bindings... as well as the obvious header / footer and other template content. This again is a much better re-use strategy than maintaining a bunch of JSPs. And JSF 2.0 is going to emphasize Facelets syntax over JSP for this reason.
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

Maybe you are looking for