2 Replies Latest reply on Feb 15, 2008 1:06 AM by gavin.king

    POST to Seam app from other app

    yuriy_zubarev
      Greetings,

      It's easy to submit a form within Seam:

      <h:form>
        <h:inputText value="#{identity.username}" />
        <h:commandButton action="#{identity.login}" />
      </h:form>

      But what if an external application needs to send a POST request to the Seam app. What would static HTML form look like, specifically the "action" attribute?

      Thank you.

        • 1. Re: POST to Seam app from other app
          yuriy_zubarev

          Wonderful... seamframework.org stripped out my question.


          Anyway, it's almost too easy when you need to submit a form within Seam:


          <h:form>
            <h:inputText value="#{identity.username}" />
            <h:commandButton action="#{identity.login}" />
          </h:form>
          



          But how would I do it from external static HTML page, for example? What would go into action attribute of a form?


          Thank you.

          • 2. Re: POST to Seam app from other app
            gavin.king

            Try using a page action and page parameters.


            (BTW, pay attention to the preview and the
            errors on the LHS when you post. Nothing
            will get stripped, unless you have a syntax
            error in your wiki markup.)