Can we dynamically modify the Component Hierarchy?

Is it possible to modify the component hierarchy in JSF when making an Ajax call to the server for information?
I am interested in using Ajax with JSF to update the UI incrementally as needed.
As an example, imagine a phone book which starts with a list of names. When one clicks on a name, Ajax is used to get the data for that name (i.e., address, phone numbers, etc), and the data is then returned to the client and inserted into the DOM in the client browser under the approprtiate user. This information could be editable. Clearly, as part of this process, I would like the component hierarchy in JSF updated with the new data, also.
I konw that we could do a complete postback of the entire page plus the new data, and then diff it out on the client (as per the methods outlined by Jacobi and Fallows in Pro JSF and Ajax: Building Rich Internet Components). However, I am wondering if it is possible to update the Component Hierarchy with the new components associated with the new data during the Ajax call, so that we can focus our Ajax request on the needed data only, rather than having to regenerate the entire page.

Hi wua22,
For my case, I found that if an attribute called "userPassword" is added in the Schema Manager, after running the above codes which I quoted, it seems that nothing changes since next time when you log on, it can only be authenticated using the old password. However, in this case, actually, the change was made in the ADDED attribute, "userPassword". You'll find where the change made if you have the admin right to check the properties of the users' account using ConsoleOne (or similar tools).
In addtion, for the exception I encountered in my case, I found that everythings go normally if that ADDED attribute "userPassword" is deleted. So, this time, it's the setting in my LDAP server which caused the problem, but not the programming error.
BTW, someone suggested that using UnicodePwd attribute, instead of the userPassword for updating one's password. This UnicodePwd attribute is unicode converted. I've not tried on that actually, but will at a later time.
Hope that helps to you.
Regards,
Mercury

Similar Messages

  • How do I pass an event up the component hierarchy?

    I have a child component which has a mouse listener and a parent component with a mouse listener. However the child component consumes all the mouse events so the parent doesn't get them.
    Is there a way for a child component to receive mouse events, then decided to pass them back up the component hierarchy so the parent can still receive them too?
    I've spent the last two hours on Google and can't seem to find anything relevant.
    Cheers, Eric

    Unfortunately, you cannot
    override this method since it ispackage-private.
    That was wrong of mine. Package-private members are
    visible to subclasses too (the package access is a
    complete superset of protected access). So you CAN
    override dispatchEventImpl and do your stuff there.
    When I try that the compiler gives me the following warning
    The method SheetElementPlacementComponent.dispatchEventImpl(AWTEvent) does not override the inherited method from Container since it is private to a different package.
    It lets me define the method, but does not let me override it.
    I just wonder why they made dispatchEvent() final,
    when it just calls dispatchEventImpl(), and it is
    not final...
    Another useful method is Component.enableEvents()
    and disableEvents() (which are both protected). You
    can use them to modify the so called event mask of a
    component, which is used to signify which events a
    Component is interested in. Disabled events (= not
    on the event mask) are not delivered to the
    component and the dispatcher skips it, looking for
    parent components which have enabled the event. For
    example, if you have a JButton in a scroll pane and
    you scroll the mouse wheel on the button, the event
    is dispatched to the scroll pane, even though it
    occurs over the surface of the button. That's
    because a button is not interested in mouse wheel
    events.
    You can use that hack the following way: In the
    mouse listener for your child component, after you
    have done your work, disable mouse events for the
    component and then post the event again (invoke
    dispatchEvent(theEvent)). That way, the event should
    be delivered to the closest parent that is
    interested in mouse events. This is done
    synchronously, so after all listeners for the parent
    components have finished, the dispatchEvent() method
    returns in your listener for the child component.
    Then you re-enable mouse events on the child
    component in order to receive the next mouse event.
    I don't know if this works or if it has any side
    effects, but it's worth a try...I can't call dispatchEvent() because it creates an infinite loop resulting in a stack overflow. It tried calling((JComponent) getParent()).dispatchEvent(e); but this does not help either, the parent never gets the event.
    Hope this helps you more :).
    Greets,
    MikeSorry, I still can't find a way around it other than to redesign my UI.
    FYI I created a bug report and Sun have assigned it Bug Id: 6571453. Everyone please vote on this if you think it's a cool feature request.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6571453
    Cheers, Eric

  • Dynamically modifying the number of Form detail rows

    Hi,
    A challenge for you all!
    I am building a product details system in Portal forms.
    One of the screens is a Product Ingredients form with Product as the master block and ingredients as the Detail block. There can be between 1 and 20 ingredients in any 1 product and as these all have to sum to a volume percentage of 100% the client would like to see all ingredients for a product on 1 screen and not have to do Next/Previous to see them all.
    As you increase detail rows on a master detail form the performance of the form decreases dramatically so I would like to minimise the number of detail rows displayed for each product to maximise performance.
    To this end I wish to dynamically modify the number of detail rows displayed to match the number of ingredients on a product as that product is queried.
    I can handle figuring out how many rows I want to set the page to but have not been able to figure out how to change the number of detail rows displayed at run time.
    Anyone know how (or if!) this is possible ?
    All help gratefully recieved
    Andy

    The rownum pseudo-column hold the number of the row but it doesn't work like you expect. It is assigned before sorting for example and it is not absolute. SQL conceptually deals with sets and sets have no inherent order. See http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    If you want to have an absolute number in a row you will need to maintain it yourself with PLSQL code.

  • The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    Hi,
    Can any one help me on the below issue ?
    while executing automated test case in test center it is showing as test case is in progress, then i navigated to virtual machine (where the test agent is online), there Internet
    explore has opened automatically and my test case execution started, but with in a seconds IE has closed . However, in test center, test case status is showing as in
    progress, after  2 or 3 min  some of  test cases getting passed and some are failed.
    Here my question is in lab center-->virtual machine, IE has opened automatically and navigated the 2 or 3  links and with in seconds IE has getting closed. Why IE is getting closed without completing execution?
    Error Message :
    The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the
    installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    (mtm.exe, PID 5240, Thread 4) FileAggregatorSessionInfo: Error occurred while deleting temporary directoryException: System.IO.DirectoryNotFoundException: Could not find a part of the path 
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
       at Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileAggregator.FileAggregatorSessionInfo.DeleteTemporaryDirectory(String temporaryDirectory)
    the message resource is present but the message is not found in the string/message table
    Thanks
    Suresh
    Suresh

    Hi,
    Can any one help me on the below issue ?
    while executing automated test case in test center it is showing as test case is in progress, then i navigated to virtual machine (where the test agent is online), there Internet
    explore has opened automatically and my test case execution started, but with in a seconds IE has closed . However, in test center, test case status is showing as in
    progress, after  2 or 3 min  some of  test cases getting passed and some are failed.
    Here my question is in lab center-->virtual machine, IE has opened automatically and navigated the 2 or 3  links and with in seconds IE has getting closed. Why IE is getting closed without completing execution?
    Error Message :
    The description for Event ID 0
    from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    (mtm.exe, PID 5240, Thread 4) FileAggregatorSessionInfo: Error occurred while deleting temporary directoryException: System.IO.DirectoryNotFoundException:
    Could not find a part of the path 
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
       at Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileAggregator.FileAggregatorSessionInfo.DeleteTemporaryDirectory(String
    temporaryDirectory)
    the message resource is present but the message is not found in the string/message table
    We are using VS 2013 (premium) and IE 10.0,  scripts have been created on the same versions. It is working fine  on
    developers command prompt but the same tests are getting failed in lab center test agent machine
    test agent log:
    QTAgentService.exe, AgentService: calling AgentObject.RunEndFileCopyComplete
    QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: waiting for agents to start.
    QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: Agents started.
    QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Successfully called 'Cleanup' on the test agent
    QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Calling 'StopDataCollection(int)' on the data collection agent
    QTAgentService.exe, AgentProcessManager.IsDataCollectionAgentNeeded: IsExecutedOutOfProc? True
    QTAgentService.exe, AgentPro
    QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: Agents started.
    QTAgentService.exe, AgentService: Connection to controller is up.
    Thanks
    Suresh

  • I need to get photos off a water damaged iPhone 3GS. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    I need to get photos off a water damaged iPhone 3GS. It spent time underwater, saltwater. I let it dry for a week, turned it on, the apple symbol came on, then it died. I need to retrieve my photos off it. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    You're talking about the logic board. The two most likely things to get toasted, with water damage, are the battery(it shorts out), & the logic board. The worst water damage would be salt water. I'm afraid your logic board is toast.

  • How can i find out the table hierarchy

    Hi experts,
    I have one doubt. how can i find out the table hierarchy in the particular schema.
    Let me explain my requirement in detail.. In my Database i have nearly 250 table each table have it's own temporary table(for authorization purpose we are maintaining the temporary tables) for each day i have to clear the temporary table data.
    All temporary table connected with each other. i mean all the table having foreign key relationship.. while i attempt the delete the data from the temporary table it showed ORA-02292: integrity constraint  violated - child record found.
    So can any one please tell how can i delete the child table record first and then parent record table record.
    Thanks in advance
    Arun

    CREATE OR REPLACE FUNCTION get_child_tables (
    ptable VARCHAR2,
    powner VARCHAR2 DEFAULT 'SCOTT',
    plevel NUMBER DEFAULT 10
    RETURN stringarray
    -- -- create this ON SQL*PLUS "CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);"
    -- AUTHID CURRENT_USER
    PIPELINED
    AUTHOR DATE VERSION COMMENTS
    ======================================================================================
    [email protected] 26-OCT-2009 1.0 Developed to ease developers effort to find Nth level of Referential integrity
    ======================================================================================
    -- PURPOSE -> To find PARENT=> CHILD relational TABLE(S) in Oracle upto a depth max N Level.
    --SYNTAX TO USE
    SELECT * FROM TABLE( get_child_tables('DEPT','SCOTT',3)); Store this query in a file for your use
    SELECT * FROM TABLE( get_child_tables('EMPLOYEE')); Store this query in a file for your use
    -- RESULTS looks as below
    --1 => DEPT
    --2 => EMP
    --2 => EMP2
    --3 => EMP_CHILD
    --3 => EMP2_CHILD
    -- and so on
    --This can be leveraged to use in any oracle database REGION 10g having and above.
    --This FUNCTION gives formatted result of the Oracle 10g Hierarchical query result coded in the cursor
    --to find MASTER => CHILD relational TABLE(S) upto a depth max 10 Level.
    --The result of the PIPELINED function can be retrieved using Oracle new operator
    --TABLE(array name) in SQL query.
    --Due to the AUTHID CURRENT_USER compiler directive any user can use based on his/her access privileges on the database.
    --GRANT EXECUTE ON SCOTT.get_child_tables TO PUBLIC;
    --CREATE OR REPLACE PUBLIC SYNONYM get_child_tables FOR SCOTT.get_child_tables;
    IS
    atname stringarray := stringarray ();
    -- create this ON SQL*PLUS CREATE OR REPLACE TYPE STRINGARRAY AS TABLE OF VARCHAR2(50);
    vlevel NUMBER;
    vtname VARCHAR2 (50);
    nindex NUMBER := 0;
    bprocessed BOOLEAN := FALSE;
    CURSOR c1 (powner_in IN VARCHAR2, ptable_in VARCHAR2, plevel_in NUMBER)
    IS
    SELECT LEVEL, LPAD (' ', (LEVEL - 1) * 2, ' ') || pt AS "TNAME"
    FROM (SELECT a.owner w1, a.table_name pt, a.constraint_name c1,
    a.r_constraint_name r1, b.owner w2, b.table_name ct,
    b.constraint_name c2, b.r_constraint_name r2
    FROM all_constraints a, all_constraints b
    WHERE a.constraint_name = b.r_constraint_name(+)
    AND a.owner = b.owner(+)
    AND a.owner =
    UPPER (powner)
    -- Change Owner here while testing
    --AND A.r_constraint_name IS NULL
    AND a.constraint_type IN ('P', 'R')) v1
    START WITH pt =
    UPPER
    (ptable)
    -- Change your master table here while testing the QUERY
    CONNECT BY PRIOR ct = pt AND LEVEL <= plevel;
    -- Change lavel here while testing
    BEGIN
    atname.EXTEND;
    atname (1) := 'NOTHING';
    OPEN c1 (powner, ptable, plevel);
    LOOP
    bprocessed := FALSE;
    FETCH c1
    INTO vlevel, vtname;
    IF nindex > 1 AND atname (atname.LAST - 1) = vtname
    THEN
    --DBMS_OUTPUT.PUT_LINE('2 ==== vtname  ' ||vtname || '   '|| atname.count|| '   '||atname.last ||  '   '||atname( atname.last-1));
    bprocessed := TRUE;
    END IF;
    IF NOT bprocessed
    THEN
    nindex := nindex + 1;
    atname.EXTEND;
    atname (nindex) := vtname;
    PIPE ROW (vlevel || ' => ' || vtname);
    DBMS_OUTPUT.put_line ( ' **** nindex - atname( nindex) '
    || nindex
    || ' - '
    || atname (nindex)
    DLOG('ADDING ',vTname); A LOGGING ATONOMUS PROCEDURE FOR DEBUG PURPOSE
    END IF;
    EXIT WHEN c1%NOTFOUND;
    END LOOP;
    CLOSE c1;
    FOR i IN 1 .. atname.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE('atname (i) ' ||atname (i));
    END LOOP;
    RETURN;
    EXCEPTION
    WHEN no_data_needed
    THEN -- THIS EXCEPTION HAS TO BE THERE TO GET THE FUCTION WORKABLE
    DBMS_OUTPUT.put_line (SQLERRM);
    RETURN;
    --SELECT * FROM TABLE( get_child_tables('TB_XOP_LETR_TEMPLATE','OPS$CMS',5));
    END get_child_tables;
    Edited by: user3066657 on Jul 21, 2011 8:42 AM
    Edited by: user3066657 on Jul 21, 2011 11:26 AM

  • I need to know, what was the last user who modify the customer hierarchy???

    Someone know s, what´s the name of a table or something, to find the last user who modified the customer hierarchy, and the date.??
    Thanks everyone for your help!!!

    Hi Itzell,
    Try the following way
    -->goto se16  Enter the table CDHDR and press enter
    --> Enter  "KUNHIER" in  Change doc Obj..  and
         Enter the date range in Date field.
    YOu should get some items in the table.
    (       If there are no items, that means. no change was happened to the Customer Hierarchy structure or the changes were not being store. )
    -->  If you want more details refer to CDPOS too..
    Regards,
    Ajai.
    Don't forget to reward points if helpful.

  • Modifying the component tree in FacesListener

    Hi,
    I want to modify the component tree of every page that is accessed within my JSF application. For example, say I want to remove one component(id is known) from every page that is accessed. Obviously, I don't want to edit the page manually.
    I wrote and configured a FacesListener which will be executed during the RESTORE_VIEW phase. In the afterPhase() method, I get the view root from FacesContext. I traverse down to the component with the given Id and remove it from its parents child list. But it doesn't get removed. The component is rendered. Even trying to chage its value or adding a new component doesn't work. Basically any modification done to the tree after the RESTORE_VIEW phase in the FacesListener is not reflected in the rendered output.
    Is it the right phase to modify the view?
    Thanks,
    Siva

    There is a typo in my question. I mean PhaseListener not FacesListener.
    Siva

  • Can Forte C++ build the class hierarchy and generate documents?

    Can Forte C++ build the class hierarchy and generate documents?

    Can Forte C++ build the class hierarchy and generate documents?

  • How can I dynamic modify bc4j.xcfg

    Hi,
    I am developing application using Jclient and BC4J.
    I would like to let users to select different database, user account and change their password in the application runtime period.
    Since BC4J uses bc4j.xcfg xml file to connect to database. How can I write code to modify the bc4j.xcfg file
    Any suggestions will be appreciated.
    Jinsen

    I plan to solve the same problem (but JSP client, not JClient).
    And I thing solution is How To Support Dynamic JDBC Credentials (http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html). But don't know if it applies to JClient too...

  • Can I dynamically select the FTP account and destination?

    I have a situation where, dependent, on a field in the contents of a CSV file I need to FTP it to a certain location.
    Now there are over 40 cases and I'd rather not set up 40 outbound FTP services, each with their own account but would rather have just one and dynamically set the account information from a configuration available from within the pipeline (i.e. via some user defined properties).
    Is there a way of doing this?
    regards

    I've made some progress on this. The XQuery function:
    fn-bea:lookupBasicCredentials
    can be used to get service account information at run time so now all I need is to be able to override some header values so that the FTP transport uses them instead but also need a means to change the FTP URL.
    Surely someone has come across this problem before and solved it?

  • Dynamically modify the crystal report field size based on Paper size in C#

    Hi,
    I need to modify the Crystal Report field size dynamically based on the paper size using C# .Net. According to the paper size, crytal report field width should be increase or decreae.
    Kindly suggest any solution on this.
    Thanks

    Moved to .NET SDK forum
    See these RAS samples:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Don

  • Where can you build/maintain the Supervisor Hierarchy table in HRMS?

    I am using SSHR for LOA and I receive the error "Unable to build the Supervisor Hierarchy, no person record exists with the person id 1109 as of sysdate." Obviously, a person in the hierarchy is terminated but where is the supervisor hierarchy table so I can change the person that is terminated? The terminated person with the assignment ID has a person type of ex-employee. So that works. But, I don't know if they have been cleared from the hierarchy table.
    Can anyone help?

    user11990615 wrote:
    I am using SSHR for LOA and I receive the error "Unable to build the Supervisor Hierarchy, no person record exists with the person id 1109 as of sysdate." Obviously, a person in the hierarchy is terminated but where is the supervisor hierarchy table so I can change the person that is terminated? The terminated person with the assignment ID has a person type of ex-employee. So that works. Bud.t, I don't know if they have been cleared from the hierarchy table.
    Can anyone help?As mentioned by the previous replies, there is no supervisor table in Oracle. The relationship is stored in the assignment table.
    If you have a specific problem ID, you can use the following SQL to give you the employee number, assignment number and effective dates of the current and future assignments that have this person assigned as a supervisor. (Note I have not tested the code, so there may be typing mistakes)
    select ppf.employee_number, assignment_number, paf.effective_start_date, paf.effective_end_date
    from per_all_people_f ppf
    , per_all_assignments_f paf
    where ppf.person_id = paf.person_id
    and paf.supervisor_id = 1109
    and paf.effective_end_date > sysdate
    You will then need to use your knowledge to determine the date that each of the assignment records should be corrected.
    Regards,
    Andy.

  • Why can't I modify the property of a DAQmx timing node?

    I have right click the property and click "select property> browse>search property> more:reference clock:source". But the property list didn't update and I can't modify the property to "reference clock:source".
    Help me on this!
    Thanks!

    I think this article might be helpful, even if you are in a more recent version of DAQmx.  Otherwise, we might be looking at reinstalling the drivers.
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • How can i dynamically varie the location and number of major grids in XY graph.

    Hi All,
        I'm supposed to plot some statistics in X-Y graph with x-axis scaled on time stamps. The plot generated has only one  major grid. Can I have a control over the location and number of major grids dynamically?
    Thanks,
    Saravanan.T 

    Hi Saravanan,
    use a property node "X scale.Range.Increment" to set the spacing of the major grid...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • How to genarate performance monitoring report in SAP PI automatically

    Dear All, I have a requirement where I need to automatically generate a report of monthly data of Performance monitoring in SAP PI  and send it to business users. As per my understanding, this can be achieved by pulling the data every month from the

  • Table in PAGES on iPad only half visible, disappears at end of page...

    Hi all, As you can probably tell I'm quite a novice at this... I really have tried looking my answer up but then hit a whole of mac jargon that I just can't get my head around! I'm using Pages on my iPad in ios7. I have written a paragraph of text an

  • Run time error 4605

    Hi friends when i try to insert fields I am facing an issue has run time error 4605 Application error or object-defined error.Actually I got my application from my client has a document format I just converted to rtf.when I load the data its taking p

  • REP-56048 and NLS_LANG=AMERICAN_AMERICA.UTF8

    Hello All, We're encountering REP-56048 when running any report (including a report consisting of only simple text with chinese characters, no retrieval from any database). Before we can run the report but the chinese character cannot be displayed (d

  • Jdbc: character encoding.. what is the string ?

    I have been looking for an hour now, and have had no luck..What is the syntax of building a jdbc url, where the charset is set to utf-8 regards Ben