Re: [tobago] Problem using paging in sheet under IE
Hi Hani, yes, I can reproduce this. I think, that must be handled in Tobago. Please create a jira issue. Regards Helmut Am 18.01.2012 11:21, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi Helmut, I have defined a sheet and a button with defaultCommand in page. By entering a row or page number for jumping to certain row or page in the sheet using the row range and page range in the sheet footer, the defined action will be automatically performed after sheet paging. How can i prevent this behavior under IE . Test page: %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc % %@ taglib uri=http://myfaces.apache.org/tobago/extension; prefix=tx % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % %@ taglib tagdir=/WEB-INF/tags/layout prefix=layout % %@ page pageEncoding=UTF-8 % layout:overview jsp:body tc:box id=sheetBox f:facet name=layout tc:gridLayout rows=*;fixed/ /f:facet tc:sheet id=sheet value=#{demo.solarList} columns=*;* var=luminary rows=20 showPageRange=right showDirectLinks=center showRowRange=left selectable=none tc:column label=column 1 id=name tc:out value=#{luminary.name} id=t_name/ /tc:column tc:column label=column id=number tc:out value=#{luminary.number} id=t_number/ /tc:column /tc:sheet tc:button label=click action=#{overviewController.performAction} defaultCommand=true / /tc:box /jsp:body /layout:overview Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:m...@wlp-systems.de] Gesendet: Mittwoch, 18. Januar 2012 10:17 An: MyFaces Discussion Betreff: Re: [tobago] Problem using paging in sheet under IE Hi, please give a more detailed description of your problem. I don't really understand it. Regards Helmut Am 18.01.2012 10:14, schrieb Abushammala, Hani (EXTERN: conceptQ): Any ideas? Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: conceptQ) [mailto:extern.hani.a...@volkswagen.de] Gesendet: Donnerstag, 12. Januar 2012 09:53 An: MyFaces Discussion Betreff: AW: [tobago] Problem using paging in sheet under IE The application details: tobago-core-1.0.38.jar myfaces-impl-1.1.9.jar myfaces-api-1.1.9.jar Browser: IE 6.0, IE 8.0 Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: conceptQ) [mailto:extern.hani.a.@volkswagen.de] Gesendet: Mittwoch, 11. Januar 2012 15:48 An: MyFaces Discussion Betreff: [tobago] Problem using paging in sheet under IE Hallo, It is not possible to jump to row or page in sheet with defined defaultCommand in the page under IE. In this case the defaultCommand will be automatically performed. How can i avoid this? Regards, Hani
Re: [tobago] Problem using paging in sheet under IE
Hi, please give a more detailed description of your problem. I don't really understand it. Regards Helmut Am 18.01.2012 10:14, schrieb Abushammala, Hani (EXTERN: conceptQ): Any ideas? Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: conceptQ) [mailto:extern.hani.a...@volkswagen.de] Gesendet: Donnerstag, 12. Januar 2012 09:53 An: MyFaces Discussion Betreff: AW: [tobago] Problem using paging in sheet under IE The application details: tobago-core-1.0.38.jar myfaces-impl-1.1.9.jar myfaces-api-1.1.9.jar Browser: IE 6.0, IE 8.0 Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: conceptQ) [mailto:extern.hani.a.@volkswagen.de] Gesendet: Mittwoch, 11. Januar 2012 15:48 An: MyFaces Discussion Betreff: [tobago] Problem using paging in sheet under IE Hallo, It is not possible to jump to row or page in sheet with defined defaultCommand in the page under IE. In this case the defaultCommand will be automatically performed. How can i avoid this? Regards, Hani
Re: [Tobago] How to select a row in tc:sheet by keyboard
See TOBAGO-1008. Regards Helmut Am 08.06.2011 10:43, schrieb Helmut Swaczinna: Hi all, we have a requirement from our customer, that an user must be able do activate all functions on a page by keyboard (barrier-free). But it seems there's no way to select a row in a tc:sheet by keyboard. How can I achieve this? Regards, Helmut
Re: [Tobago] PageRendererBase warning
Hi Hani, now I'm able to reproduce this warning. Thanks for the info. But I'm not able to find a workaround for this problem. Because it doesn't seem to be a serious problem, I will try to configure log4j to prevent this warning. Regards, Helmut Am 06.06.2011 11:51, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi Helmut, In the item list we have defined 26 items and the warning comes out by selecting the below items after scrolling down in the selectOneChoice. It seems like a rendering problem of selectOneChoice with many values under FF. Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: conceptQ) [mailto:extern.hani.abushamma...@volkswagen.de] Gesendet: Montag, 6. Juni 2011 10:03 An: MyFaces Discussion Betreff: AW: [Tobago] PageRendererBase warning Hi Helmut, In the controller class we have defined some countries and cities in the item list. After selecting some items (e.g Southafrica) to call an action we became this warning. Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:myfa...@wlp-systems.de] Gesendet: Mittwoch, 1. Juni 2011 17:45 An: MyFaces Discussion Betreff: Re: [Tobago] PageRendererBase warning Hi Hani, I'm still not able to reproduce it with your code and FF 3.6.17. What exactly do you mean with by selecting the same items to performe an action? Regards, Helmut Am 01.06.2011 13:07, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi Helmut, I`ve got this warning with FF 4.0.1 and 3.6.17. Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:myfa...@wlp-systems.de] Gesendet: Mittwoch, 1. Juni 2011 12:49 An: MyFaces Discussion Betreff: Re: [Tobago] PageRendererBase warning Hi Hani, with which browser version do you get this warning exactly? Only with FF 4.0.1? Regards, Helmut Am 01.06.2011 12:07, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi, We could reproduce the warning by selecting the same items to performe an action. Test page: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc% f:view tc:page id=statusbar tc:panel f:facet name=layout tc:gridLayout rows=20px;* columns=222px;* margin=0 cellspacing=0 / /f:facet tc:panel f:facet name=layout tc:gridLayout rows=* columns=160px;* / /f:facet tc:selectOneChoice id=selector value=#{controller.selectedItem} f:facet name=change tc:command id=changeAction action=#{controller.doSomething} / /f:facet tc:selectItems value=#{controller.items} / /tc:selectOneChoice tc:panel / /tc:panel tc:panel / tc:cell spanX=2 / /tc:panel /tc:page /f:view Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:myfa...@wlp-systems.de] Gesendet: Dienstag, 31. Mai 2011 16:31 An: MyFaces Discussion Betreff: Re: [Tobago] PageRendererBase warning Hi, I found this warning often in our customers log file too, but I wasn't able to reproduce it myself. I had a look in tobago.js and found this code: getAbsoluteLeft: function(element) { var left = 0; var parent = false; while (elementelement.offsetParent) { left += element.offsetLeft; left -= element.scrollLeft; if (parentelement.currentStyle) { // IE only left += element.currentStyle.borderLeftWidth.replace(/\D/g, ) - 0; } element = element.offsetParent; parent = true; } return left; } I'm not sure, if it's correct for all browsers and if the page content is scrolled. Regards, Helmut Am 31.05.2011 15:51, schrieb Abushammala, Hani (EXTERN: conceptQ): Hello, Sometimes we got a warning from PageRendererBase class while calling an action. In contrast to firefox, internet explorer don`t produce this warning. I found out, that by decoding the requested page the request parametr actionPositionString contains negative pixel values. I don`t know what that means and why. Log: WARN org.apache.myfaces.tobago.renderkit.PageRendererBase - Can't analyse parameter for action-position java.lang.IllegalArgumentException: Can't parse to any measure: '-12px' at org.apache.myfaces.tobago.layout.Measure.parse(Measure.java:39) at org.apache.myfaces.tobago.layout.Position.init(Position.java:38) at org.apache.myfaces.tobago.layout.Box.init(Box.java:40) at Env: Tabago Version: 1.0.30 MyFaces: 1.1.7 FireFox: 4.0.1 IE: 6.0 Regards, Hani
[Tobago] How to select a row in tc:sheet by keyboard
Hi all, we have a requirement from our customer, that an user must be able do activate all functions on a page by keyboard (barrier-free). But it seems there's no way to select a row in a tc:sheet by keyboard. How can I achieve this? Regards, Helmut
Re: Tomahawk, Trinidad or Tobago
Hi, I'm using Tobago now for years. (But I havn't used Trinidad.) The main advantage of Tobago is (to me) the buildin layout manager (gridlayout). You havn't to deal with HTML table layout or something. With Tobago, you don't need to use any HTML tag at all. Tobago has a rich skinning support too, so you don't need to write any CSS class to get a quite good looking app. Buildin ajax support has Tobago also. Regards, Helmut Am 08.06.2011 10:53, schrieb Cédric Durmont: Hello, Can't tell about Tobago, which I don't use, but (to me) Trinidad has the following advantages over Tomahawk : - ajax support for all components - popup management (passing values to popups and back...) - skinning support I use both Trinidad and Tomahawk in my current project, but Tomahawk is only used for 1/ t:schedule, which has no equivalent component and 2/ t:inputFileUpload (Trinidad has an upload component too, but I had a hard time mixing Trinidad, Tomahawk and PrettyFaces, and now the uploads are catched by Tomahawk. Better use one more Tomahawk component than struggle with my web.xml again) Regards, Cedric 2011/6/7 Iratxe Lejarretailejarr...@ntclick.com: Hi, I have to start a JSF project and I don't know what MyFaces component use: Tomahawk, Trinidad or Tobago. I have experience with Tomahawk and the result was good. I think with any of three I could do what I need, but I would like to know what are the differences with Trinidad and Tobago, and which is the each maturity. Thanks, Iratxe Lejarreta www.axios.es
Re: Tomahawk, Trinidad or Tobago
I've used Tobago's file upload (based on Apache's) with no problem. Regards Helmut Am 08.06.2011 14:19, schrieb jitechno: Hi, what kind of project are u starting? If file upload project , read my previous threads, and forget Trinidad. I have one-time sex with this looking fine girl, it was nightmare... Tomahawk also was not better. Use simplest Apache Upload, I have selected all together during one hour.. regards and be lucky Iratxe Lejarreta-2 wrote: Hi, I have to start a JSF project and I don't know what MyFaces component use: Tomahawk, Trinidad or Tobago. I have experience with Tomahawk and the result was good. I think with any of three I could do what I need, but I would like to know what are the differences with Trinidad and Tobago, and which is the each maturity. Thanks, Iratxe Lejarreta www.axios.es
Re: [Tobago] PageRendererBase warning
Hi Hani, with which browser version do you get this warning exactly? Only with FF 4.0.1? Regards, Helmut Am 01.06.2011 12:07, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi, We could reproduce the warning by selecting the same items to performe an action. Test page: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc% f:view tc:page id=statusbar tc:panel f:facet name=layout tc:gridLayout rows=20px;* columns=222px;* margin=0 cellspacing=0 / /f:facet tc:panel f:facet name=layout tc:gridLayout rows=* columns=160px;* / /f:facet tc:selectOneChoice id=selector value=#{controller.selectedItem} f:facet name=change tc:command id=changeAction action=#{controller.doSomething} / /f:facet tc:selectItems value=#{controller.items} / /tc:selectOneChoice tc:panel / /tc:panel tc:panel / tc:cell spanX=2 / /tc:panel /tc:page /f:view Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:myfa...@wlp-systems.de] Gesendet: Dienstag, 31. Mai 2011 16:31 An: MyFaces Discussion Betreff: Re: [Tobago] PageRendererBase warning Hi, I found this warning often in our customers log file too, but I wasn't able to reproduce it myself. I had a look in tobago.js and found this code: getAbsoluteLeft: function(element) { var left = 0; var parent = false; while (element element.offsetParent) { left += element.offsetLeft; left -= element.scrollLeft; if (parent element.currentStyle) { // IE only left += element.currentStyle.borderLeftWidth.replace(/\D/g, ) - 0; } element = element.offsetParent; parent = true; } return left; } I'm not sure, if it's correct for all browsers and if the page content is scrolled. Regards, Helmut Am 31.05.2011 15:51, schrieb Abushammala, Hani (EXTERN: conceptQ): Hello, Sometimes we got a warning from PageRendererBase class while calling an action. In contrast to firefox, internet explorer don`t produce this warning. I found out, that by decoding the requested page the request parametr actionPositionString contains negative pixel values. I don`t know what that means and why. Log: WARN org.apache.myfaces.tobago.renderkit.PageRendererBase - Can't analyse parameter for action-position java.lang.IllegalArgumentException: Can't parse to any measure: '-12px' at org.apache.myfaces.tobago.layout.Measure.parse(Measure.java:39) at org.apache.myfaces.tobago.layout.Position.init(Position.java:38) at org.apache.myfaces.tobago.layout.Box.init(Box.java:40) at Env: Tabago Version: 1.0.30 MyFaces: 1.1.7 FireFox: 4.0.1 IE: 6.0 Regards, Hani
Re: [Tobago] PageRendererBase warning
Hi Hani, I'm still not able to reproduce it with your code and FF 3.6.17. What exactly do you mean with by selecting the same items to performe an action? Regards, Helmut Am 01.06.2011 13:07, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi Helmut, I`ve got this warning with FF 4.0.1 and 3.6.17. Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:myfa...@wlp-systems.de] Gesendet: Mittwoch, 1. Juni 2011 12:49 An: MyFaces Discussion Betreff: Re: [Tobago] PageRendererBase warning Hi Hani, with which browser version do you get this warning exactly? Only with FF 4.0.1? Regards, Helmut Am 01.06.2011 12:07, schrieb Abushammala, Hani (EXTERN: conceptQ): Hi, We could reproduce the warning by selecting the same items to performe an action. Test page: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc% f:view tc:page id=statusbar tc:panel f:facet name=layout tc:gridLayout rows=20px;* columns=222px;* margin=0 cellspacing=0 / /f:facet tc:panel f:facet name=layout tc:gridLayout rows=* columns=160px;* / /f:facet tc:selectOneChoice id=selector value=#{controller.selectedItem} f:facet name=change tc:command id=changeAction action=#{controller.doSomething} / /f:facet tc:selectItems value=#{controller.items} / /tc:selectOneChoice tc:panel / /tc:panel tc:panel / tc:cell spanX=2 / /tc:panel /tc:page /f:view Regards, Hani -Ursprüngliche Nachricht- Von: Helmut Swaczinna [mailto:myfa...@wlp-systems.de] Gesendet: Dienstag, 31. Mai 2011 16:31 An: MyFaces Discussion Betreff: Re: [Tobago] PageRendererBase warning Hi, I found this warning often in our customers log file too, but I wasn't able to reproduce it myself. I had a look in tobago.js and found this code: getAbsoluteLeft: function(element) { var left = 0; var parent = false; while (element element.offsetParent) { left += element.offsetLeft; left -= element.scrollLeft; if (parent element.currentStyle) { // IE only left += element.currentStyle.borderLeftWidth.replace(/\D/g, ) - 0; } element = element.offsetParent; parent = true; } return left; } I'm not sure, if it's correct for all browsers and if the page content is scrolled. Regards, Helmut Am 31.05.2011 15:51, schrieb Abushammala, Hani (EXTERN: conceptQ): Hello, Sometimes we got a warning from PageRendererBase class while calling an action. In contrast to firefox, internet explorer don`t produce this warning. I found out, that by decoding the requested page the request parametr actionPositionString contains negative pixel values. I don`t know what that means and why. Log: WARN org.apache.myfaces.tobago.renderkit.PageRendererBase - Can't analyse parameter for action-position java.lang.IllegalArgumentException: Can't parse to any measure: '-12px' at org.apache.myfaces.tobago.layout.Measure.parse(Measure.java:39) at org.apache.myfaces.tobago.layout.Position.init(Position.java:38) at org.apache.myfaces.tobago.layout.Box.init(Box.java:40) at Env: Tabago Version: 1.0.30 MyFaces: 1.1.7 FireFox: 4.0.1 IE: 6.0 Regards, Hani
Re: [Tobago] PageRendererBase warning
Hi, I found this warning often in our customers log file too, but I wasn't able to reproduce it myself. I had a look in tobago.js and found this code: getAbsoluteLeft: function(element) { var left = 0; var parent = false; while (element element.offsetParent) { left += element.offsetLeft; left -= element.scrollLeft; if (parent element.currentStyle) { // IE only left += element.currentStyle.borderLeftWidth.replace(/\D/g, ) - 0; } element = element.offsetParent; parent = true; } return left; } I'm not sure, if it's correct for all browsers and if the page content is scrolled. Regards, Helmut Am 31.05.2011 15:51, schrieb Abushammala, Hani (EXTERN: conceptQ): Hello, Sometimes we got a warning from PageRendererBase class while calling an action. In contrast to firefox, internet explorer don`t produce this warning. I found out, that by decoding the requested page the request parametr actionPositionString contains negative pixel values. I don`t know what that means and why. Log: WARN org.apache.myfaces.tobago.renderkit.PageRendererBase - Can't analyse parameter for action-position java.lang.IllegalArgumentException: Can't parse to any measure: '-12px' at org.apache.myfaces.tobago.layout.Measure.parse(Measure.java:39) at org.apache.myfaces.tobago.layout.Position.init(Position.java:38) at org.apache.myfaces.tobago.layout.Box.init(Box.java:40) at Env: Tabago Version: 1.0.30 MyFaces: 1.1.7 FireFox: 4.0.1 IE: 6.0 Regards, Hani
[Tobago] Problem with sheet styles and tabGroup (still no answer)
Hello, I want to change the appearing of a tc:sheet on a specfic page. So I overloaded the style classes for tobago-sheet in my page: tc:style .tobago-sheet-content-odd { background-color: #BBCCDD; } .tobago-sheet-content-even { background-color: #BBCCDD; } .tobago-sheet-body-div { background-color: #BBCCDD; } /tc:style This works fine in general. But the sheet is on a tab of a tabGroup. When I switch to another tab (Ajax reloading), do a page reload on this tab and switch back to the tab with the sheet, the style classes are not applied. The sheet appears in the standard look. I'm using Tobago 1.0.31 and MyFaces 1.1.5 with Faclets. I've tested this with FF 3.6 and IE 7. Regards Helmut
Re: [Tobago] Problem with sheet styles and tabGroup (still no answer)
Hello Bernd and Volker, I can fix this problem when I comment out the style loader call in the SheetRenderer: // HtmlRendererUtil.writeStyleLoader(facesContext, styles); The problem seems to be, that the style files loaded by ajax overrides my style class definitions. How can this be solved? Regards Helmut Am 16.11.2010 13:29, schrieb Bernd Bohmann: Hello Helmut, I think this is a known llmitation of 1.0.x. This should be solved in 1.5.x see: https://issues.apache.org/jira/browse/TOBAGO-332 In 1.0.x the Script and the Style tag, are no components just tags. Maybe volker has a workaround? Regards Bernd On Tue, Nov 16, 2010 at 12:04 PM, Helmut Swaczinna myfa...@wlp-systems.de wrote: Hello, I want to change the appearing of a tc:sheet on a specfic page. So I overloaded the style classes for tobago-sheet in my page: tc:style .tobago-sheet-content-odd { background-color: #BBCCDD; } .tobago-sheet-content-even { background-color: #BBCCDD; } .tobago-sheet-body-div { background-color: #BBCCDD; } /tc:style This works fine in general. But the sheet is on a tab of a tabGroup. When I switch to another tab (Ajax reloading), do a page reload on this tab and switch back to the tab with the sheet, the style classes are not applied. The sheet appears in the standard look. I'm using Tobago 1.0.31 and MyFaces 1.1.5 with Faclets. I've tested this with FF 3.6 and IE 7. Regards Helmut
[Tobago] Problem with sheet styles and tabGroup
Hello, I want to change the appearing of a tc:sheet on a specfic page. So I overloaded the style classes for tobago-sheet in my page: tc:style .tobago-sheet-content-odd { background-color: #BBCCDD; } .tobago-sheet-content-even { background-color: #BBCCDD; } .tobago-sheet-body-div { background-color: #BBCCDD; } /tc:style This works fine in general. But the sheet is on a tab of a tabGroup. When I switch to another tab (Ajax reloading), do a page reload on this tab and switch back to the tab with the sheet, the style classes are not applied. The sheet appears in the standard look. I'm using Tobago 1.0.31 and MyFaces 1.1.5 with Faclets. I've tested this with FF 3.6 and IE 7. Regards Helmut
Re: How to add new css to Tobago
Hi, wich style.css do you mean exactly? Where is it located? You can add your own styles with the tc:style tag, e.g. tc:style style=style/mystyles.css /, under your resource path. Regards Helmut Am 22.04.2010 15:51, schrieb tobagouser: Any inputs on this please.. tobagouser wrote: Hi All, I have tried to add tobago-box-footer to the style.css ,but it never affected the pages.Please could you let me know how to add a new css to tobago. Thanks, KSK
Re: tobago partial rendering question
Hi, I haven't used more than one form so far, but I think both forms (or boxes) must be reloaded (rendered partially). Try to enclose both forms in a extra panel and reload this panel (tc:attribute name=renderedPartially value=:page:panel/) Regards Helmut Am 12.04.2010 13:10, schrieb kakusc...@elbe-net.de: Hello, I'm trying to execute an action and partial rendering the result in an tx:in field. The tx:button which calls the action and the tx:in elements are in different forms. For some reasons after the new value is set to the underlaying value of the tx:in field the setter of this value is called from somewhere and overwrites the new value with an empty string. But I want to have the value I set with my action1 method in the field instead an empty string. Can some one tell me what I'm doing wrong? Thanks a lot Michael %@ page contentType=text/html;charset=UTF-8 language=java % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc % %@ taglib uri=http://myfaces.apache.org/tobago/extension; prefix=tx % f:view locale=de tc:page width=1280 id=page f:facet name=layout tc:gridLayout rows=fixed;fixed;1* columns=fixed/ /f:facet tc:form id=form1 tc:box label=box1 id=box1 f:facet name=layout tc:gridLayout rows=fixed;fixed;1* columns=fixed/ /f:facet tc:cell tx:in value=#{testController.string1} label=string1 / /tc:cell tc:cell tc:button action=#{testController.action1} label=submit1 tc:attribute name=renderedPartially value=:page:form2:box2/ /tc:button /tc:cell tc:cell/ /tc:box /tc:form tc:form id=form2 tc:box label=box2 id=box2 f:facet name=layout tc:gridLayout rows=fixed;fixed;1* columns=fixed/ /f:facet tc:cell id=cell2 tx:in value=#{testController.string2} label=string2 / /tc:cell tc:cell/ /tc:box /tc:form tc:cell /tc:cell /tc:page /f:view package test; import java.io.File; import java.util.Date; import javax.faces.event.ValueChangeEvent; import org.apache.commons.fileupload.FileItem; import org.apache.myfaces.tobago.model.SelectItem; public class TestController { private String string1; private String string2; // access methods public String action1() { string2 = string1; return success; } // Getters and Setters public String getString1() { return string1; } public void setString1(String string1) { this.string1 = string1; } public String getString2() { return string2; } public void setString2(String string2) { this.string2 = string2; } }
Re: [Tobago] Using validator in custom tag
Hi, there's no '{' in #validator.validate}); Regards Helmut Am 30.03.2010 18:53, schrieb Alf Felis: Hi all, I try to use a validator dependent on a property within a custom tag class. My class extends TagSupport and overwrites the doStartTag() method. In this method I add a validator depending on a property (see below). First the property is false and no validator will be added to the inExtensionTag. Now (next access to the page) the property will change to true and the output Setting validator! shows me, that the validator has been set. But the validator will never be called! If I always add the validator (not depending on the property), everything works fine. The validator will be called on submit. What is wrong with my approach? Is there another possibility to do what I want? Example: @Override public int doStartTag() throws JspException { InExtensionTag inExtensionTag = new InExtensionTag(); inExtensionTag.setPageContext(pageContext); inExtensionTag.setParent(getParent()); inExtensionTag.setId(id); inExtensionTag.setLabel(label); inExtensionTag.setValue(value); if (isValidationEnabled()) { System.out.println(Setting validator!); inExtensionTag.setValidator(#validator.validate}); } inExtensionTag.doStartTag(); inExtensionTag.doEndTag(); return super.doStartTag(); } Best regards, Alf
Re: [TOBAGO] Controls self-adjusted in the page
Have you had a look on the error/info log of the gridlayout renderer? It gives you several hints when it's unable to layout the controls correctly. Helmut Am 23.03.2010 04:52, schrieb Fernando Augusto: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] Controls self-adjusted in the page
All renderers are theme dependend. You can't remove scarborough because it's the base theme and it contains all renderers. If you want to remove scarborough you must implement all rendereres yourself. But you can define your own theme based on scarborough and override the css style classes. Helmut Am 23.03.2010 04:55, schrieb Fernando Augusto: Another question regarding GridLayout class... Why is it inside scarborough theme JAR instead of a core jar, that will be distributed even if I change themes and remove scarborough Fernando Em Ter, 2010-03-23 às 00:52 -0300, Fernando Augusto escreveu: Hello, While working with my app using TOBAGO 1.0.25-SNAPSOT, I found the following situation: I use GridLayout with * sizes in some rows and columns. When the page is first loaded, the page organization is quite messy, with heights and widths different from the window size. When it first repaints, the controls are ALMOST (by 50px error) aligned correctly. When the screen is repainted in the 2nd time, the controls are correctly placed. How do I fix it, so the controls can be fit the first time the page is loaded??? Best Regards, Fernando Augusto
Re: [TOBAGO] SelectOneChoice and Rendered attribute
The value of tc:attribute is *relative* to the enclosing naming container (page or subview). So value=panel (or box) should be correct. When you want to use an absolute id, you must preceed the concatenated id with an extra colon, e.g. :page:panel. When you see the value changing in the model, than the id should be correct. You can try it without Ajax also. When you omit the tc:attribute tag, the whole page should be reloaded, when the value of the selectOneChoice changes. Helmut Am 20.03.2010 15:15, schrieb Udo Schnurpfeil: You may have a type problem. Maybe the itemValue allows only Strings. When you don't set immediate=true you will see an error in that case. You can also use tc:selectItems with a class model. With that integer value should work. The value for tc:attribute is the clientId of the component: This is the chain of all naming containers. On a simple page, you have only tc:page as naming container. Put id=page then you need value=page:panel. You can check the clientId in the HTML Source Code. Am 19.03.10 19:40, schrieb Fernando Augusto: Well... Getting deeper in the problem, I've seen that the problem is in the ajax return, for it does not change the content of the box (or panel). I guess it is something related with the value passed as tc:attribute value. I've seen in a few tutorials and codes around, that addressing nested containers, you should use a long value, full of :, but I couldn't understand that part... Can someone help me with that??? Fernando Augusto escreveu: Hello, I´ve seen that the AJAX part works and the value changes, but the tx:date keeps hidden even with the right value... Any other newbie mistake in the code? Regards, Fernando Augusto Helmut Swaczinna escreveu: I think, yes, this should work too. Helmut Am 19.03.2010 15:58, schrieb ferna...@osmanager.com.br: Helmut, Can I do it with the tc:box they are inside? Regards, Fernando Augusto Hi Fernando, add a command tag to the selectOneChoice and enclose the selectOneChoice and date within a panel: tc:panel id=panel tx:selectOneChoice ... f:facet name=change tc:command tc:attribute name=renderedPartially value=panel/ /tc:command /f:facet /tx:selectOneChoice tx:date ... /tc:panel Now the panel gets reloaded by Ajax, when the selection changes. Regards Helmut
Re: [TOBAGO] SelectOneChoice and Rendered attribute
Hi Fernando, add a command tag to the selectOneChoice and enclose the selectOneChoice and date within a panel: tc:panel id=panel tx:selectOneChoice ... f:facet name=change tc:command tc:attribute name=renderedPartially value=panel/ /tc:command /f:facet /tx:selectOneChoice tx:date ... /tc:panel Now the panel gets reloaded by Ajax, when the selection changes. Regards Helmut Am 19.03.2010 15:48, schrieb ferna...@osmanager.com.br: Hello, Here I am with another newbie question (I guess I'll start a blog devoted for Tobago learning). I have the following problem: I have a SelectOneChoice with specific values. When I change this value, I want to make a few fields from the form to appear or disappear... I tried: tx:selectOneChoice label=Resultado value=#{dealer.cntNovo.tipo} tabIndex=0 immediate=true tc:selectItem itemLabel=Agendamento de Visita itemValue=1 / tc:selectItem itemLabel=Recusa de Visita itemValue=2 / tc:selectItem itemLabel=Reagendamento de Visita itemValue=3 / tc:selectItem itemLabel=Aceite de Proposta itemValue=4 / /tx:selectOneChoice tx:date label=Remarcado para value=#{dealer.cntNovo.qdo} rendered=#{dealer.cntNovo.tipo==3} / But that approach didn't worked as expected. What can I do to make this TX:DATE to appear just after the selectOneChoice change it's value to 3 and disappear with any other value??? Best Regards, Fernando Augusto
Re: [TOBAGO] SelectOneChoice and Rendered attribute
I think, yes, this should work too. Helmut Am 19.03.2010 15:58, schrieb ferna...@osmanager.com.br: Helmut, Can I do it with the tc:box they are inside? Regards, Fernando Augusto Hi Fernando, add a command tag to the selectOneChoice and enclose the selectOneChoice and date within a panel: tc:panel id=panel tx:selectOneChoice ... f:facet name=change tc:command tc:attribute name=renderedPartially value=panel/ /tc:command /f:facet /tx:selectOneChoice tx:date ... /tc:panel Now the panel gets reloaded by Ajax, when the selection changes. Regards Helmut
Re: vertical line in tobago
Hi, use an 1x1 pixel size black (or whatever) image and scale it to the desired width and height. For example: tc:panel f:facet name=layout tc:gridLayout rows=fixed columns=*;1px;*;1px;*/ /f:facet tc:link.../ tc:image value=image/px.gif/ tc:link.../ tc:image value=image/px.gif/ tc:link.../ /tc:panel You can do this for horizontal lines also. Regards Helmut katts schrieb: Hi All, Could you please let me know how to draw a vertical line in tobago.I have three links in a row and i would like to seperate each link with a small vertical line. Also could you please let me know how to show text on tobago screen. thanks, katts
Re: vertical line in tobago
Also could you please let me know how to show text on tobago screen. Sorry, don't understand this question. Helmut
Re: Trinidad vs Tobago
Hi Udo, well, this sounds good. But what about the release plan for a stable 1.1.0 version? We're thinking about lauching a new project starting with 1.1.0 to have the benefits of the new layout manager. But our project schedule is very short, so we don't have the time to deal with new bugs etc. How about the compatibility between 1.0.x and 1.1.x. Is it possible to port a 1.0.x app to 1.1.x with little effort and vice versa? Regards Helmut Udo Schnurpfeil schrieb: Hi all, let me explain the actual status of the Tobago development: We have branched the development into the tobago-1.0.x branch and the trunk which is the next major release. The tobago-1.0.x branch is stable and basis of the actual releases. The next release (1.0.21) will come up in the next days. This branch contains bugfixes and some (smaller) new features. You can see the changes of the next release here: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310273fixfor=12313470 The trunk (1.1.x) is an area of many refactorings and implementation of new features. But the status is still alpha. Here is a list of issues for the next major release: * Reimplementation of the layout management: - make renderer more independent from the layout management. - more flexible - more type of layout managers - better testability (unit tests) - better support for browser-window resizing * New tree implementation * Better support for integrating 3rd party components * Client side coordinates of action event on server side (mouse event, click event) * simplify css and javascript files * support for many tabs * improved sheet performance * more support for other renderkits and many internal refactorings (plan) * Generating tag classes and components * Enhanced tobago lifecyle with buildView layoutView (registerResource) / encodeView (renderResponse) * UIPopup should be a subform * UITab should be a naming container (which tab contains a component with a Message) * Z-Index Provider * replace prototype with dojo * replace commons-logging with slf4j * Remove deprecated methods and classes * public and internal packages(public api and internal api) * remove some static classes * improved TobagoResponseWriter for javascript (JSON) * TabGroup should be an ActionSource * TabChangeEvent should be an ActionEvent * requiredMessage validatorMessage converterMessage for all EditableValueHolder in Tobago Regards Udo kanth99 schrieb: Hi all, Thanks for your replies. Groovie wrote: On Thu, Jun 4, 2009 at 2:21 AM, Christian Groove groo...@groovesytems.de wrote: Salut Hi All, We are developing a web application with myfaces. That's fine, JSF is the cool think. I worked with Tobago, that comes with a great layout manager and some cool widgets. It is not my intention to overwhelm that nice project but it seems to be dead. The development that's totally wrong ... I hope you are right, but i looks like (for me) that the development activity slowed down. 2008 was a great year an i was lucky using this wonderful component library. Could you give us a short insight of the current development ? I switched to Richfaces and found it also useful for me. What are the advantages or drawback of one lib comparing the other? Thanks Groovy of new widgets seems not to proceed so you may better look to other Taglibs like Richfaces, Icefaces. Groovy This application needs proper navigation and UI .I have observed Trinidad has good navigation practices and other utilities.Tobago has some good layouts but not good navigation practices.both these technologies have featurs like PPR. Trinidat looks a little bit old-fashioned to me, anyway there seems to be only a little support for AJAX. could some one plaese advice us which is the better technology and the distinct features of these technologies. Thanks, Srikanth
Re: [Tobago] Unable to populate Sheet
Hi, you're using a wrong variable name in the tc:out on the sheet column. It should be item, not channel. Regards Helmut - Original Message - From: Giovanni De Stefano To: users@myfaces.apache.org Sent: Friday, December 12, 2008 12:57 PM Subject: Re: [Tobago] Unable to populate Sheet Apparently I was not supposed to attach the jsp...it was filtered out by the mail server. Here it is: -- %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc% %@ taglib uri=http://myfaces.apache.org/tobago/extension; prefix=tx% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% f:view tc:page width=800 tc:box label=Radio channel list f:facet name=layout tc:gridLayout rows=* / /f:facet f:facet name=toolBar tc:toolBar tc:toolBarCommand label=New action=newChannel/tc:toolBarCommand tc:toolBarCommand label=Edit action=editChannel/tc:toolBarCommand tc:toolBarCommand label=Delete action=deleteChannel f:facet name=confirmation tc:out value=Are you sure you want to delete the selected channel(s)? / /f:facet /tc:toolBarCommand /tc:toolBar /f:facet tc:sheet columns=* value=#{listBean.items} var=item state=#{listBean.selectedItems} showRowRange=left showPageRange=right showDirectLinks=center tc:column id=name label=Name sortable=true rendered=true tc:out value=#{channel.name} / /tc:column /tc:sheet /tc:box /tc:page /f:view -- On Fri, Dec 12, 2008 at 12:15 PM, Giovanni De Stefano giovanni.destef...@gmail.com wrote: Hello all, I have to admit I am a total noobie with MyFaces but I believe Tobago is a very powerful framework. Having said this, I cannot populate a Sheet :-( Attached are the beans, the web.xml (tobago-config.xml is pretty standard), and the JSP page that creates the Sheet. In faces-config I declare the beans: ... managed-bean descriptionItem bean/description managed-bean-nameitemBean/managed-bean-name managed-bean-classtest.ItemBean/managed-bean-class managed-bean-scoperequest/managed-bean-scope /managed-bean managed-bean descriptionList bean/description managed-bean-namelistBean/managed-bean-name managed-bean-classtest.ListBean/managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean ... I have the following jars in WEB-INF/lib folder: avalon-framework-4.1.3.jar tobago-core-1.1.0-SNAPSHOT.jar commons-beanutils-1.7.0.jar jstl-1.1.0.jar tobago-jsf-compat-1.1.0-SNAPSHOT.jar commons-collections-3.1.jar log4j-1.2.11.jar tobago-taglib-extension-1.1.0-SNAPSHOT.jar commons-digester-1.8.jar logkit-1.0.1.jar tobago-theme-charlotteville-1.1.0-SNAPSHOT.jar commons-el-1.0.jar myfaces-api-1.1.6.jar tobago-theme-richmond-1.1.0-SNAPSHOT.jar commons-fileupload-1.2.jar myfaces-impl-1.1.6.jar tobago-theme-scarborough-1.1.0-SNAPSHOT.jar commons-io-1.1.jar mysql-connector-java-5.1.7-bin.jar tobago-theme-speyside-1.1.0-SNAPSHOT.jar commons-lang-2.1.jar tobago-theme-standard-1.1.0-SNAPSHOT.jar commons-logging-1.1.jar standard-1.1.2.jar The result is that I see the box title and the empty sheet skeleton. No helpful logs. What am I missing? Thank you all in advance! Giovanni
Re: JSF servlet request in action method or navigation rule to get binary servlet data?
Hello Andreas, I don't think Tobago or JSF can clear the messages for you. But you can clear the messages on the page yourself with some javascript before the action for the PDF generation gets submitted. For example: ... action=controller.createPDF onclick=clearMessagesAndSubmit('@autoId') ... function clearMessagesAndSubmit(actionId) { // Find messages and clear them Var message = document.getElenemtById('page:message'); message.value = ; Tobago.submitAction(actionId, false); } I haven't tried this, but I think it should work. Regards Helmut - Original Message - From: Andreas Niemeyer [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Wednesday, December 10, 2008 11:11 AM Subject: Re: JSF servlet request in action method or navigation rule to get binary servlet data? Hello Bernd, Yes, I did. There seems to be no way to get previous messages away due I don't get the page reloaded. I'll open a new thread and try to describe in more detail the requirements. Thank you. Regards, Andreas Bernd Bohmann schrieb: Hello Andreas, are you calling FacesContext.getCurrentInstance().responseComplete() ? Regards Bernd Andreas Niemeyer schrieb: Hello Bernd, Thank you for response. Unfortunatly I have to use this servlet as a pdf dynamic provider. The redirect works fine so far, but another thing happened. Due some validation rules in the same method, a previous custom FacesMessage stays displayed and only after a page reload it goes away. Have someone an idea? Regards, Andreas Bernd Bohmann schrieb: Hello Andreas, maybe this help: http://wiki.apache.org/myfaces/Sending_Files You don't need a Servlet for sending binary data from jsf. The magic is the responseComplete() method. Please look at the Section 2.1.3 Faces Request Generates Non-Faces Response of the jsf 1.1 spec. Regards Bernd Andreas Niemeyer schrieb: Hi, I would like to send form data from a JSF page for a servlet request with a navigation rule. The servlet returns a content type of application/pdf and is running in a context path. If I call it from within a action method, it works with following code: public String createPDFReport() { ... FacesContext context = FacesContext.getCurrentInstance(); ExternalContext ext = context.getExternalContext(); String vServletPath = /context_path/pdf-test; ext.redirect(ext.encodeResourceURL(vServletPath)); ... return call_servlet; } My context is a portal, I'm using the JSF portal bridge. The web.xml looks like: ... servlet servlet-namepdf-test/servlet-name servlet-classcom.xxx.PDFTest/servlet-class load-on-startup20/load-on-startup /servlet... I would like to avoid to send a redirect and would prefer to create a navigation rule in the faces-config, but it fails with an exception arised from my GenericPortlet ... public class JSFGenericPortlet extends org.apache.myfaces.portlet.MyFacesGenericPortlet { ... public void render(RenderRequest req, RenderResponse res) throws IOException, PortletException { ... super.render(req, res); } ... } javax.portlet.PortletException: String index out of range: -1 at org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:310) at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:502) at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:323) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328) at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) at com.gutzmann.portlets.JSFGenericPortlet.render(JSFGenericPortlet.java:73) The navigation rule looks like: navigation-rule from-view-id/pages/view.xhtml/from-view-id navigation-case from-outcomecall_servlet/from-outcome to-view-id/pdf-test//to-view-id /navigation-case /navigation-rule I tried also `to-view-id/context_path/pdf-test//to-view-id' - same exception. What is the best practice to do such redirect / servlet calls? If request parameter should be changed, how would it work in the action method? Many thanks fro some help! Regards, Andreas
[Tobago] Problem with NonFacesRequestServlet
Hi, I just tried to use the NonFacesRequestServlet but I got a problem I can't solve. The servlet is called and the initial page is displayed as expexted. But when I execute an action on the page the URL is prepended with the servlet name and cannot be resolved: This is the initial URL wich calls the NonFacesRequestServlet http://localhost:8080/MyWebapp/OpenMediaRequest.jsf?titel=abc When I execute an action the URL is http://localhost:8080/MyWebapp/OpenMediaRequest.jsf/edit.xml;jsessionid=59135BB960B04D4B759D5ECFAB6074FA This is my web.xml context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xml/param-value /context-param servlet servlet-nameFacesServlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup3/load-on-startup /servlet servlet servlet-nameOpenMediaRequestServlet/servlet-name servlet-classde.wlps.ndr.workflow.beitragsid.webapp.web.OpenMediaRequestServlet/servlet-class load-on-startup1/load-on-startup /servlet and my faces-config.xml navigation-rule navigation-case from-outcomeedit/from-outcome to-view-id/edit.xml/to-view-id /navigation-case /navigation-rule This is the NonFacesRequestServlet public class OpenMediaRequestServlet extends NonFacesRequestServlet { private static final Log LOG = LogFactory.getLog(OpenMediaRequestServlet.class); public String invokeApplication(FacesContext facesContext) { String titel = (String)facesContext.getExternalContext().getRequestParameterMap().get(titel); LOG.info(invokeApplication: titel=' + titel + '); return edit; } } Did I something wrong? I don't think so. I'm using Tobago 1.013. Please help! Regards Helmut
[Tobago] Problem with NonFacesRequestServlet (correction)
Hi, I just tried to use the NonFacesRequestServlet but I got a problem I can't solve. The servlet is called and the initial page is displayed as expexted. But when I execute an action on the page the URL is prepended with the servlet name and cannot be resolved: This is the initial URL wich calls the NonFacesRequestServlet http://localhost:8080/MyWebapp/OpenMediaRequest.jsf?titel=abc When I execute an action the URL is http://localhost:8080/MyWebapp/OpenMediaRequest.jsf/edit.xml;jsessionid=59135BB960B04D4B759D5ECFAB6074FA This is my web.xml context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xml/param-value /context-param servlet servlet-nameFacesServlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup3/load-on-startup /servlet servlet servlet-nameOpenMediaRequestServlet/servlet-name servlet-classde.wlps.ndr.workflow.beitragsid.webapp.web.OpenMediaRequestServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFacesServlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet-mapping servlet-nameOpenMediaRequestServlet/servlet-name url-pattern/OpenMediaRequest.jsf/url-pattern /servlet-mapping and my faces-config.xml navigation-rule navigation-case from-outcomeedit/from-outcome to-view-id/edit.xml/to-view-id /navigation-case /navigation-rule This is the NonFacesRequestServlet public class OpenMediaRequestServlet extends NonFacesRequestServlet { private static final Log LOG = LogFactory.getLog(OpenMediaRequestServlet.class); public String invokeApplication(FacesContext facesContext) { String titel = (String)facesContext.getExternalContext().getRequestParameterMap().get(titel); LOG.info(invokeApplication: titel=' + titel + '); return edit; } } Did I something wrong? I don't think so. I'm using Tobago 1.013. Please help! Regards Helmut
Re: [Tobago] Problem with NonFacesRequestServlet (correction)
Hi Bernd, yes, I forgot to say that I'm using facelets. And I'm using myfaces 1.1.5. Hm, is there no chance to use the NonFacesRequestServlet with facelets and myfaces impl? In the meantime, I experimented with a standard HTTPServlet and redirect instead of jsf navigation. This approach seems to work. Regards and thanks Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, December 09, 2008 3:54 PM Subject: Re: [Tobago] Problem with NonFacesRequestServlet (correction) Hello Helmut, I asume you are using facelets? Which JSF Implementation are you using? In a internal project I switched from myfaces impl to sun ri because of this issue. Regards Bernd Helmut Swaczinna schrieb: Hi, I just tried to use the NonFacesRequestServlet but I got a problem I can't solve. The servlet is called and the initial page is displayed as expexted. But when I execute an action on the page the URL is prepended with the servlet name and cannot be resolved: This is the initial URL wich calls the NonFacesRequestServlet http://localhost:8080/MyWebapp/OpenMediaRequest.jsf?titel=abc When I execute an action the URL is http://localhost:8080/MyWebapp/OpenMediaRequest.jsf/edit.xml;jsessionid=59135BB960B04D4B759D5ECFAB6074FA This is my web.xml context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xml/param-value /context-param servlet servlet-nameFacesServlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup3/load-on-startup /servlet servlet servlet-nameOpenMediaRequestServlet/servlet-name servlet-classde.wlps.ndr.workflow.beitragsid.webapp.web.OpenMediaRequestServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFacesServlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet-mapping servlet-nameOpenMediaRequestServlet/servlet-name url-pattern/OpenMediaRequest.jsf/url-pattern /servlet-mapping and my faces-config.xml navigation-rule navigation-case from-outcomeedit/from-outcome to-view-id/edit.xml/to-view-id /navigation-case /navigation-rule This is the NonFacesRequestServlet public class OpenMediaRequestServlet extends NonFacesRequestServlet { private static final Log LOG = LogFactory.getLog(OpenMediaRequestServlet.class); public String invokeApplication(FacesContext facesContext) { String titel = (String)facesContext.getExternalContext().getRequestParameterMap().get(titel); LOG.info(invokeApplication: titel=' + titel + '); return edit; } } Did I something wrong? I don't think so. I'm using Tobago 1.013. Please help! Regards Helmut
Re: [Tobago] a listbox in a popup
Hi Tobi, I think it should work with an ActionListener but I prefer to use Actions for buttons. In this case returning null or void. One reason for not calling the ActionListener may be a wrong method signature. Must be public void onNew(ActionEvent e). Case 4: The id in the renderedPartially attribute is wrong. First, the box is not a naming container, so it is not part of the id, and second, the listbox is not an Ajax component (afaik), so it must be enclosed in a panel or just the box you already have. Hope that helps Helmut - Original Message - From: Tobias Reifenstuel [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Sunday, May 18, 2008 12:55 PM Subject: Re: [Tobago] a listbox in a popup Hi Helmut, thanks for the fast answer. I tried your suggestion, but it still doesn't work. Here are my further tries: Case 3 (see code from the first mail except the part wiht the Add button) I changed this part of the code: tc:attribute name=renderedPartially value=:page:popup:box / The box seems to be reloaded (for a second I can see the scrollbar), but without the new value should be added over the onNew method (ActionListener). If I look into my logs the method is never called, but why? It is only called if I drop the renderedPartially attribute. Case 4 tc:attribute name=renderedPartially value=:page:popup:box:listbox / Here the popup doesn't even show up. By the way I am using Tobago 1.0.16 Thanks for any help. Tobi Helmut Swaczinna schrieb: Hi, you should render partially the box or panel inside the popup not the popup itself when the App button is clicked. Helmut - Original Message - From: Tobias Reifenstuel [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Friday, May 16, 2008 5:03 PM Subject: [Tobago] a listbox in a popup Hi All, I have a problem with building a popup with a listbox. Case 1 (see code below): If I click on the Add button the popup will be partially rendered, but without the new entry inside the listbox. The new entry should be added by the actionListener. Case 2 (also code below, but without the attribute tag inside the Add button tags): If I drop the tag tc:attribute name=renderedPartially value=:page:popup / within the Add button tags, the popup disappears after clicking on the button Add. I can open it again and the new entry is available, but this is not very user-friendly. For me it seems that the combination of actionListener and renderedPartially doesn't work. tc:popup id=popup width=300px height=200px tc:box id=box label=Author input f:facet name=layout tc:gridLayout rows=*;50px/ /f:facet tc:selectOneListbox id=listbox value=#{author.selectedAuthor} f:selectItems value=#{author.authors} / /tc:selectOneListbox tc:panel id=buttons f:facet name=layout tc:gridLayout columns=*;*;* / /f:facet tc:button actionListener=#{author.onNew} label=Add tc:attribute name=renderedPartially value=:page:popup / /tc:button tc:button label=Ok tc:attribute name=popupClose value=afterSubmit / tc:attribute name=renderedPartially value=:page:popup / /tc:button tc:button label=Cancel tc:attribute name=popupClose value=immediate / /tc:button tc:cell / /tc:panel /tc:box /tc:popup Thanks for any helping. Tobi
Re: [Tobago] Popup and navigation
Hi, have you tried to return null from the submit method in case the popup should be displayed? Helmut - Original Message - From: ben_p [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Friday, May 16, 2008 4:44 PM Subject: [Tobago] Popup and navigation Hi All, I am trying to do something I believe to be very fundamental with Tobago v1.0.13. I want to click a button which will ultimately retrieve some results from a database and display them in a subsequent screen. However if the results returned are large I want a popup to come up which informs the user of the number returned and provides the option of continuing to the next screen or cancelling. To abstract away from the actual case I simple want the following InputScreen.jsp-click button- popup (ok/cancel) -NewScreen.jsp or InputScreen.jsp. I have tried allsorts of permeatations with actions and actionListeners and below is my current efforts. It seems that the only way to get the popup to show is if the submit method has a void return type, but this is useless for navigation and I can't get the actionListener to somehow come in and display the popup. As the submit method below has a return type of String the popup is not shown and navigation to the next screen occurs. changing the return type to void means the popup get displayed but there is no navigation to the next screen. Firstly my InputScreen.jsp: tc:button label=Open Popup action=#{InputScreenBean.submit} actionListener=#{InputScreenBean.myActionListener} immediate=true f:facet name=popup tc:popup width=300 height=270 rendered=#{InputScreenBean.popup tc:box label=Popup Title tc:panel f:facet name=layout tc:gridLayout rows=fixed;fixed;fixed;fixed / /f:facet tc:in value=#{InputScreenBean.myData1} / tc:cell / tc:button label=OK tc:attribute name=popupClose value=afterSubmit / /tc:button tc:button label=Cancel tc:attribute name=popupClose value=immediate / /tc:button /tc:panel /tc:box /tc:popup /f:facet /tc:button Secondly my InputScreenBean.java: public void myActionListener(ActionEvent event) { System.out.println(in action event); setPopup(true); System.out.println(rendering response); // I have tried with and without this cxt.renderResponse(); } // the only way to get the popup to show is if this // method is of return type void. but then I can't // do my navigation! public String submit() { try { System.out.println(in InputScreenBean.submit ); setPopup(true); } catch (Exception e) { System.out.println(Error in submit()); e.printStackTrace(); return failure; } return success; } Any help greatly appreciated. Ben. -- View this message in context: http://www.nabble.com/-Tobago--Popup-and-navigation-tp17276445p17276445.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Tobago] a listbox in a popup
Hi, you should render partially the box or panel inside the popup not the popup itself when the App button is clicked. Helmut - Original Message - From: Tobias Reifenstuel [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Friday, May 16, 2008 5:03 PM Subject: [Tobago] a listbox in a popup Hi All, I have a problem with building a popup with a listbox. Case 1 (see code below): If I click on the Add button the popup will be partially rendered, but without the new entry inside the listbox. The new entry should be added by the actionListener. Case 2 (also code below, but without the attribute tag inside the Add button tags): If I drop the tag tc:attribute name=renderedPartially value=:page:popup / within the Add button tags, the popup disappears after clicking on the button Add. I can open it again and the new entry is available, but this is not very user-friendly. For me it seems that the combination of actionListener and renderedPartially doesn't work. tc:popup id=popup width=300px height=200px tc:box label=Author input f:facet name=layout tc:gridLayout rows=*;50px/ /f:facet tc:selectOneListbox id=listbox value=#{author.selectedAuthor} f:selectItems value=#{author.authors} / /tc:selectOneListbox tc:panel id=buttons f:facet name=layout tc:gridLayout columns=*;*;* / /f:facet tc:button actionListener=#{author.onNew} label=Add tc:attribute name=renderedPartially value=:page:popup / /tc:button tc:button label=Ok tc:attribute name=popupClose value=afterSubmit / tc:attribute name=renderedPartially value=:page:popup / /tc:button tc:button label=Cancel tc:attribute name=popupClose value=immediate / /tc:button tc:cell / /tc:panel /tc:box /tc:popup Thanks for any helping. Tobi
Re: [Tobago] Can't build from current sources
Hello Bernd, ok, it works now. The patched popup code works also. Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, March 19, 2008 7:40 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, tobago-core has split into tobago-core, tobago-taglib-extension(tx) and tobago-jsf-compat. tobago-jsf-compat manages the differences between jsf 1.1 and jsf 1.2. At the end of the road maybe tobago 1.1 is jsf 1.1 and jsf 1.2 compatible. Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, I've done so. Building is ok. But now I can't even deploy my test app: 2008-03-19 11:56:32 ContainerBackgroundProcessor[StandardEngine[Catalina]] ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tob ago-test]:3731 - Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/myfaces/tobago/compat/InvokeOnComponent at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1779) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.getConstructor(Class.java:1629) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:677) ... The tobago-example-demo can be deployed and works partially. There're are some exceptions. I'll give up testing with 1.1.0 for now. Maybe I'll try it again in some weeks. (I've done all this only because I wanted to test the patch for TOBAGO-325 with 1.1.0. So it still stays untestet.) Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, March 18, 2008 10:32 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, found some missing uncommited files. Please perform a svn up and a mvn -P all-modules clean install. Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, do you mean Are the class files for components and tags generated now?. Yes, they are. But my test app doesn't run at all with 1.1.0: java.lang.ClassCastException: org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer at org.apache.myfaces.tobago.renderkit.AbstractLayoutableRendererBaseWrapper.getLayoutableRenderer(AbstractLayoutableRendererBaseWrapper.java: 70) at org.apache.myfaces.tobago.renderkit.AbstractLayoutableRendererBaseWrapper.getComponentExtraWidth(AbstractLayoutableRendererBaseWrapper.java :42) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.layoutSpace(HtmlRendererUtil.java:359) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.layoutWidth(HtmlRendererUtil.java:313) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.prepareRender(HtmlRendererUtil.java:97) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:113) at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:80) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539) ... This exception occurs immediately on every page. Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, March 18, 2008 6:06 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, the package-info.java contains the information for generating the tlds. package-info.java can be excluded for tobago-components and tobago-faces-config. Are the components and tags generated now? Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the tobago-components execution. So there's no error in tobago-components but it's then in tobago-faces-config. So I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude excludeorg/apache/myfaces/tobago/taglib/extension/package-info.java/exclude to tobago-faces-config. Then it builds
Re: [Tobago] Can't build from current sources
Hello Bernd, I've done so. Building is ok. But now I can't even deploy my test app: 2008-03-19 11:56:32 ContainerBackgroundProcessor[StandardEngine[Catalina]] ERROR - org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tob ago-test]:3731 - Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/myfaces/tobago/compat/InvokeOnComponent at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1779) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.getConstructor(Class.java:1629) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:677) ... The tobago-example-demo can be deployed and works partially. There're are some exceptions. I'll give up testing with 1.1.0 for now. Maybe I'll try it again in some weeks. (I've done all this only because I wanted to test the patch for TOBAGO-325 with 1.1.0. So it still stays untestet.) Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, March 18, 2008 10:32 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, found some missing uncommited files. Please perform a svn up and a mvn -P all-modules clean install. Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, do you mean Are the class files for components and tags generated now?. Yes, they are. But my test app doesn't run at all with 1.1.0: java.lang.ClassCastException: org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer at org.apache.myfaces.tobago.renderkit.AbstractLayoutableRendererBaseWrapper.getLayoutableRenderer(AbstractLayoutableRendererBaseWrapper.java: 70) at org.apache.myfaces.tobago.renderkit.AbstractLayoutableRendererBaseWrapper.getComponentExtraWidth(AbstractLayoutableRendererBaseWrapper.java :42) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.layoutSpace(HtmlRendererUtil.java:359) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.layoutWidth(HtmlRendererUtil.java:313) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.prepareRender(HtmlRendererUtil.java:97) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:113) at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:80) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539) ... This exception occurs immediately on every page. Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, March 18, 2008 6:06 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, the package-info.java contains the information for generating the tlds. package-info.java can be excluded for tobago-components and tobago-faces-config. Are the components and tags generated now? Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the tobago-components execution. So there's no error in tobago-components but it's then in tobago-faces-config. So I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude excludeorg/apache/myfaces/tobago/taglib/extension/package-info.java/exclude to tobago-faces-config. Then it builds. But excluding the package-infos is only a workaround not the solution to the problem, right? Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 8:57 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, i think this is a problem with jdk 1.5, windows and the annotation processing tool. Please add excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the excludes section of the tobago-components execution. I think Arvid tries the build
Re: [Tobago] Can't build from current sources
Hello Bernd, I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the tobago-components execution. So there's no error in tobago-components but it's then in tobago-faces-config. So I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude excludeorg/apache/myfaces/tobago/taglib/extension/package-info.java/exclude to tobago-faces-config. Then it builds. But excluding the package-infos is only a workaround not the solution to the problem, right? Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 8:57 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, i think this is a problem with jdk 1.5, windows and the annotation processing tool. Please add excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the excludes section of the tobago-components execution. I think Arvid tries the build with jdk 1.6, but it should work with jdk 1.5, too. Can you try the suggestion, please. Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, execution id tobago-components is called but leads to an error: [INFO] [apt:execute {execution: tobago-components}] [ERROR] C:/Projekte/jsf/tobago-new/core/src/main/java/org/apache/myfaces/tobago/taglib/component/pac kage-info.java:9: package annotations should be in file package-info.java fileName = tobago.tld, displayName = Tobago Components) package org.apache.myfaces.tobago.ta glib.component; This is the content of package-info.java: @org.apache.myfaces.tobago.apt.annotation.Taglib( shortName = tc, uri = http://myfaces.apache.org/tobago/component;, listener = org.apache.myfaces.tobago.webapp.TobagoServletContextListener, fileName = tobago.tld, displayName = Tobago Components) package org.apache.myfaces.tobago.taglib.component; I think the problem is in tobago-tlds: [INFO] [apt:execute {execution: tobago-tlds}] C:\Projekte\jsf\tobago-new\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectManyC heckboxExtensionTag.java:40: cannot find symbol symbol : class SelectManyCheckboxTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.SelectManyCheckboxTag; ^ ... Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 6:39 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, we test a fresh build on arvids windows machine. Can you check why the execution of the maven-apt-plugin with the execution id tobago-components is not called? Just tried a sucessful fresh build from source on my linux machine. The build of tobago-core on the continuum server is sucessful, too (solaris-x86.) Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, it still does not build. I've done a svn update and a mvn clean install but get the same result. C:\Projekte\jsf\tobago-src\tools\svn-win32-1.4.2\bin\svn update U theme\scarborough\src\main\java\org\apache\myfaces\tobago\renderkit\html\scarborough\standard\t ag\GridLayoutRenderer.java U core\src\main\java\org\apache\myfaces\tobago\taglib\component\MenuSelectOneTagDeclaration.java U core\src\main\java\org\apache\myfaces\tobago\taglib\component\MenuSelectBooleanTagDeclaration.j ava U core\src\main\java\org\apache\myfaces\tobago\webapp\TobagoMultipartFormdataFilter.java U extension\facelets\src\main\java\org\apache\myfaces\tobago\facelets\TobagoComponentHandler.java U extension\facelets\src\main\java\org\apache\myfaces\tobago\facelets\extension\TobagoLabelExtens ionHandler.java Aktualisiert zu Revision 637965. C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn clean install ... Did you already checked in your changes? Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 4:21 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, can you try again with a mvn clean install. Arvid and me just sort out some issues with windows. I changed the build to generate more components and tags from the annotation metadata. Regards Bernd Helmut Swaczinna schrieb: Hi, just checkedout the current (1.1.x) sources but get lots of errors when building with mvn install in the main directory: C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn install [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/myfaces/5/myfaces-5.pom 28K downloaded [INFO] Reactor build order: [INFO] Apache Tobago [INFO] Tobago Tool [INFO] Maven Apt Plugin [INFO] Maven Tobago Theme Plugin [INFO] Tobago Annotation [INFO] Tobago Apt [INFO] Tobago Core [INFO] Tobago Themes [INFO] Theme Standard
Re: [Tobago] Can't build from current sources
Hello Bernd, do you mean Are the class files for components and tags generated now?. Yes, they are. But my test app doesn't run at all with 1.1.0: java.lang.ClassCastException: org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer at org.apache.myfaces.tobago.renderkit.AbstractLayoutableRendererBaseWrapper.getLayoutableRenderer(AbstractLayoutableRendererBaseWrapper.java: 70) at org.apache.myfaces.tobago.renderkit.AbstractLayoutableRendererBaseWrapper.getComponentExtraWidth(AbstractLayoutableRendererBaseWrapper.java :42) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.layoutSpace(HtmlRendererUtil.java:359) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.layoutWidth(HtmlRendererUtil.java:313) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.prepareRender(HtmlRendererUtil.java:97) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:113) at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:80) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539) ... This exception occurs immediately on every page. Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, March 18, 2008 6:06 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, the package-info.java contains the information for generating the tlds. package-info.java can be excluded for tobago-components and tobago-faces-config. Are the components and tags generated now? Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the tobago-components execution. So there's no error in tobago-components but it's then in tobago-faces-config. So I added excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude excludeorg/apache/myfaces/tobago/taglib/extension/package-info.java/exclude to tobago-faces-config. Then it builds. But excluding the package-infos is only a workaround not the solution to the problem, right? Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 8:57 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, i think this is a problem with jdk 1.5, windows and the annotation processing tool. Please add excludeorg/apache/myfaces/tobago/taglib/component/package-info.java/exclude to the excludes section of the tobago-components execution. I think Arvid tries the build with jdk 1.6, but it should work with jdk 1.5, too. Can you try the suggestion, please. Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, execution id tobago-components is called but leads to an error: [INFO] [apt:execute {execution: tobago-components}] [ERROR] C:/Projekte/jsf/tobago-new/core/src/main/java/org/apache/myfaces/tobago/taglib/component/pac kage-info.java:9: package annotations should be in file package-info.java fileName = tobago.tld, displayName = Tobago Components) package org.apache.myfaces.tobago.ta glib.component; This is the content of package-info.java: @org.apache.myfaces.tobago.apt.annotation.Taglib( shortName = tc, uri = http://myfaces.apache.org/tobago/component;, listener = org.apache.myfaces.tobago.webapp.TobagoServletContextListener, fileName = tobago.tld, displayName = Tobago Components) package org.apache.myfaces.tobago.taglib.component; I think the problem is in tobago-tlds: [INFO] [apt:execute {execution: tobago-tlds}] C:\Projekte\jsf\tobago-new\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectManyC heckboxExtensionTag.java:40: cannot find symbol symbol : class SelectManyCheckboxTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.SelectManyCheckboxTag; ^ ... Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 6:39 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, we test a fresh build on arvids windows machine. Can you check why the execution of the maven-apt-plugin with the execution id tobago-components is not called? Just tried a sucessful fresh build from source on my linux machine. The build of tobago-core on the continuum server is sucessful, too (solaris-x86.) Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, it still does not build. I've done a svn update and a mvn clean install but get the same result. C:\Projekte\jsf\tobago-src\tools\svn-win32-1.4.2\bin\svn update U theme\scarborough\src\main\java\org\apache\myfaces
Re: [Tobago] Can't build from current sources
Hello Bernd, it still does not build. I've done a svn update and a mvn clean install but get the same result. C:\Projekte\jsf\tobago-src\tools\svn-win32-1.4.2\bin\svn update U theme\scarborough\src\main\java\org\apache\myfaces\tobago\renderkit\html\scarborough\standard\t ag\GridLayoutRenderer.java U core\src\main\java\org\apache\myfaces\tobago\taglib\component\MenuSelectOneTagDeclaration.java U core\src\main\java\org\apache\myfaces\tobago\taglib\component\MenuSelectBooleanTagDeclaration.j ava U core\src\main\java\org\apache\myfaces\tobago\webapp\TobagoMultipartFormdataFilter.java U extension\facelets\src\main\java\org\apache\myfaces\tobago\facelets\TobagoComponentHandler.java U extension\facelets\src\main\java\org\apache\myfaces\tobago\facelets\extension\TobagoLabelExtens ionHandler.java Aktualisiert zu Revision 637965. C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn clean install ... Did you already checked in your changes? Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 4:21 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, can you try again with a mvn clean install. Arvid and me just sort out some issues with windows. I changed the build to generate more components and tags from the annotation metadata. Regards Bernd Helmut Swaczinna schrieb: Hi, just checkedout the current (1.1.x) sources but get lots of errors when building with mvn install in the main directory: C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn install [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/myfaces/5/myfaces-5.pom 28K downloaded [INFO] Reactor build order: [INFO] Apache Tobago [INFO] Tobago Tool [INFO] Maven Apt Plugin [INFO] Maven Tobago Theme Plugin [INFO] Tobago Annotation [INFO] Tobago Apt [INFO] Tobago Core [INFO] Tobago Themes [INFO] Theme Standard [INFO] Theme Scarborough [INFO] Theme Speyside [INFO] Theme Richmond [INFO] Theme Charlotteville [INFO] [INFO] Building Apache Tobago [INFO]task-segment: [install] [INFO] ... no errors until now ... [INFO] [INFO] Building Tobago Core [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 438 source files to C:\Projekte\jsf\tobago-src\core\target\classes [INFO] [apt:execute {execution: tobago-tlds}] C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectOneC oiceExtensionTag.java:22: cannot find symbol symbol : class SelectOneChoiceTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.SelectOneChoiceTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:25: cannot find symbol symbol : class GridLayoutTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.GridLayoutTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:26: cannot find symbol symbol : class LabelTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.LabelTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:27: cannot find symbol symbol : class PanelTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.PanelTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectOneC oiceExtensionTag.java:76: cannot find symbol symbol : class SelectOneChoiceTag location: class org.apache.myfaces.tobago.taglib.extension.SelectOneChoiceExtensionTag private SelectOneChoiceTag selectOneChoiceTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:54: cannot find symbol symbol : class PanelTag location: class org.apache.myfaces.tobago.taglib.extension.LabelExtensionTag private PanelTag panelTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\FileExtens onTag.java:22: cannot find symbol symbol : class FileTag location: package
Re: [Tobago] Can't build from current sources
Hello Bernd, execution id tobago-components is called but leads to an error: [INFO] [apt:execute {execution: tobago-components}] [ERROR] C:/Projekte/jsf/tobago-new/core/src/main/java/org/apache/myfaces/tobago/taglib/component/pac kage-info.java:9: package annotations should be in file package-info.java fileName = tobago.tld, displayName = Tobago Components) package org.apache.myfaces.tobago.ta glib.component; This is the content of package-info.java: @org.apache.myfaces.tobago.apt.annotation.Taglib( shortName = tc, uri = http://myfaces.apache.org/tobago/component;, listener = org.apache.myfaces.tobago.webapp.TobagoServletContextListener, fileName = tobago.tld, displayName = Tobago Components) package org.apache.myfaces.tobago.taglib.component; I think the problem is in tobago-tlds: [INFO] [apt:execute {execution: tobago-tlds}] C:\Projekte\jsf\tobago-new\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectManyC heckboxExtensionTag.java:40: cannot find symbol symbol : class SelectManyCheckboxTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.SelectManyCheckboxTag; ^ ... Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 6:39 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, we test a fresh build on arvids windows machine. Can you check why the execution of the maven-apt-plugin with the execution id tobago-components is not called? Just tried a sucessful fresh build from source on my linux machine. The build of tobago-core on the continuum server is sucessful, too (solaris-x86.) Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, it still does not build. I've done a svn update and a mvn clean install but get the same result. C:\Projekte\jsf\tobago-src\tools\svn-win32-1.4.2\bin\svn update U theme\scarborough\src\main\java\org\apache\myfaces\tobago\renderkit\html\scarborough\standard\t ag\GridLayoutRenderer.java U core\src\main\java\org\apache\myfaces\tobago\taglib\component\MenuSelectOneTagDeclaration.java U core\src\main\java\org\apache\myfaces\tobago\taglib\component\MenuSelectBooleanTagDeclaration.j ava U core\src\main\java\org\apache\myfaces\tobago\webapp\TobagoMultipartFormdataFilter.java U extension\facelets\src\main\java\org\apache\myfaces\tobago\facelets\TobagoComponentHandler.java U extension\facelets\src\main\java\org\apache\myfaces\tobago\facelets\extension\TobagoLabelExtens ionHandler.java Aktualisiert zu Revision 637965. C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn clean install ... Did you already checked in your changes? Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, March 17, 2008 4:21 PM Subject: Re: [Tobago] Can't build from current sources Hello Helmut, can you try again with a mvn clean install. Arvid and me just sort out some issues with windows. I changed the build to generate more components and tags from the annotation metadata. Regards Bernd Helmut Swaczinna schrieb: Hi, just checkedout the current (1.1.x) sources but get lots of errors when building with mvn install in the main directory: C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn install [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/myfaces/5/myfaces-5.pom 28K downloaded [INFO] Reactor build order: [INFO] Apache Tobago [INFO] Tobago Tool [INFO] Maven Apt Plugin [INFO] Maven Tobago Theme Plugin [INFO] Tobago Annotation [INFO] Tobago Apt [INFO] Tobago Core [INFO] Tobago Themes [INFO] Theme Standard [INFO] Theme Scarborough [INFO] Theme Speyside [INFO] Theme Richmond [INFO] Theme Charlotteville [INFO] [INFO] Building Apache Tobago [INFO]task-segment: [install] [INFO] ... no errors until now ... [INFO] [INFO] Building Tobago Core [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 438 source files to C:\Projekte\jsf\tobago-src\core\target\classes [INFO] [apt:execute {execution: tobago-tlds}] C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectOneC oiceExtensionTag.java:22: cannot find symbol symbol : class SelectOneChoiceTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.SelectOneChoiceTag
[Tobago] Can't build from current sources
Hi, just checkedout the current (1.1.x) sources but get lots of errors when building with mvn install in the main directory: C:\Projekte\jsf\tobago-src\tools\maven-2.0.7\bin\mvn install [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/myfaces/5/myfaces-5.pom 28K downloaded [INFO] Reactor build order: [INFO] Apache Tobago [INFO] Tobago Tool [INFO] Maven Apt Plugin [INFO] Maven Tobago Theme Plugin [INFO] Tobago Annotation [INFO] Tobago Apt [INFO] Tobago Core [INFO] Tobago Themes [INFO] Theme Standard [INFO] Theme Scarborough [INFO] Theme Speyside [INFO] Theme Richmond [INFO] Theme Charlotteville [INFO] [INFO] Building Apache Tobago [INFO]task-segment: [install] [INFO] ... no errors until now ... [INFO] [INFO] Building Tobago Core [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 438 source files to C:\Projekte\jsf\tobago-src\core\target\classes [INFO] [apt:execute {execution: tobago-tlds}] C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectOneC oiceExtensionTag.java:22: cannot find symbol symbol : class SelectOneChoiceTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.SelectOneChoiceTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:25: cannot find symbol symbol : class GridLayoutTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.GridLayoutTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:26: cannot find symbol symbol : class LabelTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.LabelTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:27: cannot find symbol symbol : class PanelTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.PanelTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\SelectOneC oiceExtensionTag.java:76: cannot find symbol symbol : class SelectOneChoiceTag location: class org.apache.myfaces.tobago.taglib.extension.SelectOneChoiceExtensionTag private SelectOneChoiceTag selectOneChoiceTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\LabelExten ionTag.java:54: cannot find symbol symbol : class PanelTag location: class org.apache.myfaces.tobago.taglib.extension.LabelExtensionTag private PanelTag panelTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\FileExtens onTag.java:22: cannot find symbol symbol : class FileTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.FileTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\FileExtens onTag.java:73: cannot find symbol symbol : class FileTag location: class org.apache.myfaces.tobago.taglib.extension.FileExtensionTag private FileTag fileTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\InExtensio Tag.java:22: cannot find symbol symbol : class InTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.InTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\InExtensio Tag.java:89: cannot find symbol symbol : class InTag location: class org.apache.myfaces.tobago.taglib.extension.InExtensionTag private InTag inTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\TimeExtens onTag.java:22: cannot find symbol symbol : class TimeTag location: package org.apache.myfaces.tobago.internal.taglib import org.apache.myfaces.tobago.internal.taglib.TimeTag; ^ C:\Projekte\jsf\tobago-src\core\src\main\java\org\apache\myfaces\tobago\taglib\extension\TimeExtens onTag.java:84:
[Tobago] Popup rendered twice
Hi, I discovered a strange behavior: The same popup is rendered twice in the HTML code. With the same id and the same content ids. This is an extract from the generated HTML: ...div id=usersPage:insertPasswordPopup class=tobago-popup-default onclick=Tobago.popupBlink('usersPage:insertPasswordPopup') style=background: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/worklist/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/popupBg.png', sizingMethod='scale'); /diviframe id=usersPage:insertPasswordPopup::iframe class=tobago-popup-iframe tobago-popup-none style=width: 1012; height: 640; src=javascript:false; frameborder=0 /iframediv id=usersPage:insertPasswordPopup::content class=tobago-popup-content tobago-popup-none style=width: 300; height: 150; div class=tobago-box-default id=usersPage:insertPasswordPopup:_idJsp405 style=width:300px; height:149px; ... !-- Tobago.setupPopup('usersPage:insertPasswordPopup', 'null', 'null', true); // -- /script/divdiv id=usersPage:insertPasswordPopup class=tobago-popup-default onclick=Tobago.popupBlink('usersPage:insertPasswordPopup') style=background: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/worklist/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/popupBg.png', sizingMethod='scale'); /diviframe id=usersPage:insertPasswordPopup::iframe class=tobago-popup-iframe tobago-popup-none style=width: 1012; height: 640; src=javascript:false; frameborder=0 /iframediv id=usersPage:insertPasswordPopup::content class=tobago-popup-content tobago-popup-none style=width: 300; height: 150; div class=tobago-box-default id=usersPage:insertPasswordPopup:_idJsp405 style=width:300px; height:149px; ... !-- Tobago.setupPopup('usersPage:insertPasswordPopup', 'null', 'null', true); // -- /script... I can't reproduce this in a simple example but the structure of the page looks like this: JSP: f:view tc:page id=inputPage width=300px height=200px tc:panel tc:button label=Popup1 action=#{controller.buttonAction} f:facet name=popup tc:popup id=popup1 width=100 height=100 rendered=#{controller.popup1} tc:box label=Popup1 f:facet name=layout tc:gridLayout rows=* columns=*/ /f:facet tc:out value=Popup1/ tc:button label=close action=#{controller.popup1Action} tc:attribute name=popupClose value=afterSubmit/ /tc:button /tc:box /tc:popup /f:facet /tc:button tc:popup id=popup2 width=100 height=100 rendered=#{controller.popup2} tc:box label=Popup2 f:facet name=layout tc:gridLayout rows=* columns=*/ /f:facet tc:out value=Popup2/ tc:button label=close action=#{controller.popup2Action} tc:attribute name=popupClose value=afterSubmit/ /tc:button /tc:box /tc:popup /tc:panel /tc:page /f:view Java: private boolean showPopup1; private boolean showPopup2; public void buttonAction() { showPopup1 = true; showPopup2 = false; } public void popup1Action() { showPopup1 = false; showPopup2 = true; } public void popup2Action() { showPopup1 = false; showPopup2 = false; } public boolean isPopup1() { return showPopup1; } public boolean isPopup2() { return showPopup2; } There is one popup associated with a button and a second popup not accociated with a button. The second popup is opened when the first popup is closed. The popups are handled in the old fashion way with the rendered attribute. The second popup is rendered twice (but displayed only once). I use the current snapshot but the problem exists with older version too. Regards Helmut
Re: [Tobago] Intercepting TreeExpansion event
Hi Raj, I think there's no chance. Maybe with the new tree implementation in tobago sandbox... Regards Helmut - Original Message - From: Raj .G. Narasimhan To: MyFaces Discussion Sent: Thursday, February 14, 2008 1:36 AM Subject: [Tobago] Intercepting TreeExpansion event Hi: I am wondering, is there any way to intercept TreeExpansion event, in Tobago API. My requirement is like this. As the tree, in my case, has around 500 nodes, and each node has three levels of children, it takes more than 30sec to load. So, I am thinking to add children nodes, whenever during tree expansion event (some TreeExpansionListnener-like implementation). Appreciate, any ideas, in this regard -- Thanks, Raj .G. Narasimhan
Re: [Tobago] renderedPartially doesn't work in treeNodeCommand
Hi Raj, your code looks ok to me. I suppose you're using Tobago 1.0.12 or later? Have you tried it without mode=menu? When you look at the generated HTML you should see a line like this: + var mainpage_nav_treeNodeCommand = \Tobago.reloadComponent('mainpage:rightPanel',this.id, {});\; What exactly happens when you click on a node? Just nothing? Regards Helmut P.S. Please send requests like this to the mailing list. Maybe there're other users who can help you or have a similar problem. - Original Message - From: Raj .G. Narasimhan To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 5:37 AM Subject: [Tobago] renderedPartially doesn't work in treeNodeCommand Hi Bernd and Helmut: I am writing to both of you, as this was the issue raised during mid of '07 on the subject issue. I'm experiencing the same issue, in the partial reloading as Helmut had experienced. I'm trying to reload the detail page on click of the tree node(s). I have a tree of around 300 nodes (Objects with 4-5 string properties). I don't know, where and what I'm missing and I have been trying to fix this since two days... Appreciate your help! Here's the code, that I'm trying: tc:tree value=#{mainTree.rootNode} mode=menu id=nav nameReference=userObject.label idReference=userObject.id tipReference=userObject.label state=#{mainTree.state} showIcons=false showJunctions=true showRoot=false f:facet name=treeNodeCommand tc:command action=#{mainTree.showInDetail} tc:attribute value=:mainpage:rightPanel name=renderedPartially / /tc:command /f:facet /tc:tree Here's the portion of main page (where this detail page will have to be loaded) f:view locale=#{configController.locale} tc:loadBundle basename=cb_bundle var=rsrcBundle / tc:page applicationIcon=icon/Vzicon.ico label=#{rsrcBundle.pageTitle} id=mainpage width=900px height=830px .. tc:cell spanX=2 tc:panel id=middleBox f:facet name=layout tc:gridLayout rows=fixed;fixed;* columns=*;2* id=boxToolbarLayout / /f:facet tc:cell spanX=2 tc:panel id=treeAndRightPanel f:facet name=layout tc:gridLayout border=1 rows=* columns=*;2* / /f:facet tc:cell jsp:include page=/WEB-INF/cdbmain/navigation.jsp / %-- tc:panel id=leftPanel f:facet name=layout tc:gridLayout rows=* columns=* / /f:facet /tc:panel--% /tc:cell tc:cell tc:panel id=rightPanel f:facet name=layout tc:gridLayout rows=* columns=* / /f:facet jsp:doBody / /tc:panel /tc:cell /tc:panel /tc:cell . -- Thanks, Raj .G. Narasimhan
Re: [Tobago] renderedPartially doesn't work in treeNodeCommand
Hi, just one idea: Does the action mainTree.showInDetail returns an outcome != null ? If so the whole page gets reloaded. Helmut - Original Message - From: Raj .G. Narasimhan To: users@myfaces.apache.org Sent: Wednesday, February 13, 2008 4:30 PM Subject: [Tobago] renderedPartially doesn't work in treeNodeCommand I'm having problem with partial reloading while invoking 'treeNodeCommand'. I am using Tobago 1.0.14 on Tomcat 6. On clicking the node link, the detail page including the tree gets reloaded, even though the tc:command's 'renderedPartially' value is set to body of the page(showing the detailed node info). This issue was raised and resolved during mid of '07(fixed in Tobago 1.0.12). This tree holds around 300 nodes (user Objects with 4-5 string properties). I have tried without mode=menu as suggested by Helmut. Still the problem exists. I don't know, where and what I'm missing and I have been trying to fix this since two days... Here's the code, that I'm trying: tc:tree value=#{mainTree.rootNode} mode=menu id=nav nameReference=userObject.label idReference=userObject.id tipReference=userObject.label state=#{mainTree.state} showIcons=false showJunctions=true showRoot=false f:facet name=treeNodeCommand tc:command action=#{mainTree.showInDetail} tc:attribute value=:mainpage:rightPanel name=renderedPartially / /tc:command /f:facet /tc:tree Here's the portion of main page (where this detail page will have to be loaded) f:view locale=#{configController.locale} tc:loadBundle basename=cb_bundle var=rsrcBundle / tc:page applicationIcon=icon/Vzicon.ico label=#{rsrcBundle.pageTitle} id=mainpage width=900px height=830px .. tc:cell spanX=2 tc:panel id=middleBox f:facet name=layout tc:gridLayout rows=fixed;fixed;* columns=*;2* id=boxToolbarLayout / /f:facet tc:cell spanX=2 tc:panel id=treeAndRightPanel f:facet name=layout tc:gridLayout border=1 rows=* columns=*;2* / /f:facet tc:cell jsp:include page=/WEB-INF/cdbmain/navigation.jsp / %-- tc:panel id=leftPanel f:facet name=layout tc:gridLayout rows=* columns=* / /f:facet /tc:panel--% /tc:cell tc:cell tc:panel id=rightPanel f:facet name=layout tc:gridLayout rows=* columns=* / /f:facet jsp:doBody / /tc:panel /tc:cell /tc:panel /tc:cell . And in the generated html source, I could see the following: var mainpage_navigator_nav_treeNodeCommand = \Tobago.reloadComponent('mainpage:rightPanel',this.id, {}); Appreciate your help! -- Thanks, Raj .G. Narasimhan
Re: [Tobago] renderedPartially doesn't work in treeNodeCommand
Hi, actions called by ajax (renderedPartially) must not return an outcome (except you really want to navigate to another page). Helmut - Original Message - From: Raj .G. Narasimhan To: MyFaces Discussion Sent: Wednesday, February 13, 2008 4:56 PM Subject: Re: [Tobago] renderedPartially doesn't work in treeNodeCommand Helmut, it does return customer/custTabpane, which is the valid outcome to be returnedand in fact, it loads the detail page also. Only issue, is the tree is getting reloaded, (Moreover, this issue is more pronounce because the tree's taking atleast 5-6 seconds to re-load ). The detail page loads pretty quickly...compares to tree(and there's no need for the load to be reloaded) thanks, Raj On Feb 13, 2008 10:40 AM, Helmut Swaczinna [EMAIL PROTECTED] wrote: Hi, just one idea: Does the action mainTree.showInDetail returns an outcome != null ? If so the whole page gets reloaded. Helmut - Original Message - From: Raj .G. Narasimhan To: users@myfaces.apache.org Sent: Wednesday, February 13, 2008 4:30 PM Subject: [Tobago] renderedPartially doesn't work in treeNodeCommand I'm having problem with partial reloading while invoking 'treeNodeCommand'. I am using Tobago 1.0.14 on Tomcat 6. On clicking the node link, the detail page including the tree gets reloaded, even though the tc:command's 'renderedPartially' value is set to body of the page(showing the detailed node info). This issue was raised and resolved during mid of '07(fixed in Tobago 1.0.12). This tree holds around 300 nodes (user Objects with 4-5 string properties). I have tried without mode=menu as suggested by Helmut. Still the problem exists. I don't know, where and what I'm missing and I have been trying to fix this since two days... Here's the code, that I'm trying: tc:tree value=#{mainTree.rootNode} mode=menu id=nav nameReference=userObject.label idReference=userObject.id tipReference=userObject.label state=#{mainTree.state} showIcons=false showJunctions=true showRoot=false f:facet name=treeNodeCommand tc:command action=#{mainTree.showInDetail} tc:attribute value=:mainpage:rightPanel name=renderedPartially / /tc:command /f:facet /tc:tree Here's the portion of main page (where this detail page will have to be loaded) f:view locale=#{configController.locale} tc:loadBundle basename=cb_bundle var=rsrcBundle / tc:page applicationIcon=icon/Vzicon.ico label=#{rsrcBundle.pageTitle} id=mainpage width=900px height=830px .. tc:cell spanX=2 tc:panel id=middleBox f:facet name=layout tc:gridLayout rows=fixed;fixed;* columns=*;2* id=boxToolbarLayout / /f:facet tc:cell spanX=2 tc:panel id=treeAndRightPanel f:facet name=layout tc:gridLayout border=1 rows=* columns=*;2* / /f:facet tc:cell jsp:include page=/WEB-INF/cdbmain/navigation.jsp / %-- tc:panel id=leftPanel f:facet name=layout tc:gridLayout rows=* columns=* / /f:facet /tc:panel--% /tc:cell tc:cell tc:panel id=rightPanel f:facet name=layout tc:gridLayout rows=* columns=* / /f:facet jsp:doBody / /tc:panel /tc:cell /tc:panel /tc:cell . And in the generated html source, I could see the following: var mainpage_navigator_nav_treeNodeCommand = \Tobago.reloadComponent('mainpage:rightPanel',this.id, {}); Appreciate your help! -- Thanks, Raj .G. Narasimhan -- Thanks, Raj .G. Narasimhan
Re: [tobago] tc:in doesn't support change facelet?
Hi Zied, the change facet of tc:in does not work with suggestMethod. See TOBAGO-408 Regards Helmut - Original Message - From: Zied Hamdi To: MyFaces Sent: Wednesday, January 30, 2008 10:56 AM Subject: [tobago] tc:in doesn't support change facelet? Hi, I've just realized that there is no example in the demo of a tc:in which triggers a partial reload. On the tld doc I've only found the js attribute 'onchange'. Is it very complex to emulate the following code with the Tobago.js lib? tc:in value=#{bank.town} suggestMethod=#{bank.townHint} f:facet name=change tc:command tc:attribute name=renderedPartially value=bankAccount / /tc:command /f:facet /tc:in Regards, -- Zied Hamdi www.into-i.fr (previously in 2003) zatreex.sf.net
Re: [Tobago] Bug in 1.0.15 snapshot with datepicker
Bug fixed. Patch is attached. Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, January 21, 2008 2:54 PM Subject: [Tobago] Bug in 1.0.15 snapshot with datepicker Hi, when there is more than one datepicker on one page I get this exception: java.lang.IllegalStateException: Client-id : image is duplicated in the faces tree. Component : overviewPage:searchView:image, path: {Component-Path : [Class: org.apache.myfaces.tobago.component.UIViewRoot,ViewId: /overview.jsp][Class: org.apache.myfaces.tobago.component.UIPage,Id: overviewPage][Cla ss: org.apache.myfaces.tobago.component.UIPanel,Id: panel][Class: org.apache.myfaces.tobago.component.UIPanel,Id: mainPanel][Class: org.apache.myfaces .tobago.component.UICell,Id: _idJsp57][Class: javax.faces.component.UINamingContainer,Id: searchView][Class: org.apache.myfaces.tobago.component.UIPan el,Id: panel][Class: org.apache.myfaces.tobago.component.UIPanel,Id: _idJsp132][Class: org.apache.myfaces.tobago.component.UIDatePicker,Id: _idJsp134] [Class: javax.faces.component.UIGraphic,Id: image]} But there's no id attribute in datapicker to make the id unique. There was no problem with 1.0.13! Regards Helmut datepicker.diff Description: Binary data
[Tobago] How to checkout 1.0.* sources
Hi, I'm not very familar with svn and the organization of the Tobago svn repository. So apologize my question: How do I check out the source of a specific release (e.g. 1.0.13) or the latest sources of the 1.0.* branch? With svn checkout http://svn.apache.org/repos/asf/myfaces/tobago/trunk I get the latest 1.1.0 sources. Regards Helmut
[Tobago] tc:columnEvent TOBAGO-553
Hello Bernd, please reopen TOBAGO-553. Or should I add new jira issues for the comments I added? Regards Helmut
Re: [Tobago] tc:columnEvent TOBAGO-553
Hello Bernd, it's a great pleasure for me to be a Tobago contributor :-) You can use my email address [EMAIL PROTECTED] and if you like our company name WLP Systems GmbH, Hamburg, Germany Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, January 14, 2008 1:41 PM Subject: Re: [Tobago] tc:columnEvent TOBAGO-553 Hello Helmut, please add a new jira issue and link the issue to TOBAGO-553. I would like to add you to the contributors section of the tobago pom. Can I use your email address? Regards Bernd Helmut Swaczinna schrieb: Hello Bernd, please reopen TOBAGO-553. Or should I add new jira issues for the comments I added? Regards Helmut
Re: [tobago] tc:panel, tc:box, and maybe tc:sheet onChange attribute
Hi, I think this should be a feature of the form and not of the layout components. And yes, it would be nice to have a feature like this. In the meantime you can do this with javascript. Iterate over all elements of the form and add an onchange listener to each input element. Regards Helmut - Original Message - From: Zied Hamdi To: MyFaces Sent: Wednesday, January 09, 2008 10:55 AM Subject: [tobago] tc:panel, tc:box, and maybe tc:sheet onChange attribute Hi pioneers, Before submitting a feature request I'd like to be sure there's no way to do what I want today: I need to keep do an action on any change inside a panel, this is a frequent case in UI developement: e.g: to enable a save button or open a popup 'do you want to save changes'. A few years ago I made an analogous mecanism in swing: I extended Panel.add() (and remove()) and made it add a listener to the added component to check if changes has occured). The extended panel must it self implement the onChange event features and interfaces to respond to nested panels events (and forward them to its parent). Is a feature like this available in Tobago (maybe through a facelet)? If not, do you think it's a good idea to add a feature request in this sens? Regards, Zied
Re: How to use one subview more than once in one page
Hi Mario, thanks for the hint. This is what I was looking for. But unfortunately t:aliasBean does not work with component bindings and I need them. There's a workaround mentoined in the t:aliasBean wiki but I don't understand it right know. Hm, maybe I should use my own solution which works even with component bindings... Regards Helmut - Original Message - From: Mario Ivankovits [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, January 08, 2008 11:26 AM Subject: Re: How to use one subview more than once in one page Hi! % String beanName = request.getParameter(beanName); % tc:panel f:facet name=layout tc:gridLayout rows=fixed columns=1*;1*;1*/ /f:facet tc:out id=out value='%= #{ + beanName + .value} %'/ tc:in id=in value='%= #{ + beanName + .value2} %'/ Woho would never have thought about such a solution myself :-) kudos to you. If you already use tomahawk have a look at the aliasBean which allows you to get rid of the JSP stuff. t:aliasBeansScope t:aliasBean alias=#{quickSwitchToolbarData} value=#{toolbar.toolbarData} jsp:include page=xyz.page / /t:aliasBean /t:aliasBeansScope This allows you to use quickSwitchToolbarData from within your include. Ciao, Mario
Re: How to use one subview more than once in one page
Hi Volker, this looks nice. How do you set the beanName in subview.jsp? I do this: % String beanName = request.getParameter(beanName); request.setAttribute(beanName, beanName); % This works fine when I navigate for the first time to the page. But when I navigate to another page and back ${beanName} is empty. Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, January 08, 2008 12:36 PM Subject: Re: How to use one subview more than once in one page Hi, we are using a similar code in our project in the subview.jsp: tc:out id=out value=#{${beanName}.value}/ tc:in id=in value=#{${beanName}.value2}/ tc:button id=button label=${beanName} action=#{${beanName}.subviewAction}/ The tomahawk aliasBean stuff did not work in tobago if you use partiall reload or any component binding inside the subview. The tomahawk aliasBean stuff also can't work with the sun RI when using binding. Maybe we can add something like the aliasBean into tobago, i thought about adding a aliasPanel like: tc:aliasPanel tc:alias alias=name value=#{bean}/ ... tc:aliasPanel where the aliasPanel is an extended tc:panel. But i'm too busy with other problems now. Regards, Volker 2008/1/8, Mario Ivankovits [EMAIL PROTECTED]: Hi! % String beanName = request.getParameter(beanName); % tc:panel f:facet name=layout tc:gridLayout rows=fixed columns=1*;1*;1*/ /f:facet tc:out id=out value='%= #{ + beanName + .value} %'/ tc:in id=in value='%= #{ + beanName + .value2} %'/ Woho would never have thought about such a solution myself :-) kudos to you. If you already use tomahawk have a look at the aliasBean which allows you to get rid of the JSP stuff. t:aliasBeansScope t:aliasBean alias=#{quickSwitchToolbarData} value=#{toolbar.toolbarData} jsp:include page=xyz.page / /t:aliasBean /t:aliasBeansScope This allows you to use quickSwitchToolbarData from within your include. Ciao, Mario -- inexso - information exchange solutions GmbH Bismarckstraße 13 | 26122 Oldenburg Tel.: +49 441 4082 356 | FAX: +49 441 4082 355 | www.inexso.de
Re: [Tobago] tc:columnEvent
Hi Bernd, I stil can't get it work at all. Nothing happens when I click or doubleclick on a row. I tried both events and I tried an action and an onclick command. This is my code: f:view tc:page id=sheetPage width=800px height=200px tc:panel id=panel f:facet name=layout tc:gridLayout columns=*;*/ /f:facet tc:sheet id=testTable columns=80px;80px showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none state=#{controller.sheetState} var=row value=#{controller.list1} tc:columnEvent event=dblclick tc:command onclick=alert('Hallo')/ /tc:columnEvent tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet tc:panel id=panel2 f:facet name=layout tc:gridLayout rows=fixed;*/ /f:facet tc:in value=#{controller.value2}/ tc:hidden id=selection value=#{controller.value}/ /tc:panel /tc:panel /tc:page /f:view There's no alert statement in the generated HTML code, so I think the sheet renderer ignores the columnEvent tag. The only thing I see is the hand coursor when I position the mouse over the sheet. I'm using the 1.0.14 snapshot from 19/12/2007. Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, January 04, 2008 5:20 PM Subject: Re: [Tobago] tc:columnEvent Hello Helmut, please look at tobago-example-addressbook list.jsp. Regards Bernd Helmut Swaczinna schrieb: Hi, I'm looking for a working example for tc:columnEvent usage. Can't get it work. Regards Helmut
Re: [Tobago] tc:columnEvent
Hi Bernd, I found the problem: tc:columnEvent does not work with selectable=none. With selectable=single or multi it works. (release 1.0.13) Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, January 07, 2008 11:57 AM Subject: Re: [Tobago] tc:columnEvent Hello Helmut, the current snapshot is unstable. In a few days i will change the version of the trunk to 1.1.0-SNAPSHOT. Please try it with the 1.0.13 release. Maybe we will backport some changes to a 1.0.14 version. tc:columnEvent supports action and actionListener until now. Regards Bernd Helmut Swaczinna schrieb: Hi Bernd, I stil can't get it work at all. Nothing happens when I click or doubleclick on a row. I tried both events and I tried an action and an onclick command. This is my code: f:view tc:page id=sheetPage width=800px height=200px tc:panel id=panel f:facet name=layout tc:gridLayout columns=*;*/ /f:facet tc:sheet id=testTable columns=80px;80px showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0I selectable=none state=#{controller.sheetState} var=row value=#{controller.list1} tc:columnEvent event=dblclick tc:command onclick=alert('Hallo')/ /tc:columnEvent tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet tc:panel id=panel2 f:facet name=layout tc:gridLayout rows=fixed;*/ /f:facet tc:in value=#{controller.value2}/ tc:hidden id=selection value=#{controller.value}/ /tc:panel /tc:panel /tc:page /f:view There's no alert statement in the generated HTML code, so I think the sheet renderer ignores the columnEvent tag. The only thing I see is the hand coursor when I position the mouse over the sheet. I'm using the 1.0.14 snapshot from 19/12/2007. Regards Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, January 04, 2008 5:20 PM Subject: Re: [Tobago] tc:columnEvent Hello Helmut, please look at tobago-example-addressbook list.jsp. Regards Bernd Helmut Swaczinna schrieb: Hi, I'm looking for a working example for tc:columnEvent usage. Can't get it work. Regards Helmut
[Tobago] tc:columnEvent
Hi, I'm looking for a working example for tc:columnEvent usage. Can't get it work. Regards Helmut
Re: SortActionListener not responding in Tobago
Hi, is the signature of the sheetSorter correct? It must be public void sheetSorter(ActionEvent event) When you have set a sortactionlistener, you have to implement the sorting yourself in the sortactionlistener. Have you had a look at the tobago demo sources? Regards Helmut - Original Message - From: dukeoflions [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Monday, December 17, 2007 11:26 PM Subject: SortActionListener not responding in Tobago Hi Guys, I have got Tobago implemented, and when I put a system out println in a bean i can see it from the console in eclipse, well i have put on in a form which has a sortactionlistener, but neither the listner nor the sorter work. What can be wrong? This is my form: tc:sheet value=#{fileUploadForm.allFiles} id=sheet columns=3*;1*;3*;3*;3*;3* var=file state=#{fileUploadForm.sheetState} showHeader=#{fileUploadForm.sheetConfig.sheetShowHeader} showRowRange=#{fileUploadForm.sheetConfig.sheetRowPagingPosition} showPageRange=#{fileUploadForm.sheetConfig.sheetPagePagingPosition} showDirectLinks=#{fileUploadForm.sheetConfig.sheetDirectPagingPosition} first=#{fileUploadForm.sheetConfig.sheetFirst} rows=#{fileUploadForm.sheetConfig.sheetRows} directLinkCount=#{fileUploadForm.sheetConfig.sheetDirectLinkCount} stateChangeListener=#{fileUploadForm.stateChangeListener} sortActionListener=#{fileUploadForm.sheetSorter} selectable=#{fileUploadForm.sheetConfig.selectable} tc:column label=#{msg.fileArrayName} id=fileId sortable=true tc:out value=#{file.fileId} id=t_fileId / /tc:column -- View this message in context: http://www.nabble.com/SortActionListener-not-responding-in-Tobago-tp14375790p14375790.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
[Tobago] Compilation failure
Just checked out the sources and get this Compilation failure [INFO] Scanning for projects... [INFO] [INFO] Building Theme Speyside [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 2 source files to C:\Projekte\jsf\tobago-src\theme\speyside\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projekte\jsf\tobago-src\theme\speyside\src\main\java\org\apache\myfaces\tobago\renderkit\html\spe yside\standard\tag\TabGroupRenderer.java:[65,11] reference to addMarkupClass is ambiguous, both meth od addMarkupClass(javax.faces.component.UIComponent,java.lang.String,java.lang.String) in org.apache .myfaces.tobago.renderkit.html.StyleClasses and method addMarkupClass(org.apache.myfaces.tobago.comp onent.SupportsMarkup,java.lang.String,java.lang.String) in org.apache.myfaces.tobago.renderkit.html. StyleClasses match
[Tobago] Incorrect character set conversion in file upload
Hi, when you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted correctly when you request the filename with FileItem.getName(). For example ü is converted to ü. I use utf-8 in my pages. Regards Helmut
[Tobago] Tab switching and focus field
Hi, when you switch between tabs in a tabgroup (reloadTab) the focus is lost somewhere (on the label of the tab?). But it should remain on the current field or the focus should be set to the first field of the tab. What we need is a focusId attribute for tab like page has it. Or we need a client side tabChangeListener to set the focus when the tab was switched. (In generel a client side tabChangeListener would be usefull.) Or is there any other possibilty I don't know to maintain the focus field when a tab is switched? Regards Helmut
Re: [Tobago] Weird problem with tc:link inside tc:sheet
Hi Ramon, sorry, I think I can't help you because I don't really understand what you're doing. Getting and setting request or session attributes seems very strange to me. Why don't you use managed properties in the faces-config to connect one bean with an other? Where does the requestScope.docList comes from? Maybe you should use a session scoped bean to store session scoped data. But I can give you a tip for the param problem. There's a much simplier way to get the data row of the link clicked. When you have a binding to the sheet in your controller then you can get the row clicked in the link action with sheetBinding.getRowData(). Have you had a look at the Tobago adressbook example? Maybe you can get some help from this. Regards Helmut - Original Message - From: Ramon Ziai [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, November 09, 2007 9:27 PM Subject: Re: [Tobago] Weird problem with tc:link inside tc:sheet Hi Helmut, ok, now the id makes sense to me, thanks for explaining. Please find attached my faces-config.xml, the page (browse.jsp) and the relevant controller (BrowseController.java). The code for getting at the link parameter doesn't quite work yet but as that is not the primary problem I did not put much effort into fixing it yet. Thanks in advance, Ramon Am Donnerstag, den 08.11.2007, 12:46 +0100 schrieb Helmut Swaczinna: Hi Ramon, some words to the id of the link: The 0 is the number of the row in the sheet. Because a panel is no naming container it's id is not part of the concatenated id. Moving the link from one column to another has no effect to the id of the link. The column id is not part of the concatenated id. The server identifies the action associated with the link by the id of the link. If you have the same link in more than one column the ids of the links must be different. So there's no problem with the id. To locate the problem we should have a look at the sources. Can you post the complete page, the faces-config and the related snipplets from you java source? Regards Helmut - Original Message - From: Ramon Ziai [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, November 07, 2007 8:22 PM Subject: Re: [Tobago] Weird problem with tc:link inside tc:sheet
Re: [Tobago] Weird problem with tc:link inside tc:sheet
Hi Ramon, some words to the id of the link: The 0 is the number of the row in the sheet. Because a panel is no naming container it's id is not part of the concatenated id. Moving the link from one column to another has no effect to the id of the link. The column id is not part of the concatenated id. The server identifies the action associated with the link by the id of the link. If you have the same link in more than one column the ids of the links must be different. So there's no problem with the id. To locate the problem we should have a look at the sources. Can you post the complete page, the faces-config and the related snipplets from you java source? Regards Helmut - Original Message - From: Ramon Ziai [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, November 07, 2007 8:22 PM Subject: Re: [Tobago] Weird problem with tc:link inside tc:sheet
Re: [Tobago] Weird problem with tc:link inside tc:sheet
Hi Ramon, I tried your code with MyFaces 1.1.5/Tomcat 5.5.x and it works like expected. Maybe that's a problem with MyFaces 1.2 and Tobago? I don't know, if Tobago is compatible with MyFaes 1.2. Regards Helmut - Original Message - From: Ramon Ziai [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, November 06, 2007 7:12 PM Subject: Re: [Tobago] Weird problem with tc:link inside tc:sheet
[Tobago] Thousands of warnings/errors with current 1.0.13 snapshot
Hi, after upgrading to current 1.0.13 snapshot I get thousands of messages in the log like these: 11-06 11:22:48,890 ERROR GENA-WAPP [http-8080-Processor19] ResourceManagerImpl Don't find any RendererClass for ColumnRenderer. Please check you c onfiguration. 11-06 11:22:48,906 WARN GENA-WAPP [http-8080-Processor19] HtmlRenderKitImpl Unsupported component-family/renderer-type: javax.faces.Column/Column 11-06 11:22:48,906 ERROR GENA-WAPP [http-8080-Processor19] TobagoRenderKit The class which was found by the ResourceManager cannot be found or ins tantiated: classname='Column' 11-06 11:22:48,906 INFO GENA-WAPP [http-8080-Processor19] [/gena] No Renderer found for component {Component-Path : [Class: org.apache.myfaces.to bago.component.UIViewRoot,ViewId: /overview.jsp][Class: org.apache.myfaces.tobago.component.UIPage,Id: overviewPage][Class: org.apache.myfaces.tobago. component.UIPanel,Id: panel][Class: org.apache.myfaces.tobago.component.UIPanel,Id: mainPanel][Class: org.apache.myfaces.tobago.component.UICell,Id: _ idJsp140][Class: javax.faces.component.UINamingContainer,Id: resultView][Class: org.apache.myfaces.tobago.component.UIPanel,Id: panel][Class: org.apac he.myfaces.tobago.component.UIData,Id: resultSheet][Class: org.apache.myfaces.tobago.component.UIColumn,Id: prodisProjektnummerColumn]} (component-fam ily=javax.faces.Column, renderer-type=Column) 11-06 11:22:48,906 WARN GENA-WAPP [http-8080-Processor19] UIComponentBase No Renderer found for component {Component-Path : [Class: org.apache.my faces.tobago.component.UIViewRoot,ViewId: /overview.jsp][Class: org.apache.myfaces.tobago.component.UIPage,Id: overviewPage][Class: org.apache.myfaces .tobago.component.UIPanel,Id: panel][Class: org.apache.myfaces.tobago.component.UIPanel,Id: mainPanel][Class: org.apache.myfaces.tobago.component.UICe ll,Id: _idJsp140][Class: javax.faces.component.UINamingContainer,Id: resultView][Class: org.apache.myfaces.tobago.component.UIPanel,Id: panel][Class: org.apache.myfaces.tobago.component.UIData,Id: resultSheet][Class: org.apache.myfaces.tobago.component.UIColumn,Id: prodisProjektnummerColumn]} (compo nent-family=javax.faces.Column, renderer-type=Column) Before, I had none these messages. Regards Helmut
[Tobago] Problem with disabling and clearing fields
Hi, I've a page with a checkbox and some input fields. I want to disable and clear some fields when the checkbox is checked. I do this with a change facet and a command tag. Disabling the fields works but not clearing. When the field is disabled clearing the field (setting to null in the action) has no effect. Clearing works when the field is not disabled. I think this is a very common and simple use case which should work. Regards Helmut This is the JSP code: tc:panel id=inputPanel tc:selectBooleanCheckbox id=checkbox value=#{controller.checkbox} f:facet name=change tc:command action=#{controller.checkboxChangeAction} tc:attribute name=renderedPartially value=inputPanel/ /tc:command /f:facet /tc:selectBooleanCheckbox tc:in id=input disabled=#{controller.checkbox} value=#{controller.value}/ /tc:panel And the java code: private boolean checkbox; private String value; public void checkboxChangeAction() { LOG.debug(checkboxChangeAction); if (checkbox) { value = null; } } public boolean isCheckbox() { return checkbox; } public void setCheckbox(boolean checkbox) { this.checkbox = checkbox; } public String getValue() { return value; } public void setValue(String value) { this.value = value; }
[Tobago] Problems with tabGroup and IE 6/7 (reminder)
Hi, the problem I posted at 17.08.2007 still exists in the current snapshot: 2. Switching the tabs by accelerator key (alt + key) doesn't work properly. You have the push the key multiple times or hold down the key for some seconds. This behavior seems to be randomly and seems to depend on the complexity of the tabs. Please have a look at this. Regards Helmut
Re: [Tobago] Problem migrating to 1.0.12
Hi Yazid, is this only a problem in IE? Regards Helmut - Original Message - From: yazid [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Thursday, October 25, 2007 3:39 PM Subject: [Tobago] Problem migrating to 1.0.12 Hi all; I'm migrating to 1.0.12 build, and have a problem to render my tree menu: tc:tree value=#{navigation.tree} mode=menu id=navigation nameReference=userObject.title idReference=userObject.id state=#{navigation.state} showIcons=false showJunctions=false showRoot=false f:facet name=treeNodeCommand tc:link action=#{navigation.navigate} immediate=true/ /f:facet IE display a js allert with Object error message and a second alert with a big js exception erroCode:{var treeRessourceHelp=new Object; I got the same problem in 1.0.11 migration, solved by clearing IE cache; but for this migration it did'nt work... Please Help -- View this message in context: http://www.nabble.com/-Tobago--Problem-migrating-to-1.0.12-tf4690959.html#a13407049 Sent from the MyFaces - Users mailing list archive at Nabble.com.
[Tobago] tc:message tag does not work with IE
Hi, I encoutered some problems with the tc:messages tag with the IE. First, there's a layout problem, so the message can not be seen, and second, the message is rendered twice. With Firefox everything is ok. Here's the JSP code: f:view tc:page id=inputPage width=200px height=200px tc:panel id=inputPanel f:facet name=layout tc:gridLayout rows=fixed;fixed;fixed;*/ /f:facet tc:selectOneChoice id=in required=true value=#{controller.value} tc:selectItem itemLabel= itemValue=/ tc:selectItem itemLabel=xx itemValue=xx/ /tc:selectOneChoice tc:message for=in/ tc:button label=submit/ tc:cell/ /tc:panel /tc:page /f:view This is the generated HTML code for IE: ... select name=inputPage:in id=inputPage:in style=width:200px; height:21px; class=tobago-selectOneChoice-default tobago-selectOneChoice-error tobago-selectOneChoice-required title=Eine Auswahl wird benötigt! option value= /optionoption value=xx xx/option/select/div/td/trtr td class=tobago-gridLayout-cell-td style=width: 200px; height: 6px; div class=tobago-gridLayout-default tobago-gridLayout-first-column style=width: 200px; height: 6px; span class=tobago-validation-message style=width:200px; height:1px; label for=inputPage:in title=Eine Auswahl wird benötigt! Eine Auswahl wird benötigt!Eine Auswahl wird benötigt!/label ... You can see, that the height of the message is 1px and the message text is duplicted. This is the generated HTML code for Firefox: ... select name=inputPage:in id=inputPage:in style=width:200px; height:18px; class=tobago-selectOneChoice-default tobago-selectOneChoice-error tobago-selectOneChoice-required title=Eine Auswahl wird benötigt! option value= /optionoption value=xx xx/option/select/div/td/trtr td class=tobago-gridLayout-cell-td style=width: 200px; height: 25px; div class=tobago-gridLayout-default tobago-gridLayout-first-column style=width: 200px; height: 25px; span class=tobago-validation-message style=width:200px; height:20px; label for=inputPage:in title=Eine Auswahl wird benötigt! Eine Auswahl wird benötigt!/label ... Regards, Helmut
[Tobago] NullPointerException in AjaxResponseRenderer
Hi, when I return an outcome != null in an ajax action method to navigate to an other page I get this NullPointerException: java.lang.NullPointerException at org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer.writeResponse(AjaxResponseRenderer.java:213) at org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer.writeResponseReload(AjaxResponseRenderer.java:159) at org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer.renderResponse(AjaxResponseRenderer.java:115) at org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:47) at org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.render(TobagoLifecycle.java:141) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) Regards, Helmut
Re: [Tobago] EmptyStackException in datepicker
Hi, when the datepicker should be opened for the first time the UIComponent for the datepicker can not be found in AjaxUtils.parseAndStoreComponents() line 147. When the popup is openend a second time the UIComponent can be found (with the same id). Regards, Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, September 04, 2007 3:59 PM Subject: Re: [Tobago] EmptyStackException in datepicker Hi Volker, yes, a request is made. This is the only debug output (with org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer enabled): AjaxUtils ajaxComponentIds = mainPage:tabsView:meineAufgabenView:meineAufgabenSheet:0:ablaufdatumPopup:ablaufdatum_pickerpopup ComponentUtil idRemainder = :0:ablaufdatumPopup:_idJsp59 ComponentUtil set rowIndex = 0 Seems there's no response. Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, September 04, 2007 3:47 PM Subject: Re: [Tobago] EmptyStackException in datepicker Hi Helmut, the problem with the popups in wrong order is a known issue: https://issues.apache.org/jira/browse/TOBAGO-133 / -134 The other (nothing happen after first click) must be a other Problem. Can you see if a request is made after the first click and what the response is? You can set the debug level of org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer to trace to get the full response in the logs. Regards, Volker 2007/9/4, Helmut Swaczinna [EMAIL PROTECTED]: Hi Volker, thanks, the datepicker works now in general. But I have very strange effects with the datepicker in a special use case. I have a sheet with a link in one column which opens a popup. And this popup has a date field and a datepicker. The first time I click on the picker image on the popup after the page was loaded for the first time nothing happens. The datepicker doesn't open. When I close the popup and reopen it and then click on the picker image the datepicker opens but *behind* the popup, so it is not accessable (see attachted scrennshot). I have to close the popup first and then I can close the datepicker. When I open the popup for the third time and click on the picker image the datepicker opens normally and everything works fine. To summarize: I must open the popup three times after the page is initially loaded to make the datepicker working. Unfortunately I can't reproduce this behaviour in a small example. Here is an extract from my jsp page: tc:sheet id=meineAufgabenSheet columns=30px;80px;80px;70px;65px;165px;60px;100px showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 rows=1000 selectable=multi value=#{mainController.meineAufgaben} var=aufgabe binding=#{mainController.sheetMeineAufgaben} state=#{mainController.sheetStateMeineAufgaben} f:facet name=popup tc:popup id=ablaufdatumPopup width=300px height=150px tc:box label=#{aufgabenBundle.box_label_ablaufdatum} f:facet name=layout tc:gridLayout rows=*;fixed;10px;fixed columns=*;*;*/ /f:facet tc:cell spanX=3 tc:out escape=false value=#{aufgabenBundle.out_value_ablaufdatum}/ /tc:cell tc:label value=#{aufgabenBundle.label_value_ablaufdatum}/ tc:date id=ablaufdatum required=true value=#{mainController.ablaufdatum}/ tc:datePicker for=ablaufdatum/ tc:cell spanX=3/ tc:cell/ tc:button id=okButton label=#{mainBundle.button_label_ok} action=#{mainController.ablaufAction} tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=cancelButton label=#{mainBundle.button_label_cancel} tc:attribute name=popupClose value=immediate/ /tc:button /tc:box /tc:popup /f:facet ... tc:column id=ablaufColumn label=#{aufgabenBundle.column_label_ablauf} tip=#{aufgabenBundle.column_tip_ablauf} sortable=true tc:link id=ablaufLink action=#{mainController.ablaufPopupAction} tc:out id=ablauf value=#{aufgabe.ablauf}/ tc:popupReference for=ablaufdatumPopup/ tc:attribute name=renderedPartially value=:mainPage:tabsView:meineAufgabenView:meineAufgabenSheet:ablaufdatumPopup/ /tc:link /tc:column ... /tc:sheet Regards, Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, September 04, 2007 1:39 PM
Re: [Tobago] EmptyStackException in datepicker
Hi Volker, thanks, the datepicker works now in general. But I have very strange effects with the datepicker in a special use case. I have a sheet with a link in one column which opens a popup. And this popup has a date field and a datepicker. The first time I click on the picker image on the popup after the page was loaded for the first time nothing happens. The datepicker doesn't open. When I close the popup and reopen it and then click on the picker image the datepicker opens but *behind* the popup, so it is not accessable (see attachted scrennshot). I have to close the popup first and then I can close the datepicker. When I open the popup for the third time and click on the picker image the datepicker opens normally and everything works fine. To summarize: I must open the popup three times after the page is initially loaded to make the datepicker working. Unfortunately I can't reproduce this behaviour in a small example. Here is an extract from my jsp page: tc:sheet id=meineAufgabenSheet columns=30px;80px;80px;70px;65px;165px;60px;100px showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 rows=1000 selectable=multi value=#{mainController.meineAufgaben} var=aufgabe binding=#{mainController.sheetMeineAufgaben} state=#{mainController.sheetStateMeineAufgaben} f:facet name=popup tc:popup id=ablaufdatumPopup width=300px height=150px tc:box label=#{aufgabenBundle.box_label_ablaufdatum} f:facet name=layout tc:gridLayout rows=*;fixed;10px;fixed columns=*;*;*/ /f:facet tc:cell spanX=3 tc:out escape=false value=#{aufgabenBundle.out_value_ablaufdatum}/ /tc:cell tc:label value=#{aufgabenBundle.label_value_ablaufdatum}/ tc:date id=ablaufdatum required=true value=#{mainController.ablaufdatum}/ tc:datePicker for=ablaufdatum/ tc:cell spanX=3/ tc:cell/ tc:button id=okButton label=#{mainBundle.button_label_ok} action=#{mainController.ablaufAction} tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=cancelButton label=#{mainBundle.button_label_cancel} tc:attribute name=popupClose value=immediate/ /tc:button /tc:box /tc:popup /f:facet ... tc:column id=ablaufColumn label=#{aufgabenBundle.column_label_ablauf} tip=#{aufgabenBundle.column_tip_ablauf} sortable=true tc:link id=ablaufLink action=#{mainController.ablaufPopupAction} tc:out id=ablauf value=#{aufgabe.ablauf}/ tc:popupReference for=ablaufdatumPopup/ tc:attribute name=renderedPartially value=:mainPage:tabsView:meineAufgabenView:meineAufgabenSheet:ablaufdatumPopup/ /tc:link /tc:column ... /tc:sheet Regards, Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, September 04, 2007 1:39 PM Subject: Re: [Tobago] EmptyStackException in datepicker Hi Helmut, there was a Problem in the ButtonRenderer introduced with the changes for tabindex. Please try next nightly or build you own from svn head. Regards, Volker 2007/9/4, Volker Weber [EMAIL PROTECTED]: Hi, seems this is not only the datePicker, I just got a EmptyStackException in a page without datePicker. java.util.EmptyStackException at java.util.Stack.peek(Stack.java:79) at java.util.Stack.pop(Stack.java:61) at org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(TobagoResponseWriterImpl.java:232) at org.apache.myfaces.tobago.renderkit.html.speyside.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:80) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.renderTabGroupView(TabGroupRenderer.java:342) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeAjax(TabGroupRenderer.java:368) I'm going to look at this. Regards, Volker 2007/9/3, Helmut Swaczinna [EMAIL PROTECTED]: Hi, in the current snapshot the datepicker is broken. You get an EmptyStackException when you click on the picker image. You can see this in the demo. Regards Helmut attachment: Datepicker.jpg
Re: [Tobago] EmptyStackException in datepicker
Hi Volker, yes, a request is made. This is the only debug output (with org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer enabled): AjaxUtils ajaxComponentIds = mainPage:tabsView:meineAufgabenView:meineAufgabenSheet:0:ablaufdatumPopup:ablaufdatum_pickerpopup ComponentUtil idRemainder = :0:ablaufdatumPopup:_idJsp59 ComponentUtil set rowIndex = 0 Seems there's no response. Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, September 04, 2007 3:47 PM Subject: Re: [Tobago] EmptyStackException in datepicker Hi Helmut, the problem with the popups in wrong order is a known issue: https://issues.apache.org/jira/browse/TOBAGO-133 / -134 The other (nothing happen after first click) must be a other Problem. Can you see if a request is made after the first click and what the response is? You can set the debug level of org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer to trace to get the full response in the logs. Regards, Volker 2007/9/4, Helmut Swaczinna [EMAIL PROTECTED]: Hi Volker, thanks, the datepicker works now in general. But I have very strange effects with the datepicker in a special use case. I have a sheet with a link in one column which opens a popup. And this popup has a date field and a datepicker. The first time I click on the picker image on the popup after the page was loaded for the first time nothing happens. The datepicker doesn't open. When I close the popup and reopen it and then click on the picker image the datepicker opens but *behind* the popup, so it is not accessable (see attachted scrennshot). I have to close the popup first and then I can close the datepicker. When I open the popup for the third time and click on the picker image the datepicker opens normally and everything works fine. To summarize: I must open the popup three times after the page is initially loaded to make the datepicker working. Unfortunately I can't reproduce this behaviour in a small example. Here is an extract from my jsp page: tc:sheet id=meineAufgabenSheet columns=30px;80px;80px;70px;65px;165px;60px;100px showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 rows=1000 selectable=multi value=#{mainController.meineAufgaben} var=aufgabe binding=#{mainController.sheetMeineAufgaben} state=#{mainController.sheetStateMeineAufgaben} f:facet name=popup tc:popup id=ablaufdatumPopup width=300px height=150px tc:box label=#{aufgabenBundle.box_label_ablaufdatum} f:facet name=layout tc:gridLayout rows=*;fixed;10px;fixed columns=*;*;*/ /f:facet tc:cell spanX=3 tc:out escape=false value=#{aufgabenBundle.out_value_ablaufdatum}/ /tc:cell tc:label value=#{aufgabenBundle.label_value_ablaufdatum}/ tc:date id=ablaufdatum required=true value=#{mainController.ablaufdatum}/ tc:datePicker for=ablaufdatum/ tc:cell spanX=3/ tc:cell/ tc:button id=okButton label=#{mainBundle.button_label_ok} action=#{mainController.ablaufAction} tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=cancelButton label=#{mainBundle.button_label_cancel} tc:attribute name=popupClose value=immediate/ /tc:button /tc:box /tc:popup /f:facet ... tc:column id=ablaufColumn label=#{aufgabenBundle.column_label_ablauf} tip=#{aufgabenBundle.column_tip_ablauf} sortable=true tc:link id=ablaufLink action=#{mainController.ablaufPopupAction} tc:out id=ablauf value=#{aufgabe.ablauf}/ tc:popupReference for=ablaufdatumPopup/ tc:attribute name=renderedPartially value=:mainPage:tabsView:meineAufgabenView:meineAufgabenSheet:ablaufdatumPopup/ /tc:link /tc:column ... /tc:sheet Regards, Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, September 04, 2007 1:39 PM Subject: Re: [Tobago] EmptyStackException in datepicker Hi Helmut, there was a Problem in the ButtonRenderer introduced with the changes for tabindex. Please try next nightly or build you own from svn head. Regards, Volker 2007/9/4, Volker Weber [EMAIL PROTECTED]: Hi, seems this is not only the datePicker, I just got a EmptyStackException in a page without datePicker. java.util.EmptyStackException at java.util.Stack.peek(Stack.java:79
[Tobago] EmptyStackException in datepicker
Hi, in the current snapshot the datepicker is broken. You get an EmptyStackException when you click on the picker image. You can see this in the demo. Regards Helmut
[Tobago] How to change the order of the columns of a sheet?
Hi, I want to change the order of the columns of a sheet programmaticly before the sheet is rendered the first time. I can't do this in the setter method for the sheet binding because the columns don't exist when the setter for the binding is called the first time. I dont't want to generate all columns with it's children in my code. The order of the columns should be stored in the user preferences for each user in the database. Thanks for any help Regards Helmut
Re: [Tobago] Problems with tabGroup and IE 6/7
Hi, solved the first problem. See Tobago-474. Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, August 20, 2007 1:37 PM Subject: Re: [Tobago] Problems with tabGroup and IE 6/7 Hi, you can see this behavior in the 1.0.12 demo also. Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, August 17, 2007 4:33 PM Subject: [Tobago] Problems with tabGroup and IE 6/7 Hi, I've discovered some problems with tab switching when switchType is reloadTab and using the IE 6/7. The first problem is new in Tobago 1.0.12. There was no problem in 1.0.11. The second problem is in 1.0.11 and 1.0.12. 1. Switching the tabs by mouse doesn't work when you click on an underlined accelerator char on the tab. Clicking on an other char works. 2. Switching the tabs by accelerator key (alt + key) doesn't work properly. You have the push the key multiple times or hold down the key for some seconds. This behavior seems to be randomly and seems to depend on the complexity of the tabs. Example: f:view tc:page id=tabsPage width=200px height=100px tc:tabGroup switchType=reloadTab tc:tab id=tab1 label=_Tab1 tc:out value=Tab1/ /tc:tab tc:tab id=tab2 label=T_ab2 tc:out value=Tab2/ /tc:tab /tc:tabGroup /tc:page /f:view Regards Helmut
[Tobago] More layout problems with 1.0.12
Hi, with the current Tobago 1.0.12 snapshot I've got some new layout problems in popups. With 1.0.11 and older 1.0.12 snapshots the layout is ok. Please have a look at the attached screenshot. The input elements on the popup are cut off at their right sides. This is the jsp code: tc:page id=inputPage width=500px height=300px tc:panel id=inputPanel tc:button id=popupButton label=Popup f:facet name=popup tc:popup id=popup width=400 height=220 tc:box id=box label=Popup f:facet name=layout tc:gridLayout rows=*;fixed;fixed;fixed;54px;fixed columns=*;*;*/ /f:facet tc:cell spanX=3 tc:out value=Text/ /tc:cell tc:cell spanX=2 tc:label value=label1/ /tc:cell tc:cell/ tc:cell spanX=2 tc:selectOneChoice id=choice tc:selectItem itemLabel= itemValue=/ /tc:selectOneChoice /tc:cell tc:cell/ tc:cell spanX=3 tc:label value=label2/ /tc:cell tc:cell spanX=3 tc:textarea id=textarea/ /tc:cell tc:cell/ tc:button id=saveButton label=save tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=cancelButton label=cancel tc:attribute name=popupClose value=immediate/ /tc:button /tc:box /tc:popup /f:facet /tc:button /tc:panel /tc:page Regards Helmut attachment: popup.jpg
Re: [Tobago] Layout problem with 1.0.12
Hi Volker, thanks for the quick fix. It works now. Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Sunday, August 19, 2007 9:48 PM Subject: Re: [Tobago] Layout problem with 1.0.12 Hi, i just added the jira entry: http://issues.apache.org/jira/browse/TOBAGO-473. I fixed this locally, but svn seems to be down, i can't connect to commit. I try it later. Regards, Volker 2007/8/19, Volker Weber [EMAIL PROTECTED]: Hi Helmut, Must I specify for every not rendered tag in a gridLayout a layout token for row and column? yes, but in case of just one token (columns=*) you can omit it. I reduced your example to just the box content (only one button), and the problem still exists, even without the popup. Please add a jira entry, i'm going to take a look at this. Regards, Volker 2007/8/17, Helmut Swaczinna [EMAIL PROTECTED]: Hi, with Tobago 1.0.12 the layout of one of my popups is not calculated correct anymore. With 1.0.11 the layout was correct. Here's the (simplified) jsp code: tc:page id=inputPage width=300px height=200px tc:panel id=inputPanel tc:button id=popupButton label=Popup f:facet name=popup tc:popup id=printPopup width=400 height=125 tc:box id=box label=Popup f:facet name=layout tc:gridLayout rows=40px;40px;*;fixed columns=*/ /f:facet tc:out rendered=false value=Text 1/ tc:out rendered=true value=Text 2/ tc:cell/ tc:panel f:facet name=layout tc:gridLayout columns=*;*;*/ /f:facet tc:button id=button1 label=button1 tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=button2 label=button2 tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=button3 label=button3 tc:attribute name=popupClose value=immediate/ /tc:button /tc:panel /tc:box /tc:popup /f:facet /tc:button /tc:panel /tc:page With 1.0.12 the box has scrollbars, with 1.0.11 not. The scrollbars aren't nessecary at all. The problem with the layout comes from the two tc:out tags. One of them is rendered, the other not. (Which one should be rendered comes from a property in the backing bean). My question is: Must I specify for every not rendered tag in a gridLayout a layout token for row and column? (Here it's the 40px token.) If I specify the 40px token only once the layout is broken also. So, is there a (new) bug in the layout manager or how do I configure the layout manager when I have not rendered tags? Regards Helmut
Re: [Tobago] Problems with tabGroup and IE 6/7
Hi, you can see this behavior in the 1.0.12 demo also. Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, August 17, 2007 4:33 PM Subject: [Tobago] Problems with tabGroup and IE 6/7 Hi, I've discovered some problems with tab switching when switchType is reloadTab and using the IE 6/7. The first problem is new in Tobago 1.0.12. There was no problem in 1.0.11. The second problem is in 1.0.11 and 1.0.12. 1. Switching the tabs by mouse doesn't work when you click on an underlined accelerator char on the tab. Clicking on an other char works. 2. Switching the tabs by accelerator key (alt + key) doesn't work properly. You have the push the key multiple times or hold down the key for some seconds. This behavior seems to be randomly and seems to depend on the complexity of the tabs. Example: f:view tc:page id=tabsPage width=200px height=100px tc:tabGroup switchType=reloadTab tc:tab id=tab1 label=_Tab1 tc:out value=Tab1/ /tc:tab tc:tab id=tab2 label=T_ab2 tc:out value=Tab2/ /tc:tab /tc:tabGroup /tc:page /f:view Regards Helmut
[Tobago] Layout problem with 1.0.12
Hi, with Tobago 1.0.12 the layout of one of my popups is not calculated correct anymore. With 1.0.11 the layout was correct. Here's the (simplified) jsp code: tc:page id=inputPage width=300px height=200px tc:panel id=inputPanel tc:button id=popupButton label=Popup f:facet name=popup tc:popup id=printPopup width=400 height=125 tc:box id=box label=Popup f:facet name=layout tc:gridLayout rows=40px;40px;*;fixed columns=*/ /f:facet tc:out rendered=false value=Text 1/ tc:out rendered=true value=Text 2/ tc:cell/ tc:panel f:facet name=layout tc:gridLayout columns=*;*;*/ /f:facet tc:button id=button1 label=button1 tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=button2 label=button2 tc:attribute name=popupClose value=afterSubmit/ /tc:button tc:button id=button3 label=button3 tc:attribute name=popupClose value=immediate/ /tc:button /tc:panel /tc:box /tc:popup /f:facet /tc:button /tc:panel /tc:page With 1.0.12 the box has scrollbars, with 1.0.11 not. The scrollbars aren't nessecary at all. The problem with the layout comes from the two tc:out tags. One of them is rendered, the other not. (Which one should be rendered comes from a property in the backing bean). My question is: Must I specify for every not rendered tag in a gridLayout a layout token for row and column? (Here it's the 40px token.) If I specify the 40px token only once the layout is broken also. So, is there a (new) bug in the layout manager or how do I configure the layout manager when I have not rendered tags? Regards Helmut
Re: Sorting problems with tc:sheet
Hi Florian, what do you exactly mean with random row displayed above the table? Can you post a screenshot. Regards Helmut - Original Message - From: Florian Reiser [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Tuesday, August 14, 2007 3:10 PM Subject: Sorting problems with tc:sheet Hello, I use the tc:sheet to display some data. When clicking on a column header, there is a random row displayed above the table. What's wrong with my code? jsp-File: [EMAIL PROTECTED] uri=http://myfaces.apache.org/tobago/component; prefix=tc% [EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f% [EMAIL PROTECTED] uri=http://myfaces.apache.org/tobago/extension; prefix=tx% %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% f:view tc:page f:facet name=layout tc:gridLayout rows=1* columns=2*;1* / /f:facet tc:box id=dataTable label=Daten tc:sheet var=zeile columns=2*;1*;1*;1*;1*;1*;1* value=#{handler.records} showHeader=true rows=30 showRowRange=left showPageRange=right showDirectLinks=center directLinkCount=5 tc:column label=Header1 id=header1 sortable=true tc:out value=#{zeile.data1} id=data1 /tc:out /tc:column tc:column label=Header2 id=header2 sortable=true align=right tc:out value=#{zeile.data2} id=data2 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header3 id=header3 sortable=true align=right tc:out value=#{zeile.data3} id=data3 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header4 id=header4 sortable=true align=right tc:out value=#{zeile.data4} id=data4 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header5 id=header5 sortable=true align=right tc:out value=#{zeile.data5} id=data5 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header6 id=header6 sortable=true align=right tc:out value=#{zeile.data6} id=data6 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header7 id=header7 sortable=true align=right tc:out value=#{zeile.data7} id=data7 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column /tc:sheet /tc:box tc:panel / /tc:page /f:view With kind regards Florian Reiser -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
Re: Sorting problems with tc:sheet
The jsp file you sent seems to be stripped (there're missing tags). Are there any tags between tc:box and tc:sheet? Have you examined the generetad html code to see what's between the box and the sheet header? Regards Helmut - Original Message - From: Florian Reiser [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, August 14, 2007 3:34 PM Subject: Re: Sorting problems with tc:sheet Hello Helmut, when looking at the screenshot, you see the data of a table row. With every click in the header, it's another one. I haven't figured out yet, which one gets displayed, therefore random one. With kind regards Florian Reiser Original-Nachricht Datum: Tue, 14 Aug 2007 15:25:02 +0200 Von: Helmut Swaczinna [EMAIL PROTECTED] An: MyFaces Discussion users@myfaces.apache.org Betreff: Re: Sorting problems with tc:sheet Hi Florian, what do you exactly mean with random row displayed above the table? Can you post a screenshot. Regards Helmut - Original Message - From: Florian Reiser [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Tuesday, August 14, 2007 3:10 PM Subject: Sorting problems with tc:sheet Hello, I use the tc:sheet to display some data. When clicking on a column header, there is a random row displayed above the table. What's wrong with my code? jsp-File: [EMAIL PROTECTED] uri=http://myfaces.apache.org/tobago/component; prefix=tc% [EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f% [EMAIL PROTECTED] uri=http://myfaces.apache.org/tobago/extension; prefix=tx% %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% f:view tc:page f:facet name=layout tc:gridLayout rows=1* columns=2*;1* / /f:facet tc:box id=dataTable label=Daten tc:sheet var=zeile columns=2*;1*;1*;1*;1*;1*;1* value=#{handler.records} showHeader=true rows=30 showRowRange=left showPageRange=right showDirectLinks=center directLinkCount=5 tc:column label=Header1 id=header1 sortable=true tc:out value=#{zeile.data1} id=data1 /tc:out /tc:column tc:column label=Header2 id=header2 sortable=true align=right tc:out value=#{zeile.data2} id=data2 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header3 id=header3 sortable=true align=right tc:out value=#{zeile.data3} id=data3 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header4 id=header4 sortable=true align=right tc:out value=#{zeile.data4} id=data4 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header5 id=header5 sortable=true align=right tc:out value=#{zeile.data5} id=data5 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header6 id=header6 sortable=true align=right tc:out value=#{zeile.data6} id=data6 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header7 id=header7 sortable=true align=right tc:out value=#{zeile.data7} id=data7 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column /tc:sheet /tc:box tc:panel / /tc:page /f:view With kind regards Florian Reiser -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
Re: Sorting problems with tc:sheet
No, there shouldn't be any tag (but may be). I only thought if there's a tag of some kind it displays the random row for some reason. Which version of Tobago do you use? Have you already tried a newer version? Is there anything special (tricky) in your jsp or java code? Helmut - Original Message - From: Florian Reiser [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, August 14, 2007 4:08 PM Subject: Re: Sorting problems with tc:sheet Hello Helmut, no, there are no tags between tc:box and tc:sheet. Should there be some tags? Which ones? The generated html-code displays several span class=tobago-out-default tags containing the row data. But I'm clueless why it is displayed. With kind regards Florian Reiser Original-Nachricht Datum: Tue, 14 Aug 2007 16:00:54 +0200 Von: Helmut Swaczinna [EMAIL PROTECTED] An: MyFaces Discussion users@myfaces.apache.org Betreff: Re: Sorting problems with tc:sheet The jsp file you sent seems to be stripped (there're missing tags). Are there any tags between tc:box and tc:sheet? Have you examined the generetad html code to see what's between the box and the sheet header? Regards Helmut - Original Message - From: Florian Reiser [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, August 14, 2007 3:34 PM Subject: Re: Sorting problems with tc:sheet Hello Helmut, when looking at the screenshot, you see the data of a table row. With every click in the header, it's another one. I haven't figured out yet, which one gets displayed, therefore random one. With kind regards Florian Reiser Original-Nachricht Datum: Tue, 14 Aug 2007 15:25:02 +0200 Von: Helmut Swaczinna [EMAIL PROTECTED] An: MyFaces Discussion users@myfaces.apache.org Betreff: Re: Sorting problems with tc:sheet Hi Florian, what do you exactly mean with random row displayed above the table? Can you post a screenshot. Regards Helmut - Original Message - From: Florian Reiser [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Tuesday, August 14, 2007 3:10 PM Subject: Sorting problems with tc:sheet Hello, I use the tc:sheet to display some data. When clicking on a column header, there is a random row displayed above the table. What's wrong with my code? jsp-File: [EMAIL PROTECTED] uri=http://myfaces.apache.org/tobago/component; prefix=tc% [EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f% [EMAIL PROTECTED] uri=http://myfaces.apache.org/tobago/extension; prefix=tx% %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% f:view tc:page f:facet name=layout tc:gridLayout rows=1* columns=2*;1* / /f:facet tc:box id=dataTable label=Daten tc:sheet var=zeile columns=2*;1*;1*;1*;1*;1*;1* value=#{handler.records} showHeader=true rows=30 showRowRange=left showPageRange=right showDirectLinks=center directLinkCount=5 tc:column label=Header1 id=header1 sortable=true tc:out value=#{zeile.data1} id=data1 /tc:out /tc:column tc:column label=Header2 id=header2 sortable=true align=right tc:out value=#{zeile.data2} id=data2 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header3 id=header3 sortable=true align=right tc:out value=#{zeile.data3} id=data3 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header4 id=header4 sortable=true align=right tc:out value=#{zeile.data4} id=data4 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header5 id=header5 sortable=true align=right tc:out value=#{zeile.data5} id=data5 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header6 id=header6 sortable=true align=right tc:out value=#{zeile.data6} id=data6 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column tc:column label=Header7 id=header7 sortable=true align=right tc:out value=#{zeile.data7} id=data7 f:convertNumber type=number groupingUsed=true / /tc:out /tc:column /tc:sheet /tc:box tc:panel / /tc:page /f:view With kind regards Florian Reiser -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
[Tobago] Improvements
Hi Tobago developers, I've done some improvements to Tobago in the last few days. I created jira issues for these with the source code modifications attached. Please have a look at the source code. I would be glad if the improvements will be included in the svn repository. Regards Helmut
Re: tc:in required sign and JS value update
Hi Michal, remove the style class tobago-in-required from the input field after setting the value. I think this can be done with Tobago.removeCssClass(element, tobago-in-required); Regards Helmut - Original Message - From: Michał 'Gandalf' Stawicki [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, August 08, 2007 1:53 PM Subject: tc:in required sign and JS value update This might sound lame, but if I have an empty required field with required sign rendered in it (v), how do I make the sign dissappear after updating input value via JS? regards, michał -- Michał Stawicki [EMAIL PROTECTED] http://stawicki.jasliska.pl
[Tobago] tc:validateFileItem useless with Firefox
Hi, the tc:validateFileItem tag doesn't work anymore with newer versions of Firefox (for example 2.0.0.6). Firefox always sends MIMI-Type application/force-download for uploaded files. IE sends the correct MIMI-Type. Why has Firefox such ugly behavior? Is it possible to determine the MIMI-Type on server side? Regards Helmut
Re: [Tobago] How to provide source code modifications?
Is there somewhere a template for this license grant? Helmut - Original Message - From: Bernd Bohmann [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, July 31, 2007 6:24 PM Subject: Re: [Tobago] How to provide source code modifications? Hello Helmut, you can open a jira issue and attach the svn diff to the issue. With the issue we can review and discuss your source code submission. Dont't forget to grant license to ASF for inclusion in ASF works. Regards Bernd Helmut Swaczinna wrote: Hi, I've made a small extension to the Tobago tag lib and want to provide this to the community. Is there an instruction somewhere how to do this? Should I mail the output of svn diff? The extension is an align attribute for tc:label: tc:label align=right .../ Regards Helmut
[Tobago] How to provide source code modifications?
Hi, I've made a small extension to the Tobago tag lib and want to provide this to the community. Is there an instruction somewhere how to do this? Should I mail the output of svn diff? The extension is an align attribute for tc:label: tc:label align=right .../ Regards Helmut
[Tobago] Exception when sorting on column with tc:link
Hi, I have a tc:sheet with a sortable column which display a link: tc:column label=#{overviewBundle.column_label_schritt} tip=#{overviewBundle.column_tip_schritt} sortable=true tc:link id=schritt label=#{vorgang.aktuellerSchrittKurz} action=#{overviewController.showBearbeiterAction} /tc:link /tc:column When I click on the header to sort the column I get an exception: 07-06 13:44:56,140 ERROR GENA-WAPP [http-8080-Processor21] Sorter No sortable component found! 07-06 13:44:56,140 WARN GENA-WAPP [http-8080-Processor21] Sorter removing attribute sortable from column _idJsp114 07-06 13:44:56,156 ERROR GENA-WAPP [http-8080-Processor21] Sorter Error while extracting sortMethod :Cannot remove component property attribute java.lang.IllegalArgumentException: Cannot remove component property attribute at javax.faces.component._ComponentAttributesMap.remove(_ComponentAttributesMap.java:270) at org.apache.myfaces.tobago.component.Sorter.removeSortableAttribute(Sorter.java:146) at org.apache.myfaces.tobago.component.Sorter.invoke(Sorter.java:110) at org.apache.myfaces.tobago.component.UIData.invokeMethodBinding(UIData.java:605) ... Regards Helmut
[Tobago] Popup not closed after PDF download
Hi, I want to build a small print dialog where the user can choose some options before printing to a PDF file. So I build a popup and the action of the ok button generates the PDF file and returns it's contents as the response of the request. This works, but the popup is never closed, waiting for ever for the response of the action. How do I close the popup explicitly when there's no response from the server? Regards Helmut
Re: [Tobago] Adding custom message to tc:in
Hi Ramarao, I put these messages in resource-dir/html/theme/standard/property/togabo.properties.xml. This works but I don't know if it's the right way to do this. Regards Helmut - Original Message - From: Ramarao Venkata To: users@myfaces.apache.org Sent: Monday, July 02, 2007 3:01 PM Subject: [Tobago] Adding custom message to tc:in Hi all, when i enter alphanumeric values int tc:in which is bound to IntegerData is get some conversion error which is read from key javax.faces.convert.IntegerConverter.CONVERSION How to define my own customer message. ie using resourceManager can i define my own property file for these Tobago messages. Any one kindly help me. regards ramarao
[Tobago] When will the new tree be released?
Hi, I ran into another serious problem with the current tree implementation. The number of nodes seems to restricted by the browser because all nodes are concatenated in one single javascript string. When a have 200 nodes the String is about 100k. Firefox gives me a box saying SyntaxError: missing ; before statement and IE says [object error]. I hope in the new tree there's no restriction. When will the new tree be included in the binary distribution? Regards Helmut
Re: MyFaces Tobago tc:sheet
Hi, yes, that's what I need too. A click facet with an associated tc:command will do. For example: tc:sheet id=mySheet... f:facet name=click tc:command ... tc:attribute name=renderedPartially value=:myPage:myPanel/ /tc:command /f:facet ... /tc:sheet So I can excute an actionListener, an action or some javascript code (when the onclick attribute of tc:command works) when the the user clicks on a row and reload some region of my page. The sheetSelectionListener is an other issue. For the sheetSelectionListener a change facet with an associated tc:command will do. The command is executed when the user changes the selection. I think the first thing is what most people want. Right? Regards Helmut - Original Message - From: Turner, John To: MyFaces Discussion Sent: Wednesday, June 27, 2007 9:57 AM Subject: RE: MyFaces Tobago tc:sheet Hi Zied, I would be happy if the row click just triggered a JSF action. This would certainly address my immediate requirement which is the continuation of a spring web flow on click of a row. I'm not sure that I agree that a javascript method callout is also required (as you described) as I'm not convinced you would add the sheetSelectionListener to a none/multi selection sheet. You would most probably have an event triggered outside the sheet. In saying this, I'm new enough to using Tobago so would not have seen many variations in use of this control. Anyway, I have voted for the JIRA issue below so that hopefully, at least the basic selection functionality will be added. As is noted on the issue, I would have thought this essential. Regards John -- From: Zied Hamdi [mailto:[EMAIL PROTECTED] Sent: 27 June 2007 08:06 To: MyFaces Discussion Subject: Re: MyFaces Tobago tc:sheet Hello Bernd, Maybe this needs a little conversation with Helmut and John: We maybe need to have a javascript method (to implement our selves) called on the client side (to be notified immediately before the listeners makes a request to the server : maybe that returns true if the request has to be made) to avoid undesired effects when the user wants to select many row sections. right? Regards, Zied 2007/6/26, Bernd Bohmann [EMAIL PROTECTED]: Hello, can you add a comment to the issue https://issues.apache.org/jira/browse/TOBAGO-84 what you expect from a sheetSelectionListener Regards Bernd Helmut Swaczinna wrote: Hi, I had the same problem and found no solution. There's a jira issue for a sheetSelectionListener for month. Don't know when it will be implemented. I helped myself by patching the Tobago javascript code for the sheet (dirty). Regards Helmut - Original Message - From: Turner, John To: MyFaces Discussion Sent: Tuesday, June 26, 2007 6:06 PM Subject: RE: MyFaces Tobago tc:sheet You kind of lose something whatever way you do it. You could use a single column but then you lose the columns, but your suggestion means if the user clicks on another column on the row then nothing happens. Perhaps there is a facet I could use? -- From: Zied Hamdi [mailto:[EMAIL PROTECTED] ] Sent: 26 June 2007 16:47 To: MyFaces Discussion Subject: Re: MyFaces Tobago tc:sheet Hi John, I use tc:link but it's only a cell of a row, the row is selected on click. Regards, 2007/6/26, Turner, John [EMAIL PROTECTED]: I have a tc:sheet that displays a read only list of results. I would like to perform a submit when the user clicks on a row within the table. Does anyone have an example of this? --This is a confidential communication and is intended only for the addressee indicated in the message (or duly authorised to be responsible for the delivery of the message to such person). You are specifically prohibited from copying this message or delivering the same, or any part thereof, to any other person, whomsoever or howsoever, unless you receive written authorisation from us to do. If you are anyone other than the intended addressee, or person duly authorised and responsible for the delivery of this message to the intended addressee, you should destroy this message and notify us immediately. Please note that we accept no responsibility whatsoever in the event that this message or any other email message or any part thereof becomes known or is communicated to anyone other than the intended recipient or other person authorised in writing by us to receive
Re: MyFaces Tobago tc:sheet
Hi, I had the same problem and found no solution. There's a jira issue for a sheetSelectionListener for month. Don't know when it will be implemented. I helped myself by patching the Tobago javascript code for the sheet (dirty). Regards Helmut - Original Message - From: Turner, John To: MyFaces Discussion Sent: Tuesday, June 26, 2007 6:06 PM Subject: RE: MyFaces Tobago tc:sheet You kind of lose something whatever way you do it. You could use a single column but then you lose the columns, but your suggestion means if the user clicks on another column on the row then nothing happens. Perhaps there is a facet I could use? -- From: Zied Hamdi [mailto:[EMAIL PROTECTED] Sent: 26 June 2007 16:47 To: MyFaces Discussion Subject: Re: MyFaces Tobago tc:sheet Hi John, I use tc:link but it's only a cell of a row, the row is selected on click. Regards, 2007/6/26, Turner, John [EMAIL PROTECTED]: I have a tc:sheet that displays a read only list of results. I would like to perform a submit when the user clicks on a row within the table. Does anyone have an example of this? --This is a confidential communication and is intended only for the addressee indicated in the message (or duly authorised to be responsible for the delivery of the message to such person). You are specifically prohibited from copying this message or delivering the same, or any part thereof, to any other person, whomsoever or howsoever, unless you receive written authorisation from us to do. If you are anyone other than the intended addressee, or person duly authorised and responsible for the delivery of this message to the intended addressee, you should destroy this message and notify us immediately. Please note that we accept no responsibility whatsoever in the event that this message or any other email message or any part thereof becomes known or is communicated to anyone other than the intended recipient or other person authorised in writing by us to receive it, howsoever arising and disclaim all liability for any losses or damage which may be sustained by any person as a result thereof. Irish Life Assurance plc is regulated by the Financial Regulator. Irish Life is a member of the Irish Life and Permanent plc group. Irish Life Assurance plc is a company registered in Ireland. Registered office is situated at Irish Life Centre, Lower Abbey Street, Dublin 1. Registered Number 152576. == -- Zied Hamdi zatreex.sourceforge.net -- This is a confidential communication and is intended only for the addressee indicated in the message (or duly authorised to be responsible for the delivery of the message to such person). You are specifically prohibited from copying this message or delivering the same, or any part thereof, to any other person, whomsoever or howsoever, unless you receive written authorisation from us to do. If you are anyone other than the intended addressee, or person duly authorised and responsible for the delivery of this message to the intended addressee, you should destroy this message and notify us immediately. Please note that we accept no responsibility whatsoever in the event that this message or any other email message or any part thereof becomes known or is communicated to anyone other than the intended recipient or other person authorised in writing by us to receive it, howsoever arising and disclaim all liability for any losses or damage which may be sustained by any person as a result thereof. Irish Life Assurance plc is regulated by the Financial Regulator. Irish Life is a member of the Irish Life and Permanent plc group. Irish Life Assurance plc is a company registered in Ireland. Registered office is situated at Irish Life Centre, Lower Abbey Street, Dublin 1. Registered Number 152576. ==
Re: Attribute Matrix in Tobaho
Hi Yazid, no, I havn't found an attribute matrix. But I didn't looked for it in the last few months. In the Tobago demo there's a new reference section. Maybe you can find the information you're looking for there. Regards Helmut - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 23, 2007 2:44 PM Subject: Attribute Matrix in Tobaho Hey Helmut; Have you found the attribute matrix in Tobago; ex : tc:attribute name=renderPartialy value=:page:ID/ Thanck
Re: [Tobago] onexit and target
Hi, can you reproduce this problem? Should I add a jira issue for this? Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, June 11, 2007 12:35 PM Subject: Re: [Tobago] onexit and target Hi Volker, I think my explanation was a little bit too short and misunderstandable... In my page a have a link with an target attribute which opens a new child window. Then I close the child window and then I close the parent window. But the onexit handler of the parent window is not called. When I close the parent window without having opened the child window the onexit handler is called. You can see this when you define an onexit and an onunload handler. Closing the parent window after a child window has been openend by a target attribute calls the onunload handler and not the onexit handler. I've examined the code of Tobago.submitAction. There's a flag isSubmit to distinguish between onunload and onexit. This flag is not set in the code when the target parameter is set. This is corrent. But when you examine this flag when the window is closed after the child window was closed it is set to true what's not correct. So I don't know where exactly the problem is. Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, June 11, 2007 12:18 PM Subject: Re: [Tobago] onexit and target Hi Helmut, the onexit handler is called if you leave the app, with a target you are not leaving the app, but open an external window. In your original window you are still inside the app, without any changes. Regards, Volker 2007/6/11, Helmut Swaczinna [EMAIL PROTECTED]: Hi, did you recognize this posting? Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 3:34 PM Subject: [Tobago] onexit and target Hi, the onexit handler set to the onexit attribute of tc:script is not called when an action with a target attribute was invoked. I think every call to Tobabgo.submutAction() sets a flag to distinguish between onunload and onexit. But with a target this flag should not be set. Regards Helmut
[Togabo] Tree question
Hi all, is it possible to make the current node of a tc:tree always be visible when the tree has a vertical scrollbar? This is when I click on a node or execute some action the page is reloaded so I can only see the upper part of the tree and not the current (marked) node which is on the part not visible. So the user has always to scroll down and search for the current node. Regards Helmut
Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE
Hi Volker, one more info: if you set forceVerticalScrollbar=true for the sheets only the header disapper not the data area. btw: Is it possible to display the scrollbar initially if forceVerticalScrollbar=true? Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, June 11, 2007 1:38 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, the problem is not the enclosing layout. The vertical scrollbar width needs to substracted from the headerWidth, if the scrollbar is needed. Regards, Volker 2007/6/11, Helmut Swaczinna [EMAIL PROTECTED]: Hi Volker, ok, I'll add a jira issue. Is it possible to avoid the resizing as a workaround when I use fix pixel sizes for the columns or the enclosing layout? Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, June 11, 2007 12:11 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi Helmut, yes, add a jira entry. I looked at this yesterday, and could easy reproduce this, but can't find a fix. the javascript line which makes the whole sheet disapearing is just a resizing of the header width: Tobago.Sheet.prototype.adjustHeaderDiv = function () { var headerDiv = Tobago.element(this.headerDivId); (...) headerDiv.style.width = Math.max(clientWidth, minWidth); (...) } I placed a alert() before and after this line, and just here the sheet disapears. I have no idea how this happens, or why this could infuence any other tag than the header div. Regards, Volker 2007/6/11, Helmut Swaczinna [EMAIL PROTECTED]: Hi, could you please fix this bug? We have a rollout at and of june and this is a real killer. Should I add a jira issue for this? Thank you Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 12:25 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, in the first example I posted there was only one sheet. It didn't disappear but showed other layout problems the first time you switch to the tab. (See explanation at the end of this mail). Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 12:21 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi Helmut, did this problem also exists with only one sheet? Regards, Volker 2007/6/6, Helmut Swaczinna [EMAIL PROTECTED]: Hi, to demonstrate the layout problems with sheet and tab with IE in my application I built another very simply test case for you. There're two sheets on one tab. Both sheets disappear when you switch to the tab the first time. f:view tc:page id=sheetPage width=600px height=200px tc:tabGroup switchType=reloadTab tc:tab id=tab1 label=Tab1 tc:out value=Tab1/ /tc:tab tc:tab id=tab2 label=Tab2 tc:panel f:facet name=layout tc:gridLayout columns=1*;1*/ /f:facet tc:sheet id=testTable2 columns=1*;1* showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none var=row value=#{controller.list1} tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet tc:sheet id=testTable3 columns=1*;1* showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none var=row value=#{controller.list2} tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet /tc:panel /tc:tab /tc:tabGroup /tc:page /f:view Please try this code! Regards Helmut - Original Message - From: H. Swaczinna [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Monday, June 04, 2007 1:06 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, with the moons sheet in demo there seems
Re: [Tobago] Using tc:command with client side JavaScript
Hi Dieter, the onclick attribue of tc:command does not work (is not implemented). I tried the same thing as you before. See http://issues.apache.org/jira/browse/TOBAGO-272 Maybe it will be implemented if there's more than one request for it. As a workaround you can do the disabling on the server with ajax. Use the renderedpartially attribute of tc:command and reload the input fields every time the checkbox is clicked. Regards Helmut - Original Message - From: Melnizky Dieter To: users@myfaces.apache.org Sent: Wednesday, June 13, 2007 3:40 PM Subject: [Tobago] Using tc:command with client side JavaScript I want to toggle the disabled attribute of input fields, depending on the selected value of a tc:selectBooleanCheckbox. The idea is to add a JavaScript function that enables the fields, which should be called when the selectBooleanCheckbox is clicked. Since the onchange-Attribute is not supported, I tried to use a change facet with a tc:command, setting the onclick attribute to the function I wrote: ... ... tc:script function immediateChanged() { var immediate = Tobago.element(page:ft_download_parameter:immediateCheckBox).checked == true; // change fields here ... } /tc:script ... tc:selectBooleanCheckbox value=#{getData.immediate} id=immediateCheckBox label=#{nbmBundle.ft_labelImmediate} tip=#{nbmBundle.ft_tipImmediate} f:facet name=change tc:command immediate=false onclick=immediateChanged();/tc:command /f:facet /tc:selectBooleanCheckbox This is generated, my immediateChanged() function is ignored (the complete page is submitted to the server): var element = Tobago.element(page:ft_download_parameter:immediateCheckBox); if (element) { Tobago.addEventListener(element, change, function(){Tobago.submitAction('page:ft_download_parameter:_idJsp92')}); } Does anyone have an idea how I can call my client side JavaScript function, when the user has clicked the checkbox? Best regards, Dieter The information contained in this e-mail message is privileged and confidential and is for the exclusive use of the addressee. The person who receives this message and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof.
Re: [Tobago] onexit and target
Hi, did you recognize this posting? Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 3:34 PM Subject: [Tobago] onexit and target Hi, the onexit handler set to the onexit attribute of tc:script is not called when an action with a target attribute was invoked. I think every call to Tobabgo.submutAction() sets a flag to distinguish between onunload and onexit. But with a target this flag should not be set. Regards Helmut
Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE
Hi, could you please fix this bug? We have a rollout at and of june and this is a real killer. Should I add a jira issue for this? Thank you Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 12:25 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, in the first example I posted there was only one sheet. It didn't disappear but showed other layout problems the first time you switch to the tab. (See explanation at the end of this mail). Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 12:21 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi Helmut, did this problem also exists with only one sheet? Regards, Volker 2007/6/6, Helmut Swaczinna [EMAIL PROTECTED]: Hi, to demonstrate the layout problems with sheet and tab with IE in my application I built another very simply test case for you. There're two sheets on one tab. Both sheets disappear when you switch to the tab the first time. f:view tc:page id=sheetPage width=600px height=200px tc:tabGroup switchType=reloadTab tc:tab id=tab1 label=Tab1 tc:out value=Tab1/ /tc:tab tc:tab id=tab2 label=Tab2 tc:panel f:facet name=layout tc:gridLayout columns=1*;1*/ /f:facet tc:sheet id=testTable2 columns=1*;1* showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none var=row value=#{controller.list1} tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet tc:sheet id=testTable3 columns=1*;1* showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none var=row value=#{controller.list2} tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet /tc:panel /tc:tab /tc:tabGroup /tc:page /f:view Please try this code! Regards Helmut - Original Message - From: H. Swaczinna [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Monday, June 04, 2007 1:06 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, with the moons sheet in demo there seems to be no specific IE layout problem (but a general layout problem with the period column header). The layout problems with the IE depend on the whole page layout. Please try the code I posted. Regards Helmut BTW: Who does the IE testing? - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, June 01, 2007 7:42 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, the tobago-demo http://tobago.atanion.net/tobago-example-demo/faces/overview/tab.jsp already contains a sheet inside a tab. switch to Server side tabbing, Moons. this sheet is loaded by switchtype=reloadTab. BTW: i also have no IE available. Regards, Volker 2007/6/1, Bernd Bohmann [EMAIL PROTECTED]: Hello, just added your test to http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tabSheet.jsp but I don't have a Windows with IE available. Can someone with a Windows test this page, please. Regards Bernd H. Swaczinna wrote: Hi, I have three sheets on a tab of a tab group with switchType=reloadTab. With Firefox everything is fine but with IE (6 and 7) there layout problems. In my app all three sheets disappear when I switch to this tab the first time. The sheets are shown for a short time (ca. 0,1 s) and than disappear. I think they're first shown with a wrong layout and than relayouted and removed. When I switch to another tab and back the sheets are shown correctly. With switchType=reloadPage there's no problem. Because my page layout is very compley I can't send you the source code. But I built a very small example with a tab and a sheet which shoes some layout problems with IE also: f:view tc:page id=resetPage width=400px height=200px tc:tabGroup switchType=reloadTab tc:tab id=tab1 label=Tab1 tc:out value=Tab1/ /tc:tab
Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE
Hi Volker, ok, I'll add a jira issue. Is it possible to avoid the resizing as a workaround when I use fix pixel sizes for the columns or the enclosing layout? Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, June 11, 2007 12:11 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi Helmut, yes, add a jira entry. I looked at this yesterday, and could easy reproduce this, but can't find a fix. the javascript line which makes the whole sheet disapearing is just a resizing of the header width: Tobago.Sheet.prototype.adjustHeaderDiv = function () { var headerDiv = Tobago.element(this.headerDivId); (...) headerDiv.style.width = Math.max(clientWidth, minWidth); (...) } I placed a alert() before and after this line, and just here the sheet disapears. I have no idea how this happens, or why this could infuence any other tag than the header div. Regards, Volker 2007/6/11, Helmut Swaczinna [EMAIL PROTECTED]: Hi, could you please fix this bug? We have a rollout at and of june and this is a real killer. Should I add a jira issue for this? Thank you Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 12:25 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, in the first example I posted there was only one sheet. It didn't disappear but showed other layout problems the first time you switch to the tab. (See explanation at the end of this mail). Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, June 06, 2007 12:21 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi Helmut, did this problem also exists with only one sheet? Regards, Volker 2007/6/6, Helmut Swaczinna [EMAIL PROTECTED]: Hi, to demonstrate the layout problems with sheet and tab with IE in my application I built another very simply test case for you. There're two sheets on one tab. Both sheets disappear when you switch to the tab the first time. f:view tc:page id=sheetPage width=600px height=200px tc:tabGroup switchType=reloadTab tc:tab id=tab1 label=Tab1 tc:out value=Tab1/ /tc:tab tc:tab id=tab2 label=Tab2 tc:panel f:facet name=layout tc:gridLayout columns=1*;1*/ /f:facet tc:sheet id=testTable2 columns=1*;1* showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none var=row value=#{controller.list1} tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet tc:sheet id=testTable3 columns=1*;1* showHeader=true showRowRange=none showPageRange=none showDirectLinks=none first=0 selectable=none var=row value=#{controller.list2} tc:column label=Column 1 tc:out id=column1 value=#{row.column1}/ /tc:column tc:column label=Column 2 tc:out id=column2 value=#{row.column2}/ /tc:column /tc:sheet /tc:panel /tc:tab /tc:tabGroup /tc:page /f:view Please try this code! Regards Helmut - Original Message - From: H. Swaczinna [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Monday, June 04, 2007 1:06 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, with the moons sheet in demo there seems to be no specific IE layout problem (but a general layout problem with the period column header). The layout problems with the IE depend on the whole page layout. Please try the code I posted. Regards Helmut BTW: Who does the IE testing? - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, June 01, 2007 7:42 PM Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE Hi, the tobago-demo http://tobago.atanion.net/tobago-example-demo/faces/overview/tab.jsp already contains a sheet inside a tab. switch to Server side tabbing, Moons. this sheet is loaded by switchtype=reloadTab. BTW: i also have no IE available. Regards, Volker 2007/6/1, Bernd Bohmann