Database transaction

2008-04-28 Thread acec acec
In my controller.xml, I defined the following request-map, which event type is java. In my editResourceHeaderList function, I will remove old record and create a new record. How can I make sure two steps in one database transaction? GenericValue oldResourceHeaderList = delegator.findByP

return my parameters

2008-04-25 Thread acec acec
Hi, I have the following request mapping in my controller.xml. = = One of my freemarker file has a url link like: <@ofbizUrl>RemoveIt?id=11&view=10" When I click that link, it will call removeIt

reset some of field

2008-04-18 Thread acec acec
In my controller.xml, I have two request-maps, addtest will show the form, when I submit that form, it will call createArdenTest. In my createArdenTest(), I did some validations, when I return an error with type="request-redirect", it will keep my input information on that form, it is nice. But if

where is the best place of validation?

2008-04-17 Thread acec acec
Hi, After I read "Best Practices Guide", I still have a question: "where is the best place of validation?" I found "Another good example is doing special pre-processing and validation on parameters before passing them to a service for processing" in that guide, so the validation should not be a pa

Re: ofbiz security

2008-04-16 Thread acec acec
After I create a new permission(Permission ID = HELLOP1_VIEW) instead of previous one, I can login as hellologin user. Thanks. --- acec acec <[EMAIL PROTECTED]> wrote: > I added Permission(Permission ID = HELLOP1) into > SecurityGroup(ID = hello1admin), then I added > base-perm

Re: ofbiz security

2008-04-16 Thread acec acec
> the other half of permissions and roles is on the > Hello page you created > if you want only certain permissions and or roles to > use the page you > need to add those permission to the helloworld page. > > you can look at widgets and ftls to see how > permissions are us

Re: ofbiz security

2008-04-16 Thread acec acec
I do ? Thanks a lot. --- acec acec <[EMAIL PROTECTED]> wrote: > I am using ofbiz from ofbiz/branches/release4.0 > > I did the following steps: > > 1: Created a New Person(First Name = hellouser / > Last > Name = hellouser) from Party Manager Application. > > 2: In

Re: ofbiz security

2008-04-16 Thread acec acec
er4.0) and the > latest version. > you have two things to add. > the login is part of a party. So you have create a > party then the login, > then the security. > second you have to add the security level to your > hello1. > you can look at code in the widgets and ftls that >

ofbiz security

2008-04-16 Thread acec acec
Hi, I finished Hello World 1 from http://www.opensourcestrategies.com/ofbiz/tutorials.php I tried some security functions on hello3. -step 1--- I added as following: When I access http://localhost:8080/hello1/control/main, I saw the login form. After I log