public void substituteInfoText(int state,int callback,String infoText) throws AuthLoginException {
  if (debug.messageEnabled()) {
    debug.message("setInfoText : state=" + state + ", infoText="+ infoText);
  }
  if (state > stateLength) {
    throw new AuthLoginException(bundleName,"invalidState",new Object[]{new Integer(state)});
  }
  Callback[] ext=getCallback(state);
  if (ext.length <= 0) {
    throw new AuthLoginException(bundleName,"invalidCallbackIndex",null);
  }
  if ((infoText != null) && (infoText.length() != 0)) {
    PagePropertiesCallback pagePropertiesCallback=(PagePropertiesCallback)((Callback[])internal.get(state - 1))[0];
    List<String> infoTexts=pagePropertiesCallback.getInfoText();
    infoTexts.set(callback,infoText);
    pagePropertiesCallback.setInfoText(infoTexts);
  }
}

public void substituteInfoText ( int state , int callback , String infoText ) throws AuthLoginException { if ( debug . messageEnabled ( ) ) { debug . message ( "setInfoText : state=" + state + ", infoText=" + infoText ) ; } if ( state > stateLength ) { throw new AuthLoginException ( bundleName , "invalidState" , new Object [ ] { new Integer ( state ) } ) ; } Callback [ ] ext = getCallback ( state ) ; if ( ext . length <= 0 ) { throw new AuthLoginException ( bundleName , "invalidCallbackIndex" , null ) ; } if ( ( infoText != null ) && ( infoText . length ( ) != 0 ) ) { PagePropertiesCallback pagePropertiesCallback = ( PagePropertiesCallback ) ( ( Callback [ ] ) internal . get ( state - 1 ) ) [ 0 ] ; List < String > infoTexts = pagePropertiesCallback . getInfoText ( ) ; infoTexts . set ( callback , infoText ) ; pagePropertiesCallback . setInfoText ( infoTexts ) ; } }
allows you to set the info text for a specific callback . info text is shown under the element in the login page . it is used in the membership module to implement in - line feedback .
