AF TREE:How to Create Method in backing to Return TreeNode Value Selected

Hi all;
I use HR Schema
in ADF Tree example; I created a Special Page for each Emplyee
so I want to create a new Method called callPage in backing_test1 class to Return FirstName of the Employee at Selecting Employee Node in the Tree
like my example below :
<af:tree value="#{bindings.DepartmentsView1.treeModel}" var="node"
binding="#{backing_test1.tree1}" id="tree1">
<f:facet name="nodeStamp">
<h:panelGroup>
<af:commandLink text="#{node}" partialSubmit="false"
id="nodeAction1"
rendered="#{backing_test1.tree1.depth==0}"/>
<af:commandLink text="#{node}" partialSubmit="false"
id="nodeAction2"
action="#{backing_test1.callPage}"
rendered="#{backing_test1.tree1.depth==1}"
actionListener="#bindings.setCurrentEmployeesRowWithKey.execute}"/>
</h:panelGroup>
</f:facet>
</af:tree>
Best Regards

mail2bansi wrote:
Please ignore my earlier message . I hit some key mistakenly and it resulted in send messageThere´s an edit button available as long as no one has responded to your message yet.
if Validation fails on attribute "required=true"
wouldn't it result in renderResponse phase
OR
it still proceeds to render Response phase Uh, validation happens in validations phase (or apply request values phase, when immediate is set to true). After that, if any validation has failed, then it will proceed to the render response phase immediately.
Also i forgot to mention that we use Ajax4JSF,
so to clear FacesMessage by ClientId
if i retrieve ViewRoot it returns AjaxViewRoot thereby it never returns the correct Iterator meaning Iterator.hasNext() is always falseI don't have extensive experience with Ajax4jsf, so I have no idea what to say here.

Similar Messages

  • How to create a sophisticated modal interface returning a value?

    Hi,
    I am trying to create an interface in Java with sophisticated features to allow a user to select a date value. It has to be modal, that is, when the user clicks on a button, the frame opens, the user selects a value and the value must be retrieved by the calling frame.
    JDialog is not OK, because it does not allow to design a sophisticated interface. The customization possibilities of JDialog are not enough for my needs. I need to design a full screen with several tables, combox boxes, etc...
    How should I proceed? What type of object should I use / inherit of? What mechanism should I use to retrieve the value selected by the user? I can see (in http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html) that JOptionPane allows to retrieve a value from a modal box. That is exactly what I need, but for a much more sophisticated interface.
    Any ideas? Thanks !

    I had a serious look at the source of JDialog once,
    with a view to doing my own modal stuff. Too much
    like hard work.It's really not that hard, as long as you realize that calling setVisible(true) on a modal dialog suspends the current event pump and starts a new one. Once the dialog is set invisible or disposed, the original pump resumes.
    So, assuming that you've created a class to manage the dialog, you'd implement a show() method like the following (hasn't been compiled, may contain syntax errors):
    // note: this class is responsible for building and displaying
    //       a dialog; it doesn't need to inherit from JDialog, and
    //       becomes a lot cleaner if you don't inherit
    public class MyDialogManager
        private JDialog _myDialog;
        private JTextField _field;
        public MyDialogManager(JFrame owner, String title)
            _myDialog = new JDialog(owner, true, title);
            // build out the dialog here, including text field
        public String showMyDialog()
            _myDialog.setVisible(true);
            // this thread is suspended until the dialog is closed
            return _field.getText();
    }

  • How to create a function that will return a value of a JComboBox PLEASEHELP

    this is my psuedo code,. but it's still not worked. Plase help..
    String vpText;
    String abc = getit();
    String s_alert[] ={"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox CBweapon = new JComboBox();
    for (int i=0;i<s_weapon.length;i++) {
    CBweapon.addItem (s_weapon);
    private String getit(){
    CBweapon.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    return;
    return wpText;

    Maybe I'm missing some subtle point here, but why not just do this:
    private String getit(){
    return CBweapon.getSelectedItem() ;
    It doesn't make sense to me to have a method which calls actionListener like this, as if you are going to be calling it over and over again. You want to only call actionListener(...) ONE time, and every time an event is triggered, that code will be executed automatically.

  • How to create Method Detail in javadoc

    I am using NetBeans 5.0. I have generated javadoc giving explanation to my classes. But I don't know how to create Method Detail in javadoc to give explanations to my methods.
    Could anyone please help me with this.

    For a class, I am creating comments as shown below in my source code and it's displaying fine in the javadoc
    * <pre>
    * This is className
    * </pre>
    public class className
    }In the same way, I am giving comments to my method, but it's not getting displayed in the Method Detail section of the javadoc.
    * This is methodName
    private static String methodName(String line)
    }Could you please help me with this.

  • How to create a group of contact from a multi-selection of mails in a mailbox to answer to all senders?

    How to create a group of contact from a multi-selection of mails in a mailbox to answer to all senders?

    Use Mail Scripts. Its Add Addresses function will collect all the addresses from all selected messages and allow you to select the ones you want to add and allow you to create groups as you go.

  • How to create application toolbar in modal dialog box in selection-screen

    Hi Experts,
    how to create application toolbar in modal dialog box in selection-screen?
    Regards,
    Swapnika

    Hi,
    Check the following link regarding Model dialog box and appication toolbar
    http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b84454211d189710000e8322d00/frameset.htm
    It helps in solving your problem.
    Thanks.
    Ramya.

  • How to create dynamic ed flash charts based on user selected fields in Orac

    Hi all,
    Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex".
    Thanks
    Manish

    Hello,
    Lots of different ways to do this, I blogged about one way (using a Pipelined function) here -
    http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
    Other options include using a PL/SQL function returning the string to use as the dynamic query etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • How to create a event to display records depend on selection ofdropdownlist

    BSP
    how to create a event to display records depend on selection of dropdownlist box,
    Using BHTML,
    thank you,
    regards,
    jagrut bharatkumar shukla

    1) Copy this script to the code
    <script type="text/javascript">
    function displayVacationDates() {   
        for (var i=0; i < document.forms[0].Status.length; i++) {
            if (document.forms[0].Status[i].checked && document.forms[0].Status[i].value=='Vacation'){
              document.getElementById('startDateRow').style.visibility='visible';
              document.getElementById('endDateRow').style.visibility='visible';
             if (document.forms[0].Status[i].checked && !(document.forms[0].Status[i].value=='Vacation')){
             document.getElementById('startDateRow').style.visibility='hidden';
              document.getElementById('endDateRow').style.visibility='hidden';
    </script>
    2) Set initial style to 'hidden'
    <tr id="startDateRow" style="visibility:hidden">
    <td align="left"><blockquote>
      <p><span class="style16 style8"><strong>Start date:
      </strong></span></p>
    </blockquote>                 </td>
    <td align="left"><script>DateInput('VacStart', true, 'DD-MON-YYYY')</script></td>
    </tr>
    <tr id="endDateRow" style="visibility:hidden">
    <td align="left"><blockquote>
      <p><span class="style16 style8"><strong>End date:
      </strong></span></p>
    </blockquote>                      </td>
    <td align="left"><script>DateInput('VacEnd', true, 'DD-MON-YYYY')</script></td>
    </tr>
    3) Call the display script
    <input name="Status" type="radio" value="In the Field" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Vacation" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Sick day" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Admin Day" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="DSR Ride Along" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="ServiceCall" onclick="displayVacationDates()">

  • Somehow the back button on my Safari browser got replaced with an autofill button; how do I get the back button returned to the toolbar?

    Somehow the back/forward button on my Safari browser got replaced with an autofill button; how do I get the back button returned to the toolbar and get rid of the autofill button

    Good to hear, Tom. Did you use "Customize" from the View Menu?

  • How crm visit the external website and return the value to crm

    how crm visit the external website and return the value to crm?
    Awen

    Can you elaborate the question? I assume that you are looking for some sort of mechanism to validate a customer's web site?
    Regardless of the scenario, the way to validate or retrieve a value from an external web site is to write a plugin that executes a WebRequest to the external site and reads the response.

  • How to Create a Procedure/Function to Return more than one value

    How I can write a function/Procedure to which one value is passed and it will return nine values. How I can use these values

    Syed,
    I would use PL_SQL table versus a VARRAY for this purpose as you will have an advantage of joining PL_SQL table if you want to in your SQL statements in the procedure.
    1. At the SQL prompt, create a type using,
       create or replace type myTable as table of VARCHAR2(100);
    2. Pass the table to your procedure as IN OUT parameter,
    Create or replace procedure
    myProc(pvar1 IN Number, passingArray IN OUT myTable) AS
    Begin
        --Fill the array with your logic
        for i in 1..9
        loop
            passingArray.extend;
            passingArray(passingArray.count) := 'what ever';
        end loop; 
    End;
    3. From your Main prog, you call  Myproc
       --declare a variable for type first
       passingArray myTable := myTable();
       begin
       myProc(10, passingArray());
       --At this point, You would be able to Join the PL_SQL table
       --which gives you the power of using SQL with PL_SQL tables
       end; -- end of main program
    4. All done!I have not shown how to use PL_SQL tables in SELECT statements, as that is not the subject here.
    At the end of the story, I would say, if you know the number of arguments that you are going to pass to a procedure, Simply use "that many" IN OUT parameters to finish your task(9 in your case). Although the proc call looks large with this, it is much simpler. The above approach is VERY helpful if YOU DO NOT KNOW THE NUMBER OF ARGUMENTS that you are sending AND receiving From a procedure.
    Thx,
    SriDHAR

  • How to create a characteristic that can hold decimal values.

    Hi,
    I want to create a characteristic which shoul be able to hold decimal values.
    Because from source system its coming in the format Number(1,1) and it should be a characteristics as per my
    business requirement.
    Please give me the solution if u know.
    Thanks,
    Vijaya

    Hi,
    it depends on your requirements... there are two possibilities
    1. type CHAR - displays the values as they are coming from source system, but I do not think any further calculations will be possible
    2. type NUMC - you can multiply each value from source system with 10 to derive an Integer value if you have format 1,1 for all records. The values will not be displayed as decimals but you can apply further calculations if needed (and divide all numeric values by 10 to transform back to correct decimal value)
    Please elaborate on your requirements, maybe you can meet your requirements using a decimal key figure...
    @Manfred
    I think type amount will be available only for key figures, not for characteristics?
    Best regards,
    Björn

  • Vision DevMod: How to create large Gaussian filter kernels with integer values like Vision Assistant uses

    Hello,
    in Vision Assistant it is possible to create filter kernel of arbitrary size, like e.g. a 75x75 Gaussian kernel. These kernels feature integer-only elements. I tried to find a function in the Vision Development Module, but have been unable to find something so far. So I still create a Vision Assistant script with such a kernel and export it to a LabVIEW VI in order to abtain such a kernel. Any ideas on how to create such kernels programmatically?

    -You can generate custom kernels in LabVIEW also, but you need to have either string or numerical of that kernels. Without these two, i am not sure of how to do this.
    -Please check this for building kernels.
    http://zone.ni.com/reference/en-XX/help/370281M-01​/imaqvision/imaq_buildkernel/
    -Let's say you are able to programmatically generate kernel string, it will convert to kernel in double format automatically and connect this to convolute vi.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • How to check the sql:query is return null value

    I have use :
    <sql:query var="sql1" dataSource="${db}">
    select col_name from table_name
    where a=<c:out value="${row.test1}"/>
    and b='<c:out value="${row.test2}"/>'
    </sql:query>
    So, how can I check this statement return null value which is no record within this table?

    The Result should never be null but can be empty. You can check if the Result is empty using an if tag and checking the rowCount property:
        <sql:query var="books"
          sql="select * from PUBLIC.books where id = ?" >
          <sql:param value="${bookId}" />
        </sql:query>
         <c:if test="${books.rowCount > 0}">
         </c:if>http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html#wp84217
    Look for query Tag Result Interface

  • How to create a white back ground for Jpeg image to upload on various webites

    Hello, I have Photoshop Elements 11. I designed a book cover with Microsoft Word 2010 and saved the file as a Pdf. I want to upload an image of this book cover to various web sites that require a Jpeg image and the book cover has to cover at least 85% of the image and require a pure white back ground. Pixel size can be 1,000 or more. Can somebody help me? I did go to the library to get reference books but, I can't ascertain from these books how to do this. I am a beginner to Photoshop and realize I will have to get training for future projects. Thank you very much for any information you provide to me. I wanted to upload an image from my computer to show you the book cover but there was a dialogue box that appeared saying the file was too large to upload. The book cover I designed is 8.5' x 11.0"

    Wow! I can't thank you enough! There is not enough space here for me to express my gratitude for helping me! You are a saint! I had the Pdf files uploaded and stored in my organizer, so the images of the book covers appeared in the bottom of Photoshop Elements 11 Editor. I did exactly as you instructed, then sent the Jpeg  to Amazon and it uploaded in less than 5 minutes. The image could be a little bigger, but now I can utilize the software enough to tweak it.Thanks so much!!!! Any other ideas would be greatly appreciated. Take care and have a great 2013!

Maybe you are looking for