Re: how to move selected items to the right side of a double-listbox using JavaScript

2011-12-29 Thread Thorsten Scherler
On Wed, 2011-12-28 at 13:08 -0500, Paul Joseph wrote: Hi there, I have a Form, with a listbox styled as a double-listbox. I have the left side populated with a list of items, and am able to programmatically select a few of these items using JavaScript. So far so good. But how do I

Re: how to move selected items to the right side of a double-listbox using JavaScript

2011-12-29 Thread Paul Joseph
I had thought the double list box as implemented in CForms was a cocoon creation...sorry about that. On 12/29/2011 4:17 AM, Thorsten Scherler wrote: On Wed, 2011-12-28 at 13:08 -0500, Paul Joseph wrote: Hi there, I have a Form, with a listbox styled as a double-listbox. I have the left side

Re: how to move selected items to the right side of a double-listbox using JavaScript

2011-12-29 Thread Thorsten Scherler
On Thu, 2011-12-29 at 07:39 -0500, Paul Joseph wrote: I had thought the double list box as implemented in CForms was a cocoon creation...sorry about that. hmm, you have not mentioned cforms before. ;) I have to admit my experience with cforms is a bit outdated I fear, so cannot help you

how to move selected items to the right side of a double-listbox using JavaScript

2011-12-28 Thread Paul Joseph
Hi there, I have a Form, with a listbox styled as a double-listbox. I have the left side populated with a list of items, and am able to programmatically select a few of these items using JavaScript. So far so good. But how do I move these selected items to the Right box using JavaScript

Re: bug with double-listbox?

2008-11-09 Thread Paul Joseph
well...the code below seems to work fine on IE7. IF I uncomment out the line, I get the mis-match error. : function addEvent( element, type, handler ) { if( element.addEventListener ) { element.addEventListener( type, handler, false ); } else { //this line is commented out as

Re: bug with double-listbox?

2008-11-09 Thread Jason Johnston
On 11/09/2008 07:41 AM, Paul Joseph wrote: well...the code below seems to work fine on IE7. IF I uncomment out the line, I get the mis-match error. : function addEvent( element, type, handler ) { if( element.addEventListener ) { element.addEventListener( type, handler, false ); } else { //this

Re: bug with double-listbox?

2008-11-09 Thread Paul Joseph
Got it...works nicely now, with the line uncommented! Thanks again, I sure do appreciate it. rgds Paul Jason Johnston wrote: On 11/09/2008 07:41 AM, Paul Joseph wrote: well...the code below seems to work fine on IE7. IF I uncomment out the line, I get the mis-match error. : function

Re: bug with double-listbox?

2008-11-08 Thread Jason Johnston
On 11/07/2008 09:52 AM, Paul Joseph wrote: element.attachEvent( 'on' + type, handler ); is giving me a runtime type mismatch error in IE7. What does it do really. When I comment it out, things seem to continue to work ;-) It is the IE-proprietary event attachment method. See

Re: bug with double-listbox?

2008-11-07 Thread Jason Johnston
On 11/06/2008 06:05 PM, Paul Joseph wrote: But if I have a JavaScript function say: function myFunction() { alert (loaded); } and if I call this function on page load either by using window.onload=myFunction; OR by body onLoad=javascript:scrollToPosition(); then the double-list box stops

Re: bug with double-listbox?

2008-11-07 Thread Paul Joseph
This works nicely thanks! One thing though...the line in the else statement: element.attachEvent( 'on' + type, handler ); is giving me a runtime type mismatch error in IE7. What does it do really. When I comment it out, things seem to continue to work ;-) rgds Paul Jason Johnston wrote:

bug with double-listbox?

2008-11-06 Thread Paul Joseph
Hi there, The double-listbox works fine for me except if I have a script that executes on page load. Hence, if I have a simple page, it works fine. But if I have a JavaScript function say: function myFunction() { alert (loaded); } and if I call this function on page load either by using

double listbox error--this.right.options.length is null or not an object

2008-10-14 Thread Paul Joseph
simple--just replace the listbox in the definition below which works nicely, with double-listbox. fi:styling list-type=listbox style=width:140px listbox-size=3 name=other_assignees ONBLUR=writeHidden();/ The page where it works, I notice that this function is also called, but with one

multivaluefield using the 'double-listbox' and AJAX

2007-02-06 Thread Joost Kuif
Hi, Does anyone already fixed the mutivaluefield in double-listbox styling, in combination with AJAX in cocoon 2.1.9 or 2.1.10? Grtz, Joost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

double-listbox -- within a repeater

2006-12-13 Thread Dirk Gronert
Hello folks, is there anybody who can help ;-)! I'am using cocoon 2.1.10 and i have some problems with cforms. I build a model like this: fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; fd:widgets fd:multivaluefield id=test2

RE: fb:value et valeurs selectionnées dans une doubl e-listbox

2006-06-22 Thread Berengere.Genin
Objet : RE: fb:value et valeurs selectionnées dans une double-listbox je viens de remarquer que MultiValueJXPathBinding.java a changé entre la version 2.1.8 er la 2.1.9, y aurait-il un rapport avec mon problème? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé

Re: fb:value et valeurs sel ectionnées dans une double-listbox

2006-06-22 Thread Jean-Baptiste Quenot
* [EMAIL PROTECTED]: je viens de remarquer que MultiValueJXPathBinding.java a changé entre la version 2.1.8 er la 2.1.9, y aurait-il un rapport avec mon problème? Bonjour Bérangère, Non le code n'a pas changé, qu'est-ce qui te fait dire ça? -- Jean-Baptiste Quenot aka John Banana

RE: fb:value et valeurs selectionnées dans une doubl e-listbox

2006-06-22 Thread Berengere.Genin
)); Voili, je ne sais pas trop comment m'y prendre. Merci. Bérengère -Message d'origine- De : Jean-Baptiste Quenot [mailto:[EMAIL PROTECTED] Envoyé : Thursday, June 22, 2006 10:53 À : users-fr@cocoon.apache.org Objet : Re: fb:value et valeurs selectionnées dans une double-listbox

Re: fb:value et valeurs sel ectionnées dans une double-listbox

2006-06-22 Thread Jean-Baptiste Quenot
OK je vois en effet: r348415 | giacomo | 2005-11-23 13:06:39 +0100 (Mer, 23 nov 2005) | 1 line Changed paths: M /cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/binding/MultiValueJXPathBinding.java workaround for

RE: fb:value et valeurs selectionnées dans une doubl e-listbox

2006-06-22 Thread Berengere.Genin
:[EMAIL PROTECTED] Envoyé : Thursday, June 22, 2006 11:44 À : users-fr@cocoon.apache.org Objet : Re: fb:value et valeurs selectionnées dans une double-listbox OK je vois en effet: r348415 | giacomo | 2005-11-23 13:06:39 +0100 (Mer

RE: fb:value et valeurs sélectionnées dans une dou ble-listbox

2006-06-22 Thread Berengere.Genin
dans une double-listbox J'ai remis multiValueContext.removeAll(this.rowPath); et commenté tout le code qui suit la ligne // TODO: This is a workaround. Mais après je ne sais pas trop comment faire pour que la modif soit prise en compte Bérengère -Message d'origine- De : Jean

Re: fb:value et valeurs s électionnées dans une double-listbox

2006-06-22 Thread Jean-Baptiste Quenot
* [EMAIL PROTECTED]: J'ai exécuté cocoon.sh...mais a priori ma modif n'a pas été J'prise en compte... ai dû zapper un truc... Il faut lancer le script build pour recompiler Cocoon. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/

RE: fb:value et valeurs selectionnées dans une doubl e-listbox

2006-06-21 Thread Berengere.Genin
Bonjour, Y a-t-il eu des changements avec la version 2.1.9 pour fb:multi-value id=widget-id parent-path=channels row-path=channel/ Je ne réussi plus à récupérer les valeurs sélectionnées dans une double-listbox, ce qui se faisait très bien quand j'étais encore sous la version 2.1.8? Merci

RE: fb:value et valeurs selectionnées dans une doubl e-listbox

2006-06-21 Thread Berengere.Genin
: RE: fb:value et valeurs selectionnées dans une double-listbox Bonjour, Y a-t-il eu des changements avec la version 2.1.9 pour fb:multi-value id=widget-id parent-path=channels row-path=channel/ Je ne réussi plus à récupérer les valeurs sélectionnées dans une double-listbox, ce qui se faisait

RE: fb:value et valeurs selectionnées dans une doubl e-listbox

2006-04-20 Thread Berengere.Genin
double-listbox Bonjour, ceci devrait t'aider : fb:multi-value id=widget-id parent-path=channels row-path=channel/ C'est totalement non documenté dans Cocoon. [EMAIL PROTECTED] wrote: Bonjour, Est-il possible de récupérer via un fichier de binding, toutes les valeurs sélectionnées dans une

Re: fb:value et valeurs selectionnées dans une double-listbox

2006-04-19 Thread Philippe Gassmann
-listbox? Pour le moment je ne récupère que le premier élément sélectionné via ma double-listbox. Je ne vois pas trop quoi utiliser, mais fb: value n'est pas suffisant. Merci pour vos conseils. Bérengère -- Philippe GASSMANN Solutions Technologies ANYWARE TECHNOLOGIES Tel : +33 (0)5 61

RE: Problemes avec double-listbox

2006-04-06 Thread Berengere.Genin
Merci, mais en fait je me sens un peu bête, car c'est sûrement évident, mais je ne vois pas ce que je dois regarder côté de la console JavaScript de Firefox, surtout que j'utilise IE. Ce que j'ai oublié de préciser, c'est que l'exemple de double-listbox donné par cocoon fonctionne correctement

RE: Problemes avec double-listbox

2006-04-06 Thread Berengere.Genin
Merci du conseil! Je vais essayer de suite. -Message d'origine- De : Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Envoyé : Thursday, April 06, 2006 09:50 À : users-fr@cocoon.apache.org Objet : Re: Problemes avec double-listbox Le 6 avr. 06 à 09:36, [EMAIL PROTECTED] [EMAIL PROTECTED

Re: Problemes avec double-listbox

2006-04-05 Thread Jean-Christophe Kermagoret
Jean-Baptiste Quenot a écrit : * [EMAIL PROTECTED]: J'obtient bien mon double-listbox, mais les boutons sont inactifs... Je te conseille de regarder du côté de la console JavaScript de Firefox. Ne serait-ce pas un problème lié à l'attribut onload sur le tag body de ta page

Re: Ajax multivaluefield/double-listbox problem

2006-01-19 Thread Fabrizio Sitzia
Hello, I tried using the latest Ajax and Forms block from the BRANCH_2_1_X svn branch. The issue appears to have been partially fixed, but the double-listbox styling still won't work in combination with repeaters and Ajax. I've now reported that issue, and a crude, Cocoon 2.1.8 specific fix

Re: Ajax multivaluefield/double-listbox problem

2006-01-17 Thread Jason Johnston
Fabrizio Sitzia wrote: Hello I'm experiencing problems when rendering a multivaluefield using the 'double-listbox' styling - when that multivaluefield is contained in a repeater, and Ajax is enabled for the form (ft:form-template ajax=true) The 'double-listbox'-styled fields in the repeater

Re: Ajax multivaluefield/double-listbox problem

2006-01-17 Thread Fabrizio Sitzia
by replacing the line containing eval(scripts[i]); in cocoon-ajax.js with setTimeout(scripts[i], 10); ) 2. But even if the optNx variable is initialised all right, you will stumble upon other stuff not being initialised correctly: The 'double-listbox' widget relies on an object (OptionTransfer

Re: Ajax multivaluefield/double-listbox problem

2006-01-17 Thread Antonio Gallardo
(scripts[i], 10); ) 2. But even if the optNx variable is initialised all right, you will stumble upon other stuff not being initialised correctly: The 'double-listbox' widget relies on an object (OptionTransfer) that is normally initialised by a document onLoad() handler. That is fine for full

Ajax multivaluefield/double-listbox problem

2006-01-16 Thread Fabrizio Sitzia
Hello I'm experiencing problems when rendering a multivaluefield using the 'double-listbox' styling - when that multivaluefield is contained in a repeater, and Ajax is enabled for the form (ft:form-template ajax=true) The 'double-listbox'-styled fields in the repeater stop working as soon

Re: CForms, double-listbox and i18n.

2006-01-15 Thread Sylvain Wallez
Steinar Jonsson wrote: Hi I have a little i18n problem in 2.1.8: A form contains a double-listbox that I insert string values into from javaflow. Some value strings have content that I want the i18n transformer to translate. If I just add i18n tags to the strings they are not transformed

Re: CForms, double-listbox and i18n.

2006-01-15 Thread Steinar Jonsson
On Sunday 15 January 2006 10:41, Sylvain Wallez wrote: Steinar Jonsson wrote: Hi I have a little i18n problem in 2.1.8: A form contains a double-listbox that I insert string values into from javaflow. Some value strings have content that I want the i18n transformer to translate

Re: CForms, double-listbox and i18n.

2006-01-15 Thread Jason Johnston
Steinar Jonsson wrote: On Sunday 15 January 2006 10:41, Sylvain Wallez wrote: Steinar Jonsson wrote: Hi I have a little i18n problem in 2.1.8: A form contains a double-listbox that I insert string values into from javaflow. Some value strings have content that I want the i18n transformer

Re: CForms, double-listbox and i18n.

2006-01-15 Thread Steinar Jonsson
On Sunday 15 January 2006 21:18, Jason Johnston wrote: Steinar Jonsson wrote: On Sunday 15 January 2006 10:41, Sylvain Wallez wrote: Steinar Jonsson wrote: Hi I have a little i18n problem in 2.1.8: A form contains a double-listbox that I insert string values into from javaflow. Some

Re: CForms, double-listbox and i18n.

2006-01-15 Thread Jason Johnston
Steinar Jonsson wrote: SelectableWidget widget = (SelectableWidget)form.getChild(widgetName); widget.setSelectionList(listOfLabelAndValuePairs, value, label); I believe that if the value of the label path is a org.apache.cocoon.forms.util.I18nMessage (see the javadocs) then it will

Re: CForms, double-listbox and i18n.

2006-01-15 Thread Steinar Jonsson
On Sunday 15 January 2006 23:05, Jason Johnston wrote: Steinar Jonsson wrote: SelectableWidget widget = (SelectableWidget)form.getChild(widgetName); widget.setSelectionList(listOfLabelAndValuePairs, value, label); I believe that if the value of the label path is a

CForms, double-listbox and i18n.

2006-01-14 Thread Steinar Jonsson
Hi I have a little i18n problem in 2.1.8: A form contains a double-listbox that I insert string values into from javaflow. Some value strings have content that I want the i18n transformer to translate. If I just add i18n tags to the strings they are not transformed. What is the correct

ListBox

2004-04-30 Thread Bartosz Zgodziski
I'm creating a Wiki Form and I want to place on in a List Box but I don't know how to create it. I went throught documentation of Field, Multivaluefield, Agregatefield (and many others) but still I don't know how to make a ListBox (1 from N). Bartosz Zgodziskitel. (61) 8428-157cell. 504-14

Re: ListBox

2004-04-30 Thread Nuno Santos
I assume that you are using Woody/CForms. It is very simple, actually, you aren't just looking in the right place. The listbox is a widget with just a styling of type listbox You define the selection list values in the Field definition wd:field id=... required=true|false wd:label.../wd:label