Re: Proposal: Modest Restructuring of MyFaces Project
My intention was to signal new users more clearly that this library is independent of the myfaces implementation: myfaces-jsfcommons, a JSF Commons Library under the MyFaces brand. That was the idea behind, but perhaps I'm thinking too sophisticated :-) I'm ok with myfaces-commons too, of course. I can see the intent, but commons also implies (at least from my Jakarta Commons biased viewpoint :-) that the stuff here is generally reusable, completely separate from MyFaces, and that doesn't seem likely for what we've been describing here. That's exactly what is my intention: To have a place for all the stuff that is reusable and independent from MyFaces. And that's what 99% of the current classes in the shared src tree already are, though it might not seem so at first glance. To give you an idea, I pick out some classes: - RendererUtils: a collection of convenient methods for Renderers - MessageUtils: convenient helpers to add JSF Messages - Html*TagBase classes: convenient base classes for writing derived Tag classes - Html*RendererBase: convenient base classes for writing renderers that implement or extend the functionality of standard renderers Of course, there are small refactorings that have to be done. And what is definitly bad now and offends the good tradition of jakarta commons classes is the lack of documentation. To have a really commonly usable myfaces-commons lib there is definitly some work to be done. So I still feel confident that myfaces-commons would be a name that makes perfect sense even if it is an ambitious goal to aim at. Consider: * support * shared * infrastructure Craig, I'm not sure I understand what you mean. Are these your name proposals or hints for issues we should consider when we speak of a separate commons subproject? Sorry for being slow-witted ;-) By the way, it sounds like you agree that the API and Impl jars should be part of a single implementation project right? Yes, IMHO, we are allowed to focus the user first, that needs both API and Impl at runtime. If we maintain a separate API jar and document it, that is enough for the user, that needs only one of the JARs for any special reason. Combining the JARs will *really* do a disservice to any potential user that is currently using the JSF RI (with pointers to separate jsf-api.jar and jsf-impl.jar properties), but wants to try MyFaces. Sorry for misleading. There must of course exist separate jars for api and impl. No question. -Manfred
Re: Need to sign release jars
Sean, I just added my pubkey and commited the KEYS file in MyFaces CVS root. James, is it ok to sign another committers key if he adds and commits his key to the KEYS file? I mean, is CVS log history safe enough to trust a key on the basis of it? Thanks, -Manfred On Apr 11, 2005 8:10 PM, James Mitchell [EMAIL PROTECTED] wrote: You'll definitely want to take advantage of the mirrors. I shouldn't have to explain what impact you'll have if you don't. Onward and upward, let's face it (pun intended) MyFaces is picking up steam. Everyone on the dev team (committers) should be versed in how to branch and release (checksum et al). This is probably redundant for most of you, but this is a good guide to follow: http://www.apache.org/dev/new-committers-guide.html (especially the part about umask) From the above link, there is a small section (PGP/MD5) that references this link: http://people.apache.org/~henkp/ (a good read) I have not actually signed a release (yet), so I can't say oh, it's so easy. You might ping Martin, Ted, or Craig (Struts) to see if they can point you to a better resource or how-to. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Sean Schofield [EMAIL PROTECTED] To: MyFaces Development myfaces-dev@incubator.apache.org Sent: Monday, April 11, 2005 11:07 AM Subject: Need to sign release jars I built and published the 1.0.9 release. Matthias said that we need to sign with PGP before the official announcement. Can someone help me out with this? We should probably do this ASAP since the jars are already available on the myfaces website. Also at some point we need to discuss mirroring and how that works or if its necessary. sean
[jira] Created: (MYFACES-179) UIInput.updateModel(...) hides a RuntimeException
UIInput.updateModel(...) hides a RuntimeException -- Key: MYFACES-179 URL: http://issues.apache.org/jira/browse/MYFACES-179 Project: MyFaces Type: Improvement Versions: Nightly Build Reporter: Mathias Broekelmann Priority: Minor If a RuntimeException is thrown in the Method UIInput.updateModel(FacesContext) an error message is generated but without any stacktrace. This causes a lot of trouble for the user to find the cause of the error. Here is a patch to write the stacktrace: Index: UIInput.java === RCS file: /home/cvspublic/incubator-myfaces/src/jsfapi/javax/faces/component/UIInput.java,v retrieving revision 1.16 diff -u -r1.16 UIInput.java --- UIInput.java4 Mar 2005 00:28:45 - 1.16 +++ UIInput.java12 Apr 2005 11:13:34 - @@ -252,6 +252,7 @@ catch (RuntimeException e) { //Object[] args = {getId()}; + context.getExternalContext().log(e.getMessage(), e); _MessageUtils.addErrorMessage(context, this,CONVERSION_MESSAGE_ID,new Object[]{getId()}); setValid(false); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
[jira] Resolved: (MYFACES-179) UIInput.updateModel(...) hides a RuntimeException
[ http://issues.apache.org/jira/browse/MYFACES-179?page=history ] Manfred Geiler resolved MYFACES-179: Assign To: Manfred Geiler Resolution: Fixed Fix Version: 1.0.9 beta UIInput.updateModel(...) hides a RuntimeException - Key: MYFACES-179 URL: http://issues.apache.org/jira/browse/MYFACES-179 Project: MyFaces Type: Improvement Versions: Nightly Build Reporter: Mathias Broekelmann Assignee: Manfred Geiler Priority: Minor Fix For: 1.0.9 beta If a RuntimeException is thrown in the Method UIInput.updateModel(FacesContext) an error message is generated but without any stacktrace. This causes a lot of trouble for the user to find the cause of the error. Here is a patch to write the stacktrace: Index: UIInput.java === RCS file: /home/cvspublic/incubator-myfaces/src/jsfapi/javax/faces/component/UIInput.java,v retrieving revision 1.16 diff -u -r1.16 UIInput.java --- UIInput.java 4 Mar 2005 00:28:45 - 1.16 +++ UIInput.java 12 Apr 2005 11:13:34 - @@ -252,6 +252,7 @@ catch (RuntimeException e) { //Object[] args = {getId()}; + context.getExternalContext().log(e.getMessage(), e); _MessageUtils.addErrorMessage(context, this,CONVERSION_MESSAGE_ID,new Object[]{getId()}); setValid(false); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
RE: Proposed improvement to x:dataTable
Mathias, While your x:columns is very nice, it does not answer Sean's request to have something where the columns can be independently formatted. All of your columns in x:columns must have the same output, so we can't have one column that provides a link to an outside source, or is otherwise dynamically rendered. We also evaluated using x:columns and are on the road to writing our own custom table column components to meet our user requirements. Our users are wanting to be able to dynamically re-order the columns in the table, and pick and choose which ones to show. We're currently planning on implementing this by having the JSP define all the possible columns, and specify on the column what index the columns should have (to specify column ordering, to be sorted handled by our DataTable). We're also adding a rendered attribute to the column, to allow columns to be shown/hidden as needed. If anyone has any ideas of how we can meet our user requirements with some available component out there, we'd love to hear about it. Neal Haggard Senior System Developer SAS Institute -Original Message- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:29 AM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Hi Sean, Take a look at the new component x:columns and the example crosstable. I think it is exactly what you need to create a datatable with variable columns. I've allready posted an example how to use it but I will post it again: x:dataTable value=#{data.rows} var=row !-- just a column -- h:column f:facet name=header h:outputText value=fixed column / /f:facet h:outputText value=#{row.attributeName} / /h:column !-- new columns component renders a column for each element in data.columns -- x:columns value=#{data.columns} var=column f:facet name=header !-- row is not available! -- h:outputText value=#{column.label} / /f:facet !-- row is also available -- h:outputText value=#{data.columnValue} / f:facet name=footer !-- row is not available! -- h:outputText value=#{column.footer} / /f:facet /x:columns /x:dataTable We use this component in our application and it works very well. All what you need is to use DataModel for the data.rows and data.columns property. You can determine the current row and column in the method data.columnValue through data.rows.rowData and data.columns.rowData (which contains the current column of course). Hope that will help. Mathias -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 8:06 PM To: MyFaces Development Subject: Proposed improvement to x:dataTable We're trying to use x:dataTable in a project for work right now. There are a few limitations that I would like to address with the group's approval. The main problem we're having is that you cannot have an open-ended list of columns in your data. Specifically, in our application we have a feature where user's can build their own SQL queries and generate custom reports. We display the reports in a table now but we don' t have the sort or page functionality of x:dataTable. We can't use x:dataTable as is b/c we don't know how many columns there are in advance (or what name to give the header.) I'd like to add a few additional attributes to x:dataTable that would allow you to specify value binding expressions for determining the names of the column headers along with which facet to use for which column type. Everything would work as before so this is just extra functionality. If there aren't any objections I would like to add the functionality and a simple example for people to look at. If there are problems with it (or improvements) then we can back out the changes or make further changes. I think the idea is easier to explain with actual code. Please let me know if you have a problem with this approach. sean
RE: Proposed improvement to x:dataTable
Hi Neal, -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:20 PM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Mathias, While your x:columns is very nice, it does not answer Sean's request to have something where the columns can be independently formatted. All of your columns in x:columns must have the same output, so we can't have one column that provides a link to an outside source, or is otherwise dynamically rendered. You can put everything into a columns component. I use the rendered flag to switch the components defined in the jsp on or off. So everything is defined in the columns component (through includes of other jsps). We also evaluated using x:columns and are on the road to writing our own custom table column components to meet our user requirements. Our users are wanting to be able to dynamically re-order the columns in the table, and pick and choose which ones to show. We're currently planning on implementing this by having the JSP define all the possible columns, and specify on the column what index the columns should have (to specify column ordering, to be sorted handled by our DataTable). We're also adding a rendered attribute to the column, to allow columns to be shown/hidden as needed. Our users do the same with the columns component. They choose the columns they want and the content is rendered in depend of the data which contains the column. How the content is rendered is defined through one of the nested panelgroups inside the columns component. If anyone has any ideas of how we can meet our user requirements with some available component out there, we'd love to hear about it. Here is an example how we use the columns component: Content of overview.jsp which shows the datatable x:dataTable rowClasses=data,data2 preserveDataModel=false styleClass=data border=0 frame=box value=#{overview.resourcesModel} var=line h:column rendered=#{overview.modifiable} f:facet name=header h:commandLink styleClass=hauptnav action=#{overview.create} h:graphicImage border=0 title=Erstellen value=/public/images/admin/erstellen.gif alt=Erstellen / /h:commandLink /f:facet h:commandLink styleClass=hauptnav action=#{overview.modify} h:graphicImage border=0 title=Bearbeiten value=/public/images/admin/bearbeiten.gif alt=Bearbeiten / /h:commandLink /h:column x:columns value=#{overview.attributes} var=attr f:facet name=header h:outputText value=#{attr.label} / /f:facet !-- we use panelGroup to switch the rendering of different content -- h:panelGroup rendered=#{attr.booleanType attr.value != null} !-- show a boolean value through graphic images -- h:graphicImage url=/public/images/admin/activeCheckBox.gif rendered=#{attr.value} / h:graphicImage url=/public/images/admin/inactiveCheckBox.gif rendered=#{!attr.value} / /h:panelGroup h:panelGroup rendered=#{!attr.booleanType} !-- show other values through normal outputText -- h:outputText value=#{attr.value} / /h:panelGroup /x:columns h:column rendered=false f:facet name=header h:commandLink value=... action=#{overview.selectAttributes} / /f:facet /h:column /p:dataTable
[jira] Created: (MYFACES-182) HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war
HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war -- Key: MYFACES-182 URL: http://issues.apache.org/jira/browse/MYFACES-182 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Linux Kernel 2.6.10, JBoss 4.0.1 sp1, jdk1.5.0_02 Reporter: David R. Heffelfinger Deploying myfaces-examples.war and pointing the browser to http://localhost:8080/myfaces-examples Results in a NullPointerException. Here is a partial stack trace: 11:08:13,036 INFO [STDOUT] java.lang.NullPointerException 11:08:13,037 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) 11:08:13,038 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
[jira] Created: (MYFACES-183) FacesConfigurator should report where xml parsing errors occur
FacesConfigurator should report where xml parsing errors occur -- Key: MYFACES-183 URL: http://issues.apache.org/jira/browse/MYFACES-183 Project: MyFaces Type: Improvement Versions: 1.0.9 beta Reporter: Mike Kienenberger Priority: Minor org.apache.myfaces.config.FacesConfigurator should report which resources it was parsing when it encounters an error. This could be done by wrapping the parsing exception with another more verbose exception. Thus, something like MyApp ERROR [main 04-12 11:24:18] Digester: Parse Error at line 2 column 14: Document is invalid: no grammar found. org.xml.sax.SAXParseException: Document is invalid: no grammar found. becomes MyApp ERROR [main 04-12 11:24:18] FacesConfigurator : Error parsing jsf-spring-2.7.1.jar:faces-config.xml: Parse Error at line 2 column 14: Document is invalid: no grammar found. org.xml.sax.SAXParseException: Document is invalid: no grammar found. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
JSCookMenu example not working in examples app.
In the unofficial 1.0.9 build (and presumably the nightlies) the myfaces-examples application does not work. There appears to be an issue with jscookmenu. - Root Cause - java.lang.NullPointerException at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) Can someone please look into this? sean
Re: Need to sign release jars
I removed the 1.0.9 build from the myfaces site since we're not yet official. The website still says we are released but we can't fix that until Matthias gets back (unless Manfred or someone else has the permission to edit the file.) We'll obviously need to work out a more reliable system for that in the future. sean On Apr 12, 2005 5:34 AM, Manfred Geiler [EMAIL PROTECTED] wrote: Sean, I just added my pubkey and commited the KEYS file in MyFaces CVS root. James, is it ok to sign another committers key if he adds and commits his key to the KEYS file? I mean, is CVS log history safe enough to trust a key on the basis of it? Thanks, -Manfred On Apr 11, 2005 8:10 PM, James Mitchell [EMAIL PROTECTED] wrote: You'll definitely want to take advantage of the mirrors. I shouldn't have to explain what impact you'll have if you don't. Onward and upward, let's face it (pun intended) MyFaces is picking up steam. Everyone on the dev team (committers) should be versed in how to branch and release (checksum et al). This is probably redundant for most of you, but this is a good guide to follow: http://www.apache.org/dev/new-committers-guide.html (especially the part about umask) From the above link, there is a small section (PGP/MD5) that references this link: http://people.apache.org/~henkp/ (a good read) I have not actually signed a release (yet), so I can't say oh, it's so easy. You might ping Martin, Ted, or Craig (Struts) to see if they can point you to a better resource or how-to. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Sean Schofield [EMAIL PROTECTED] To: MyFaces Development myfaces-dev@incubator.apache.org Sent: Monday, April 11, 2005 11:07 AM Subject: Need to sign release jars I built and published the 1.0.9 release. Matthias said that we need to sign with PGP before the official announcement. Can someone help me out with this? We should probably do this ASAP since the jars are already available on the myfaces website. Also at some point we need to discuss mirroring and how that works or if its necessary. sean
[jira] Updated: (MYFACES-182) HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war
[ http://issues.apache.org/jira/browse/MYFACES-182?page=history ] David R. Heffelfinger updated MYFACES-182: -- Attachment: HtmlJSCookMenuRenderer.patch Attached is a patch for HtmlJSCookMenuRenderer.java that should take care of the issue. It basically wraps the offending line number in a conditional checking for null, it then adds an and clause to the conditional in line 97 to check for an empty string in addition to checking for null. David HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war -- Key: MYFACES-182 URL: http://issues.apache.org/jira/browse/MYFACES-182 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Linux Kernel 2.6.10, JBoss 4.0.1 sp1, jdk1.5.0_02 Reporter: David R. Heffelfinger Attachments: HtmlJSCookMenuRenderer.patch Deploying myfaces-examples.war and pointing the browser to http://localhost:8080/myfaces-examples Results in a NullPointerException. Here is a partial stack trace: 11:08:13,036 INFO [STDOUT] java.lang.NullPointerException 11:08:13,037 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) 11:08:13,038 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
Re: JSCookMenu example not working in examples app.
Sorry. I just came back from giving a 2 hr presentation. I am a litt out of it :-) Thanks for taking the initiative and posting to JIRA (which is also probably something I should have done.) sean On Apr 12, 2005 12:11 PM, David Heffelfinger [EMAIL PROTECTED] wrote: Way ahead of you :) Look at Jira issue 182. David On Apr 12, 2005 12:01 PM, Sean Schofield [EMAIL PROTECTED] wrote: In the unofficial 1.0.9 build (and presumably the nightlies) the myfaces-examples application does not work. There appears to be an issue with jscookmenu. - Root Cause - java.lang.NullPointerException at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) Can someone please look into this? sean
[jira] Created: (MYFACES-184) in init(); tmp file can not delete... myfaces 1.0.9 / throws javax.faces.FacesException: java.security.AccessControlException: access denied (java.io.FilePermission
in init(); tmp file can not delete... myfaces 1.0.9 / throws javax.faces.FacesException: java.security.AccessControlException: access denied (java.io.FilePermission Key: MYFACES-184 URL: http://issues.apache.org/jira/browse/MYFACES-184 Project: MyFaces Type: Bug Environment: dual HT xenon CPUs w2003server sunone 7.0.0_6 j2ee 1.3 j2se 1.4.2 myfaces 1.0.9 Reporter: Gulyás István Priority: Minor in FacesConfigurator.java(feedJarConfig 391) phrase 3 tmp.delete() throws an AccessControlException. it seems tmp has not had ZipFile.OPEN_DELETE mode argument (ZipFile constructor check it) or some process(native zipfile.close(long)?) access the tmp file. [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: javax.faces.FacesException: java.security.AccessControlException: access denied (java.io.FilePermission C:\WINDOWS\TEMP\myfaces21123.jar delete) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.config.FacesConfigurator.feedJarConfig(FacesConfigurator.java:399) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.config.FacesConfigurator.feedJarFileConfigurations(FacesConfigurator.java:311) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:203) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:105) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:88) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3275) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3595) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Embedded.java:957) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission C:\WINDOWS\TEMP\myfaces21123.jar delete) . source in FacesConfigurator.java(feedJarConfig 362) phrase 3: if (found) { tmp = File.createTempFile(myfaces, .jar); in = _externalContext.getResourceAsStream(jarPath); FileOutputStream out = new FileOutputStream(tmp); byte[] buffer = new byte[4096]; int r; while ((r = in.read(buffer)) != -1) { out.write(buffer, 0, r); } out.close(); JarFile jarFile = new JarFile(tmp); try { JarEntry configFile = jarFile.getJarEntry(META-INF/faces-config.xml); if (configFile != null) { if (log.isDebugEnabled()) log.debug(faces-config.xml found in jar + jarPath); InputStream stream = jarFile.getInputStream(configFile); String systemId = jar: + tmp.toURL() + !/ + configFile.getName(); if (log.isInfoEnabled()) log.info(Reading config + systemId); _dispenser.feed(_unmarshaller.getFacesConfig(stream, systemId)); } } finally { jarFile.close(); tmp.delete(); } } else { if (log.isDebugEnabled()) log.debug(Jar + jarPath + contains no faces-config.xml);
Re: documentation and wiki
Yes we hope to keep the documentation flowing. We're really picking up a lot of new users (at least judging by the list traffic) - hopefully we can get them to help us with the rest of the documentation. sean ps. 1.0.9 is technically not official yet since we need to do a few ASF odds and ends (website is mistaken on that point.) Its basically done though. On Apr 12, 2005 10:56 AM, Kito D. Mann [EMAIL PROTECTED] wrote: Hey guys, I just noticed the new docs and the Wiki -- just what I've been waiting for :-). Also, congrats on getting 1.09 out... ~~~ Kito D. Mann Author, JavaServer Faces in Action http://www.JSFCentral.com - JSF FAQ, news, and info Are you using JSF in a project? Send an e-mail to [EMAIL PROTECTED] and you could win a free copy of JavaServer Faces in Action!
[jira] Commented: (MYFACES-184) in init(); tmp file can not delete... myfaces 1.0.9 / throws javax.faces.FacesException: java.security.AccessControlException: access denied (java.io.FilePermission
[ http://issues.apache.org/jira/browse/MYFACES-184?page=comments#action_62663 ] Gulyás István commented on MYFACES-184: --- if i delete all faces-config.xml from jars, it seems good. in init(); tmp file can not delete... myfaces 1.0.9 / throws javax.faces.FacesException: java.security.AccessControlException: access denied (java.io.FilePermission Key: MYFACES-184 URL: http://issues.apache.org/jira/browse/MYFACES-184 Project: MyFaces Type: Bug Environment: dual HT xenon CPUs w2003server sunone 7.0.0_6 j2ee 1.3 j2se 1.4.2 myfaces 1.0.9 Reporter: Gulyás István Priority: Minor in FacesConfigurator.java(feedJarConfig 391) phrase 3 tmp.delete() throws an AccessControlException. it seems tmp has not had ZipFile.OPEN_DELETE mode argument (ZipFile constructor check it) or some process(native zipfile.close(long)?) access the tmp file. [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: javax.faces.FacesException: java.security.AccessControlException: access denied (java.io.FilePermission C:\WINDOWS\TEMP\myfaces21123.jar delete) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.config.FacesConfigurator.feedJarConfig(FacesConfigurator.java:399) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.config.FacesConfigurator.feedJarFileConfigurations(FacesConfigurator.java:311) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:203) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:105) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:88) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3275) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3595) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Embedded.java:957) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170) [12/Apr/2005:16:03:10] WARNING ( 1060): CORE3283: stderr: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission C:\WINDOWS\TEMP\myfaces21123.jar delete) . source in FacesConfigurator.java(feedJarConfig 362) phrase 3: if (found) { tmp = File.createTempFile(myfaces, .jar); in = _externalContext.getResourceAsStream(jarPath); FileOutputStream out = new FileOutputStream(tmp); byte[] buffer = new byte[4096]; int r; while ((r = in.read(buffer)) != -1) { out.write(buffer, 0, r); } out.close(); JarFile jarFile = new JarFile(tmp); try { JarEntry configFile = jarFile.getJarEntry(META-INF/faces-config.xml); if (configFile != null) { if (log.isDebugEnabled()) log.debug(faces-config.xml found in jar + jarPath); InputStream stream = jarFile.getInputStream(configFile); String systemId = jar: + tmp.toURL() + !/ + configFile.getName(); if (log.isInfoEnabled()) log.info(Reading config + systemId); _dispenser.feed(_unmarshaller.getFacesConfig(stream,
[jira] Commented: (MYFACES-182) HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war
[ http://issues.apache.org/jira/browse/MYFACES-182?page=comments#action_62664 ] sean schofield commented on MYFACES-182: Unable to patch. I get an assertion failure (line 321.) A google search seems to indicate that this is something to do with the end of line character. Which OS and IDE are you using? Is there an option to preserver the end of line character of the original file? I can probably work out the changes by visually inspecting your patch but it would be nice if we could figure out the problem so that I can apply future patches of yours. HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war -- Key: MYFACES-182 URL: http://issues.apache.org/jira/browse/MYFACES-182 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Linux Kernel 2.6.10, JBoss 4.0.1 sp1, jdk1.5.0_02 Reporter: David R. Heffelfinger Attachments: HtmlJSCookMenuRenderer.patch Deploying myfaces-examples.war and pointing the browser to http://localhost:8080/myfaces-examples Results in a NullPointerException. Here is a partial stack trace: 11:08:13,036 INFO [STDOUT] java.lang.NullPointerException 11:08:13,037 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) 11:08:13,038 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
Re: Proposed improvement to x:dataTable
Neal and Matthias, Thank you for two excellent posts. Neal, you expressed my concerns exactly. I did not see a way to make x:columns work. Matthias, your solution looks excellent. I am not sure if it covers all of my cases but it will definitely get me closer. I will see if we can make this work. BTW, I was not really aware of x:columns or what it did. Not surprising given the low level of documentation out there. Matthias, would you be willing to help us out with improving this documentation? Could you put something together like what we have for some of the other components (http://myfaces.apache.org/components/tree2.html). If you feel adventurous you can write it using Forrest (there is a components-template.xml that you can use to get you started.) Otherwise if you sent me the text and a screen shot I could port it over for you. My coworker has already improved the datatable examples (which I will commit shortly) and I'll see if we can add one that incorporates x:column as well. Regards, sean On Apr 12, 2005 9:55 AM, Broekelmann, Mathias [EMAIL PROTECTED] wrote: Hi Neal, -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:20 PM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Mathias, While your x:columns is very nice, it does not answer Sean's request to have something where the columns can be independently formatted. All of your columns in x:columns must have the same output, so we can't have one column that provides a link to an outside source, or is otherwise dynamically rendered. You can put everything into a columns component. I use the rendered flag to switch the components defined in the jsp on or off. So everything is defined in the columns component (through includes of other jsps). We also evaluated using x:columns and are on the road to writing our own custom table column components to meet our user requirements. Our users are wanting to be able to dynamically re-order the columns in the table, and pick and choose which ones to show. We're currently planning on implementing this by having the JSP define all the possible columns, and specify on the column what index the columns should have (to specify column ordering, to be sorted handled by our DataTable). We're also adding a rendered attribute to the column, to allow columns to be shown/hidden as needed. Our users do the same with the columns component. They choose the columns they want and the content is rendered in depend of the data which contains the column. How the content is rendered is defined through one of the nested panelgroups inside the columns component. If anyone has any ideas of how we can meet our user requirements with some available component out there, we'd love to hear about it. Here is an example how we use the columns component: Content of overview.jsp which shows the datatable x:dataTable rowClasses=data,data2 preserveDataModel=false styleClass=data border=0 frame=box value=#{overview.resourcesModel} var=line h:column rendered=#{overview.modifiable} f:facet name=header h:commandLink styleClass=hauptnav action=#{overview.create} h:graphicImage border=0 title=Erstellen value=/public/images/admin/erstellen.gif alt=Erstellen / /h:commandLink /f:facet h:commandLink styleClass=hauptnav action=#{overview.modify} h:graphicImage border=0 title=Bearbeiten value=/public/images/admin/bearbeiten.gif alt=Bearbeiten / /h:commandLink /h:column x:columns value=#{overview.attributes} var=attr f:facet name=header h:outputText value=#{attr.label} / /f:facet !-- we use panelGroup to switch the rendering of different content -- h:panelGroup rendered=#{attr.booleanType attr.value != null} !-- show a boolean value through graphic images -- h:graphicImage url=/public/images/admin/activeCheckBox.gif rendered=#{attr.value} / h:graphicImage url=/public/images/admin/inactiveCheckBox.gif rendered=#{!attr.value} / /h:panelGroup h:panelGroup rendered=#{!attr.booleanType} !-- show other values through normal outputText -- h:outputText value=#{attr.value} / /h:panelGroup /x:columns h:column rendered=false f:facet name=header h:commandLink value=... action=#{overview.selectAttributes} / /f:facet /h:column /p:dataTable
[jira] Commented: (MYFACES-182) HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war
[ http://issues.apache.org/jira/browse/MYFACES-182?page=comments#action_62665 ] David R. Heffelfinger commented on MYFACES-182: --- I'm using Eclipse under Linux. I see no option to preserve the end of line character. David HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war -- Key: MYFACES-182 URL: http://issues.apache.org/jira/browse/MYFACES-182 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Linux Kernel 2.6.10, JBoss 4.0.1 sp1, jdk1.5.0_02 Reporter: David R. Heffelfinger Attachments: HtmlJSCookMenuRenderer.patch Deploying myfaces-examples.war and pointing the browser to http://localhost:8080/myfaces-examples Results in a NullPointerException. Here is a partial stack trace: 11:08:13,036 INFO [STDOUT] java.lang.NullPointerException 11:08:13,037 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) 11:08:13,038 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
[jira] Commented: (MYFACES-182) HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war
[ http://issues.apache.org/jira/browse/MYFACES-182?page=comments#action_62668 ] sean schofield commented on MYFACES-182: Same problem with the new patch. I was able to apply by splitting up the two hunks in the patch since the patch utility was complaining about the second hunk and not knowing what file it was for. Changes should be in the next nightly build. HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war -- Key: MYFACES-182 URL: http://issues.apache.org/jira/browse/MYFACES-182 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Linux Kernel 2.6.10, JBoss 4.0.1 sp1, jdk1.5.0_02 Reporter: David R. Heffelfinger Fix For: Nightly Build Deploying myfaces-examples.war and pointing the browser to http://localhost:8080/myfaces-examples Results in a NullPointerException. Here is a partial stack trace: 11:08:13,036 INFO [STDOUT] java.lang.NullPointerException 11:08:13,037 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) 11:08:13,038 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
[jira] Resolved: (MYFACES-182) HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war
[ http://issues.apache.org/jira/browse/MYFACES-182?page=history ] sean schofield resolved MYFACES-182: Resolution: Fixed Fix Version: Nightly Build HtmlJSCookMenuRenderer throws NullPointerException when deploying myfaces-examples.war -- Key: MYFACES-182 URL: http://issues.apache.org/jira/browse/MYFACES-182 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Linux Kernel 2.6.10, JBoss 4.0.1 sp1, jdk1.5.0_02 Reporter: David R. Heffelfinger Fix For: Nightly Build Deploying myfaces-examples.war and pointing the browser to http://localhost:8080/myfaces-examples Results in a NullPointerException. Here is a partial stack trace: 11:08:13,036 INFO [STDOUT] java.lang.NullPointerException 11:08:13,037 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) 11:08:13,038 INFO [STDOUT] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:329) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253) 11:08:13,038 INFO [STDOUT] at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
RE: Proposed improvement to x:dataTable
Mathias, That is a very ingenious way to manage that. I like it. We'll play around with that and see how it works for us. Thanks for the idea. Neal -Original Message- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 9:55 AM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Hi Neal, -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:20 PM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Mathias, While your x:columns is very nice, it does not answer Sean's request to have something where the columns can be independently formatted. All of your columns in x:columns must have the same output, so we can't have one column that provides a link to an outside source, or is otherwise dynamically rendered. You can put everything into a columns component. I use the rendered flag to switch the components defined in the jsp on or off. So everything is defined in the columns component (through includes of other jsps). We also evaluated using x:columns and are on the road to writing our own custom table column components to meet our user requirements. Our users are wanting to be able to dynamically re-order the columns in the table, and pick and choose which ones to show. We're currently planning on implementing this by having the JSP define all the possible columns, and specify on the column what index the columns should have (to specify column ordering, to be sorted handled by our DataTable). We're also adding a rendered attribute to the column, to allow columns to be shown/hidden as needed. Our users do the same with the columns component. They choose the columns they want and the content is rendered in depend of the data which contains the column. How the content is rendered is defined through one of the nested panelgroups inside the columns component. If anyone has any ideas of how we can meet our user requirements with some available component out there, we'd love to hear about it. Here is an example how we use the columns component: Content of overview.jsp which shows the datatable x:dataTable rowClasses=data,data2 preserveDataModel=false styleClass=data border=0 frame=box value=#{overview.resourcesModel} var=line h:column rendered=#{overview.modifiable} f:facet name=header h:commandLink styleClass=hauptnav action=#{overview.create} h:graphicImage border=0 title=Erstellen value=/public/images/admin/erstellen.gif alt=Erstellen / /h:commandLink /f:facet h:commandLink styleClass=hauptnav action=#{overview.modify} h:graphicImage border=0 title=Bearbeiten value=/public/images/admin/bearbeiten.gif alt=Bearbeiten / /h:commandLink /h:column x:columns value=#{overview.attributes} var=attr f:facet name=header h:outputText value=#{attr.label} / /f:facet !-- we use panelGroup to switch the rendering of different content -- h:panelGroup rendered=#{attr.booleanType attr.value != null} !-- show a boolean value through graphic images -- h:graphicImage url=/public/images/admin/activeCheckBox.gif rendered=#{attr.value} / h:graphicImage url=/public/images/admin/inactiveCheckBox.gif rendered=#{!attr.value} / /h:panelGroup h:panelGroup rendered=#{!attr.booleanType} !-- show other values through normal outputText -- h:outputText value=#{attr.value} / /h:panelGroup /x:columns h:column rendered=false f:facet name=header h:commandLink value=... action=#{overview.selectAttributes} / /f:facet /h:column /p:dataTable
Re: Proposed improvement to x:dataTable
Neal, Please report back here about what you learn and how you make out. We are in the process of investigating this too. sean On Apr 12, 2005 4:31 PM, Neal Haggard [EMAIL PROTECTED] wrote: Mathias, That is a very ingenious way to manage that. I like it. We'll play around with that and see how it works for us. Thanks for the idea. Neal -Original Message- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 9:55 AM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Hi Neal, -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:20 PM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Mathias, While your x:columns is very nice, it does not answer Sean's request to have something where the columns can be independently formatted. All of your columns in x:columns must have the same output, so we can't have one column that provides a link to an outside source, or is otherwise dynamically rendered. You can put everything into a columns component. I use the rendered flag to switch the components defined in the jsp on or off. So everything is defined in the columns component (through includes of other jsps). We also evaluated using x:columns and are on the road to writing our own custom table column components to meet our user requirements. Our users are wanting to be able to dynamically re-order the columns in the table, and pick and choose which ones to show. We're currently planning on implementing this by having the JSP define all the possible columns, and specify on the column what index the columns should have (to specify column ordering, to be sorted handled by our DataTable). We're also adding a rendered attribute to the column, to allow columns to be shown/hidden as needed. Our users do the same with the columns component. They choose the columns they want and the content is rendered in depend of the data which contains the column. How the content is rendered is defined through one of the nested panelgroups inside the columns component. If anyone has any ideas of how we can meet our user requirements with some available component out there, we'd love to hear about it. Here is an example how we use the columns component: Content of overview.jsp which shows the datatable x:dataTable rowClasses=data,data2 preserveDataModel=false styleClass=data border=0 frame=box value=#{overview.resourcesModel} var=line h:column rendered=#{overview.modifiable} f:facet name=header h:commandLink styleClass=hauptnav action=#{overview.create} h:graphicImage border=0 title=Erstellen value=/public/images/admin/erstellen.gif alt=Erstellen / /h:commandLink /f:facet h:commandLink styleClass=hauptnav action=#{overview.modify} h:graphicImage border=0 title=Bearbeiten value=/public/images/admin/bearbeiten.gif alt=Bearbeiten / /h:commandLink /h:column x:columns value=#{overview.attributes} var=attr f:facet name=header h:outputText value=#{attr.label} / /f:facet !-- we use panelGroup to switch the rendering of different content -- h:panelGroup rendered=#{attr.booleanType attr.value != null} !-- show a boolean value through graphic images -- h:graphicImage url=/public/images/admin/activeCheckBox.gif rendered=#{attr.value} / h:graphicImage url=/public/images/admin/inactiveCheckBox.gif rendered=#{!attr.value} / /h:panelGroup h:panelGroup rendered=#{!attr.booleanType} !-- show other values through normal outputText -- h:outputText value=#{attr.value} / /h:panelGroup /x:columns h:column rendered=false f:facet name=header h:commandLink value=... action=#{overview.selectAttributes} / /f:facet /h:column /p:dataTable
Re: Simple JSCookMenu Example
David, Thanks for contributing to MyFaces. I didn't waste anytime committing your example. :-) This is something we've been missing for a while now. Also I added a completely unrelated example by Chris Barlow that shows an x:dataTable with *both* scrollable headers and paging. sean On Apr 12, 2005 3:29 PM, David Heffelfinger [EMAIL PROTECTED] wrote: I created a simple example demonstrating JSCookMenu usage. Nothing fancy here, it is basically the same menu used in page_header.jsp with some options removed and other minor changes. Hopefully it can be included as part of the simple examples webapps in the future. David
selectOneListbox
How do I get the actual value from a selectOneListbox? It is populated form an arraylist. I can get the number of selected item. But not the string. Thanks, Roger Lee Internet communications are not secure and therefore NOTiFY does not accept legal responsibility for the contents of this message. Although NOTiFY operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of NOTiFY. Replies to this email may be monitored by NOTiFY for operational or business reasons. - Original Message - From: Sean Schofield [EMAIL PROTECTED] To: James Mitchell [EMAIL PROTECTED]; MyFaces Development myfaces-dev@incubator.apache.org Sent: Tuesday, April 12, 2005 10:52 PM Subject: Re: Need to sign release jars James, Thanks for the helpful links. I read the stuff on umask and its set to 002 but I am not getting the desired result. My files are still r-- for group. When I type umask at the prompt I am getting 0022. Any hints? TIA, sean On Apr 11, 2005 2:10 PM, James Mitchell [EMAIL PROTECTED] wrote: You'll definitely want to take advantage of the mirrors. I shouldn't have to explain what impact you'll have if you don't. Onward and upward, let's face it (pun intended) MyFaces is picking up steam. Everyone on the dev team (committers) should be versed in how to branch and release (checksum et al). This is probably redundant for most of you, but this is a good guide to follow: http://www.apache.org/dev/new-committers-guide.html (especially the part about umask) From the above link, there is a small section (PGP/MD5) that references this link: http://people.apache.org/~henkp/ (a good read) I have not actually signed a release (yet), so I can't say oh, it's so easy. You might ping Martin, Ted, or Craig (Struts) to see if they can point you to a better resource or how-to. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Sean Schofield [EMAIL PROTECTED] To: MyFaces Development myfaces-dev@incubator.apache.org Sent: Monday, April 11, 2005 11:07 AM Subject: Need to sign release jars I built and published the 1.0.9 release. Matthias said that we need to sign with PGP before the official announcement. Can someone help me out with this? We should probably do this ASAP since the jars are already available on the myfaces website. Also at some point we need to discuss mirroring and how that works or if its necessary. sean
[jira] Created: (MYFACES-185) ArrayIndexOutOfBounds in HtmlJSCookMenuRenderer
ArrayIndexOutOfBounds in HtmlJSCookMenuRenderer --- Key: MYFACES-185 URL: http://issues.apache.org/jira/browse/MYFACES-185 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Win XP Pro, Tomcat 4.1.31, Latest source from CVS Reporter: Martin Bosak Priority: Minor Attachments: patch.txt When HtmlJSCookMenuRenderer is decoding, sometimes, the JSCOOK_ACTION_PARAM param string contains the text null. This results in an ArrayIndexOutOfBounds exception when scanning for the : character. I have a patch to fix this. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
[jira] Updated: (MYFACES-185) ArrayIndexOutOfBounds in HtmlJSCookMenuRenderer
[ http://issues.apache.org/jira/browse/MYFACES-185?page=history ] Martin Bosak updated MYFACES-185: - Attachment: patch.txt The patch was made from revison 1.14 of HtmlJSCookMenuRenderer. My apologies for all the hassle (since I coded it in the first place). ArrayIndexOutOfBounds in HtmlJSCookMenuRenderer --- Key: MYFACES-185 URL: http://issues.apache.org/jira/browse/MYFACES-185 Project: MyFaces Type: Bug Versions: 1.0.9 beta Environment: Win XP Pro, Tomcat 4.1.31, Latest source from CVS Reporter: Martin Bosak Priority: Minor Attachments: patch.txt When HtmlJSCookMenuRenderer is decoding, sometimes, the JSCOOK_ACTION_PARAM param string contains the text null. This results in an ArrayIndexOutOfBounds exception when scanning for the : character. I have a patch to fix this. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
Getting Values from selectOneListbox
I populate a selectOneListbox with data from a table from a backing class; h:selectOneListbox id=loanSelectionListbox value=#{loanSelectionListDataModelBean.loanName} valueChangeListener=#{loanSelectionListDataModelBean.selectedLoanNameList} immediate=true f:selectItems value=#{loanSelectionListDataModelBean.loanNameList} / /h:selectOneListbox value = valueChangeEvent.getNewValue(); This give the element number select in the list 1-99 etc How do I get the actual value text (Loan Name)? Thanks, Roger Lee
Re: Need to sign release jars
Just looking at my settings, I'm seeing the same thing. There was a post that came across the Struts dev list a month or so ago about this. I think Joe or Don sent it, not sure, I'll look for it tomorrow and it may shed some light on this. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Sean Schofield [EMAIL PROTECTED] To: James Mitchell [EMAIL PROTECTED]; MyFaces Development myfaces-dev@incubator.apache.org Sent: Tuesday, April 12, 2005 5:52 PM Subject: Re: Need to sign release jars James, Thanks for the helpful links. I read the stuff on umask and its set to 002 but I am not getting the desired result. My files are still r-- for group. When I type umask at the prompt I am getting 0022. Any hints? TIA, sean On Apr 11, 2005 2:10 PM, James Mitchell [EMAIL PROTECTED] wrote: You'll definitely want to take advantage of the mirrors. I shouldn't have to explain what impact you'll have if you don't. Onward and upward, let's face it (pun intended) MyFaces is picking up steam. Everyone on the dev team (committers) should be versed in how to branch and release (checksum et al). This is probably redundant for most of you, but this is a good guide to follow: http://www.apache.org/dev/new-committers-guide.html (especially the part about umask) From the above link, there is a small section (PGP/MD5) that references this link: http://people.apache.org/~henkp/ (a good read) I have not actually signed a release (yet), so I can't say oh, it's so easy. You might ping Martin, Ted, or Craig (Struts) to see if they can point you to a better resource or how-to. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Sean Schofield [EMAIL PROTECTED] To: MyFaces Development myfaces-dev@incubator.apache.org Sent: Monday, April 11, 2005 11:07 AM Subject: Need to sign release jars I built and published the 1.0.9 release. Matthias said that we need to sign with PGP before the official announcement. Can someone help me out with this? We should probably do this ASAP since the jars are already available on the myfaces website. Also at some point we need to discuss mirroring and how that works or if its necessary. sean
Proposed improvement to x:dataTable
Hello guys, You are working on this x:columns extension: I have such a solution working in sun's JSF. I could not get the "c" core taglibrary working with myfacesand Tomcat (why?) so still working on getting all running with MyFaces. It is part of a much bigger approach so sending more, needs much more explanation. I put a lot in the colum and in a domain object: Here is a snapshot of classes that I use: public class Column extends SuperColumn { final Domain domain; final String defValue; final String checkStmnt; final Integer indexno; //here if this a primary /secondary key (can be used for further user interface refinement) } and public class Domain{ final Integer id; final String name; final Datatype datatype; final String inputType; //here it can be selectBoolean etc. final Integer size; final Integer maxLength; final String defValue; final Boolean mandatory; final String checkStmnt; final String domainValidatorId; final String inputValues;... } I hope to have time this weekend to join your efforts. Herbrand Hofker Sean Schofield [EMAIL PROTECTED] wrote: Neal,Please report back here about what you learn and how you make out. Weare in the process of investigating this too.seanOn Apr 12, 2005 4:31 PM, Neal Haggard <[EMAIL PROTECTED]>wrote: Mathias, That is a very ingenious way to manage that. I like it. We'll play around with that and see how it works for us. Thanks for the idea. Neal -Original Message- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 9:55 AM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTable Hi Neal, -Original Message- From: Neal Haggard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 3:20 PM To: MyFaces Development Subject: RE: Proposed improvement to x:dataTableMathias, While your x:columns is very nice, it does not answer Sean's request to have something where the columns can be independently formatted. All of your columns in x:columns must have the same output, so we can't have one column that provides a link to an outside source, or is otherwise dynamically rendered. You can put everything into a columns component. I use the rendered flag to switch the components defined in the jsp on or off. So everything is defined in the columns component (through includes of other jsps).We also evaluated using x:columns and are on the road to writing our own custom table column components to meet our user requirements. Our users are wanting to be able to dynamically re-order the columns in the table, and pick and choose which ones to show. We're currently planning on implementing this by having the JSP define all the possible columns, and specify on the column what index the columns should have (to specify column ordering, to be sorted handled by our DataTable). We're also adding a rendered attribute to the column, to allow columns to be shown/hidden as needed. Our users do the same with the columns component. They choose the columns they want and the content is rendered in depend of the data which contains the column. How the content is rendered is defined through one of the nested panelgroups inside the columns component.If anyone has any ideas of how we can meet our user requirements with some available component out there, we'd love to hear about it. Here is an example how we use the columns component: Content of overview.jsp which shows the datatable styleClass="data" border="0" frame="box" value="#{overview.resourcesModel}" var="line" action="" value="/public/images/admin/erstellen.gif" alt="Erstellen" /action="" value="/public/images/admin/bearbeiten.gif" alt="Bearbeiten" /