6 Replies Latest reply on Apr 14, 2008 4:58 PM by brca

    Xforms and Jbpm

    brca

      Hello 2 all!

      I'm working on my master project on xforms. I got to use xforms with jbpm and exist native xml database.

      Is there any way to open xforms with jbpm server. I don't need variable mappings. I just want to open xform page when viewing the task. Later on submission I will send generated xml document.

      I try with iframe, object, javascript (I try to read xform page and put xform model in head of task.jsf and xform view in body) but nothing didn't work. When using iframe firefox doesn't display page in iframe, it ask me what to do with xhtml document.

        • 1. Re: Xforms and Jbpm
          kukeltje

          brca,

          I'm not sure if this is jBPM related at all, your last statement about the browser asking you what to do with a .xhtml file is a plain web issue. So you have to be more specific in how you are trying to achieve things.

          • 2. Re: Xforms and Jbpm
            brca

            Here is the code:

            I have one xhtml file for task node. In that xhtml I put code of iframe:



            If instead of iframe tag put just link:

            Show me the xform

            It's the same think.

            But if I put in iframe path to html file for example home.html, when viewing the task it's displayed correctly.

            I also tried to edit jbm-console.war - task.xhtml file and to put iframe tag there.

            I tried to put path to xhtml file, not xforms and got the same problem. So I can't open any file with xhtml extension, while html works fine.

            I tried to open xhtml page in firefox browser which has iframe tag like I wrote, and it works fine, but not work with jbpm, and with tomcat working too.

            Don't know what's the problem. Is it possible to do something like that?

            • 3. Re: Xforms and Jbpm
              brca

              I forgot to disable html :)

              Here is the code:

              I have one xhtml file for task node. In that xhtml I put code of iframe:

              < iframe src="xform.xhtml" width="800" height="600">

              If instead of iframe tag put just link:

              < a href="xform.xhtml">Show me the xform

              It's the same think.

              But if I put in iframe path to html file for example home.html, when viewing the task it's displayed correctly.

              I also tried to edit jbm-console.war - task.xhtml file and to put iframe tag there.

              I tried to put path to xhtml file, not xforms and got the same problem. So I can't open any file with xhtml extension, while html works fine.

              I tried to open xhtml page in firefox browser which has iframe tag like I wrote, and it works fine, but not work with jbpm, and with tomcat working too.

              Don't know what's the problem. Is it possible to do something like that?

              • 4. Re: Xforms and Jbpm
                kukeltje

                sounds like a generic jsf extension issue. task.xhtml should not be typed in, but task.jsf or whatever extension is configured.

                • 5. Re: Xforms and Jbpm
                  brca

                  It's finally working :)

                  I deployed jbpm in jboss-4.2.1-GA and it's working there with iframe.

                  • 6. Re: Xforms and Jbpm
                    brca

                    Now I need path to xhtml file.

                    With this code I get only file name. How can I get full path to that file?

                    < iframe src=""#{taskForms[task.name]}"" width="800" height="600">