Results 1 to 5 of 5

Thread: Web Flows: Auto-complete in <evaluate expression="..."/>?

  1. #1
    Join Date
    Feb 2010
    Posts
    13

    Default Web Flows: Auto-complete in <evaluate expression="..."/>?

    I am using STS 2.3.0.RELEASE.

    I am looking at the swf-booking-faces sample project that is part of the SWF distribution.

    I get "Content Assist not available at the current location" when I open a flow xml file in the "Spring Web Flow XML Editor" (for example "booking-flow.xml"), edit the "expression" attribute of an "evaluate" tag and try CTRL+SPACE for content-assist.

    Is this the expected behavior? It would be a major limitation (compared to the usual editing of Java code).

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    That is the expected behavior how should it know what to do, which beans to expose, which expression to use. It is a limitation not from STS but more or less from the XML editor shipped with eclipse.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Feb 2010
    Posts
    13

    Default

    I used the "Spring Web Flow XML Editor", not the generic Eclipse XML editor.

    I would expect refactoring support and content assist for all expressions that are interpreted at runtime as references to Java classes / methods.

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Which is nothing more then an extenstion to the default xml editor. As you already state they are interpreted at RUNTIME so there is no way to interpret them at design time, if that would be the case there would already be that support for JSP/JSF/XML and all other expression language builders, but alas....
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Feb 2010
    Posts
    13

    Default

    It must be possible since IntelliJ does it:
    http://blogs.jetbrains.com/idea/2009...tellij-idea-8/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •