Topic
  • 3 replies
  • Latest Post - ‏2013-03-21T15:15:09Z by paoloc
paoloc
paoloc
545 Posts

Pinned topic requestLink works but the same function with commandExButton no!

‏2013-03-20T18:04:40Z |
In the same jsp requestLink works and commandExButton fails.
The function is the same in the same jsp.
Code:
This works
<td><hx:requestLink styleClass="requestLink"
id="link1" action="#{spazioDiLavoro3.cercatesto}">
<h:outputText id="text28"
styleClass="outputText" value="Cerca Testo"></h:outputText>
</hx:requestLink>
</td>
*This no * <td><hx:commandExButton id="buttonCercaTesto1"
styleClass="commandExButton" type="submit"
value="cercaTesto"
action="#{spazioDiLavoro3.cercaTesto}"
actionListener="#{spazioDiLavoro3._commandActionListener}">
</hx:commandExButton></td>

Error Log:

mar 20, 2013 6:42:04 PM org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.el.MethodNotFoundException: cercaTesto: jsfhandlers.spazioDiLavoro3.cercaTesto()
at com.sun.faces.el.MethodBindingImpl.method(MethodBindingImpl.java:226)
..........

what happens?

paoloc
Updated on 2013-03-21T15:15:09Z at 2013-03-21T15:15:09Z by paoloc
  • paoloc
    paoloc
    545 Posts

    Re: requestLink works but the same function with commandExButton no!

    ‏2013-03-21T07:50:55Z  
    Another strange thing with this page.
    For all imput fileds. Selecting QuickEdit has no support for JavaScript and always appears the message : Problems encountered with this script so I can not type in anything else.
    Always new surprises with Rational RBD.
    In addition, the tabbed panel are seen as link when running the page.
    Someone understands something?
    I lose more time with problems of RBD instead of writing develop the application
    What to do?
    paoloc
  • SystemAdmin
    SystemAdmin
    6195 Posts

    Re: requestLink works but the same function with commandExButton no!

    ‏2013-03-21T10:11:43Z  
    Check the spelling. In hx:requestLink you have spazioDiLavoro3.cercatesto as the action but in commandExButton you have spazioDiLavoro3.cercaTesto. EGL is generated to Java and Java is case sensitive. Thus cercatesto does not equal cercaTesto.

    HTH,
    Tuukka
  • paoloc
    paoloc
    545 Posts

    Re: requestLink works but the same function with commandExButton no!

    ‏2013-03-21T15:15:09Z  
    Check the spelling. In hx:requestLink you have spazioDiLavoro3.cercatesto as the action but in commandExButton you have spazioDiLavoro3.cercaTesto. EGL is generated to Java and Java is case sensitive. Thus cercatesto does not equal cercaTesto.

    HTH,
    Tuukka
    Hi thanks for the raplay,
    both requestLink and commandExButton where created with drag and drop to the page from the Enterprise explorer.
    After I changed manually from cercaTesto to cercatesto the commandExButton works well.
    All other buttons work well without any manual change, so this remains a mystery to RBD.
    Solved this problem the other remains: I cannot digit any text into quickedit field.
    I have:
    1) uninstalled and reinstalled RBD
    2) exported,deleted and imported the project
    The problem persist.
    3) saved,deleted jsp,java,class and ir related files and imported the jsp
    4) cleaned the project
    The problem persist.
    This problem occurs only in this jsp.
    For example one field named testoCercaAppunti defined as string in egl and with the following html:

    testoCercaAppunti string;
    <td><h:inputText styleClass="inputText"
    id="text30"
    rendered="#{spazioDiLavoro3.visAppunti}"
    value="#{spazioDiLavoro3.testoCercaAppunti}"
    binding="#{spazioDiLavoro3.testoCercaAppunti_Ref}"></h:inputText>
    </td>
    See atthachments

    paoloc

    Attachments