cannot run an example in portlet

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot run an example in portlet

sushik billa
hi,

I successfully deployed orbeon portlet to vignette portal and was able to see portlet-welcome page

I created a folder portlet-test in apps and added a link to this folder in view.xhtml of portlet-welcome folder. when i clicked on the link the very first page comes up..but the subsequent pages doesn't come up on DOMActivate action and shows 404 page not found error..

I am really in bad need of a solution to this problem...

link that i added in  view.xhtml of portlet-welcome folder
---------------------------------------------------------------------------------------------------

<li>portlet-test</li>

---------------------------------------------------------------------------------------------------

my view.xhtml in portlet-test folder is
--------------------------------------------------------------------------------------

<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
            xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
            xmlns:f="http://orbeon.org/oxf/xml/formatting">
    <xhtml:head>
        <xhtml:title>Number of occurences</xhtml:title>
        <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
            <xforms:instance>
                <occurences>               
                    <occurence/>
                    <action/>
                </occurences>
            </xforms:instance>         
            <xforms:submission id="main"  ref="/"  action="/portlet-test/viewChange" method="post" /> 
        </xforms:model>
    </xhtml:head>
    <xhtml:body>
        <xhtml:p>
            <xforms:group>
                <xforms:input ref="occurence">
                    <xforms:alert>Number of occurences</xforms:alert>
                </xforms:input>
               
               
                 <xforms:trigger>
                        <xforms:label>Number of occurences</xforms:label>
                        <xforms:action ev:event="DOMActivate">
                            <xforms:setvalue ref="action">submit</xforms:setvalue>
                    <xforms:send submission="main"/>
                        </xforms:action>
                    </xforms:trigger>
            </xforms:group>
        </xhtml:p>
    </xhtml:body>
</xhtml:html>

--------------------------------------------------------------------------------------

my page-flow.xml in portlet-test folder is
--------------------------------------------------------------------------------------

<config xmlns="http://www.orbeon.com/oxf/controller">

    <page id="firstpage" path-info="/portlet-test/"   view="view.xhtml">
       <action  when="/occurences/action != ''>       
         <result  page="myviewChange"/>
       </action>
     </page>
     
      <page id="myviewChange" path-info="/portlet-test/myviewChange" view="viewChange.xhtml">       
      </page> 
               
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>

---------------------------------------------------------------------------------------

Thanks for all the help...

 

Reply | Threaded
Open this post in threaded view
|

Re: cannot run an example in portlet

Piotr Świgoń
I think you should try to modify page-flow and create similar links as
in portlet-welcome application. I can run my own orbeon application in
portlet with no problem.

Peter

sushik billa pisze:

> hi,
>
> I successfully deployed orbeon portlet to vignette portal and was able to
> see portlet-welcome page
>
> I created a folder portlet-test in apps and added a link to this folder in
> view.xhtml of portlet-welcome folder. when i clicked on the link the very
> first page comes up..but the subsequent pages doesn't come up on DOMActivate
> action and shows 404 page not found error..
>
> I am really in bad need of a solution to this problem...
>
> link that i added in  view.xhtml of portlet-welcome folder
> ---------------------------------------------------------------------------------------------------
>
> <li> /portlet-test/ portlet-test </li>
>
> ---------------------------------------------------------------------------------------------------
>
> my view.xhtml in portlet-test folder is
> --------------------------------------------------------------------------------------
>
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>             xmlns:xforms="http://www.w3.org/2002/xforms"
>             xmlns:ev="http://www.w3.org/2001/xml-events"
>             xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>             xmlns:f="http://orbeon.org/oxf/xml/formatting">
>     <xhtml:head>
>         <xhtml:title>Number of occurences</xhtml:title>
>         <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
>             <xforms:instance>
>                 <occurences>                
>                     <occurence/>
>                     <action/>
>                 </occurences>
>             </xforms:instance>          
>             <xforms:submission id="main"  ref="/"
> action="/portlet-test/viewChange" method="post" />
>         </xforms:model>
>     </xhtml:head>
>     <xhtml:body>
>         <xhtml:p>
>             <xforms:group>
>                 <xforms:input ref="occurence">
>                     <xforms:alert>Number of occurences</xforms:alert>
>                 </xforms:input>
>                
>                
>                  <xforms:trigger>
>                         <xforms:label>Number of occurences</xforms:label>
>                         <xforms:action ev:event="DOMActivate">
>                             <xforms:setvalue
> ref="action">submit</xforms:setvalue>
>                     <xforms:send submission="main"/>
>                         </xforms:action>
>                     </xforms:trigger>
>             </xforms:group>
>         </xhtml:p>
>     </xhtml:body>
> </xhtml:html>
>
> --------------------------------------------------------------------------------------
>
> my page-flow.xml in portlet-test folder is
> --------------------------------------------------------------------------------------
>
> <config xmlns="http://www.orbeon.com/oxf/controller">
>
>     <page id="firstpage" path-info="/portlet-test/"   view="view.xhtml">
>        <action  when="/occurences/action != ''>      
>          <result  page="myviewChange"/>
>        </action>
>      </page>
>      
>       <page id="myviewChange" path-info="/portlet-test/myviewChange"
> view="viewChange.xhtml">      
>       </page>  
>
>     <epilogue url="oxf:/config/epilogue.xpl"/>
>
> </config>
>
> ---------------------------------------------------------------------------------------
>
> Thanks for all the help...
>
>  
>
>
>  


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: cannot run an example in portlet

sushik billa
Thanks for the quick reply

but the same page-flow runs when run as a webapp but not in a portlet app..

could you please point to url that i should change in my page-flow and a possible replacement that could work..

Piotr Świgoń wrote
I think you should try to modify page-flow and create similar links as
in portlet-welcome application. I can run my own orbeon application in
portlet with no problem.

Peter

sushik billa pisze:
> hi,
>
> I successfully deployed orbeon portlet to vignette portal and was able to
> see portlet-welcome page
>
> I created a folder portlet-test in apps and added a link to this folder in
> view.xhtml of portlet-welcome folder. when i clicked on the link the very
> first page comes up..but the subsequent pages doesn't come up on DOMActivate
> action and shows 404 page not found error..
>
> I am really in bad need of a solution to this problem...
>
> link that i added in  view.xhtml of portlet-welcome folder
> ---------------------------------------------------------------------------------------------------
>
> <li> /portlet-test/ portlet-test </li>
>
> ---------------------------------------------------------------------------------------------------
>
> my view.xhtml in portlet-test folder is
> --------------------------------------------------------------------------------------
>
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>             xmlns:xforms="http://www.w3.org/2002/xforms"
>             xmlns:ev="http://www.w3.org/2001/xml-events"
>             xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>             xmlns:f="http://orbeon.org/oxf/xml/formatting">
>     <xhtml:head>
>         <xhtml:title>Number of occurences</xhtml:title>
>         <xforms:model xmlns:xforms="http://www.w3.org/2002/xforms">
>             <xforms:instance>
>                 <occurences>               
>                     <occurence/>
>                     <action/>
>                 </occurences>
>             </xforms:instance>         
>             <xforms:submission id="main"  ref="/"
> action="/portlet-test/viewChange" method="post" />
>         </xforms:model>
>     </xhtml:head>
>     <xhtml:body>
>         <xhtml:p>
>             <xforms:group>
>                 <xforms:input ref="occurence">
>                     <xforms:alert>Number of occurences</xforms:alert>
>                 </xforms:input>
>                
>                
>                  <xforms:trigger>
>                         <xforms:label>Number of occurences</xforms:label>
>                         <xforms:action ev:event="DOMActivate">
>                             <xforms:setvalue
> ref="action">submit</xforms:setvalue>
>                     <xforms:send submission="main"/>
>                         </xforms:action>
>                     </xforms:trigger>
>             </xforms:group>
>         </xhtml:p>
>     </xhtml:body>
> </xhtml:html>
>
> --------------------------------------------------------------------------------------
>
> my page-flow.xml in portlet-test folder is
> --------------------------------------------------------------------------------------
>
> <config xmlns="http://www.orbeon.com/oxf/controller">
>
>     <page id="firstpage" path-info="/portlet-test/"   view="view.xhtml">
>        <action  when="/occurences/action != ''>       
>          <result  page="myviewChange"/>
>        </action>
>      </page>
>      
>       <page id="myviewChange" path-info="/portlet-test/myviewChange"
> view="viewChange.xhtml">      
>       </page> 
>
>     <epilogue url="oxf:/config/epilogue.xpl"/>
>
> </config>
>
> ---------------------------------------------------------------------------------------
>
> Thanks for all the help...
>
>  
>
>
>  



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: cannot run an example in portlet

Alessandro Vernet
Administrator
On Fri, Jun 27, 2008 at 7:27 AM, sushik billa <[hidden email]> wrote:

> Thanks for the quick reply
>
> but the same page-flow runs when run as a webapp but not in a portlet app..
>
> could you please point to url that i should change in my page-flow and a
> possible replacement that could work..
>
> i also copied a working orbeon portlet eaxmaple with a different folder name
> and change all the urls respectively..even then i come with similar
> issue..my subsequent DOMActivate action doesn't work..i was wondering
> whether i have to register the folder in portlet app in some place..
You might be hitting this bug:

http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=307940

A workaround might be to change your code to be in "one page", and use
submission replace="instance" to exchange data with the server.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: cannot run an example in portlet

sushik billa
hi..

Thanks for all the support...

I have multiple forms each with it's own instance and every form instance updates a master model..i do not want to put all the forms in one page..is there any other possible way to do it..

I was looking at orbeon code and am not sure as to where the url rewriting is happening in the portlet..

if you guys could point me out to the code as to where i can possibly fix it..that should really be great..


Alessandro Vernet wrote
On Fri, Jun 27, 2008 at 7:27 AM, sushik billa <billa0111@gmail.com> wrote:
> Thanks for the quick reply
>
> but the same page-flow runs when run as a webapp but not in a portlet app..
>
> could you please point to url that i should change in my page-flow and a
> possible replacement that could work..
>
> i also copied a working orbeon portlet eaxmaple with a different folder name
> and change all the urls respectively..even then i come with similar
> issue..my subsequent DOMActivate action doesn't work..i was wondering
> whether i have to register the folder in portlet app in some place..

You might be hitting this bug:

http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=307940

A workaround might be to change your code to be in "one page", and use
submission replace="instance" to exchange data with the server.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: cannot run an example in portlet

Erik Bruchez
Administrator
Most of the effort in fixing bugs generally consists in:

* Reproducing the issue
* Understanding the steps of events taking place
* Understanding that is supposed to happen
* Figuring out why it doesn't happen
* Finally, fixing the code

So in this case again I am not sure it will be just a matter of  
pointing out to a simple piece of code. This said we are very happy if  
you can look at the code and do the above ;-)

-Erik

On Jul 1, 2008, at 11:53 AM, sushik billa wrote:

>
> hi..
>
> Thanks for all the support...
>
> I have multiple forms each with it's own instance and every form  
> instance
> updates a master model..i do not want to put all the forms in one  
> page..is
> there any other possible way to do it..
>
> I was looking at orbeon code and am not sure as to where the url  
> rewriting
> is happening in the portlet..
>
> if you guys could point me out to the code as to where i can  
> possibly fix
> it..that should really be great..
>
>
>
> Alessandro Vernet wrote:
>>
>> On Fri, Jun 27, 2008 at 7:27 AM, sushik billa <[hidden email]>  
>> wrote:
>>> Thanks for the quick reply
>>>
>>> but the same page-flow runs when run as a webapp but not in a  
>>> portlet
>>> app..
>>>
>>> could you please point to url that i should change in my page-flow  
>>> and a
>>> possible replacement that could work..
>>>
>>> i also copied a working orbeon portlet eaxmaple with a different  
>>> folder
>>> name
>>> and change all the urls respectively..even then i come with similar
>>> issue..my subsequent DOMActivate action doesn't work..i was  
>>> wondering
>>> whether i have to register the folder in portlet app in some place..
>>
>> You might be hitting this bug:
>>
>> http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=307940
>>
>> A workaround might be to change your code to be in "one page", and  
>> use
>> submission replace="instance" to exchange data with the server.
>>
>> Alex
>> --
>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>> Orbeon's Blog: http://www.orbeon.com/blog/
>> Personal Blog: http://avernet.blogspot.com/
>> Twitter - http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]  
>> mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>> -----
>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>> http://www.orbeon.com/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/cannot-run-an-example-in-portlet-tp18155929p18222823.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws