Hi all,
     I am working with flex and wicket and I would like to get a full
integration. What I mean is that a wicket's model page will be updated in
case someone uses a flex component that called a blazeds service. I run
succesfuly http://ryangravener.com/wordpress/?p=21, which I would like to
improve.

My problem is how to get wicket session, for getting the model's page which
I would like to update.

Some ideas that come up to my mind are:

a. using cookie JSESSIONID to get wicket session.
b. getting HttpSession through FlexContext to get Wicket Session after:
        HttpSession session = FlexContext.getHttpRequest().getSession(true);

Is this possible? This is the web.xml file config according ryangravener:

  <!-- WICKET FILTER -->
    <filter>
        <filter-name>wicket.miApp</filter-name>

<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
        <init-param>
              <param-name>applicationClassName</param-name>
              <param-value>com.miApp.MiAppApplication</param-value>
        </init-param>
      </filter>
    <filter-mapping>
        <filter-name>wicket.MiApp<filter-name>
        <url-pattern>/*</url-pattern>
      </filter-mapping>

<!-- BLAZE  -->
      <servlet>
        <servlet-name>MessageBrokerServlet</servlet-name>
        <servlet-class>
            flex.messaging.MessageBrokerServlet
        </servlet-class>
        <init-param>
            <param-name>services.configuration.file</param-name>
            <param-value>/WEB-INF/flex/services-config.xml</param-value>
          </init-param>
        <init-param>
            <param-name>flex.write.path</param-name>
            <param-value>/WEB-INF/flex</param-value>
          </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>MessageBrokerServlet</servlet-name>
        <url-pattern>/messagebroker/*</url-pattern>
    </servlet-mapping>

    <filter-mapping>
        <filter-name>wicket.myApp</filter-name>
        <url-pattern>/messagebroker/*</url-pattern>
    </filter-mapping>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://mientretiempo.blogspot.com/

Reply via email to