On Thu, 29 Jul 2004 15:42:20 +0200, sirhck <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I need to use struts-faces library with commercial JSF components.
> Thouse components
> are using own listeners classes. I am not sure what to do to delegate
> events to Struts actions
> instead of  thouse listener actions. Is there any description of
> integration struts with non-struts JSF components?
> 

Interesting question!

The struts-faces library's integration point with Struts itself is
that it replaces the default ActionListener defined by JSF.  This
specialized listener is called on any ActionEvent that is broadcast by
a UICommand component (of the standard ones, that means
<h:commandButton> and <h:commandLink>).

If *all* of the following conditions are met:

* The source component is nested inside
  an <s:form> component instead of an
  <h:form>.

* The source component has its "immediate"
  property set to false.

then, the Struts request processor will be invoked.  In all other
cases, the standard JSF processing is performed.

What that means, in English, is that submit buttons inside a Struts
form will cause the usual Struts behavior (form bean, validation,
action call, forwarding) to happen.  For everything else, Struts is
not involved at all.  That's usually what you want for components that
are simply displaying things, or that are input fields bound to a form
bean property.

If you have any specific scenarios to ask about, I'd be happy to
discuss them further (on the list, of course, so everyone can see the
answers).

> I would be very grateful for some advice, best regards,
>     Chris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to