Strange bahavior seen in adf checkbox.

Hi!
I am setting the disabled property of a checkbox by calling a method on a managed bean in this way:
<af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
label="Label 1"
binding="#{backing_TestingCheckbox.sbc1}"
id="sbc1"
disabled="#{sampleMB.status}"/>
I am observing that the sampleMB.getStatus() method is called 4 to 5 times whenever this page is rendered. If I use this methodology for setting the visible property of the checkbox then the method is called twice.
Why am I seeing this behavior?
version of Jdeveloper: 11g R1
Thanks,
Gurdev

The reason is the page life cycle.
Timo

Similar Messages

  • Login problems...  strange behavior seen

    Hello. I'm seeing a strange behavior with regard to invalid database
    logins and JDO. I have a few test cases. First I try to pass an invalid
    username to JDO. This test case fails and throws a
    FatalInternalException, which is what I expect. Then, I pass a valid
    username and I am able to connect and retrieve an entry from the database.
    Next, if I run the same invalid username test case again, it throws a
    DataStoreException. I am wondering if the username and password from the
    valid test case is getting saved somehow and is being used by the second
    run of the invalid username test case. Any ideas?
    Thanks,
    Mike

    Patrick Linskey wrote:
    Can you post the exceptions that you're seeing?
    -PatrickPatrick, below are the two exceptions that I'm getting. The first one is
    the one that I receive the first time that I run the test case. The
    second one is the exception that I receive when I run the same test case
    again after a test case that has valid login information. The strange
    thing is that I would expect the top-level exception for both of them to
    be the same. Thanks for the help...
    -Mike
    com.solarmetric.kodo.runtime.FatalInternalException:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
    [code=0;state=null]
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
    [code=0;state=null]
    NestedThrowables:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerFactory.createSQLExecutionManager(SQLExecutionManagerFactory.java:72)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newSQLExecutionManager(JDBCStoreManager.java:763)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getSQLExecutionManager(JDBCStoreManager.java:673)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:343)
         at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:215)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1310)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1211)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.PSHelper.get(PSHelper.java:155)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.doGet(JDOPublicationDAO.java:611)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.get(JDOPublicationDAO.java:339)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.test.TestPublicationDAO.test_get_invalidPassword(TestPublicationDAO.java:285)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.runTestSuite(Unknown
    Source)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.main(Unknown
    Source)
    NestedThrowablesStackTrace:
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
    [code=0;state=null]
    NestedThrowables:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
         at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLExceptions.java:58)
         at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDictionaryFactory.java:212)
         at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSimpleConfiguration.java:370)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerFactory.createSQLExecutionManager(SQLExecutionManagerFactory.java:65)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newSQLExecutionManager(JDBCStoreManager.java:763)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getSQLExecutionManager(JDBCStoreManager.java:673)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:343)
         at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:215)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1310)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1211)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.PSHelper.get(PSHelper.java:155)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.doGet(JDOPublicationDAO.java:611)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.get(JDOPublicationDAO.java:339)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.test.TestPublicationDAO.test_get_invalidPassword(TestPublicationDAO.java:285)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.runTestSuite(Unknown
    Source)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.main(Unknown
    Source)
    NestedThrowablesStackTrace:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
         at net.sourceforge.jtds.jdbc.Tds.<init>(Unknown Source)
         at net.sourceforge.jtds.jdbc.TdsConnection.allocateTds(Unknown Source)
         at net.sourceforge.jtds.jdbc.TdsConnection.<init>(Unknown Source)
         at net.sourceforge.jtds.jdbc.Driver.connect(Unknown Source)
         at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(DataSourceImpl.java:943)
         at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSourceImpl.java:569)
         at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:332)
         at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:325)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(DataSourceConnector.java:63)
         at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDictionaryFactory.java:179)
         at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSimpleConfiguration.java:370)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerFactory.createSQLExecutionManager(SQLExecutionManagerFactory.java:65)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newSQLExecutionManager(JDBCStoreManager.java:763)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getSQLExecutionManager(JDBCStoreManager.java:673)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:343)
         at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:215)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1310)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1211)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.PSHelper.get(PSHelper.java:155)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.doGet(JDOPublicationDAO.java:611)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.get(JDOPublicationDAO.java:339)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.test.TestPublicationDAO.test_get_invalidPassword(TestPublicationDAO.java:285)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.runTestSuite(Unknown
    Source)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.main(Unknown
    Source)
    com.solarmetric.kodo.runtime.DataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.LAT, t0.CreationDate, t0.Date, t0.Description,
    t0.DescriptionID, t0.InstancePersistenceSource, t0.LastChangeAuthor,
    t0.LastChangeDate, t0.MetadataType, t0.Note, t0.NoteID, t0.OriginalAuthor,
    t0.ResourceBundleName, t0.Status, t0.UserAccessKey,
    t0.UserServiceReference FROM Publication t0 WHERE t0.InstanceID =
    'PublicationNote1']
    [PRE=SELECT t0.LAT, t0.CreationDate, t0.Date, t0.Description,
    t0.DescriptionID, t0.InstancePersistenceSource, t0.LastChangeAuthor,
    t0.LastChangeDate, t0.MetadataType, t0.Note, t0.NoteID, t0.OriginalAuthor,
    t0.ResourceBundleName, t0.Status, t0.UserAccessKey,
    t0.UserServiceReference FROM Publication t0 WHERE t0.InstanceID = ?]
    Logon failed. Msg 18456, Severity 14, State 1, Login failed for user
    'ingres'., Server , Procedure , Line 0 [code=0;state=null]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.LAT, t0.CreationDate, t0.Date, t0.Description,
    t0.DescriptionID, t0.InstancePersistenceSource, t0.LastChangeAuthor,
    t0.LastChangeDate, t0.MetadataType, t0.Note, t0.NoteID, t0.OriginalAuthor,
    t0.ResourceBundleName, t0.Status, t0.UserAccessKey,
    t0.UserServiceReference FROM Publication t0 WHERE t0.InstanceID =
    'PublicationNote1']
    [PRE=SELECT t0.LAT, t0.CreationDate, t0.Date, t0.Description,
    t0.DescriptionID, t0.InstancePersistenceSource, t0.LastChangeAuthor,
    t0.LastChangeDate, t0.MetadataType, t0.Note, t0.NoteID, t0.OriginalAuthor,
    t0.ResourceBundleName, t0.Status, t0.UserAccessKey,
    t0.UserServiceReference FROM Publication t0 WHERE t0.InstanceID = ?]
    Logon failed. Msg 18456, Severity 14, State 1, Login failed for user
    'ingres'., Server , Procedure , Line 0
         at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:64)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:352)
         at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:215)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1310)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1211)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.PSHelper.get(PSHelper.java:155)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.doGet(JDOPublicationDAO.java:611)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.get(JDOPublicationDAO.java:366)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.test.TestPublicationDAO.test_getPriority_invalidPassword(TestPublicationDAO.java:479)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.runTestSuite(Unknown
    Source)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.main(Unknown
    Source)
    NestedThrowablesStackTrace:
    java.sql.SQLException: Logon failed. Msg 18456, Severity 14, State 1,
    Login failed for user 'ingres'., Server , Procedure , Line 0
         at net.sourceforge.jtds.jdbc.Tds.<init>(Unknown Source)
         at net.sourceforge.jtds.jdbc.TdsConnection.allocateTds(Unknown Source)
         at net.sourceforge.jtds.jdbc.TdsConnection.<init>(Unknown Source)
         at net.sourceforge.jtds.jdbc.Driver.connect(Unknown Source)
         at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(DataSourceImpl.java:943)
         at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSourceImpl.java:569)
         at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:332)
         at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:325)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(DataSourceConnector.java:63)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnectionFromFactory(SQLExecutionManagerImpl.java:185)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnection(SQLExecutionManagerImpl.java:147)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:727)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:691)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:600)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:355)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:339)
         at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadByPK(ClassMapping.java:1001)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStoreManager.java:348)
         at
    com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerImpl.java:215)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(PersistenceManagerImpl.java:1310)
         at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1211)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.PSHelper.get(PSHelper.java:155)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.doGet(JDOPublicationDAO.java:611)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.JDOPublicationDAO.get(JDOPublicationDAO.java:366)
         at
    com.ca.cleverpath.framework.service.metadata.persistence.driver.jdoex.test.TestPublicationDAO.test_getPriority_invalidPassword(TestPublicationDAO.java:479)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.runTestSuite(Unknown
    Source)
         at
    com.ca.cleverpath.test.junit.extensions.CleverPathTestRunner.main(Unknown
    Source)

  • Adf checkbox

    Hi,
    I have popup which has a multi row table with a checkbox and 1 output textbox and 1 input textbox as below
    checkbox <1234> < empty >
    checkbox <2345> < empty >
    Need is when the checkbox(say in the first row) is checked the 1234 needs to be copied to the input text box
    when it is unchecked the input check box needs to be nulled.
    Any sample code please.
    Thanks

    Let me clarify
    When the check box is clicked my valuechangelistener works and invokes the below code ok.
    if(valueFlag.equalIgnoreCase("true")){
    inputTextBinding.setText("1234");
    The change I did in the above code is to read from inputputtext field in place of hardcoded value 1234.
    The field looks like
    <af:inputText value="#{viewScope.QtyTotal}" >
    How do I read this above value so that I can use it to set the inputTextBinding value please?
    Thanks

  • ADF Checkboxes layout issue

    Hi,
    I am using JDeveloper 11.1.1.1.7.
    I am using Radio Check boxes like :
         <af:selectOneRadio label="Test" id="sor21" layout="horizontal"">
            <af:selectItem label="Any" value="" id="si128"/>
            <af:selectItem label="Positive" value="1" id="si110"/>
            <af:selectItem label="Negative" value="0" id="si109"/>
            <af:selectItem label="Unknown" value="99"  id="si4"/>
          </af:selectOneRadio>
    The rendered check boxes are too close like shown below :
    0 Any 0 Postive 0 Nagative 0 Unknown
    Is there a way I can have some empty spaces in between them like :
    0 Any              0 Postive              0 Nagative            0 Unknown
    How to do this ?
    Thank you.
    Regards,
    Ayyappan

    Sorry for the confusion. lableStyle is a property added in 11.1.2.x (&amp;lt;af:selectOneRadio&amp;gt;)
    Timo

  • ADF Faces table with checkboxes

    Hi,
    My dev env: jdev 11.1.1.2.0
    I like to implement something like yahoo mail, with a checkbox at the column header. If selected,
    all rows will be selected. I assume Yahoo's email is using javascript. How do I achieve the same
    thing here with adf faces table? Is there any tutorial I could reference.
    Thanks in advance!
    Edited by: user1145549 on Jul 13, 2010 8:18 AM

    Hi,
    U can also check this too.... it very simple approach to Implement Check box
    http://theo.vanarem.nl/2010/07/07/adf-checkbox-representing-a-yes-or-no-value/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+orana+(OraNA)&utm_content=Netvibes
    Regards,
    Suganth.G

  • Datagrid checkbox headerrenderer check off problem

    I have a datagrid where one column has select option like what we have in mail inboxes. User can select one or many row items to perform any actions by selecting the checkbox. It has also one select all option which is shown in the header renderer of that particular column. If user clicks on that all checkboxes gets selected.
    I have done that but the problem is that whenever i am performing any action by selecting all(header checkbox) and as a result the datagrid sometimes sets visible off or switches to some other mxml component from the component which is holding the datagrid and after coming back from that scenario again to the datagrid, its seen that the checkbox is still checked ... i want that checkbox to set to non-checked.
    help me.

    Hi subhajit nag,
    Say the below is your mxml component in viewStack...
    <your component>
    <mx:Script>
    <![CDATA[
    [Bindable]private var headerChecked:Boolean = false;
    private function onShow():void
         headerChecked = false;
    ]]>
    </mx:Script>
    </your component>
    <mx:DataGrid x="35" y="10" id="mydg">
            <mx:columns>        
                <mx:DataGridColumn editable="true" sortable="false">
                 <mx:headerRenderer>
                  <mx:Component>
                            <mx:CheckBox selected="{outerDocument.headerChecked}" click="checkUnCheckCheckBoxes()">
                             <mx:Script>
                      <![CDATA[
                       import mx.collections.ArrayCollection;
                   private function checkUnCheckCheckBoxes():void
                      // You can handle your logic what you want to do when header check box is clicked....   
                      ]]>
                  </mx:Script>
                            </mx:CheckBox>
                        </mx:Component>
                 </mx:headerRenderer>
                    <mx:itemRenderer>                
                        <mx:Component>
                            <mx:CheckBox selected="{data.isSelected}" click="{data.recselected = !data.recselected}"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Column 1" dataField="firstName"/>
                <mx:DataGridColumn headerText="Column 2" dataField="lastName"/>           
            </mx:columns>
        </mx:DataGrid>
    So you just need to change the value of the headerChecked  bindable variable to false..in show event for your first scenario...and your header check box is automatically unselected because this check box is binded to a bindable variable to which you are setting to false...
    For your second scenario....you can use the same changing the headerChecked value to false...
    You need to set this varibale to false in your second scenario where you know that your Header Render datagrid is making it visible after you made it unvisible...
    say you have clicked header check box and you made this datagrid invisible and this header checkbox datagrid will be visible once again when you click toggle button so set the value to false in the toggle button click function....
    private function toggleButtonClickHandler():void
         headerChecked = false;
         yourHeaderChkDataGrid.visible = true;
         yourAnotherDG.visible = false;
    Hope this is clear for you now...Try this and let me know...
    Thanks,
    Bhasker Chari

  • Double click to (un)check checkbox

    Hi.
    I have af:table. And every row in table has checkbox. I want to do feature that when I double click on a row checkbox has to inverse current value (true => false, false => true).
    I know how do proper double click and backing bean handling (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf). What I don't know is how to proper implement checkbox (de)selecting.
    I have tried to get attribute binding and set value based on current value - does not work
    I have tried to simulate clicking on checkbox with JavaScript - does not work
    I have bound my checkbox to backing bean and with methods getValue() and setValue() and AdfFacesContext.getCurrentInstance().addPartialTarget(checkbox) updated it - does not work
    I have also tried to set ppr on iterator with test all three above scenarios - does not work
    This my checkbox attribute is transient on ViewObject. And a type of String ("0" = false, "1" = true) and LOV made like here (http://theo.vanarem.nl/2010/07/07/adf-checkbox-representing-a-yes-or-no-value/)
    Any ideas how to do proper checkbox selecting from backing bean?

    I have tried
    AdfFacesContext.getCurrentInstance().addPartialTargeton whole table, on only bounded RichSelectBooleanCheckbox attribute and also on clientEvent.getComponent() without luck.
    My code snippet looks like:
        private RichSelectBooleanCheckbox indicator;
        private RichTable table;
        public void handleTableDoubleClick(ClientEvent clientEvent) {
            indicator.setValue(true);
            AdfFacesContext.getCurrentInstance().addPartialTarget(clientEvent.getComponent());
            AdfFacesContext.getCurrentInstance().addPartialTarget(table);
            AdfFacesContext.getCurrentInstance().addPartialTarget(indicator);
    ...indicator have binding with checkbox on page and also table on rich table on page.
    Regards

  • Adding a Column to a JTable

    I have a simple gui where I query a database and return a result set in a JTable using a table model. I would like to be able to add a new column with checkboxes as the first column in the table. I've seen examples using checkboxes with boolen data from the database, but this column is not being returned from the database it is a new added column.
    The first task is to add the column and I am struggling with this. My code is below.
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class DatabaseTest extends JFrame {
      private QueryTableModel qtm;
      public DatabaseTest()
        super("JTable Test");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(350, 200);
        qtm = new QueryTableModel();
        JTable table = new JTable(qtm);
        JScrollPane scrollpane = new JScrollPane(table);
        JPanel p1 = new JPanel();
        p1.setLayout(new GridLayout(3, 2));
        p1.add(new JLabel("Click here to Query the DB: "));
        JButton jb = new JButton("Search");
        jb.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
            qtm.Query();
        p1.add(jb);
        getContentPane().add(p1, BorderLayout.NORTH);
        getContentPane().add(scrollpane, BorderLayout.CENTER);
      public static void main(String args[]) {
        DatabaseTest tt = new DatabaseTest();
        tt.setVisible(true);
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.Statement;
    import java.util.Vector;
    import javax.swing.table.AbstractTableModel;
    class QueryTableModel extends AbstractTableModel {
      Vector cache;
      private int colCount;
      private String[] headers;
      Statement statement;
      private static Connection conn = null;
      public QueryTableModel() {
        cache = new Vector();
      public String getColumnName(int i) {
        return headers;
    public int getColumnCount() {
    return colCount;
    public int getRowCount() {
    return cache.size();
    public Object getValueAt(int row, int col) {
    return ((String[]) cache.elementAt(row))[col];
    public void Query() {
    cache = new Vector();
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:*****","******","*******");
    statement = conn.createStatement();
    ResultSet rs = statement.executeQuery("Select username from dba_users where rownum < 6");
    ResultSetMetaData meta = rs.getMetaData();
    colCount = meta.getColumnCount();
    // Now we must rebuild the headers array with the new column names
    headers = new String[colCount];
    for (int h = 1; h <= colCount; h++) {
    headers[h - 1] = meta.getColumnName(h);
    while (rs.next()) {
    String[] record = new String[colCount];
    for (int i = 0; i < colCount; i++) {
    record[i] = rs.getString(i + 1);
    cache.addElement(record);
    fireTableChanged(null);
    // Add column code here?
    } catch (Exception e) {
    cache = new Vector(); // blank it out and keep going.
    e.printStackTrace();
    }Not sure how to add the column. I've tried a few variations of the following code with no luck:TableColumn tc = new TableColumn(0, 120);
    tc.setHeaerValue("Name");
    table.getColumnModel().addColumn(tc);Any help would be appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The first task is to add the column Well, I like the suggestions from the link given in the above posting :-) It shows you how to dynamically alter the TableModel after its initial creation, and is probably the best generic solution.
    But, just so you understand better how a TableModel works I"ll just put another thought in your mind. Maybe in this case you just create the TableModel correctly the first time so you don't need to do a dynamic change. The TableModel doesn't know where the data came from. It doesn't care that it came from a ResultSet. All it knows it that you have data in an array. So whats to prevent you from hard coding the first column to contain Boolean data?
    {code}headers = new String[colCount+1];
    headers[0] = "Boolean Column";
    for (int h = 1; h <= colCount; h++)
    headers[h] = meta.getColumnName(h);
    while (rs.next())
    String[] record = new String[colCount+1];
    record[0] = new Boolean.FALSE;
    for (int i = 1; i <= colCount; i++)
    record[i] = rs.getString(i);
    }{code}

  • Can no longer logon to EM DBA-Studio 8.1.7. with user SYSTEM

    Hello
    my 8.1.7 Enterprise Edition Database shows some "strange bahavior". I can no longer logon to Enterprise Manager Console with user system. (Message: This Application needs more privileges...) But the user system still has the same system privileges as before when it worked fine. So what could have gone wrong?
    The logon with user sys as sysdba still works.
    I can still logon with any user in SQL Worksheet and SQL Plus for instance.
    I have checked for any data loss......but all data still seems to be available. I checked for it with desc and select commands.
    BUT.....I can no longer post a "select * from cat"
    (Message: Table or view does not exist !)
    The database is in archivelog mode in case a recovery is necessary.
    Before the "crash" a normal user schema dump was exported without any problem. But that shouldn't have triggered off the problem!?
    Any help would be greatly appreciated!
    Thank you very much for any hint.
    Stefan
    PS: My user SYSTEM already has the DBA and the SELECT_CATALOG_ROLE but still is no longer able to logon in DBA-Studio!
    I assume it is a more serious problem since none of my users can still perform a "select * from cat" which should always be possible!

    Stopping the jrew process is what i do anyway, but that doesn't seem to be e very elegant way of working with DBA Studio. What is the reason for this behavior?
    Thanks to anyone who can give me a clue

  • Windows Server 2012 - Disk IO & High Latency

    We have a very strange issue on what appears to be all of our Windows 2012 servers.
    We can build a basic server, HP Proliant DL 380 Gen 8 - RAID 0 (2x 300GB 15K SAS). Install Windows 2012, patch to latest levels, all HP firmware and drivers at latest levels on HP website.
    Pretty much a vanilla Windows build, even without Anti Virus at this stage. (This same issue occurs with IBM HS22 blades as well with base build and all latest IBM firmware / drivers so does not appear to be single vendor issue).
    Take a large file, for testing a 20GB VHD. If we copy this file from C:\Temp to C:\Temp  we get about 1.4GB/s transfer speed (Not bad). However post copy all processes in Performance Monitor
    Disk Latency increase to over 1500 ms. This happens every time we copy a large file.
    The file systems is NTFS.
    The array controllers cache settings are set 75% READ / 25% WRITE.
    This problem is much worse when it occurs on our Windows 2012 Scale Out File
     Cluster with Hyper-V hosts using the storage. In theory if a client (Hyper-V server) requests a large Read or Write activity you see a good throughput, but then followed by a large period of disk latency afterwards on all processes on the
    file server. If multiple requests from clients occur simultaneously then this problem is severe enough to hang / crash the file server.
    This also occurs when the servers are not using the "C:" drive and instead are using the CSV volumes on our IBM V7000 array. In this scenario the server has 4x 8Gb HBAs connected to
    the 8x 8GB FC connections on the V7000. EasyTier is enabled SSD Disk Pool to 15K SAS Disk Pool. So in this scenario I know that the issue is not due to an underlying performance issue within the disk subsystem.
    This does disk latency issue did not occur on Windows 2008 with the same hardware EG: HP Proliant DL 380 G7 with local or V7000 disk.
    Therefore there appears to be a major difference / problem in the Windows 2012 disk IO stack.
    Another thing to notice, if a process is running a large copy EG: the VHD copy above and a second or third copy is executed the data transfer of all process does not reach an equal level instead
    one process reaches the highest transfer rate then slows down and the other process takes over. This kind of activity is again not what we used to see on 2008 or other operating systems.
    Can anyone shed any light on this? Does anyone else see a similar IO profile?
    We have a case with Microsoft support for weeks with no resolution.

    Hi,
    We do have multiple SoFS nodes in the cluster, all have have dual 10Gb NICs with RDMA ability (Mellanox Connect3) connected to Brocade VDX switches. RDMA works a treat between hosts using SMB Direct & SMB Mulitchannel. The SAN disks from SoFS are 8Gb
    FC, the local disks are SAS.
    The problem we have is locally not even remote. EG: The latency occurs on the SoFS when copying data from C: to C: or from CSV Vol1 to CSV Vol1.
    It is very strange, not seen this issue before. It makes me think its a bug as it can be created on other Windows 2012 hosts with just local disk.

  • 64-bit logic pro won't open. Dyld error message

    I am trying to open the 64-bit version of logic pro 9.1.1 but it keeps crashing when trying to open. I can't work out why it won't open but It gives the following error in the Problem Report if anyone can help me out here:
    Exception Type: EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread: 0
    Dyld Error Message:
    Library not loaded: @executable_path/../Frameworks/AEProfiling.framework/Versions/A/AEProfiling
    Referenced from: /Applications/Logic Pro.app/Contents/MacOS/Logic Pro
    Reason: no suitable image found. Did find:
    /Applications/Logic Pro.app/Contents/MacOS/../Frameworks/AEProfiling.framework/Versions/A/AEProfili ng: mach-o, but wrong architecture
    /Applications/Logic Pro.app/Contents/MacOS/../Frameworks/AEProfiling.framework/Versions/A/AEProfili ng: mach-o, but wrong architecture

    Hmm, very strange, never seen this message before. Have you tried going into Disk Utility and running a "Repair Disk Permissions" on your Macintosh HD? Can't guarantee it will fix the problem, but worth a try.. If you get really stuck, the simplest thing to do is just to uninstall Logic and then reinstall it, apply updates etc.. and try 64 bit again.
    Dan.

  • How to send a request parameter to a dialog pages with jsf

    I'm using the dialog framework of oracle, java server faces.......
    I need to open a url on a dialog page(request scope), and I must to pass request parameters. I put <f:param> objects inside the commandLink who I click.....
    If the page is not dialog, it woks fine, but when I put in a dialog way.... nothing work
    =[
    anyone know what I have to do?
    thanks

    Hi, I suppose you have already seen the ADF DIalog Framework, isn't it?
    I think there tells how to pass parameter
    A workaround is to save them in your session and then get them back and remove

  • ADF11g Security Migration

    We are installing an ADF 11g EAR into our development instance of WLS 10.3.1 and are seeing some strange behavior with the ADF policy migration. During the EAR install from either the WLS console, or using WLST scripts, the ear deployment appears to create entries in our domains system-jazn-data.xml file in the .../config/fmwconfig directory. The policies work fine when testing the application. Users in the various application roles see expected security behavior. If we then start and stop a completely different managed server from the console, the entries that were in the system-jazn-data.xml file disappear, but the our application security continues to work as expected. If we then bounce the server our ear is deployed to, the entries show up again in system-jazn-data.xml.
    Can anyone explain this behavior and verify if this is expected?
    Additional Information: We have followed the enterprise deployment guide when setting up our middleware home directory. We have the following directory structure:
    /opt/oracle/admin/snidomain/aserver
    /opt/oracle/admin/snidomain/mserver
    The aserver directory contains the admin server and the mserver directory contains our managed servers. Each directory contains a config/fmwconfig subdirectory each containing a system-jazn-data.xml file. Each also contains a jps-config.xml file that specifies an XML policy provider pointing at "./system-jazn-data.xml". When we install an EAR that utilizes ADF security, the system-jazn-data.xml file in the mserver directory is updated during deployment, but the one in the aserver directory is not. Each recycle of a managed server appears to replace the contents of the system-jazn-data.xml file in the mserver directory.
    Also, when I bring up Fusion Middleware Control and view the roles/policies of the ear, none are displayed in the UI. If I add a role/policy using Fusion Middleware Control, the new role/policy is placed in the system-jazn-data.xml file in the aserver directory, and the contents of the one in the mserver directory is completely replaced with the same contents as the one in the asever directory, overwriting the ones added during the deployment.
    Sorry this is getting so long...just wanted to share these additional observations.
    Edited by: mike mckeehan on Aug 19, 2009 8:21 PM

    Mike,
    this question should be posted to the FMW, WLS or Security forum. This forum is on development specific topics. The behavior of WLS clusters and managed donains is a bit out of scope here
    Frank

  • WLS 11 Policy migration during EAR deployment

    We are installing an ADF 11g EAR into our development instance of WLS 10.3.1 and are seeing some strange behavior with the ADF policy migration. During the EAR install from either the WLS console, or using WLST scripts, the ear deployment appears to create entries in our domains system-jazn-data.xml file in the .../config/fmwconfig directory. The policies work fine when testing the application. Users in the various application roles see expected security behavior. If we then start and stop a completely different managed server from the console, the entries that were in the system-jazn-data.xml file disappear, but the our application security continues to work as expected. If we then bounce the server our ear is deployed to, the entries show up again in system-jazn-data.xml.
    Can anyone explain this behavior and verify if this is expected?
    Additional Information: We have followed the enterprise deployment guide when setting up our middleware home directory. We have the following directory structure:
    /opt/oracle/admin/snidomain/aserver
    /opt/oracle/admin/snidomain/mserver
    The aserver directory contains the admin server and the mserver directory contains our managed servers. Each directory contains a config/fmwconfig subdirectory each containing a system-jazn-data.xml file. Each also contains a jps-config.xml file that specifies an XML policy provider pointing at "./system-jazn-data.xml". When we install an EAR that utilizes ADF security, the system-jazn-data.xml file in the mserver directory is updated during deployment, but the one in the aserver directory is not. Each recycle of a managed server appears to replace the contents of the system-jazn-data.xml file in the mserver directory.
    Also, when I bring up Fusion Middleware Control and view the roles/policies of the ear, none are displayed in the UI. If I add a role/policy using Fusion Middleware Control, the new role/policy is placed in the system-jazn-data.xml file in the aserver directory, and the contents of the one in the mserver directory is completely replaced with the same contents as the one in the asever directory, overwriting the ones added during the deployment.

    We are installing an ADF 11g EAR into our development instance of WLS 10.3.1 and are seeing some strange behavior with the ADF policy migration. During the EAR install from either the WLS console, or using WLST scripts, the ear deployment appears to create entries in our domains system-jazn-data.xml file in the .../config/fmwconfig directory. The policies work fine when testing the application. Users in the various application roles see expected security behavior. If we then start and stop a completely different managed server from the console, the entries that were in the system-jazn-data.xml file disappear, but the our application security continues to work as expected. If we then bounce the server our ear is deployed to, the entries show up again in system-jazn-data.xml.
    Can anyone explain this behavior and verify if this is expected?
    Additional Information: We have followed the enterprise deployment guide when setting up our middleware home directory. We have the following directory structure:
    /opt/oracle/admin/snidomain/aserver
    /opt/oracle/admin/snidomain/mserver
    The aserver directory contains the admin server and the mserver directory contains our managed servers. Each directory contains a config/fmwconfig subdirectory each containing a system-jazn-data.xml file. Each also contains a jps-config.xml file that specifies an XML policy provider pointing at "./system-jazn-data.xml". When we install an EAR that utilizes ADF security, the system-jazn-data.xml file in the mserver directory is updated during deployment, but the one in the aserver directory is not. Each recycle of a managed server appears to replace the contents of the system-jazn-data.xml file in the mserver directory.
    Also, when I bring up Fusion Middleware Control and view the roles/policies of the ear, none are displayed in the UI. If I add a role/policy using Fusion Middleware Control, the new role/policy is placed in the system-jazn-data.xml file in the aserver directory, and the contents of the one in the mserver directory is completely replaced with the same contents as the one in the asever directory, overwriting the ones added during the deployment.

  • TMG 2010 publishing Exchange 2010 OWA cannot change password if user must change password at first logon is set

    Hi,
     I have an odd issue whereby if I set "user must change password" on an AD account, the end user cannot logon, they're simply taken back to the OWA login page as if their password is incorrect.
    My setup is as follows:
    outer TMG -- uses a listener for email.contoso.com and is configured for no authentication.This uses a publishing rule to publish the inner TMG server. This server is not a domain member.
    inner TMG - uses a listener for email.contoso.com and is configured for NLTM\kerberos negotiation with forms authentication (Windows Active Directory). This server is a domain member and use a publishing rule to publish the internal CAS. Allow users to change
    password is selected in the publishing rules.
    Exchange 2010 SP1 - uses integrated windows and basic authentication. Has the appropriate registry key configured to allow users to change their AD password on first logon.
    I've registered an snp for "http/email.contoso.com mailserver-dc1", all SSL certificates being used are valid and my configuration used to allow users to login and change their password with "user must change password on first login"
    set in AD.
    If I launch a web browser on an internal server and point it to email.contoso.com I'm immediately presented with a generic Windows authentication request (similar to what's seen in ADFS) rather than the standard OWA page. No matter what I do, I cannot login
    and change my password using the correct URL. However if I point my browser at
    http://192.168.4.10/owa I'm prompted to login and I can change my password using the sam credentials.
    The only recent changes made are:
    - Disabling SSL 3.0 and enabling TLS  (http://www.isaserver.org/articles-tutorials/configuration-security/improving-ssl-security-forefront-threat-management-gateway-tmg-2010-published-web-sites.html)
    - Replacing the TMG listener certificates so that they now use SHA2 rather than SHA2 (certificates are trusted on each TMG server)
    Looking on the outer TMG and the DC logs I can see schannel errors which I believe are related to the problem. TMG monitoring also shows "Failed connection attempt: 1907 The user'spassword must be changed before logging on for the first time"
    I've checked that my inner TMG and DC are using the same certificate for server authentication and gone through this guide:
    http://blogs.technet.com/b/keithab/archive/2012/02/29/setting-up-and-troubleshooting-ldaps-authentication-in-forefront-tmg-2010.aspx
    If I try to use ldp.exe on the inner TMG, I get the error in the pic below
    Thanks
    IT Support/Everything

    Hi,
    You could try to analyze the TMG tracing and try the troubleshoot steps in the blog below.
    TMG 2010 – FBA, troubleshooting the change password feature 
    http://blogs.technet.com/b/isablog/archive/2012/05/07/tmg-2010-fba-troubleshooting-the-change-password-feature.aspx
    Best Regards,
    Joyce

Maybe you are looking for

  • Photoshop CS6 Lag in windows 8

    Hello, I did a search in the forum, but couldn't find something specific to windows 8. When photoshop CS6 was released. I took it for a spin on windows 7. Everything worked perfectly. Then my school offered it at a reduced price and we got a free ver

  • Zen Nano Plus can't see new so

    I have a GB CL Zen Nano Plus with 208 (WMA) songs in 6 folders (352 MB space used). When I add new WMA songs, they show up on Windows Explorer File Manager but won't play on the MP3 player. When the MP3 player is unconnected to the computer, I can't

  • Search for text in PDF by VBA with only Adobe Reader installed

    My problem is widely known and frequenty posted, for instance: "Can anyone help me to open and search for a specific text string in a PDF document, return a true or false indicator (and nothing else)?" The answers mostly refer to and include   Set gA

  • Can I put PC 5300 ram into my Powerbook?

    I want to install more ram in my 15" Powerbook G4 1.67 that uses PC 4200 DDR2. Is it correct that PC 5300 DDR2 is backwards compatible, and can be used in my G4? If so, I could move this Ram to a MacBook when I get one in the future. 15" PB 1.67 Mac

  • Unable to access e-bay home page

    able to access watch list and rest of site, but not home page