struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LEONARD Julien (Consulting for ACCOR Hotels)" <>
Subject RE: Javascript issue encountered with <s:optiontransferselect>
Date Fri, 15 Feb 2008 14:23:30 GMT

Do the tag is in a div loaded in AJAX ?
If you load the tag <s:optiontransferselect> in a ajax div, js will not be included.

In this case try with this : <script language="javascript" src="./struts/optiontransferselect.js"></script>


-----Message d'origine-----
De : [] Envoyé : vendredi
15 février 2008 15:15
À :
Objet : Javascript issue encountered with <s:optiontransferselect>

Hi all,

I am facing a particular problem, and I didn't find help on the web so I'm turning myself
to you.

I use in my Struts 2 application the UI tag <s:optiontransferselect>. The parameters
work fine and everything's displayed correctly on the screen.

Nevertheless, the buttons just don't work. Nothing happens and I get a javascript error each
time I hit those buttons, saying that a javascript function is undefined (the function corresponding
to the buttons : 
moveSelectedOptions, moveAllOptions ...).

In my <head> tag, I have included the ajax theme (<s:head theme="ajax" 
debug="true"/>), which gives me this in my final page:

<link rel="stylesheet" href="/roadbook/struts/xhtml/styles.css" 
<script type="text/javascript">
    // Dojo configuration
    djConfig = {
        baseRelativePath: "/roadbook/struts/dojo",
        isDebug: true,
        bindEncoding: "UTF-8",
        debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with
the includes
<script type="text/javascript"
<script type="text/javascript"
<script type="text/javascript"

I think I might have a lacking js file, where the optiontranserselect javascript methods may
be ...

Any ideas ?



This message and any attachments (the "message") is intended solely for the addressees and
is confidential. 
If you receive this message in error, please delete it and immediately notify the sender.
Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial,
is prohibited except formal approval. The internet can not guarantee the integrity of this
BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if
Do not print this message unless it is necessary, consider the environment.


Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement
l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet
ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il
aurait ete modifie.
N'imprimez ce message que si necessaire, pensez a l'environnement.

This e-mail, any attachments and the information contained therein ("this message") are confidential
and intended solely for the use of the addressee(s). If you have received this message in
error please send it back to the sender and delete it. Unauthorized publication, use, dissemination
or disclosure of this message, either in whole or in part is strictly prohibited.
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues
dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement
à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par
erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées
de ce message, sont interdites.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message