Problem with search method in AM called from JSP

Hi, im trying to get the real value from an foreign key of a view, and i have been created a custom search method in the AM, but i got a problem, the search only get results the first time that is called, the next times gets null result :
public String getValorReal(Long identificador, String vista,
String campoFiltro, String campoValor)
where identificador is the foreign key, vista is the name of the view that contains the real value of the foreign key, campoFiltro is the field name of the view that will match the foreign key, and campoValor is the field name of the view that the search method will return as the real value.
I created this class that call the search method :
public class CuentasContablesOrgLOV {
private BindingContainer bindings;
public Map CuentaContable= new HashMap(){
public Object get(Object key){
Map parametros;
BindingContainer bindings = getBindings();
String result = null;
OperationBinding operationBinding = bindings.
getOperationBinding("getValorReal");
if (operationBinding != null){
parametros = operationBinding.getParamsMap();
parametros.put("identificador",new Long(key.toString()));
parametros.put("vista","CcCuentasContablesView4");
parametros.put("campoFiltro","identificador");
parametros.put("campoValor","CuentaContable");
result = (String)operationBinding.execute();
return result;
public Map getCuentaContable() {
return CuentaContable;
I invoke this class from the JSP with EL:
<af:outputText value='#{CuentasContablesOrgLOV.cuentaContable[row.CcCucoIdentificador]}'/>
In the AM method obtains all the parameters correct, but the search only works the first time!
Do you have an idea whats been happened?
thanks a lot for your help

There is no <%@ method %> tag for a JSP.
http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html
It looks like you are trying to write a JSP that only accepts post requests - not get?
I'm not sure if you can accomplish that in a JSP directly.
You can with an HttpServlet (which is where the doGet/doPost methods are defined) but HttpJspPage doesn't extend that class necessarily.
Best you could probably do is put in a test of request.getMethod() to see if it is get/post.

Similar Messages

  • The problem by hearing my voice when calling from iMAC

    I use the latest version of OS X and iOS on all my devices (OS X and iOS 8.1.1 10.10.1). The receiving calls through iPhone 5 have a problem with hearing my voice when calling from iMAC. When make incoming, but also outgoing call through iPhone5 on my iMac, I can hear the caller, but he can not hear me, although tilde see sound when I speak to your iMac.
    When the call using my iMac I can hear the caller, but he's not me.
    MacBook Air while everything works smoothly, there hear me. You do not know me with this please help?
    Thanks

    Yes, my microphone works correctly, f.e. skype, record spund for my videos... no problem with microphone on my iMAC

  • Problem with search plug-in in ver 5.9

    Hello
    I have a problem with search plug-in when you type some key words and press search button it works fine, but if you press enter jou have following error:
    Whoops. Something broke.
    Version      5.9.6.43135
    Message      Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
    Source      System.Web
    Stack      at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
    at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)
    at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBefore
    Our technical people have been notified.
    We're sorry for the inconvenience.
    Thanks
    Greg.

    Grzegorz, I'm going to guess this is a problem with the version you're using. We're using 2007.0.620 and whenever we hit enter on the field instead of the search button itself it returns no results. As far as I can tell, it's a bug in the system.
    It looks like updating to the latest version (624) isn't helpful either, although both 620 and 624 remove that nasty explosion that you're getting and instead just return the same page with no search results.
    There may be a way to edit some code-behind to detect when a postback is being made, although given the locked nature of Web Tools I doubt it. If you can find a way to have the button be recognized, let me know - otherwise, I'd say it's a bug that needs to be addressed in the next version.

  • I have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search google in English

    i have a problem with searching page, whenever i try to open any page a blank paper cums appear only written custom search by google this one is not such as my google home page
    == This happened ==
    Not sure how often
    == i use to search any page like movies or etc

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • Problem with traverse method

    Hi, I am having this problem:
    I made a CustomItem, a TextField, now I overloaded the traverse method, so if the keycode is Canvas.UP or Canvas.DOWN then return false else return true.
    The problem is that when I press the left or rigth button it also returns false and not true.
    and there is another problem with traverse, before returning false or true I set a boolean and call to repaint to draw it on some way if its selected or not, the paint method is being called but it just dont draw as desired.
    protected void paint(Graphics g, int ancho, int alto) {
              System.out.println ("Dentro del paint, seleccionado="+seleccionado);
              try {
                   g.drawString(label, 0, 0, Graphics.TOP|Graphics.LEFT);
                   if (!seleccionado) {
                        g.setColor(120, 120, 120);
                   g.drawRect(0, 4, tama�oTexto+8, 25);
                   if (seleccionado) {
                        g.setColor(255, 255, 255);
                        g.fillRect(1, 5, (tama�oTexto+8-1), 23);
                   g.setColor(0, 0, 0);
                   if (!seleccionado) {
                        g.setColor(80, 80, 80);
                   g.drawString(texto, 4, 7, Graphics.TOP|Graphics.LEFT);
                   if (seleccionado) {
                        int cursorX=Font.getDefaultFont().charsWidth((texto.substring(0, idLetraActual)).toCharArray(), 0, texto.substring(0, idLetraActual).length())+4;
                        g.drawChar('|', cursorX, 7, Graphics.TOP|Graphics.LEFT);
              } catch (Exception E){
                   E.printStackTrace();
         }the traverse method set the seleccionado variable and calls to repaint but instead of being false the paint method is drawing it as true (most of times).

    I have a problem with findByxxx() method.. in
    Container managed bean.
    i have
    Collection collection =
    home.findByOwnerName("fieldValue");
    specified in my Client Program, where ownerName is the
    cmp fieldname..
    and
    public Collection findByOwnerName(String ownerName)
    throws RemoteException, FinderException
    defined in my home interface.
    i have not mentioned the findBy() method anywhere else
    (Bean class). You have to describe the query in the deployment descriptor.
    >
    Even if i have a same "fieldValue" in the database
    (Oracle), which i specified in findBy() method, iam a
    result of owner Not found, which is not the case as i
    have that owner name.
    for the same application if i use findByPrimaryKey(),
    it is working..
    Can any one please post me the solution.

  • Problem with affinetransformOp method...

    I have a serious problem with filter method
    I Want to make a image flipping or some other filtering by using
    AffineTransformOp
    but it printouts an erro like this
    cannot resolve symbol
    op.filter (img, flipped)
    (the error pointer shows ".after the op")
    a code from my one of the filters
    BufferedImage flipped = new BufferedImage(img.getHeight(), img.getWidth(),BufferedImage.TYPE_INT_RGB);
    AffineTransform trans = new AffineTransform(0, 1, 1, 0, 0, 0);
    AffineTransformOp op = new AffineTransformOp(trans, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    op.filter(img, flipped); //img is my buffered image source
    I used some other ways like (img, null) but always give out error.
    thanks..

    Did you declare "img" as BufferedImage or something else?
    What is the full error message?

  • Problem with shares on Windows 2003R2 server from a Windows 8.1 PC

    I'm having problem with shares on Windows 2003R2 server from a Windows 8.1 PC.  It times out when I try to copy a file from my PC to the server and I get an error message saying "There is a problem accessing network drive W:\. Make sure you are
    connected to the network and try again."
    I have no problem copying files from the server to the PC.
    Any ideas?

    Hi,
    How about your problem now? Have you test other machine also installed Windows 8.1? Did they have this problem?
    To diagnose this problem, firstly, please check Windows 2003R2 firewall settings, also can disable firewall temporarilly for test.
    Secondly, try to use Network Monitor to capture network communication package for test.
    Network Monitor:
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    Roger Lu
    TechNet Community Support

  • I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S.

    I had already update mi new factory unlocked iPhone 4S to iOS 5.1.1 and I still having problems with "invalid sim". I'm from Argentina and here we don't have official service. PLEASE HELP ME, WHAT CAN I DO??? In Argentina is too expensive an iPhone 4S. Please I need help to continue believing in Apple. Thanks a lot. If anybody speak spanish better.  

    Was it purchased from an official Apple Store, not a reseller?  Only Apple Stores sell official factory unlocked phones.  The others sell hacked to unlock phones, and the unlocking is unstable.
    Try these steps, as needed:
    1. Reset phone - press both home and on/off buttons for at least 10 seconds until the Apple logo appears.
    2. Settings > General > Reset > Reset Network Settings.
    3. Replace SIM card (and reset network settings again)
    4. Restore Phone in iTunes using a backup
    5. Restore in iTunes as new, without using a backup

  • I have problem with pay method

    I have problem with pay method. My card declined. I change card and I have the same problem. What can i do? Why declined my card again?

    Contact iTunes store support: https://ssl.apple.com/emea/support/itunes/contact.html.

  • Problem with prerender method

    Hi,
    I have a problem with the method prerender. A month ago, I started to develop a web project using Sun Studio Creator and a few page beans that i used extended the Abstract Page Bean, so I overrided the prerender and customized it.
    The problem is that, now i'm using eclipse and the configuration files of the project has changed and the prerender method never execute.
    I want to know why it is happening. Maybe the project is "bad-configurated"?
    Thanks

    The code of java bean doesn't change, the only thing that has changed is the configuration files (faces-config.xml, web.xml, etc).
    I put a breakpoint in the prerender method but the lifecycle doesn�t execute this method.
    After serveral changes, I wrote this code in the method prerender :
    int i=0;
    i = 1;
    And the prerender method doesn't execute.
    I'm a bit lost,
    thanks

  • Problem with WindowClosing() method

    Hello everyone,
    I have some problem with WindowClosing() method, in which I gave options
    to quit or not. Quit is working fine but in case of Cancel, its not returning to
    the frame. Can anyone help me ....Here is my code
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    public class TestFrame extends JPanel
         public static void main(String[] args)
              JFrame frame = new JFrame("Frame3");
              WindowListener l = new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        int button = JOptionPane.showConfirmDialog(null,"OK to Quit","",JOptionPane.YES_NO_OPTION, -1);
                        if(button == 0)     {
                             System.exit(0);
                                   else
                                              return;
              frame.addWindowListener(l);
              frame.setSize(1200,950);     
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
    }

    Maybe try
    int button = JOptionPane.showConfirmDialog(yourframe,"OK to
    Quit","",JOptionPane.YES_NO_OPTION, -1);

  • I have problems with activation, after delete mi Iphone from Icloud.

    I have problems with activation, after delete mi Iphone from Icloud.

    Hello Sikiz 21,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iPhone: Troubleshooting activation issues
    http://support.apple.com/kb/TS3424
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Best of luck,
    Mario

  • Problems with Search in Contacts (Public folder favourite)

    Office Version:Office 2010Operating System:Windows 7
    I am running Outlook 2010, connecting to an SBS2003 server by HTTP and running in Cached mode.
    My business contacts are stored in a Public Folder, and my personal contacts in my local Contacts folder.
    The Public Folder is in my Favourites, and is designated an 'Outlook Address Book'
    'Download Public Folder Favourites' is enabled in the Exchange Mail Account settings
    I am having problems with Search (which was never a problem in Outlook 2007).
    If I select the Contacts shortcut, under 'My Contacts I have listed in order:
    Suggested Contacts
    Office Contacts (this is my public folder favourite)
    Contacts
    Search Results
    If I select the Office Contacts link, and attempt to search for a contact whose contact card I can actually see on the screen, the search will fail. The scope is defaulting to 'All Contact Items' (which is fine), but if I change this to 'Current Folder'
    then the contact is immediately found.
    In OL2007 I could search for a contact, even when not in a contact folder, and it would find every instance of it immediately.
    Any ideas here? I have been told to rebuild my index, which I will do over the weekend as it will take some time. But I have doubts it will make much difference. This is a new machine with a fresh installation of Win7 x64 and Office 2010.
    thanks

    Keith, I have this same issue here.  I looked on the Small Business Server pages for an answer as suggested by Xiu but could not find any.  I'm not sure why this would be a SBS issue as we are not running SBS and have this issue.
    For some reason, "All Contact Items" doesn't include the current folder if it is a public folder. 
    Did you ever get an answer/solution?

  • Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    how can i find out what the fix is that works..please

  • My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
    The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported.

Maybe you are looking for

  • [SOLVED] Asking for help and reviews for a PKGBUILD (cnijfilter-mp250)

    Hi everyone, I recently changed the desktop pc used by my parents, and I installed Arch on it (the previous desktop was running Debian). I know that I need to install a driver to get the printer working (a Canon MP 250 Series), because I did it befor

  • GUI_DOWNLOAD fieldnames

    Hi, I have this code in my program: TYPES: BEGIN OF gtyp_cabeceras, column(50) TYPE c. TYPES: END OF gtyp_cabeceras. DATA: g_t_cabeceras TYPE STANDARD TABLE OF gtyp_cabeceras, g_w_cabeceras TYPE gtyp_cabeceras. g_w_cabeceras-column = 'Matr de coches'

  • ITunes can't sync TV shows...

    I have a TV show which I'd like to transfer into my iPod (30gb video). The whole show is on MPEG-4 format which the iPod can read. I added all the show (about 76 episodes) and when I pressed "sync" only 4 of the episode has been transfered and I got

  • Field Selection Key In Release Indicator For PR

    Hi, Can you explain what is the use of Field Selection Key in Release indicator for PR on what basis to select this value. regards,   zafar

  • HP HD webcam setting can't be changed

    I have recently bought new HP 635 laptop and I have problems with it's integrated webcam. When i open device properties some of it's settings are inaccessible. For example "Exposure" and "Low Light Compensation" are greyed out and cannot be changed a