1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| <td align="left" width="40%" valign="top">
<table align="center" border="0" cellspacing="2" cellpadding="2">
<tr>
<td valign="top"><br/>
<rich:panel id="photopanel" header="Selection photo du commerce">
<h:panelGroup >
<rich:message for="file" style="font-style=bold;font-color=Red;background-color:#ffffff"/>
</h:panelGroup>
<h:panelGrid columns="2" cellpadding="2" cellspacing="2">
<h:outputLabel for="file" value="Selectionnez une image ..." />
<t:inputFileUpload id="file" value="#{acquisitionBean.uploadedFile}" />
<h:outputText/>
<h:inputText id="im" value="#{acquisitionBean.fileName}"/>
<h:outputText/>
<h:commandButton id="btt"
value="Charger ..."
onclick="if(!check_photo()) return false"
actionListener="#{acquisitionBean.submit}">
<a4j:support event="onclick" reRender="im,img"/>
</h:commandButton>
<h:outputText/>
<a4j:mediaOutput element="img" cacheable="false" session="true"
createContent="#{acquisitionBean.paintFlash}" mimeType="image/jpeg" style="width:100px;heigth:100px" />
</h:panelGrid><br/>
<h:message for="btt" infoStyle="color: green;" errorStyle="color: red;" />
</rich:panel>
</td>
</tr>
</table></td>
<td align="right" width="30%" valign="top">
<table align="center">
<tr>
<td align="right" valign="top"><br/>
<rich:panel id="assurancespanel" header="Assurances">
<h:panelGrid columns="2" cellpadding="2" cellspacing="2">
<h:outputText value="Police d'assurance"/>
<rich:comboBox id="categories" value="#{acquisitionBean.selected.libelle_cat}"
suggestionValues="#{acquisitionBean.list_categorie}"
selectFirstOnUpdate="false"
defaultLabel="Selectionnez categorie..."
immediate="true"
directInputSuggestions="true">
<a4j:support reRender="sous_categories,montants" event="onselect" actionListener="#{acquisitionBean.doGetCategorie}"/>
</rich:comboBox>
<h:outputText value="Options"/>
<rich:comboBox id="sous_categories" value="#{acquisitionBean.sous_cat_selected.libelle_scat}"
suggestionValues="#{acquisitionBean.list_sous_categorie}"
defaultLabel="Selectionnez une sous categorie..."
directInputSuggestions="true">
</rich:comboBox>
<h:outputText value="Montant total"/>
<h:inputText id="montants" readonly="true" value="#{acquisitionBean.montant_com}"/>
<h:outputText value=""/>
<a4j:commandButton actionListener="#{acquisitionBean.ajouter_categorie}" reRender="montants,outputpanel" value="Ajouter"/>
</h:panelGrid>
</rich:panel>
</td>
</tr>
</table></td> |
Partager