[jira] Updated: (COCOON-1958) Some Errors by serializing with the HSSFGenerator generated Excel-Sheet with style-informations (no Problems without)
[ https://issues.apache.org/jira/browse/COCOON-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rolf Metternich updated COCOON-1958: Attachment: patch.txt This is a good example for a not understandable bug-report. Sorry! Here is the workaround I made as a patch file. It works for simple Excel-Sheet with Style-Informations. Some Errors by serializing with the HSSFGenerator generated Excel-Sheet with style-informations (no Problems without) - Key: COCOON-1958 URL: https://issues.apache.org/jira/browse/COCOON-1958 Project: Cocoon Issue Type: Bug Components: Blocks: POI Affects Versions: 2.1.9 Reporter: Rolf Metternich Attachments: patch.txt For building an Excel-Sheet, I have to generate an Excel-Sheet by HSSFGenerator, manulpulate the values by a transformer and serialize as an Excel-Sheet. The first test are: generating an Excel-Sheet and serialize direct. Then, in the optimal case, the Excel-Sheet looks like the original. But there raised some error for which I made a workaround. First there was a NPE for fore- and background-colors by generation. I made a try-catch and set 'new HSSFColor.BLACK().getHexString()' for the foreground-color and 'new HSSFColor.WHITE().getHexString()' for the background when an error occures. This error occures only in cells, where the fore- and background-settings in Excel are automatic and none. patternColor (error on serializing) I set to 'attribute(PatternColor, new HSSFColor.WHITE().getHexString())'; Bold (error on serializing) I set the attribute from 'Short.toString(font.getBoldweight())' to ((font.getBoldweight()=font.BOLDWEIGHT_BOLD ) ? 1:0). With this workaround, the generation-serialization of the Excel-Sheet work, but no images are imported, like a logo-jpg. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (COCOON-1807) Workaround for IE Bug in button
[ https://issues.apache.org/jira/browse/COCOON-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rolf Metternich updated COCOON-1807: Attachment: action-error.txt Workaround for IE Bug in button - Key: COCOON-1807 URL: https://issues.apache.org/jira/browse/COCOON-1807 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.8, 2.1.9, 2.2-dev (Current SVN) Reporter: Rolf Metternich Priority: Minor Attachments: action-error.txt, Action.patch Special workaround IE Bug for button type=button title=row up name=results.0.columns.0.result-column-move-up id=results.0.columns.0.result-column-move-up value=row up onClick=forms_submitForm(this);img src=up.gif border=0/button The IE returns the values of all button in every row, so there are multiple submitWidgets! My Workaround is using the onClick-Event to remember the button name by using the known js-function forms_submitForm(this). In the Action-class I check if the field forms_submit_id is set and use this as SubmitWidget. I'm using this patch since 1 year and it works fine. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1807) Workaround for IE Bug in button
[ https://issues.apache.org/jira/browse/COCOON-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rolf Metternich updated COCOON-1807: Fix Version/s: 2.1.10 Priority: Major (was: Minor) Urgency: Normal Other Info: [Patch available] Affects Version/s: 2.1.10 Workaround for IE Bug in button - Key: COCOON-1807 URL: https://issues.apache.org/jira/browse/COCOON-1807 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.8, 2.1.9, 2.1.10, 2.2-dev (Current SVN) Reporter: Rolf Metternich Fix For: 2.1.10 Attachments: action-error.txt, Action.patch Special workaround IE Bug for button type=button title=row up name=results.0.columns.0.result-column-move-up id=results.0.columns.0.result-column-move-up value=row up onClick=forms_submitForm(this);img src=up.gif border=0/button The IE returns the values of all button in every row, so there are multiple submitWidgets! My Workaround is using the onClick-Event to remember the button name by using the known js-function forms_submitForm(this). In the Action-class I check if the field forms_submit_id is set and use this as SubmitWidget. I'm using this patch since 1 year and it works fine. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (COCOON-1958) Some Errors by serializing with the HSSFGenerator generated Excel-Sheet with style-informations (no Problems without)
Some Errors by serializing with the HSSFGenerator generated Excel-Sheet with style-informations (no Problems without) - Key: COCOON-1958 URL: http://issues.apache.org/jira/browse/COCOON-1958 Project: Cocoon Issue Type: Bug Components: Blocks: POI Affects Versions: 2.1.9 Reporter: Rolf Metternich For building an Excel-Sheet, I have to generate an Excel-Sheet by HSSFGenerator, manulpulate the values by a transformer and serialize as an Excel-Sheet. The first test are: generating an Excel-Sheet and serialize direct. Then, in the optimal case, the Excel-Sheet looks like the original. But there raised some error for which I made a workaround. First there was a NPE for fore- and background-colors by generation. I made a try-catch and set 'new HSSFColor.BLACK().getHexString()' for the foreground-color and 'new HSSFColor.WHITE().getHexString()' for the background when an error occures. This error occures only in cells, where the fore- and background-settings in Excel are automatic and none. patternColor (error on serializing) I set to 'attribute(PatternColor, new HSSFColor.WHITE().getHexString())'; Bold (error on serializing) I set the attribute from 'Short.toString(font.getBoldweight())' to ((font.getBoldweight()=font.BOLDWEIGHT_BOLD ) ? 1:0). With this workaround, the generation-serialization of the Excel-Sheet work, but no images are imported, like a logo-jpg. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
[ http://issues.apache.org/jira/browse/COCOON-1915?page=comments#action_12453438 ] Rolf Metternich commented on COCOON-1915: - Hi Mark! Maybe it is possible to use the items with value=. I didn't test it and, of course, I hadn't this idea. For my problem: I fill a JavaSelectionList with database values and offer sometimes, in programmatically context, not to select an item. I do this by 'setNullable(true)'. When I set nullabel to true, the sax generation builds an item with value= and no label. I wanted to have this null-item with an label like 'all' or something else. This way, i can toggle between setNullable=true/false dependend on other values in the form (perhaps Ajax), without building the SelectionList again. The improvements are also made in the JavaSelectionListBuilder and the first example is only done for this. I hope, you can I understand, why I did it. Do you have another solution for this problem? Rolf Nullable value with additional String or XMLizable in JavaSelectionList --- Key: COCOON-1915 URL: http://issues.apache.org/jira/browse/COCOON-1915 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.2-dev (Current SVN), 2.1.9, 2.1.10-dev (current SVN) Reporter: Rolf Metternich Priority: Minor Attachments: JavaSelectionList.txt, JavaSelectionList.txt Setting a text for the nullable-Value as String or XMLizable programmaticly by using setNullText(String nullText); Also you can set the nullText in the definition of the selectionlist. Example: fd:datatype base=long/ fd:selection-list fd:null-text i18n:textplease-select/i18n:text /fd:null-text fd:item value=1/ fd:item value=2/ fd:item value=3 fd:labelthree/fd:label /fd:item fd:item value=4/ fd:item value=5/ /fd:selection-list -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
[ http://issues.apache.org/jira/browse/COCOON-1915?page=comments#action_12452143 ] Rolf Metternich commented on COCOON-1915: - Hello Mark! Maybe your solution shows the same data in the form, but the 'null-text' tag is made for supporting the 'nullable' attribute in the selection list. So you can differ between normal items and the text-value for the nullable element and set the null-text by software. This is useful for sax generation in the AbstractJavaSelectionList where the 'nullable' attribute is tested. Rolf Nullable value with additional String or XMLizable in JavaSelectionList --- Key: COCOON-1915 URL: http://issues.apache.org/jira/browse/COCOON-1915 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.2-dev (Current SVN), 2.1.9, 2.1.10-dev (current SVN) Reporter: Rolf Metternich Priority: Minor Attachments: JavaSelectionList.txt, JavaSelectionList.txt Setting a text for the nullable-Value as String or XMLizable programmaticly by using setNullText(String nullText); Also you can set the nullText in the definition of the selectionlist. Example: fd:datatype base=long/ fd:selection-list fd:null-text i18n:textplease-select/i18n:text /fd:null-text fd:item value=1/ fd:item value=2/ fd:item value=3 fd:labelthree/fd:label /fd:item fd:item value=4/ fd:item value=5/ /fd:selection-list -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1914) Text as XMLizable in EmptySelectionList
[ http://issues.apache.org/jira/browse/COCOON-1914?page=all ] Rolf Metternich updated COCOON-1914: Affects Version/s: 2.2-dev (Current SVN) 2.1.10-dev (current SVN) (was: 2.1.9) Priority: Minor (was: Trivial) Text as XMLizable in EmptySelectionList --- Key: COCOON-1914 URL: http://issues.apache.org/jira/browse/COCOON-1914 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.2-dev (Current SVN), 2.1.10-dev (current SVN) Reporter: Rolf Metternich Priority: Minor Attachments: EmptySelectionList.txt Setting the text of an EmptySelectionList also as XMLizable. Example: new EmptySelectionList(new I18nMessage(no-data)); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
[ http://issues.apache.org/jira/browse/COCOON-1915?page=all ] Rolf Metternich updated COCOON-1915: Urgency: Normal (was: Low) Affects Version/s: 2.2-dev (Current SVN) 2.1.10-dev (current SVN) Priority: Minor (was: Trivial) Nullable value with additional String or XMLizable in JavaSelectionList --- Key: COCOON-1915 URL: http://issues.apache.org/jira/browse/COCOON-1915 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.2-dev (Current SVN), 2.1.9, 2.1.10-dev (current SVN) Reporter: Rolf Metternich Priority: Minor Attachments: JavaSelectionList.txt, JavaSelectionList.txt Setting a text for the nullable-Value as String or XMLizable programmaticly by using setNullText(String nullText); Also you can set the nullText in the definition of the selectionlist. Example: fd:datatype base=long/ fd:selection-list fd:null-text i18n:textplease-select/i18n:text /fd:null-text fd:item value=1/ fd:item value=2/ fd:item value=3 fd:labelthree/fd:label /fd:item fd:item value=4/ fd:item value=5/ /fd:selection-list -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (COCOON-1914) Text as XMLizable in EmptySelectionList
Text as XMLizable in EmptySelectionList --- Key: COCOON-1914 URL: http://issues.apache.org/jira/browse/COCOON-1914 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.9 Reporter: Rolf Metternich Priority: Trivial Setting the text of an EmptySelectionList also as XMLizable. Example: new EmptySelectionList(new I18nMessage(no-data)); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1914) Text as XMLizable in EmptySelectionList
[ http://issues.apache.org/jira/browse/COCOON-1914?page=all ] Rolf Metternich updated COCOON-1914: Attachment: EmptySelectionList.txt Text as XMLizable in EmptySelectionList --- Key: COCOON-1914 URL: http://issues.apache.org/jira/browse/COCOON-1914 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.9 Reporter: Rolf Metternich Priority: Trivial Attachments: EmptySelectionList.txt Setting the text of an EmptySelectionList also as XMLizable. Example: new EmptySelectionList(new I18nMessage(no-data)); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
Nullable value with additional String or XMLizable in JavaSelectionList --- Key: COCOON-1915 URL: http://issues.apache.org/jira/browse/COCOON-1915 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.9 Reporter: Rolf Metternich Priority: Trivial Setting a text for the nullable-Value as String or XMLizable programmaticly by using setNullText(String nullText); Also you can set the nullText in the definition of the selectionlist. Example: fd:datatype base=long/ fd:selection-list fd:null-text i18n:textplease-select/i18n:text /fd:null-text fd:item value=1/ fd:item value=2/ fd:item value=3 fd:labelthree/fd:label /fd:item fd:item value=4/ fd:item value=5/ /fd:selection-list -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
[ http://issues.apache.org/jira/browse/COCOON-1915?page=all ] Rolf Metternich updated COCOON-1915: Attachment: JavaSelectionList.txt Nullable value with additional String or XMLizable in JavaSelectionList --- Key: COCOON-1915 URL: http://issues.apache.org/jira/browse/COCOON-1915 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.9 Reporter: Rolf Metternich Priority: Trivial Attachments: JavaSelectionList.txt Setting a text for the nullable-Value as String or XMLizable programmaticly by using setNullText(String nullText); Also you can set the nullText in the definition of the selectionlist. Example: fd:datatype base=long/ fd:selection-list fd:null-text i18n:textplease-select/i18n:text /fd:null-text fd:item value=1/ fd:item value=2/ fd:item value=3 fd:labelthree/fd:label /fd:item fd:item value=4/ fd:item value=5/ /fd:selection-list -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (COCOON-1915) Nullable value with additional String or XMLizable in JavaSelectionList
[ http://issues.apache.org/jira/browse/COCOON-1915?page=all ] Rolf Metternich updated COCOON-1915: Attachment: JavaSelectionList.txt Sorry! The previous patch includes a patch for EmptySelectionList, which is not for this. Nullable value with additional String or XMLizable in JavaSelectionList --- Key: COCOON-1915 URL: http://issues.apache.org/jira/browse/COCOON-1915 Project: Cocoon Issue Type: Improvement Components: Blocks: Forms Affects Versions: 2.1.9 Reporter: Rolf Metternich Priority: Trivial Attachments: JavaSelectionList.txt, JavaSelectionList.txt Setting a text for the nullable-Value as String or XMLizable programmaticly by using setNullText(String nullText); Also you can set the nullText in the definition of the selectionlist. Example: fd:datatype base=long/ fd:selection-list fd:null-text i18n:textplease-select/i18n:text /fd:null-text fd:item value=1/ fd:item value=2/ fd:item value=3 fd:labelthree/fd:label /fd:item fd:item value=4/ fd:item value=5/ /fd:selection-list -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (COCOON-1587) [PATCH] Simple i18n support for selectionLists
[ http://issues.apache.org/jira/browse/COCOON-1587?page=all ] Rolf Metternich closed COCOON-1587: --- Resolution: Fixed This was my special solution in earlier cocoon-versions. Not longer useful! [PATCH] Simple i18n support for selectionLists -- Key: COCOON-1587 URL: http://issues.apache.org/jira/browse/COCOON-1587 Project: Cocoon Type: Bug Components: Blocks: Forms Versions: 2.1.8 Environment: Operating System: other Platform: Other Reporter: Rolf Metternich Assignee: Cocoon Developers Team Attachments: patch.txt Inserts an i18n:text tag, if the i18nSupport in the selectionList is set to true. The i18nSupport could be set by adding the attribute i18n-support=true to the selection-list tag in the forms definition file. ( Example: fd:selection-list i18n-support=true src=resources/selection-lists/tourart.xml/ ) In program code, you can add i18nSupport by using the SelectionList-Constructors with the additional boolean value for the i18n-support or the method setI18nSupport(true). If the i18nSupport ist set, the generation of SAX will insert an i18n.text-tag before the text of the label. The next step is using the i18n-Transformer. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (COCOON-1807) Workaround for IE Bug in button
Workaround for IE Bug in button - Key: COCOON-1807 URL: http://issues.apache.org/jira/browse/COCOON-1807 Project: Cocoon Type: Improvement Components: Blocks: Forms Versions: 2.1.8, 2.2-dev (Current SVN), 2.1.9-dev (current SVN) Reporter: Rolf Metternich Priority: Minor Attachments: Action.patch Special workaround IE Bug for button type=button title=row up name=results.0.columns.0.result-column-move-up id=results.0.columns.0.result-column-move-up value=row up onClick=forms_submitForm(this);img src=up.gif border=0/button The IE returns the values of all button in every row, so there are multiple submitWidgets! My Workaround is using the onClick-Event to remember the button name by using the known js-function forms_submitForm(this). In the Action-class I check if the field forms_submit_id is set and use this as SubmitWidget. I'm using this patch since 1 year and it works fine. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (COCOON-1729) [PATCH] Add multiple rows to a Repeater (fd:repeater-action).
[PATCH] Add multiple rows to a Repeater (fd:repeater-action). - Key: COCOON-1729 URL: http://issues.apache.org/jira/browse/COCOON-1729 Project: Cocoon Type: New Feature Components: Blocks: Forms Versions: 2.1.8 Reporter: Rolf Metternich Priority: Trivial Attachments: patch.txt To add a certain numbers of Repeater.Rows (more than 1) to a Repeater with one Action, use the attribute number-of-rows in the definition of a repeater-action. Example: fd:repeater-action command=add-row id=add-many-rows-to-repeater number-of-rows=5 repeater=repeater-name fd:label Add 5 rows/fd:label /fd:repeater-action fd:repeater-action command=add-row id=add-one-row-to-repeater repeater=repeater-name fd:labelAdd 1 row/fd:label /fd:repeater-action -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira