facebook

JSF CommandLink action error message in Visual JSF Designer

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #299851 Reply

    Humppa
    Member

    Hi,

    as I’m not using any JSF navigation rules in my application I would like to use action methods which have no return value.

    e.g.:
    JSF code:

    
                 <ice:commandLink value="Do something"     action="#{bean.OnAction}"/>
    

    bean code:

    
    ...
        public void OnAction()
        {
               do something...
        }
    ...
    

    Everything works fine with that code (I can run it on the server and it works). But the MyEclipse Visual JSF Designer says that the #{bean.OnAction} section is wrong.

    Error Text:
    Method must have signature “String method()” but has signature “void method()”.

    Can I somehow configure MyEclipse so that it ignores that ‘error’ and doesn’t mark it as such?

    Regards
    Humppa!

    #299855 Reply

    support-joy
    Member

    Humppa,

    You can right click on the file. Click on MyEclipse > Exclude from Validation. Or you can also change your validation rules here – Window > Preferences > MyEclipse Enterprise Workbench > Validation

    Hope this helps.

    #299857 Reply

    Humppa
    Member

    Hello joy,

    thank You for Your reply.

    I now changed Window > Preferences > MyEclipse Enterprise Workbench > Validation -> JSF -> Type Assignment Problems -> Method expression signature incompatibility from Error to Ignore and now it’s okay.

    After that i had to revalidate my project by right-clicking on it and choosing MyEclipse -> Run Validation.

    That did it for me.
    Thx
    Humppa!

    #299858 Reply

    support-joy
    Member

    Fantastic. Good to hear you are all set.

    Best.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSF CommandLink action error message in Visual JSF Designer

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in