[AIDE] Pb recuperation Id
bonjour, dans ma JSP j'ai un
Citation:
<nested:select>..</nested:select>
lorsque je sélectionne une valeur je n'arrive pas a récupérer l'ID de la valeur sélectionner
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<script type="text/javascript">
function soumettre(param,idSite)
{
document.ClientBean.param.value = param;
document.ClientBean.idClient.value = idClient;
document.ClientBean.submit();
}
</script>
....
<nested:form action=...>
<html:hidden property="idClient" />
<nested:root name="ClientBean">
...
<nested:select name="ClientBean" property="idSite" style="width:200px;" onchange="soumettre('clientChoisi',${idClient})">
<html:optionsCollection name="ClientBean" property="listClient" label="code" value="idClient"/>
</nested:select> |