Its been a while since I've been actively using Trinidad but here are a
few items.

1. Since immediate is on all of these components they will all execute
during the autosubmit.  Thus you must handle action listeners for all of
them.

2. Make sure that you do a facescontext.renderResponse to stop all
follow on processing when you get to the point you need to be at.
Typically I do this during the valuechangeevent because typically you
don't want to get to the update model phase.  Essentially you are going
to go through the entire JSF lifecycle for ALL components unless you
terminate response processing.

Hope that helps some as quick answer

-----Original Message-----
From: khaos [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 10:17 AM
To: [email protected]
Subject: [Trinidad] SelectOneChoice with autosubmit and immediate causes
pprerror


Hi all,
  First, let me say i'm a newbie to faces. This is my situation: I have
a
form  with a SelectOneChoice with the autosubmit and immediate flags set
to
true, a pair of SelectOneBoolean with the same flags set, and another
SelectOneChoice also with the same attributes set. All of them are
binded to
actionListener methods on my backing bean. The SelectOneChoices
enable/disable a part of the form, and the last SelectOneChoice uses ppr
to
show additional data based on the selection made.

If a user follows a basic logic when filling the form (like first things
first) and select something in the first SelectOneChoice, everything
goes
right. But if instead, the user just want to change any of the other
options
first, Trinidad generates a PPR error caused by a nullpointer exception.
The
error must come from that there's nothing selected in the component, as
when
something is selected, the error disappear. It also doesn't appear if I
delete the immediate flag from the component, but then I get the
validation
errors when the selection changes.

Can somebody help me...?
Thanks in advance 
-- 
View this message in context:
http://www.nabble.com/-Trinidad--SelectOneChoice-with-autosubmit-and-imm
ediate-causes-ppr-error-tp15268982p15268982.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


Reply via email to