5
votes

I am playing around with Spring-Webflow (2.3), ZK (5.0.7.1) and ZK Spring (3.0).

Actually I'm trying to signal an event with a HTML link as described at Spring-Webflow.

<a href="${flowExecutionUrl}&_eventId=go2ProjectRoomView" >2 Project</a>

Part of my flow definition file looks like:

<view-state id="mainView">
  <transition on="go2ProjectRoomView" to="projectRoomView" bind="false"/>
</view-state>

<view-state id="projectRoomView">
  <transition on="go2MainView" to="mainView" bind="false"/>
</view-state>

If I deploy my web project and navigate to the main view following error appears:

The reference to entity "_eventId" must end with the ';' delimiter

Same error happens if I replace _eventId=go2ProjectRoomView by _eventId_go2ProjectRoomView.

Link to full stack trace.

1
I'm facing same problem and I tried th:href too without results. Any suggestion? - ilopezluna

1 Answers

7
votes

The error you are receiving is actually an HTML/XML parsing error. Ampersand (&) is used to reference special characters/entities (see here). Change your link to:

<a href="${flowExecutionUrl}&amp;_eventId=go2ProjectRoomView" >2 Project</a>

and you should be ok.