Add a column and I can't call a method

I'm trying to make a small portal app with IBM RAD 6.0 but I'm having a wierd problem calling a method in my page code. Any help would be great.
Here's the cod I'm using, I've got a bunch of system.outs in it to help me track down what's happening as well as some commented code of some things I'm trying. Any why here goes:
I start a data table in the jsp like this
<h:dataTable value="#{pc_MaintainBasisFormView.memberBasisComponents}" var="results"
                         border="0" cellpadding="2" cellspacing="0"
                         columnClasses="columnClass1" headerClass="headerClass"
                         footerClass="footerClass" rowClasses="rowClass1"
                         styleClass="dataTable" id="table1">
later I build these two columns
<h:column id="startdatecolumn">
                              <f:facet name="header">
                                   <h:outputText styleClass="outputText" value="Start Date" id="startdateheader" />
                              </f:facet>
                              <h:inputText styleClass="inputText" id="startdate" value="#{results.effectiveDates.effectiveStartDate}"></h:inputText>
                         </h:column>
                         <h:column id="column7">
                              <f:facet name="header">
                                   <h:outputText styleClass="outputText" value="Remove" id="remove"></h:outputText>
                              </f:facet>
                              <h:commandLink styleClass="commandLink" id="removelink" action="#{pc_MaintainBasisFormView.removeBasisComponent}">
                              <h:outputText id="text6" styleClass="outputText" value=">>"></h:outputText>
                                   <f:param name="krusty" value="#{results.id}"></f:param>
                              </h:commandLink>
                         </h:column>
so column startdate calls does this "results.effectiveDates.effectiveStartDate"
so results has this method
public EffectiveDates getEffectiveDates() {
          System.out.println("in getEffectiveDates " + effectiveDates);
          //effectiveDates = (effectiveDates == null) ? new EffectiveDates():effectiveDates;
          return effectiveDates;
and EffectiveDates has this method
public String getEffectiveStartDate() {
          System.out.println("in getEffectiveStartDate " + effectiveStartDate);
          effectiveStartDate = (effectiveStartDate == null) ? new Date() :effectiveStartDate;
          return "dfgdfG";
(it's supposed to return a date but I've set it to a string just to try to get it working)
and that all works fine.
Now the second column calls "pc_MaintainBasisFormView.removeBasisComponent" with a parameter <f:param name="krusty" value="#{results.id}">
and removeBasisComponent is defined as
     public String removeBasisComponent() {
          System.out.println("in removeBasisComponent");
          String id = getPortletRequest().getParameter("krusty");
          System.out.println("in krusty " + id);
          return "removeBasisComponent";
so whats the probelm? When I click the link in the second column, the method that it is tied to is never called. BUT, when I don't have the first column, the link works as I expect it to.
can anyone point me in the right direction to solve this problem?
Thanks in advance
JohnL

Hi Ruhi
I hope this answer doesn't come too late, for some reason the forum does not let me in w/ my username & password, and won't allow me to follow the "Forgot password" procedures.
Anyway:
I don't have the code but I'll try to explain the problem using the info I posted originally.
my problems start here:
<h:inputText styleClass="inputText" id="startdate" value="#{results.effectiveDates.effectiveStartDate}"></h:inputText>
It generates an input box with the value results.effectiveDates.effectiveStartDate. What I didn't know was that when I tried to submit the form from the link the application was silently failing. By silently I mean there was no error in the log, nothing, not a clue as to what the problem was.
The problem turned out to be pretty simple. When the form is generated with results.effectiveDates.effectiveStartDate
it was essentially running results.getEffectiveDates().getEffectiveStartDate() which, from my example, returned a string. That's great, no problem.
When the form is submitted it was trying to call results.getEffectiveDates().setEffectiveStartDate(), where the method setEffectiveStartDate must take a String argument, setEffectiveStartDate(String EffectiveDate). Remember that in my example I was returning a string to the from...so I needed to accept a string as an argument to the set method.
I hope this helps.

Similar Messages

  • Hi.is it possible to add 2 columns and put it in the third calumn thru sqll

    Hi.is it possible to add 2 columns and put it in the third calumn thru sqll
    Hi i have 3 columns
    callstart,duration and callrelease
    In the extract i get values only for callstart and duration.
    Is possible thru sqlldr to output the sum of callstart and duration into callrelease.

    May This Can Help You..
    SQL> select * from table_a;
            ID SCHEDULED  MARK             PRID
             5 07-NOV-10  T05                 7
             6 18-SEP-10  T06                 8
             4 31-JAN-11  T02                 2
             1 18-JAN-11  T01                 2
             2 18-JAN-11  T02                10
             3 18-JAN-11  T03                 1
    6 rows selected.
    SQL> alter table table_a add mix varchar(50);
    Table altered.
    SQL> select * from table_a;
            ID SCHEDULED  MARK       PRID MIX
             5 07-NOV-10  T05           7
             6 18-SEP-10  T06           8
             4 31-JAN-11  T02           2
             1 18-JAN-11  T01           2
             2 18-JAN-11  T02          10
             3 18-JAN-11  T03           1
    6 rows selected.
    SQL> update table_a
      2  set mix=mark||to_char(id);
    6 rows updated.
    SQL> commit;
    Commit complete.
    SQL> select * from table_a;
            ID SCHEDULED  MARK       PRID MIX
             5 07-NOV-10  T05           7 T055
             6 18-SEP-10  T06           8 T066
             4 31-JAN-11  T02           2 T024
             1 18-JAN-11  T01           2 T011
             2 18-JAN-11  T02          10 T022
             3 18-JAN-11  T03           1 T033
    6 rows selected.
    SQL> Regards
    Umesh

  • HT1212 my iphone 5's screen blacks out every now and then. the phone is turned on but the screen is black and i can receive calls. what is wrong with my phone

    my iphone 5's screen blacks out every now and then. the phone is turned on but the screen is black and i can receive calls. what is wrong with my phone?

    I have to believe this has something to do with iOS 7 issues. I have taken my screen blacked out 5s twice to the Genius Bar and the found a bunch of system apps had crashed.  So if this is the case, is iOS7 the problem?

  • My screen is on and I can see calls and texts coming in but I cannot use touchscreen.  It is frozen and won't move. What can I do?

    My iPhone is on and I can see calls and texts coming in but I cannot use the touch screen. It is frozen. What can I do?

    Basics from the manual are restart, reset, restore.
    Have you tired all three of these options?
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Can we call a method in stateless session bean ?

    Can we call a method in stateless session bean in onMessage method?

    Hi,
    The purpose of service locator is to abstract the lookup of the server side services like ejb and DSNs. It should be a normal java class but as such there is no such restriction. You can have a look at the service locator patter at the j2ee blue prints.
    /Ashwani

  • Can we call a method from a adapter class?

    Hi
    I have added KeyAdapter class to a textfield now i want to call a method in the outer class from inside the adapter class. I tried but its showing some error,
    public class A
    A()
    TF1.addKeyListener(new KeyAdapter()
    public void keyReleased(KeyEvent e)
    A a=new A();
    ec.chkSalary();                    
    chkSalary()
    can i call the method like this?

    yeah.. i got it.. i just passed that KeyEvent object to the method
    but i did declare that as a char in that method like,
    chkSalary(e) // e is the KeyEvent reference
    and the method is
    chk(char e);
    thats it.
    thank you yaar.

  • How can we call the method of used controller?

    Hi All,
       i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
    I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view  WDA1
    Please help me to resolve this....
    Regards,
    Ravi

    You can not directly call view's event handler from other component.
    create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
    Now, you can call the interfacecontroller's method
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
      l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_<comp usage name>( ).
      l_ref_INTERFACECONTROLLER->Save_Rr(
        STATUS = '01'                       " Zvstxrrstatus
    save_rr is the method of second component controller

  • Can we call main method in another class?

    Hi...
    can we call main method in another class?
    If no, please tell me the exact reason why can't we call that....

    ok
    can u give that code for me?
    class A {
    public static void main(String [] args){
    System.out.println("In A");
    class B {
    public static void main(String [] args){
    A.main(null);
    }

  • How can I call a Method in a Transformation Routine

    Hello Experts,
    How can I call a Method in a Transformation Routine ??
    THNXX

    Hi,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19?quicklink=index&overridelayout=true
    It will be help full .
    Regards,

  • I use Function Sum to add a column and a new column pops up filled with 0s

    In one of my spreadsheets, every time I try to add a column of numbers using the Sum Function, a new column is added filled with 0s. What's happening? And How do I get it to just add the column?

    can't you just write an SQL script to update the new column?
    Perhaps you can use the integration_id for this? or just another column(s)..

  • I can't call or text a certain person and he can't call or text me

    We both are Verizon customers and both of us have the iPhone 4s. We were able to call and text each other for 3 weeks with no issues and then all of a sudden, out of nowhere, we stopped receiving each others calls and texts and even voice mails. It has caused so much anger and confusion between us. He thought I was ignoring him and I thought he was ignoring me. Then out of nowhere one random night last week, he decided to call me cause he was upset having not heard from me in 2 weeks and his call came through to me. That's when we discovered there are some communication issues going on. We were then able to text each other for one full day before our phones yet again have stopped working together. Why is this happening? We do not have each other blocked. We both have unlimited call and text plans. I tried resetting my phone and updating my roaming capabilities. Nothing is working. I deleted him as a contact and tried to send him a message by entering just his number and still nothing. He is not linked with a Facebook account so I know that is not the issue. I have no issues with any of my other contacts. I don't get it. How can this be fixed? I have spent hours online looking for an answer but have had no luck. I called Verizon and they were of no help. They just had me go through all the things I have already tried. Has this happened to anyone else? Does anyone know how to fix this? I'm losing my mind here!

    The same thing is happening to me.  Yesterday it started, and I had no way of knowing what was going on until I connected with my girlfriend on Facebook to figure out that we had been texting each other for two days and none of the texts were going through.  She is on a Sprint Galaxy S phone and I'm on a Verizon iPhone 4.  Texts I send to her do not arrive.  Texts she sends to me do not arrive.  But she can exchange texts in both directions with other people, and so can I.  Only between our two phones, texts are not being delivered.  How can we fix this?

  • Recently a software update 7.1 presented itself on my phone. Since attempting to download it, I have lost the ability to search the internet while away from my computer. As well I can't call an one. And they can't call me. The 7.1 update keeps popping up.

    Since attempting to download the latest update of 7.1. the download confirmation showed a pop up saying; unable to install. Can't re attempt to install. Lost internet ability when away from computer and I can't be called, nor can I call anyone. Please, can anyone help me with this? I'll even go back to what I had, had before attempting the 7.1 download.

    Sounds like your only able to use Wifi on your device currently which indicates you have lost network connection with your cellular provider ....you can call them to troubleshoot this but one common issue in some countries is that if you are on a 3G only network this can become turned off after a software update...go to settings > cellular/mobile > and see if enable 3G  or enable 4G/LTE is off or on try turning it on and then power off phone and on again and this will probably fix it, so you can make calls etc and use the internet away from the computer.  As for the update always do an itunes backup first and they make sure you have long enough for this update to run through on wifi and then try it again.  Good Luck

  • TS2326 why the sim card in my phone doesnt work and i can't call anybody while its unlocked phone and itsays no service after few minutes

    I have an ipohne 4 and i have unlocked it at the moment im using T Mobile sim card and the signals apearsjust for few seconds and goes back to no service so i can't call any body while i call before it connects it just hangs up by it sel. why is that if ii could get some  help to fix the problem thanks.

    T-Mobile is not a supported iPhone carrier. Best to call them. But since they dont carry it, they will tell you to call Apple. In turn, will do nothing. T-mobile is terrible anyway.

  • I just got my iphone 6 today and I can't call,text,or use data.

    I have problems where I can't call, text, and surf though INTERNET. When I turn on internet (YouTube, Facebook and such), it uses my data but it doesn't work. I tried to call customer service MANY TIMES but my phone won't let me call.... I really need to fix this ASAP because I use my phone in various ways. I usually have 'no service' or 'one bar' or 'two bars' but regardless, it doesn't work..... I tried to use Wifi but it also doesn't work.... This is a very serious problem to me. Please Verizon do something!I My old phone "Cosmos 2" worked just fine in same area. I live in MD zip:21532.

    Did you check the security software on your computer?
    Resolve issues between iTunes and security software - Apple Support
    You can also go back to the Apple Store and let them activate the phone.

  • How can I call a method for all instances of a certain class?

    Hi,
    I have created a snake java applet, which you can play here [http://users.telenet.be/javagames/|http://users.telenet.be/javagames/].
    But now I want to make this into a multi-player game (with two or more snakes etc..).
    In my main class you can find methods like these:
    snake.move();
    snake.drawSnake();Now if I just alter my main class and make a second instance of the class snake and change my methods to this,
    snake.move();
    snake2.move();
    snake.drawSnake();
    snake2.drawSnake();my game almost works perfectly, I'll have to make some minor changes though.
    But my question is, is there a better way of doing this. Instead of duplicating all the code, how can I make the methods immediately work for both snakes, instead of calling it twice?
    All suggestions are welcome!
    Thanks in advance.
    Lennart

    If there was something common to all snake instances then you could declare that variable static.
    Note: I don't want to confuse you here. A static variable can have a value apart from any instances at all. Instances can view static variables but a static method or inner class, for example, cannot view instance variables.
    More generally, I would think you would want to treat each snake as an automaton with its own behavior. There must be some class such as Game or Board or whatever that has, as suggested, either an array or collection of snakes. Iterate over each snake, ask it to perform some computation for the game and then draw itself.
    - Saish

Maybe you are looking for