Class AjaxInputDecoder

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, ValueValidator, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class AjaxInputDecoder extends InputDecoder implements Arrangeable
This class extends InputDecoder and implements Arrangeable.
This class allow to implements an ajax communication from component and server, to retrieve datas to decode inside the InputDecoder component.
The communication with the server, the datas retireve and the refresh operation of the component will be managed from js script with the server that will only have to provide the data to be decoded.
See Also:
GCApi:
component
  • Constructor Details

    • AjaxInputDecoder

      public AjaxInputDecoder()
      Creates a new instance of AjaxInputDecoder
  • Method Details

    • decodeFromParent

      protected void decodeFromParent(Object parentValue)
    • decodeFromChild2

      protected String[] decodeFromChild2(Object code)
    • getCleanButton

      protected org.apache.ecs.Element getCleanButton(boolean ro)
      Overrides:
      getCleanButton in class InputDecoder
    • getContentHtml

      public org.apache.ecs.Element getContentHtml(Object generationhandle, EntitySet es)
      Description copied from class: Input
      Implements the interface Arrangeable. It returns the html code that represents the active part of the input field, i.e. the field and the validation scripts
      Specified by:
      getContentHtml in interface Arrangeable
      Overrides:
      getContentHtml in class InputDecoder
      Parameters:
      generationhandle - The handle of the generation
      es - The EntitySet to which the element belongs
      Returns:
      The html code of the input field or null if the field don't have a graphical representation
    • addAttributes

      protected void addAttributes(StringInput iCode)
    • ajaxQuery

      public void ajaxQuery(HttpServletRequest request, HttpServletResponse response)
      Description copied from class: Component
      Method that must be extended to implements the Ajax interaction request / response logic for the Component
      Overrides:
      ajaxQuery in class Input
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse