Hi all... i'm using cocoon cforms version 2.1.5......i need to insert an input type="button" in my form; well in order to do this i have done this template: <fd:repeater id="allegato" initial-size="0"> <fd:label>Allegato</fd:label> <fd:hint>Allegato</fd:hint> <fd:help>Allegato</fd:help> <fd:widgets> <fd:booleanfield id="selezione"> <fd:label>selezione*****</fd:label> </fd:booleanfield> <fd:field id="nome" required="true"> <fd:label>nome</fd:label> <fd:datatype base="string"/> </fd:field> <!-- ####### I'LD LIKE THAT THIS FIELD IS A BUTTON ######--> <fd:field id="allegami"> <fd:label>Allega File</fd:label> <fd:datatype base="string"/> </fd:field> <fd:row-action id="delete" action-command="delete"> <fd:label>Cancella</fd:label> <fd:hint>Cancella la proprieta'</fd:hint> </fd:row-action> <fd:row-action id="moveUp" action-command="move-up"> <fd:label>In Alto</fd:label> </fd:row-action> <fd:row-action id="moveDown" action-command="move-down"> <fd:label>In Basso</fd:label> </fd:row-action> </fd:widgets> </fd:repeater>
then i have this jx: <ft:repeater-widget xmlns:ft="http://apache.org/cocoon/forms/1.0#template" id="allegato"> <tr> <td style="padding:2px;width:100px;border-bottom:1px solid #737373;"> <ft:widget xmlns:ft="http://apache.org/cocoon/forms/1.0#template" id="nome"> <fi:styling xmlns:fi="http://apache.org/cocoon/forms/1.0#instance" type="hidden" /> </ft:widget> <div id="allegato_FILE_div" style="display:block;"> <p style="border-bottom:1px solid black"> </p> </div> </td> <td style="border:1px solid #737373; width:440px;"> <ft:widget xmlns:ft="http://apache.org/cocoon/forms/1.0#template" id="delete"> <fi:styling xmlns:fi="http://apache.org/cocoon/forms/1.0#instance" class="button"/> </ft:widget> <ft:widget xmlns:ft="http://apache.org/cocoon/forms/1.0#template" id="moveUp"> <fi:styling xmlns:fi="http://apache.org/cocoon/forms/1.0#instance" class="button"/> </ft:widget> <ft:widget xmlns:ft="http://apache.org/cocoon/forms/1.0#template" id="moveDown"> <fi:styling xmlns:fi="http://apache.org/cocoon/forms/1.0#instance" class="button"/> </ft:widget> <br /> <!-- ######## HERE I USE FI STYLING FOR SETTING INPUT TYPE="BUTTON" ######## --> <ft:widget xmlns:ft="http://apache.org/cocoon/forms/1.0#template" id="allegami"> <fi:styling xmlns:fi="http://apache.org/cocoon/forms/1.0#instance" type="button" value="Scegli File" class="button" onclick="javascript:ShowPopUp('/Nikko/BM/viewcontent.do?path=/&amp;typeresource=file&amp;campo=' + this.name.replace('allegami','name') + '_FILE')"/> </ft:widget> </td> </tr> </ft:repeater-widget> Well it seems to me all good but if i go an see the form i see the fiel "allegami" as an input type="text"; in fact this is my html output: <input type="text" title="" value="Scegli File" id="allegato.0.allegami" name="allegato.0.allegami" class="button" onclick="javascript:ShowPopUp('/Nikko/BM/viewcontent.do?path=/&amp;typeresource=file&amp;campo=' + this.name.replace('allegami','name') + '_FILE')"> but i wanted: <input type="button" title="" value="Scegli File" id="allegato.0.allegami" name="allegato.0.allegami" class="button" onclick="javascript:ShowPopUp('/Nikko/BM/viewcontent.do?path=/&amp;typeresource=file&amp;campo=' + this.name.replace('allegami','name') + '_FILE')"> Can anybody help me? Thanks ____________________________________________________________ Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega. E poi hai l'Adsl senza limiti a meno di 1 euro al giorno. Abbonati subito senza costi di attivazione su http://www.libero.it --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]