- 浏览: 12057 次
- 性别:
- 来自: 杭州
最新评论
-
surpass_li:
apache-ofbiz-13.07.01中生成simhei. ...
Ofbiz 用FOP生成PDF文件中文无法显示的解决方案
文章列表
在开发过程中,发现生成的PDF文件中,所有中文都不能显示,以”#“表示。
在ofbiz中,生成pdf的过程是:
1、访问xxx.pdf的url.
2、controller.xml中对*.pdf配置如下:
<handler name="screenfop" type="view"
class="org.ofbiz.widget.screen.ScreenFopViewHandler"/>
...
<view-map name="PicklistReport.pdf" type=&quo ...
ofbiz使用entity,其表结构都放在entitymodel.xml文件中,但是当对表结构的内容作了修改后,重启却发现修改不生效。要使其生效,办法很简单:
在Ofbiz的web tools中,有如下入口:Check/Update
Database
(访问http://${yourofbiz}/webtools/control/view/checkdb)
此处可以指定更新整个数据库,或更新主键/外键,或只更新一张表。
打开opentaps任意一个有分页功能的页面*.ftl文件
其中有如下代码:
<@import
location="component://opentaps-common/webapp/common/includes/lib/opentapsFormMacros.ftl"/>
<div>
<@paginate name="layerCategories" list=categories
rememberPage="true" sectionName=sectionName>
...
用了一段时间ofbiz自带的form widgets工具,发现不是很好用。尤其是与前端配合开发的时候,表单的样式、效果受到了很多的限制。于是决定抛弃form widget,用freemarker。前端开发出来的效果和效率果然有了很大提交。但是存在一个 ...
今天在ofbiz中新建一张表OpenProduct,在ofbiz后台访问这张新表时,出现了如下异常:
Helper name not found for entity OpenProduct
检查entitymodel.xml对entity的配置没有问题。在entitygroup.xml文件,也已经把entity"OpenProduct"添加进去了。D ...