Re: Ponder: Validation exception catch?
James Cicenia <[email protected]> Thu, 30 May 2013 13:48:17 -0500
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
This is mostly Ponder related, but I wound up modifying the login direct action as so:
public WOActionResults loginAction() {
ERAuthenticationProcessor<ERAuthenticationRequest> processor = ERAuth.sharedInstance().processorForType(authRequest);
WOActionResults result = processor.authenticate(authRequest);
if(result.getClass().getName().equals("com.yella.ui.components.Main")){
((Main)result).setErrorMessage("Bad Login Credentials");
}
return result == null?defaultAction():result;
I just needed it to be fast and dirty at the moment. Not proud of it, but it works.
Next on my list of things to understand more fully and to utilize: ERXThreadStorage and better with chains of validation exceptions.
Thanks
James
On May 29, 2013, at 11:04 AM, Kieran Kelleher <[email protected]> wrote:
> I use ERXThreadStorage.
>
> On May 28, 2013, at 6:36 PM, James Cicenia <[email protected]> wrote:
>
>> I have a ERXStateless Login page.
>> I want to show the validation error:
>> Validation failed on an object [null] with keypath = null and exception: Login failed: Invalid credentials
>>
>> How do I access that from ERXStatelessComponent?
>>
>> Thanks
>> James
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
>> Wonder-disc mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc