I could have sworn I had this working at one point, but now it doesn't.

 

Tml:

 

<table t:type="grid" t:class="topgrid" t:source="allKeywords"
t:rowIndex="rowIndex" t:row="keywordVisual"
t:add="nsBases,spacer,tag,attribute,attributeVal,keyword"
t:reorder="booleanOp,useNSTag,nsBases,tag,spacer,useAttribute,attribute,
attributeVal,keyword,remove"
t:exclude="inverseUseNSTag,inverseUseAttribute">

 

...

 

<t:parameter name="keywordCell">

<t:textfield size="40" t:id="keywordField"
value="keywordVisual.keyword.value"/>

</t:parameter>

 

...

 

 

The Java:

 

...

 

@Component

private TextField keywordField;

 

...

 

 

public void onValidateForm()

{

            if (keywordVisual.getKeyword().getValue() == null)

            {

                        tagForm.recordError(keywordField, "Please
provide a value");

            }

}

 

...

 

 

 

The validation is only occurring on the last field in the table - I
presume that is because keywordField is being set to the last value,
which is fair enough. In that case, how can I perform validation and
give error messages on the other keywordFields? I can't find an example
of this on JumpStart or in the docs (or maybe the example is there but I
just haven't seen it).

 

 


**************************************************************************
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*************************************************************************
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*************************************************************************
 

Reply via email to