RichFaces' Ajax4JSF in NetBeans 6 not Rendering components

Hi,
My environment is Netbeans 6 visual web JSF app with RichFaces 3.1.3. I am unable to get any component to rerender upon completion of an ajax request. Is there something wrong in the logic i am following or is it a configuration issue or is it a bug?
The event gets detected correctly and the backing bean function gets called and executes successfully. However, the components are not reRendered. Also, when i refresh, the textField1 displays its original data and not the data i set it to in the backing bean function.
Any help in this regard will be greatly appreciated. Thank you.
The JSP code:
<jsp:root version="2.1" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
          xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:rich="http://richfaces.org/rich" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page binding="#{AboutUs.page1}" id="page1">
            <webuijsf:html binding="#{AboutUs.html1}" id="html1">
                <webuijsf:head binding="#{AboutUs.head1}" id="head1">
                    <webuijsf:link binding="#{AboutUs.link1}" id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body binding="#{AboutUs.body1}" id="body1" style="-rave-layout: grid">
                    <webuijsf:form binding="#{AboutUs.form1}" id="form1">
                        <webuijsf:image binding="#{AboutUs.image1}" height="2" id="image1"
                                        style="background-repeat: repeat-x; left: 6px; top: 493px; position: absolute" url="/resources/pic/blue_lt_gradient.gif" width="948"/>
                        <webuijsf:textField binding="#{AboutUs.textField1}" id="textField1"
                                            style="position: absolute; left: 174px; top: 72px; width: 228px; height: 18px" >
                            </webuijsf:textField>
                        <webuijsf:textField binding="#{AboutUs.textField2}" id="textField2" style="position: absolute;left: 174px; top: 132px; width: 132px; height: 24px">
                            <a4j:support action="#{AboutUs.textField1_action}" event="onChange" reRender="textField1"/>
                        </webuijsf:textField>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
    </jsp:root>
The backing bean function that i am using:
public String textField1_action() {
        this.getTextField1().setText("Hello World!");
        return null;
}

Webuijsf code is being transformed into javascript on client side. The problem is that standard ajax call DOES NOT execute javascript.
Try using prototype.js instead. It has Ajax.Update function with parameter evalScripts:true, which you can use to execute javascript on
client side

Similar Messages

  • ADF components not Rendering on ie9 Browser

    This is a strange behavior , ADF components like ( table , DVT graph ) are not rendering on the ie9 browser ( keep fetching ...) . However , works fine with ie8,Google chrome, firefox .
    Believe some setting is required in my client brower ie9.
    Any idea why not on ie9 ?
    We are on ADF jdev 11.1.1.3.0
    Browser flash plug version : 11.5.502.135
    OS : Windows 7 . 32 bit
    Browser : IE 9

    I faced a similar problem. I added the following line in the jsp page
    <f:view>
    <meta content="IE=8" http-equiv="X-UA-Compatible"></meta>
    <af:document id="d1" title="something">This will make the IE9 work as IE8. And will also not disturb any behavior of other browsers.
    Thanks and Regards,
    Tarun Agrawal

  • My Components are not rendering in Application

    My ocmponents are not getting rendered on screen....
    But in Design I can see the...
    SWf is not rendered:(

    More information is needed - are you saying the entire application isn't rendering when you're running in a browser?  Does the Flash player display appear at all? (Right click to see the context menu available to verify.) Is this after you deploy the application or just when you are starting the application directly from Flex Builder?  Did you alter or remove any files in your project's html-template folder?
    If you're talking about after you've deployed to a server, and you're not even getting a Flash player view in your browser (when you right click it would say 'About Adobe Flash Player'.. at the bottom of the menu), something is probably wrong with your html template.  It could also be something wrong with your build process (are you using Ant?)

  • Page is not rendering as per requirement request

    Hi All,
    Basically Here is the scenario.
    Based on selectoin of particular service item from combo box(dropdown list), We are creating the JSF controls dynamically on new page for further process.
    We are maintaining the controls information in database that need to be created dynamically and rendered for each service.
    And I am able to create the controls dynamically and able to place them on page perfectly.
    Until here everything looks ok for me.
    But main problem I have identified is when I go for new request, I am getting the same old page when I select the other service.
    Initially I though this could be a problem of caching and I have placed meta info in order to expire the page. But that was no use.
    So I logged all the data that is coming from database and logged the information where I have created the controls dynamically..
    What I have identified is I am getting the right data on paricular service selection and even I am able to see that methods execution is correct. I was stunned and not able to understand why the JSF is not able to show the controls.
    So I searched the JavaDoc for solution. I though I could use FacesContext.release() method. But that does not help me. Even I tried to clear the parent objects using gridpanel1.getChildren().clear(). Even that does not supported me :(
    In order to understand my problem, here I am pating the code.
    Please help me why the hell my page is not rendering
    Below is code in constructor
    javax.faces.context.ExternalContext ec = context.getExternalContext();
                javax.servlet.http.HttpServletRequest request=(javax.servlet.http.HttpServletRequest)ec.getRequest();
                String service=request.getParameter("form1:cmbServices");
                int serviceid=-1;
                if(service!=null) {
                    serviceid=Integer.parseInt(service);
                gridPanel1.getChildren().clear();
                controls =getControls(serviceid);
                HtmlControl[] controlArray =controls.getHtmlControls();
                //log(controlArray.length+" Length");
                for (int i =0;i<controlArray.length;i++) {
                    HtmlControl control =controlArray;
    //log(control+" Control");
    //log(controlArray.length+" Length");
    if (control.isRadio()) {
    addRadio(control);
    //log("Entered here in adding radio");
    else if (control.isCheckBox()) {
    addCheckBox(control);
    //log("Entered here in adding checkbox");
    else if (control.isTextBox()) {
    addTextBox(control);
    //log("Entered here in adding textbox");
    here is the code for dynamic creation of controls
    private void addRadio(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlSelectOneRadio radio = new HtmlSelectOneRadio();
            radio.setBorder(0);
            radio.setLayout("pageDirection");
            //radio.setId("Radio_"+control.getId());
            radio.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            Radio objRadio =(Radio)control;
            //  vectDefaultSelectItemsArray
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<objRadio.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objRadio.getValues().get(i)+"",""+objRadio.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            radio.setStyleClass("bodyText");
            radio.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(radio);
            parent.getChildren().add(gridPanel);
        private void addCheckBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            outputText.setStyleClass("bodyText");
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            HtmlSelectManyCheckbox checkBox = new HtmlSelectManyCheckbox();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            //checkBox.setId("CheckBox_"+control.getId());
            checkBox.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            CheckBox objcheckBox =(CheckBox)control;
            //  arrays[0]=new DefaultSelectItemsArray();
            //arrays[0].clear();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            //  array.clear();
            for (int i =0;i<objcheckBox.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
                //     array.add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            checkBox.setStyleClass("bodyText");
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addTextBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlInputText textField = new HtmlInputText();
            //  textField.setId("textField_"+control.getId());
            textField.setId(control.getName()+"__"+control.getId());
            HtmlOutputText outputText1 = new HtmlOutputText();
            outputText1.setValue(" ");
            outputText1.setStyleClass("bodyText");
            textField.setStyleClass("frmObjects");
            gridPanel.setColumns(3);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(outputText1);
            gridPanel.getChildren().add(textField);
            parent.getChildren().add(gridPanel);
    here is my after render response method
    protected void afterRenderResponse() {
            //job_selection_templateRowSet.close();
            jiya_html_controlRowSet.close();
            FacesContext.getCurrentInstance().release();
    here is my getValueBinding method
    private ValueBinding getValueBinding(String expression) {
            return     FacesContext.getCurrentInstance().getApplication().createValueBinding(expression);
        }Thanks
    Sudhakar.

    Hi,
    You can try the following to debug and provide us more details.
    1. I am assuming you are trying to navigate by using a commandLink/Command Button ? If so, is the action handler for the command getting called ?
    2. Do you have input components in the page with Validators/converters attached to them ? If so, you may not watch for validation/conversion errors. If there are errors, the same page will be redisplayed. In that case you would need to associate message component to get more details on what went wrong.
    3. Have you set up the necessary navigation rules to navigate to the right page ?
    4. When you are adding components programatically, its better to assign explicit id's to your components, to avoid any unexpected behavior.
    Hope this helps.
    Regards
    -Jayashri

  • PanelGrid with binding attribute not rendering when event on page fires

    I am having a similar issue with my components not being rendered from a dynamic binding attribute as described by this post:http://forum.java.sun.com/thread.jspa?threadID=671672 but for different reason. I have combed the forum and other sources for a week now, tried numerous variations of this based on suggestions I've read for rendering dynamic components and am unable to find the problem. I would appreciate guidance as I don't know what else to do and I imagine there is something basic about the JSF flow layout or component classes I am not doing correctly.
    From a high level, I have a page with two panel groups. The first contains a list of command links (like a menu) that have an actionlistener that populates a list of QueryVariable objects called filterCriteria in the backing bean based on the selection made and then calls a function to update components in the second panel. The second panelGroup contains a panelGrid with a binding attribute that constructs a dynamic set of input fields based on the content of the filterCriteria list. When I first naviagate to this page from another page, the fields are rendered properly. However, if I then select a commandLink from the menu, the panelGrid disappears and is not rendered.
    I've stepped through the code in a debugger and my actionlistener is called when I select a command link. However, the binding attribute method is not called at this time, so I added a direct call to it from the action listener. I know the actionlistener is working because I've verified it in the debugger and if I navigate away and come back to the page, then the binding method is called and the new selection is reflected in a rendered panelGrid. Why is it not rendering though when I first select the commandLink and the page is updated. Also, fyi, there is an action method for the commandlinks but it returns null;
    FWIW, I'm using MyFaces and Facelets in my application.
    Below is my code. This is inside a managed session bean:
    JSF Snippet:
    <h:panelGrid id="inputVarsTable" columns="3" binding="#{query.table}"/>
         public HtmlPanelGrid getTable() {
              if(table == null)
                   table = new HtmlPanelGrid();
              return constructSearchInputTable();               
         public void setTable(HtmlPanelGrid table) {
              this.table = table;
      // Updates table component to reflect filterCriteria
         public HtmlPanelGrid constructSearchInputTable()
              HtmlOutputLabel outLabel;
              HtmlOutputText outText;
              HtmlInputText  inText;
              HtmlMessage message;
              List<UIComponent> children;
              ValueBinding vb;
              FacesContext facesContext = FacesContext.getCurrentInstance();
              UIViewRoot uIViewRoot = facesContext.getViewRoot();
            Application application = facesContext.getApplication();
              children = table.getChildren();
        children.clear();
              try {
                   for (int i = 0; i < getFilterCriteria().size(); i++) {
                        QueryVariable var = getFilterCriteria().get(i);
                        String id = "var" + i;
                        //<h:outputLabel for="#{var.name}" styleClass="label">
                        outLabel = new HtmlOutputLabel();               
                        outLabel.setFor(id);
                        outLabel.setStyleClass("label");
                        //  <h:outputText value="#{var.name}" />
                        outText = new HtmlOutputText();
                        outText.setValue(var.getName());
                        outText.setParent(outLabel);
                        outLabel.getChildren().add(outText);
                        outLabel.setParent(table);
                        children.add(outLabel);
                        //<h:inputText id="#{var.name}" value="#{var.value}" required="true" />
                        inText = new HtmlInputText();
                        inText.setId(id);
                        String bind = "#{query.filterValues['" + var.getName() + "']}";
                        inText.setValueBinding("value", application.createValueBinding(bind));
                        if(var.getDefaultValue() == null)
                             inText.setRequired(true);
                        inText.setParent(table);
                        children.add(inText);
                        //<h:message for="#{var.name}" styleClass="errorText"/>
                        message = new HtmlMessage();
                        message.setFor(id);
                        message.setStyleClass("errorText");
                        message.setParent(table);
                        children.add(message);     
              } catch (Exception e) {
                   log.error(e);
              return table;
      // Command Link Menu ActionListener
         public void structuredQuerySelection(ActionEvent e) {
              queryType = QueryType.StructuredQuery;
              UICommand cmd = (UICommand) e.getSource();
              filterSelection = (String) cmd.getValue();
              Map<String, SearchRequestCtx> queries = pdp.getGenericMetadata().savedQueries;
              SearchRequestCtx ctx = queries.get(filterSelection);
              filterCriteria = new ArrayList<QueryVariable>();
              filterCriteria.addAll(ctx.getVariables());
              constructSearchInputTable();
         // Command Link Menu Action
         public String selectStructuredQuery()
              return null;
         }BTW, this is my first post and I don't really know how that Duke Dollar thing works but I'm happy to offer some to anyone that can solve this issue for me.
    Thanks,
    Ken

    Glad to hear I am not the only one struggling with this type of issue.
    I tried your suggestion but it caused a NoSuchElementException when the page tried to render. Stepping through the code, the init function is always called after my panelGrid is constructed. I even commented out the logic to clear the children and confirmed that in the constructed page, the outputText component that binds to init is the first element on the page - right after the opening body tag. Maybe, JSF doesn't necessarily construct the page in top to bottom order? Also, the exception makes me think that this gets called too late in the lifecycle to work. Were you able to get this to work?
    java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:427)
         at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:515)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:445)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)Ken

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Command links are not rendering properly in the toolbar facet of panel collection

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Customization - Additional column inserted in Inbox - value not rendered

    Hello,
       I have a requirement for customizing the inbox and populating the new inbox column with additional value. I made coding updates and everything looks good but the inbox does not render the new value at all. I made these updates and overrides.
    Added the column name and value in \apps\cq\workflow\components\inbox\list\json.jsp . When I go to http://localhost:4502/libs/cq/workflow/content/inbox/list.json?_dc=1358787785033&start=0&l imit=40, I am able to see the addition variable and value added and displayed in list.json. For e.g. view of list.json
               "payloadPath": "/content/dam/geometrixx-outdoors/articles/a-simple-plan.jpg",
               "payloadPath_xss": "/content/dam/geometrixx-outdoors/articles/a-simple-plan.jpg",
               "payloadSummary": {
            "lifestage": "Authored",
               "payloadTitle": "a-simple-plan.jpg",
               "payloadType": "dam:Asset",
       2.  Override and updated \apps\cq\workflow\extensions\inbox\cols. Added a new column, lifestage.js. Code in that js file is
        "header":CQ.I18n.getMessage("LifecycleStage"),
        dataIndex:"lifestage",
        ranking:30
        3. The inbox/list.json shows the value lifestage correctly. But still it doesnot populate 'lifestage' value in the inbox column. If I replace the dataIndex:"lifestage" with dataIndex:"currentassignee" or any other thing, the Lifestage column in Inbox is populated with the "CurrentAssignee".
    Why is the lifestage value though visible through list.json not visible in Lifestage column? What else needs to be additionally done?
    Thanks,

    Sham,
         I  followed exactly all steps like you mentioned. The value was not rendered. I put the alert messages. Please see the code below.
    As lifestage is not subpart of payloadSummary, tried both record.get("lifestage") and (record.get("payloadSummary").lifestage but still both alerts shows undefined.I see alerts for 'Inside renderlifestage' but the next alert shows 'undefined'.
      renderLifestage: function(value, p, record) {
                alert('Inside renderlifestage');
                alert(record.get("payloadSummary").lifestage);
                alert(record.get("lifestage"));
                return lifestageTpl.apply({
                   "lifestage": record.get("payloadSummary").lifestage
    Here is the output from inbox/list.json
          "item": "/etc/workflow/instances/2013-01-22/model_360104180212070/workItems/node4_etc_workflow_in stances_2013-01-22_model_360104180212070",
          "title": "Authorship Workflow",
          "description": "Select author for the authorship workflow.",
          "dialog": "/apps/lexmark/dialog/authorshipDueDateDialog",
          "participant": "",
          "currentAssignee": "Administrator",
          "startTime": 1358880950665,
          "metaData": {
            "workItem": {
              "historyEntryPath": "/etc/workflow/instances/2013-01-22/model_360104180212070/history/1358880950664"
            "instance": {
              "currentJobs": "",
              "currentJobs_xss": "",
              "workflowTitle": "authorship_workflow_test",
              "workflowTitle_xss": "authorship_workflow_test",
              "startComment": "authorship_workflow_test",
              "startComment_xss": "authorship_workflow_test"
          "payload": "/damadmin.html#/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payload_xss": "/damadmin.html#/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payloadPath": "/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payloadPath_xss": "/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payloadSummary": {
            "icon": "/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg/jcr:content/rend itions/cq5dam.thumbnail.48.48.png"
          "lifestage": "Authored",
          "payloadTitle": "downhill-ski-conditioning.jpg",
          "payloadType": "dam:Asset",
          "lastModifiedBy": "admin",
          "lastModified": 1323947520464,
          "lockedBy": "",
          "lockedBy": "",
          "timeUntilValid": 0,
          "onTime": 0,
          "offTime": 0,
          "monthlyHits": 0,
          "replication": {
            "numQueued": 0,
            "publishedBy": null
          "scheduledTasks": [
          "inWorkflow": true,
          "workflows": [{
              "model": "Authorship_Workflow",
              "started": 1358880950439,
              "startedBy": "admin",
              "suspended": false,
              "workItems": [{
                  "item": "Authorship Workflow",
                  "assignee": "admin"
          "scheduledTasks": [
          "comment": "authorship_workflow_test",
          "workflowTitle": "authorship_workflow_test",

  • t:tree component is not rendering tree structure for my page

    Dear dudes,
    I want to create a simple tree structure in my jsf page backed by a backing bean.
    But my jsf page is getting executed but my tree is not getting displayed.
    my jsf page:<ui:composition xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:s="http://jboss.com/products/seam/taglib"
         xmlns:rich="http://richfaces.ajax4jsf.org/rich"
         xmlns:t="http://myfaces.apache.org/tomahawk"
         xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
    <f:view>
         <html>
              <body>
                   <h:form>
                        <t:tree id="tree" value="#{mytreeBean.myTree}" styleClass="tree"
                             nodeClass="treenode" selectedNodeClass="treenodeSelected"
                             >
                        </t:tree>
                   </h:form>
              </body>
         </html>
    </f:view>
    </ui:composition>Mybacking bean:
    package org.test.tree;
    import java.util.Iterator;
    import java.util.List;
    import org.apache.myfaces.custom.tree.DefaultMutableTreeNode;
    import org.apache.myfaces.custom.tree.model.DefaultTreeModel;
    import com.srit.framework.web.BasePage;
    import com.srit.healthcare.common.lookupentity.repository.ILookupRepository;
    import com.srit.healthcare.common.tree.domain.RcareTree;
    public class MyTreebean {
         private DefaultTreeModel myTree;
         public DefaultTreeModel getMyTree() {
              return myTree=getTreeModel();
         public void setMyTree(DefaultTreeModel myTree) {
              this.myTree = myTree;
         /*public MyTreebean() {
              DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
              DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
              root.insert(a);
              DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
              root.insert(b);
              DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
              root.insert(c);
              DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
              a.insert(node);
              node = new DefaultMutableTreeNode("a2 ");
              a.insert(node);
              node = new DefaultMutableTreeNode("b ");
              b.insert(node);
              a = node;
              node = new DefaultMutableTreeNode("x1");
              a.insert(node);
              node = new DefaultMutableTreeNode("x2");
              a.insert(node);
              myTree = new DefaultTreeModel(root);
         public DefaultTreeModel getTreeModel() {
              DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
              DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
              root.insert(a);
              DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
              root.insert(b);
              DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
              root.insert(c);
              DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
              a.insert(node);
              node = new DefaultMutableTreeNode("a2 ");
              a.insert(node);
              node = new DefaultMutableTreeNode("b ");
              b.insert(node);
              a = node;
              node = new DefaultMutableTreeNode("x1");
              a.insert(node);
              node = new DefaultMutableTreeNode("x2");
              a.insert(node);
              return myTree = new DefaultTreeModel(root);
    }Also i've configured my tomahawk-taglib file in my web.xml .
    My backing bean is configured in my faces-config.xml
    But i'm not able to get my tree structure in my page .
    Any help would be appreciated.
    Regards

    Dear akash,
    yes i'm seeing the jsf tags <t:tree>
    But when i modify my jsf page , in my configuration files i'm getting the following errors:
    In web.xml
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
    </web-app>
    error message:  cannot find the declaration of element web-apps
    error message: failed to read schema document http://java.sun.com/xml/ns/j2ee             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd  because 1) couldnot find the document 2) the document could not be read 3) the root element of the document is not <xsd:schema>In another configuration file:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
                http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
    Error: cannot find the declaration of element 'beans'I'm a novice to JSF technology and plz guide me properly.

  • H:panelGrid width or style attribute not rendering

    Hi
    I am currently experiencing a weird problem. I use a panel grid to align inputs in a form.
    when I try to set the width of the panel grid using the width or style attribute, the HTML equivalent is not rendered when displaying the web page.
    Here is what I try to do:
    <h:panelGrid columns="2" styleClass="patient-problem-form" style="width: 300px;">
    No style attribute is rendered on the table tag...
    Anyone knows what could case this issue?
    I am using
    facelets - 1.1.14
    seam - 2.0.1.CR1
    richfaces - 3.1.3.GA
    just updated glassfish 2-b58c with JSF 1.07 but did not make any difference
    Thanks.

    This will occur if you're using JSF impl newer than 1.2_05, but are using JSF api of 1.2_05 or older. Your classpath may be a mess with duplicated JAR's of different versions. Clean up your classpath. It may be good to know that Glassfish ships with javaee.jar which also contains JSF API. You need to upgrade it as well, you can get a Glassfish updater tool or read the instruactions at Mojarra homepage.

  • Page is not rendered after first request

    Hi all,
    i have two page with names page1.jsp and page2.jsp. i open page2.jsp as pop up window by clicking a link on page1.jsp
    in _init() of page2.jsp,  i am getting some information from database and then i am able to create dynamic components according to information provided by database.
    for example, i create 3 textFields (their Id's are myTextField1, myTextField2, myTextField3) as result of execution of sql querry.
    Until here everything is ok for me, components looks rendered.
    i closed the page2 and then reopen it as pop up window again. i tryint to create another three textFields (their Id's are myTextField4, myTextField5, myTextField6). it looks like created at runtime, however i am getting the same old page.
    Please help me why my page is not rendering after reopening.
    Regards,

    any idea?
    it's similar problem without solution at following link
    http://swforum.sun.com/jive/thread.jspa?threadID=54347&messageID=208120#208120
    Any help apprechiated

  • Child component values submitted when parent component not rendered

    This pertains to the standard JSF components, but may carry over into Sun JSC.
    I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
    Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
    To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
    Is there a bug here?

    This pertains to the standard JSF components, but may carry over into Sun JSC.
    I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
    Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
    To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
    Is there a bug here?

  • Graph not rendering at refresh

    Hi everyone,
    I have a problem with a graph (a pie graph) I created with datacontrols: When I load a page, I'm able to see it, but when I change of page and come back, it doesn't appear. The usual message "Fetching data..." appears like always, but the graph is not displayed. This problem is really strange because it is always okay on the first load. I have checked the visibility attributes, but I didn't find anything. When I reload the page (F5) on the page when the data is displayed correctly, it's okay, but on page change, even if I reload with (F5), it is not rendering the pie graph. The other components render correctly.

    Hi Navaneetha,
    there is my code for the pie:
    <af:panelAccordion id="pa1" styleClass="AFStretchWidth">
    <af:showDetailItem text="showDetailItem 1" id="sdi2">
    <dvt:pieGraph id="pieGraph1"
    value="#{bindings.MomEmployeeView1.graphModel}"
    subType="PIE" threeDEffect="true"
    shortDesc="salary">
    <dvt:background>
    <dvt:specialEffects/>
    </dvt:background>
    <dvt:graphPieFrame/>
    <dvt:seriesSet>
    <dvt:series/>
    </dvt:seriesSet>
    <dvt:sliceLabel/>
    <dvt:pieLabel rendered="true"
    text="#{portalBundle.SALARY}"/>
    <dvt:legendArea/>
    </dvt:pieGraph>
    </af:showDetailItem>
    </af:panelAccordion>
    I tried to change the imageFormat to all the different formats, and it didn't work. It's always rendering correctly the first time, it's only when I change page and come back that it doesn't render.

  • Complex (Indian) scripts not rendering in latest build of Jdk8

    Complex (Indian) scripts not rendering in JavaFx Text components of latest build of JDK8.
    I am using early access build b89 .
    I remember it was working in earlier JDK8 release when the button components were not bigger.

    You should probably post this in the 'Oracle Connector for Outlook' discussion forum for an appropriate response:
    Connector for Outlook
    OTN

  • Af:forEach not rendering af:selectItem

    This may be a simple one, but for the life of me I cannot figure it out. I am trying to populate a selectOneChoice drop down list with a list of neighborhood values in an ArrayList. This ArrayList is being populated and utilized in other components successfully. The forEach in the jspx is not rendering any selectItem components at runtime.
    public class siteTasks {
      private List<Neighborhood> alNeighborhoods = new ArrayList<Neighborhood>();
      public void getNeighborhoods() {
        Neighborhood neighborhood;
        // read data from XML file
        // for each XML neighborhood node...
        neighborhood = new Neighborhood(nNeighborhood.getAttributes().getNamedItem("link").getNodeValue(),
                                                                 nNeighborhood.getAttributes().getNamedItem("name").getNodeValue());
       // ...end of for each java
        alNeighborhoods.add(neighborhood); // add to ArrayList
    public class Neighborhood {
      private String link, name;
      public Neighborhood() {}
      public Neighborhood(String link, String name) {
        this.link = link;
        this.name = name;
      // Getters & Setters...
    <af:selectOneChoice unselectedLabel="#{siteTasks.neighborhoodName}">
    <af:forEach items="#{siteTasks.alNeighborhoods}" var="neighborhood">
      <af:selectItem label="#{neighborhood.name}" value="#{neighborhood.link}"/>
    </af:forEach>
    </af:selectOneChoice>Edited by: MattC on Jun 13, 2011 12:51 PM

    hi,
    I have made a use case working for me:
    page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="title">
          <af:form id="f1">
            <af:selectOneChoice id="soc2" value="#{managedBean1.selectedValue}"
                                label="Choose one:">
              <af:forEach var="item" items="#{managedBean1.listOfMen}">
                <af:selectItem label="#{item.name}" value="#{item.age}" id="si4"/>
              </af:forEach>
            </af:selectOneChoice>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>pojo:
    package view.model;
    public class Man {
        private String name;
        private int age;
        public void setName(String name) {
            this.name = name;
        public String getName() {
            return name;
        public void setAge(int age) {
            this.age = age;
        public int getAge() {
            return age;
    }managed bean:
    package view.mb;
    import java.io.Serializable;
    import java.util.ArrayList;
    import view.model.Man;
    public class ManagedBean1 implements Serializable {
        private static final long serialVersionUID = 5484187296197519302L;
        private ArrayList<Man> listOfMen;
        private int selectedValue;
        public ManagedBean1() {
          Man man1 = new Man();
          Man man2 = new Man();
          listOfMen = new ArrayList<Man>();
          man1.setName("John aged 30");
          man1.setAge(30);
          man2.setName("Frank aged 40");
          man2.setAge(40);
          listOfMen.add(man1);
          listOfMen.add(man2);
          selectedValue = 30;
        public void setListOfMen(ArrayList<Man> listOfMen) {
            this.listOfMen = listOfMen;
        public ArrayList<Man> getListOfMen() {
            return listOfMen;
        public void setSelectedValue(int selectedValue) {
            this.selectedValue = selectedValue;
        public int getSelectedValue() {
            return selectedValue;
    }regards,
    Brano
    Edited by: Branislav Nemec on Jun 14, 2011 9:37 AM

Maybe you are looking for

  • Problem with burning CDs

    Ever since I've had my iMac, I've never been able to successfully burn a CD, whether it's and Audio CD, MP3, or any other CD. Whenever I try to burn, I get an error message that says: "The attempt to burn a disc failed. The device failed to calibrate

  • WCS 4.1.83.0 - WLC 4.1.171. inconsistencies

    Hello, we upgraded to the above systems in the following order: WCS to 4.1.83 WLC to 4.0.217 WLC to 4.1.171 (+bootloader update) Now we have the following issues: the Controllers pushed the updates towards the APs. We can confirm the 4.1.171 on the A

  • Can't edit or select items on tab control

    I have no idea what happened... was programming my app and now i can't select, edit or move anything that is placed with-in the tab control area of the program, I can't even select the tab control from the front panel. Any ideas? i really dont want t

  • Tomcat Error: "java.lang.OutOfMemoryError: Java heap space"

    Hi, We are on BOXI 3.1 SP3. We are using Tomcat as a application server. After certain time interval tomcat server hangs and users are unable to login to Infoview. When we checked in catalina.out file, we got error "java.lang.OutOfMemoryError: Java h

  • Build Button in Encore CS4 Greyed Out

    Hi working in a College using CS4 Suite Encore on a LAN.  When an administrator logs on the Build button is OK.  When student user logs on Build button greyed out and unavailable.  What needs adjusting to allow student users to make the Build button