Help required in ftl

2010-04-01 Thread Hemanth Kumar Kanamarlapudi
Hi All,

I need a help regarding ftl.

I need to include an ftl file dynamically if it is available or else include a 
default ftl page.

Any one has an idea, please let me know.

Thanks in advance

Hemanth

Hemanth Kumar.K| Module Lead| MindTree Ltd. Maruthi Chambers, No. 17/9C, 17/4C, 
Rupena Agrahara, Hosur Road, Bangalore - 560 068, INDIA |
Voice +91 80 25738005 x 77590| Mobile +91 9986134010| email: 
hemanth_kanamarlap...@mindtree.commailto:hemanth_kanamarlap...@mindtree.com 
|www.mindtree.comblocked::blocked::http://www.mindtree.com/ |



http://www.mindtree.com/email/disclaimer.html


RE: Help required in ftl Thank you,problem solved

2010-04-01 Thread Hemanth Kumar Kanamarlapudi
Hi Chirag,

Thank you very much, I am able to solve it using the set field tag using the 
theme usage you have told me.

Regards
Hemanth

-Original Message-
From: Chirag Manocha [mailto:cmano...@emforium.com] 
Sent: Thursday, April 01, 2010 6:44 PM
To: user@ofbiz.apache.org
Subject: Re: Help required in ftl

Hi Hemanth,

You can do this with the use of database. This has been done with the theme use 
also. You can check the main-decorator screen in CommonScreens.xml of ecommerce.

Regards
--
Chirag Manocha
Sr. Software Engineer
Emforium Group Inc.
+91-98735-47457


- Hemanth Kumar Kanamarlapudi hemanth_kanamarlap...@mindtree.com wrote:

 From: Hemanth Kumar Kanamarlapudi hemanth_kanamarlap...@mindtree.com
 To: user@ofbiz.apache.org user@ofbiz.apache.org
 Sent: Thursday, April 1, 2010 6:23:51 PM
 Subject: Help required in ftl

 Hi All,
 
 I need a help regarding ftl.
 
 I need to include an ftl file dynamically if it is available or else
 include a default ftl page.
 
 Any one has an idea, please let me know.
 
 Thanks in advance
 
 Hemanth
 
 
 
 http://www.mindtree.com/email/disclaimer.html


RE: Auth.net payment not being authorized/captured

2010-01-11 Thread Hemanth Kumar Kanamarlapudi
Hi



Try to do following things:



Go to the following URL:

 
https://www.demo.ofbiz.com/catalog/control/EditProductStorePaySetup?productStoreId=9000



Enter Admin Credentials login id/password



Configure as per requirement:

* Select Payments tab

* Click Edit Option which you can see from the above Line Image in the site 
link above.

* Select Service Type as  (Payment Authorization Service)

* Select Custom method as AIMCCAuth for reverting back from existing 
selection to original Auth.net Authorization


Regards
Hemanth











-Original Message-
From: abdullah.shaik...@gmail.com [mailto:abdullah.shaik...@gmail.com] On 
Behalf Of Abdullah Shaikh
Sent: Wednesday, December 09, 2009 6:46 PM
To: user@ofbiz.apache.org
Subject: Re: Auth.net payment not being authorized/captured



I guess if there are no online payment preferences, it means that the order

is offline or pay by check, but not a CC order.



On Wed, Dec 9, 2009 at 5:31 PM, JDKHead jdkh...@gmail.com wrote:







 Discovered the following:

 in CheckoutHelper.java, allPaymentPreferences.size() is zero and thus

 onlinePaymentPrefs.size() is zero, so it ends up getting down to the area

 around line 1110:

 // There is nothing to do, we just treat this as a success







 JDKHead wrote:

 

  We're using a demo site we're tweaking to learn more about ofbiz, and

 have

  done the following, however the order is confirmed on the front end of

 the

  ecommerce site, the order confirmation email gets sent, but no

  authorization or capture is performed.  Is there a setting we're missing

  somewhere to turn on authorization?

 

  We suspect this isn't a problem specific to Auth.net, but to some general

  setting we've missed since we aren't seeing any errors in the logs

 

 1. Imported secure.authorize.net certificate into

  /opt/jdk1.6.0_16/jre/lib/security/cacerts

 2. Changed demo site to N

 3. Accounting/Payment Gateway Config for Authorize.net

   1. https://secure.authorize.net/gateway/transact.dll

   2. transaction key XXX

   3. userid XX

   4. password XX

 4. In Catalog Mgr/Stores/Store, payments

   1. Manual Auth Is Capture (tried Y and N)

   2. tried combos of the other settings like Auto Order Cc Try

  Later Nsf

 5. In Catalog Mgr/Stores/Payments, removed everything, added

   1. Credit Card

   2. Payment Authorization Service

   3. CC Authorize dot net authorize and capture (aimCCAuthCapture)

  - also tried authorize without the catpure

   4. Auhorize Dot Net Configg

   5. Payment Props (left blank)

   6. Apply to All Y

 



 --

 View this message in context:

 http://n4.nabble.com/Auth-net-payment-not-being-authorized-captured-tp955954p956010.html

 Sent from the OFBiz - User mailing list archive at Nabble.com.




http://www.mindtree.com/email/disclaimer.html


Integrating Facebook Connect (Single Signon feature) with Ofbiz

2010-01-04 Thread Hemanth Kumar Kanamarlapudi
Hi Users,

I have to integrate FaceBook Connect Single Sign On feature with Ofbiz.

I need some clarifications to use facebook api(there are multiple java api's 
and php api's available for this)

So I want to take guidance from those who have used it with ofbiz.

I will post specific questions if any one worked on it already.

Your guidance will be highly appreciable.

Thanks and Regards
Hemanth


http://www.mindtree.com/email/disclaimer.html


How to create a new entity

2009-12-29 Thread Hemanth Kumar Kanamarlapudi
Hi All,

I have added a new entity definition in an existing entitymodel.xml which is 
already loaded through ofbiz-component.xml


entity entity-name=trackUserSource package-name=com.pj.contact
title=Track User Source Entity 
field name=trackId type=id-ne/
field name=source type=long-varchar/
field name=medium type=long-varchar/
field name=campaign type=long-varchar/
field name=userId type=long-varchar/
field name=pid type=long-varchar/
prim-key field=trackId/
/entity

But I am not able to create this object when I restart ofbiz.

Your quick help is appreciated.

Thanks  Regards
Hemanth




http://www.mindtree.com/email/disclaimer.html


RE: How to create a new entity

2009-12-29 Thread Hemanth Kumar Kanamarlapudi
Hi All,

I have tried in another developer system and it worked well. I need to figure 
out the problem in my local environment.
For your information,
We should not use run-install because it will override all the new changes done 
in the db.

Hi Priya,
Thanks for helping out.

Regards
Hemanth


-Original Message-
From: Divesh Dutta [mailto:divesh.du...@hotwaxmedia.com] 
Sent: Wednesday, December 30, 2009 10:41 AM
To: user@ofbiz.apache.org
Subject: Re: How to create a new entity

Hi Hemanth,

Restarting the OFBiz will not solve your purpose. ant run-install will 
be your friend, in that case.

Thanks
--
Divesh Dutta.

Hemanth Kumar Kanamarlapudi wrote:
 Hi All,

 I have added a new entity definition in an existing entitymodel.xml which is 
 already loaded through ofbiz-component.xml


 entity entity-name=trackUserSource package-name=com.pj.contact
 title=Track User Source Entity 
 field name=trackId type=id-ne/
 field name=source type=long-varchar/
 field name=medium type=long-varchar/
 field name=campaign type=long-varchar/
 field name=userId type=long-varchar/
 field name=pid type=long-varchar/
 prim-key field=trackId/
 /entity

 But I am not able to create this object when I restart ofbiz.

 Your quick help is appreciated.

 Thanks  Regards
 Hemanth



 
 http://www.mindtree.com/email/disclaimer.html

   



RE: direct capture during checkout

2009-12-27 Thread Hemanth Kumar Kanamarlapudi
Hi All,

Can any one tell me how to do authorize and capture at the same time using 
Authorize.net payment gateway.

Thanks
Hemanth

-Original Message-
From: Divesh Dutta [mailto:divesh.du...@hotwaxmedia.com]
Sent: Monday, December 28, 2009 11:19 AM
To: user@ofbiz.apache.org
Subject: Re: direct capture during checkout

Hi Alexander,

For this, you need to set field payment.cybersource.autoBill == true,
in payment.properties or in PaymentGatewayCyberSource entity.
By doing this, auth and transaction will be done in single transaction.

Thanks
--
Divesh Dutta.

Alexander1893 wrote:
 Hi all,

 I set up cybersource as payment gateway. Everything works fine a the moment.
 During the checkout only an authorize is done at the moment and I have to
 do the capture manually in the backend.

 Is there any way of configuring the checkout, so that the capture is done
 directly when the user submits his order?

 Thanks a lot!

 Alexander



http://www.mindtree.com/email/disclaimer.html


RE: switching between http and https without cookies possible in ofbiz?????

2009-11-08 Thread Hemanth Kumar Kanamarlapudi
Hi Raj,

This is mainly because of switching between http and https.
We are transferring our control to third party paypal site for payment and on 
return of that we are transferring to another https page and there we are 
getting logging out. This behavior is not regular, some times logging out and 
some times not. Is it due to SSL certificate?
Regards
Hemanth


-Original Message-
From: Raj Saini [mailto:rajsa...@gmail.com]
Sent: Saturday, November 07, 2009 10:17 PM
To: user@ofbiz.apache.org
Subject: Re: switching between http and https without cookies possible in 
ofbiz?

Hi Hemanth,

Can you explain a bit more please? What do you mean when moving.

Thanks,

Raj

Hemanth Kumar Kanamarlapudi wrote:
 Hi All,

 Even i am facing this same problem of logging out in my ofbiz application 
 when moving. Your help is appreciated.

 Regards
 Hemanth

 
 From: Raj Saini [rajsa...@gmail.com]
 Sent: 07 November 2009 20:37
 To: user@ofbiz.apache.org
 Subject: Re: switching between http and https without cookies possible in 
   ofbiz?

 Kumaraswamy,

 If you disbable the cookies every URL must have a jsession id. This
 works fine OOTB when switching one protocol to another and jsessionid is
 appended to the URL. Your's is custom code or you are using OOTB?

 Thanks,

 Raj

 Kumaraswamy nandipati wrote:

 Hi All,

 I am not a tech savvy. Please pull me out of this problem.

 Problem: I am browsing with Disable Cookies option for my ofbiz site. When
 ever, I switch from http to https it is asking me to login. I saw that ofbiz
 sets JSESSIONID as a cookie in normal browsing(cookie enabled).

 Q1) Is this problem only in ofbiz or default from tomcat. I am questioning
 because ofbiz internally uses tomcat instance??.

 Q2) Is there any solution for switching between http and https other than
 cookies???  Because, I want my cookie-disabled customers to browse
 successfully on my site to place order??.








 http://www.mindtree.com/email/disclaimer.html





RE: switching between http and https without cookies possible in ofbiz?????

2009-11-07 Thread Hemanth Kumar Kanamarlapudi
Hi All,

Even i am facing this same problem of logging out in my ofbiz application when 
moving. Your help is appreciated.

Regards
Hemanth


From: Raj Saini [rajsa...@gmail.com]
Sent: 07 November 2009 20:37
To: user@ofbiz.apache.org
Subject: Re: switching between http and https without cookies possible in   
ofbiz?

Kumaraswamy,

If you disbable the cookies every URL must have a jsession id. This
works fine OOTB when switching one protocol to another and jsessionid is
appended to the URL. Your's is custom code or you are using OOTB?

Thanks,

Raj

Kumaraswamy nandipati wrote:
 Hi All,

 I am not a tech savvy. Please pull me out of this problem.

 Problem: I am browsing with Disable Cookies option for my ofbiz site. When
 ever, I switch from http to https it is asking me to login. I saw that ofbiz
 sets JSESSIONID as a cookie in normal browsing(cookie enabled).

 Q1) Is this problem only in ofbiz or default from tomcat. I am questioning
 because ofbiz internally uses tomcat instance??.

 Q2) Is there any solution for switching between http and https other than
 cookies???  Because, I want my cookie-disabled customers to browse
 successfully on my site to place order??.







http://www.mindtree.com/email/disclaimer.html


RE: Need Info on how to authorize and capture the payment for the order placed by the user instantly using Auth.net payment gateway

2009-10-25 Thread Hemanth Kumar Kanamarlapudi
Hi BJ and Tim,

Thanks for your information on order processing.
If I want to charge customer before shipping the items, can you please let me 
know how I can configure it in our Ofbiz product store payment settings for 
Auth.Net

Thanks
Hemanth

-Original Message-
From: BJ Freeman [mailto:bjf...@free-man.net]
Sent: Sunday, October 25, 2009 5:31 AM
To: user@ofbiz.apache.org
Subject: Re: Need Info on how to authorize and capture the payment for the 
order placed by the user instantly using Auth.net payment gateway

Be interested in the rules that define that you must ship before
charging an account.
though it is the way many do it, there is still for mail order that
which the internet has been define as, that you have 30 days after
receiving the funds to ship. Then you must inform the customer and let
them decide if they want to wait longer.

Tim Ruppert sent the following on 10/24/2009 9:37 AM:
 It's a setting on the product store - but remember, in many cases it's
 not legal to take the money until you are actually shipping / packing
 the product - so the auto capture is often something businesses decide
 not to do.

 Cheers,
 Ruppert
 --
 Tim Ruppert
 HotWax Media
 http://www.hotwaxmedia.com

 o:801.649.6594
 f:801.649.6595

 On Oct 24, 2009, at 3:41 AM, Hemanth Kumar Kanamarlapudi wrote:

 Hi Users,

 At present in Ofbiz after configuring authorize.net payment gateway
 for credit card payment processing,

 If a customer purchases some thing from e-commerce using credit card,
 the credit card payment is just authorized but not captured.
 Admin has to login into order manager application and then he has to
 capture the payment for that particular order.

 I want to know is there any way to capture the money directly from
 users credit card while he is placing the order itself rather than
 admin logs into order manager application and captures the money from
 that credit card manually.

 My Product Store settings for Payment (Credit card) in catalog
 application are as follows:
 Select Payment Method Type as Credit Card
 Select Service Type as  (1.Payment Authorization
 Service/2.Payment Capture Service)
 Select Custom method as 1.AIMCCAuth/2.AIMCCCapture

 It looks like we need to use AIMCCAuthCapture method, but I am not
 able to identify how to configure exactly.
 I configured Service Type: Payment Authorization Service with Custom
 method: AIMCCAuthCapture but it is working for admin login only.

 Thanks in advance.

 Regards
 Hemanth

 
 http://www.mindtree.com/email/disclaimer.html


--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
Systems Integrator.



Need Info on how to authorize and capture the payment for the order placed by the user instantly using Auth.net payment gateway

2009-10-24 Thread Hemanth Kumar Kanamarlapudi
Hi Users,

At present in Ofbiz after configuring authorize.net payment gateway for credit 
card payment processing,

If a customer purchases some thing from e-commerce using credit card, the 
credit card payment is just authorized but not captured.
Admin has to login into order manager application and then he has to capture 
the payment for that particular order.

I want to know is there any way to capture the money directly from users credit 
card while he is placing the order itself rather than admin logs into order 
manager application and captures the money from that credit card manually.

My Product Store settings for Payment (Credit card) in catalog application are 
as follows:
 Select Payment Method Type as Credit Card
 Select Service Type as  (1.Payment Authorization Service/2.Payment 
Capture Service)
 Select Custom method as 1.AIMCCAuth/2.AIMCCCapture

It looks like we need to use AIMCCAuthCapture method, but I am not able to 
identify how to configure exactly.
I configured Service Type: Payment Authorization Service with Custom method: 
AIMCCAuthCapture but it is working for admin login only.

Thanks in advance.

Regards
Hemanth


http://www.mindtree.com/email/disclaimer.html


Auth.Net payment configuration not available in accountmanager paymentgateway config tab

2009-09-24 Thread Hemanth Kumar Kanamarlapudi
Hi All,

There is a difference between the online demo in ofbiz and my local version 
which is ofbiz-release9.04 version for authorize.net payment gateway 
configuration. I am not able to find the configuration for authorize.net in my 
local application and data also not available in table Payment_Gateway_Config 
table. Can any one please clarify?

https://demo.ofbiz.org/accounting/control/FindPaymentGatewayConfig



Regards
Hemanth

-Original Message-
From: Anil Patel [mailto:anil.pa...@hotwaxmedia.com]
Sent: Thursday, September 24, 2009 1:11 PM
To: user@ofbiz.apache.org
Cc: Anil Patel
Subject: Re: Can payment be made without applying payment applications

Goto following screen,
https://demo.ofbiz.org/ap/control/newPayment

Regards
Anil Patel

On Sep 24, 2009, at 3:15 AM, aswath narayana wrote:

 Hello,
 I want to make an advance payment to a vendor.  It looks like one of
 the
 following is a must
 * Invoice
 * Billing account
 * Tax AuthId

 How can I make the payment?

 Thanks,
 -Aswath


http://www.mindtree.com/email/disclaimer.html


About Static Methods in Ofbiz

2009-09-09 Thread Hemanth Kumar Kanamarlapudi
Hi Users,

Can any one tell me the architectural reason why all the java methods are 
static and how these will be thread safe
Also any implications or the things we need to handle when we are using some 
third party java objects with out static methods from ofbiz static methods.

If any document about this is available please let me know the particular 
section or page number along with document url.

Thanks in advance.

Thanks  Regards
Hemanth


http://www.mindtree.com/email/disclaimer.html


Error while doing quick check out in Ecommerce application

2009-09-08 Thread Hemanth Kumar Kanamarlapudi
Hi Users,

I am trying to do a quick check out in Ecommerce application and facing the 
below error when clicking Submit Order after filling the credit card details.


Error calling event: org.ofbiz.webapp.event.EventHandlerException: Found URL 
parameter [cardType] passed to secure (https) request-map with uri 
[quickAnonEnterCreditCard] with an event that calls service [createCreditCard]; 
this is not allowed for security reasons! The data should be encrypted by 
making it part of the request body (a form field) instead of the request URL. 
Moreover it would be kind if you could create a Jira sub-task of 
https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task 
for this error does not exist). If you are not sure how to create a Jira issue 
please have a look before at http://docs.ofbiz.org/x/r. Thank you in advance 
for your help.


Steps to reproduce:
1.Go to Ecommerce Home Page
2. Select Some items and add to Cart
3. Click Quick Checkout
4. Page goes to Login Page and there also select Quick Chekout
5. Fill User details for quick check out
6. Goes to next page and there select payment type as Credit Card and fill 
credit card details
7. Select some shipping method type in the same page at right hand menu
8. Click Submit Order button in the same page at the end
9. then getting the above mentioned error.



Thanks  Regards
Hemanth


http://www.mindtree.com/email/disclaimer.html


please guide me to retrive decrypted user password from database which is stored in encrypted format

2009-08-26 Thread Hemanth Kumar Kanamarlapudi
Hi All,

Please guide me to decrypt the password from database which is stored in 
encrypted format.


Thanks in advance.


Regards
Hemanth



http://www.mindtree.com/email/disclaimer.html


RE: Any retry framework for Ofbiz ?

2009-08-26 Thread Hemanth Kumar Kanamarlapudi
Hi Kishore,

You can refer SchedularJobs.xml in party folder or SchedularServices.xml in 
framework.

entity-engine-xml
!-- create recurring job to check email communication events with the 
status COM_IN_PROGRESS to send these emails.. --
TemporalExpression tempExprId=SENDEMAIL tempExprTypeId=FREQUENCY 
integer1=12 integer2=5/
JobSandbox jobId=SENDEMAIL jobName=Send Email runTime=2000-01-01 
00:00:00.000 serviceName=sendEmailDated poolId=pool runAsUser=system 
tempExprId=SENDEMAIL maxRecurrenceCount=-1/
/entity-engine-xml


Regards
Hemanth

-Original Message-
From: Kishore Pagadala
Sent: Wednesday, August 26, 2009 4:46 PM
To: user@ofbiz.apache.org
Subject: Any retry framework for Ofbiz ?

Hi All,

Requirment: Need to call a third party service from OFBiz, if the service is 
not available I need to try it after every hour till we get a reply.

Do we have any retry framework provided by OFBiz ?
I want a third party service (maxmind Fraud detection, Authroize.net, Endicia ) 
to be probed with a given frequency.

Does the OFBiz framework supports this kind of retrying process ?

Regards,
Kishore



http://www.mindtree.com/email/disclaimer.html


Can any one guide me where we need to configure the required payment gateway.

2009-08-26 Thread Hemanth Kumar Kanamarlapudi
Hi all,

Can any one guide me where we need to configure the required payment gateway.
I want to configure authorize.net for my system.


Thanks  Regards
Hemanth


http://www.mindtree.com/email/disclaimer.html


Calling worker class method from simple event xml file and calling a service from that worker and returning back to the same simple event to call another service

2009-08-21 Thread Hemanth Kumar Kanamarlapudi
Hi All,

I need a suggestion for the following scenario:

I need to call two services for a particular request. One service is newly 
written java service which makes a http request to 3rd party server.
and another service is existing service from ofbiz which is called through a 
simple events xml file.

Now I need to call the first service which requires user ipaddress along with 
form entered parameters from existing simple events file which calls the second 
service.
user ip address which can be captured from request.getRemoteAddress field.

So from simple events xml file can I call a worker class method from which I 
will a service directly after processing required input parameters for that 
service and return back to the simple events file again to call the second 
service.

I am trying to co-related my scenario with LoginWorker.java  along with 
CustomerEvents.xml which calls doBasicLogin.

Also can any one tell me the difference in usage of worker java files, helper 
java files, event java files and event xml files.


Thanks in advance.

Regards
Hemanth


http://www.mindtree.com/email/disclaimer.html


RE: Need to make text field of date-time field in form widgets non editable

2009-08-13 Thread Hemanth Kumar Kanamarlapudi
Hi Anne,

Thanks for your reply.

Actually I want to make the text box non editable while input and want to allow 
the values to be populated only on the selection from calendar control of the 
date-time tag in form widget.

The tag you showed is useful when the date needs to be populated from the 
database or from server side.

Thanks  Regards
Hemanth



-Original Message-
From: Anne Jessel [mailto:a...@cohsoft.com.au]
Sent: Thursday, August 13, 2009 12:08 PM
To: user@ofbiz.apache.org
Subject: Re: Need to make text field of date-time field in form widgets non 
editable

Does this do what you want?

field name=fromDate
display type=date/
/field

Cheers,
Anne.

2009/8/13 Hemanth Kumar Kanamarlapudi hemanth_kanamarlap...@mindtree.com:
 Hi Users,

 Can any one help out if we can make the text field in date-time field used in 
 form widgets as non editable?

 Because of this I am forced to validate all the dates entered for valid check 
 in my events class.
 (eg: modified date from 12-01-2010 to 00-00-)

 Present usage:
 date-time type=date input-method=text//field

 Thanks in advance.

 Regards
 Hemanth


 
 http://www.mindtree.com/email/disclaimer.html




--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: sa...@cohsoft.com.au

http://www.mindtree.com/email/disclaimer.html


Need to make text field of date-time field in form widgets non editable

2009-08-12 Thread Hemanth Kumar Kanamarlapudi
Hi Users,

Can any one help out if we can make the text field in date-time field used in 
form widgets as non editable?

Because of this I am forced to validate all the dates entered for valid check 
in my events class.
(eg: modified date from 12-01-2010 to 00-00-)

Present usage:
date-time type=date input-method=text//field

Thanks in advance.

Regards
Hemanth



http://www.mindtree.com/email/disclaimer.html


Entity Changes for column definition Not Reflecting in DB

2009-08-10 Thread Hemanth Kumar Kanamarlapudi
Hi Users,

Can any one please tell me the reason why the changes in my entity definition 
are not reflected in the database.

For example I have a cardNumber which is earlier Numeric/Integer in 
entitymodel.xml as well as in database.

Now I changed  cardNumber to Name/String type in entitymodel,xml and restarted 
ofbiz server. The change is not reflected in database.

I am using MySQL database.

Thanks in Advance.

Regards,
Hemanth




http://www.mindtree.com/email/disclaimer.html


RE: Access html page from controller.xml

2009-08-05 Thread Hemanth Kumar Kanamarlapudi
Hi Pradeep,

Try 1:
Include
  include 
location=component://common/webcommon/WEB-INF/common-controller.xml/

In your controller.xml

There you have jsp handler

handler name=jsp type=view class=org.ofbiz.webapp.view.JspViewHandler/

So you can write simple html inside jsp itself and use it for html with out 
having dynamic content.


Try 2 :

In controller.xml

request-map uri=login
  response name=success type=view value=htmlscreen/
/request-map
  view-map name=htmlpage type=screen 
page=component://componentname/widget/YourScreens.xml#htmlscreen /


In YourScreens.xml
  screen name=htmlpage
section
widgets
platform-specific
html
  html-template 
location=component://componentfoldername/webapp/componentname/HtmlPage.html/
  /html
  /platform-specific
/widgets
/section
/screen


Regards
Hemanth

-Original Message-
From: pardeep.ru...@lntinfotech.com [mailto:pardeep.ru...@lntinfotech.com]
Sent: Wednesday, August 05, 2009 12:23 PM
To: user@ofbiz.apache.org
Subject: Access html page from controller.xml

Hi,
I want to call a html page from controller.xml. Is there handler for
rendering html pages in OFBiz.
Please help  me how to do this.
Thanks  Regards

Pardeep Ruhil


__

http://www.mindtree.com/email/disclaimer.html


RE: Access html page from controller.xml

2009-08-05 Thread Hemanth Kumar Kanamarlapudi
Try to change the extension as .ftl or .jsp and see

-Original Message-
From: pardeep.ru...@lntinfotech.com [mailto:pardeep.ru...@lntinfotech.com]
Sent: Wednesday, August 05, 2009 2:08 PM
To: user@ofbiz.apache.org
Subject: RE: Access html page from controller.xml

Hi
Thanks for your reply. But when i followed your second try: I got this
exception:



org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.IllegalArgumentException: Rendering not yet supported for the
template at location: component://drools/webapp/drools/setup/hello.html
(Rendering not yet supported for the template at location:
component://drools/webapp/drools/setup/hello.html)


Thanks  Regards

Pardeep Ruhil
LT Infotech Ltd
Mumbai
Ph: +919820283884

Larsen  Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

LT Infotech Proprietary   LT Infotech Confidential   LT Infotech
Internal Use Only   LT Infotech General Business

This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.



Hemanth Kumar Kanamarlapudi hemanth_kanamarlap...@mindtree.com
08/05/2009 12:38 PM
Please respond to
user@ofbiz.apache.org


To
user@ofbiz.apache.org user@ofbiz.apache.org
cc
pardeep.ru...@lntinfotech.com pardeep.ru...@lntinfotech.com
Subject
RE: Access html page from controller.xml






Hi Pradeep,

Try 1:
Include
  include
location=component://common/webcommon/WEB-INF/common-controller.xml/

In your controller.xml

There you have jsp handler

handler name=jsp type=view
class=org.ofbiz.webapp.view.JspViewHandler/

So you can write simple html inside jsp itself and use it for html with
out having dynamic content.


Try 2 :

In controller.xml

request-map uri=login
  response name=success type=view value=htmlscreen/
/request-map
  view-map name=htmlpage type=screen
page=component://componentname/widget/YourScreens.xml#htmlscreen /


In YourScreens.xml
  screen name=htmlpage
section
widgets
platform-specific
html
  html-template
location=component://componentfoldername/webapp/componentname/HtmlPage.html/
  /html
  /platform-specific
/widgets
/section
/screen


Regards
Hemanth

-Original Message-
From: pardeep.ru...@lntinfotech.com [mailto:pardeep.ru...@lntinfotech.com]
Sent: Wednesday, August 05, 2009 12:23 PM
To: user@ofbiz.apache.org
Subject: Access html page from controller.xml

Hi,
I want to call a html page from controller.xml. Is there handler for
rendering html pages in OFBiz.
Please help  me how to do this.
Thanks  Regards

Pardeep Ruhil


__

http://www.mindtree.com/email/disclaimer.html

__



__

http://www.mindtree.com/email/disclaimer.html