Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring-Webflow Using a HTML link to signal an event

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.

like image 668
Christian Wenz Avatar asked Aug 29 '11 11:08

Christian Wenz


1 Answers

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.

like image 62
David Avatar answered Oct 31 '22 20:10

David