Package er.extensions.appserver

Examples of er.extensions.appserver.ERXSession


   * captured.
   *
   * @return true if ajax script should be included
   */
  public boolean shouldPostData() {
    ERXSession session = (ERXSession)context().session();
    return !(session.objectStore().valueForKey(MODERNIZR_KEY) instanceof NSDictionary);
  }
View Full Code Here


      for(String key: keys) {
        Boolean value = ERXValueUtilities.BooleanValueWithDefault(request.stringFormValueForKey(key), Boolean.FALSE);
        key = key.substring(FORM_VALUE_PREFIX.length());
        modernizr.setObjectForKey(value, key);
      }
      ERXSession session = ERXSession.session();
      session.objectStore().takeValueForKey(modernizr.immutableClone(), MODERNIZR_KEY);
      session.setJavaScriptEnabled(true);
      postNotification(session);
    }
  }
View Full Code Here

   * captured.
   *
   * @return true if ajax script should be included
   */
  public boolean shouldPostData() {
    ERXSession session = (ERXSession) context().session();
    return !(session.objectStore().valueForKey(TIMEZONE_SESSION_KEY) instanceof String);
  }
View Full Code Here

   */
  @Override
  public void takeValuesFromRequest(WORequest request, WOContext context) {
    super.takeValuesFromRequest(request, context);
    if (shouldPostData() && request.formValueForKey(TIMEZONE_DATA_KEY) != null) {
      ERXSession session = ERXSession.session();
      String zoneString = request.stringFormValueForKey(TIMEZONE_DATA_KEY);
      session.objectStore().takeValueForKey(zoneString, TIMEZONE_SESSION_KEY);
      session.setJavaScriptEnabled(true);

      String[] data = StringUtils.split(zoneString, ',');
      int rawOffset = Integer.valueOf(data[0]).intValue();
      boolean dst = "1".equals(data[1]);
      boolean southern = "1".equals(data[2]);
      TimeZone tz = zoneWithRawOffset(rawOffset, dst, southern);
      session.setTimeZone(tz);
    }
  }
View Full Code Here

                    wocontext.hasSession() &&
                    ERXSession.class.isAssignableFrom(wocontext.session().getClass())
                        ) {
               
              synchronized(format) {
                ERXSession session = (ERXSession)wocontext.session();
                NSTimeZone zone = NSTimeZone._nstimeZoneWithTimeZone(session.timeZone());
                NSTimestampFormatter tsFormat = (NSTimestampFormatter)format;
                NSTimeZone parseZone = tsFormat.defaultParseTimeZone();
                NSTimeZone formatZone = tsFormat.defaultFormatTimeZone();
                tsFormat.setDefaultFormatTimeZone(zone);
                tsFormat.setDefaultParseTimeZone(zone);
View Full Code Here

            wocontext.hasSession() &&
            ERXSession.class.isAssignableFrom(wocontext.session().getClass())
                ) {
           
          synchronized(format) {
            ERXSession session = (ERXSession)wocontext.session();
            NSTimeZone zone = NSTimeZone._nstimeZoneWithTimeZone(session.timeZone());
            NSTimestampFormatter tsFormat = (NSTimestampFormatter)format;
            NSTimeZone parseZone = tsFormat.defaultParseTimeZone();
            NSTimeZone formatZone = tsFormat.defaultFormatTimeZone();
            tsFormat.setDefaultFormatTimeZone(zone);
            tsFormat.setDefaultParseTimeZone(zone);
View Full Code Here

                    wocontext.hasSession() &&
                    ERXSession.class.isAssignableFrom(wocontext.session().getClass())
                        ) {
               
              synchronized(format) {
                ERXSession session = (ERXSession)wocontext.session();
                NSTimeZone zone = NSTimeZone._nstimeZoneWithTimeZone(session.timeZone());
                NSTimestampFormatter tsFormat = (NSTimestampFormatter)format;
                NSTimeZone parseZone = tsFormat.defaultParseTimeZone();
                NSTimeZone formatZone = tsFormat.defaultFormatTimeZone();
                tsFormat.setDefaultFormatTimeZone(zone);
                tsFormat.setDefaultParseTimeZone(zone);
View Full Code Here

TOP

Related Classes of er.extensions.appserver.ERXSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.