Posted by
cjhowe on
URL: http://ofbiz.116.s1.nabble.com/Users-Help-Forum-Article-Respond-tp138407p138408.html
PageName in jpublish was the equivelant of the screen
name. I'm not sure of what the variable name for the
screen name in the context map is. However, this use
of the error message in the bsh script that is causing
your error, isn't a good way to describe what the user
doesn't have access to using the screen widgets.
You may wish to simply change:
"Permission to display:" + page.getPageName() + " is
denied.";
to:
"Permission to display this page is denied.";
================Phani wrote:
Hi All .....
Thanks for your valuble reply i also want
the following information from you to get the
solutions for pronlem with the forums section
along with page.getProperty we also have
page.getPageName which is throwing exception to me as
follows
i tried to use the same logic by replacing
page.getPageName with context.getPageName but i am
not sucessful........can any one give me more
information to fix them
org.ofbiz.base.util.GeneralException: Error rendering
screen [editforumarticle]:
org.ofbiz.base.util.GeneralException: Error running
BSH script at location
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh]:
org.ofbiz.base.util.GeneralException: Error running
BSH script at
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh],
line [168]: Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack' : at
Line: 168 : in file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: context .getPageName ( )
(Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack')
(Error running BSH script at
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh],
line [168]: Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack' : at
Line: 168 : in file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: context .getPageName ( )
(Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack'))
(Error running BSH script at location
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh]:
org.ofbiz.base.util.GeneralException: Error running
BSH script at
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh],
line [168]: Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack' : at
Line: 168 : in file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: context .getPageName ( )
(Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack')
(Error running BSH script at
[component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh],
line [168]: Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack' : at
Line: 168 : in file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: context .getPageName ( )
(Sourced file:
component://ecommerce/webapp/ecommerce/WEB-INF/actions/forum/permprep.bsh
: Typed variable declaration : Error in method
invocation: No args method getPageName() not found in
class'org.ofbiz.base.util.collections.MapStack')))
Thanks and Regards
Phani
Phani,
this appears to be a bug from the transition from
jpublish to screens. page was a map for all of the
context fields from jpublish. these are now defined
in
the screen as fields from the context.
I believe changing all of the page.getProperty to
context.get should do the trick. I don't have an
environment available to test this though.
=========G Venkata Phanindra wrote:
Hi.....
I am facing problem with the forums section in ofbiz
......
Now i am looking at the problem with the
currentvalprep.bsh file ......
I could not get the functionality of the following
lines of code
entityName = page.getProperty("entityName");
currentEntityPropertyName =
page.getProperty("currentEntityPropertyName");
if (currentEntityPropertyName == null) {
currentEntityName = entityName;
} else {
currentEntityName =
page.getProperty(currentEntityPropertyName);
}
Where is the Variable Page is defined it is pointing
to javolution.util.FastMap but where is this defined
........
I also could not find the method with the APi of
javolution.util.FastMap
(
http://javolution.org/api/javolution/util/FastMap.html)
I am looking for more information on the same
Thanks and Regards
Phani
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.ofbiz.org/pipermail/users/attachments/20060410/9a988069/attachment.htm
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users