0 Replies Latest reply on Feb 27, 2008 7:33 PM by Robert Stevens

    Required Fields Discepency for Seam-Gen

    Robert Stevens Newbie

      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"
          <a:support event="onblur" reRender="PriceDecoration" bypassUpdates="true" ajaxSingle="true"/>

      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"

      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)
           public String getName() {
                return this.name;
           public void setName(String name) {
                this.name = name;