Ofbiz url

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

Ofbiz url

nilesh_patil
Hi any one please explain <@ofbizUrl>login</@ofbizUrl> how it works
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Malini Sharma
Hi,

   Though I am new to OFBiz, but i think I have answer to this question.
Nilesh, the flow is.. as soon as "login" request is passed in
<@ofbizUrl></@ofbizUrl>. The request will be searched in controller.xml
file of your component first and then in the main component's (incase it is
not there in your component's controller.xml), and from here it will either
get directed to the events / other requests or to the view maps as per your
definition to the response inside the request.

View maps further directs to "screens" or "screenfop" or "birt" or
"screencsv"etc.

Regards.

On Tue, May 8, 2012 at 2:31 PM, nilesh_patil <[hidden email]> wrote:

> Hi any one please explain <@ofbizUrl>login</@ofbizUrl> how it works
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Ankush Upadhyay
In reply to this post by nilesh_patil
Hi,
ofbizUrl is used to form Url purpose and you can see its working in
OfbizUrlTransform class.
internally it is also search request in controller.xml.



On 05/08/2012 02:31 PM, nilesh_patil wrote:
> Hi any one please explain<@ofbizUrl>login</@ofbizUrl>  how it works
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

--
Thanks&  Regards
Ankush Upadhyay
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

nilesh_patil
Hi,
Thank you very much.
But in which controller.xml file i have to search.

On Tue, May 8, 2012 at 4:23 PM, Ankush Upadhyay [via OFBiz] <[hidden email]> wrote:
Hi,
ofbizUrl is used to form Url purpose and you can see its working in
OfbizUrlTransform class.
internally it is also search request in controller.xml.



On 05/08/2012 02:31 PM, nilesh_patil wrote:
> Hi any one please explain<@ofbizUrl>login</@ofbizUrl>  how it works
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

--
Thanks&  Regards
Ankush Upadhyay
[hidden email]




If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4617161.html
To unsubscribe from Ofbiz url, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

nilesh_patil
In reply to this post by Ankush Upadhyay
Following is the code Will you plz tell me on which page it goes afer login success 
<#--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

<#if requestAttributes.uiLabelMap?exists><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
<#assign useMultitenant = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties", "multitenant")>

<#assign username = requestParameters.USERNAME?default((sessionAttributes.autoUserLogin.userLoginId)?default(""))>
<#if username != "">
  <#assign focusName = false>
<#else>
  <#assign focusName = true>
</#if>
<center>
  <div class="screenlet login-screenlet">
    <div class="screenlet-title-bar">
      <h3>${uiLabelMap.BremaRegisteredUser}</h3>
    </div>
    <div class="screenlet-body">
      <form method="post" action="<@ofbizUrl>login</@ofbizUrl>" name="loginform">
        <table class="basic-table" cellspacing="0">
          <tr>
            <td class="label">${uiLabelMap.CommonUsername}</td>
            <td><input type="text" name="USERNAME" value="${username}" size="20"/></td>
          </tr>
          <tr>
            <td class="label">${uiLabelMap.CommonPassword}</td>
            <td><input type="password" name="PASSWORD" value="" size="20"/></td>
          </tr>
          <#if ("Y" == useMultitenant) >
              <#if !requestAttributes.tenantId?exists>
                  <tr>
                      <td class="label">${uiLabelMap.CommonTenantId}</td>
                      <td><input type="text" name="tenantId" value="${parameters.tenantId?if_exists}" size="20"/></td>
                  </tr>
              <#else>
                  <input type="hidden" name="tenantId" value="${requestAttributes.tenantId?if_exists}"/>
              </#if>
          </#if>
          <tr>
            <td colspan="2" align="center">
              <input type="submit" value="${uiLabelMap.CommonLogin}"/>
            </td>
          </tr>
        </table>
        <input type="hidden" name="JavaScriptEnabled" value="N"/>
        <br />
        <div id="login-sub-buttons" class="seps">
          <a href="<@ofbizUrl>forgotPassword</@ofbizUrl>">${uiLabelMap.CommonForgotYourPassword}?</a>
          <a href="<@ofbizUrl>newRegisterLogin</@ofbizUrl>">${uiLabelMap.MyPortalNewRegistration}</a>
          <a href="http://jighi.com/user/register">${uiLabelMap.BremaSignUp}</a>
          <span class="seps-last">
            <a href="http://jighi.com/">Jighi.com</a>
          </span>
        </div>
      </form>
    </div>
  </div>
  <#include "component://brema/webapp/brema/includes/linkApps.ftl" />
</center>

<script language="JavaScript" type="text/javascript">
  document.loginform.JavaScriptEnabled.value = "Y";
  <#if focusName>
    document.loginform.USERNAME.focus();
  <#else>
    document.loginform.PASSWORD.focus();
  </#if>
</script>


On Tue, May 8, 2012 at 6:45 PM, Nilesh Patil <[hidden email]> wrote:
Hi,
Thank you very much.
But in which controller.xml file i have to search.


On Tue, May 8, 2012 at 4:23 PM, Ankush Upadhyay [via OFBiz] <[hidden email]> wrote:
Hi,
ofbizUrl is used to form Url purpose and you can see its working in
OfbizUrlTransform class.
internally it is also search request in controller.xml.



On 05/08/2012 02:31 PM, nilesh_patil wrote:
> Hi any one please explain<@ofbizUrl>login</@ofbizUrl>  how it works
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

--
Thanks&  Regards
Ankush Upadhyay
[hidden email]




If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4617161.html
To unsubscribe from Ofbiz url, click here.
NAML


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Ankush Upadhyay
In reply to this post by nilesh_patil
As per the my knowledge for login request , it will search first its own
component if found otherwise other controllers that are included in your
component controller.xml
On 05/08/2012 06:45 PM, nilesh_patil wrote:

> Hi,
> Thank you very much.
> But in which controller.xml file i have to search.
>
> On Tue, May 8, 2012 at 4:23 PM, Ankush Upadhyay [via OFBiz]<
> [hidden email]>  wrote:
>
>> Hi,
>> ofbizUrl is used to form Url purpose and you can see its working in
>> OfbizUrlTransform class.
>> internally it is also search request in controller.xml.
>>
>>
>>
>> On 05/08/2012 02:31 PM, nilesh_patil wrote:
>>> Hi any one please explain<@ofbizUrl>login</@ofbizUrl>   how it works
>>>
>>> --
>>> View this message in context:
>> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>> --
>> Thanks&   Regards
>> Ankush Upadhyay
>> [hidden email]<http://user/SendEmail.jtp?type=node&node=4617161&i=0>
>>
>>
>>
>> ------------------------------
>>   If you reply to this email, your message will be added to the discussion
>> below:
>> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4617161.html
>>   To unsubscribe from Ofbiz url, click here<
>> .
>> NAML<
http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4617442.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

--
Thanks&  Regards
Ankush Upadhyay
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Robert Gan
<@ofbizUrl></@ofbizUrl> in general is a kind of wrapper, which helps to make your live easier...

your url can be long like: TLD/ecommerce/controller/...

but when you change it f.ex. to TLD/controller/... and you wrote the whole Url in all files, you have the problem to change it everywere...every site load the system checks for these kind of wrapper, and changes the Url to the complete url..so in your case:
<@ofbizUrl>login</@ofbizUrl> 
is the same as:
TLD/ecommerce/controller/login
the wrapper does not has the function, that the system checks the controller.xml, it is just for changing the short url to the correct url. This is done by a java method.

the part in the url "/controller/" is responsible for the request, to check the controller.xml for the appropriate mapping to a view, or a java class...

nothing else...

if this is what you were asking for.

kindly

Robert

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Robert Gan
btw. not your ftl file is responsible to redirect you to the page after sending f.ex. a form...this does the controller.xml

there you find things like:

success, error and so on...so after a request is f.ex. successfully you can define the view mapping after it.

in the controller.xml you see sth. like:

  <request-map uri="login">
        <security https="true" auth="false"/>
        <event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="storeLogin"/>
        <response name="success" type="view" value="main"/>
        <response name="requirePasswordChange" type="view" value="requirePasswordChange"/>
        <response name="error" type="view" value="login"/>
    </request-map>


you see, that there is an event type. This is worked through, and the login is stored in a session (I believe). If this was successfully, the java method, or service returns a "success", so you will get the view with the value "main" in this case. On an error you will get the view of the login again...this can happen, if f.ex. the session is invalid, the user typed in wrong login data and so on...

the view mapping is referring to the views, which are defined at the end of the file (controller.xml). there is then defined another xml file to get the content of the view /next page...

hope that helps you to understand the processes
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

nilesh_patil
Thank you very much

On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz] <[hidden email]> wrote:
btw. not your ftl file is responsible to redirect you to the page after sending f.ex. a form...this does the controller.xml

there you find things like:

success, error and so on...so after a request is f.ex. successfully you can define the view mapping after it.

in the controller.xml you see sth. like:

  <request-map uri="login">
        <security https="true" auth="false"/>
        <event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="storeLogin"/>
        <response name="success" type="view" value="main"/>
        <response name="requirePasswordChange" type="view" value="requirePasswordChange"/>
        <response name="error" type="view" value="login"/>
    </request-map>


you see, that there is an event type. This is worked through, and the login is stored in a session (I believe). If this was successfully, the java method, or service returns a "success", so you will get the view with the value "main" in this case. On an error you will get the view of the login again...this can happen, if f.ex. the session is invalid, the user typed in wrong login data and so on...

the view mapping is referring to the views, which are defined at the end of the file (controller.xml). there is then defined another xml file to get the content of the view /next page...

hope that helps you to understand the processes



If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html
To unsubscribe from Ofbiz url, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Malini Sharma
Hi,
   Can anyone please guide me, what happens to the request like this:
<ofbizurl>login/checkout</ofbizUrl> (login and checkout are just
examples..)??
login and checkout are two separate requests in controller.xml..?


On Wed, May 9, 2012 at 2:06 PM, nilesh_patil <[hidden email]> wrote:

> Thank you very much
>
> On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz] <
> [hidden email]> wrote:
>
> > btw. not your ftl file is responsible to redirect you to the page after
> > sending f.ex. a form...this does the controller.xml
> >
> > there you find things like:
> >
> > success, error and so on...so after a request is f.ex. successfully you
> > can define the view mapping after it.
> >
> > in the controller.xml you see sth. like:
> >
> > *  <request-map uri="login">
> >         <security https="true" auth="false"/>
> >         <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
> > invoke="storeLogin"/>
> >         <response name="success" type="view" value="main"/>
> >         <response name="requirePasswordChange" type="view"
> > value="requirePasswordChange"/>
> >         <response name="error" type="view" value="login"/>
> >     </request-map>*
> >
> > you see, that there is an event type. This is worked through, and the
> > login is stored in a session (I believe). If this was successfully, the
> > java method, or service returns a "success", so you will get the view
> with
> > the value "main" in this case. On an error you will get the view of the
> > login again...this can happen, if f.ex. the session is invalid, the user
> > typed in wrong login data and so on...
> >
> > the view mapping is referring to the views, which are defined at the end
> > of the file (controller.xml). there is then defined another xml file to
> get
> > the content of the view /next page...
> >
> > hope that helps you to understand the processes
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> > http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html
> >  To unsubscribe from Ofbiz url, click here<
> >
> > .
> > NAML<
>
http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Atul Vani
Without '@' these will be considered as HTML tags instead of freemarker
macros :)

Thanks&  Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


On 05/09/2012 03:37 PM, Malini Sharma wrote:

> Hi,
>     Can anyone please guide me, what happens to the request like this:
> <ofbizurl>login/checkout</ofbizUrl>  (login and checkout are just
> examples..)??
> login and checkout are two separate requests in controller.xml..?
>
>
> On Wed, May 9, 2012 at 2:06 PM, nilesh_patil<[hidden email]>  wrote:
>
>> Thank you very much
>>
>> On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz]<
>> [hidden email]>  wrote:
>>
>>> btw. not your ftl file is responsible to redirect you to the page after
>>> sending f.ex. a form...this does the controller.xml
>>>
>>> there you find things like:
>>>
>>> success, error and so on...so after a request is f.ex. successfully you
>>> can define the view mapping after it.
>>>
>>> in the controller.xml you see sth. like:
>>>
>>> *<request-map uri="login">
>>>          <security https="true" auth="false"/>
>>>          <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
>>> invoke="storeLogin"/>
>>>          <response name="success" type="view" value="main"/>
>>>          <response name="requirePasswordChange" type="view"
>>> value="requirePasswordChange"/>
>>>          <response name="error" type="view" value="login"/>
>>>      </request-map>*
>>>
>>> you see, that there is an event type. This is worked through, and the
>>> login is stored in a session (I believe). If this was successfully, the
>>> java method, or service returns a "success", so you will get the view
>> with
>>> the value "main" in this case. On an error you will get the view of the
>>> login again...this can happen, if f.ex. the session is invalid, the user
>>> typed in wrong login data and so on...
>>>
>>> the view mapping is referring to the views, which are defined at the end
>>> of the file (controller.xml). there is then defined another xml file to
>> get
>>> the content of the view /next page...
>>>
>>> hope that helps you to understand the processes
>>>
>>>
>>> ------------------------------
>>>   If you reply to this email, your message will be added to the discussion
>>> below:
>>> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html
>>>   To unsubscribe from Ofbiz url, click here<
>> .
>>> NAML<
>>
http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>>>
>>
>> --
>> View this message in context:
>> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Malini Sharma
Oops. no add "@" in front of both.. the question is what when we have two
requests separated by '/' inside<@ofbiz>abc/def</@ofbiz> ???

On Wed, May 9, 2012 at 5:18 PM, Atul Vani <[hidden email]> wrote:

> Without '@' these will be considered as HTML tags instead of freemarker
> macros :)
>
> Thanks&  Regards
> Atul Vani
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
> http://www.hotwaxmedia.com/
> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for
> yourself.
>
>
>
> On 05/09/2012 03:37 PM, Malini Sharma wrote:
>
>> Hi,
>>    Can anyone please guide me, what happens to the request like this:
>> <ofbizurl>login/checkout</**ofbizUrl>  (login and checkout are just
>> examples..)??
>> login and checkout are two separate requests in controller.xml..?
>>
>>
>> On Wed, May 9, 2012 at 2:06 PM, nilesh_patil<nilesh_patil@**tudip.com<[hidden email]>>
>>  wrote:
>>
>>  Thank you very much
>>>
>>> On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz]<
>>> ml-node+s135035n4618010h80@n4.**nabble.com<ml-node%[hidden email]>>
>>>  wrote:
>>>
>>>  btw. not your ftl file is responsible to redirect you to the page after
>>>> sending f.ex. a form...this does the controller.xml
>>>>
>>>> there you find things like:
>>>>
>>>> success, error and so on...so after a request is f.ex. successfully you
>>>> can define the view mapping after it.
>>>>
>>>> in the controller.xml you see sth. like:
>>>>
>>>> *<request-map uri="login">
>>>>         <security https="true" auth="false"/>
>>>>         <event type="java" path="org.ofbiz.securityext.**
>>>> login.LoginEvents"
>>>> invoke="storeLogin"/>
>>>>         <response name="success" type="view" value="main"/>
>>>>         <response name="requirePasswordChange" type="view"
>>>> value="requirePasswordChange"/**>
>>>>         <response name="error" type="view" value="login"/>
>>>>     </request-map>*
>>>>
>>>> you see, that there is an event type. This is worked through, and the
>>>> login is stored in a session (I believe). If this was successfully, the
>>>> java method, or service returns a "success", so you will get the view
>>>>
>>> with
>>>
>>>> the value "main" in this case. On an error you will get the view of the
>>>> login again...this can happen, if f.ex. the session is invalid, the user
>>>> typed in wrong login data and so on...
>>>>
>>>> the view mapping is referring to the views, which are defined at the end
>>>> of the file (controller.xml). there is then defined another xml file to
>>>>
>>> get
>>>
>>>> the content of the view /next page...
>>>>
>>>> hope that helps you to understand the processes
>>>>
>>>>
>>>> ------------------------------
>>>>  If you reply to this email, your message will be added to the
>>>> discussion
>>>> below:
>>>> http://ofbiz.135035.n4.nabble.**com/Ofbiz-url-**tp4616949p4618010.html<http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html>
>>>>  To unsubscribe from Ofbiz url, click here<
>>>>
>>> http://ofbiz.135035.n4.nabble.**com/template/NamlServlet.jtp?**
>>> macro=unsubscribe_by_code&**node=4616949&code=**
>>> bmlsZXNoX3BhdGlsQHR1ZGlwLmNvbX**w0NjE2OTQ5fDM3OTM4ODgxNQ==<
>>>
>>>> .
>>>> NAML<
>>>>
>>>
http://ofbiz.135035.n4.nabble.**com/template/NamlServlet.jtp?**
>>> macro=macro_viewer&id=instant_**html%21nabble%3Aemail.naml&**
>>> base=nabble.naml.namespaces.**BasicNamespace-nabble.view.**
>>> web.template.NabbleNamespace-**nabble.view.web.template.**
>>> NodeNamespace&breadcrumbs=**notify_subscribers%21nabble%**
>>> 3Aemail.naml-instant_emails%**21nabble%3Aemail.naml-send_**
>>> instant_email%21nabble%**3Aemail.naml<http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://ofbiz.135035.n4.nabble.**com/Ofbiz-url-**tp4616949p4619742.html<http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html>
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Atul Vani
In reply to this post by Atul Vani
Comments inline, mistakenly sent too soon.

Thanks&  Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


On 05/09/2012 05:18 PM, Atul Vani wrote:
> Without '@' these will be considered as HTML tags instead of
> freemarker macros :)
>

With '@', it will behave as it would have normally, the '/' has no
effects. However, when this request will be hit, the 'login' request's
view mapping will be overrided by 'checkout' view.

> Thanks&  Regards
> Atul Vani
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
> http://www.hotwaxmedia.com/
> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for
> yourself.
>
>
> On 05/09/2012 03:37 PM, Malini Sharma wrote:
>> Hi,
>>     Can anyone please guide me, what happens to the request like this:
>> <ofbizurl>login/checkout</ofbizUrl>  (login and checkout are just
>> examples..)??
>> login and checkout are two separate requests in controller.xml..?
>>
>>
>> On Wed, May 9, 2012 at 2:06 PM, nilesh_patil<[hidden email]>  
>> wrote:
>>
>>> Thank you very much
>>>
>>> On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz]<
>>> [hidden email]>  wrote:
>>>
>>>> btw. not your ftl file is responsible to redirect you to the page
>>>> after
>>>> sending f.ex. a form...this does the controller.xml
>>>>
>>>> there you find things like:
>>>>
>>>> success, error and so on...so after a request is f.ex. successfully
>>>> you
>>>> can define the view mapping after it.
>>>>
>>>> in the controller.xml you see sth. like:
>>>>
>>>> *<request-map uri="login">
>>>> <security https="true" auth="false"/>
>>>> <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
>>>> invoke="storeLogin"/>
>>>> <response name="success" type="view" value="main"/>
>>>> <response name="requirePasswordChange" type="view"
>>>> value="requirePasswordChange"/>
>>>> <response name="error" type="view" value="login"/>
>>>> </request-map>*
>>>>
>>>> you see, that there is an event type. This is worked through, and the
>>>> login is stored in a session (I believe). If this was successfully,
>>>> the
>>>> java method, or service returns a "success", so you will get the view
>>> with
>>>> the value "main" in this case. On an error you will get the view of
>>>> the
>>>> login again...this can happen, if f.ex. the session is invalid, the
>>>> user
>>>> typed in wrong login data and so on...
>>>>
>>>> the view mapping is referring to the views, which are defined at
>>>> the end
>>>> of the file (controller.xml). there is then defined another xml
>>>> file to
>>> get
>>>> the content of the view /next page...
>>>>
>>>> hope that helps you to understand the processes
>>>>
>>>>
>>>> ------------------------------
>>>>   If you reply to this email, your message will be added to the
>>>> discussion
>>>> below:
>>>> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html
>>>>   To unsubscribe from Ofbiz url, click here<
>>>
>>>
>>>> .
>>>> NAML<
>>>
http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml 
>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Malini Sharma
great. Thanks :)

On Wed, May 9, 2012 at 5:28 PM, Atul Vani <[hidden email]> wrote:

> Comments inline, mistakenly sent too soon.
>
>
> Thanks&  Regards
> Atul Vani
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
> http://www.hotwaxmedia.com/
> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for
> yourself.
>
>
> On 05/09/2012 05:18 PM, Atul Vani wrote:
>
>> Without '@' these will be considered as HTML tags instead of freemarker
>> macros :)
>>
>>
> With '@', it will behave as it would have normally, the '/' has no
> effects. However, when this request will be hit, the 'login' request's view
> mapping will be overrided by 'checkout' view.
>
>
>  Thanks&  Regards
>> Atul Vani
>> Enterprise Software Developer
>> HotWax Media Pvt. Ltd.
>> http://www.hotwaxmedia.com/
>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for
>> yourself.
>>
>>
>> On 05/09/2012 03:37 PM, Malini Sharma wrote:
>>
>>> Hi,
>>>    Can anyone please guide me, what happens to the request like this:
>>> <ofbizurl>login/checkout</**ofbizUrl>  (login and checkout are just
>>> examples..)??
>>> login and checkout are two separate requests in controller.xml..?
>>>
>>>
>>> On Wed, May 9, 2012 at 2:06 PM, nilesh_patil<nilesh_patil@**tudip.com<[hidden email]>>
>>>  wrote:
>>>
>>>  Thank you very much
>>>>
>>>> On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz]<
>>>> ml-node+s135035n4618010h80@n4.**nabble.com<ml-node%[hidden email]>>
>>>>  wrote:
>>>>
>>>>  btw. not your ftl file is responsible to redirect you to the page after
>>>>> sending f.ex. a form...this does the controller.xml
>>>>>
>>>>> there you find things like:
>>>>>
>>>>> success, error and so on...so after a request is f.ex. successfully you
>>>>> can define the view mapping after it.
>>>>>
>>>>> in the controller.xml you see sth. like:
>>>>>
>>>>> *<request-map uri="login">
>>>>> <security https="true" auth="false"/>
>>>>> <event type="java" path="org.ofbiz.securityext.**login.LoginEvents"
>>>>> invoke="storeLogin"/>
>>>>> <response name="success" type="view" value="main"/>
>>>>> <response name="requirePasswordChange" type="view"
>>>>> value="requirePasswordChange"/**>
>>>>> <response name="error" type="view" value="login"/>
>>>>> </request-map>*
>>>>>
>>>>> you see, that there is an event type. This is worked through, and the
>>>>> login is stored in a session (I believe). If this was successfully, the
>>>>> java method, or service returns a "success", so you will get the view
>>>>>
>>>> with
>>>>
>>>>> the value "main" in this case. On an error you will get the view of the
>>>>> login again...this can happen, if f.ex. the session is invalid, the
>>>>> user
>>>>> typed in wrong login data and so on...
>>>>>
>>>>> the view mapping is referring to the views, which are defined at the
>>>>> end
>>>>> of the file (controller.xml). there is then defined another xml file to
>>>>>
>>>> get
>>>>
>>>>> the content of the view /next page...
>>>>>
>>>>> hope that helps you to understand the processes
>>>>>
>>>>>
>>>>> ------------------------------
>>>>>  If you reply to this email, your message will be added to the
>>>>> discussion
>>>>> below:
>>>>> http://ofbiz.135035.n4.nabble.**com/Ofbiz-url-**tp4616949p4618010.html<http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html>
>>>>>  To unsubscribe from Ofbiz url, click here<
>>>>>
>>>> http://ofbiz.135035.n4.nabble.**com/template/NamlServlet.jtp?**
>>>> macro=unsubscribe_by_code&**node=4616949&code=**
>>>> bmlsZXNoX3BhdGlsQHR1ZGlwLmNvbX**w0NjE2OTQ5fDM3OTM4ODgxNQ==<
>>>>
>>>>> .
>>>>> NAML<
>>>>>
>>>>
http://ofbiz.135035.n4.nabble.**com/template/NamlServlet.jtp?**
>>>> macro=macro_viewer&id=instant_**html%21nabble%3Aemail.naml&**
>>>> base=nabble.naml.namespaces.**BasicNamespace-nabble.view.**
>>>> web.template.NabbleNamespace-**nabble.view.web.template.**
>>>> NodeNamespace&breadcrumbs=**notify_subscribers%21nabble%**
>>>> 3Aemail.naml-instant_emails%**21nabble%3Aemail.naml-send_**
>>>> instant_email%21nabble%**3Aemail.naml<http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://ofbiz.135035.n4.nabble.**com/Ofbiz-url-**tp4616949p4619742.html<http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html>
>>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>>
>>>>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz url

Robert Gan
In reply to this post by Atul Vani
Btw. for better understanding. I think the @ is in generall a marker for macro calls in freemarker templates.

But in this case not. The @ofbizurl or @ofbizalturl etc. are calls for java methods, which change the Url.

otherwise the macro has to be defined in the same file.

kindly

Robert



Atul Vani wrote
Without '@' these will be considered as HTML tags instead of freemarker
macros :)