Custom component class is not detecting url parameter

I have a hcsp page, on which i have a link something like this :
"<$HttpCgiPath$>?IdcService=CUSTOM_SERVICE&var1=value1"
m appending one more parameter in this url through java script.
so one is the var1 which is directly here in the url and one m appending through java script so my final url would be:
"<$HttpCgiPath$>?IdcService=CUSTOM_SERVICE&var1=value1&var2=value2"
M calling a java function which fetches these variable.
my code is
String value1=m_binder.getlocal("var1");
This is working fine .
But when i do it for var2, this gives an error " variable var2 is not found" in the logs.
Please guide
Thanks,
Chely
Edited by: Chely on Jan 17, 2013 3:08 AM
Edited by: Chely on Jan 17, 2013 3:09 AM

Thanks Jonathan. i have executed m_binder.toString() and in the logs:
m_binderString
*** LocalData ***
(9 keys + 0 defaults)
IdcService=SUNRISE_DEL_TAX_USER
XmlEncodingMode=Full
dUser=UCMDev_Idc
idcToken=1358675908923:318447AB701D7A6E92FDDAFA9DEBCC3D
var1=1
tax_type=N
uname=cbohra001c
*** RESULT SETS ***
var1 is here but var2 is not here in the result set, Now what should i do to make it available in my binder,because in my hcsp java script i have an alert of url and in this alert i am able to see the complete url including var1 and var2.
Thanks,
Chely
Edited by: Chely on Jan 18, 2013 2:06 AM

Similar Messages

  • Error  "expected a myfaces custom component class in package"

    Can anybody help me on this?
    just copied the sandbox code on selectmanypicklist and tried in a separate package of mine.
    created a jsp page and used the selectmanypicklist component and im getting the component on my browser.
    But whn i added the javascript resource calling by "encodeJavascript(facesContext, uiComponent);" im geting an error saying tht "expected a myfaces custom component class in package org.apache.myfaces.custom". i placed the java script file in "mypackage/list/resource/pikscript.js".
    should i add anything on faces-config.xml file or anywhr else?
    Anybody can help on this?
    Thanx in Advance.

    The problem is that it calls a method validateCustomComponent in MyFacesResourceHandler to see if it can load the js file. This method controlls if the path of the js file begins with org.apache.myfaces.custom. If not throws an exception and doesn't load the file. I changed the package of the class that's trying to load the file in org.apache.myfaces.custom.xx and the package of the file js in org.apache.myfaces.custom.xx.resource. Now it's working.

  • LCES server caches the custom component classes

    I found that sometime during the (patching) deploy/undeploy install/uninstall phase of custom component LCES start 'caching the custom component or its helper classes' and any changes made to them does not get reflected.
    But after the server restarted every thing work as expected.
    i.e. If server is restarted the latest changes to component deployed previously to server restart get reflected.
    Pl. help.
    Any one had simillar issue?
    Thanks
    Yog

    Hi Paul,
    I have tried both of these frequently (many times)
    1) Component > STOP > PATCH > START
    2) Component > STOP > UNINSTALL > INSTALL > START
    but no effect after some point when server keeps the cache. (it works some time but not all the time I thought 2nd approach should always work)
    But if I restart the server it seems to show the expected result always.
    Does any Adobe teche knows how to gaurrentee 100% that chnges will reflect after new version of the component is installed without restart of the server.
    Also I seen some inside the service impl at the begining of the service method code store the classloader:
    ClassLoader originalClassloader = Thread.currentThread().getContextClassLoader();
    and restore it at the end of service method:
    if (originalClassloader != null) {
    Thread.currentThread().setContextClassLoader(originalClassloader);
    How does this affect?
    and also if one component depends on another how does that affect?
    Thanks
    Yog

  • Cannot execute custom component.:Method not found error

    Hi,
    I have created a custom component. When i execute the component i am getting error message :"Unable to execute service ABC and function XYZ." The service method XYZ is not defined.
    intradoc.data.DataException: !csMethodNotDefined,XYZ
    Where else i have to define my method in component wizard?
    Please provide inputs
    Thanks in advance

    If you haven't done it yet, get a copy of the Bex's book http://www.amazon.com/Definitive-Stellent-Content-Server-Development/dp/1590596846
    The chapter 10 will explain how a service, and its methods are bound to Java package whose classes extend the standard interfaces.

  • Custom Component Classes

    Hi all
    I have been learning flex for a few months now and absolutely
    loving it!
    But there is one thing I can't get my head round. I use to be
    a Flash user mostly which is probably why I am getting confused....
    I want to be able to make custom components that all use one
    custom class.
    For example, I have custom canvas components that are 'pages'
    which I am loading dynamically as and when needed. When they load I
    want them to fade in using the fade effect. Up until now I have
    written the code to do this on each component, which is quite
    annoying considering I have many pages.
    I would like a custom class with the code in it for the fade
    which every 'page' component uses, so each will fade in when
    loaded.
    I could this really easily using MovieClips in flash, but
    flex seems different. Maybe I am getting confused with regards
    Canvases and MovieClips.
    Please can someone help me? :)

    "gamedesign1000" <[email protected]> wrote
    in message
    news:gn17i4$eha$[email protected]..
    > Hi all
    >
    > I have been learning flex for a few months now and
    absolutely loving it!
    > But there is one thing I can't get my head round. I use
    to be a Flash user
    > mostly which is probably why I am getting confused....
    > I want to be able to make custom components that all use
    one custom class.
    > For example, I have custom canvas components that are
    'pages' which I am
    > loading dynamically as and when needed. When they load I
    want them to
    > fade in
    > using the fade effect. Up until now I have written the
    code to do this on
    > each
    > component, which is quite annoying considering I have
    many pages.
    > I would like a custom class with the code in it for the
    fade which every
    > 'page' component uses, so each will fade in when loaded.
    > I could this really easily using MovieClips in flash,
    but flex seems
    > different. Maybe I am getting confused with regards
    Canvases and
    > MovieClips.
    >
    > Please can someone help me? :)
    >
    >
    Why not just define the effect in the main file and then
    apply it from the
    outside, rather than locking your component into one effect:
    <yourNameSpace:YourCanvas width="200" height="200"
    creationCompleteEffect="{someEffectYouMade}" />

  • Class file not detecting

    Hi All,
    I just set up IdM 7.0. I took the classes folder from my colleague's machine and pasted it in the WEB-INF folder in my local. (I am using tomcat).
    When I am running my application at one instance it calling a class, but I am getting the following message
    XPRESS exception:
    Class <package>.<classname> not found
    I have added entry in the environment variables also. What all I could do I believe I have done bhut still it is giving me this error. I even compiled the java file and created the class file in my system, but still it is not working ( though that will not be a problem because class files are machine independent). I even tried putting the whole path upto the class file, into the environment variable. But still this error is coming.
    Please help me.
    Regards
    Alex
    Edited by: AlexRaju on Apr 16, 2008 11:15 AM
    Edited by: AlexRaju on Apr 16, 2008 11:16 AM

    try clearing cache and restarting tomcat. If you post the code that you are using to call the methods it will help to find the issue.

  • Custom Error class is not recognized

    Hi,
    I have one main program testMyClass.java that uses MyException program to catch and process the errors.Due to some reason,when I compile testMyClass.java ,it
    does not recognizes the MyException.
    Any idea why this is happening.Any help in this regard is appreciated.
    Thanks
    Chat
    testMyClass.java
    import java.sql.*;
    public class testMyClass {
         public testMyClass(){
         public void getConnection(String userName,String password){
              try{
              }catch(SQLException ee){
              throw MyException(ee+"this is Sql exception \n");}
              public static void main(String args[]){
                   try{
                        testMyClass test1=new testMyClass();
                        test1.getConnection("myname","mypasswrd");
                   }catch(MyException e){
                        System.out.println("you found the exception \n");
                   }catch(Exception e){
    MyException.java
    public class MyException
    extends Exception
    private Exception hiddenException_;
    public MyException(String error,Exception excp)
    super(error);
    hiddenException_ = excp;
    public Exception getHiddenException()
    return(hiddenException_);
    Both classes are in a directory called test on c:\drive.
    Below is the error that I get when I compile testMyClass.java
    C:\mjava\test>javac testMyClass.java
    testMyClass.java:14: cannot resolve symbol
    symbol : method MyException (java.lang.String)
    location: class testMyClass
    throw MyException(ee+"this is Sql exception \n");}
    ^
    testMyClass.java:24: cannot resolve symbol
    symbol : class MyException
    location: class testMyClass
    }catch(MyException e){
    ^
    2 errors

    Hi,
    I have made the change and still the error persists.
    Thanks
    Chat
    import java.sql.*;
    public class testMyClass {
            public testMyClass(){
            public void getConnection(String userName,String password){
               try{
               }catch(SQLException ee){
                 throw new MyException(ee,"this is Sql exception");}
              public static void main(String args[]){
                   try{
                        testMyClass test1=new testMyClass();
                        test1.getConnection("myname","mypasswrd");
                      }catch(MyException e){
                           System.out.println("you found the exception \n");
                      }catch(Exception e){
    public class MyException
    extends Exception
       private Exception hiddenException_;
       public MyException(String error,Exception excp)
          super(error);
          hiddenException_ = excp;
    public Exception getHiddenException()
       return(hiddenException_);
    C:\mjava\test>javac MyException.java
    C:\mjava\test>javac testMyClass.java
    testMyClass.java:14: cannot resolve symbol
    symbol  : class MyException
    location: class testMyClass
                       throw new MyException(ee,"this is Sql exception");}
                                 ^
    testMyClass.java:24: cannot resolve symbol
    symbol  : class MyException
    location: class testMyClass
                               }catch(MyException e){
                                      ^
    2 errors

  • Not passing URL parameter

    <?php require_once('../Connections/connHotel.php'); ?>
    <?php
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = (!get_magic_quotes_gpc()) ?
    addslashes($theValue) : $theValue;
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "userform")) {
    $insertSQL = sprintf("INSERT INTO clients (title, firstName,
    lastName, address1, address2, town, province, country, postCode,
    tel, email) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
    GetSQLValueString($_POST['title'], "text"),
    GetSQLValueString($_POST['firstName'], "text"),
    GetSQLValueString($_POST['Surname'], "text"),
    GetSQLValueString($_POST['address1'], "text"),
    GetSQLValueString($_POST['address2'], "text"),
    GetSQLValueString($_POST['town'], "text"),
    GetSQLValueString($_POST['province'], "text"),
    GetSQLValueString($_POST['country'], "text"),
    GetSQLValueString($_POST['postcode'], "text"),
    GetSQLValueString($_POST['telephone'], "text"),
    GetSQLValueString($_POST['$email'], "text"));
    mysql_select_db($database_connHotel, $connHotel);
    $Result1 = mysql_query($insertSQL, $connHotel) or
    die(mysql_error());
    $insertGoTo = "booking_details.php?email=" .
    $HTTP_POST_VARS['email'] . "";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    ?>
    thats my php
    <tr>
    <td bordercolor="#FFFFFF"><div
    align="right">Email:</div></td>
    <td bordercolor="#FFFFFF">
    <input name="$email"
    type="text"
    id="$email"
    onfocus="MM_displayStatusMsg('Please enter your
    email');return document.MM_returnValue"
    maxlength="100" />
    </td>
    </tr>
    thats my email form field, when i click submit it suppose to
    go to next page with the email in the link and pass it over but
    instead all i get on the next page is
    http://127.0.0.1/dreamweaverhotel/bookings/booking_details.php?email=&
    instead of email being there. can anyone help me with this

    Hi Girish,
    note 989900 describes an error solved with patch 700/82 or 640/153.
    Using
    http://<WAS>/sap/bc/gui/sap/its/webgui/!?sap-client=000&sap-user=<usr>&sap-password=<password>&transaction=SE11&RSRD1-TBMA_VAL=TADIR&okcode=WB_DISPLAY
    works for me.
    In addition I recommend to read note 777423 which describes a better way to pass okcodes using the URL.
    hope this helps
    Tobias
    Message was edited by:
            Tobias Gomer

  • Apple TV component video connection not detected by loewe mimo tv

    it's possible to set the video signal type on the loewe tv from vhs to camcorder, pal and ntsc, i've tried many configurations but it's just not picking up. any suggestions greatly received. thanks.

    The mimo was a nice unit back in the day however the specs for the appletv are pretty clear, a hidef LCd or Plasma TV is required.
    You might get lucky if you can get the ATV to the lowest Res possible, but it often involves lots of faffing. Basically to use the ATV in any real way you need a modern TV.

  • Flex Print Job not working with custom component

    Hi All,
    I have to print pages with header, body and footer. So the thought process was to create a custom component fro header, footer and body. Header component is based on Box, Body is a renderer (which will have fix value of items - and will decide the number of possible pages) and footer is again based on Box.
    But when i created a simple Custom component like this for header
    <?xml version="1.0" encoding="utf-8"?>
      <mx:VBox  xmlns:fx=http://ns.adobe.com/mxml/2009
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:HBox>      <mx:Label id="testLabel" text="Test Container"/>
    </mx:HBox> 
    </mx:VBox>
    Then when i try to add this to FlexPrintJob, and save it as 'xps' to see the print output, i get error message that this file is in use or damaged.
        var myPrintJob:FlexPrintJob = new FlexPrintJob();
      if(!myPrintJob.start()){
          return;
    var header:Header = new Header();
    header.width = myPrintJob.pageWidth;
    header.visible = false;
    FlexGlobals.topLevelApplication.addChild(panierPrintHeader);
    myPrintJob.addObject(header);
    myPrintJob.send();
    FlexGlobals.topLevelApplication.removeChild(panierPrintHeader);
     But this does not work and i get the above mentioned exception. Now when i not use the custom component and just have a label or HBox or anything on stage before the print functionality is invoked, it works fine. And this too haapens only if you have a mxml component, i tried by creating a new Label component using actionscript and then provide the same to the printJob, which did not work either. I need help on this, else i will have to take print functionality to server side(Java) which has some business implications, the reason why i am spending time on flex for printing. 
    Thanks and Regards,
    Jigar
    Looks like custom component print is not working fine with flex or i am doing something terribly wrong.
    Looking forward for help.

    Is there nobody in flex community who can help on this....
    Looks like a toothless class that adobe actionscript team has provided, which is not liked across much

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

  • PPR on custom component

    I have a custom component for calendar. When invoking PPR on the component it refreshes the entire contents of the page and the custom component doesn't work properly after that.
    If I manually do full a page refresh then the component works properly.
    There is a thread with a similar problem was resolved Re: PPR on custom component?
    In above thread the solution was to add below in the custom component class.
    @Override
    protected FacesBean.Type getBeanType()
    return TYPE;
    I do have this code in my custom component class but may be I am missing something else. Does anyone have a suggestion of how to make this work? I'd appreciate your help a lot.

    Yes, I've seen that page on Trinidad. It was helpful, but it seems it was mostly about using PPR, not about building it into a custom component. The one part that did talk about custom components was this, near the end:
    "Finally, if you're implementing a custom component, you aren't extending the Trinidad UIXComponentBase base class or one of its subclasses, and you want to support partialTriggers, you'll need to use addPartialTriggerListeners(). If you deliver events, and you want to support being the target of partialTriggers, you'll need to use partialUpdateNotify(). "
    Then it gives code snippets for each of those. In my case, I am extending UIXComponentBase, and I am including this code, and I know addPartialTriggerListeners gets called, but my component still doesn't get the updated data. If I right-click the page and select Refresh, it redraws correctly, and other components that have partial-triggers on the same component I do, do get the update properly. So I must be missing something.
    Also, where can I get the open source of the components from? I haven't found anywhere to download them from. Can you point me at them?

  • Item Renderer as a Custom Compent & Class

    Does anyone have an example of how to create a Custom
    Component that is not
    merely MXML, but also contains a Full AS3 class
    (constructors, static
    methods, methods, and public properties) implemented in AS3?
    I want to be able have advanced behavioral methods associated
    with a custom
    ItemRenderer.
    Dr. YSG

    Have you seen the "Creating and Extending Flex 2 Components"
    book in the Flex doc set? You can find it here:
    http://livedocs.macromedia.com/flex/2/docs/Part3_CreateComps.html
    Stephen

  • JPanel won't display my custome component

    Hi,
    I made a custome component class that in its paint method at this stage is suppose to paint a white rectangle on screen. However the when I add this custome component to my JPanel it doesn't show up. Does anybody have a solution for this?
    My code for the custome component is,
    public spaceMediaDisplayObject(mediaObject mo){
         x = mo.getSpaceX();
         y = mo.getSpaceY();
         height = mo.getHeight();
         width = mo.getWidth();
         name = mo.getName();
         System.out.println("Constructor");
         this.repaint();
    public void paint(Graphics g){
         System.out.println("Draw");
         g.setColor(Color.white);
         g.drawRect(x, y, height, width);
    And the fragment of code I am using to try and display in on the panel is as follows,
    spaceMediaDisplayObject smdo = new spaceMediaDisplayObject(toDisplay);
         spaceBodyPanel.add(smdo);
    Please help if able.

    If it's null then you need to set the size of each component explicitly:
    JPanel panel = new JPanel(null);
    Component customComponent = new CustomComponent();
    panel.add(customComponent);
    customComponent.setBounds(0, 0, 100, 100); // For exampleA simple layout manager could be used to make the component fill the panel, for example:
    JPanel panel = new JPanel(new GridLayout(1, 1));
    panel.add(new CustomComponent());Hope this helps.

  • How to call a custom action class present in one DC from a different DC

    Hi Experts,
    I have to implement one email functionality in my project.This functionality works fine if I use the Standard EmailAction class present in com.sap.isa.cic.customer package,but we need to change the email IDs in some cases so,we need to create a custom class.But if I create a custom Action class in Another DC(shext) and try to call this class from the config file present in the other DC(From where the Standard class was called),I am getting no Action Instance found for the declared Action(This Happens when the class is not present ).
    From the error I interpreted that the presence of the Custom Action class is not recognised by the The DC.
    Please confirm If my understanding is correct.
    I also tried adding a a new public part in shrext and tried adding the same in the used dc for the DC from where I am trying to call the class.But the activity fails and it gives me the error that the DCs are Broken.Do I need to build the DCs after adding a public part or a used DC?
    Please answer If anybody has faced the same issue or has a solution to it.
    Thanks
    Arpita Saxena
    Edited by: ArpitaSaxena on Jun 23, 2011 6:51 AM
    Edited by: ArpitaSaxena on Jun 23, 2011 7:01 AM

    Hi All,
    I was able to resolve this issue myself.
    I had to include the DC crm/isa/lwc and the DC mail in the used DCs of SHREXT .
    So,all the jars got included automatically and I was able to create a new custom class for the required functionality.
    Its working fine now.

Maybe you are looking for

  • How to get the last sub folder value from the string in Webi report

    I have an object coming from universe, this object will contain string e.g. \\Users\Public\Pictures\Sample\ or    \\Users\Doc\BI\BO\Webi\ I need the last sub folder from this path to be displayed i.e. Sample and Webi. I would like to know how it can

  • Disk drive won't read disks

    Hi there, I've had my Mac Mini for several months, and starting fairly recently, it only reads about 1 out of 5 disks I put in on the first try. It accepts the disk and sounds as if the laser is about to move to read it, but then the lazer gets stuck

  • Can't get external speakers to work (not wireless)

    I have the same speakers I had with my former Mac, they are not wireless, they plug in and they are turned on and working perfectly.  But my computer keeps using the internal speaker.  How do I get it to "see" the externail speakers?  I checked all t

  • Table only displays 10 rows

    Hi all I don't know why my table only displays 10rows, even though there are more than that . here is the code assuming DefaultTableModel dm is already initialized..etc if (jTableReport != null) { // the size of data is 20           dm.setDataVector(

  • Server giving me error 500 on all apps

    I am able to get into the console and manage everything, but everytime I try to hit any web app (e.g., http://server1:7001/shop or https://server1:7002/drive) I receive the following error: Error 500--Internal Server Error Does anyone have an idea wh