Binding property of a Panel header in Declarative Component

Hi,
I created a Custom Declarative component, which has a panel header, i wanted to expose the binding property of the panel header so that the users can add partial triggers to it programaticaly,
so i added a attribute of type RichPanelHeader, and used it in bindings of the panel header, but i am getting following error,
Unserializable value:RichPanelHeader[UIXFacesBeanImpl, id=dc_cnt_ph1] for key:PropertyKey[phBinding] in console,
and the value in bean is null.
the code used in Panel Header of Declarative component,
<af:panelHeader text="#{attrs.phScreenHdrTxt}" id="dc_cnt_ph1"
                      helpTopicId="#{attrs.phScreenHdrHelpTopicId}"
                      rendered="#{attrs.phScreenHdrRendered}"
                      inlineStyle="#{attrs.phScreenHdrInlineStyle}"
                      partialTriggers="#{attrs.phScreenHdrPartialTrigger}"
                      binding="#{attrs.phBinding}">
      <attribute>
          <attribute-name>phBinding</attribute-name>
          <attribute-class>oracle.adf.view.rich.component.rich.layout.RichPanelHeader</attribute-class>
        </attribute>   code used in the consumer app.
<app:Container id="c2" phScreenHdrTxt="tab1" phBinding="#{TestBean.panelHeader}">
    <f:facet name="body">
      <af:group id="g1">
        <af:outputText value="Tab1" id="ot1"/>
        <af:commandButton text="Refresh Panel Header" id="cb1"
                          actionListener="#{TestBean.refreshPh}"/>
      </af:group>
    </f:facet>
  </app:Container>
public class TestBean  implements Serializable{
  private RichPanelHeader panelHeader;
  public void refreshPh(ActionEvent actionEvent) {
    panelHeader.setText("Changed");
    AdfFacesContext.getCurrentInstance().addPartialTarget(panelHeader);
  public void setPanelHeader(RichPanelHeader panelHeader) {
    this.panelHeader = panelHeader;
  public RichPanelHeader getPanelHeader() {
    return panelHeader;
}is there any solution or way to expose the binding property of any component in a custom declarative component?

Hi,
as a last resort, try javax.faces.component.UIComponent as the component class. It seems that none of the UI components implements serializable. javax.faces.component.UIComponent is the JSF base class that they all use.
Let me know if this works. If not, I think I have another option that mayl do
Frank

Similar Messages

  • Remove/hide navigation panel header

    Hi,
    I tried making the expand and collapse icons to 0px and also made the detailed navigation iView "tray" property to false but it did not help me.
    I have to hide or remove the navigation panel header(the expand/collapse panel). Thanks in advance.
    Rgds,
    Janvi.

    Hi Patel,
    To hide the navigation panel header there is nothing to do with the theme editor. For that you have to edit the default frame work page.
    Open PCD>>Portal Users>>Std Portal users>> Default frame work page
    Select the Desktop inner page from the default inner page and edit>> select the delatiled navigation iview and choose edit...
    Select the Apppearence Tray from the Property Catogary drop down.
    Make the <b>Show Tray</b> option to NO... save and close ...
    This will hide the detailed navigation header.
    If u want to hide the header of other iviews like portal favorites in the navigation pannel these are the steps to follow.
    Regards
    gEorgE

  • Dynamic Declare Component cannot find property

    We currently have one main page calls a DDC(Dynamic declarative component) page fragment to create/update a record in database. The main page pass in a key to DDC when it loads DDC. The DDC binds to a view object with bind variable (get value from the passed key and load data from table) and several LOV attributes. Once user clicks submit button in main page, we wish that all the fields displayed in DDC could be committed to a database table to save.
    I use 11.1.1.5.
    In order to assign the bind variable of VO, we wrote a method in Application Module and make it invoked as the first executable when the main page is loaded. The deployment is fine. However, the runtime always thrown some exception to complain it cannot find property definition like this:
    ####<Aug 15, 2011 6:32:24 PM CDT> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <curmailts1-corp> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <6b1af60b3a40d50a:-6c52e935:131cfc2d522:-8000-000000000000024c> <1313451144494> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: Target Unreachable, 'WorkDescription' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
    Questions: 1) Why my method in Application Module not called?
    2) Whether DDC is a right solution for our use case? Any suggestion or sample are welcomed!
    Thanks,

    Hi,
    I appreciate if you can show your code, but before that, make sure if you're following this tip below:
    "Declarative Components are regular JSF components except that they are built as a composite out of existing ADF Faces components. Declarative components cannot have a PageDef file associated with it and instead use value or method attribute to communicate with the consuming page. When creating a declarative component, the attrs implicit object is defined that allow you to reference the component's exposed value attribute from ADF Faces components within.
    An input text field contained in an declarative component may reference a value attribute "compValue" defined on the declarative component by using the following EL
    #{attrs.compValue}
    The declarative component compValue attribute then would us an EL reference like shown next to read/write values from or to the ADF binding layer:
    #{bindings.attribute_name.inputValue}"
    (Oracle ADF Code Corner)
    Regards,

  • Display panel header based on radio selection

    hi i have a stiuation where i what to display panel header based on radio button selection for example if the value of radio is DSO it must dispaly all under <af:panelHeader,am in jdeveloper 11.1.1.6.0
    i have this radio
    <af:selectOneRadio value="#{bindings.Paymenttype.inputValue}"
                                       label="#{bindings.Paymenttype.label}"
                                       required="#{bindings.Paymenttype.hints.mandatory}"
                                       shortDesc="#{bindings.Paymenttype.hints.tooltip}"
                                       id="sor1" autoSubmit="true"
                                       binding="#{pageFlowScope.addMember.dpayment}">
                      <f:selectItems value="#{bindings.Paymenttype.items}"
                                     id="si10"/>
                    </af:selectOneRadio>
    and my panel header is
                  <af:panelHeader text="Bank Details" id="ph6"
                                   visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}"
                                 partialTriggers="sor1"
                                  inlineStyle="width:556px; border-color:Blue; border-style:ridge;">Edited by: adf009 on 2013/02/21 2:44 PM
    Edited by: adf009 on 2013/02/21 2:48 PM
    Edited by: adf009 on 2013/02/21 2:56 PM

    i have try that but it does not display panel header based on radio selection
    <af:selectOneRadio value="#{bindings.Paymenttype.inputValue}"
                                       label="#{bindings.Paymenttype.label}"                                  
                                       shortDesc="#{bindings.Paymenttype.hints.tooltip}"
                                       id="sor1" autoSubmit="true"
                                       binding="#{pageFlowScope.addMember.dpayment}"
                                       immediate="true">
                      <f:selectItems value="#{bindings.Paymenttype.items}"
                                     id="si10"/>
                    </af:selectOneRadio>
                    <af:panelFormLayout id="pfl7" labelAlignment="start">
                      <af:inputText value="#{bindings.Accounthldr.inputValue}"
                                    label="#{bindings.Accounthldr.hints.label}"
                                    required="#{bindings.Accounthldr.hints.mandatory}"
                                    columns="20"
                                    maximumLength="#{bindings.Accounthldr.hints.precision}"
                                    shortDesc="#{bindings.Accounthldr.hints.tooltip}"
                                    id="it22"
                                    visible='#{bindings.Paymenttype.inputValue eq "DRO"}'>
                        <f:validator binding="#{bindings.Accounthldr.validator}"/>
                      </af:inputText>
                      <af:inputText value="#{bindings.Bankaccountnumber.inputValue}"
                                    label="#{bindings.Bankaccountnumber.hints.label}"
                                    required="#{bindings.Bankaccountnumber.hints.mandatory}"
                                    columns="20"
                                    maximumLength="#{bindings.Bankaccountnumber.hints.precision}"
                                    shortDesc="#{bindings.Bankaccountnumber.hints.tooltip}"
                                    id="it20"
                                    visible='#{bindings.Paymenttype.inputValue eq "DRO"}'>
                        <f:validator binding="#{bindings.Bankaccountnumber.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.Bankaccountnumber.format}"/>
                      </af:inputText>
                      <af:selectOneChoice value="#{bindings.Bankaccounttype.inputValue}"
                                          label="#{bindings.Bankaccounttype.label}"
                                          required="#{bindings.Bankaccounttype.hints.mandatory}"
                                          shortDesc="#{bindings.Bankaccounttype.hints.tooltip}"
                                          id="soc12"
                                         visible='#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}'>
                        <f:selectItems value="#{bindings.Bankaccounttype.items}"
                                       id="si13"/>
                      </af:selectOneChoice>
                      <af:selectOneChoice value="#{bindings.Bankname.inputValue}"
                                          label="#{bindings.Bankname.label}"
                                          required="#{bindings.Bankname.hints.mandatory}"
                                          shortDesc="#{bindings.Bankname.hints.tooltip}"
                                          id="soc13"
                                           visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}">
                        <f:selectItems value="#{bindings.Bankname.items}"
                                       id="si14"/>
                      </af:selectOneChoice>
                      <af:inputText value="#{bindings.Branchcode.inputValue}"
                                    label="#{bindings.Branchcode.hints.label}"
                                    required="#{bindings.Branchcode.hints.mandatory}"
                                    columns="20"
                                    maximumLength="#{bindings.Branchcode.hints.precision}"
                                    visible="#{bindings.Paymenttype.inputValue==&quot;DRO&quot;}"
                                    shortDesc="#{bindings.Branchcode.hints.tooltip}"
                                    partialTriggers="branchnameId" id="it19">
                        <f:validator binding="#{bindings.Branchcode.validator}"/>
                      </af:inputText>
                      <af:inputComboboxListOfValues id="inputComboboxListOfValues1"
                                                    popupTitle="Search and Select: #{bindings.Branchname.hints.label}"
                                                    value="#{bindings.Branchname.inputValue}"
                                                    label="#{bindings.Branchname.hints.label}"
                                                    model="#{bindings.Branchname.listOfValuesModel}"
                                                    required="#{bindings.Branchname.hints.mandatory}"
                                                    visible="#{bindings.Paymenttype.inputValue==&quot;DRO&quot;}"
                                                    columns="#{bindings.Branchname.hints.displayWidth}"
                                                    shortDesc="#{bindings.Branchname.hints.tooltip}">
                        <f:validator binding="#{bindings.Branchname.validator}"/>
                      </af:inputComboboxListOfValues>
                      <af:inputText value="#{bindings.Paymenttype1.inputValue}"
                                    label="#{bindings.Paymenttype1.hints.label}"
                                    required="#{bindings.Paymenttype1.hints.mandatory}"
                                    columns="#{bindings.Paymenttype1.hints.displayWidth}"
                                   visible="#{bindings.Paymenttype.inputValue==&quot;DRO&quot;}"
                                    maximumLength="#{bindings.Paymenttype1.hints.precision}"
                                    shortDesc="#{bindings.Paymenttype1.hints.tooltip}"
                                    id="it21">
                        <f:validator binding="#{bindings.Paymenttype1.validator}"/>
                      </af:inputText>
                    </af:panelFormLayout>
                  </af:panelFormLayout>
                  <af:panelHeader text="Bank Details" id="ph6"
                                  visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}"                           
                                  partialTriggers="sor1"
                                  inlineStyle="width:556px; border-color:Blue; border-style:ridge;">
                    <f:facet name="context"/>
                    <f:facet name="menuBar"/>
                    <f:facet name="toolbar"/>
                    <f:facet name="legend"/>
                    <f:facet name="info"/>
                    <af:panelFormLayout id="pfl6"
                                        visible="#{bindings.Paymenttype.inputValue eq &quot;DRO&quot;}"                                  
                                        partialTriggers="sor1"
                                        inlineStyle="width:550px; border-color:Blue; border-style:ridge;">
                      <af:inputText value="#{bindings.Accounthldr.inputValue}"
                                    label="Account Holder Name"
                                    required="#{bindings.Accounthldr.hints.mandatory}"
                                    columns="#{bindings.Accounthldr.hints.displayWidth}"
                                    maximumLength="#{bindings.Accounthldr.hints.precision}"
                                    shortDesc="#{bindings.Accounthldr.hints.tooltip}"
                                    id="it14" partialTriggers="sor1">
                        <f:validator binding="#{bindings.Accounthldr.validator}"/>
                      </af:inputText>
                      <af:selectOneChoice value="#{bindings.Bankname.inputValue}"
                                          label="Bank"
                                          required="#{bindings.Bankname.hints.mandatory}"
                                          shortDesc="#{bindings.Bankname.hints.tooltip}"
                                          id="soc11" partialTriggers="sor1"
                                          immediate="true"
                                          contentStyle="width:190px;">
                        <f:selectItems value="#{bindings.Bankname.items}"
                                       id="si11"/>
                      </af:selectOneChoice>
                      <af:inputText value="#{bindings.Bankaccountnumber.inputValue}"
                                    label="Account Number"
                                    required="#{bindings.Bankaccountnumber.hints.mandatory}"
                                    columns="#{bindings.Bankaccountnumber.hints.displayWidth}"
                                    maximumLength="#{bindings.Bankaccountnumber.hints.precision}"
                                    shortDesc="#{bindings.Bankaccountnumber.hints.tooltip}"
                                    id="it16" partialTriggers="sor1">
                        <f:validator binding="#{bindings.Bankaccountnumber.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.Bankaccountnumber.format}"/>
                      </af:inputText>
                      <af:selectOneChoice value="#{bindings.Bankaccounttype.inputValue}"
                                          label="Account Type"
                                          required="#{bindings.Bankaccounttype.hints.mandatory}"
                                          shortDesc="#{bindings.Bankaccounttype.hints.tooltip}"
                                          id="soc10" partialTriggers="si10"
                                          contentStyle="width:190px;">
                        <f:selectItems value="#{bindings.Bankaccounttype.items}"
                                       id="si12"/>
                      </af:selectOneChoice>
                      <af:inputComboboxListOfValues id="branchnameId"
                                                    popupTitle="Search and Select: #{bindings.Branchname.hints.label}"
                                                    value="#{bindings.Branchname.inputValue}"
                                                    label="Branch Name"
                                                    model="#{bindings.Branchname.listOfValuesModel}"
                                                    required="#{bindings.Branchname.hints.mandatory}"
                                                    columns="20"
                                                    shortDesc="#{bindings.Branchname.hints.tooltip}"
                                                    partialTriggers="sor1"
                                                    autoSubmit="true">
                        <f:validator binding="#{bindings.Branchname.validator}"/>
                      </af:inputComboboxListOfValues>
                      <af:inputText value="#{bindings.Branchcode.inputValue}"
                                    label="Branch Code"
                                    required="#{bindings.Branchcode.hints.mandatory}"
                                    columns="#{bindings.Branchcode.hints.displayWidth}"
                                    maximumLength="#{bindings.Branchcode.hints.precision}"
                                    shortDesc="#{bindings.Branchcode.hints.tooltip}"
                                    partialTriggers="branchnameId" id="it18">
                        <f:validator binding="#{bindings.Branchcode.validator}"/>
                      </af:inputText>
                      <af:inputText value="#{bindings.Debitorderdate.inputValue}"
                                    label="Date"
                                    required="#{bindings.Debitorderdate.hints.mandatory}"
                                    columns="#{bindings.Debitorderdate.hints.displayWidth}"
                                    maximumLength="#{bindings.Debitorderdate.hints.precision}"
                                    shortDesc="#{bindings.Debitorderdate.hints.tooltip}"
                                    id="it17" partialTriggers="sor1">
                        <f:validator binding="#{bindings.Debitorderdate.validator}"/>
                      </af:inputText>
                    </af:panelFormLayout>
                  </af:panelHeader>this values are on the same VO
    Edited by: adf009 on 2013/02/21 5:23 PM

  • Adf panel header facets disappear in internet explorer 8, 9

    Hello!
    I am using JDev&ADF 11.1.2.2 and my application works fine in Firefox 15.
    However, when opening it in IE 8 or 9, I get a problem with panel header facets.
    I have some jsff pages containing master-detail relationship with panel headers both in the master and the detail part.
    Every page is based on a page template. Every panel header contains Text and Toolbar buttons.
    In IE, when I try to change any attribute in the master table, Text and Toolbar disappear from the master panel header. I only can get them back if I refresh the page.
    I do not get this error when not using master-detail relationship, i.e. when I put only one table per page.
    I do not get this error in Firefox.
    Thank you in advance.

    Hi,
    I test this issue, actually, in IE 11, the option "set as backgroud" is grayed out after I applied policy  Administrative Templates > Control Panel > Personalization > Prevent changing desktop background, but seems not suitable for
    other versions of IE.
    You can try other solutions listed in the similiar thread
    How to disable the "Set as Desktop background"?<o:p></o:p>
    http://social.technet.microsoft.com/Forums/en-US/889447df-8452-44b4-bcdf-bf217b75ce6f/how-to-disable-the-set-as-desktop-background?forum=windowssteadystate
    Regards<o:p></o:p>
    Yolanda
    TechNet Community Support

  • Extending af:convertDateTime (and binding property)

    Hello,
    I have an <af:convertDateTime> in the page:
    <af:inputDate id="IDATE" value="#{row.bindings.Date.inputValue}">
        <af:convertDateTime pattern="#{bindings.TABLE.hints.Date.format}"/>
    </af:inputDate>I want to customize the converter, but there is no "binding" property as with other components.
    From our tests, the method "format" in the bean pointed by "pattern" seems to return a null String.
    By googling we discovered that the class behind the converter is oracle.adf.rich.DateTime.
    My question are:
    1. Is it true that, in the case of a null String returned by "format", the converter acts internally by checking the current locale and providing a coherent format for the locale?
    2. Why is not oracle.adf.rich.DateTime availble publicly and why is there no binding property?
    3. What is the best approach to extend the converter?
    Thanks.

    Thanks for your answer, but I'll try to be more precise about my problem.
    What we would really like to know is how that af:convertDateTime works internally and extend it's behaviour by custom providing a bean to "pattern" which behaves the following way, depending on the situation:
    1. either return the same pattern String the converter would use internally by default
    2. or return a custom String
    but again, why isn't oracle.adf.rich.Date available?

  • Changing the background image on a panel header

    I just need to get a gradient image to display on panel header. I've gotten a custom skin to work and it seems to display properly in JDeveloper but not in IE or Firefox (really just need IE).
    I was trying
    af|panelHeader {
    background-image:url("/images/windowlet.gif") repeat-y;
    color: black;
    font-weight: bold;
    font-size: 12px;
    position: fixed;
    }

    Hi Dan,
    You might want to take a look at the following thread:
    Re: ADF Skinning panelbox:header
    It's about ADF Skinning panelbox:header
    I explain there something about path settings and that you probably have to user the reference to your J2eewebcontext-root.
    Good Luck
    Luc Bors

  • Remove Navigation panel header  scrollbar and Design Bar

    Hi guys,
    I need your help. I want to remove the Navigation panel header  scrollbars and Design Bar from the Navigation Panel.
    Please how can I do that.
    Looking forward for your response.
    Dakata A. Ibrahim

    Hi Abdu,
    You can change them from the Theme editor under System Administration-> Portal Display. Edit the required theme .
    You can change the height and width of the scroll bar images to 0px. Similarly for the design bar also you could do that else you can make the url to design bar to some blank image that coincides with your background color.
    Hope this helps,
    Regards,
    Uma.

  • Declarative component attribute binding

    Hi,
    I'm sure this is an easy one, but I can't find the answer on the forum.
    using JDev 11.1.1.3
    I have created a declarative component with text fields bound to attributes as described in the ADF Code Corner, created the ADF Component lib etc. When I use this component in a task flow in another project, I set the properties to fields in my managed bean which is declared in the task flow, however on submission I find that my text input fields (RichInputText objects) are null i.e. the binding didn't work. I'm not sure if I should be creating 'attribute bindings' in the page definition, or if teh managed bean should be declared in the ADF component library, or if this should just work and I have done something silly.
    The examples usually bind the exposed attribute properties to a data control field, I'm not sure how it works for a managed bean, can anyone point me in the right direction?
    thanks in advance
    steve

    Hi,
    it should work for managed beans as well. If your managed bean exposes a setter/getter pair, then this can be bound to the declarative component attribute binding. However, keep in mind that if the managed bean is in request scope, the bean is refreshed and this re-setted for each request. So the bean should have a scope of at least viewScope
    Frank

  • Calculating a Panel header height

    I'm trying to calculate the height of a Panel header. The Flex language reference includes a method getHeaderHeight(), but I cannot use it (see the trace statement below). Is there another way to calculate the header height?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                private function init():void{
                    //trace("Header height="+panel.getHeaderHeight())
            ]]>
        </mx:Script>
        <mx:Panel  id="panel" width="249" height="213"/>
    </mx:Application>

    getStyle("headerHeight")  Works only in the case if you have set headerHeight of the panel.Other wise not.
    with Regards,
    Shardul Singh

  • Can't use binding property of a commanButton inside a datatable

    I have commandButtons inside a datatable.
    The datatable is iterated over ArrayList containing custom PageSnippets objects, which look like this :
    public class PageSnippet {
              private int index = 0;
              private String name = null;
              private String id      = null;
              private UICommand upBtn = new UICommand();
              private UICommand downBtn = new UICommand();
              public PageSnippet (int index, String name, long id, int snippetCount) {
                   this.index = index;
                   this.name = name;
                   this.id = String.valueOf(id);
                   setBtnsVisibility(snippetCount);
               * getters
              public String getId() {
                   return id;
              public int getIndex() {
                   return index;
              public String getName() {
                   return name;
              public UICommand getUpBtn() {
                   return upBtn;
              public UICommand getDownBtn() {
                   return downBtn;
               * Sets button visibility.
              public void setBtnsVisibility (int snippetCount) {
                   upBtn.setRendered(index > 1);
                   downBtn.setRendered(index < snippetCount);
         }The two buttons are binded to the the pageSnippet's upBtn and downBtn objects in order to set their rendered status:
    <h:commandButton
    actionListener="#{pageEditBean.moveSnippet}" type="submit"
    image="../images/btn_up.png"
    binding="#{snippet.upBtn}"/>I got null nuinter exception, datable variable snippet is reported null
    and getter method of the backing bean getPageSnipets is not called at all.
    I got null nuinter exception even when rendered property of the datatable is false.
    When I remove binding property of the buttons everything works fine.
    When instead of binding property I use rendered property of the commandButton and in the getter metthods I return boolean:
    public boolean getUpBtn() {
                   return downBtn.isRendered();
              } Everything is OK as well.
    MyFaces 1.1.5
    JSDK 1.4.2_08
    Tomcat 4.1.3
    Have anybody encountered such problem?
    Is there any workaround?
    Or can anybody confirm that binding a commandButton to a backing UICommand object inside a datatable works for him?
    thanks in advance

    Thanks a lot.
    You're right, the backing bean has request scope.
    I found out (the hard way) that there's a bug in JSF that prevents a commandButton from working, when the button's rendered property is binded to a backing bean's property.
    But this solution works.
    But I got another problem:
    When I click the button, I got java.lang.NoSuchMethodError
    Even clicking the button outside the datatable returns the exception.
    Again, when I set the bean's scope to session it works.
    I don't understand that, except for the datatable business, commandButtons with other request scope beans work well.
    Thanks

  • HP DC5700 P5BW-BTX Motherboard - front panel header pinout

    Greetings all ...
    I have been searching everywhere for the front panel header pinout of the P5BW-BTX Motherboard that is in the HP DC5700.
    Does anyone have this? It is unfortunately omitted from all the hardware and technical manuals.
    Thanks in advance
    Kenneth A Spencer
    [You never know, you might learn something that you never knew: from my new book: All about your Computer.]
    This question was solved.
    View Solution.

    OK: for future reference BeatGr et al, here is the pinout for the front panel header connector on the HP P5BW-BTX motherboard:
    LED HDD  1 10  LED PWR
    LED HDD  2 11  LED PWR
    NC       3 12  SWI PWR
    NC       4 13  SWI PWR
    NC       5 14  NC
    NC       6 15  NC
    ->18     7 16  NO PIN
    NC       8 17  NC
    NC       9 18  ->7  (pins 7 and 18 are permanently shorted)
    I am not sure of the significance of the shorted pins 7 and 18 - maybe someone else knows.
    Best wishes,
    Kenneth Spencer
    [You never know, you might learn something that you never knew: from my new book: All about your Computer. 230 pages, perfect bound. First 57 pages are on Google Books.]

  • Error while saving changes of declarative component to MDS

    Hi,
    Using ADF Faces 11gR1PS1.
    I am trying to create a declarative component where user can close a panel box (not just minimize) by setting rendered property to false. It works fine.
    Next I tried to save the attribute change to MDS so that user settings are preserved across sessions. However I got the following error:
    <FilteredPersistenceChangeManager><_getQualifiedTagName> WebAppDesignContext is not available at application scope. Please ensure that your application is built as a 'Fusion Web Application (ADF)', and that taglib.jar and facesconfigmodel.jar are in class path.
    <FilteredPersistenceChangeManager><_isChangeAllowedThroughPersistentChangeManager> Could not obtain tag name for the component being changed. Component ref: RichPanelBox[UIXFacesBeanImpl, id=dc_pb2]
    <FilteredPersistenceChangeManager><_addDocumentChangeImpl> The DocumentChange is not configured to be allowed for the component: RichPanelBox[UIXFacesBeanImpl, id=dc_pb2]Following is the page code:
              <af:panelBox text="#{attrs.p2Header}" id="dc_pb2"
                           rendered="#{attrs.p2Header ne null and dashboardXBean.portletRendered.dc_pb2}"
                           showDisclosure="false">
                <af:componentDragSource discriminant="portlet"/>
                <f:facet name="toolbar">
                  <af:commandImageLink id="p_cil2"
                                       icon="/images/removeselected_dwn.png"
                                       hoverIcon="/images/removeselected_ovr.png"
                                       depressedIcon="/images/removeselected_ena.png"
                                       actionListener="#{dashboardXBean.handleHideEvent}"
                                       rendered="#{attrs.sideNavRendered}">
                    <f:attribute name="portletId" value="dc_pb2"/>
                  </af:commandImageLink>
                </f:facet>
                <af:facetRef facetName="p2"/>
              </af:panelBox>Following is the code in the managed bean to persist changes:
        private void saveShowHideChange(String portletId, boolean isRendered) {
            FacesContext fc = FacesContext.getCurrentInstance();
            ChangeManager cm = RequestContext.getCurrentInstance().getChangeManager();
            //ChangeManager pcm = AdfFacesContext.getCurrentInstance().getPersistentChangeManager();
            UIComponent puc = boundedDashboard.findComponent(portletId);
            ComponentChange pcc = new AttributeComponentChange("rendered", Boolean.toString(isRendered));
            cm.addComponentChange(fc, puc, pcc);
        }I am not really sure if the above code needs to be in the component managed bean or in the bean of the page that uses this declarative component.
    Any pointers are appreciated.
    Thanks,
    Husain

    Thanks for the reply Frank.
    For declarative components do we have separate renderer?
    The [Developers Guide|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/ad_persist.htm#BABBGCJA] didnt seem very helpful on this topic.
    Can you point me to some reference material if available.
    Thanks,
    Husain

  • Creating Declarative Component problem.

    Dear all
    I use Jdeveloper 11.1.1.4.0.
    I am planing to create an ADF declarative Component.The component will be a panel collection layout which contains menu (Action>Export to excel) and command button (Add new record).
    The scenario will be like this:
    1- The developer will drag my new component (myCustomPanel) to his page and will drag the data control inside this comonent to create ADF Read only table.
    2- at runtime the table should appear surrounded by (myCustomPanel) and the user can use the "Action" menu to export the content to Excel, and can click on "Add new Record"to navigate to another page to add record.
    The solution I made is:
    in my "myCustomPanel" I created two attributes , the first one is "tableID" and the second is "targetPage" represents the outcome of the navigation to the "Add new record" page.
    The developer must provide these two attributes when using "myCustomPanel".
    The problem is:
    at runtime when the user click on "Add new record" button an error is raised .
    The error in this line:
    <af:commandToolbarButton text="Add" id="dc_ctb1" action="#{attr.targetPage}"/>
    the action property of the command button expects a managed bean. But i proved it with page attribute.
    I want to dynamicly provides the naviation outcome to the button using attribute name. Is this possible?
    regards

    Thank you so much for you replying.
    Your solution is helpful
    I tried to do the following :
    1- in my "customcomponent" project I removed the attribute "taregtPage"
    2- I added a method attribute
    name: targetPage
    method-signature: java.lang.String method()
    <af:componentDef var="attrs" componentVar="component">
        <af:panelCollection id="collection">
          <f:facet name="menus">
            <af:menu text="Action" id="dc_m1">
              <af:commandMenuItem text="Export To excel" id="dc_cmi1"/>
            </af:menu>
          </f:facet>
          <f:facet name="toolbar">
            <af:toolbar id="dc_t1">
              <af:commandToolbarButton text="Add" id="dc_add"
                                       action="#{attrs.targetPage}"/>
            </af:toolbar>
          </f:facet>
          <f:facet name="statusbar"/>
          <af:facetRef facetName="tableContent"/>
        </af:panelCollection>
        <af:xmlContent>
          <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
            <display-name>dhamanTable</display-name>
            <facet>
              <facet-name>tableContent</facet-name>
            </facet>
            <attribute>
              <attribute-name>tableID</attribute-name>
              <attribute-class>java.lang.String</attribute-class>
              <required>true</required>
            </attribute>
            <component-extension>
              <component-tag-namespace>dhaman.custom</component-tag-namespace>
              <component-taglib-uri>/componentLib</component-taglib-uri>
              <method-attribute>
                <attribute-name>targetPage</attribute-name>
                <method-attribute>
                  <attribute-name>targetPage</attribute-name>
                  <method-signature>java.lang.String method()</method-signature>
                </method-attribute>
                <required>false</required>
              </method-attribute>
            </component-extension>
          </component>now My question is how to use it?
    I do not understand this
    action="#{component.handleTargetPage}" Do you mean that i will create amanaged bean "component" and add a methos "handleTargetPage"??
    Edited by: ta**** on Mar 9, 2011 1:58 PM
    Edited by: ta**** on Mar 9, 2011 2:00 PM
    Edited by: ta**** on Mar 9, 2011 2:01 PM

  • Declarative component stops working after taskflow-call-in-popup

    Hi!
    JDev 11.1.1.3.0
    I need a component, much like the commandToolbarButton, but I have the requirement that the user should still be able to select from the popup even if the button is disabled.
    So I created a declarative component, combining two buttons and a popup with a menu in a panelGroupLayout. The one button, the mainButton, actually executes the action, the other (with an icon only) opens a menu in a popup.
    The user selects an item from the popup, the component then PPRs the main button in code to display the user's choice in the main buttons text.
        <af:panelGroupLayout layout="horizontal" id="${component.id}_layout">
          <af:commandToolbarButton id="mainButton" text="#{component.mainButtonText}"
                                   clientComponent="true" disabled="#{!component.enabled}"
                                   partialSubmit="true"
                                   actionListener="#{component.mainButtonPressed}"/>
          <af:commandToolbarButton id="menuButton" icon="/images/arrowDownComboBox.png"
                                   partialSubmit="true" disabled="#{!component.enabled}">
            <af:showPopupBehavior alignId="mainButton" align="afterStart" popupId="commandPopup"/>
          </af:commandToolbarButton>
          <af:facetRef facetName="extensionButton"/>
          <af:popup id="commandPopup" contentDelivery="lazyUncached" childCreation="immediate"
                    clientComponent="true">
            <af:menu id="commandMenu" clientComponent="true" binding="#{component.commandMenu}"/>
          </af:popup>
        </af:panelGroupLayout>That works fine ... until the user opens a taskflow in a popup.
    I have a bounded taskflow, jspx-based, opened by a button with an action that navigates to a taskflow-call activity in a modal dialog. The user opens the taskflow, does what needs to be done, then closes the dialog.
    Still fine.
    But, after the dialog has closed, when the user selects an item from the popup menu of my declarative component, I suddenly get an NPE:
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <<RegistrationConfigurator><handleError> Server Exception during PPR, #1
    java.lang.NullPointerException: UIComponent is null
         at org.apache.myfaces.trinidad.component.UIXComponent.addPartialTarget(UIXComponent.java:498)
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTarget(RequestContextImpl.java:513)
         at com.ge.med.web.components.button.CommandComboButton.refreshMainButton(CommandComboButton.java:213)
         at com.ge.med.web.components.button.CommandComboButton.setSelectedCommand(CommandComboButton.java:177)
         at com.ge.med.web.components.button.CommandComboButton.commandItemPressed(CommandComboButton.java:243)
         at com.ge.med.web.components.button.CommandComboButton.processAction(CommandComboButton.java:129)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)To track the problem down, I have pointed the binding attribute of the declarative component to a property in a session-scoped bean, to see what the component looks like that is set, what the children and grand children are, and who the parent is.
    This prints:
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <Setter called: DemoComboButtonComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@1762a87, id=demoAdd]>
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <Parent: RichPanelGroupLayout[UIXFacesBeanImpl, id=cbll1]>
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <Children: [RichPanelGroupLayout[UIXFacesBeanImpl, id=demoAdd_layout]]>
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <Grand kids: [RichCommandToolbarButton[UIXFacesBeanImpl, id=mainButton], RichCommandToolbarButton[UIXFacesBeanImpl, id=menuButton], RichPopup[UIXFacesBeanImpl, id=commandPopup]]> That's fine. But when I add the same debug code to my setSelectedCommand() method (which is called when the user selects an item from the popup's menu), I get:
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <I am: DemoComboButtonComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@ba2b1c, id=demoAdd]>
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <My Parent: null>
    <26.04.2011 19:07 Uhr MESZ> <Notice> <Stdout> <BEA-000000> <My Children: []> The empty children property explains the NPE. This NPE only happens when the user selects an item from the popup after the dialog has closed.
    Debugging showed that the new DemoComboButtonComponent is created during the restoration of (tree) state after the closing of the modal dialog. But why has it no parent? And where are the kids?
    Could the binding of the declaratice component to a session-scoped bean be the problem? Somehow prevent the state mechanism from re-building the UI component tree correctly?
    I am at the end of my wits.
    Any help is appreciated!
    Sascha

    Hi Frank,
    no, not yet. I had the feeling that it's me who is doing something wrong. Declarative components are pretty common, right? So are taskflow calls in dialogs. Someone should have noticed if there's a bug in the framework, right?!
    But I changed the scope of the bean (to backing scope and request scope) that the declarative component is bound to and I still get the error.
    I will try to create a simpler test case, and if I can reproduce with that, then I will file a bug, if there's no one that can explain the phenomenon.
    Sascha

Maybe you are looking for

  • Why are e-mails (subject line) and ("to" line) still staying in bold print after they have been read?

    After I read an e-mail, and after I hit the back space arrow, to look at my list of e-mails, the previously read e-mail still shows up in bold type. Usually when an e-mail is read, and you then look at your list of e-mails, the e-mails that have been

  • Wireless keeps disconnect​ing

    I have an old Portege M200 tablet laptop using Windows XP that has the intel(R) pro/wireless 2200BG wireless connection that was communicating fine with my old Linksys wireless-g router. I recently replaced the wireless router to a NetGear WNR1000v2

  • HT1586 AC Power Cord for Apple TV 1

    i lost my AC Power Cord for Apple TV 1 . Anyone know where I can buy a replacement for this?

  • Zip split to multiple volumes

    I�ve been looking for information about zipping files and splitting the zip file to multiple volumes of a fixed size. I haven�t found any information regarding this topic. Anyone has any ideas of how to do this? Is this intended to be done at the pro

  • ABAP WebService

    We have our own namespace /ZXY/. When we create a WebService with the Wizard we define a Service-Definition as /ZXY/MYWEBSERVICE. The reason why we keep the service in our namespace is, that we want to transport it as part of our product to customers