Bug #1029

[Layout tagLib combined with HTML tagLib] [Unknown user]

Added by Old User almost 10 years ago. Updated about 1 month ago.

Status:Nouveau Start date:
Priority:Medium Due date:
Assignee:Old User % Done:

0%

Category:-
Target version:-

Description

[Unknown user]
Problem detected when using html taglig and layout taglib:
Here is a code sample:
<div class="row">
<span class="label">
<label for="nomEtab" title="Nom de l'établissement">Nom de l'établissement<span class="obligatoire">*</span></label>
</span>
<span class="formw">
<html:text styleClass="champs" maxlength="40" errorStyleClass="champsError" name="EtabAddInformationsForm" property="nomEtab"/>
</span>
</div>
<div class="row">
<span class="label">
<label for="communeEtab" title="Localisation de l'établissement">Commune où canton de l'établissement<span class="obligatoire">*</span></label>
</span>
<span class="formw">
<layout:suggest timeout="0" styleClass="champs" maxlength="50" errorStyleClass="champsError" layout="false" styleId="communeCanton" property="commune" suggestAction="/getCommuneCanton" suggestCount="10" />
</span>
</div>
<div class="row">
<span class="label">
<label for="telEtab" title="Numéro de téléphone de l'établissement">Numéro de téléphone de l'établissement<span class="obligatoire">*</span></label>
</span>
<span class="formw">
<html:text styleClass="champs" errorStyleClass="champsError" maxlength="10" name="EtabAddInformationsForm" property="telEtab"/>
</span>
</div>

When you set all form's elements with any values, then submit and using the backward navigator button to review the form, all the field before the layout tag will be set, the other (include the layout tag) will be empty.

History

Updated by Old User almost 10 years ago

[Unknown user]
Hi, the problem is in fact, when my suggest field is completed, i call a ajax function where an input field is created under the suggest field. if i put this field with 'display="none"' BEFORE the ajax function is called, the probleme disapear. the issue is to put all the field on the page and hide them before submit.

Updated by Richard Cox 3 months ago

I was facing difficulty in compiling these functions but essay writing companies uk help me in true ways to complete my project. I just checked your ajex coding and it is helpful as well.

Updated by Emma Watson about 1 month ago

If you really don't understand how to use tags while doing programming then learn it first. The homeworkhelpers.club share a list of tags which you easily read and use it in your daily base work.

Updated by Emma Watson about 1 month ago

该该该该

Also available in: Atom PDF