cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arsen A. Gutsal" <>
Subject Re: fd:selection-list selected item
Date Mon, 25 Apr 2005 09:28:30 GMT
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')}">

Any suggestions?

On Mon, 2005-04-25 at 10:47 +0200, Reinhard Poetz wrote:

> Arsen A. Gutsal wrote:
> > Hi List.
> > 
> > How to set up default item within fd:selection-list (HTML equivalent is
> > <option selected/>)?
> You have to set the value of the widget. AFAIK there is a new, undocumented fd: 
> element: <fd:initial-value>...</>. Of course you can access the widget in
> controller and set the value there using the cForms API.
> Of course you have to make sure that the value you set is part of the selection 
> list.

Arsen A. Gutsal
SOFTSKY Ltd CEO/Executive
SOFTSKY - Cost effective Software Development

View raw message