Sunday, 15 April 2012

spring - webflow.xsd - Start state is missing. Add at least one state to the flow -



spring - webflow.xsd - Start state is missing. Add at least one state to the flow -

i working spring core 4.0.7 , spring web flow 2.4.0

using spring tool suite able create spring web flow definition file

for <flow> tag generates

<?xml version="1.0" encoding="utf-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">

observe spring-webflow-2.0.xsd

when seek utilize validation-hints attribute how following:

<view-state id="registrar" view="deportista.flow.formulario.registro" model="deportista" validation-hints="'….somevalue'" >

the editor set underline red. attribute wrong or not valid.

i did realize if change:

from

spring-webflow-2.0.xsd

to

spring-webflow.xsd (-2.0 has been removed)

it recognized , goes until build application.. in left part of <flow> tag appears reddish circle x. if see message says:

start state missing. add together @ to the lowest degree 1 state flow

funny because have in beginning

<on-start> <evaluate expression="deportistaaction.createdeportista()" result-type="com.manuel.jordan.domain.deportista" result="flowscope.deportista"/> </on-start> <view-state id="registrar" view="deportista.flow.formulario.registro" model="deportista" validation-hints="'…somevalue'" >

even error, flow process works fine. mean, error appears in <flow> definition when flow executed work fine, practically how if error never has been generated.

what wrong? did research through google, , has been reported how kind of old bug time ago , has been fixed. wondered why situation appears again.

spring spring-webflow spring-3 spring-webflow-2 spring-4

No comments:

Post a Comment