Hi Geert
Here's my element definition
<element implementation="Register" id="REGISTER" url="/register.asp">
<submission name="register">
<bean classname="UserInfo"/>
<bean classname="RoleUser"/>
</submission>
</element>
And as i wrote below validation worked for all 2 beans but marking just
worked for RoleUser bean.
If there's an error in UserInfo bean for example wrong email than "${v
MARK:email}${/v}" doesn't work.
Custom properties question is closed- thank's
Geert Bevin wrote:
>
> Hi Maxim,
>
> RIFE form generation relies on beans and properties. The easiest way
> is to extend the base classes and add those properties. If you don't
> want to do that, you can use http://rifers.org/docs/api/com/uwyn/rife/
> site/FormBuilderXhtml.html to generate form fields directly. There's
> also ValidationBuilderXhtml in that package to only build the
> validation.
>
> Best regards,
>
> Geert
>
> On 11 Jan 2007, at 15:53, Maxim Grigoriev wrote:
>
>> I'm making registration page.
>> I have 2 beans - standart rife User and UserInfo bean also i have 2
>> properties - email confirmation and password confirmation. Theses
>> properties
>> aren't bean fields.
>>
>> I have some questions:
>>
>> 1. bean property validation marking works for first bean(rife
>> user) but not
>> for second one.
>>
>> Working marking:
>> <td width="75%" align="left" ${v MARK:login}${/v}><!--V
>> 'FORM:INPUT:login'-->maxLength="40" size="25" tabindex="1"<!--/V--
>> ></td>
>>
>> Non-working:
>> <td width="75%" align="left" ${v MARK:email}${/v}>
>> <!--V 'FORM:INPUT:email'-->maxLength="50"
>> size="25"
>> tabindex="2"<!--/V--></td>
>>
>> I look in validation colection in UserInfo bean and there's an
>> error for
>> email property but this field doesn't have error style on html form.
>>
>> 2. How can mark confirmationEmail, confirmationPaaword fields when
>> they're
>> wrong ?
>>
>> Thank's
>> --
>> View this message in context: http://www.nabble.com/Validation-
>> question-tf2959061.html#a8278039
>> Sent from the RIFE - users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Rife-users mailing list
>> [email protected]
>> http://lists.uwyn.com/mailman/listinfo/rife-users
>>
>
> --
> Geert Bevin
> Uwyn "Use what you need" - http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
>
>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users
>
>
--
View this message in context:
http://www.nabble.com/Validation-question-tf2959061.html#a8296334
Sent from the RIFE - users mailing list archive at Nabble.com.
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users