You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by oceatoon <t....@systheo.com> on 2005/02/15 12:21:43 UTC

Cform: Field 2 SelectionList, and the otherway??

Hi everyone 
I posted this in "user list" but got no response, maybe someone here can
help me onthis one.
 
 I have a field widget(1) that becomes a selection list by a value change of
 another widget(2) in the page. This works great. 
 But for a certain value of the widget(2), on change, I would need to make
 that selection list back into a field widget???
 
 I found the removeSelectionList(); but it doesn't work??
 there are two  "interface SelectableWidget", one with the remove and the
 other without???
 
 I don't know what to do ?
 Is my use case possible?
 
 Thanks for the help 
 Tibor


Re: Cform: Field 2 SelectionList, and the otherway??

Posted by oceatoon <t....@systheo.com>.
> 2 interfaces? I only see
> org.apache.cocoon.forms.formmodel.SelectableWidget. It has no
> removeSelectionList(), but a javadoc comment at
> setSelectionList(SelectionList):
Thanks Joerg
 I finally found my way on this. the removeSelectionList() was the solution.
sorry for not closing that post 
Regards
Tibor


Re: Cform: Field 2 SelectionList, and the otherway??

Posted by Joerg Heinicke <jo...@gmx.de>.
On 15.02.2005 12:21, oceatoon wrote:

>  I have a field widget(1) that becomes a selection list by a value change of
>  another widget(2) in the page. This works great. 
>  But for a certain value of the widget(2), on change, I would need to make
>  that selection list back into a field widget???
>  
>  I found the removeSelectionList(); but it doesn't work??
>  there are two  "interface SelectableWidget", one with the remove and the
>  other without???

2 interfaces? I only see 
org.apache.cocoon.forms.formmodel.SelectableWidget. It has no 
removeSelectionList(), but a javadoc comment at 
setSelectionList(SelectionList):

* @param selectionList the selection list or <code>null</code> to have 
no selection list.

Joerg