Re: Beanshell

2012-07-23 Thread G.Ben
Helloo, I found another Error,

Actually I'm trying to run a beanshell script that allows me to run another
script to access entities (according to a tutorial), I did all what they
said however when trying to visualize the URL I get the following error :
(The URL first show a field when I enter the script that I would run, trying
to click on submit I get an error)

"org.ofbiz.webapp.control.RequestHandlerException: Unknown request
[processEntityAccessBSF]; this request does not exist or cannot be called
directly."



here are the files that are involved in this operation : 

"processEntityAccessBSF.bsh" it's described above,

"test.bsh"
data = delegator.findAll("PostalAddress");

"Learning Screens.xml"








































"LearningForms.xml"





"displaydataretrieved.ftl"
<#if errorMsg?has_content>
${errorMsg}

<#else>
Processed script: "${parameters.scriptName}"

<#if data?has_content && (data?is_sequence || data?is_hash)>

<@displayData data=data/>

<#else>
No data records retrieved.



<#macro displayData data>
<#if data?is_sequence>
<#assign keys = data?first?keys/>
<#else>
<#assign keys = data?keys/>

<#-- Header -->

<#list keys as key>
*${key}*


<#-- Data -->
<#if data?is_sequence>
<#list data as record>

<#list keys as key>
${record[key]!""}



<#else>

<#list keys as key>
${data[key]!""}







"controller.xml" 









Anyhelp please, 
I appreciate


Thank you.


Regards.






--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Beanshell-tp4635129p4635148.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Beanshell

2012-07-23 Thread G.Ben
Thank you so much Robert G.

I couldn't understand the error message.

Thank you again.

Regards.




--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Beanshell-tp4635129p4635145.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Beanshell

2012-07-22 Thread G.Ben
When trying to see the URL, I get the following error message : 


org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://learning/widget/learning/LearningScreens.xml#ProcessEntityAccessBSF]:
java.lang.IllegalArgumentException: Error running script at location
[component://learning/webapp/learning/WEB-INF/actions/entityaccess/processEntityAccessBSF.bsh]:
javax.script.ScriptException: Sourced file: eval stream : Attempt to resolve
method: length() on undefined variable or class name: scriptName : at Line:
4 : in file: eval stream : scriptName .length ( ) 
in eval stream at line number 4 (Error running script at location
[component://learning/webapp/learning/WEB-INF/actions/entityaccess/processEntityAccessBSF.bsh]:
javax.script.ScriptException: Sourced file: eval stream : Attempt to resolve
method: length() on undefined variable or class name: scriptName : at Line:
4 : in file: eval stream : scriptName .length ( ) 
in eval stream at line number 4)

Thanks  for replying



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Beanshell-tp4635129p4635131.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Beanshell

2012-07-22 Thread G.Ben
Hello everyone,

Please, can anyone tell me what is wrong with this script ? 

import org.ofbiz.base.location.FlexibleLocation;
import freemarker.ext.beans.BeansWrapper;
String scriptName = request.getParameter("scriptName");
if (scriptName == null || scriptName.length() == 0) {
return "success";
}
String lookInLocation =
"component://learning/webapp/learning/WEB-INF/actions/entityaccess/";
URL location = FlexibleLocation.resolveLocation(lookInLocation +
scriptName);
if (location == null) {
context.put("errorMsg", "Script name \"" + scriptName + "\" not found at " +
lookInLocation);
return "success";
}
source(location);
bw = BeansWrapper.getDefaultInstance();
bw.setSimpleMapWrapper(true);
Object massaged;
if (data instanceof List) {
massaged = new ArrayList();
dataItr = data.iterator();
while (dataItr.hasNext()) {
record = (Map) dataItr.next();
massaged.add(bw.wrap(record));
}
}
else if (data instanceof Map) {
massaged = bw.wrap(data);
}
if (massaged != null) {
context.put("data", massaged);
}
return "success";



Thank you so much for your help,

Regards.



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Beanshell-tp4635129.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors with JAava code in OFBiz

2012-07-19 Thread G.Ben
Hi Again,

Thanks so much, i was struggling with the import ...
I did the build and it worked perfectly 
Thank you so much.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Errors-with-JAava-code-in-OFBiz-tp4635012p4635039.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors with JAava code in OFBiz

2012-07-19 Thread G.Ben
Hello Prabhakar Pandey,

excuse me but I don't think that I've understood what you meant,

I've already been working with same file in the method "processFirstForm"
and it did work, when trying to work with "processMultiForm" there are
errors there.

Thank you for your help.

Regards.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Errors-with-JAava-code-in-OFBiz-tp4635012p4635036.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors with JAava code in OFBiz

2012-07-19 Thread G.Ben
Hello devalpatel,

Thank you for your help,

I've already added the import.
Actually I'm working with JDK 1.6 & OFBiz 12.04
And here is the full java class code : 

package org.ofbiz.learning.learning;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.ofbiz.base.util.UtilHttp;
import org.ofbiz.party.contact.ContactMechWorker;

public class LearningEvents 
{
public static String postalAddressAdvisory(HttpServletRequest request,
HttpServletResponse response)
{
String partyId = request.getParameter("partyId");
Map mechMap = new HashMap();
ContactMechWorker.getContactMechAndRelated(request, partyId, 
mechMap);
Map postalAddress = (Map)mechMap.get("postalAddress");
if (postalAddress == null) return "notMars";
String planet = (String)postalAddress.get("planet");
if (planet == null || !planet.equalsIgnoreCase("Mars"))
return "notMars";
return "isMars";
}

public static String processFirstForm(HttpServletRequest request,
HttpServletResponse response){
String firstName = request.getParameter("firstName");
String lastName = request.getParameter("lastName");
request.setAttribute("combined", firstName + " " + 
lastName);
request.setAttribute("allParams", 
UtilHttp.getParameterMap(request));
request.setAttribute("submit", "Submitted");
return "success";
}

public static String processMultiForm (HttpServletRequest request,
HttpServletResponse response){
Collection parsed = UtilHttp.parseMultiFormData
(UtilHttp.getParameterMap(request));
List combined = new ArrayList();
Iterator parsedItr = parsed.iterator();
while (parsedItr.hasNext()) {
Map record = (Map)parsedItr.next();
combined.add(record.get("firstName") + " " + 
record.get("lastName"));
}
request.setAttribute("combined", combined);
request.setAttribute("allParams",
UtilHttp.getParameterMap(request));
request.setAttribute("submit", "Submitted");
return "success";
}
}


I appreciate your help so much.

Regards.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Errors-with-JAava-code-in-OFBiz-tp4635012p4635035.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Errors with JAava code in OFBiz

2012-07-18 Thread G.Ben
Hi All,

i've been following a tutoriel and once entered this Java Code 
public static String processMultiForm (HttpServletRequest request,
HttpServletResponse response){
Collection parsed = UtilHttp.parseMultiFormData
(UtilHttp.getParameterMap(request));
List combined = new ArrayList();
Iterator parsedItr = parsed.iterator();
while (parsedItr.hasNext()) {
Map record = (Map)parsedItr.next();
combined.add(record.get("firstName") + " " +
record.get("lastName"));
}
request.setAttribute("combined", combined);
request.setAttribute("allParams",
UtilHttp.getParameterMap(request));
request.setAttribute("submit", "Submitted");
return "success";
}

with Eclipse IDE, it helped to recognise errors (about cast), I correct
them,
public static String processMultiForm (HttpServletRequest request,
HttpServletResponse response){
Collection parsed = (Collection) 
UtilHttp.parseMultiFormData
(UtilHttp.getParameterMap(request));
List combined = (List) new ArrayList();
Iterator parsedItr = (Iterator)
((java.util.Collection>) parsed).iterator();
while (((java.util.Iterator>)
parsedItr).hasNext()) {
Map record = (Map)((java.util.Iterator>)
parsedItr).next();
combined.add(record.get("firstName") + " " +
record.get("lastName"));
}
request.setAttribute("combined", combined);
request.setAttribute("allParams",
UtilHttp.getParameterMap(request));
request.setAttribute("submit", "Submitted");
return "success";
}
 however errors still remain.
Please can anyone give me the correct code that I should put

Thank you so much for your help.

Regards.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Errors-with-JAava-code-in-OFBiz-tp4635012.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Form widgets and entities

2012-06-08 Thread G.Ben
Thank you,

I've tried it, but it looks messy, I need to fix it manually  think by
classes and id ? 

Rgds.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Form-widgets-and-entities-tp4633328p4633361.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Form widgets and entities

2012-06-07 Thread G.Ben
Thank you Dhiraj,

Please how can I use existing CSS Themes included in Ofbiz in my application
? 

Rgds.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Form-widgets-and-entities-tp4633328p466.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Form widgets and entities

2012-06-07 Thread G.Ben
Hi everyone,

Please I need help for manipulating entities with form widgets I've searched
through tutorials and I didn't understand much, it's not clear enough for
me.

What I need to know is : 
- Using form widgets to list entities from database and allow the user to
update or delete them.
- Adding entities that were entered by the user, to the database.
- Are there already services that we can invoke from OFBiz
(create,update,delete) ? and do we use those services to manipulate entities
in form widgets ? And how do we do that.

Please if it's possible, I want it really detailed, each step, ( for example
: from information entered by user and treating it with form widgets,
registring it to database ) 

If someone would like to help me, this is my email g.benabdel...@gmail.com,
if he/she would like to go on private to help me.

Thank you for your help.

Regards.

G.Ben.


--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Form-widgets-and-entities-tp4633328.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Form widgets and entities

2012-06-07 Thread G.Ben
Hi everyone,

Please I need help for manipulating entities with form widgets I've searched
through tutorials and I didn't understand much, it's not clear enough for
me.

What I need to know is : 
- Using form widgets to list entities from database and allow the user to
update or delete them.
- Adding entities that were entered by the user, to the database.
- Are there already services that we can invoke from OFBiz
(create,update,delete) ? and do we use those services to manipulate in form
widgets ? And how do we do that.

Please if it's possible, I want it really detailed, each step, ( for example
: from information entered by user and treating it with form widgets,
registring it to database ) 

If someone would like to help me, this is my email g.benabdel...@gmail.com,
if he/she would like to go on private to help me.

Thank you for your help.

Regards.

G.Ben.


--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Form-widgets-and-entities-tp4633327.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: automatic

2012-06-06 Thread G.Ben
Oh yes, I forgot about that command, thank you so much :)

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/automatic-tp4633291p4633293.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


automatic

2012-06-06 Thread G.Ben
Hello all ,

developping application from scratch, is there a way to genearete some xml
files automatically ? ... or all screens, css, widgets , etc ... by hand ? 

Thank you for your help.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/automatic-tp4633291.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Make file in attachment in form widget

2012-06-05 Thread G.Ben
Thank you, 

It was really helpful.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Make-file-in-attachment-in-form-widget-tp4633253p4633255.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Make file in attachment in form widget

2012-06-05 Thread G.Ben
Hi,

Is it possible to make a file in attachment in a form widget ? 

If it's a yes, please how to do that, and what are the extensions available,
and how we can limit the extensions and size of the file.

Thank you.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Make-file-in-attachment-in-form-widget-tp4633253.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Adding calendar/Radio button to a form widget

2012-06-04 Thread G.Ben
Thank you,

I'm working with it.



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Adding-calendar-Radio-button-to-a-form-widget-tp4633145p4633196.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ __ PostgreSQL

2012-06-04 Thread G.Ben
Thank you all for your help,

It worked finally.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-PostgreSQL-tp4632713p4633195.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Ui Labels

2012-06-04 Thread G.Ben
Hi everyone, 

I was wondering if I could realise an application without Ui Labels because
I'm just using one language.

Thank you for your help.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Ui-Labels-tp4633193.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Adding calendar to a form widget

2012-06-04 Thread G.Ben
Thank you, 

I think that I'm working with 10.04 and I'm going to work with 12.04 so is
it a good version ? 

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Adding-calendar-Radio-button-to-a-form-widget-tp4633145p4633192.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Menu and submenu widget

2012-06-04 Thread G.Ben
Hi, 

Thanks a lot.

Regards.

G.Ben

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Menu-and-submenu-widget-tp4632872p4633183.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Adding calendar to a form widget

2012-06-04 Thread G.Ben
Yeah, 

That's exactly what's happening to me.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Adding-calendar-Radio-button-to-a-form-widget-tp4633145p4633179.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Adding calendar to a form widget

2012-06-04 Thread G.Ben
Thank you all for your replies,

Arun Kumar Batham I did it, but it doesn't work, when I click at the
calendar to select a date, nothing appears at all, Should I add something
like Javascript ? 

Thank you.

G.Ben. 



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Adding-calendar-Radio-button-to-a-form-widget-tp4633145p4633164.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Adding calendar to a form widget

2012-06-03 Thread G.Ben
Hi everyone,

Is it possible to add a calendar in a widget form ? 
I want to include it in order to let the user select a date from it,


[This is not included in the form widgets]
And also I want to display a calendar with informations in it, 
Do I need to write the code for the whole calendar ? 

Anyhelp ?? 

Thank you.

Regards.

G.Ben.


--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Adding-calendar-to-a-form-widget-tp4633145.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Menu and submenu widget

2012-06-03 Thread G.Ben
Hi, 

It's me again, I'm trying to use a submenu but It's not working well, 
when I click on the menu-item it leads me to another page where my submenu
is there.
So the thing that I want is  : Once I click on the menu-item, the submenu
will be displayed automatically near to it ( I've tried to do an horizontal
menu but When searching about it, I found that I should do it with CSS)

So any help guys ?? 

Thank you.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Menu-and-submenu-widget-tp4632872p4633119.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Build error

2012-06-01 Thread G.Ben
Hi, 

I'm trying to build my app,

I've copied the build file from another application and just change the
names with my the one of my application "CGA" 
So I've got the following build error : 
Buildfile: C:\OFBiz\hot-deploy\CGA\build.xml
init:
prepare:
classes:

BUILD FAILED
C:\OFBiz\common.xml:91: java.lang.UnsupportedClassVersionError:
com/sun/tools/javac/Main : Unsupported major.minor version 51.0

Thank you for your help.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Build-error-tp4632937.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Title

2012-06-01 Thread G.Ben
Hi, 

I followed a few steps with OFBiz developper Guide, 
The idea is to split the header into two in order to make a dynamic title,
So, when I put my title etc ... it works but as you can see in the following
image there's extra text that I don't where it came from.
http://ofbiz.135035.n4.nabble.com/file/n4632926/Capture.png 

Thank you for your help.

Regards.

G.Ben

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Title-tp4632926.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Tips or a cookbook

2012-06-01 Thread G.Ben
Wow a year, that seems a long time.
Well, thank you BJ Freeman.

Rgrds.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Tips-or-a-cookbook-tp4632835p4632923.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: app

2012-06-01 Thread G.Ben
Okay :D :D Because I found it quite hard to learn all the basics in a really
short time.

Thank you so much for your help.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/app-tp4632918p4632922.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


app

2012-06-01 Thread G.Ben
Hi everyone,

I was wondering if I can develop a whole application with just HTML
(Freemarker template) and without any script of Freemarker and also without
formwidgets, or menu widgets, 
Everything in the interface will be in HTML, so it possible ? 
Advantages and inconvenients ? 

Thank you.

Regards.

G.Ben

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/app-tp4632918.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Menu and submenu widget

2012-06-01 Thread G.Ben
Thank you for your help :) 
It did work with my application.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Menu-and-submenu-widget-tp4632872p4632914.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Tips or a cookbook

2012-06-01 Thread G.Ben
Hi,

Thank you Mike & Nakul for your help, I actually have those books and was
looking for extra information, because I don't have enough time to read them
all. Despite, I agree that they help me a lot.

Thank you again.

Regards.

G.ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Tips-or-a-cookbook-tp4632835p4632902.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Menu and submenu widget

2012-06-01 Thread G.Ben
Hi, 

Thank you Nick Rosser for your help, but I'm actually developping a RH
application. 

Thank you Pravin Patil I've already tried the tutorial, but I don't know why
the menu item "main" doesn't appear with the others !! 

Thank you again for your help. 

Regards. 

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Menu-and-submenu-widget-tp4632872p4632901.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Tips or a cookbook

2012-06-01 Thread G.Ben
Hi,

Thank you Mike Z for your help, but I'm actually developping a RH
application.

Thank you Nakul I've already tried the tutorial, but I don't know why the
menu item "main" doesn't appear with the others !!

Thank you again for your help.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Tips-or-a-cookbook-tp4632835p4632899.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Menu and submenu widget

2012-05-31 Thread G.Ben
Hi,

I'm looking for help about creating menus and submenus widget.
please can you tell me all the steps to follow detailed.

Thank you for your help.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Menu-and-submenu-widget-tp4632872.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ __ PostgreSQL

2012-05-31 Thread G.Ben
Hi Dhiraj Gupta,

I will try the steps and see what I'll get.

Thank you so much for your help.

Regards.

G.Ben.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-PostgreSQL-tp4632713p4632837.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ __ PostgreSQL

2012-05-31 Thread G.Ben
Hi Arun Kumar Batham, 

I've already typed the command and above, you can see that build has failed
... 

Thank you.

Regards.

G.Ben

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-PostgreSQL-tp4632713p4632836.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Tips or a cookbook

2012-05-31 Thread G.Ben
Hi everyone,

I'm having some issues with OFBiz and its tutorials, it's not quite enough
for me, because I'm developping a real application with it, 
So, I need to know the syntax of that language, for example : the ui labels
how and what do we use them for ? a HTML page without Ui labels should it be
enough ??
And the form widget, what is syntax that we should follow (for example : to
put an image ? to put a file in attachement etc ... ) 
And for style, do we always use CSS, if yes, is it like CSS with HTML ...
I have a few knowledge about OFBiz and i'm really struggling with it ... I
keep googling and I don't find simple things.

P.S : Excuse me if my english is not that good.

Thank you for your help.

Regards.

G.Ben

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Tips-or-a-cookbook-tp4632835.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Entity error

2012-05-30 Thread G.Ben
I've changed it and I still get the same error 

Thank you

Regards.

G.Ben

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632796.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Entity error

2012-05-30 Thread G.Ben
Okay I'll fix it, Excuse my few knowledge, For what the ofbiztenant is useful
? 

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632795.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ __ PostgreSQL

2012-05-30 Thread G.Ben
I've already tried this website  http://www.toivari.com/devblog/page/2/
http://www.toivari.com/devblog/page/2/  and I've just had 852 tables for the
ofbie database and 0 tables for ofbizolap and ofbiztenant databse.
Now when I checked entityengine.xml I've noticed that it has been changed
-_-" So I followed your steps above and that was the error message that I've
got.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-PostgreSQL-tp4632713p4632793.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Entity error

2012-05-30 Thread G.Ben
Hi,

This is my entityengine.xml file 

http://ofbiz.135035.n4.nabble.com/file/n4632792/entityengine.png 

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632792.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ __ PostgreSQL

2012-05-30 Thread G.Ben
Hello Arun Kumar Batham,

I followed the steps but however ... I get errors at the console 
http://ofbiz.135035.n4.nabble.com/file/n4632791/postgres.png 

Thank you for your help.





--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-PostgreSQL-tp4632713p4632791.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Entity error

2012-05-30 Thread G.Ben
I did that, and it's correct, well I don't know ! :D 
Here is the image : 
http://ofbiz.135035.n4.nabble.com/file/n4632781/Capture3.png 

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632781.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Entity error

2012-05-30 Thread G.Ben
Hi, 

I have a problem with the entity-model. I've created the 2 files
"entitymodel.xml" and "entitygroup.xml". 
When I put "
 " in the file ofbiz-component.xml and
restart OFBiz, I get an error at the console of Windows you can see it at
the attachements.
http://ofbiz.135035.n4.nabble.com/file/n4632779/Capture.png 
http://ofbiz.135035.n4.nabble.com/file/n4632779/capture2.png 

Well, I'm sure that the error is coming from adding "entity-ressource ..."
because when I remove it works but I need to see the entities that I
defined. 

Thank you for your help !

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


OFBIZ __ PostgreSQL

2012-05-29 Thread G.Ben
Hi, 

I'm looking for some help about migrating from ofbiz derby database to
postgresql database, and also how to create and set data directly from
postgresql without having to pass by derby. 
According to tutorials that I have, I can't find how they get connected to
another database (postgres in my case) and defining entities there, and keep
developing the application. 

P.S : * I'm using Eclipse IDE 
   * I'm just a beginner in ofbiz so I have just few knowledge about the
OFBiz environement. 

Thank you for you help :)

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-PostgreSQL-tp4632713.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBiz tutorial

2012-05-28 Thread G.Ben
Thank you, I've tried it and somehow it works but there are still steps that
I don't fully understand like the one about the personForm and the Ui Labels 

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBiz-tutorial-tp4632578p4632679.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


OFBiz tutorial

2012-05-28 Thread G.Ben
Hello everyone, 
I'm looking for help please 
I'm working with the OFBiz tutorial at this 
http://www.opensourcestrategies.com/ofbiz/tutorials.php website . 
for the 1st step wich is HelloWorld1 it doesn't work :( and for the 2nd one
too ( Helloworld2)
 for the last one i get the following error when i type :
localhost:8080/hello2/control/main
 "Error rendering included template at location
[component://hello2/webapp/hello2/includes/header.ftl]:
java.lang.IllegalArgumentException: FreeMarker file not found at location:
component://hello2/webapp/hello2/includes/header.ftl Error rendering
included template at location
[component://hello2/webapp/hello2/includes/main.ftl]:
java.lang.IllegalArgumentException: FreeMarker file not found at location:
component://hello2/webapp/hello2/includes/main.ftl Error rendering included
template at location [component://hello2/webapp/hello2/includes/footer.ftl]:
java.lang.IllegalArgumentException: FreeMarker file not found at location:
component://hello2/webapp/hello2/includes/footer.ftl "
 
Any help please 

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBiz-tutorial-tp4632578.html
Sent from the OFBiz - User mailing list archive at Nabble.com.