Problem with attributes in custom component

Hi All,
I am creating a simple jsf PanelGrid custom component....in that component I am adding two new attributes....
when I use that tag in my jsf application it is rendering fine in the client side....but the parent class that is PanelGrid component's attributes are not inheriting to my custom panelgrid....
can any one tell me how can I use the attributes of the super class PanelGrid??
Thanks...

Have you configured the attributes in the tag library descriptor?

Similar Messages

  • Problem with ClientListener in custom component

    I have custom declarative component:
    <af:commandImageLink icon="/img/trash.png" actionListener="#{TrashButtonBean.deleteRow}">
    <af:setActionListener from="#{row.rowKeyStr}" to="#{TrashButtonBean.currentRowKetStr}"/>
    *<af:clientListener type="click" method="confirm( 'Confirm delete' ); "/>*
    </af:commandImageLink>
    It works but without ClientListener. Investigating with Firebug I found that onclick event always returns false and blocks operation:
    <span class="nodeLabelBox repTarget">&lt;<span class="nodeTag">a<span class="nodeAttr editGroup"> <span class="nodeName editable">id="<span class="nodeValue editable">j_id_id4:j_id_id8:j_id_id14:7:j_id_id46:j_id_id1pc3"<span class="nodeAttr editGroup"> <span class="nodeName editable">class="<span class="nodeValue editable">xup"<span class="nodeAttr editGroup"> <span class="nodeName editable">href="<span class="nodeValue editable">#"<span class="nodeAttr editGroup"> <span class="nodeName editable">onclick="*<span class="nodeValue editable">return false;*"<span class="nodeBracket editable insertBefore">&gt;
    <div class="nodeChildBox"><div class="nodeBox emptyNodeBox repIgnore selected"><div class="nodeLabel"><span class="nodeLabelBox repTarget"> &lt;<span class="nodeTag">img<span class="nodeAttr editGroup"> <span class="nodeName editable">id="<span class="nodeValue editable">j_id_id4:j_id_id8:j_id_id14:7:j_id_id46:j_id_id1pc3::icon"<span class="nodeAttr editGroup"> <span class="nodeName editable">class="<span class="nodeValue editable">xus"<span class="nodeAttr editGroup"> <span class="nodeName editable">src="<span class="nodeValue editable">/ReusableComponentsTest-ViewController-context-root/img/trash.png"<span class="nodeBracket editable insertBefore">/&gt;
    </div>
    </div>
    </div>
    <div class="nodeCloseLabel"><span class="nodeCloseLabelBox repTarget">&lt;/<span class="nodeTag">a&gt;
    Any idea.
    Kuba
    </div>

    Hi,
    simplyadf
    Using af:popup I get PPR - null pointer exception, because popup behavior blocks af:setActionListener that I use to pass rowKeyStr to managed bean.
    coomar
    Your solution also doesn't work. here is my code:
    &lt;af:componentDef var="attrs" componentVar="TrashButton"&gt;
    &lt;script type="text/javascript"&gt;
    function confirmDelete(){
    var agree=confirm('Confirm delete');
    if (agree){
    return true ;
    }else{
    return false;
    &lt;/script&gt;
    &lt;af:commandImageLink icon="/img/trash.png" actionListener="#{TrashButtonBean.deleteRow}"&gt;
    &lt;af:setActionListener from="#{row.rowKeyStr}" to="#{TrashButtonBean.currentRowKetStr}"/&gt;
    &lt;af:clientListener type="click" method="confirmDelete"/&gt;
    &lt;/af:commandImageLink&gt;

  • Problem with checkbox on table component

    Hello i am having a problem with checkbox in table component
    i am developing something like a shopping cart app and i have a checkbox in my table component , i want users to select items from the checkbox to add to thier cart, They can select the items from cartegory combobox , my problem is when they select the items from the checkbox if they select another category the alread selected once do not display in my collection opbject please how can i maintain the state of the already selected items in my collection object

    Hi,
    Please go through the tutorial "Understanding scope and managed beans". This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
    The details of the selected items need to be stored in an object that is in session scope.
    Hope this helps
    Cheers
    Girish

  • Problems with Automatic Workflow Customizing

    Hi!
    I am having problems with Automatic Workflow Customizing (SWU3). I am trying to execute "Configure RFC Destination" manually. I receive the message "Synchronization of passwords failed".
    We are using CUA and it is therefor not possible to create the user from SWU3 which means that WF-BATCH has been created in CUA with a pw which is then filled in by me when executing "Configure RFC Destination".
    WF-BATCH has authorization SAP_NEW, SAP_ALL
    My user also has SAP_NEW and SAP_ALL and usergroup SUPER.
    Does anyone know what might be the problem?
    Sincerley
    Anders Öhrling

    Hello Anders,
    Check if the user is locked in SU01. Then check if your user has been created in CUA.
    It is recommended to delete WF_BATCH. The system will auto create the user ID WF-BATCH and synchronize the password.
    Do let me know if your problem is resolved.
    Thank you.
    Regards,
    Manomeet
    - Award points if helpful -

  • Help with creating a custom component.

    Hi. I have created a really simple custom component called
    myComp. It is a simple Canvas 100 pixels x 100 pixels with an Image
    control component.
    <mx:Canvas>
    <mx:Image id="image1">
    </mx:Canvas>
    After instantiating the component in Main.mxml eg. var
    pic1:myComp = new myComp(); I am having a problem setting the
    source property of the Image component.
    "image1" is the id of mx:Image in the custom compoenent so I
    tried pic1.image1.source = "assets/ball.jpg" but I get a run time
    error "Error #1009: Cannot access a property or method of a null
    object reference".
    Don't really know what I am doing wrong.
    Any help please!

    In your custom component, try adding a bindable public var
    which contains the path to your image. Also, set the image.source
    to this var.
    In your main app, set the var within the <mx:> tags of
    the custom component. Since it is a public var, it will show up in
    the code hint. You can also now change the image var from the main
    app anytime you like using ActionScript code.

  • Problem with AddRow() in custom matrix on System Form

    Hello all,
    I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
    However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
    My code is simple:
            [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                // Add matrix line
                Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
                pMatrix.AddRow();
                // Set matrix line data
    The matrix shows ok in the system form, inside a new folder.
    What is the problem with my code?
    Is there any way to add rows to a custom matrix in a system form?
    This code runs ok if executed in a custom form...
    Thanks!
    Manuel Dias

    hi.
    R u facing any problem ...
    actually add row and del row both are same.
    in normal customization form and system form matrx...
    Any problem are u facing...

  • Problem with SCCM 2012 R2 Component status messages

    Hello,
    I have a strange problem with Component status messages. When I try to view all messages from any component, I receive an error message stating that the data could not be recieved from the database. Reporting point is installed.
    And when I try to run a report, nothing happens. The report doesn't run.
    Any idea??

    Oooopsss... Status messages disappeared again !! nothing suspect in srsrp.log and compmon.log.
    There are these entries in compsumm.log that got my attention
    The machine account will be used for ["Display=\\DataBaseServer.domain\"]MSWNET:["SMS_SITE=CPS"]\\DataBaseServer.domain\.~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.643+300><thread=3152 (0xC50)>
    Successfully made a network connection to \\DataBaseServer.domain\ADMIN$.~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.643+300><thread=3152 (0xC50)>
    Failed to read Operations Management component registry key values on DataBaseServer.domain; error = 5 (0x5).~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.909+300><thread=3152 (0xC50)>
    Failed to read in current property values and initialize COpsMgmtComponent object; error = 5 (0x5).~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.909+300><thread=3152 (0xC50)>
    Error: Failed to initialize the COpsMgmtComponent object for component SMS_SITE_SQL_BACKUP_S206UT24.CSDPS.QC.CA on machine DataBaseServer.domain. : L’opération a réussi.~~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.909+300><thread=3152
    (0xC50)>

  • Problem with disabling t:inputCalendar component

    I use <t:inputCalendar> component from the tomahawk library. I am facing a problem with it like I am not able to disable it completely. I am able to disable only the input field with it. The image that pops up the calendar couldn't be disabled.
    Pls help if some one has tried this.

    try setting the visibility or render settings maybe

  • Problem with attribute id in taglib

    <req:headers id="hdrs">
              <jsp:getProperty name="hdrs" property="name"/> = <jsp:getProperty
              name="hdrs" property="header"/>
              </req:headers>
              When the JSP gets compiled it throws an error that is does not know about
              property "hdrs". Why?
              

              Try limiting the length of the session id.
              This is in either the weblogic.xml/web.xml
              files. You can get the dtd in the 6.0 doc.
              "Thierry Cools" <[email protected]> wrote:
              >Hi I have a problem with the session id that is generated in tha address bar
              >of my brower
              >When I start my application the following link appears
              >
              >http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=Olw9VMc
              >0I1Z52YMgycyD23c8L4Ch2FurHLwbV2WhZw731dR3mBtJ|8186718416288373359/-140823374
              >1/7001/7002
              >
              >It seems that Weblogic 6.0 generates '/' characters in the session id.
              >This has for consequences that the servlet engine is taking the session id
              >in its context path, so that none of my links are working anymore.
              >
              >Could someone give me a clue to solve this problem
              >Thanks,
              >Thierry
              >
              >--
              >
              >Thierry Cools
              >
              >Senior Java Developer
              >S1 Brussels
              >Kleine Kloosterstraat, 23
              >1932 st. Stevens-Woluwe
              >Belgium
              >Tel : +32 2 200 43 82
              >Email : [email protected]
              >
              >
              >
              

  • Problem with Mail and customized keyboard layout

    I have created a customized keyboard layout in XML, it loads and works perfectly with all applications except Apple Mail. I noticed on a googlegroup that somebody has the same problem. How can I submit this Mail bug to Apple?

    download and run Find Any File to search for  "Antidote".
    FAF can search areas that Spotlight can't like invisible folders, system folders and packages. Any file you find will be in the search results window and can be dragged to the Desktop and then to the Trash bin.
    OT

  • Basic Problems with Attributes and Data Loading

    Hi Specialists,
    I have a basic understanding Problem. I will explain it with a simple Example. I have to load Employee-Data from a file. For each Employee we have
    EmployeeNo
    EmployeeName
    EmployeeLanguage
    My Modelling:
    1 InfoObject Employee, with EmployeeNo as Key and EmployeeName as Text. For the EmployeeLanguage I create an additional InfoObject, in order to have an Attribute EmployeeLanguage at the InfoObject Employee. So far so good (I think).
    What kind of DataSources have I to create?? It is necessary to load the possible Languages first?? If yes, what kind of DS I have to choose, for loading only "English", "German", "Dutch". Attribute? Text?
    If not, the loading process is not possible, because one language exists more than one time in my flat file.
    Hope you can help me to see it clear.
    Thanks.
    Denise

    Hi Denise,
    I don't think you have to load all possible languages first. This is only necessary if you also want to load texts for EmployeeLanguage (example language german with texts "german", "deutsch", ...).
    Specify Employee as data target (in tab Master Data / Texts) and assign your InfoArea. There you will find your targets for texts and attributes, now create InfoSource for your file and assign update rules for both texts and attributes.
    Best regards,
    Björn

  • JSTL Problem with attribute names

    (Sorry for double posting. I've asked this question on javaranch, but did not get any answer. So I hope you can help me.)
    The values I pass (request.setAttribute etc.) from my servlet to my JSP pages have often dots in their names like "my.variable" (Assume for the following that my.variable justs holds the String "hello").
    I want to use <c:out > to print the value of "my.variable". Obviously the naming scheme collides with the expression language ("my" is not an object and certainly does not have the getter getVariable). Is there a way to work around this problem?

    What? Why do you consider it a bad way? It's the only
    naming scheme I know!
    It's pretty straight forward to use the package name
    to make your attribute names unique. See either Struts
    or Java Petstore (org.apache.struts.Globals or
    com.sun.j2ee.blueprints.waf.controller.web.util.WebKeys
    as an example.Btw those Globals and WebKeys, are static finals or constants.
    this is something completely different, and if you would really look good in stead of refusing some friendly advice you'll see that indeed the packages are separated with a . and the variables are with a _
    so calm down and try to listen what we say.
    If you give to java a x.y he'll thing y is a method of x or that y is a class in the package x
    ok?
    greetings

  • Native C++ metod, problem with attributes declared in other meth of Class

    Hi guys, I have an interesting question for you.
    I have a big C++ program, with many classes and methods..., and a java program which uses one of the methods(for the moment!) of a class.I compiled the java program, created a .h file, changed a little bit the C++ program with JNI functions...ok i stop talking, this is my C++ piece of program:
    JNIEXPORT jobject JNICALL
    Java_ProjectionType_setProjectionType(JNIEnv *env, jobject obj, jstring
    projectionType,jstring mapState){
    const char *str =(env)->GetStringUTFChars(mapState,0);
    if (mapState == NoMap) {
    reportError ("setProjectionType failed, no active map image");
    return false;
    if (mapState == MapDrawing) {
    reportError ("setProjectionType failed, drawing already started");
    return false;
    env->ReleaseStringUTFChars(mapState,str);
    // Check the projection type
    const char *sti =env->GetStringUTFChars(projectionType,0);
    if (projectionType < Orthographic ||
    projectionType > PolarSouth) {
    reportError ("setProjectionType failed, invalid projection type");
    return false;
    mapProjectionType = projectionType;
    switch (mapProjectionType) {
    case Orthographic:
    viewportLeft = -180.0;
    viewportRight = 180.0;
    viewportTop = 90.0;
    viewportBottom = -90.0;
    break;
    case PolarNorth:
    viewportLeft = -90.0;
    viewportRight = 90.0;
    viewportTop = -90.0;
    viewportBottom = 90.0;
    break;
    case PolarSouth:
    viewportLeft = -90.0;
    viewportRight = 90.0;
    viewportTop = 90.0;
    viewportBottom = -90.0;
    break;
    return true;
    env->ReleaseStringUTFChars(projectionType,sti);
    I think this is quite correct~. But here is my problem: all the attributes that I declared in other methods, such as NoMap, MapDrawing..., seem to be undeclared.
    (The C++ program itself worked fine!)
    Here is an example of the error messages I encountered:
    `NoMap' undeclared (first use this function)
    What do I have to do to make it declared?
    Any answer willbe welcome
    Philippe

    You haven't given enough information for someone to see what is going wrong. However I suspect you may have a couple of problems.
    1. You should realize that what you have written is a subroutine, not a method. It is not part of any object declaration.
    2. You refer to "attributes I declared in other methods...". This sounds mixed up to me. What other methods of what?
    3. Watch out. When you get to actually trying to run this from java, you will probably get linkage erros. I assume the code you posted is in a cpp file. You need to declare that you want C linkage; otherwise the compiler generates code that java can't understand.

  • Problems with Apache and custom JSPs

    Hi
    We've made an application on top of IFS, using JWS in our test envirnment. Just before making some stress tests, I'd like to try it using Apache. We're currently having two problems:
    1) I switch to the apache configuration running ifsconfig and not selecting JWS. When I try to access the ifs using http://host/ifs/files, everything goes well except that the "logout" icon doesn't appear. I did a little research and found out that the link goes to /ifs/webui/images/logout.gif. This gives an error in mod_jserv.log, like this one:
    [07/06/2001 22:54:20:315] (ERROR) ajp12: Servlet Error: ClassNotFoundException: webui
    It seems it's trying to find a "webui" class, since in ifs.properties every url that begins with /ifs goes to jserv.
    I don't know if this is a know problem or what should I've check...
    2) This one is more important. We're using some custom JSPs, which we use to edit the properties of some types of documents. Basically, when the user clicks over a file one of our JSP appears. These JSPs call a bean to do some processing, passing the HttpRequest as a parameter. The problem is that when using JWS we get the "path" request variable like in path=/%3A29464
    However, when using Apache we get path=/ifs/files/%3A29464 ( and afterwards we get an exception because the ifsSession.getPublicObject method doesn't work).
    Any hints on this? One way could be to check if the path begins with /ifs/files, but that's not really nice.. and besides I could have the same problem in some other parts.
    It's kind of urgent....
    Thanks
    Ramiro
    null

    Hi,
    The answer to your path problem is that you can make use of API to find out the current path so that it works both with Apache and with JWS. Follow the steps
    1. import the oracle.ifs.adk.http package in your custom jsps
    <%@ page import = "oracle.ifs.adk.http.*" %>
    2. Then within your jsp use the method
    getIfsPathFromJSPRedirect
    <%= oracle.ifs.adk.http.HttpUtils.getIfsPathFromJSPRedirect(request) %>
    This will give you the current path of the object on which you clicked on and which initiates the custom jsp.
    You can look at the CMS application which has made use of this API. URL is
    http://otn.oracle.com/sample_code/products/ifs/sample_code_index.htm
    Choose, sample applicatin -> Content Management system.
    Hope this helps
    Rajesh
    null

  • Problem with the webuijsf:helpwindow component (Illegal view id )

    Hello
    I just tried the helpwindow component of woodstock 4.3.
    After starting the application, I always get this error in the glasfish log
    JSF1010: Illegal view ID faces/com_sun_webui_jsf/help/helpwindow.jsp. The ID must begin with '/'
    WebModule[POSWareLizenz]Illegal view ID faces/com_sun_webui_jsf/help/helpwindow.jsp. The ID must begin with /
    java.lang.IllegalArgumentException: Illegal view ID faces/com_sun_webui_jsf/help/helpwindow.jsp. The ID must begin with /
    at com.sun.faces.application.ViewHandlerImpl.getActionURL(ViewHandlerImpl.java:627)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.getActionURL(ViewHandlerImpl.java:244)
    I am using this environment:
    Vista x64 (german), q6600, 8Gigs Ram, Glasfish v2ur2, netbeans 6.1
    The four required pages buttonnav.jsp, helpwindow.jsp, navigator.jsp and tips.jsp are installed under the path com_sun_webui_jsf/help, prefixed with faces.
    This pages were extracted from the downloadable Woodstock.4.3-200806241804.jar
    The helpwindow component is startet from a masthead component in this way
    <webuijsf:masthead dateTime="true" id="masthead1" productImageDescription="POSWare Lizenzanwendung"
                                                   serverInfo="#{MastHeadBean.serverInfo}" serverInfoLabel="Server" style="left: 0px; top: 0px; position: absolute; width: 1030px"
                                                   userInfo="#{MastHeadBean.userInfo}" userInfoLabel="Benutzer">
                                    <f:facet name="brandImage">
                                        <webuijsf:image alt="(C) ebit company" height="100" url="/resources/ebit logo.GIF" width="100"/>
                                    </f:facet>
                                    <f:facet name="versionLink">
                                        <webuijsf:hyperlink actionExpression="#{Page1.versionlink_action}" id="versionlink"
                                                            onClick="javascript: var versionWin = window.open('faces/VersionPage.jsp','VersionWindow','scrollbars,resizable,width=650,height=500,top='+((screen.height - (screen.height/1.618)) - (500/2))+',left='+((screen.width-650)/2) ); versionWin.focus()"
                                                            text="Version" toolTip="Version dieser Anwendung"/>
                                    </f:facet>
                                    <f:facet name="helpLink">
                                        <webuijsf:helpWindow windowTitle="Window Title Param"
                                                             toolTip="Help for This Page (Opens a New Window)"
                                                             linkIcon="true" linkText="Hilfe" />
                                    </f:facet>
                                    <f:facet name="logoutLink">
                                        <webuijsf:hyperlink text="Logout"/>
                                    </f:facet>
                                    <f:facet name="productInfo">
                                        <h:panelGrid columns="3" id="gridPanel3">
                                            <webuijsf:image height="120" url="/resources/POSware%20Logo%20klein.gif" width="120"/>
                                            <webuijsf:staticText style="font-style:bold; font-size:300%;color:white;" text="POSWare Lizenz Anwendung"/>
                                        </h:panelGrid>
                                    </f:facet>
                                </webuijsf:masthead>There are three possibilities: a.helpwindow is not yet functional, b.the download in the 4.3 download area contains some mistakes or c. I did something wrong.
    Any Ideas?
    Thank you

    Lakshmi,
    I think you dont need to create a z component .you can enhance your existing component(if you enhance you willnot have any of these problems)
    check these blogs on how to enhance a component
    The Three Use Cases of the Enhancement- and Switch-Framework - Part 1
    The Three Use Cases of the Enhancement- and Switch-Framework - Part 2
    search for Thomas Weiss blogs on enhancement
    Thanks
    Bala Duvvuri

Maybe you are looking for