Dear Pranay,
The document shared by you for the beginner looks very good to me.
Thank you for hard work , I appreciate your efforts :).
On Thu, Jun 12, 2008 at 12:46 AM, Pranay Pandey <[EMAIL PROTECTED]>
wrote:
> Hello Edson,
>
> Thanks for this.
> I have uploaded the new zip file for the source now try this.
> BTW for your problem you can recheck the ofbiz-component.xml file. It seems
> your component is not loaded.
> Always go through the log on consol, thats the best place to find the
> problem and make practice of it. This will really help you in understanding
> things. If your component is loaded properly then you will get message over
> consol like :
> 2008-06-12 09:45:34,573 (main) [ ComponentContainer.java:157:INFO ]
> Auto-Loading component directory :
> [${ofbizHome}/hot-deploy]
> 2008-06-12 09:45:34,631 (main) [ UtilXml.java:241:INFO ] XML
> Read
> 0.032s: file:/${ofbizHome}/hot-deploy/practice/ofbiz-component.xml
> 2008-06-12 09:45:34,632 (main) [ ComponentContainer.java:216:INFO ] Loading
> component : [practice]
> 2008-06-12 09:45:34,669 (main) [ ComponentContainer.java:126:INFO ] All
> components loaded
>
> Check this out :)
>
>
> Regards
> --
> Pranay Pandey
>
>
> On Wed, Jun 11, 2008 at 8:52 PM, Edson Chavez <[EMAIL PROTECTED]>
> wrote:
>
> > hi Pranay tnx for reply
> >
> > first place tnx by the work!!!! :)
> >
> > y tried download the zip but is a 93.4 Kb size, is right? i try download
> it
> > 9 times and always i receive a corrupted File :(
> >
> > i say and my earlier message:
> >
> > i follow the steps 1 to 11 detailed in the
> > "Creating the web app" section of the
> > tutorial<http://docs.ofbiz.org/pages/editpage.action?pageId=4432>and
> > when i start ofbiz and i put the addres
> > https://localhost:8443/practice/control/main
> >
> > and load a blank page, when i put
> > http://localhost:8443/practice/control/main i receive a download dialog
> > for
> > a main file. i'm curious and downlad it but is only 6 specials characters
> > file and no data nor "first practice" message i don't know what is wrong
> > with my files :(
> >
> > somebody, know what happened or can fix the zip file for download ?
> >
> > regards
> > Edson
> >
> >
> >
> > 2008/6/11 Pranay Pandey <[EMAIL PROTECTED]>:
> >
> > > Hi Edson,
> > > Your question is not clear. Please be verbose when you are asking
> > > questions.
> > > BTW there is one zip file of source is also attached with this you can
> > take
> > > a reference from that.
> > >
> > > Thanks & Regards
> > > --
> > > Pranay Pandey
> > >
> > >
> > > On Wed, Jun 11, 2008 at 3:38 AM, Edson Chavez <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > thnx by effort but i have a problem i follow the steps in
> > > >
> > > > "Creating the web app on the back end" but when i try charge
> aplication
> > i
> > > > cant see nothing only especial characters :
> > > >
> > > > somebody have same result?
> > > >
> > > > regards
> > > >
> > > > Edson
> > > >
> > > > 2008/6/6 RolandH <[EMAIL PROTECTED]>:
> > > >
> > > > > Hi Pranay,
> > > > >
> > > > > thanks for your answer, after this mail i found my real solution:
> > > > >
> > > > > Map createPartyEmailAddressMap =
> > > > > UtilMisc.toMap(
> > > > > "emailAddress", context.get("emailAddress"),
> > > > > "contactMechPurposeTypeId", "PRIMARY_EMAIL",
> > > > > "userLogin", context.get("userLogin")
> > > > > );
> > > > > userLogin holds the actual user, if I read existing code correctly.
> > > > >
> > > > > Thanks for your help,
> > > > > Roland
> > > > >
> > > > >
> > > > > Pranay Pandey wrote:
> > > > >
> > > > >> I hope this will be of help.
> > > > >> The service you are calling is createPartyEmailAddress requires
> > > > >> authentication so you need to send the userLogin value to it.
> > > > >> Something like this:
> > > > >>
> > > > >> // perform actions as the system user
> > > > >> GenericValue userLogin =
> > > > >> delegator.findByPrimaryKeyCache("UserLogin",
> > > > UtilMisc.toMap("userLoginId",
> > > > >> "system"));
> > > > >>
> > > > >> input = UtilMisc.toMap("userLogin", userLogin,
> > > > "emailAddress",
> > > > >> email, "partyId", "_NA_", "fromDate", fromDate,
> > > > >> "contactMechPurposeTypeId",
> > > > >> "OTHER_EMAIL");
> > > > >> Map serviceResults =
> > > > >> dispatcher.runSync("createPartyEmailAddress", input);
> > > > >> if (ServiceUtil.isError(serviceResults)) {
> > > > >> throw new
> > > > >>
> > GenericServiceException(ServiceUtil.getErrorMessage(serviceResults));
> > > > >> }
> > > > >>
> > > > >>
> > > > >
> > > >
> > >
> >
>
--
Regards
Alex D. Fleming