Dev - Problem with Forums Bsh ............Page Variable.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dev - Problem with Forums Bsh ............Page Variable.

G Venkata Phanindra
Hi.......
I m working on Forums from last two weeks and i am struck with the respond part of forums......
There are a couple of problems in have
        This is same list of problems i am posting to the group but this time i think i am more specific....
       1 .  Problem with *.bsh Files in forums  
                      There is a Field called "page" --> Methods getProperty("String") n getPageName()
                       with the help from group i am able to solve the getProperty("string ") problem .......but i am still unable to resolve the Exception  with page.getPageName();  and ParentValue.getProperty("String");
      2 I am also facing problems with collecting the information posted in the respond section .......
              This is basically firring the uploadResponse event "persistContentAndAssoc" (Information from controller.xml of ecommerce).
              This is mapping to org.ofbiz.content.ContentManagementServices.java  persistContentAndAssoc(DispatchContext dctx, Map context)  method........
           The Values are getting updated in the Data Base but the problem is with the displaying of values.



Thanks and Regards
<script><!-- D(["mb","<div style\u003d\"direction:ltr\" ><span class\u003dsg>\n <br>G.Venkata Phanindra<br>Mob:: 9849852989\n\n</span></div>",1] ); D(["mb","<br><br />______________________________<wbr />_________________<br />Users mailing list<br /><a onclick\u003d\"return top.js.OpenExtLink(window,event,this)\" href\u003d\"mailto:Users@lists.ofbiz.org\">Users@lists.ofbiz.org</a><br /><a onclick\u003d\"return top.js.OpenExtLink(window,event,this)\" href\u003d\"http://lists.ofbiz.org/mailman/listinfo/users\" target\u003d_blank>http://lists.ofbiz.org/mailman<wbr />/listinfo/users</a><br /><br>",0] ); D(["ce"]); //--></script>
 
G.Venkata Phanindra


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem with Forums Bsh ............Page Variable.

cjhowe
I only had time to look into your #1 question.

getPageName seems to only be used for error log
messages.  Just get rid of the variables that use get
PageName as giving error messages based on the name of
the screen does not provide any additional useful
information (there are already error messages that are
generated when that error would occur).  If
getPageName is somewhere other than a log statement
let me know.

--- G Venkata Phanindra <[hidden email]>
wrote:

> Hi.......
>  I m working on Forums from last two weeks and i am
> struck with the respond part of forums......
>  There are a couple of problems in have
>          This is same list of problems i am posting
> to the group but this time i think i am more
> specific....
>         1 .  Problem with *.bsh Files in forums  
>                        There is a Field called
> "page" --> Methods getProperty("String") n
> getPageName()
>                         with the help from group i
> am able to solve the getProperty("string ") problem
> .......but i am still unable to resolve the
> Exception  with page.getPageName();  and
> ParentValue.getProperty("String");
>        2 I am also facing problems with collecting
> the information posted in the respond section
> .......
>                This is basically firring the
> uploadResponse event "persistContentAndAssoc"
> (Information from controller.xml of ecommerce).
>                This is mapping to
> org.ofbiz.content.ContentManagementServices.java
> persistContentAndAssoc(DispatchContext dctx, Map
> context)  method........
>             The Values are getting updated in the
> Data Base but the problem is with the displaying of
> values.
>  
>
>  
>  Thanks and Regards
>
>  \n
> G.Venkata Phanindra
> Mob:: 9849852989\n\n
> ",1] ); D(["mb","
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
> ",0] ); D(["ce"]);  //-->  
> G.Venkata Phanindra
>
>    
>  
>
> ---------------------------------
>  Jiyo cricket on Yahoo! India cricket
> Yahoo! Messenger Mobile Stay in touch with your
> buddies all the time.>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem with Forums Bsh ............Page Variable.

G Venkata Phanindra
Hi  Chris Howe  and others ......Thanks for your reply........
"singleWrapper.putInContext("pageName", page.getPageName());" is Defined at two places in forums and ecomerce.
        ecommerce/WEB-INF/actions/forum/responseprep.bsh                              ecommerce/WEB-INF/actions/forum/comboprep.bsh.
"pageName        = page.getPageName();" is defined in
content/webapp/content/WEB-INF/actions/menu/setmenuitem.bsh
content/webapp/content/WEB-INF/actions/menu/setmainmenuitem.bsh
content/webapp/content/WEB-INF/actions/menu/setcurrentmenuitem.bsh
content/webapp/content/WEB-INF/actions/menu/menuhistory.bsh
content/webapp/content/WEB-INF/actions/includes/menuhistory.bsh
content/webapp/content/WEB-INF/actions/includes/redirectpage.bsh



    

Chris Howe <[hidden email]> wrote:
I only had time to look into your #1 question.

getPageName seems to only be used for error log
messages. Just get rid of the variables that use get
PageName as giving error messages based on the name of
the screen does not provide any additional useful
information (there are already error messages that are
generated when that error would occur). If
getPageName is somewhere other than a log statement
let me know.

--- G Venkata Phanindra
wrote:

> Hi.......
> I m working on Forums from last two weeks and i am
> struck with the respond part of forums......
> There are a couple of problems in have
> This is same list of problems i am posting
> to the group but this time i think i am more
> specific....
> 1 . Problem with *.bsh Files in forums
> There is a Field called
> "page" --> Methods getProperty("String") n
> getPageName()
> with the help from group i
> am able to solve the getProperty("string ") problem
> .......but i am still unable to resolve the
> Exception with page.getPageName(); and
> ParentValue.getProperty("String");
> 2 I am also facing problems with collecting
> the information posted in the respond section
> .......
> This is basically firring the
> uploadResponse event "persistContentAndAssoc"
> (Information from controller.xml of ecommerce).
> This is mapping to
> org.ofbiz.content.ContentManagementServices.java
> persistContentAndAssoc(DispatchContext dctx, Map
> context) method........
> The Values are getting updated in the
> Data Base but the problem is with the displaying of
> values.
>
>
>
> Thanks and Regards
>
> \n
> G.Venkata Phanindra
> Mob:: 9849852989\n\n
> ",1] ); D(["mb","
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
> ",0] ); D(["ce"]); //-->
> G.Venkata Phanindra
>
>
>
>
> ---------------------------------
> Jiyo cricket on Yahoo! India cricket
> Yahoo! Messenger Mobile Stay in touch with your
> buddies all the time.>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev


_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev



With Regards,

G Venkata Phanindra.
Mobile :9849852989.


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev