Re: [EXT-SCRIPTING] A little bit of community help needed
No one really interested as it seems, oh well... Werner Am 21.04.10 11:52, schrieb Werner Punz: Hello Everyone, this is not an official announcment but more a call for a little bit of community help. I am close to releasing the first stable version of a new MyFaces subproject. Apache MyFaces Extension-Scripting (Ext-Scripting). To sum it up, Ext-Scripting is a project which tries to integrate scripting languages into the JSF universe and also provides additionally to that JSP like recompilation of Java code within the domain of JSF (currently only MyFaces) We are close to a 1.0 version which will be tagged within a few weeks timeframe, and I want the documentation to be as good as possible, since due to my personal opinion, a project needs a good documentation to help people getting started. But now here is my problem, since I am the lead developer of the project and I am sort of blind regarding my own project, I would like to have people looking over the documentation, which have a clear mind, to give me feedback and suggestions on improving the current state of the documentation. Please have a look here on my private hosting of the current documentation snapshot and give me feedback if the information is enough to get someone who touches the project for the first time, is enough to get him/her started (Hence I am posting this in the users list)! http://people.apache.org/~werpu/ext-script-site/ Thanks in advance, for providing me the input to make the documentation first class. Werner Punz
Re: [EXT-SCRIPTING] A little bit of community help needed
Not true, but 24h is not much time to try something and especially when you have to do almost everything outside the working hours. Already a few things/questions. - on the configentries page you say : The scripting filter for further information look below but there is no below. - on the exampleconfig page there is an example for the LOADER_PATHS parameter with absolute path location. But how about multiple development teams then (path is developer specific)? And what about deployment to production? or is that LOADER_PATHS only meaning full for rapid prototyping. - Should there be an example how you convert the groovy files to Java class files (like you mention somewhere when prototyping is done ) - (not related to doc) Why is groovy version of examples different then core. mvn install pulls 2 groovy jars from Internet. When I have more time the following days, I'll look a bit more into it. regards Rudy. On 22 April 2010 10:48, Werner Punz werner.p...@gmail.com wrote: No one really interested as it seems, oh well... Werner Am 21.04.10 11:52, schrieb Werner Punz: Hello Everyone, this is not an official announcment but more a call for a little bit of community help. I am close to releasing the first stable version of a new MyFaces subproject. Apache MyFaces Extension-Scripting (Ext-Scripting). To sum it up, Ext-Scripting is a project which tries to integrate scripting languages into the JSF universe and also provides additionally to that JSP like recompilation of Java code within the domain of JSF (currently only MyFaces) We are close to a 1.0 version which will be tagged within a few weeks timeframe, and I want the documentation to be as good as possible, since due to my personal opinion, a project needs a good documentation to help people getting started. But now here is my problem, since I am the lead developer of the project and I am sort of blind regarding my own project, I would like to have people looking over the documentation, which have a clear mind, to give me feedback and suggestions on improving the current state of the documentation. Please have a look here on my private hosting of the current documentation snapshot and give me feedback if the information is enough to get someone who touches the project for the first time, is enough to get him/her started (Hence I am posting this in the users list)! http://people.apache.org/~werpu/ext-script-site/http://people.apache.org/%7Ewerpu/ext-script-site/ Thanks in advance, for providing me the input to make the documentation first class. Werner Punz
Re: [EXT-SCRIPTING] A little bit of community help needed
Ok thanks I just got the impression due to not having any feedback, that no one was really interested. I also had somewhat of a bad morning :-) Guess silence is not always an indicator that no one is interested. Am 22.04.10 11:05, schrieb Rudy De Busscher: Not true, but 24h is not much time to try something and especially when you have to do almost everything outside the working hours. Already a few things/questions. - on the configentries page you say : The scripting filter for further information look below but there is no below. I will fix that, sorry for it, and thanks I really missed that in the docs. - on the exampleconfig page there is an example for the LOADER_PATHS parameter with absolute path location. But how about multiple development teams then (path is developer specific)? Ok there are two options, first you could use for instance maven profiles to handle that (just like I do with my own mvn files -Pdevelopment pushes in my internal development web.xml) Or you can use the relative path option we have via not setting anything for the sources than WEB-INF/java or WEB-INF/groovy will be picked up as auto defaults. Maybe a third option post 1.0 via environment settings might be a viable one. And what about deployment to production? or is that LOADER_PATHS only meaning full for rapid prototyping. - Should there be an example how you convert the groovy files to Java class files (like you mention somewhere when prototyping is done ) Well you can use maven or another build file again for it, I might add an example (I am doing something similar in the core module, but I will add the info to do it via maven asap). I think this is a good information for the users and needs to be added. - (not related to doc) Why is groovy version of examples different then core. mvn install pulls 2 groovy jars from Internet. Bug, will fix that before 1.0 :-) Just created an issue so that it does not get lost: https://issues.apache.org/jira/browse/EXTSCRIPT-124 When I have more time the following days, I'll look a bit more into it. regards Rudy. Thanks a lot your suggestions have been a tremendous help. Thats exactly what I need, because I might have missed vital infos due to working on my own project.
Re: [EXT-SCRIPTING] A little bit of community help needed
Ok I opened a new jira issue so that no comment is lost, I will then commit the documentation changes under this issue: https://issues.apache.org/jira/browse/EXTSCRIPT-125 And again thanks for your help. Werner Am 22.04.10 11:15, schrieb Werner Punz: Ok thanks I just got the impression due to not having any feedback, that no one was really interested. I also had somewhat of a bad morning :-) Guess silence is not always an indicator that no one is interested. Am 22.04.10 11:05, schrieb Rudy De Busscher: Not true, but 24h is not much time to try something and especially when you have to do almost everything outside the working hours. Already a few things/questions. - on the configentries page you say : The scripting filter for further information look below but there is no below. I will fix that, sorry for it, and thanks I really missed that in the docs. - on the exampleconfig page there is an example for the LOADER_PATHS parameter with absolute path location. But how about multiple development teams then (path is developer specific)? Ok there are two options, first you could use for instance maven profiles to handle that (just like I do with my own mvn files -Pdevelopment pushes in my internal development web.xml) Or you can use the relative path option we have via not setting anything for the sources than WEB-INF/java or WEB-INF/groovy will be picked up as auto defaults. Maybe a third option post 1.0 via environment settings might be a viable one. And what about deployment to production? or is that LOADER_PATHS only meaning full for rapid prototyping. - Should there be an example how you convert the groovy files to Java class files (like you mention somewhere when prototyping is done ) Well you can use maven or another build file again for it, I might add an example (I am doing something similar in the core module, but I will add the info to do it via maven asap). I think this is a good information for the users and needs to be added. - (not related to doc) Why is groovy version of examples different then core. mvn install pulls 2 groovy jars from Internet. Bug, will fix that before 1.0 :-) Just created an issue so that it does not get lost: https://issues.apache.org/jira/browse/EXTSCRIPT-124 When I have more time the following days, I'll look a bit more into it. regards Rudy. Thanks a lot your suggestions have been a tremendous help. Thats exactly what I need, because I might have missed vital infos due to working on my own project.
[Trinidad]ChartDrillDownListener
I have following problem that I cant solve. I get strange exception. Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml @197,147 chartDrillDownListener=#{facilityOverview.drillDown}: Property 'drillDown' not found on type beans.overview.FacilityOverviewBean but in facilityOverviewBean I have it. faces-config.xml managed-bean managed-bean-namefacilityOverview/managed-bean-name managed-bean-classbeans.overview.FacilityOverviewBean/managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean facilityoverviewBean public class facilityoverviewBean implements Serializable{ ... public void drillDown(ChartDrillDownEvent event) { System.out.println(event.getSource()); } ... } configuration: trinidad 1.2.13, JSF1.2, tomcat Whats wrong? Please help. Jozef
RE: [Trinidad]ChartDrillDownListener
Hi Jozef, Does the name of your managed bean class begin with capital 'F' (cf. FacilityOverviewBean in config)? Erik Erik Govaers Boomgaardstraat 22 | 2600 Antwerpen Tel.: 03 240 56 72 erik.gova...@welzijn.provant.be -Oorspronkelijk bericht- Van: Jozef Dropco [mailto:jozef.dro...@gmail.com] Verzonden: donderdag 22 april 2010 11:50 Aan: MyFaces Discussion Onderwerp: [Trinidad]ChartDrillDownListener I have following problem that I cant solve. I get strange exception. Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml @197,147 chartDrillDownListener=#{facilityOverview.drillDown}: Property 'drillDown' not found on type beans.overview.FacilityOverviewBean but in facilityOverviewBean I have it. faces-config.xml managed-bean managed-bean-namefacilityOverview/managed-bean-name managed-bean-classbeans.overview.FacilityOverviewBean/managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean facilityoverviewBean public class facilityoverviewBean implements Serializable{ ... public void drillDown(ChartDrillDownEvent event) { System.out.println(event.getSource()); } ... } configuration: trinidad 1.2.13, JSF1.2, tomcat Whats wrong? Please help. Jozef Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren. http://www.provant.be/provant_disclaimer.jsp
Re: [Trinidad]ChartDrillDownListener
Sorry Erik, my fault I didnt copy/paste code but write it instead. this is exactly code which I have public class FacilityOverviewBean implements Serializable{ public FacilityOverviewBean() { } public ChartModel getHistory() { ListString group = new ArrayListString(); ListString series = new ArrayListString(); ArrayListListDouble values = new ArrayListListDouble(); series.add(Prices); for (Pricepolicy policy : facility.getPricepolicies()) { group.add(policy.getName()); values.add(Arrays.asList(policy.getPrice().getPrice())); } ChartModel chart = new ChartModel(); try { chart.prepareChart(group, series, null, values); } catch (ISException ex) { Logger.getLogger(FacilityOverviewBean.class.getName()).log(Level.SEVERE, null, ex); return null; } return chart; } public void drillDown(ChartDrillDownEvent event) { System.out.println(kua); System.out.println(event.getSource()); } } webpage contains this tr:chart type=line value=#{facilityOverview.history} chartDrillDownListener=#{facilityOverview.drillDown}/ The chart displays correctly but the listener does not work :( On 22.4.2010 12:11, GOVAERS Erik wrote: Hi Jozef, Does the name of your managed bean class begin with capital 'F' (cf. FacilityOverviewBean in config)? Erik Erik Govaers Boomgaardstraat 22 | 2600 Antwerpen Tel.: 03 240 56 72 erik.gova...@welzijn.provant.be -Oorspronkelijk bericht- Van: Jozef Dropco [mailto:jozef.dro...@gmail.com] Verzonden: donderdag 22 april 2010 11:50 Aan: MyFaces Discussion Onderwerp: [Trinidad]ChartDrillDownListener I have following problem that I cant solve. I get strange exception. Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml @197,147 chartDrillDownListener=#{facilityOverview.drillDown}: Property 'drillDown' not found on type beans.overview.FacilityOverviewBean but in facilityOverviewBean I have it. faces-config.xml managed-bean managed-bean-namefacilityOverview/managed-bean-name managed-bean-classbeans.overview.FacilityOverviewBean/managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean facilityoverviewBean public class facilityoverviewBean implements Serializable{ ... public void drillDown(ChartDrillDownEvent event) { System.out.println(event.getSource()); } ... } configuration: trinidad 1.2.13, JSF1.2, tomcat Whats wrong? Please help. Jozef Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren. http://www.provant.be/provant_disclaimer.jsp
RE: [Trinidad]ChartDrillDownListener
Hi Jozef, Have a look at this http://www.mail-archive.com/users@myfaces.apache.org/msg54570.html Erik Erik Govaers Boomgaardstraat 22 | 2600 Antwerpen Tel.: 03 240 56 72 erik.gova...@welzijn.provant.be -Oorspronkelijk bericht- Van: Jozef Dropco [mailto:jozef.dro...@gmail.com] Verzonden: donderdag 22 april 2010 12:21 Aan: MyFaces Discussion Onderwerp: Re: [Trinidad]ChartDrillDownListener Sorry Erik, my fault I didnt copy/paste code but write it instead. this is exactly code which I have public class FacilityOverviewBean implements Serializable{ public FacilityOverviewBean() { } public ChartModel getHistory() { ListString group = new ArrayListString(); ListString series = new ArrayListString(); ArrayListListDouble values = new ArrayListListDouble(); series.add(Prices); for (Pricepolicy policy : facility.getPricepolicies()) { group.add(policy.getName()); values.add(Arrays.asList(policy.getPrice().getPrice())); } ChartModel chart = new ChartModel(); try { chart.prepareChart(group, series, null, values); } catch (ISException ex) { Logger.getLogger(FacilityOverviewBean.class.getName()).log(Level.SEVERE, null, ex); return null; } return chart; } public void drillDown(ChartDrillDownEvent event) { System.out.println(kua); System.out.println(event.getSource()); } } webpage contains this tr:chart type=line value=#{facilityOverview.history} chartDrillDownListener=#{facilityOverview.drillDown}/ The chart displays correctly but the listener does not work :( On 22.4.2010 12:11, GOVAERS Erik wrote: Hi Jozef, Does the name of your managed bean class begin with capital 'F' (cf. FacilityOverviewBean in config)? Erik Erik Govaers Boomgaardstraat 22 | 2600 Antwerpen Tel.: 03 240 56 72 erik.gova...@welzijn.provant.be -Oorspronkelijk bericht- Van: Jozef Dropco [mailto:jozef.dro...@gmail.com] Verzonden: donderdag 22 april 2010 11:50 Aan: MyFaces Discussion Onderwerp: [Trinidad]ChartDrillDownListener I have following problem that I cant solve. I get strange exception. Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml @197,147 chartDrillDownListener=#{facilityOverview.drillDown}: Property 'drillDown' not found on type beans.overview.FacilityOverviewBean but in facilityOverviewBean I have it. faces-config.xml managed-bean managed-bean-namefacilityOverview/managed-bean-name managed-bean-classbeans.overview.FacilityOverviewBean/managed-bean- class managed-bean-scopesession/managed-bean-scope /managed-bean facilityoverviewBean public class facilityoverviewBean implements Serializable{ ... public void drillDown(ChartDrillDownEvent event) { System.out.println(event.getSource()); } ... } configuration: trinidad 1.2.13, JSF1.2, tomcat Whats wrong? Please help. Jozef Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren. http://www.provant.be/provant_disclaimer.jsp Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren. http://www.provant.be/provant_disclaimer.jsp
Re: [Trinidad] Use Dojo with Trinidad
Pretty old thread, though seems to be the best place for my question. I've been playing around with Dojo and Trinidad, I tried Daniels sample page but for reasons I don't understand (yet) it doesn't work. The html-elements are there but nevertheless the page appears blank. But I got another example working: ?xml version=1.0 encoding=UTF-8? !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; tr:document xmlns:ui=http://java.sun.com/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; title=Dojo Integration to Trinidad f:facet name=metaContainer script type=text/javascript djConfig=parseOnLoad: true src=#{facesContext.externalContext.requestContextPath}/dojo-release-1.4.2/dojo/dojo.js.uncompressed.js / script dojo.require(dijit.form.DateTextBox); /script link rel=stylesheet type=text/css href=#{facesContext.externalContext.requestContextPath}/dojo-release-1.4.2/dijit/themes/tundra/tundra.css / /f:facet h:form input dojoType=dijit.form.DateTextBox / /h:form /tr:document What I can't understand is that the tundra.css styles are being ignored, at least partially. The input field for the date is decorated correctly but the calendar itself looks pretty ugly. Anybody an idea, why's that? Thanks Simon -- View this message in context: http://old.nabble.com/-Trinidad--Use-Dojo-with-Trinidad-tp13968204p28327727.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] Use Dojo with Trinidad
Have you set your body styleClass to Tundra? Classical problem if you apply dojo, that you forget to add the style class to the body element. Dijit usually works works over constructs like that stylewise body.tundra ... .widgetType .subElement etc Also highly recommendable if you have a load of controls on your page do not use the dijit parsing system use the manual startup of the controls and push it into dojo.addOnLoad example dojo.addOnLoad(function () { mydateWidget = new dijit.form.DateTextBox(myId, {attributes}); }); Have in mind you can mix Dojo and Trinidad, I did that successfully in the past, but Dojo is highly sensitive on how and when you initialized its elements and also certain mixing combinations do not like each other, like the dialog and html editor. Also there are some issues like if you want to use a dojo button with jsf, then you should combine it in JSF 2 with a component have the submit properly issued (or provide a simulation of what the standard buttons submit) And at least back then you could not use a certain combination of widgets. Also have a look at dojo faces http://www.dojofaces.org/ I have put my own dojo jsf components project on hold of it. (among private reasons like having become a father and hence not being able to support a huge complib project in my sparetime) That is mostly what you encounter if you use dojo with jsf. Werner Am 22.04.10 13:41, schrieb schneidc: Pretty old thread, though seems to be the best place for my question. I've been playing around with Dojo and Trinidad, I tried Daniels sample page but for reasons I don't understand (yet) it doesn't work. The html-elements are there but nevertheless the page appears blank. But I got another example working: ?xml version=1.0 encoding=UTF-8? !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; tr:document xmlns:ui=http://java.sun.com/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; title=Dojo Integration to Trinidad f:facet name=metaContainer script type=text/javascript djConfig=parseOnLoad: true src=#{facesContext.externalContext.requestContextPath}/dojo-release-1.4.2/dojo/dojo.js.uncompressed.js / script dojo.require(dijit.form.DateTextBox); /script link rel=stylesheet type=text/css href=#{facesContext.externalContext.requestContextPath}/dojo-release-1.4.2/dijit/themes/tundra/tundra.css / /f:facet h:form input dojoType=dijit.form.DateTextBox / /h:form /tr:document What I can't understand is that the tundra.css styles are being ignored, at least partially. The input field for the date is decorated correctly but the calendar itself looks pretty ugly. Anybody an idea, why's that? Thanks Simon
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: How to add new css to Tobago
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 -- View this message in context: http://old.nabble.com/How-to-add-new-css-to-Tobago-tp28288029p28329190.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [TOBAGO] problem selecting current item in tx:selectOneChoice
Hi Michael, (btw yes i work together with Dirk Fangohr. sorry for the delay, was a bit busy last Friday) the problem is you has int as value in getActive() but String in select items. Try tc:selectItem itemValue=#{2} itemLabel=active/ tc:selectItem itemValue=#{1} itemLabel=suspended/ tc:selectItem itemValue=#{0} itemLabel=inactice/ you don't need a converter! Regards, Volker 2010/4/21 Michael Kakuschky kakusc...@elbe-net.de: Hello, I have a strange problem selecting the correct item of tx:selectOneChoice boxes if the itemValue of the tc:selectItem item is an Integer. Storing the selected values works fine as aspected. I will find the correct values in mybackend database What does not work is that after rerendering the correct value is selected. If in my example the MyController.active Integer attribute has a value of 1 suspended should be selected. But it's always the first value of the tc:selectItem elements selected. I tried already to use a converter because I guessed that there is an conversion problem between Integer and String but it does not help. If the selectItem bind to a String it works fine (sure without the integerConverter). With the tomahawk h:selectOneMenu component it works also with Integers. Knows anybody how to solve this problem for tobago to use an Integer as value attribute? tc:cell tx:selectOneChoice value=#{myController.active} label=active converter=integerConverter tc:selectItem itemValue=2 itemLabel=active/ tc:selectItem itemValue=1 itemLabel=suspended/ tc:selectItem itemValue=0 itemLabel=inactice/ /tx:selectOneChoice /tc:cell public class MyController{ private Integer active = 1; public Integer getActive() { return active; } public void setActive(Integer active) { this.active = active; } } public class IntegerConverter implements Converter { public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { return Integer.getInteger(value); } public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { if (value instanceof Integer) { return ((Integer) value).toString(); } return ; } } Thanks and best regards Michael -- inexso - information exchange solutions GmbH Bismarckstraße 13 | 26122 Oldenburg Tel.: +49 441 4082 356 | FAX: +49 441 4082 355 | www.inexso.de
[ANNOUNCE] MyFaces Core v2.0.0 Release
The Apache MyFaces team is pleased to announce the release of MyFaces Core 2.0.0. MyFaces Core is a JavaServer(tm) Faces 2.0 implementation as specified by JSR-314. MyFaces Core has passed Sun's JSR-314 TCK and is 100% compliant with the JSR-314 specification. MyFaces Core 2.0.0 is available in both binary and source distributions. * http://myfaces.apache.org/download.html MyFaces Core is also available in the central Maven repository under Group ID org.apache.myfaces.core. Release Notes - MyFaces Core - Version 2.0.0 Bug * [MYFACES-2361] - Add missing component system event dispatches * [MYFACES-2554] - myfaces's facelettaglibrary XSD incomplete * [MYFACES-2615] - Conversion errors should add a FacesMessage instead of throwing a FacesException * [MYFACES-2621] - BeanValidation does not work with Unified EL 2.2 * [MYFACES-2622] - BeanValidator has to handle CompositeComponentExpressionHolder when resolving the ValueExpression * [MYFACES-2623] - validation-api and el-api 2.2 should be optional dependencies with scope compile in myfaces-api * [MYFACES-2624] - Automatically add h:messages if ProjectStage is Development * [MYFACES-2625] - TagLibrary using custom namespace fails to load composite component * [MYFACES-2626] - Application.createResource does not trip extension from resource name when try to resolve composite component class automatically * [MYFACES-2630] - HtmlBody 'onload' attribute encoding issues * [MYFACES-2631] - javax.faces.Messages.zh lacks two properties. * [MYFACES-2633] - Cannot set properties on custom composite component class when are implemented on getter/setter * [MYFACES-2636] - Need to check for null ValueExpression in _BeanValidatorUELUtils.getUELValueReferenceWrapper() * [MYFACES-2637] - Serious Bug! ajax cant work using multiple forms. * [MYFACES-2639] - Make org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS param = auto the default * [MYFACES-2641] - Use the application's ViewHandler to create the view in FaceletViewMetadata * [MYFACES-2643] - Update Google App Engine APT Doc * [MYFACES-2645] - The view state is saved before encodeAll() is called on every UIViewParameter in an AJAX request * [MYFACES-2646] - Missing unit test for application.createComponent(FacesContext context, Resource componentResource) * [MYFACES-2647] - MyFacesContainerInitializer doesn't check for null class name * [MYFACES-2649] - Ajax chokes on script triggered onchange if input has onchange= * [MYFACES-2650] - chaining ajax onchange with existing onchange creates syntax error * [MYFACES-2654] - Trinidad ajax-branch does not work with MyFaces2 * [MYFACES-2656] - Use UINamingContainer.getSeparatorChar instead NamingContainer.SEPARATOR_CHAR * [MYFACES-2657] - Already escaped apostrophes are double-escaped while building the ClientBehavior JavaScript * [MYFACES-2659] - TagDecorator in IMPL and API ... * [MYFACES-2661] - h:link render conversationContext param multiple times Improvement * [MYFACES-2546] - Conversion rules for obtaing renderable String from the value property of SelectItem * [MYFACES-2658] - Indicate a better error when using Facelet TAGs on JSP(X) pages New Feature * [MYFACES-2116] - TODO 65: Partial View Lifecycle * [MYFACES-2644] - IDE Tutorials for Myfaces 2 Google App Engine support Task * [MYFACES-2124] - Enforce new API on UIViewRoot * [MYFACES-2183] - Integrate Facelets * [MYFACES-2323] - Implement f:ajax tag handler * [MYFACES-2329] - Add Facelet taglib 2.0 schema * [MYFACES-2619] - FacesContext.validationFailed() must be called on validation errors in validate() * [MYFACES-2648] - AbstractMyFacesListener is not needed anymore * [MYFACES-2653] - Fix implee6 include on code and clean myfaces impl pom.xml * [MYFACES-2660] - Review Facelets api usage regards Leonardo Uribe
Re: [TOBAGO] problem selecting current item in tx:selectOneChoice
Hi, there is still a little problem with that. #{0} is a Long value, so the getter/setter needs be a also a Long and not an Integer. I don't know, if in EL there is something like a cast operator... Regards, Udo Am 22.04.10 18:20, schrieb Volker Weber: Hi Michael, (btw yes i work together with Dirk Fangohr. sorry for the delay, was a bit busy last Friday) the problem is you has int as value in getActive() but String in select items. Try tc:selectItem itemValue=#{2} itemLabel=active/ tc:selectItem itemValue=#{1} itemLabel=suspended/ tc:selectItem itemValue=#{0} itemLabel=inactice/ you don't need a converter! Regards, Volker 2010/4/21 Michael Kakuschkykakusc...@elbe-net.de: Hello, I have a strange problem selecting the correct item of tx:selectOneChoice boxes if the itemValue of the tc:selectItem item is an Integer. Storing the selected values works fine as aspected. I will find the correct values in mybackend database What does not work is that after rerendering the correct value is selected. If in my example the MyController.active Integer attribute has a value of 1 suspended should be selected. But it's always the first value of the tc:selectItem elements selected. I tried already to use a converter because I guessed that there is an conversion problem between Integer and String but it does not help. If the selectItem bind to a String it works fine (sure without the integerConverter). With the tomahawk h:selectOneMenu component it works also with Integers. Knows anybody how to solve this problem for tobago to use an Integer as value attribute? tc:cell tx:selectOneChoice value=#{myController.active} label=active converter=integerConverter tc:selectItem itemValue=2 itemLabel=active/ tc:selectItem itemValue=1 itemLabel=suspended/ tc:selectItem itemValue=0 itemLabel=inactice/ /tx:selectOneChoice /tc:cell public class MyController{ private Integer active = 1; public Integer getActive() { return active; } public void setActive(Integer active) { this.active = active; } } public class IntegerConverter implements Converter { public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { return Integer.getInteger(value); } public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { if (value instanceof Integer) { return ((Integer) value).toString(); } return ; } } Thanks and best regards Michael
Re: [TOBAGO] problem selecting current item in tx:selectOneChoice
Hello Volker, thanks for reply. Now my tx:selectOneChoice box looks like the following. Converter is away and values in braces tx:selectOneChoice value=#{myController.active} label=active f:selectItem itemValue=#{0} itemLabel=inactiv / f:selectItem itemValue=#{1} itemLabel=activ / /tx:selectOneChoice but now nothing works even not storing the values in the Controller. if I use the version without the braces I can store the value but the old problem is there that rendering the current id of active is not selected in the tx:selectOneChoice : tx:selectOneChoice value=#{myController.active} label=active f:selectItem itemValue=0 itemLabel=inactiv / f:selectItem itemValue=1 itemLabel=activ / /tx:selectOneChoice The getter and Setter definition looks like the these ones: private Integer active; public Integer getActive() { return active; } public void setActive(Integer active) { this.active = active; } Any idea else? Best regards Michael Volker Weber schrieb: Hi Michael, (btw yes i work together with Dirk Fangohr. sorry for the delay, was a bit busy last Friday) the problem is you has int as value in getActive() but String in select items. Try tc:selectItem itemValue=#{2} itemLabel=active/ tc:selectItem itemValue=#{1} itemLabel=suspended/ tc:selectItem itemValue=#{0} itemLabel=inactice/ you don't need a converter! Regards, Volker 2010/4/21 Michael Kakuschky kakusc...@elbe-net.de: Hello, I have a strange problem selecting the correct item of tx:selectOneChoice boxes if the itemValue of the tc:selectItem item is an Integer. Storing the selected values works fine as aspected. I will find the correct values in mybackend database What does not work is that after rerendering the correct value is selected. If in my example the MyController.active Integer attribute has a value of 1 suspended should be selected. But it's always the first value of the tc:selectItem elements selected. I tried already to use a converter because I guessed that there is an conversion problem between Integer and String but it does not help. If the selectItem bind to a String it works fine (sure without the integerConverter). With the tomahawk h:selectOneMenu component it works also with Integers. Knows anybody how to solve this problem for tobago to use an Integer as value attribute? tc:cell tx:selectOneChoice value=#{myController.active} label=active converter=integerConverter tc:selectItem itemValue=2 itemLabel=active/ tc:selectItem itemValue=1 itemLabel=suspended/ tc:selectItem itemValue=0 itemLabel=inactice/ /tx:selectOneChoice /tc:cell public class MyController{ private Integer active = 1; public Integer getActive() { return active; } public void setActive(Integer active) { this.active = active; } } public class IntegerConverter implements Converter { public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { return Integer.getInteger(value); } public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { if (value instanceof Integer) { return ((Integer) value).toString(); } return ; } } Thanks and best regards Michael
Re: [TOBAGO] How to add new css to Tobago
Hi, The simple way: You can also put a file style/style.css (exactly this name) in the webapp directory. The ResourceManager will find it and add it to the list of needed resources. The style will be effect all Tobago pages in one application. Helmut solution is also possible. The advantage is, you can decide, which pages need the style. It is also possible to make changes in more than one theme, if needed. If you want to make bigger changes to the design of the pages (specially for more than one application), you may want to write a Tobago theme, that contains your custom look and feel. Regards, Udo Am 22.04.10 15:55, schrieb Helmut Swaczinna: 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] problem selecting current item in tx:selectOneChoice
Hello Udo, hello Volker, both together (using braces for EL expression and long data type for getter and setter) helped to get the tx:selectOneChoice working like expected :-) Since I use many int getters and setters where I want to use the tx:selectOneChoice component it would be nice if there is some way to convert the int to long in EL. It would help to save a lot of work.. Thanks best regards Michael Udo Schnurpfeil schrieb: Hi, there is still a little problem with that. #{0} is a Long value, so the getter/setter needs be a also a Long and not an Integer. I don't know, if in EL there is something like a cast operator... Regards, Udo Am 22.04.10 18:20, schrieb Volker Weber: Hi Michael, (btw yes i work together with Dirk Fangohr. sorry for the delay, was a bit busy last Friday) the problem is you has int as value in getActive() but String in select items. Try tc:selectItem itemValue=#{2} itemLabel=active/ tc:selectItem itemValue=#{1} itemLabel=suspended/ tc:selectItem itemValue=#{0} itemLabel=inactice/ you don't need a converter! Regards, Volker 2010/4/21 Michael Kakuschkykakusc...@elbe-net.de: Hello, I have a strange problem selecting the correct item of tx:selectOneChoice boxes if the itemValue of the tc:selectItem item is an Integer. Storing the selected values works fine as aspected. I will find the correct values in mybackend database What does not work is that after rerendering the correct value is selected. If in my example the MyController.active Integer attribute has a value of 1 suspended should be selected. But it's always the first value of the tc:selectItem elements selected. I tried already to use a converter because I guessed that there is an conversion problem between Integer and String but it does not help. If the selectItem bind to a String it works fine (sure without the integerConverter). With the tomahawk h:selectOneMenu component it works also with Integers. Knows anybody how to solve this problem for tobago to use an Integer as value attribute? tc:cell tx:selectOneChoice value=#{myController.active} label=active converter=integerConverter tc:selectItem itemValue=2 itemLabel=active/ tc:selectItem itemValue=1 itemLabel=suspended/ tc:selectItem itemValue=0 itemLabel=inactice/ /tx:selectOneChoice /tc:cell public class MyController{ private Integer active = 1; public Integer getActive() { return active; } public void setActive(Integer active) { this.active = active; } } public class IntegerConverter implements Converter { public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { return Integer.getInteger(value); } public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { if (value instanceof Integer) { return ((Integer) value).toString(); } return ; } } Thanks and best regards Michael