Reinhard.
Can you please gimme some simple example of how to use controller.
On Mon, 2005-04-25 at 11:39 +0200, Reinhard Poetz wrote:
> Arsen A. Gutsal wrote:
> > It does not work for me.
> > I'm using cocoon-2.1.6, that's why I guess.
> > Anyway - I've set widget value (in the template), and it works fine,
> > except that <select> widget does not displays selected value.
> > <jx:if test="${cocoon.request.getParameter('user-type')}">
> > ${form.lookupWidget('registration_type').setValue(cocoon.request.getParameter('user-type'))}
> > </jx:if>
> >
> > Any suggestions?
>
> It's NOT the concern of the presentation layer to set the values of a wdiget.
> IMHO this is an absolute DON'T as it introduces side-effects
> (presentationlayer
> changes the data model). Try to set the widget value using the controller. I
> guess this will solve your problem.
>
> Also make sure that the set value is equal to the key of the item of the
> selection list.
>
--
Sincerely,
Arsen A. Gutsal
SOFTSKY Ltd CEO/Executive
SOFTSKY - Cost effective Software Development
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]