@Ofbizurl and external module

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

@Ofbizurl and external module

Simone Michele
Hi to all !

I'm a newbie to the ofbiz/opentaps world.
I'm developing a new module for my purpose, in this module i have  some
screen-widget  that include some  opentaps  ftl  macros  (like
viewprofile.ftl ) and some screens (like PaymentMethodScreens.xml).
i.e.
<container style="subSectionBlock">
    <container style="form">
        <platform-specific>
            <html>
                <html-template
location="component://crmsfa/webapp/crmsfa/contactmech/viewprofile.ftl"/>                          
         
            </html>
       </platform-specific>  
   </container>
</container>
....                                    
<container style="subSectionBlock" >            
    <container style="form" >  
        <include-screen name="listContactPaymentMethods"
location="component://crmsfa/widget/crmsfa/screens/common/PaymentMethodScreens.xml"
/>
    </container>
</container>

All rendering fine, the problem is that all the link made by the @ofbiz
trasform in that ftl point to localhost:8080/MyApplication/.... instead
of localhost:8080/crmsfa/.... is there any way to set the ofbiz url
transforming context to make it pointing to the right place??
Tanks in advance,
Michele






Reply | Threaded
Open this post in threaded view
|

Re: @Ofbizurl and external module

Bilgin Ibryam
Why not try

<a href="/crmsfa/control/...

Bilgin
Reply | Threaded
Open this post in threaded view
|

Re: @Ofbizurl and external module

Simone Michele
Bilgin Ibryam ha scritto:
> Why not try
>
> <a href="/crmsfa/control/...
>
> Bilgin
>  
Thanks for you reply,
It's a solution but this way i have to modify all the ftl files in the
crmsfa application and i prefer to
don't touch that files.
Any other solution.. ??

Michele

Reply | Threaded
Open this post in threaded view
|

Re: @Ofbizurl and external module

Adrian Crum
In reply to this post by Simone Michele
Michele,

Your problem description is missing some important information, but I think I understand what you
are describing.

It seems you are reusing existing crmsfa screens that have <@ofbizUrl> transforms in them that
create links. If you click on those links, they resolve to your custom app's url, not the crmsfa url.

The simplest solution to that problem (if my guess is correct) is to have identical view mappings in
your custom app - so that the same url exists in your custom app.

-Adrian

Simone Michele wrote:

> Hi to all !
>
> I'm a newbie to the ofbiz/opentaps world.
> I'm developing a new module for my purpose, in this module i have  some
> screen-widget  that include some  opentaps  ftl  macros  (like
> viewprofile.ftl ) and some screens (like PaymentMethodScreens.xml).
> i.e.
> <container style="subSectionBlock">
>     <container style="form">
>         <platform-specific>
>             <html>
>                 <html-template
> location="component://crmsfa/webapp/crmsfa/contactmech/viewprofile.ftl"/>                          
>          
>             </html>
>        </platform-specific>  
>    </container>
> </container>
> ....                                    
> <container style="subSectionBlock" >            
>     <container style="form" >  
>         <include-screen name="listContactPaymentMethods"
> location="component://crmsfa/widget/crmsfa/screens/common/PaymentMethodScreens.xml"
> />
>     </container>
> </container>
>
> All rendering fine, the problem is that all the link made by the @ofbiz
> trasform in that ftl point to localhost:8080/MyApplication/.... instead
> of localhost:8080/crmsfa/.... is there any way to set the ofbiz url
> transforming context to make it pointing to the right place??
> Tanks in advance,
> Michele
>
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: @Ofbizurl and external module

BJ Freeman
In reply to this post by Simone Michele
that should not be a problem if you include the controller in your myapp
controller.
it will still show up under myapp/controller but will be using the
application/controller, to resolve any uri in the request map that are
generated by the ftl.



Simone Michele sent the following on 11/19/2007 12:28 AM:

> Hi to all !
>
> I'm a newbie to the ofbiz/opentaps world.
> I'm developing a new module for my purpose, in this module i have  some
> screen-widget  that include some  opentaps  ftl  macros  (like
> viewprofile.ftl ) and some screens (like PaymentMethodScreens.xml).
> i.e.
> <container style="subSectionBlock">
>     <container style="form">
>         <platform-specific>
>             <html>
>                 <html-template
> location="component://crmsfa/webapp/crmsfa/contactmech/viewprofile.ftl"/>                          
>          
>             </html>
>        </platform-specific>  
>    </container>
> </container>
> ....                                    
> <container style="subSectionBlock" >            
>     <container style="form" >  
>         <include-screen name="listContactPaymentMethods"
> location="component://crmsfa/widget/crmsfa/screens/common/PaymentMethodScreens.xml"
> />
>     </container>
> </container>
>
> All rendering fine, the problem is that all the link made by the @ofbiz
> trasform in that ftl point to localhost:8080/MyApplication/.... instead
> of localhost:8080/crmsfa/.... is there any way to set the ofbiz url
> transforming context to make it pointing to the right place??
> Tanks in advance,
> Michele
>
>
>
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: @Ofbizurl and external module

Simone Michele
Ok boys !!
Thanks a lot the problem is in my controller.xml i included the crmsfa
controller and all works fine.

Really  graceful,
Michele