BUS4101:- Next dynamic approver get method.

Hi All,
I have a question. We are having a weared problem. We have srm 5.0 workflow which workd thorough a customised matrix. We found situations where approver determination was failing.
We finally found out the situation when approval fails. Its in Bus4101 and the method 'nextdynamicapproverget'. This doesnt return any approver in the fm BBP_WFL_DIN_APPR_BY_RULE_GET. It only sets the flag 'no_further_approval_needed'.
So we have a unique scenario here where it can cause and unexpected result. Suppose we have 2 level approval determination for a shopping cart. Approval list is filled as soon as the Workflow is triggered. Now its waiting for person 1 to approve.
Suppose it waited for 10 days. in the mean time we update the matrix in a way that it became 3 level approval process. So after the first approval it again goes to the step method agin 'nextdynamicapprovalget'. Its gets the flag 'nofurtherapprovalneeded', the value of this flag was supposed to be 'X' after the second approval.
But now since the matrix was changed as I mentioned. the 'X' value of the flag is changed to ' ' . So it will now go for the third step. But the workflow initial had only 2 steps of approvers and now as per the new matrix and the new flag result it became a three step approval system AND THIS IS  without the third approver in the workflow.
And we know in Bus4101 the method 'nextdynamicapprovalget' and the fm BBP_WFL_DIN_APPR_BY_RULE_GET doent get the list of approvers and only flag.
So finally the mail is going to everyone. I know we can handle such situations in a rule. But first of all my question is this standard BUS4101 is having some defect if you look at it from my angle.
Looking for a solution with minimum chages. please advise.

A correction to the scenario of the question above:-
IF approverlist[] IS INITIAL.
  CALL FUNCTION 'BBP_WFL_DIN_APPR_BY_RULE_GET'
    EXPORTING
      IV_TASK                        = task
      IV_OBJECT_ID                   = lv_object_id
      IV_GUID                        = lv_guid
      IV_OBJECT_TYPE                 = lv_object_type
      IV_ACTUAL_APPROVAL_INDEX       = 0
    IMPORTING
      EV_NO_FURTHER_APPROVAL         = lv_no_further_approval
ENDIF. " approverlist[] IS INITIAL
The fm in Bus4101 is for if approvallist[] is initial. So I am now changing the assumption of the scenario above. Suppose when the cart is triggered on day1. And its waiting for approval ( for some customised step). We have a customised step which is not for approval but just t6o accept the policy.
And it waited from day 1 till day 10. And now around day 8 the matrix changes from no approval needed to 2 approvals needed.
Thanks,
AC.

Similar Messages

  • Dynamic Approval Group with Voting Method  First Responder Wins

    Hi all,
    i create new Approver Group with type: Dynamic, and Voting Method: First Responder Wins. and i write the query to get user_id.
    The query return the correct users, but in the approval list in the wf, it requires approval from all users in my dynamic approver group !!
    i need only one first user to approve (First Responder Wins), then must go to next approver group.
    please help me to solve this problem
    thanks all ..
    hedaya

    With Dynamic approval First Responder wins does not work, We have to use Roles in HR Manager.
    Refer Configuring Parallel Approvers Notification (Doc ID 471125.1)

  • Dynamically call a getter method with reflection?

    I have a page that prints out some report info, but only for the group of columns requested. What I need to do, based upon a String containing a column name that is passed in as input, is call that column's getter method dynamically...
    Does anyone have any good examples of doing this?
    Thanks,
    Mike

    Not sure if dynamic replacement of the property name works, but you could try
    <jsp:getProperty name="myBean" property="<%=request.getParameter("col1")%>"/>
    Where myBean is the name of your object and col1 is the name of your property, not the function name. So, if you have a function named getType(), then your variable is named type. So you would pass type as the property, like
    <jsp:getProperty name="myBean" property="type"/>
    This dynamically calls the getType() method on your object myBean.

  • Dynamically creating setter/getter methods

    Hi All,
    I want to created a Java Bean with setter/getter methods. I know how to do this for fixed number of items like setProduct1,setProduct2 etc . BUT in my case, I can have variabe number of Products and hence want want to create setProduct1...setProductn methods. Any help to do this will be greatly appreciated. I can know in advance how many of setter methods I have to create but they may vary with each request.
    Thanks
    Vinod

    Instead, maybe try making a bean with methods such as this:
    public void addProduct( Product product ) {
        this.products.add( product );
    public List getProducts ( ) {
        return ( this.products );
    }

  • Workflow not move to next level approver...

    Hi Friends,
                           I have developed workflow for appraisal. Employee enter his appraisal ratings and submit  and then first,second,third level approvers enter their ratings one after another submit.
                            whenever one level approver submit,i have updated th status in our customized table and pass the status to workflow method through Set Parameter command. For example ,when employee enter his rating and once submit, i have update the status field in table with value 'Pending with First Approver' and pass the status 'pending with first approver' through Set Parameter command to workflow method. In workflow methods , I receive status value using Get Parameter command and based on tht value respective workflow item will moved to inbox of First level approver.
                      Its working fine. But  SOME TIMES status updated in table properly and workflow item keep retain in same level inbox even after submit successfully,instead of move to next level approer.
                      For example, once employee submit his appraisal rating,status 'pending with first level approver' updated in table properly. But workflow item still keep retain in employee inbox only and first level approver do not receive workflow item in his inbox.  I  tried to refresh that variable which i used in set parameter/get parameter command . but same proble continue.Could you please suggest me what will be reason for this issue?. Thank you.
    Regards,
    Hockteck..

    Hi Rick,
                           Thanks for your response. I am using Z table for reporting purpose. In Z table I update status like 'pending with employee','pending with first approver',etc. If the end users wants to know the status of apprisal for a particular employee,they can use this report and react according to the updated status.
                                               I have mentioned in this thread about  both this Z table update and pass status using set parameter id, because both these statment executed after employee or approvers submit. But Z table updated successfully and set parameter not passed successfully.
                         In my workflow I am using Loop step and this loop will continue to run  till the status become 'Completed'. when third level approver submit his appraisal details that time i pass the status 'Completed' to complete the workflow .For employee,first and second level approvers I pass the status like 'Pending with Employee','Pending with First','Pending with Second'.
                       Whenever I pass the status to workflow,using Function Module i find the next level approver based on the status. For example If the status is 'Pending with First' then in the function module I find the first level approver and pass his UserId as current agent name. Whenever this issue happen I debug and check the current agent id . But it shows only Employee ID.If the status 'Pending with First' passed to workflow properly then FM could have pass the First level approver ID. But since current agent id shows Employee Id, workflow keep exist in Employee inbox ,even after he submit successfully.
                         If 10 employees submit his apprisal ratings,for one or two employees this issue happen and for rest of the emplyess workflow completed successfully with all  approvers submissions. Any suggestions?.
    Regards,
    Hockteck.

  • Dynamic Approver Group

    Hi all,
    Is there a way to let the dynamic approver group to return more than one record?
    for one record we return the person_id in the format 'PERSON_ID:'||PERSON_ID
    Could we use 'PERSON_ID:'||PERSON_ID||',PERSON_ID:'||PERSON_ID for example to retrieve 2 person id's??
    The query of the approver group is calling a function that check the process name and return all the people associated with a position or a job, I need to build dynamic approver groups to send notifications to a group of people so that anyone in that group can approve it and hence it moves on to the next approver group's people
    any idea?!
    Edited by: HST on Sep 7, 2010 7:37 AM

    Thanks Vinayka for the reply.
    I have tried doing your advice, the query return more than one record (3 in my example) and the voting method is first responder wins.
    What happened when submitting the request is that the notification sent to the first person (the one returned in the first record) only and i have to wait for his approval or rejection
    if he approves or reject the cycle stopped.
    i need to send the notification to all employee that the query return and the approval from one of them is enough!
    any idea?
    Edited by: HST on Sep 14, 2010 12:00 AM

  • **URGENT** No getter method for property searchText of bean org.apache.stru

    I'm implementing a query page as described in the HowTo ADF_ComplexMasterDetail.zip
    When running the query page, I'm receiving the error:
    javax.servlet.jsp.JspException: No getter method for property searchText of bean org.apache.struts.taglib.html.BEAN
    I have my searchEmployees writen and 'exposed' (at least I can see it in the Data palette). But seems like something is missing, and can't find this searchText beam property specified in the html:text tag.
    Can someone help in this one?
    Here is the Help description inside the HowTo example:
    Section 3
    queryEmployees
    queryEmployeesInDept provides an interface for entering a simple search criteria for querying a list of
    employees. This does not use the Find mode Query By Example functionality that the other query screens
    use, but rather presents a much simpler search interface. The actual search is carried out using a
    function
    searchEmployees that the underlying view object exposes. (See the EmployeesView view object in the
    model project)
    1. Drop a new Data Page onto the page flow diagram call it queryEmployees
    2. In the page flow diagram, drag the searchEmployees operation from the AllEmployeesView
    collection in the Data Control Palette and drop it on top of the new Data Page. This will cause the
    framework to run a search whenever the page is called.
    3. In the Structure pane, locate the queryEmployees node and expand it, select the child node
    paramNames[0], and change it's value attribute to ${param.searchText}. This will pass the URL
    parameter searchText on to the business method to qualify the query.
    4. Drill down into the page and expand the Data Control Palette to select the AllEmployeesView
    collection. Set the Drag and Drop as: list to Read-OnlyTable. Then drag the collection onto the page.
    This will create a tabular containing the query results.
    5. Select the Struts HTML component palette and drag a Form onto the page above the output table. Set
    the handling action to this Data Page (queryEmployees.do)
    6. Drag a text field from the component palette inside of this new form. Set the property attribute of
    the
    <html:text> tag to searchText (the same value you used in the paramNames[0] for the Data Page)
    7. Create a new submit button in the form to submit the search. Set the property attribute of the button
    to
    event_search.
    8. Finally we need to subclass the data page to prevent the search action from being fired when it is not
    appropriate for the page ( for instance when we first display it). To do this we need to Go to Code on
    the Data Page's context menu, and override the invokeCustomMethod() method:
    * We only want to invoke the custom method i.e. the call to change
    * the Where clause on the collection, if the Action has been called with
    * a search event on the page with a search term supplied.
    * If the user got here via a link or another event, we bypass the model call
    * unless a URL parameter event=search is supplied, in which
    * case the method will also be called.
    protected void invokeCustomMethod(DataActionContext actionContext)
    List events = actionContext.getEvents();
    // If the event is "search" do the custom event call
    if ((events != null) && (events.contains("search")))
    String searchTerm = (String)((DynaActionForm)actionContext.getActionForm())
    Get("searchText");
    if (searchTerm != null)
    super.invokeCustomMethod(actionContext);
    }

    Solved with Oracle JDeveloper HowTo:
    Creating Search Pages with Both Fixed and Dynamic Criteria
    Author: Steve Muench, Oracle ADF Development Team
    Date: September 16, 2004
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamiccrit/index.html

  • Dynamic casting of Method.invoke() return

    Can anyone clue me in on how to cast the return of Method.invoke() based on Method.getReturnType() or whatever else might work dynamically....that is without knowing which method until runtime?
    Thanks,
    Brad

    Thanks for helping me get a grip....makes perfect sense, I guess I was just wondering how far you could take the runtime decisions thing.
    Can I say that, ( and it seems obvious but... ), programatic flexibility and runtime decision making can only be taken so far - and has to be made in the context of certain presumptions at compike time.
    I can see that in implementing the:
    <jsp: setParameter name="myBean" property="*" />
    Presumptions are made that the values passed to
    the bean setter methods will be String objects and that the
    values returned from the:getter methods using:
    <jsp: getProperty name="myBean" property="whaterver" />
    will also be String objects.
    Reality check?
    Thanks again,
    Brad

  • Value Change event is not working. Html Panel Grid get method is not called

    Hi,
    I'm creating components dynamically.
    I have a dropdown. Based on the selection of dropdown, the panel grid is getting called.
    First time the panel grid getmethod is getting called. But when i change the value of drop down, panel grid get method is not getting called and its not rendering.
    This is the code:
    JSF:
    <h:panelGroup>
    <t:selectOneMenu id="selectProjectTypes" onchange="sbmitform();" immediate="true" valueChangeListener="#{ProjectController.projectTypeChanged}" value="#{ProjectController.project.selectProjectTypes}">
    <f:selectItem itemLabel="--------------------" itemValue="-1"/>               
    <f:selectItems value="#{ProjectController.projectTypesList}"/>                         
    </t:selectOneMenu>
    </h:panelGroup>
    <h:panelGrid columns="2" rendered="#{ProjectController.projects}" id="test" binding="#{ProjectController.defaultValues}" columnClasses="hunderadfifty"                                         cellpadding="5" />     
    Controller:
    public void projectTypeChanged(ValueChangeEvent event) throws AbortProcessingException,Exception {
              String nodeTypeId = null;
         String selectedValue = (String)event.getNewValue();
         getSessionCache().addValue("test", 0, "1");
         if(selectedValue.equalsIgnoreCase(nodeTypeId)){
         try
         // this.getDefaultValues().setRendered(true);
         // defaultValues=this.getDefaultValues();
         } catch (Exception e)
         e.printStackTrace();
         FacesContext.getCurrentInstance().renderResponse();
    Panel Grid Method
    public HtmlPanelGrid getDefaultValues() throws Exception {
         String devlues = (String)getSessionCache().getValue("test");
         Application app = FacesContext.getCurrentInstance().getApplication();
              labelList = nodeTypeFieldsService.getFixedFields(this.getRpUserData(), this.getAuthUser());
              HtmlPanelGrid panelGrid = (HtmlPanelGrid)app.createComponent(HtmlPanelGrid.COMPONENT_TYPE);
              for(int i = 0; i<labelList.size(); i++)
              HtmlOutputText heading = (HtmlOutputText)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
              HtmlPanelGroup panelGroup = (HtmlPanelGroup)app.createComponent(HtmlPanelGroup.COMPONENT_TYPE);
              HtmlInputText inputText = (HtmlInputText)app.createComponent(HtmlInputText.COMPONENT_TYPE);               
              String fieldHeading =((ProjectField)labelList.get(i)).getFieldHeading();
              int fieldLength = ((ProjectField)labelList.get(i)).getFieldLength();
              String fieldDescription = ((ProjectField)labelList.get(i)).getFieldDescription();
              String fieldType = ((ProjectField)labelList.get(i)).getFieldType();     
              inputText.setValueBinding("value", (ValueBinding) app.createValueBinding("#{ProjectController.newProj}"));
              if(fieldType.equalsIgnoreCase("3"))
                   heading.setValue(fieldHeading);
                   heading.setTitle(fieldDescription);
                   inputText.setMaxlength(fieldLength);
                   inputText.setSize(fieldLength);     
                   UIRDDialog dialog = (UIRDDialog)app.createComponent(UIRDDialog.COMPONENT_TYPE);
                   dialog.setTitle("Object Type Dialog");
                   dialog.setHeight("370");
                   dialog.setWidth("350");
                   dialog.setUrl("searchObjectTypeDialog.jsf");                              
                   UIRDIconButton iconButton = (UIRDIconButton)app.createComponent(UIRDIconButton.COMPONENT_TYPE);
                   iconButton.setType("button");
                   iconButton.setTitle("Search for Object Types");
                   iconButton.setIcon("/image/icon/portalicon_search.gif");
                   iconButton.setActivateDialog("searchObjectTypeDialog");               
                   panelGroup.getChildren().add(inputText);          
                   panelGroup.getChildren().add(iconButton);
                   panelGroup.getChildren().add(dialog);
                   panelGrid.getChildren().add(panelGroup);
              }else
                   panelGroup.getChildren().add(inputText);
                   heading.setValue(fieldHeading);
                   inputText.setMaxlength(fieldLength);
                   inputText.setSize(fieldLength);
                   heading.setTitle(fieldDescription);
                   panelGrid.getChildren().add(panelGroup);
              panelGrid.getChildren().add(heading);          
              panelGrid.getChildren().add(panelGroup);
              HtmlCommandButton createButton = (HtmlCommandButton)app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
              createButton.setId("create");
              createButton.setTitle("Create");
              createButton.setValue("Skapa");          
              createButton.setAction(app.createMethodBinding("#{ProjectController.saveProject}", null));
              HtmlCommandButton backButton = (HtmlCommandButton)app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
              backButton.setId("back");
              backButton.setTitle("Cancel");
              backButton.setValue("Avbryt");
              backButton.setAction(app.createMethodBinding("#{ProjectController.cancel}", null));     
              panelGrid.getChildren().add(createButton);
              panelGrid.getChildren().add(backButton);
              return panelGrid;
         /* } else {
              return null;
    }

    Hi,
    I'm having the exact same problem, and it's freaking me out!!! The setGridPanel method is always called but not the getGridPanel. This one is only called the first time the page is rendered, and when I change a drodpdownlist it never gets the gridPanel again! I'm using an HtmlPanelGrid. Anyone can help please?
    Thanks in advance,
    Raquel

  • Multilevel dynamic approval process using precondition loop block

    HI,
    I am trying to create a multivel dynamic approval process using a precondition loop block. The structure of my process is,
    Process->1)Sequential Block containing requestor action->processor of requestor action is initiator
                2)Precondition Loop Block containing
                        i)Loop Decision action containing a business logic callable object
                        ii)Loop Body Block containing Approver action-processor of approver action is filled from context parameter
    The loop decision action implements the logic for loop decision. Can anybody help me by suggesting the proper target of each of these actions, and the processor for loop decision action?
    Whenever I am initiating the process, the requestor action is getting executed,  On completion of this action I am getting a message "No activity is currently selected", that is, it is not entering the precondition loop block.
    Please guide me with the proper process flow of this and how to adjust the roles and parameters
    Thanks,
    Swaralipi

    Posted another thread on the same issue

  • Dynamic approval with loop

    Hello All,
    I am developing a dynamic approval process and here is my requirement.
    We are maintaining the agents in the custom table.I am using multiline element to send the user decision tasks to all users in the table. if user approves then workflow continues..if user rejects then i need to send the user decision task to all agents in the table or just to the rejected user for reapproval..
    for this..
    what i have done so far is..
    1. i have called a system method to pull the agents from custom table.
    2. i have used the multiline element to the user decision step..and work items are going out for approvals to all agents in the table under this task which is parallel.
    3.if approved..continue workflow
    My question is  if user 1 rejects the item can i do another user decision step which is sending the approval to all or just to the rejected user in the rejection path?
    again if user2 rejects i need to follow the same..as it is dynamic am not sure how to achieve this flow..
    and it continues until all approved..am not sure how to pursue this..please help..
    Thanks in advance..

    Dear Suresh,
    This means if rejected-- need to send it to all or just to the rejected user depending upon initiator decision..i believe we can add another option in second user decison as to send only to rejected user along with resubmit..i will try this option..
    Yes you are right.. Provide 3 buttons to initiator like 1)resubmit to all 2) resubmit to rejector 3) exit
    Have a multiline container element with name say approver. If initiator clicks the resubmit to all button in user decision then use the multiline container approver (which has all approvers populated by you). If he selects resubmit to rejector the pass the agent (who rejected the workitem in previous step) via binding for that step.
    Remaining logic remains the same as mentioned by Sanju.
    Regards,
    Bharath

  • Dynamic Approval

    How can we model dynamic approval in Oracle BPM 11g, such that a task is approved by n number of participants, where n is determined at run time.
    Any help would be highly appreciated.
    Thanks,

    I made a quick test and here's what I got.
    Before the HumanTask, generate a comma separated list of the required approvers (in your examples it would generate "A,B" and "A,B,C,D") and then pass that list as an input to the human task.
    Then on the Participant configuration choose
    - Type: Serial
    - Build a list of participants using: Names and expressions
    - Specify attributes using: Value-based
    And in the participants list use a single line with: User, By Expression, the payload variable containing the user list (something like /task:task/task:payload/task:usersList).
    Expand the Advanced section below the participants list and select the "Specify skip rule" checkbox and put /task:task/task:systemAttributes/task:outcome = "REJECT" in the textbox that appears. This makes the approval terminate as soon as a user sets the outcome to REJECT, otherwise it would still go through all the remaining approvers.
    With this you should get the desired functionality. You'll still need some java to generate the user list (or a database stored procedure, or a web service, or...), but it's, I hope, minimal enough.
    There's (I think) an alternative, in which you don't need to generate the user list beforehand. In the participant configuration, if you chose Specify attributes using: Rule-based, instead of value-based, you can use a business rule to generate the list of users. But I don't have much experience with business rules, so I can't help you there. But the rest should be the same
    Tell me if there's anything that's not clear and I'll try to clarify it.
    Regards,
    Diogo Henriques

  • ManagedBean getter Method called multiple times

    Hi,
    i have notice that the get method is called so often if i initialize a List.
    Maybe you see a solution?
    ManagedBean
    @ManagedBean(name = "videoBean")
    @SessionScoped
    public class VideoManagedBean extends GeneralManagedBean {
            @PostConstruct
            private void init() {
                this.newVideos = videoSessionBean.getNewVideos();
            public List<VideoEntity> getNewVideos() {
                System.out.println("---------getNewVideos--------------");
                return newVideos;
    }Xhtml
        <html xmlns="http://www.w3.org/1999/xhtml"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:p="http://primefaces.prime.com.tr/ui">
            <h:head>
                <meta http-equiv="content-type"
                      content="application/xhtml+xml;charset=utf-8" />
            </h:head>
            <h:body>
                <ui:composition template="/WEB-INF/template/mainTemplate.xhtml">
                    <ui:define name="content">
                        <h:form>
                            <p:dataTable var="vid" dynamic="true" value="#{videoBean.newVideos}">
                            </p:dataTable>
                        </h:form>
                    </ui:define>
                </ui:composition>
            </h:body>
        </html>The logfile shows:
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------
        INFO: ---------getNewVideos--------------Is that normal? I never read about this problem

    Whoa there, jumping to conclusions calling this a problem right from the start.
    Yes its expected behavior. The getter can get called from several JSF lifecycle phases. I suggest you study what they are, otherwise you'll run into plenty more of these head scratching moments.

  • Get method of HtmlPanelGrid is not getting called

    Hi,
    I'm creating components dynamically.
    I have a dropdown. Based on the selection of dropdown, the corresponding values are displayed and the get method of HtmlPanelGrid should be called.
    First time the panel grid getmethod is getting called. But when i change the value of drop down, panel grid get method is not getting called and its not rendering.
    This is the code:
    JSF:
    Drop Down
    <h:panelGroup>
    <t:selectOneMenu id="selectProjectTypes" onchange="sbmitform();" immediate="true" valueChangeListener="#{ProjectController.projectTypeChanged}" value="#{ProjectController.project.selectProjectTypes}">
    <f:selectItem itemLabel="--------------------" itemValue="-1"/>
    <f:selectItems value="#{ProjectController.projectTypesList}"/>
    </t:selectOneMenu>
    </h:panelGroup>
    Panel Grid
    <h:panelGrid columns="2" rendered="#{ProjectController.projects}" id="test" binding="#{ProjectController.defaultValues}" columnClasses="hunderadfifty" cellpadding="5" />
    Controller:
    public void projectTypeChanged(ValueChangeEvent event) throws AbortProcessingException,Exception {
    String nodeTypeId = null;
    String selectedValue = (String)event.getNewValue();
    getSessionCache().addValue("test", 0, "1");
    if(selectedValue.equalsIgnoreCase(selectedValue)){
    try
    // this.getDefaultValues().setRendered(true);
    // defaultValues=this.getDefaultValues();
    } catch (Exception e)
    e.printStackTrace();
    FacesContext.getCurrentInstance().renderResponse();
    Panel Grid Method
    *public HtmlPanelGrid getDefaultValues() throws Exception {*
    String devlues = (String)getSessionCache().getValue("test");
    Application app = FacesContext.getCurrentInstance().getApplication();
    labelList = nodeTypeFieldsService.getFixedFields(this.getRpUserData(), this.getAuthUser());
    HtmlPanelGrid panelGrid = (HtmlPanelGrid)app.createComponent(HtmlPanelGrid.COMPONENT_TYPE);
    for(int i = 0; i<labelList.size(); i++)
    HtmlOutputText heading = (HtmlOutputText)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    HtmlPanelGroup panelGroup = (HtmlPanelGroup)app.createComponent(HtmlPanelGroup.COMPONENT_TYPE);
    HtmlInputText inputText = (HtmlInputText)app.createComponent(HtmlInputText.COMPONENT_TYPE);
    String fieldHeading =((ProjectField)labelList.get(i)).getFieldHeading();
    int fieldLength = ((ProjectField)labelList.get(i)).getFieldLength();
    String fieldDescription = ((ProjectField)labelList.get(i)).getFieldDescription();
    String fieldType = ((ProjectField)labelList.get(i)).getFieldType();
    inputText.setValueBinding("value", (ValueBinding) app.createValueBinding("#{ProjectController.newProj}"));
    if(fieldType.equalsIgnoreCase("3"))
    heading.setValue(fieldHeading);
    heading.setTitle(fieldDescription);
    inputText.setMaxlength(fieldLength);
    inputText.setSize(fieldLength);
    UIRDDialog dialog = (UIRDDialog)app.createComponent(UIRDDialog.COMPONENT_TYPE);
    dialog.setTitle("Object Type Dialog");
    dialog.setHeight("370");
    dialog.setWidth("350");
    dialog.setUrl("searchObjectTypeDialog.jsf");
    UIRDIconButton iconButton = (UIRDIconButton)app.createComponent(UIRDIconButton.COMPONENT_TYPE);
    iconButton.setType("button");
    iconButton.setTitle("Search for Object Types");
    iconButton.setIcon("/image/icon/portalicon_search.gif");
    iconButton.setActivateDialog("searchObjectTypeDialog");
    panelGroup.getChildren().add(inputText);
    panelGroup.getChildren().add(iconButton);
    panelGroup.getChildren().add(dialog);
    panelGrid.getChildren().add(panelGroup);
    }else
    panelGroup.getChildren().add(inputText);
    heading.setValue(fieldHeading);
    inputText.setMaxlength(fieldLength);
    inputText.setSize(fieldLength);
    heading.setTitle(fieldDescription);
    panelGrid.getChildren().add(panelGroup);
    panelGrid.getChildren().add(heading);
    panelGrid.getChildren().add(panelGroup);
    HtmlCommandButton createButton = (HtmlCommandButton)app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
    createButton.setId("create");
    createButton.setTitle("Create");
    createButton.setValue("Skapa");
    createButton.setAction(app.createMethodBinding("#{ProjectController.saveProject}", null));
    HtmlCommandButton backButton = (HtmlCommandButton)app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
    backButton.setId("back");
    backButton.setTitle("Cancel");
    backButton.setValue("Avbryt");
    backButton.setAction(app.createMethodBinding("#{ProjectController.cancel}", null));
    panelGrid.getChildren().add(createButton);
    panelGrid.getChildren().add(backButton);
    return panelGrid;
    /* } else {
    return null;
    kindly help me out.
    regards
    venkatraman.P

    Hi,
    I'm having the exact same problem, and it's freaking me out!!! The setGridPanel method is always called but not the getGridPanel. This one is only called the first time the page is rendered, and when I change a drodpdownlist it never gets the gridPanel again! I'm using an HtmlPanelGrid. Anyone can help please?
    Thanks in advance,
    Raquel

  • Need HELP with error!! Property has no getter method

    I am trying to display data info for each user by getting the user value which is already in the session but I keep getting this error.
    Exception: Error looking up property "info" in object type "test.info". Cause: Property 'info' has no getter method
    //info.java
    public class info {
    public info(){
      public Collection getinfo(String user) throws SQLException {
                    ArrayList list = new ArrayList();        
    String sql = "SELECT ADDR where USER= ?";
                    try {//connect statement
    pstmt = con.prepareStatement(sql);
    pstmt.setString(1, user);
    rs = pstmt.executeQuery();
    while(rs.next()) {
                    Infobean tsel = new Infobean(rs.getString("ADDR"));
    list.add(tsel);
                            return list;
    //Infobean.java
    public class Infobean
    private String ADDR;
    private String user;
    public Infobean(){
    public Infobean(String ADDR, String user){
    setAddr(Infobean);
    setUser(user);
    public String getAddr(){
    return ADDR;
    public String getUser(){
    return user;
    public void setAddr(String ADDR){
    this.ADDR = ADDR;
    public void setUser(String user){
    this.user= user;
    //.jsp file
    <jsp:useBean id="test" class="info" scope="request"/>
    <display:table name="test.info"/>

    sorry =\
    "package test;
    public class info();".
    test is the package.

Maybe you are looking for

  • TV series and aspect ratio

    Thought would watch andromeda and found the picture to be in 4:3 format, yet on Netflix this is full widescreen. would be nice to why bt vision is supplying in 4:3 format only

  • Wildcard in Customization Parameters

    What is the practice for using wildcards in customization parameters? Do you hande this in the SQL? where (A.emp_id = :emp_id or :emp_id = '%') Also, I would like to make some paramaters in the customization form mandatory as well. Is this possible?

  • AppleTalk OS9-OSX broken in 10.4.9?

    Hello... I have a PowerBook G4 running 9.2.2, connected on a local ethernet network to a MacMini that, until yesterday, was running 10.4.8. Appletalk connections between the two worked seamlessly. Yesterday, the MacMini was updated to 10.4.9. Since t

  • Itunes 11.0.1 (12) quits unexpectedly

    Hi there, I found a previous discussion regarding itunes quitting unexpectedly, but it said to wait for itunes 10.6.1 (I think).  I have itunes 11.0.1 and am having the same problem.  I am unable to use the command + 1 function to follow the instruct

  • Installation stuck at 540 MB

    I've been trying to download Mountain Lion since the day it came out. But it keeps getting stuck at 540.73 MB. And after a while i just says error. I've tried to restart my macbook. But nothing works. I have more then enough free space. My macbook is