Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=2842769
By: lpiatti

I am a beginner, i'm tring to setup validation and I can't get it work, i'm
in big troubles ....
Can someone help me yo discover where is my mistake?

In validation.xml, generated by DEVGUI I have this piece of validation
definition

<form name="Annuncio">
 .....
 <field depends="maxlength" property="Titolo">
    <msg key="Titolo has a maximum length of ${var:maxchars}" resource="false"
name="maxlength"/>
    <arg0 key="${var:maxchars}" resource="false" name="maxlength"/>
    <var>
       <var-name>maxchars</var-name>
       <var-value>50</var-value>
    </var>
 </field>
 ....
</form>

In Eclipse console, running the form i get this message:
142716 [http8080-Processor4] ERROR org.dbforms.validation.DbFormsValidatorUtil
- Not in proper format - do not try to convert!

With some debug I found that in File DbFormsValidatorUtil, this piece of code
....

try
{
   result = errors.getXMLErrorMessage(result);
}
catch (Exception e)
{
   logCat.error("Not in proper format - do not try to convert!");
}

has result set with value "Titolo has a maximum length of ${var:maxchars}:50"
and errors is null so exception is fired!

I want only make simple test don't use i18n without resource bundle
resource="false"
My version is DBFORMS 2.4 on Tomcat 4.18 JVM 1.4.1

Tank you
Luigi


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=55830


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to