Hi, Actually good not understand what step you suggested and what should I try.
Sorry. Thanks. SELC Sales Div wrote: > > Hi Shuchi, > > Sorry, I thought that you try my step - I have sent it to you. > Never mind... > > - Charles TJ > > =============== > > > -----Original Message----- > From: su2 [mailto:[email protected]] > Sent: 26 Juni 2009 21:46 > To: [email protected] > Subject: RE: Component not loading > > > > Sorry SELC, > > I could not understand your suggestion. > > Shouldn't view map be > > <view-map name="main" type="screen" > page="component://practice/widget/PracticeScreens.xml#main"/> > > OR you are suggesting me to have like following > > <view-map name="main" type="screen" > page="component:/practice/widget/PracticeScreens.xml#main"/> > > Please advise. > > Thank you. > > > SELC Sales Div wrote: >> >> Hi Shuchi, >> >> Sorry I mean to /Practice/Widget/Practice/PracticeScreens.xml#main >> >> ---- >> >> I saw that your view-map it is not pointing >> to = "component://practice/widget/Practice/PracticeScreens.xml#main" >> >> >> Please Check ? >> >> - Charles TJ >> >> ======== >> >> -----Original Message----- >> From: su2 [mailto:[email protected]] >> Sent: 26 Juni 2009 20:28 >> To: [email protected] >> Subject: Re: Component not loading >> >> >> >> Hi Ashish, >> >> Following is my controller.xml. >> >> ************************ >> <?xml version="1.0" encoding="UTF-8"?> >> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd"> >> <include >> location="component://common/webcommon/WEB-INF/common-controller.xml"/> >> <description>Practice Component Site Configuration >> File</description> >> <owner>Copyright 2001-2008 The Apache Software Foundation</owner> >> <handler name="screen" type="view" >> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/> <!-- >> Request >> Mappings --> >> <request-map uri="main"> >> <security https="false" auth="false"/> >> <response name="success" type="view" value="main"/> >> </request-map> >> <!-- end of request mappings --> >> <!-- View Mappings --> >> <view-map name="main" type="screen" >> page="component://practice/widget/PracticeScreens.xml#main"/> >> <!-- end of view mappings --> >> </site-conf> >> ************************ >> >> And Following is my PracticeScreens.xml >> >> ************************ >> <?xml version="1.0" encoding="UTF-8"?> >> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xs >> d"> >> <screen name="main"> >> <section> >> <widgets> >> <label text="This is first practice"/> >> </widgets> >> </section> >> </screen> >> </screens> >> >> ************************ >> >> >> >> Ashish Nagar wrote: >>> >>> Hi, >>> >>> What made you thinking that your component is not loaded? Also have you >>> done request and view mapping in the controller.xml? If all is correct >>> make sure that the screen name, you have mentioned in controller.xml is >>> consistent with the one you defined in PracticeScreens.xml >>> >>> Thanks, >>> -- >>> Ashish Nagar >>> >>> su2 wrote: >>>> Hi All, >>>> >>>> I have added a new component under hot-deploy named practice. >>>> >>>> I added ofbiz-component.xml file with location="webapp/practice" and >>>> mount-point="/practice" >>>> >>>> I added practice>webapp>practice>WEB-INF>controller.xml & web.xml >>>> >>>> I added practice>widget>PracticeSreens.xml >>>> >>>> I started the server using java -Xmx256M -jar ofbiz.jar command. >>>> >>>> but I get following error message. >>>> >>>> ********************* >>>> HTTP Status 404 - /practice/control/main >>>> >>>> type Status report >>>> >>>> message /practice/control/main >>>> >>>> description The requested resource (/practice/control/main) is not >>>> available. >>>> *********************** >>>> >>>> Some how my newly added component is not able to load. >>>> >>>> Does anybody have idea on this? >>>> >>>> I really appreciate your help. >>>> >>>> Thanks in advance. >>>> >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Component-not-loading-tp24206689p24220303.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> > > -- > View this message in context: > http://www.nabble.com/Component-not-loading-tp24206689p24221609.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24221805.html Sent from the OFBiz - User mailing list archive at Nabble.com.
