Selected property of checkbox gives property not writable exception

hi,
i am facing problem with checkbox!!
in my page there is one table and in each row there is 12 checkbox
and i want to set checkbox selected as per database,and i successfully
completed it with below code <ui:tableRowGroup
binding="#{Setrights1.right_rowgroup}" id="right_rowgroup" rows="10"
                                sourceData="#{Setrights1.right_table_provider}" sourceVar="currentRow">
                                <ui:tableColumn headerText="Module" id="tableColumn1" sort="column1" width="167">
                                    <ui:staticText id="staticText1" text="#{currentRow.value['module_name']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn headerText="Rights" id="tableColumn2" sort="column2">
                                    <h:panelGrid columnClasses="" columns="4" id="rightspanel">
                                        <ui:checkbox
binding="#{Setrights1.create_self}" id="create_self"  label="Create
Self" selected="#{currentRow.value['create_self']==1}"
onClick="common_timeoutSubmitForm(this.form,
'right_table:right_rowgroup:tableColumn2:rightspanel:create_self');"
rendered="#{currentRow.value['create_self']!= ''}"
valueChangeListener="#{Setrights1.create_self_processValueChange}"/>
                               <ui:checkbox
binding="#{Setrights1.create_level}" id="create_level" immediate="true"
label="Create Level"  selected="#{currentRow.value['create_level']==1}"
onClick="common_timeoutSubmitForm(this.form,
'right_table:right_rowgroup:tableColumn2:rightspanel:create_level');"
rendered="#{currentRow.value['create_level']!= ''}"
valueChangeListener="#{Setrights1.create_level_processValueChange}"/>
                                        <ui:checkbox binding="#{Setrights1.add_self}" id="add_self" label="Add Self"
rendered="#{currentRow.value['add_self']!= ''}"
selected="#{currentRow.value['add_self']==1}"/></h:panelGrid>
                                </ui:tableColumn>
                            </ui:tableRowGroup>And in back bean code for dataprovider for populating table.
it works fine table populated with listbox selected value
but
when i select or deselect any checkbox it's processvalue change
executes and checkbox display error icon with property not writable
exception i want to set in array rowkeys and changes values of checkbox
for update operation.
help me i am really stuck at this point

The error means what it says: you are trying to read or write
a value to a non-existing destination.
Debug this to find out which line is erroring, and thus which
reference is null.
Tracy

Similar Messages

  • Disabling button gives property not found exception

    I am trying to disable a button in jsp using disabled property of the button. But I am getting property not found exception.
    Here is the code.
    In JSP
              <h:commandButton value="Previous"
                disabled="#{b_mainTest.previousDisabled}"/>In my backing bean
        public Boolean isPreviousDisabled(){
            if (queIdHash.get(testSession.getCurQueId()) == 1)
                return true;
            else
                return false;
        } I hope it is some silly mistake!

    What happens when you use boolean instead of Boolean as return type?

  • Property not Writable on type exception

    I found another post about this problem but the reply was
    Sorry, I have solved the problem.
    I am using JBoss 4.2.1.GA, Facelets and jboss-seam-CVS.2007-09-17_01-34-40. I am trying to do this.
         <h:form>
              <h:panelGrid id="lpg_01" binding="#{conceptManager.letterPanelGrid}"/>
         </h:form>
    Here is the Java code that is in the conceptManager Bean.
         private HtmlPanelGrid letterPanelGrid;
         public HtmlPanelGrid getLetterPanelGrid()
              System.out.println("************ getLetterPanelGrid");
              FacesContext facesContext = FacesContext.getCurrentInstance();
              Application application = facesContext.getApplication();
    //          letterPanelGrid = new HtmlPanelGrid();
              letterPanelGrid = (HtmlPanelGrid)application.createComponent
                                            (HtmlPanelGrid.COMPONENT_TYPE);
              letterPanelGrid.setId("lpg_01");
              List<UIComponent> children = letterPanelGrid.getChildren();
              letterPanelGrid.setColumns(1);
              HtmlCommandLink link = new HtmlCommandLink();
    //          String s = new String("#{conceptManager.testMethod}");
              String s = new String("homePage");
              MethodExpression me = application.getExpressionFactory().
                        createMethodExpression(facesContext.getELContext(), s,
                        null, new Class<?>[0]);
              link.setActionExpression( me );
              link.setId("linkId");
              HtmlOutputText output = new HtmlOutputText();
              output.setValue(new String("ClickMe"));
              link.getChildren().add(output);
              children.add(link);
              return letterPanelGrid;
    When the page is initially displayed everything seems to work fine. I looked at the html in the browser and it looks correct. The problem occurs when I click on the command link. During the Restore View Phase JSF tries to perform the binding again but gives the following problem. I got lost trying to follow the Variable Resolver code, too much abstractness. I haven't given up looking at it but I think I need some help with this.
    exception
    javax.servlet.ServletException: /AZIndexT1.xhtml @26,61 binding="#{conceptManager.letterPanelGrid}": Property 'letterPanelGrid' not writable on type javax.faces.component.html.HtmlPanelGrid
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
         org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
         org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
         org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    javax.el.PropertyNotFoundException: /AZIndexT1.xhtml @26,61 binding="#{conceptManager.letterPanelGrid}": Property 'letterPanelGrid' not writable on type javax.faces.component.html.HtmlPanelGrid
         com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
         com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
         com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
         com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
         com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
         org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
         org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
         org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
         org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
         org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)

    public void setLetterPanelGrid( HtmlPanelGrid grid )
              System.out.println("******************** setLetterPanelGrid");
              letterPanelGrid = grid;
    I did have this setter but failed to show it with my example. Hopefully this is all I need for the setter.
    I still received the same error;

  • Flex 4 ToggleButton selected property not working

    I am trying to set a FlexToggle buttons selected property by state value and it does not work. It only works when I click on the button.
    <buttons:MaxRestoreToggleButton id="resizeWindowButton" selected="false" selected.maximized="true"/>
    any ideas?

    Well I am creating a ToggleButtonSkin and yes, I am calling the invalidateSkinState(); but it still doesnt seem to be working.
    <?xml version="1.0" encoding="utf-8"?>
    <s:ToggleButton xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      toolTip="Maximize"
      width="20" height="20"
      skinClass="tat.skins.buttons.MaxRestoreToggleButtonSkin" change="{trace('hi');}"
      >
    <s:states>
    <s:State name="up" enterState="{invalidateSkinState();}"/>
    <s:State name="over" stateGroups="overStates" enterState="{invalidateSkinState();}"/>
    <s:State name="down" stateGroups="downStates" enterState="{invalidateSkinState();}"/>
    <s:State name="disabled" stateGroups="disabledStates"/>
    <s:State name="upAndSelected" stateGroups="selectedStates, selectedUpStates" enterState="{invalidateSkinState();}"/>
    <s:State name="overAndSelected" stateGroups="overStates, selectedStates" enterState="{invalidateSkinState();}"/>
    <s:State name="downAndSelected" stateGroups="downStates, selectedStates" enterState="{invalidateSkinState();}"/>
    <s:State name="disabledAndSelected" stateGroups="selectedUpStates, disabledStates, selectedStates" />
    </s:states>
    <!-- Skin States -->
    <fx:Metadata>
    [SkinState('up')]
    [SkinState('over')]
    [SkinState('down')]
    [SkinState("disabled")]
    [SkinState('upAndSelected')]
    [SkinState('overAndSelected')]
    [SkinState('downAndSelected')]
    [SkinState("disabledAndSelected")]
    </fx:Metadata>
    <fx:Declarations>
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    ]]>
    </fx:Script>
    </s:ToggleButton>
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fb="http://ns.adobe.com/flashbuilder/2009" minWidth="21" minHeight="21" alpha.disabledStates="0.5" >
        <!-- host component -->
        <fx:Metadata>
        <![CDATA[
            [HostComponent("tat.components.buttons.MaxRestoreToggleButton")]
        ]]>
        </fx:Metadata>
        <fx:Script fb:purpose="styling">
    [Bindable]public static var glowColor:uint = 0xFFFFFF;
    [Bindable]public static var backgroundColor:uint = 0xFFFFFF;
    /* Define the skin elements that should not be colorized.
               For toggle button, the graphics are colorized but the label is not. */
            static private const exclusions:Array = ["labelDisplay"];
             * @private
            override public function get colorizeExclusions():Array {return exclusions;}
             * @private
            override protected function initializationComplete():void
                useChromeColor = true;
                super.initializationComplete();
             * @private
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
                super.updateDisplayList(unscaledWidth, unscaledHeight);
            private var cornerRadius:Number = 2;
        </fx:Script>
        <!-- states -->
        <s:states>
            <s:State name="up" enterState="{this.hostComponent.toolTip='Maximize' }"/>
            <s:State name="over" stateGroups="overStates" enterState="{this.hostComponent.toolTip='Maximize'}"/>
            <s:State name="down" stateGroups="downStates" enterState="{this.hostComponent.toolTip='Maximize'}"/>
            <s:State name="disabled" stateGroups="disabledStates"/>
            <s:State name="upAndSelected" stateGroups="selectedStates, selectedUpStates" enterState="{this.hostComponent.toolTip='Restore'}" />
            <s:State name="overAndSelected" stateGroups="overStates, selectedStates" enterState="{this.hostComponent.toolTip='Restore'}"/>
            <s:State name="downAndSelected" stateGroups="downStates, selectedStates" enterState="{this.hostComponent.toolTip='Restore'}"/>
            <s:State name="disabledAndSelected" stateGroups="selectedUpStates, disabledStates, selectedStates" />
        </s:states>
        <!-- layer 1: shadow -->
    <s:Rect id="bg" left="0" right="0" top="0" bottom="0" radiusX="2">
    <s:fill>
    <s:SolidColor color="{backgroundColor}" alpha=".1"/>
    </s:fill>
    </s:Rect>
    <s:Rect id="glow" left="-1" right="-1" top="-1" bottom="-1" radiusX="2">
    <s:fill>
    <s:SolidColor color="{glowColor}" alpha.up="0" alpha.selectedUpStates="0" alpha.overStates=".5" alpha.downStates=".2" alpha.disabled="0"/>
    </s:fill>
    </s:Rect>
    <s:BitmapImage source.selectedStates="@Embed('../../../assets/images/windows_16.png')" source="@Embed('../../../assets/images/windows_window_16.png')"
       horizontalCenter="0" verticalCenter="0"/>
    </s:SparkSkin>

  • ADF Customization (Fusion Apps) - Property not found exception

    All
    Trying to customize a Fusion Apps application(essentially ADF) where in a popup has to be inserted into an existing page and displayed on UI on a Submit button click.
    I have bound the popup to a backing bean property 'Sp1' so that the popup can be invoked programmatically from an action listener method. Note: Show popup behavior is not an option due to some of the business requirements.
    When the page renders, it throws the exception 'Sp1' property not found in the backing bean class. Although the Submit button is able invoke the action listener method without an issue.
    Not sure why the property is not found to the page when it is able to invoke other methods in the class. Any pointers?
    Here are the steps followed:
    1. Opened JDev in Fusion Apps Dev role > Created a ViewController project > Created a java bean A, manually added a RichPopup property Sp1, added an action listener method 'submitForApproval'
    2. Created an Adf jar and deployed > Placed the jar under WEB-INF/lib directory under the EAR/WAR on the server and redeployed so that the jar becomes available to the Fusion App
    3. Created another app which is a FA Customization App and a project under it
    4. Now re-opened JDev in Fusion Apps Customization role > and opened up the FA Customization App
    5. Customized the Fusion Apps page to associate the 'submitForApproval' bean action listener method to the existing Submit button on the page
    6. Customized the page to insert a popup with Id='Sp1', marked the property contentDelivery=lazyUncached
    7. Customized the corresponding taskflow to add the managed bean entry for the new bean
    When I apply the customization MAR on the APP and run the page on the server, I see 'property Sp1 not found in the bean class' exception on the page.
    However, when I click on Submit button anyway I see that the contents of the method are executed. So, I believe the page is definitely finding the class but not this property.
    Verified that Sp1 property is of type RichPopup and has accessors in the bean.
    Any pointers would be much useful.
    Thanks
    Niranjan

    Since we donot use FusionApps , it will be hard to comment on this . Please post this on the internal ADF Frontend Forum @ myforums.oracle.com

  • Accessing an ejb from a servlet gives resource not allowed exception

    hi friends,
    i deployed a bean in weblogic server calling from within a servlet. this bean is used to retrieve a database connection and returns to the servlet. i have done all the resource references lookups everything and also the bean is deployed successfully, but when i run the servlet i didn't get even the println messages. it gives resource not allowed message.
    here is the deployment descriptor is correct ? if anything wrong or missed, please mention and try to give me the solution.
    web.xml
    <web-app>
    <servlet>
    <servlet-name>TestConnection</servlet-name>
    <display-name>TestConnection</display-name>
    <servlet-class>tms.com.ejb.TestConnection</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestConnection</servlet-name>
    <url-pattern>TestConnection</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <res-ref-name>tmsPool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <env-entry>
    <env-entry-name>tmsDataSource</env-entry-name>
    <env-entry-value>tmsPool</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
    <env-entry-name>TMS_DBConnectionBean</env-entry-name>
    <env-entry-value>java:comp/env/ejb/TMS_DBConnectionBean</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <ejb-ref>
    <ejb-ref-name>ejb/TMS_DBConnectionBean</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>tms.com.ejb.TMS_DBConnectionHome</home>
    <remote>tms.com.ejb.TMS_DBConnection</remote>
    <ejb-link>TMS_DBConnectionBean</ejb-link>
    </ejb-ref>
    </web-app>
    Ejb jar is
    <enterprise-beans>
    <session>
    <display-name>ConnectionBean</display-name>
    <ejb-name>TMS_DBConnectionBean</ejb-name>
    <home>tms.com.ejb.TMS_DBConnectionHome</home>
    <remote>tms.com.ejb.TMS_DBConnection</remote>
    <ejb-class>tms.com.ejb.TMS_DBConnectionBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <env-entry-name>tmsDataSource</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>tmsPool</env-entry-value>
    </env-entry>
    <security-identity>
    <description></description>
    <use-caller-identity></use-caller-identity>
    </security-identity>
    <resource-ref>
    <res-ref-name>tmsPool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <!--<res-sharing-scope>Shareable</res-sharing-scope>-->
    </resource-ref>
    </session>
    </enterprise-beans>
    <weblogic-ejb-jar>
    weblogic ejb jar file is the following content.
    <weblogic-enterprise-bean>
    <ejb-name>TMS_DBConnectionBean</ejb-name>
    <stateless-session-descriptor>
    <pool>
         <max-beans-in-free-pool>1</max-beans-in-free-pool>
    </pool>
    </stateless-session-descriptor>
    <jndi-name>TMS_DBConnectionBean</jndi-name>
    </weblogic-enterprise-bean>
    thanx in advance..

    hi
    i tried the same but still i'm getting the same problem, the value i mentioned in the servlet lookup is java:comp/env/TMS_DBConnectionBean.
    then the value returned by the lookup would be java:comp/env/ejb/TMS_DBConnectionBean. right. Anyway i tried the same as u mentioned. that same problem resource not allowed is displayed in the browser. is there any other alternative to solve this?
    thanks

  • Property Not Found Exception?

    Created a Managed Bean:</BR></BR>
    public class Test {
    private String myname;
    public Test() {
    public void setMyname(String myname) {
    this.myname = myname;
    public String getMyname() {
    return myname;
    </BR></BR>
    with following faces-config.xml:
    </BR></BR>
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>Test</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>myname</property-name>
    <property-class>java.lang.String</property-class>
    </managed-property>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/untitled1.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/untitled2.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    </BR>
    </BR>
    Using the following untitled1.jsp:
    </BR>
    </BR>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>untitled1</title>
    </head>
    <body><h:form>
    <p>
    <h:outputText value="Enter name:"/><h:inputText value="#{requestScope.test.myname}" />
    </p>
    <p>
    <h:commandButton value="Continue" action="success"/>
    </p>
    </h:form></body>
    </html>
    </f:view>
    </BR>
    </BR>
    To invoke the following JSF - untitled2.jsp:
    </BR></BR>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>untitled2</title>
    </head>
    <body><h:form>
    <p>
    Output:
    </p>
    <h:outputText value="#{requestScope.test.myname}"/>
    </h:form></body>
    </html>
    </f:view>
    </BR></BR>
    Why am I getting the following error message:
    </BR></BR>
    500 Internal Server Error
    javax.faces.el.PropertyNotFoundException: Error testing property 'myname' in bean of type null     at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)     at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)     at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)     at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:345)
    </BR></BR>
    THANKS for any help - Ken
    Message was edited by:
    kecooper

    Avi - thanks for the info - ...I have found the problem as originally specificed. However it has lead to another question - consider the XML fragment below.
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>Test</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>myname</property-name>
    <property-class>java.lang.String</property-class>
    </managed-property>
    </managed-bean> This is/was the problem.
    If I remove the <property-class>java.lang.String</property-class> element and add a value tag for initialization of myname - all works.
    With ONLY <property-name>myname</property-name> I get the following error: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'uname'.
    With
          <property-name>uname</property-name>
          <property-class>java.lang.String</property-class>I get the same error.
    I had assumed that the property-class was to define the type of the managed-property? If that is there it does not work.
    I would also have guessed that the managed-bean with the managed-property would create a dynamic bean as does the DynamicActionBean in Struts?
    So, I guess two questions:
    1. How is the property-class tag used?
    2. CAn one create a 'dynamic' bean within faces-config.xml.
    I am using JDeveloper 10.1.3 which has jdk 1.5.0_05, Servlet 2.4, JSP 2.0
    Thanking you for your help

  • Checkbox group selected property binding not working

    Hi,
    I've been through all the threads and tutorials relating to this problem and none of them help.
    The Situation
    I have a checkbox group which I have bound the items items property to a MySQL database (value field = int, display field = String). I have bound the Selected property to a sessionbean field which is an int[] array.
    I have a processValueChange event for my checkbox group which grabs the selected boxes values (ie the int value of the checkbox id). Based on these values it does some other processing.
    The Problem
    When the page loads everything is displayed ok. When I select a checkbox within the checkbox group the getSelected() method returns the int value of the selected checkbox and perform other processing as necessary... so far so good.
    However, when the page finishes processing and reloads the selected checkboxes are not ticked. I'm sure it has something to do with the Selected property of the checkboxgroup but I can't for the life of me work out why. For multiselect objects the Selected property must be bound to an array which I have done with my int[] array. I've tried preloading the array with default values (1, 2, etc) to mimic the int values from the database. I've tried changing the array to a boolean array but this throws exceptions. So basically i'm stuck.
    The Source
    Session Bean
        private int[] extras;
        public int[] getExtras() {
            return this.extras;
        public void setExtras(int[] extras) {
            this.extras = extras;
    Page JSP
    <ui:checkboxGroup binding="#{book_package.extras}"
                                                                                    converter="#{book_package.extrasConverter}" id="extras"
                                                                                    items="#{book_package.extrasDataProvider.options['extras.ExtrasID,extras.Name']}"
                                                                                    onClick="common_timeoutSubmitForm(this.form, 'table:tr:td:table:tr:td:table:tr:td:div:div:table:tr:td:extras');"
                                                                                    selected="#{SessionBean1.extras}" valueChangeListener="#{book_package.extras_processValueChange}"/>
    Page Java
        public void extras_processValueChange(ValueChangeEvent event) {
            // TODO: Replace with your code
            getSessionBean1().setExtrasTotal(0);
            try {
                int[] extra = (int[])extras.getSelected();
                int extrasId = 0;
                int extraPrice = 0;
                if (extra.length != 0) {
                    for (int i=0; i < extra.length; i++) {
                        extrasDataProvider.cursorFirst();
                        do {
                            extrasId = new Integer(extrasDataProvider.getValue("ExtrasId").toString()).intValue();
                            if (extrasId == extra) {
    extraPrice = getSessionBean1().getExtrasTotal() + new Integer(extrasDataProvider.getValue("Price").toString()).intValue();
    getSessionBean1().setExtrasTotal(extraPrice);
    break;
    } while (extrasDataProvider.cursorNext());
    } catch (Exception e) {
    log("Exception occurred!!", e);
    error("Error: "+e.getMessage());
    getSessionBean1().setTotalPrice(getSessionBean1().getPackagePrice() + getSessionBean1().getExtrasTotal());
    Any help appreciated.
    Thanks.

    ok, i found the problem. MySQL int value is treated as an Integer in Creator. I changed my SessionBean array from int[] to Integer[] and now it works properly... phew!!!

  • Change Selected Property of a Checkbox

    I'm trying to set the selected property of a checkbox
    generated by the Repeater component. The checkbox has an ID of ccb.
    I know I can access them using index notation ie. ccb[1].selected =
    true; - that works fine. However, when I put in a for loop and set
    the selected property to a value stored in a Array I get this
    error. Any ideas? Anybody?? Please????
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at Filter/intFilterComp()
    at Main/loginClickHandler()
    at Main/___Login1_loginClick()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at Login/wsHandler()
    at Login/___Operation2_result()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at DirectHTTPMessageResponder/completeHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

    The error means what it says: you are trying to read or write
    a value to a non-existing destination.
    Debug this to find out which line is erroring, and thus which
    reference is null.
    Tracy

  • T:div throws Component property class is not writable

    I'm using the Tomahawk div-tag including the rendered attribute to check if the wrapped components should be rendered. An exception is thrown indicating the component property is not writable. In other words, I think it means there's no public set-method. However, there is. I'm also using the same rendered expression in t:inputText / t:outputText element/s where it does work.
    What's so specific with the t:div?
    Also I wonder why there's a set-method needed as I don't use it..
    please help,
    thanks,
    dave

    If it says 'component property class is not writable' maybe it is talking about the component property 'class'? not 'rendered'.

  • ** FTP Adapter. Sync Read. setModificationTimeFormat property not defined *

    We are using SOA Suite 10.1.3.3 (BPEL and ESB)
    * Create an FTP adapter to a Windows FTP server
    * Perform a Sync Read operation
    * Do NOT select "Delete after successful retrieval" option so the file still remains on the FTP server after retrieval
    * Set the file modification time format property to "4,18,yyyyMMddHHmmSS".
    We get the following error:
    problem is oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec class complains about the setModificationTimeFormat property is not set.
    file:/u01/app/oracle/product/soadev1013/bpel/domains/default/tmp/.bpel_SecondaryPreAdviceMHEUploadController_1.0_3e65e9822b568772b35778ad17909eee.tmp/SecondaryPreAdviceUploadControlFileRead.wsdl [ SynchRead_ptt::SynchRead(Empty,lastRecord) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec due to: Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    ; nested exception is:
    ORABPEL-12532
    Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    ; nested exception is:
    org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec due to: Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    ; nested exception is:
    ORABPEL-12532
    Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    We have de-compiled the above interaction spec and sure enough the setModificationTimeFormat property does not exist within this class.
    It appears the FTP adapter does not support this.
    Is anyone able to provide some insight or confirm whether the FTP adapter supports this?
    Thanks in advance

    Remove
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    from FTP Adapter WSDL
    Regards
    Anirudh Pucha

  • Select Next Keyframe (in selected property) script

    I find myself constantly crafting individual keyframes manually, so being able to automatically select the next/previous keyframe on a selected property with a shortcut (assigned to a script, since there's no such functionality in After Effects, being "Select Previous/Next Keyframes" the closest thing) instead of locating the keyframe and clicking on it, would save me, and everyone, hours of pointing and clicking.
    After some research I thought It was not possible but after some more (looking at scripts like this AE ENHANCERS • View topic - Exponential Scaling and Re: How can I access the layer keyframes?) , I've started to wonder if it is scriptable.
    Hope it is clear what I'm trying to achieve;
    Basically I'd like that pressing Shift+K would take me to the next keyframe in the selected property AND select it (Shift+J for the previous one) and
    pressing Ctrl+Shift+K would select the next keyframe in the selected property without actually moving the Current Time Indicator (Ctrl+Shift+J for the previous one).
    (I think it makes sense and it is consistent with the almighty J and K shortcuts but I didn't know how to write the code or ask for this functionality. Haven't been lucky asking to fellow animators either).
    Thanks,
    Oliver

    Here here!
    SelectJumpNextKey:
    In a selected keyframe/keyframes, will select the next one in time AND jump the CTI to the time of that keyframe or, if multiple selected, the last of the selected keyframes.
    (If you don't want the time jump but only the selection, just remove the second $.global.script_doJumpToLastSelectedKey script).
    $.global.script_doSelectNextKeys || (script_doSelectNextKeys = function script_doSelectNextKeys(){  
        var comp = app.project.activeItem, props, n, p, idx, max=-Infinity;  
        if (comp instanceof CompItem){  
            props = comp.selectedProperties;  
            for (n=0; n<props.length; n++){  
                p = props[n];
                if (p.numKeys && p.selectedKeys.length>0){
                    // get index of the last selected key
                    idx = p.selectedKeys[p.selectedKeys.length-1];
                    // change to next key
                    if (idx<p.numKeys) ++idx;
                    // select only that key
                    p.selected = false;
                    p.setSelectedAtKey(idx, true);
                    // update the time
                    max=Math.max(max, p.keyTime(idx));
             // this sets the composition time (CTI) to max
             if (-Infinity<max) comp.time = max;
        return
    script_doSelectNextKeys();
    $.global.script_doJumpToLastSelectedKey || (script_doJumpToLastSelectedKey = function script_doJumpToLastSelectedKey(){   
        var comp = app.project.activeItem, props, n, p, max=-Infinity;   
        if (comp instanceof CompItem){   
            props = comp.selectedProperties;   
            for (n=0; n<props.length; n++){   
                p = props[n]; 
                if (p.numKeys && p.selectedKeys.length>0) max=Math.max(max, p.keyTime(p.selectedKeys[p.selectedKeys.length-1])); 
            if (-Infinity<max) comp.time = max; 
        return;   
    script_doJumpToLastSelectedKey();
    And this (nevermind the more than possible coding aberrations on my part) is what I originally aimed for. I think that not only it is simply amazing ("It just works") but so intuitive (specially using Shift+J/K) that should be an After Effects default.
    Your version (select keyframes under current time in the selected properties) is super great too, but it serves a whole different purpose.
    Now, for the SelectJumpPrevKey, I just have to figure how to make this bit:
    $.global.script_doJumpToFirstSelectedKey || (script_doJumpToFirstSelectedKey = function script_doJumpToFirstSelectedKey(){   
        var comp = app.project.activeItem, props, n, p, max=-Infinity;   
        if (comp instanceof CompItem){   
            props = comp.selectedProperties;   
            for (n=0; n<props.length; n++){   
                p = props[n]; 
                if (p.numKeys && p.selectedKeys.length>0) max=Math.max(max, p.keyTime(p.selectedKeys[p.selectedKeys.length-1])); 
            if (-Infinity<max) comp.time = max; 
        return;   
    script_doJumpToFirstSelectedKey();
    actually go to the first keyframe selected and not the last (which, as simple as it may seem, to me is like watching the Matrix code and pushing random buttons in russian to see what happens).
    Sorry I couldn't make your last code work and insted just stitched to scripts together! for some reason, the CTI wasn't jumping.
    Mega thanks!!
    Oliver

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Invert Attribute/Property ("NOT") for context binding

    When I bind a contex node to the property "enabled" of a checkbox, there is a special setting for the binding called "Invert Attribute/Property ("NOT")", which I can use to invert the value from the context.
    However, for the property "checked" of the checkbox, this setting is not offered.
    Is there anything, i can do?

    Hi Daniel ,
    Invert property is not available for checked because its the data which it is going to be represented by checkbox   like for inputfield - value  , textview- text . properties are enabled , readonly......for which this function id present.

  • Script error property not found

    I have a script that get a list of choosen check boxes, it
    was working fine but now when i press the button that calls the
    script i get a error saying "script error property not found" then
    it lists the line i have put a * next to and says #hilite
    This is the top part of that script and to my knowlegde i
    have not chnaged any of it and it worked before but now it does
    not, i also use a script almost identical to this but use it for
    radiobuttons instead and the line is the same in that and that
    script works, can anybody tell me what as gone wrong?

    I suspect you have a cast member that uses one of the three
    names in the
    list and it is not a check box. It's probably before the
    actual checkbox
    member in the cast so it's finding it first.
    Craig Wollman
    Lingo Specialist
    Word of Mouth Productions
    212-928-9581
    www.wordofmouthpros.com
    "ajrobson" <[email protected]> wrote in
    message
    news:etn9j1$op2$[email protected]..
    >I have a script that get a list of choosen check boxes,
    it was working fine
    >but
    > now when i press the button that calls the script i get
    a error saying
    > "script
    > error property not found" then it lists the line i have
    put a * next to
    > and
    > says #hilite
    >
    > This is the top part of that script and to my knowlegde
    i have not chnaged
    > any
    > of it and it worked before but now it does not, i also
    use a script almost
    > identical to this but use it for radiobuttons instead
    and the line is the
    > same
    > in that and that script works, can anybody tell me what
    as gone wrong?
    >
    >
    >
    > global err
    >
    > on CheckBoxState -- name of custom handler
    > TickedBoxes = [] -- a empty list will be filled where
    ever a checkbox is
    > ticked
    > CheckBoxNames = ["Dr no", "From russia with
    love","Casino royale" ]
    > repeat with i = 1 to 3 -- repeat for each checkbox
    > CurrentCheckbox = CheckBoxNames
    > ** if the hilite of member(CurrentCheckbox) then -- if
    currentcheckbox
    > hilite
    > is true (checked)...
    > append(TickedBoxes,CurrentCheckbox )
    > end if
    > end repeat
    > return TickedBoxes
    > end
    >

Maybe you are looking for

  • Is this a genuine bug?

    I have a hue arsenal of reports in my organization that I am responsible to keep running.  A very large percentage of these reports were created using CR v8.5.  What I am noticing is the else an drop down option on these older report, under File -->

  • What optical audio cable to use with Mac Mini (late 2009) to receiver?

    I want to do the following (removing TiVo for something else is NOT an option, EVER): 1) I want to watch TV through my HD TiVo (better than sex, better than chocolate, better than sex, chocolate, and anything else you can combine together). 2) I want

  • I don't have a status bar!

    Somehow Oryte! and Bing got to be my browser and I didn't want that, so I asked Firefox how to get rid of it. Whatever it said to do, I did -- but I lost the Firefox status bar. I just have blank tabs without any place to enter URLs or search, withou

  • How to store images as disk files rather than in iphoto db

    Is there a way to make iPhoto maintain the images as disk files, rather than import them into iphotos massive database file. I would prefer to use iphoto to just store a link to the photo, rather than the photo itself. That way I can work with the im

  • How can I plot the 3d plot of a vibrating bridge?

    Dear all     My question is as follows:     I want to plot the mode shape of a bridge. Now the deck of the bridge is vibrating, which can be plot. But at the same time; I want to plot the column of the bridge The question is: when some surface of the