When I try to run a form thru the ScreenFopViewHandler I get the following
code in the /tmp/xslfo.out file (after uncommenting that section): <fo:table>^M <fo:table-column column-width="2in"/>^M <fo:table-column/>^M <fo:table-body>^M <fo:table-row>^M ... and the error is: [Fatal Error] :5:11: The prefix "fo" for element "fo:table" is not bound. ERROR: 'The prefix "fo" for element "fo:table" is not bound.' 2007-05-10 01:00:18,521 (http-0.0.0.0-8080-Processor4) [ ScreenFopViewHandler.java:116:ERROR] FOP transform failed: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The prefix "fo" for element "fo:table" is not bound. The "fo" prefix is not declared in the root tag as there is none and I cannot find where it would be generated. Here is from my controller.xml: <view-map name="AddMyWhy" type="screen" page="component://comps/widget/sample/SurveyScreens.xml#AddMyWhy"/> <view-map name="PrintMyWhy" type="screenfop" page="component://comps/widget/sample/SurveyScreens.xml#AddMyWhy" content-type="application/pdf"/> Note that I use the same screen definition for PrintMyWhy, just a different type. Could that be a problem? I figure I must be missing something. Any ideas? -Al |
Al,
right now there is no support for a Fo renderer for screen widgets (see issue https://issues.apache.org/jira/browse/OFBIZ-809 ), we only have one for form widgets. You have to create a screen definition for your pdf report that extends a fo template screen (there are a few examples of this in OFBiz)... Jacopo Al Byers wrote: > When I try to run a form thru the ScreenFopViewHandler I get the following > code in the /tmp/xslfo.out file (after uncommenting that section): > > > > > > <fo:table>^M > <fo:table-column column-width="2in"/>^M > <fo:table-column/>^M > <fo:table-body>^M > <fo:table-row>^M > ... > > and the error is: > > [Fatal Error] :5:11: The prefix "fo" for element "fo:table" is not bound. > ERROR: 'The prefix "fo" for element "fo:table" is not bound.' > 2007-05-10 01:00:18,521 (http-0.0.0.0-8080-Processor4) [ > ScreenFopViewHandler.java:116:ERROR] FOP transform failed: > javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: > The > prefix "fo" for element "fo:table" is not bound. > > The "fo" prefix is not declared in the root tag as there is none and I > cannot find where it would be generated. > > Here is from my controller.xml: > <view-map name="AddMyWhy" type="screen" > page="component://comps/widget/sample/SurveyScreens.xml#AddMyWhy"/> > <view-map name="PrintMyWhy" type="screenfop" > page="component://comps/widget/sample/SurveyScreens.xml#AddMyWhy" > content-type="application/pdf"/> > > Note that I use the same screen definition for PrintMyWhy, just a different > type. Could that be a problem? > > I figure I must be missing something. Any ideas? > > -Al > |
In reply to this post by byersa
I have reported the case on the user list yesterday.
Environment: IE7. The scenario is like this. I want to create a new security group. I enter Security Group ID as "TestSubmit" and Descirption as "TestSubmit" then press Update button. The result is I create a "TestSubmit" Security Group ID and a error message: The Following Errors Occurred: ERROR: Could not complete the Create an SecurityGroup [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml#createSecurityGroup] process [problem creating the newEntity value: Exception while inserting the following entity: [GenericEntity:SecurityGroup][createdStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)] (while inserting: [GenericEntity:SecurityGroup][createdStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.String)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation message from server: "Duplicate entry 'TestSubmit4' for key 1")))] The problem is in IE7 only. I only got IE7 and Firefox. After I do some research, I found the problem is IE7 will do submit twice, one from submit buttom and another one from function submitFormDisableButton(button). In the research I comment out line 205: button.form.submit() in selectall.js. And do the submit in IE7 again, in theory I should not create any security group, however the system do create a security group for me. Therefore I think we should add a browser checking before the line 205. Should I write the patch myself and submit to the mailing list? Or somebody else write it? Thanks. |
Administrator
|
Hi Kane,
Please feel free to open a Jira issue and submit a patch (dont' forget to check grant ASF and please read http://tinyurl.com/yrnek3) Thanks Jacques De : "Kane Lo" <[hidden email]> > I have reported the case on the user list yesterday. > Environment: IE7. > The scenario is like this. > I want to create a new security group. I enter Security Group ID as > "TestSubmit" and Descirption as "TestSubmit" then press Update button. The > result is I create a "TestSubmit" Security Group ID and a error message: > The Following Errors Occurred: > > ERROR: Could not complete the Create an SecurityGroup > [file:/D:/work/save/tools/svn-win32-1.4.0/bin/GlobalTrend/applications/s ecurityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServi ces.xml#createSecurityGroup] > process [problem creating the newEntity value: Exception while inserting the > following entity: [GenericEntity:SecurityGroup][createdStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.Stri ng)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)] (while inserting: > [GenericEntity:SecurityGroup][createdStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)][createdTxStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)][description,TestSubmit4(java.lang.Stri ng)][groupId,TestSubmit4(java.lang.String)][lastUpdatedStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)][lastUpdatedTxStamp,2007-05-11 > 12:14:10.937(java.sql.Timestamp)] (SQL Exception while executing the > following:INSERT INTO SECURITY_GROUP (GROUP_ID, DESCRIPTION, > LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) > VALUES (?, ?, ?, ?, ?, ?) (Duplicate key or integrity constraint violation > message from server: "Duplicate entry 'TestSubmit4' for key 1")))] > > The problem is in IE7 only. I only got IE7 and Firefox. After I do some > research, I found the problem is IE7 will do submit twice, one from submit > buttom and another one from function submitFormDisableButton(button). > > In the research I comment out line 205: button.form.submit() in > selectall.js. And do the submit in IE7 again, in theory I should not create > any security group, however the system do create a security group for me. > Therefore I think we should add a browser checking before the line 205. > > Should I write the patch myself and submit to the mailing list? Or somebody > else write it? > > Thanks. |
In reply to this post by byersa
It sounds frustrating dealing with unexpected access issues, especially when systems or tools don’t respond the way they should. In real life, being locked out of your home or office is just as stressful, and that’s where Openen Deur services from Slotenmaker020 come in handy with their fast and reliable 24/7 locksmith support. Just like resolving technical glitches, having experts who can quickly and safely handle lockouts brings peace of mind.
|
Free forum by Nabble | Edit this page |