All variables are null in onValidateFromForm

Pascal Robert <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
Hi,

I’m trying to check if the value in a text field is valid, but when my app goes into onValidateFromForm, all variables are null! Of course, my validation isn’t working because of this. Code:

  @Property
  private String urlOuNoBuild;

 void onValidateFromForm() {
    if (urlOuNoBuild != null) {
...
    }
}
 
	<t:form t:id="form" class="form-horizontal">
		<t:zone t:id="zone_gabarit" id="zone_gabarit" class="form-group">
			<label for="SelectionGabarit" class="col-sm-2 control-label">Gabarit</label>
			<div class="col-sm-10">
				<t:select model="selectionMV" value="selectionMachineVirtuelle"
					encoder="machineVirtuelleEncoder" t:id="SelectionGabarit" zone="zoneVersionAnti"
					class="form-control" />
			</div>
		</t:zone>
		<t:zone t:id="zoneVersionAnti" class="form-group">
			<label for="selection_version_anti" class="col-sm-2 control-label">Version d'Antidote</label>
			<div class="col-sm-10">
				Versions recommandées:
				<t:select model="modeleVersionAntidote" value="selectionVersionAntidote"
					encoder="versionAntidoteEncoder" id="selection_version_anti" class="form-control" />
				ou par no de build ou URL vers un build:
				<t:textfield value="urlOuNoBuild" t:id="UrlOuNoBuild"
					class="form-control" />
			</div>
		</t:zone>
		<div class="form-group">
			<label for="langue_antidote" class="col-sm-2 control-label">Langue d'Antidote</label>
			<div class="col-sm-10">
				<t:RadioGroup value="langueAntidote" t:id="langue_antidote">
					<t:radio value="literal:B" class="form-control" />
					Bilingue
					<t:radio value="literal:F" class="form-control" />
					Français
					<t:radio value="literal:A" class="form-control" />
					Anglais
				</t:RadioGroup>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<t:submit />
			</div>
		</div>
	</t:form>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.