Using Seam 2.0.1.GA, we used seam-gen to generate an application from an existing database.
Why do some seam-gen generated fields use ajax and others do not?
This text field was for type DOUBLE and seam-gen generated ajax for it
<s:decorate id="PriceDecoration" template="layout/edit.xhtml"> <ui:define name="label">Price</ui:define> <h:inputText id="Price" required="true" value="#{user.instance.Price}"> <a:support event="onblur" reRender="PriceDecoration" bypassUpdates="true" ajaxSingle="true"/> </h:inputText> </s:decorate>
But there was no ajax for this input text field of type VARCHAR(255)
<s:decorate id="nameDecoration" template="layout/edit.xhtml"> <ui:define name="label">name</ui:define> <h:inputTextarea id="name" cols="80" rows="3" required="true" value="#{user.instance.name}"/> </s:decorate>
Is this a bug or feature by design? If it is a bug, what was the code supposed to be?
Here is the java code it generated:
@Column(name = "name", nullable = false) @NotNull public String getName() { return this.name; } public void setName(String name) { this.name = name; }