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 |
Why not try
<a href="/crmsfa/control/... Bilgin |
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 |
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 > > > > > > > |
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 > > > > > > > > > |
Ok boys !!
Thanks a lot the problem is in my controller.xml i included the crmsfa controller and all works fine. Really graceful, Michele |
Free forum by Nabble | Edit this page |