You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeremy Green <jg...@webeprint.com> on 2006/06/09 19:21:06 UTC

CForms on-value-changed for the CombotBox widget?

Hey everyone I have a combo box in a form (<ft:widget id="client" 
type="suggest">) which is working really well except for one little 
problem.  I can't figure out how to trigger a change in the form based 
on a value set in the combo box.  I've added code for the 
<fd:on-value-changed> in the form model, but it never gets called.  I'm 
guessing this has something to do with the combo box not knowing to 
report back to the server after its value changes.  Does anyone have any 
ideas on how to do this? 

Just FYI I'm pretty much trying to duplicate the car selector sample but 
with combo boxes instead of the drop down.  I'd like for people to be 
able to use the same form to add new items just by typing in the name 
(while getting suggestions for items that match what they've typed so 
far.)  So far the first combo box is working pretty well, but I can't 
figure out how to switch the fd:suggestion-list src attribute on the 
second list when the first one changes.

Thanks,
Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: CForms on-value-changed for the CombotBox widget?

Posted by Jeremy Green <jg...@webeprint.com>.
Hi Antonio, that looks like exactly the problem I'm having.  I haven't 
tried applying that patch yet, but it sounds like the description of the 
symptoms I have here.

Thanks,
Jeremy


Antonio Gallardo wrote:

> Hi Jeremy,
>
> Would you confirm this is the issue [1] you are hitting?
>
> Best Regards,
>
> Antonio Gallardo
>
> [1] http://issues.apache.org/jira/browse/COCOON-1858
>
> Jeremy Green escribió:
>
>> Hey everyone I have a combo box in a form (<ft:widget id="client" 
>> type="suggest">) which is working really well except for one little 
>> problem.  I can't figure out how to trigger a change in the form 
>> based on a value set in the combo box.  I've added code for the 
>> <fd:on-value-changed> in the form model, but it never gets called.  
>> I'm guessing this has something to do with the combo box not knowing 
>> to report back to the server after its value changes.  Does anyone 
>> have any ideas on how to do this?
>> Just FYI I'm pretty much trying to duplicate the car selector sample 
>> but with combo boxes instead of the drop down.  I'd like for people 
>> to be able to use the same form to add new items just by typing in 
>> the name (while getting suggestions for items that match what they've 
>> typed so far.)  So far the first combo box is working pretty well, 
>> but I can't figure out how to switch the fd:suggestion-list src 
>> attribute on the second list when the first one changes.
>>
>> Thanks,
>> Jeremy
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: CForms on-value-changed for the CombotBox widget?

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Jeremy,

Would you confirm this is the issue [1] you are hitting?

Best Regards,

Antonio Gallardo

[1] http://issues.apache.org/jira/browse/COCOON-1858

Jeremy Green escribió:
> Hey everyone I have a combo box in a form (<ft:widget id="client" 
> type="suggest">) which is working really well except for one little 
> problem.  I can't figure out how to trigger a change in the form based 
> on a value set in the combo box.  I've added code for the 
> <fd:on-value-changed> in the form model, but it never gets called.  
> I'm guessing this has something to do with the combo box not knowing 
> to report back to the server after its value changes.  Does anyone 
> have any ideas on how to do this?
> Just FYI I'm pretty much trying to duplicate the car selector sample 
> but with combo boxes instead of the drop down.  I'd like for people to 
> be able to use the same form to add new items just by typing in the 
> name (while getting suggestions for items that match what they've 
> typed so far.)  So far the first combo box is working pretty well, but 
> I can't figure out how to switch the fd:suggestion-list src attribute 
> on the second list when the first one changes.
>
> Thanks,
> Jeremy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org