Re: validator Tag Problem in MyFaces 1.1.1 ?

2006-02-09 Thread Matthias Wessendorf
Hi Sven,

can you provide some code to the list?

Btw. the Apply Request Value Phase is populating the UIComponents w/
submitted values. Your backing bean properties are populated during
model update phase.

Regards,
Matthias

On 2/9/06, Haiges, Sven, Vodafone Group RD [EMAIL PROTECTED] wrote:
 Hi all,

 I am experiencing some problems with the usage of the validator
 attribute inside a h:inputText element and would like to know if ther
 are known issues. The way I am solving it right now is to use
 application level validation, e.g. I call a validate method from one
 of my commandButton action MethodBindings.

 problem 1: when I tried to access a bean-local property that should have
 been set in the apply request values phase, this was still null
 problem 2: I created a ValidatorException and threw it, but the
 FacesMessage included was not correctly rendered. Strangely, the css
 information (color:red) was not used... the message was black).

 Thanx!
 Sven



 --
 Sven Haiges
 Technology Manager
 Vodafone Group Research  Development .DE

 Tel:+49 89 95410-586
 Fax:+49 89 95410-111
 Mobile: +49 172 849-6359

 mailto:[EMAIL PROTECTED]
 http://www.vodafone-rnd.com

 Vodafone Pilotentwicklung GmbH
 Registered Office: Chiemgaustrasse 116, 81549 München, Germany
 Registered in Germany Amtsgericht München HRB 98516




--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


RE: validator Tag Problem in MyFaces 1.1.1 ?

2006-02-09 Thread Haiges, Sven, Vodafone Group RD
Ah! Of course... I made the error that I expected my backing bean to be
updated... but of course this is happening AFTER my validations. As I
changed the code now, I cannot proved any code snippets now, but as I
said, I move the validation already to an action-method.

Cheers\
Sven

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 3:43 PM
To: MyFaces Discussion
Subject: Re: validator Tag Problem in MyFaces 1.1.1 ?


Hi Sven,

can you provide some code to the list?

Btw. the Apply Request Value Phase is populating the UIComponents w/
submitted values. Your backing bean properties are populated during
model update phase.

Regards,
Matthias

On 2/9/06, Haiges, Sven, Vodafone Group RD [EMAIL PROTECTED]
wrote:
 Hi all,

 I am experiencing some problems with the usage of the validator
 attribute inside a h:inputText element and would like to know if ther
 are known issues. The way I am solving it right now is to use
 application level validation, e.g. I call a validate method from one
 of my commandButton action MethodBindings.

 problem 1: when I tried to access a bean-local property that should
have
 been set in the apply request values phase, this was still null
 problem 2: I created a ValidatorException and threw it, but the
 FacesMessage included was not correctly rendered. Strangely, the css
 information (color:red) was not used... the message was black).

 Thanx!
 Sven



 --
 Sven Haiges
 Technology Manager
 Vodafone Group Research  Development .DE

 Tel:+49 89 95410-586
 Fax:+49 89 95410-111
 Mobile: +49 172 849-6359

 mailto:[EMAIL PROTECTED]
 http://www.vodafone-rnd.com

 Vodafone Pilotentwicklung GmbH
 Registered Office: Chiemgaustrasse 116, 81549 München, Germany
 Registered in Germany Amtsgericht München HRB 98516




--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: validator Tag Problem in MyFaces 1.1.1 ?

2006-02-09 Thread Matthias Wessendorf
Sven,

I am not really sure about what's happening, when throwing a
ValidatorException in Phase 5. Since converters and validators are
invoke two phases earlier.

However, it is possible to add FacesMessage objects during phase 5
(inside of your action method).

Use something like:

FAcesContext.getCurrentInstance().addMessage(null, new FacesMessage(...));


-Matthias

On 2/9/06, Haiges, Sven, Vodafone Group RD [EMAIL PROTECTED] wrote:
 Ah! Of course... I made the error that I expected my backing bean to be
 updated... but of course this is happening AFTER my validations. As I
 changed the code now, I cannot proved any code snippets now, but as I
 said, I move the validation already to an action-method.

 Cheers\
 Sven

 -Original Message-
 From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 09, 2006 3:43 PM
 To: MyFaces Discussion
 Subject: Re: validator Tag Problem in MyFaces 1.1.1 ?


 Hi Sven,

 can you provide some code to the list?

 Btw. the Apply Request Value Phase is populating the UIComponents w/
 submitted values. Your backing bean properties are populated during
 model update phase.

 Regards,
 Matthias

 On 2/9/06, Haiges, Sven, Vodafone Group RD [EMAIL PROTECTED]
 wrote:
  Hi all,
 
  I am experiencing some problems with the usage of the validator
  attribute inside a h:inputText element and would like to know if ther
  are known issues. The way I am solving it right now is to use
  application level validation, e.g. I call a validate method from one
  of my commandButton action MethodBindings.
 
  problem 1: when I tried to access a bean-local property that should
 have
  been set in the apply request values phase, this was still null
  problem 2: I created a ValidatorException and threw it, but the
  FacesMessage included was not correctly rendered. Strangely, the css
  information (color:red) was not used... the message was black).
 
  Thanx!
  Sven
 
 
 
  --
  Sven Haiges
  Technology Manager
  Vodafone Group Research  Development .DE
 
  Tel:+49 89 95410-586
  Fax:+49 89 95410-111
  Mobile: +49 172 849-6359
 
  mailto:[EMAIL PROTECTED]
  http://www.vodafone-rnd.com
 
  Vodafone Pilotentwicklung GmbH
  Registered Office: Chiemgaustrasse 116, 81549 München, Germany
  Registered in Germany Amtsgericht München HRB 98516
 
 


 --
 Matthias Wessendorf
 Zülpicher Wall 12, 239
 50674 Köln
 http://www.wessendorf.net
 mwessendorf-at-gmail-dot-com



--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com