User defined LE functions
Hello all, with Facelets and myFaces 1.1.3, I've got a problem writing a user defined EL function. I am certain I did everything as documented, but it doesn't work. Is there any general problem with user defined EL functions in myFaces (wrong version or something like that), or must I search deeper for the error I made? Regards, Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189
Re: User defined LE functions
what do you mean for user defined EL functions? 2006/7/21, Marcus Schmidke [EMAIL PROTECTED]: Hello all, with Facelets and myFaces 1.1.3, I've got a problem writing a user defined EL function. I am certain I did everything as documented, but it doesn't work. Is there any general problem with user defined EL functions in myFaces (wrong version or something like that), or must I search deeper for the error I made? Regards, Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 -- ::SammyRulez:: http://www.kyub.com/blojsom/blog/sam/
Re: User defined LE functions
Are you using ${} or #{} ? User defined functions only work for JSP EL. Sorry. Dennis Byrne -Original Message- From: Marcus Schmidke [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 02:16 AM To: users@myfaces.apache.org Subject: User defined LE functions Hello all, with Facelets and myFaces 1.1.3, I've got a problem writing a user defined EL function. I am certain I did everything as documented, but it doesn't work. Is there any general problem with user defined EL functions in myFaces (wrong version or something like that), or must I search deeper for the error I made? Regards, Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189
Re: validation method problem
Usually the type of thing you're trying to do is done this way: 1) Assign an id attribute to each of your input field 2) Place an h:messages forId=yourComponentId instead of your DIV Now, any conversion/validation error will be rendered near the correct field. Remember also to use an h:messages globalOnly=true somewhere on your page to display errors that are not bound to any particular fields. Again, using the Trinidad input components you don't have to explicitly put an h:messages for it, it is done automatically (unless you disable it with the simple attribute). About the required attribute, I've found the JSF behaviour useful for my apps, but I can understand that is a bit enforced. Cosma 2006/7/20, Mike Kienenberger [EMAIL PROTECTED]: The ability to customize the required message was provided for JSF 1.2. https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=81 There's no easy way to do it in JSF 1.1. It can be done if you want to spend processing time on it. The last section of this page will show you how. http://wiki.apache.org/myfaces/OptionalValidationFramework You'll want to write your own required-validator (or modify the existing one). On 7/20/06, array [EMAIL PROTECTED] wrote: hi, What I would like to do during the validation is to add a div where the error message has to be rendered. I have several divs on the page under each input field which at first are not visible. The corresponding ?rendered? attributes should to be set to true only if the validation fails. I don?t understand only one thing: why is the custom validator not invoked if the ?required? validator reports an error. I could in my validator check on null and do what I want!!! Trinidad components that allows a label attribute for input components that can easily be internationalized is a nice thing! Igor -- View this message in context: http://www.nabble.com/validation-method-problem-tf1966234.html#a5415753 Sent from the MyFaces - Users forum at Nabble.com.
RE: validation method problem
We tried a hack to solve a similar issue by having a PhaseListener in the beforeRender phase that walks the component tree and modifies it (in our case resetting css styles) on offending components (referenced in the FacesMessages collection). It's a bit of an ugly hack and doesn't always work: especially in cases where there component tree has not been built completely in the before phase or you have components that behave unexpectedly. But it's a quick fix if it works for you... -Original Message- From: Cosma Colanicchia [mailto:[EMAIL PROTECTED] Sent: Friday, 21 July 2006 5:03 PM To: MyFaces Discussion Subject: Re: validation method problem Usually the type of thing you're trying to do is done this way: 1) Assign an id attribute to each of your input field 2) Place an h:messages forId=yourComponentId instead of your DIV Now, any conversion/validation error will be rendered near the correct field. Remember also to use an h:messages globalOnly=true somewhere on your page to display errors that are not bound to any particular fields. Again, using the Trinidad input components you don't have to explicitly put an h:messages for it, it is done automatically (unless you disable it with the simple attribute). About the required attribute, I've found the JSF behaviour useful for my apps, but I can understand that is a bit enforced. Cosma 2006/7/20, Mike Kienenberger [EMAIL PROTECTED]: The ability to customize the required message was provided for JSF 1.2. https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id= 81 There's no easy way to do it in JSF 1.1. It can be done if you want to spend processing time on it. The last section of this page will show you how. http://wiki.apache.org/myfaces/OptionalValidationFramework You'll want to write your own required-validator (or modify the existing one). On 7/20/06, array [EMAIL PROTECTED] wrote: hi, What I would like to do during the validation is to add a div where the error message has to be rendered. I have several divs on the page under each input field which at first are not visible. The corresponding ?rendered? attributes should to be set to true only if the validation fails. I don?t understand only one thing: why is the custom validator not invoked if the ?required? validator reports an error. I could in my validator check on null and do what I want!!! Trinidad components that allows a label attribute for input components that can easily be internationalized is a nice thing! Igor -- View this message in context: http://www.nabble.com/validation-method-problem-tf1966234.html#a5415753 Sent from the MyFaces - Users forum at Nabble.com. This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
Re: ALLOW_JAVASCRIPT
ok, I can understand this, but if it's so... what is the aim meaning that tag??? regards.. -- View this message in context: http://www.nabble.com/ALLOW_JAVASCRIPT-tf1975220.html#a5429611 Sent from the MyFaces - Users forum at Nabble.com.
RE: InputCalendar - popupTheme ?
Push J Does anybody know popupTheme ? From: Michael Heinen [mailto:[EMAIL PROTECTED] Sent: Dienstag, 18. Juli 2006 16:48 To: MyFaces Discussion Subject: InputCalendar - popupTheme ? InputCalendar has an attribute named popupTheme. The API says: Set the theme-prefix for this component. Has anybody a sample for this? How can I use another theme? Michael
Re: javax.servlet.ServletException using Tree2
No idea? Anyone?2006/7/20, Hendrik Neumann [EMAIL PROTECTED]: Hi everybody,I try to develop my own component which renders a Tree2 component within the encodeBegin(FacesContext myContext)-Method of my own UIComponent.For this purpose I use the following code-snippet: public void encodeBegin(FacesContext myContext) throws IOException { ResponseWriter myWriter = myContext.getResponseWriter(); Property props = myPropertyEditor.getModel(); try {[...] Application myApp = (Application) myContext.getApplication(); HtmlTree myTree = (HtmlTree)myApp.createComponent(HtmlTree.COMPONENT_TYPE); myTree.setValue (de.rub.swt.csseditor.db.Database.getDB().getCssAttributesAsTreeNode()); myTree.setVar(node); myTree.setVarNodeToggler(t); myTree.setShowRootNode(true); myTree.setId(myTools.createUniqueId()); HtmlPanelGroup rootContent = (HtmlPanelGroup) myApp.createComponent(HtmlPanelGroup.COMPONENT_TYPE); Map rootFacet = myTree.getFacets (); rootFacet.put(root, rootContent); HtmlOutputText rootText = (HtmlOutputText) myApp.createComponent(HtmlOutputText.COMPONENT_TYPE);ValueBinding rootBinding = myApp.createValueBinding(#{node.description}); rootText.setValueBinding(value, rootBinding); HtmlGraphicImage root = (HtmlGraphicImage) myApp.createComponent(HtmlGraphicImage.COMPONENT_TYPE );root.setValue(misc/folder/blue-folder-open.gif); rootContent.getChildren().add(root); rootContent.getChildren().add(rootText);[...] } }This snipped works great, but the problem is: HtmlCommandLinks are not working when I add them to the PanelGroup: HtmlCommandLink editIconLink = myTools.createActionListenerLink(edit this node, myContext, switchView, propertyeditor); editIconLink.addActionListener(new SwitchWindow()); rootContent.getChildren().add(editIconLink);When I click on such a link I'll get the following error:StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exceptionjava.lang.NullPointerException at org.apache.myfaces.custom.tree2.UITreeData.getDataModel(UITreeData.java:420) at org.apache.myfaces.custom.tree2.UITreeData.setNodeId (UITreeData.java:320) at org.apache.myfaces.custom.tree2.HtmlTree.setNodeId(HtmlTree.java:95) at org.apache.myfaces.custom.tree2.UITreeData.processDecodes(UITreeData.java:172) at javax.faces.component.UIComponentBase.processDecodes (UIComponentBase.java:880) at javax.faces.component.UIForm.processDecodes(UIForm.java:144) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880) at javax.faces.component.UIViewRoot.processDecodes (UIViewRoot.java:306) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java :144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java :336) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java :214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java :102) at
f:facet name=#{bean.property} doesnt work
Hi When trying to build a dynamic page with tree2 component, I found that exception was thrown in using EL value for the f:facet name attribute. What am I doing wrong? Exception listing:= org.apache.jasper.JasperException: Unable to locate facet with the name: FirstBranch org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) *root cause* java.lang.IllegalArgumentException: Unable to locate facet with the name: FirstBranch org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlTreeRenderer.java:323) org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:255) org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:282) org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTreeRenderer.java:203) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701) javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607) javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544) org.apache.jsp.login_jsp._jspx_meth_t_tree2_0(login_jsp.java:227) org.apache.jsp.login_jsp._jspx_meth_f_view_0(login_jsp.java:146) org.apache.jsp.login_jsp._jspService(login_jsp.java:102) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) the value FirstBranch is the value (of the TreeNodeBase.getType();) of the #{node.type} property in the facet tag Regards Alan Lewis begin:vcard fn:Alan Lewis n:Lewis;Alan email;internet:[EMAIL PROTECTED] tel;cell:07946 436275 x-mozilla-html:FALSE version:2.1 end:vcard
HTMLDataTable not serializable
Hi all I have a backing bean that has to be serializable because I do some RMI stuff in it. Now I am not able to use the HTMLDataTable of myfaces (t:datatable) in my bean, because this is not serializeable. Do you have any hints how to avoid this problem? Thanks -- Remo Liechti Application Developer Swisslog Warehouse and Distribution Solutions Direct: +41 (0)62 837 4345 Mobile: +41 (0)76 329 8660 CH Fax: +41 (0)62 837 4197 Internet: www.swisslog.com About Swisslog Swisslog is a global provider of logistic solutions for warehouses, distribution centers and hospitals. Swisslog's solutions increase their customers' flexibility, responsiveness, and quality of service, while minimizing logistics costs. This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.
facelet template
Hi, is any way, how in template page detect if ui:define name=xxx.../ui:define is defined and then generate some code? can I use c:if in some way? -- Martin Beránek http://www.i.cz smime.p7s Description: S/MIME Cryptographic Signature
RE: need javascript syntax to loop through checkbox list from dataTable
Sure. Good suggestion. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Friday, July 21, 2006 12:28 AM To: MyFaces Discussion Subject: Re: need javascript syntax to loop through checkbox list from dataTable Hi Julian, I think this is useful for others too. can you (again) put it to our wiki ? Thank you! On 7/18/06, Julian Ray [EMAIL PROTECTED] wrote: We do exactly the same thing. Here is my JS. Note how the checkboxes are named. We have one funcrtion which toggles checks on and off and another which checks for one or more checked. /* * Browser-safe get object. Tries all three approaches to get an object * by its element Id. * * Param: objId - String - id of element to retrieve. * Param: formId - String - id of form (optional). * Returns: element or null if not found. */ function getObj(objId, formId) { var fullId = objId; if (formId != null formId.length 0) { fullId = formId + ':' + objId; } //alert('getting object: ' + fullId); var elem = null; if (document.getElementById) { elem = document.getElementById(fullId); } else if (document.all) { elem = document.all[fullId]; } else if (document.layers) { elem = document.layers[fullId]; } return elem; } /* * Browser-safe. Check or uncheck an array of checkboxes. Boxes have ids * like check[0], check[1], ... , check[n] where 'check' is the base Id that * has been assigned to the group. * * Param: arrayId - String - id of element group to change * Param: state - boolean - true (check all elements) false (uncheck all elements) * Returns: nothing */ function checkBoxArraySet(arrayId, state) { for (i = 0; ; i++) { id = arrayId + '[' + i + ']'; elem = getObj(id); if (elem == null) { break; } else { elem.checked = state; } } } /* * Browser-safe. Checks to see if an array of check boxes has any which are * checked. Boxes have ids like check[0], check[1], ... , check[n] where 'check' * is the base Id that has been assigned to the group. * * Param: arrayId - String - id of element group to change * Returns: boolean (true one or more checked) false (else) */ function checkBoxArrayHasChecked(arrayId) { for (i = 0; ; i++) { id = arrayId + '[' + i + ']'; elem = getObj(id); if (elem == null) { break; } else if (elem.checked) { return true; } } return false; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 2:41 PM To: MyFaces Discussion Subject: need javascript syntax to loop through checkbox list from dataTable hello to everyone I'm using a tomahawk dataTable where one of the t:columns contains a t:selectBooleanCheckbox The tag has id and a forceId=true attributes. In the rendered html, the id of the checkbox is foo[0], foo[1] etc I need to be able to loop through this list and look for a .checked property. I've tried all the loop mechanisms usually described for checkboxes but can't hit on the proper javascript syntax. googled till my eyes glazed over. can someone provide an example or a good reference to resolve this? Thanks in advance for your time and help. Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail. -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
RE: ALLOW_JAVASCRIPT
Officially the only standard component that is allowed not to work anymore is the commandlink. In JSF 1.2 the JavaScriptlessness is part of the standard, because more and more applications must be accessable (== JS-free). Therefor we must check that as many components as possible can work with JS disabled. If they are not working without JS then the doc should say so... regards Alexander -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 11:03 PM To: MyFaces Discussion Subject: Re: ALLOW_JAVASCRIPT On 7/20/06, ragsta [EMAIL PROTECTED] wrote: a simple question: does the ALLOW_JAVASCRIPT parameter work? Is very important for me that my site work even if the javascript is disabled on the user browser but turnig off the param outputlink doesn't work more...even if the primary goal of turning off the param is to change the behaviour of this command if this option is bugged I think I have to all back to a different framework... You will be very limited in what you can do if you disabled javascript. For instance, h:commandLink cannot work without javascript. Most of the interesting components also require javascript, as do a lot of the common tricks for accomplishing tasks. You're probably better off not using JSF if you're not able to allow javascript.
How can I unsubscribe from this group??????
__ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Example: Adding rows to datatable
Hi guys Does anyone have an Example how to add rows to a HTMLDataTable in a backing bean? I allreads have the setters and getters in the bean, but I don't know how to add data to the HTMLDataTable object. Thanks in advance, Remo This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.
RE: How can I unsubscribe from this group??????
To remove your address from the list, send a message to: [EMAIL PROTECTED] De : Raziel Tabib [mailto:[EMAIL PROTECTED] Envoyé : vendredi 21 juillet 2006 11:47 À : users@myfaces.apache.org Objet : How can I unsubscribe from this group?? __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
ADF Faces/Trinidad problem with nested detailStamps in af:table
Hi, I tried to subscribe to the ADF Faces users list (as suggested on the wiki)but it didn't appear to work - I hope it's still okay to post ADF Faces/Trinidad stuff here. My Problem is that I'm using nested af:table's each one with a detailStamp facet containing the next. This works fine at one and two levels deep, but when I three levels deep the page stops automatically updating at the end of the request parsing. The wierd thing is that the very first 3rd level facet does work correctly, but the others don't. With the others, expanding a second level table row will suddenly display the missing expanded 3rd level table My code simply supplies a model, I'm not using any fancy event handling or anything. However, there is maybe a clue as to what is going on: 21-Jul-2006 11:14:17 org.apache.myfaces.adfinternal.io.DebugResponseWriter _logDuplicateIdWARNING: The id "_id23" is used more than once. although it does actually seem to be in the output html (it's used once as an id and multiple times as td header="_id23"...). I tried upgrading from ea19 to the latest snapshot of Trinidad (and that was fun, I can tell you) but that didn't make a difference. To try to ensure my code was not responsible, I changed all my models to just return statically generated lists, but that didn't fix it either. I've included the page source below. Any ideas? My suspicion is that the table component is not allocating id's properly in a nested context. Of course it's probably more likely I've made a stupid mistake somewhere... Thanks in advance, Jim -- Jim Moores, Developer, SmartSpread Ltd, UK. f:view af:document af:form af:panelPage f:verbatim styletd {vertical-align: top;}/style /f:verbatim af:table id="portfoliosTable" value="#{myBean.unitsDataModel}" var="unit"emptyText="No Portfolios" f:facet name="detailStamp" af:table id="dateTable" value="#{myBean.displayDatesForCurrentUnitDataModel}" var="date" emptyText="No Dates" f:facet name="detailStamp" af:table id="innerProperties" value="#{myBean.propertiesForCurrentDateDataModel}" var="decoration" emptyText="No Decorations" af:column f:facet name="header" af:outputText value="Name"/ /f:facet af:outputText value="#{myBean.nameForCurrentProperty}"/ /af:column af:columnf:facet name="header" af:outputText value="Type"//f:facetaf:outputText value="#{portfoliosBean.typeForCurrentProperty}"//af:column af:column f:facet name="header" af:outputText value="Value"/ /f:facet af:outputText value="#{portfoliosBean.valueForCurrentProperty}"/ /af:column/af:table/f:facet af:columnf:facet name="header" af:outputText value="Date"//f:facet af:outputText value="#{date}"/ /af:column /af:table /f:facet af:columnf:facet name="header" af:outputText value="Unit Name"//f:facetaf:outputText value="#{unit.name}"//af:column af:column f:facet name="header" af:outputText value="Unit Display Name"/ /f:facet af:outputText value="#{unit.displayName}"//af:column /af:table/af:panelPage /af:form/af:document/f:view
RE: HTMLDataTable not serializable
Hi, Hi Remo, I had this problem a while ago - it turned out that, rather counter-intuatively, the Components themselves have no state, so don't need to be serialized. As far as I can remember the state is all held in the model. Are you getting the current selection out of it or something? If that's what you are doing you can do that just by getting the current value of the variable it's bound to from the page context. I've got a little utility method I use for this so e.g. if you've got a table and you need to find out which item was clicked on: af:table var=item value={model} You can use this little utility method of mine: public Object getRequestVar(String name) { FacesContext fContext = FacesContext.getCurrentInstance(); VariableResolver requestResolver = fContext.getApplication().getVariableResolver(); return requestResolver.resolveVariable(fContext, name); } to pull out the selected row with getRequestVar(item). I may have taken a few steps too far in assuming this is what your problem is, so just ignore me if this isn't what you're talking about. Regards Jim -Original Message- From: Remo Liechti [mailto:[EMAIL PROTECTED] Sent: 21 July 2006 10:25 To: MyFaces Discussion Subject: HTMLDataTable not serializable Hi all I have a backing bean that has to be serializable because I do some RMI stuff in it. Now I am not able to use the HTMLDataTable of myfaces (t:datatable) in my bean, because this is not serializeable. Do you have any hints how to avoid this problem? Thanks -- Remo Liechti Application Developer Swisslog Warehouse and Distribution Solutions Direct: +41 (0)62 837 4345 Mobile: +41 (0)76 329 8660 CH Fax: +41 (0)62 837 4197 Internet: www.swisslog.com About Swisslog Swisslog is a global provider of logistic solutions for warehouses, distribution centers and hospitals. Swisslog's solutions increase their customers' flexibility, responsiveness, and quality of service, while minimizing logistics costs. This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.
JSCookMenu Problem
Since I can do so that in the attributes action navigationMenuItem of the JsCookMenu that point at a page jsp. Pasen before through managedBean, I need this so that I need to recover the name of the label of navigationMenuItem from which click became LLama Gratis a cualquier PC del Mundo.Llamadas a fijos y móviles desde 1 céntimo por minuto.http://es.voice.yahoo.com
Re: facelet template
I think writing code in the template would be ok and used only as default if the page do not define xxx. Personaly I would make 2 template and use the right one in each page. 2006/7/21, Martin Beránek [EMAIL PROTECTED]: Hi, is any way, how in template page detect if ui:define name=xxx.../ui:define is defined and then generate some code? can I use c:if in some way? -- Martin Beránek http://www.i.cz -- ::SammyRulez:: http://www.kyub.com/blojsom/blog/sam/
NetBeans 5.5
Hi, I just downloaded and installed NetBeans 5.5 beta 2, and still doesn't recognize myfaces tag libraries. Does someone know something about this problem ? thanks, -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
RE: ALLOW_JAVASCRIPT
Yes, i've read something about.. The feature that stick me to commandlink tags is the chance to add param values to the action... and I cannot imagine other way to do that with the commandbutton... Have you some workaround to achieve the same result with commandbutton? Maybe extending the commandbuttonclass? -- View this message in context: http://www.nabble.com/ALLOW_JAVASCRIPT-tf1975220.html#a5432677 Sent from the MyFaces - Users forum at Nabble.com.
Re: facelet template
ok, may be I discover something better because many templates that are wery similar ::SammyRulez:: wrote: I think writing code in the template would be ok and used only as default if the page do not define xxx. Personaly I would make 2 template and use the right one in each page. 2006/7/21, Martin Beránek [EMAIL PROTECTED]: Hi, is any way, how in template page detect if ui:define name=xxx.../ui:define is defined and then generate some code? can I use c:if in some way? -- Martin Beránek http://www.i.cz smime.p7s Description: S/MIME Cryptographic Signature
Can I disable the SelectManyListBox
Hi , Can I disable the selectManyListBox. If so, how can i pass the value from my jsp to the Bean. If i need to choose only single item in the List box can I use selectManyListBox and specify the Size as 1 or should I use the selectOneListBox. Is it possible to send spaces("") to the Beanwhen the selectManyListBox is disabled. It is showing the validation Errors if I do this. Regards, Chandru.
Antwort: Re: User defined LE functions
Hello Dennis, did you mean only work with JSP (so not at all with Facelets) or did you mean only work with JSP EL Syntax? I had used #{}. Now I tried ${}, which doesn't work either. The xhtml file: ui:component xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:t=http://myfaces.apache.org/tomahawk; xmlns:le=http://www.prosystemsit.de/le; h:outputText value=${le:wert('test')} / /ui:component The Taglib file: !DOCTYPE facelet-taglib PUBLIC -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN http://java.sun.com/dtd/facelet-taglib_1_0.dtd; facelet-taglib namespacehttp://www.prosystemsit.de/le/namespace function function-namewert/function-name function-class de.prosystemsit.leistungserfassung.controller.Functions/function-class function-signaturejava.lang.String wertInSpalte(java.lang.String)/function-signature /function /facelet-taglib Marcus. Dennis Byrne [EMAIL PROTECTED]An: MyFaces Discussion users@myfaces.apache.org t Kopie: Thema:Re: User defined LE functions 21.07.2006 08:54 Bitte antworten an MyFaces Discussion Are you using ${} or #{} ? User defined functions only work for JSP EL. Sorry. Dennis Byrne -Original Message- From: Marcus Schmidke [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 02:16 AM To: users@myfaces.apache.org Subject: User defined LE functions Hello all, with Facelets and myFaces 1.1.3, I've got a problem writing a user defined EL function. I am certain I did everything as documented, but it doesn't work. Is there any general problem with user defined EL functions in myFaces (wrong version or something like that), or must I search deeper for the error I made? Regards, Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189
[OT] Looking for JSF/MyFaces Consultant in Boston
Hi- We are looking for a Boston-based consultant with strong JSF/MyFaces experience to join our team for a six month contract starting right away. If you are interested, please send an email directly to me with your resume and any information. Thanks, Adam Brod Product Development Team PS - ASF is okay with this type of message as long as it is marked off-topic [OT] Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: outputLink, graphicImage portlet
h:outputLink is only for literal URLs, so that won't work for page navigation. Use a h:commandLink with an action attribute. Storm Spire wrote: from the jetspeed jpetstore demo, I can see struts demo works well with links, like the one inside /index.jsp, it writes html:link href=shop/viewCart.shtml html:img border=0 imageName=img_cart src=images/cart.gif/ /html:link inside the jsf-demo, the image link works ok as well, like: h:graphicImage id=waveImg url=/wave.med.gif / but it doesn't work with outputLink, if I add the following: h:outputLink id=treeTableLink2 value=treeTable.jsf h:outputText value=Click Here for Tree Table/ /h:commandLink the portal generate the link without any portal context, just like http://127.0.0.1:8080/treeTable.jsf, but above image's URL is http://127.0.0.1:8080 /jsf-demo/wave.med.gif, quite strange behavior. just wonder why graphicImage works perfectly with portlet, but outputLink doesn't. if outputLink doesn't work, anyway to go to another page without going through bean and navigation rules? -- Dave Brondsema Software Developer Cornerstone University signature.asc Description: OpenPGP digital signature
Re: Re: User defined LE functions
If you can't get it to work in JSP, have you tried Facelets? I can't speak for JSP, but I have many custom functions in facelets and have never had an issue using them. BTW if you use #{}, your variable resolver would have to recognize JSP functions, and I am not sure if the myfaces JSF variable resolver does. On 7/21/06, Marcus Schmidke [EMAIL PROTECTED] wrote: Hello Dennis,did you mean only work with JSP (so not at all with Facelets) or did youmean only work with JSP EL Syntax?I had used #{}. Now I tried ${}, which doesn't work either. The xhtml file:ui:component xmlns:ui=http://java.sun.com/jsf/faceletsxmlns:h=http://java.sun.com/jsf/html xmlns:f=http://java.sun.com/jsf/corexmlns:t=http://myfaces.apache.org/tomahawk xmlns:le=http://www.prosystemsit.de/leh:outputText value=${le:wert('test')} //ui:componentThe Taglib file: !DOCTYPE facelet-taglib PUBLIC-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//ENhttp://java.sun.com/dtd/facelet-taglib_1_0.dtd facelet-taglibnamespacehttp://www.prosystemsit.de/le/namespacefunctionfunction-namewert/function-name function-classde.prosystemsit.leistungserfassung.controller.Functions/function-classfunction-signaturejava.lang.StringwertInSpalte(java.lang.String)/function-signature /function/facelet-taglibMarcus.Dennis Byrne[EMAIL PROTECTED] An: MyFaces Discussion users@myfaces.apache.orgt Kopie: Thema:Re: User defined LE functions 21.07.2006 08:54Bitte antwortenan MyFacesDiscussionAre you using ${} or #{} ?User defined functions only work for JSP EL. Sorry.Dennis Byrne-Original Message-From: Marcus Schmidke [mailto:[EMAIL PROTECTED]]Sent: Friday, July 21, 2006 02:16 AM To: users@myfaces.apache.orgSubject: User defined LE functionsHello all,with Facelets and myFaces 1.1.3, I've got a problem writing a user defined EL function. I am certain I did everything as documented, but it doesn'twork.Is there any general problem with user defined EL functions in myFaces(wrong version or something like that), or must I search deeper for the error I made?Regards,Marcus._prosystems IT GmbHAnwendungsentwicklungPostfach 31 51 53021 Bonn (Germany)Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329mailto:[EMAIL PROTECTED] http://www.prosystemsIT.deAmtsgericht Bonn - HR B 13189_prosystems IT GmbHAnwendungsentwicklung Postfach 31 5153021 Bonn (Germany)Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329mailto:[EMAIL PROTECTED] http://www.prosystemsIT.deAmtsgericht Bonn - HR B 13189_prosystems IT GmbHAnwendungsentwicklung Postfach 31 5153021 Bonn (Germany)Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329mailto:[EMAIL PROTECTED] http://www.prosystemsIT.deAmtsgericht Bonn - HR B 13189
[Tobago]- Can I change text size and font color of text
I am trying to use the tc:out to print plaint text but I want to increase the font size and change the coloring to something like red. Is it possible to do that in Tobago or will I run into rendering problems. Cory Showers Software Engineer Lockheed Martin MS2 (w) 856.866.6075
RE: inputText doesn't display value??
What is the type? I don't think it'll work with anything but String... Also - do you have both a get and a set method? Jim Moores -Original Message- From: Marcus Schmidke [mailto:[EMAIL PROTECTED] Sent: 21 July 2006 15:27 To: users@myfaces.apache.org Subject: inputText doesn't display value?? Hello all, what might be the reason if an inputText does not display the value value? (Facelets / myFaces 1.1.3) The source code: ... td h:inputText value=#{leistungsschein.leistung.beschreibung} / h:outputText value=#{leistungsschein.leistung.beschreibung} / /td ... The HTML result: tdinput id=_id8:_id10:4:_id32 name=_id8:_id10:4:_id32 type=text value= /Beschreibungstext /td As you can see, outputText did what it should. inputText didn't. Into what kind of beginner's trap did I tumble now??? (leistungsschein is a Seam managed stateful bean, does that matter?) Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189
Re: Re: User defined LE functions
On 7/21/06, Marcus Schmidke [EMAIL PROTECTED] wrote: did you mean only work with JSP (so not at all with Facelets) or did you mean only work with JSP EL Syntax? Dennis is confused. He didn't realize that Facelets supports JSF EL functions. [MyFaces can also support these, but it's tricky to get them installed (subclass ValueBindingImpl).] You definitely want to be using #{}. It's been awhile since I've used myfaces and facelets user-defined EL functions, but they should work fine. (I primarily needed a jstl:length function, which is automatically available in facelets). Is your function static? That's a requirement. Did you include your taglib file in facelets.libraries in the web.xml file? I'd recommend asking your question on the facelets mailing list -- there's nothing specific to MyFaces on using facelets user-defined EL functions. I had used #{}. Now I tried ${}, which doesn't work either. The xhtml file: ui:component xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:t=http://myfaces.apache.org/tomahawk; xmlns:le=http://www.prosystemsit.de/le; h:outputText value=${le:wert('test')} / /ui:component The Taglib file: !DOCTYPE facelet-taglib PUBLIC -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN http://java.sun.com/dtd/facelet-taglib_1_0.dtd; facelet-taglib namespacehttp://www.prosystemsit.de/le/namespace function function-namewert/function-name function-class de.prosystemsit.leistungserfassung.controller.Functions/function-class function-signaturejava.lang.String wertInSpalte(java.lang.String)/function-signature /function /facelet-taglib Marcus. Dennis Byrne [EMAIL PROTECTED]An: MyFaces Discussion users@myfaces.apache.org t Kopie: Thema:Re: User defined LE functions 21.07.2006 08:54 Bitte antworten an MyFaces Discussion Are you using ${} or #{} ? User defined functions only work for JSP EL. Sorry. Dennis Byrne -Original Message- From: Marcus Schmidke [mailto:[EMAIL PROTECTED] Sent: Friday, July 21, 2006 02:16 AM To: users@myfaces.apache.org Subject: User defined LE functions Hello all, with Facelets and myFaces 1.1.3, I've got a problem writing a user defined EL function. I am certain I did everything as documented, but it doesn't work. Is there any general problem with user defined EL functions in myFaces (wrong version or something like that), or must I search deeper for the error I made? Regards, Marcus.
Help Needed For JSFFramework Documentation
Hi I need to create an application Using My Faces (JSF) and spring I am haven;t created any base framework using these technologies.If any one have some application working on these technologies.Please mail me Framework documentation it will help me to design a new framework.Please mail me ( [EMAIL PROTECTED]) documentation for any application working with JSF and spring. Thanks In Advance-- Regards, Kapil kataria
Re: Re: User defined LE functions
On 7/21/06, Andrew Robinson [EMAIL PROTECTED] wrote: If you can't get it to work in JSP, have you tried Facelets? Read more carefully -- he's already using facelets :) BTW if you use #{}, your variable resolver would have to recognize JSP functions, and I am not sure if the myfaces JSF variable resolver does. Actually, according to the JSF 1.1 spec, value bindings aren't allowed to support EL functions. This would have to be a tomahawk extension if MyFaces allowed it.
Re: Re: User defined LE functions
Whoops sorry for the errors in my post. Is your taglib.xml file imported using web.xml (param-namefacelets.LIBRARIES/param-name)?Could you post the function (or at least the full signature from Java)? On 7/21/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 7/21/06, Andrew Robinson [EMAIL PROTECTED] wrote: If you can't get it to work in JSP, have you tried Facelets?Read more carefully -- he's already using facelets :) BTW if you use #{}, your variable resolver would have to recognize JSP functions, and I am not sure if the myfaces JSF variable resolver does.Actually, according to the JSF 1.1 spec, value bindings aren't allowed to support ELfunctions. This would have to be a tomahawk extensionif MyFaces allowed it.
Re: Tomahawk tree2
Sorry, I haven't had time to document it on the web site.Here is the link to download it:http://sourceforge.net/project/showfiles.php?group_id=137466package_id=197375 On 7/21/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Thanks Andrew, I don´t see the component that you mention on that page? Regards, JV
Re: [jira] Resolved: (MYFACES-1365) h:selectOneMenu - Phase processing broken for the first selectOneMenu when using 2 of them.
Moving to the myfaces-user list Well, my guess/speculation is that selectoneMenu must have a valid selection. Null isn't a valid selection so it's throwing a validation (or conversion) error. I don't know why there's no error message being displayed, though. On 7/21/06, Torsten Krah [EMAIL PROTECTED] wrote: Insert the lines at the top of the page - didn't help - shows nothing. But perhaps i found something - although i don't know if it's the real cause, but if i fix it it works: My second selectOneMenu is: h:selectOneMenu value=#{tableData.country} f:valueChangeListener type=my.examples.sortabletable.CountryListener/ f:selectItems value=#{tableData.countryNames} / /h:selectOneMenu #{tableData.country } is declared as follows: private String country; At the first instantiation of the bean - i did not set this value to something. If i add this to the constructor ( DE and US are static strings with the appropiate locale definition ): FacesContext context = FacesContext.getCurrentInstance(); Locale locale = context.getViewRoot().getLocale(); if(locale.getLanguage().equals(DE)) { country = DE; } else { country = US; } all works fine. If the value is not set at instantiation - validation fails, if i set this value in the constructor, it works. Can you bring some light to me? thx. kind regards Torsten Am Donnerstag, den 20.07.2006, 15:51 -0400 schrieb Mike Kienenberger: On 7/20/06, Torsten Krah (JIRA) dev@myfaces.apache.org wrote: Got some interesting news - found facestraces project and attatched it. For the first event at test2.faces, the validation phase fails and update + application phase arent executed, which is right if validation phase is failing. The validation failed - because, i don't know - thats what i have to find out, but so this bug is invalid, thx for help, i'll report why it fails for the first time. Glad you're making progress. Try sticking these at the top of your page: t:messages globalOnly=true showDetail=true / t:messages globalOnly=false showDetail=true / (The first one might be redundent.)
Re: javax.servlet.ServletException using Tree2
I have received the same error message on occasion (it isn't 100% reproducible, but I haven't tried too hard). I think that it is only happening when my Seam conversation times out or is destroyed/ended. Most of the time, command links are working fine in the panel group from what I thought. I would be interested to hear more on this issue myself. On 7/21/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: give them some time. for voting issue etc we usaly use a 72 hours timeframe. -Matthias On 7/21/06, Hendrik Neumann [EMAIL PROTECTED] wrote: No idea? Anyone? 2006/7/20, Hendrik Neumann [EMAIL PROTECTED]: Hi everybody, I try to develop my own component which renders a Tree2 component within the encodeBegin(FacesContext myContext)-Method of my own UIComponent. For this purpose I use the following code-snippet: public void encodeBegin(FacesContext myContext) throws IOException { ResponseWriter myWriter = myContext.getResponseWriter(); Property props = myPropertyEditor.getModel(); try { [...] Application myApp = (Application) myContext.getApplication(); HtmlTree myTree = (HtmlTree)myApp.createComponent(HtmlTree.COMPONENT_TYPE); myTree.setValue (de.rub.swt.csseditor.db.Database.getDB().getCssAttributesAsTreeNode()); myTree.setVar(node); myTree.setVarNodeToggler(t); myTree.setShowRootNode(true); myTree.setId(myTools.createUniqueId()); HtmlPanelGroup rootContent = (HtmlPanelGroup) myApp.createComponent(HtmlPanelGroup.COMPONENT_TYPE); Map rootFacet = myTree.getFacets (); rootFacet.put(root, rootContent); HtmlOutputText rootText = (HtmlOutputText) myApp.createComponent(HtmlOutputText.COMPONENT_TYPE); ValueBinding rootBinding = myApp.createValueBinding(#{node.description}); rootText.setValueBinding(value, rootBinding); HtmlGraphicImage root = (HtmlGraphicImage) myApp.createComponent(HtmlGraphicImage.COMPONENT_TYPE ); root.setValue(misc/folder/blue-folder-open.gif); rootContent.getChildren().add(root); rootContent.getChildren().add(rootText); [...] } } This snipped works great, but the problem is: HtmlCommandLinks are not working when I add them to the PanelGroup: HtmlCommandLink editIconLink = myTools.createActionListenerLink(edit this node, myContext, switchView, propertyeditor); editIconLink.addActionListener(new SwitchWindow()); rootContent.getChildren().add(editIconLink); When I click on such a link I'll get the following error: StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.apache.myfaces.custom.tree2.UITreeData.getDataModel(UITreeData.java:420) at org.apache.myfaces.custom.tree2.UITreeData.setNodeId (UITreeData.java:320) at org.apache.myfaces.custom.tree2.HtmlTree.setNodeId(HtmlTree.java:95) at org.apache.myfaces.custom.tree2.UITreeData.processDecodes(UITreeData.java:172) at javax.faces.component.UIComponentBase.processDecodes (UIComponentBase.java:880) at javax.faces.component.UIForm.processDecodes(UIForm.java:144) at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880) at javax.faces.component.UIViewRoot.processDecodes (UIViewRoot.java:306) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java :144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java :336) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87) at
Re: inputText doesn't display value??
Hi, For display the record after fetching from the database you need to use h:outputLabel for displaying it. Regards, Chandru. - Original Message - From: Marcus Schmidke [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Friday, July 21, 2006 7:56 PM Subject: inputText doesn't display value?? Hello all, what might be the reason if an inputText does not display the value value? (Facelets / myFaces 1.1.3) The source code: ... td h:inputText value=#{leistungsschein.leistung.beschreibung} / h:outputText value=#{leistungsschein.leistung.beschreibung} / /td ... The HTML result: tdinput id=_id8:_id10:4:_id32 name=_id8:_id10:4:_id32 type=text value= /Beschreibungstext /td As you can see, outputText did what it should. inputText didn't. Into what kind of beginner's trap did I tumble now??? (leistungsschein is a Seam managed stateful bean, does that matter?) Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189
Re: NetBeans 5.5
I don't know anybody using Netbeans. Is there a sun forum? I guess you are not the only MyFaces user with Netbeans. I hope at least :) On 7/21/06, Francesco Consumi [EMAIL PROTECTED] wrote: Hi, I just downloaded and installed NetBeans 5.5 beta 2, and still doesn't recognize myfaces tag libraries. Does someone know something about this problem ? thanks, -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133 -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: Re: NetBeans 5.5
I'm using a daily build of NB5.5 and it works fine with MyFaces, but I am using the MyFaces that comes with JBoss 4.0.4.GA. I don't see why it wouldn't work with your own version of MyFaces or another app server. There is a NB EE mailing list you could ask on. Mike On 7/21/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: I don't know anybody using Netbeans. Is there a sun forum? I guess you are not the only MyFaces user with Netbeans. I hope at least :) On 7/21/06, Francesco Consumi [EMAIL PROTECTED] wrote: Hi, I just downloaded and installed NetBeans 5.5 beta 2, and still doesn't recognize myfaces tag libraries. Does someone know something about this problem ? thanks, -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133 -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: NetBeans 5.5
Maybe this will help. Add the myfaces and tomahawk jars to a library. Tools -- Library Managers Right click on your war project and choose properties. Click on libraries and add the library you created above. Uncheck the package button. On this same screen expand the build option and click on packaging. Add the library you made above and set the Path in War field to \WEB-INF\lib Make sure you have your tag libs included in your JSP %-- JSF Core TagLibs --% [EMAIL PROTECTED] prefix=huri=http://java.sun.com/jsf/html% [EMAIL PROTECTED] prefix=f uri=http://java.sun.com/jsf/core% %-- Myfaces TagLibs --% [EMAIL PROTECTED] prefix=t uri=http://myfaces.apache.org/tomahawk% [EMAIL PROTECTED] prefix=s uri=http://myfaces.apache.org/sandbox% The text editor should auto-complete for you now and the whole nine yards... I just installed Netbeans 5.5 beta 2 and it is pretty darn nice. Also, it seems that subversion support can be added as a module which is also nice. Good Luck. Dennis Make sure you have something similar to the following Matthias Wessendorf wrote: I don't know anybody using Netbeans. Is there a sun forum? I guess you are not the only MyFaces user with Netbeans. I hope at least :) On 7/21/06, Francesco Consumi [EMAIL PROTECTED] wrote: Hi, I just downloaded and installed NetBeans 5.5 beta 2, and still doesn't recognize myfaces tag libraries. Does someone know something about this problem ? thanks, -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133 -- Dennis R. Gesker email: [EMAIL PROTECTED] Key Id: 0xEFA10A51
False positive valueChange event fired from null to blank string
I have an annoying situation whereby a text field is firing a valueChangeEvent when the value changes from null to a blank String. This, to me, is not really a change. Initially, the field in the backing bean is set to null. So the first time the form is submitted, MyFaces assigns the value of that inputText to the component, notices that it has changed and fires a valueChangeEvent. My question is, should this really fire a valueChangeEvent?
Re: Meeting/Get togethe in San Francisco
Ok, so a lot's of people are interested in something like that. Does anybody know a good place in Palo Alto? I am pretty new to this area, also I am ok with a meeting in SF. -Matthias On 7/17/06, Thomas Dudziak [EMAIL PROTECTED] wrote: On 7/16/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: at the ApacheCon Europe I heard from some people that they moved (or about to move) to San Francisco / Bay Area. Or still live here :) Any one interested in a meeting or get-together ? Sure thing ! I'm in Palo Alto for a couple of weeks, so meeting somewhere in the Bay Area would be great. Tom -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
selectBooleanCheckbox and it's text
I am pretty sure this has been asked before, but I can't find it in the archives. I am trying to put a checkbox on a page and have text with it. I have the following code: t:selectBooleanCheckbox value=#{value} styleClass=mystyle t:outputText value=#{msg.mytext} / /t:selectBooleanCheckbox What gets rendered is: My textinput type=checkbox ... class=mystyle / Should this not be: input type=checkbox ... class=mystyleMy text/input ? Any way to do this or am I missing something? (BTW - this is the tomahawk 1.1.3 control) -Andrew
java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
On Jboss4 I'm running Sun RI with sandbox and tomahawk nightly jars and am getting : java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.getString(HtmlJSCookMenuRenderer.java:326) org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:254) org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:189) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:827) javax.faces.component.UIComponent.encodeAll(UIComponent.java:883) javax.faces.render.Renderer.encodeChildren(Renderer.java:137) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:827) javax.faces.component.UIComponent.encodeAll(UIComponent.java:883) javax.faces.component.UIComponent.encodeAll(UIComponent.java:889) com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:243) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:46) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) Thanks for atleast reading this... Oh, and there are no jsf or myfaces jars within JBoss4. -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-javax-faces-webapp-UIComponentTag-tf1981170.html#a5436829 Sent from the MyFaces - Users forum at Nabble.com.
Re: java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
and I'm having the same problem with Tomcat5 -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-javax-faces-webapp-UIComponentTag-tf1981170.html#a5436855 Sent from the MyFaces - Users forum at Nabble.com.
Re: java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
JBoss log: 12:42:58,928 INFO [Server] Starting JBoss (MX MicroKernel)... 12:42:58,928 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023) 12:42:58,928 INFO [Server] Home Dir: C:\eclipse\workspace\JBoss 12:42:58,928 INFO [Server] Home URL: file:/C:/eclipse/workspace/JBoss/ 12:42:58,944 INFO [Server] Library URL: file:/C:/eclipse/workspace/JBoss/lib/ 12:42:58,944 INFO [Server] Patch URL: null 12:42:58,944 INFO [Server] Server Name: default 12:42:58,944 INFO [Server] Server Home Dir: C:\eclipse\workspace\JBoss\server\default 12:42:58,944 INFO [Server] Server Home URL: file:/C:/eclipse/workspace/JBoss/server/default/ 12:42:58,944 INFO [Server] Server Data Dir: C:\eclipse\workspace\JBoss\server\default\data 12:42:58,944 INFO [Server] Server Temp Dir: C:\eclipse\workspace\JBoss\server\default\tmp 12:42:58,944 INFO [Server] Server Config URL: file:/C:/eclipse/workspace/JBoss/server/default/conf/ 12:42:58,944 INFO [Server] Server Library URL: file:/C:/eclipse/workspace/JBoss/server/default/lib/ 12:42:58,944 INFO [Server] Root Deployment Filename: jboss-service.xml 12:42:58,944 INFO [Server] Starting General Purpose Architecture (GPA)... 12:42:59,303 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc. 12:42:59,303 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc. 12:42:59,303 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 12:42:59,991 INFO [Server] Core system initialized 12:43:03,225 INFO [ServiceBindingManager] Initializing store 12:43:03,225 INFO [ServiceBindingManager] Using StoreURL: file:/C:/eclipse/workspace/JBoss/server/default/conf/bindings.xml 12:43:04,100 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 12:43:04,225 INFO [WebService] Using RMI server codebase: http://DGreenXP:8083/ 12:43:04,725 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server [EMAIL PROTECTED] 12:43:14,397 INFO [Embedded] Catalina naming disabled 12:43:14,959 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080 12:43:14,959 INFO [Catalina] Initialization processed in 484 ms 12:43:14,959 INFO [StandardService] Starting service jboss.web 12:43:14,975 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9 12:43:15,038 INFO [StandardHost] XML validation disabled 12:43:15,100 INFO [Catalina] Server startup in 141 ms 12:43:15,319 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/eclipse/workspace/JBoss/server/default/deploy/http-invoker.sar/invoker.war/ 12:43:16,647 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/eclipse/workspace/JBoss/server/default/tmp/deploy/tmp20340jboss-ws4ee-exp.war/ 12:43:16,850 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/eclipse/workspace/JBoss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/ 12:43:17,491 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/eclipse/workspace/JBoss/server/default/deploy/management/console-mgr.sar/web-console.war/ 12:43:19,084 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/eclipse/workspace/JBoss/server/default/deploy/jboss-ha-local-jdbc.rar 12:43:19,288 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/eclipse/workspace/JBoss/server/default/deploy/jboss-ha-xa-jdbc.rar 12:43:19,491 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/eclipse/workspace/JBoss/server/default/deploy/jboss-local-jdbc.rar 12:43:19,709 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/eclipse/workspace/JBoss/server/default/deploy/jboss-xa-jdbc.rar 12:43:20,756 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name 'java:DefaultDS' 12:43:21,334 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/SqlServPubsProd to JNDI name 'java:jdbc/SqlServPubsProd' 12:43:22,444 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/OraSsiDev to JNDI name 'java:jdbc/OraSsiDev' 12:43:22,491 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/OraSsiUat to JNDI name 'java:jdbc/OraSsiUat' 12:43:22,522 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/OraSsiProd to JNDI name 'java:jdbc/OraSsiProd' 12:43:22,569 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager
Re: selectBooleanCheckbox and it's text
There are probably better ways to do it, but this is how I've been doing it: t:selectBooleanCheckbox id=myId value=#{value} / h:outputLabel for=myId value=#{msg.mytext}/ This might not work with your styleClass=mystyle attribute, though. I don't think t:selectBooleanCheckbox allows children, but check the source to be sure. On 7/21/06, Andrew Robinson [EMAIL PROTECTED] wrote: I am pretty sure this has been asked before, but I can't find it in the archives. I am trying to put a checkbox on a page and have text with it. I have the following code: t:selectBooleanCheckbox value=#{value} styleClass=mystyle t:outputText value=#{msg.mytext} / /t:selectBooleanCheckbox What gets rendered is: My textinput type=checkbox ... class=mystyle / Should this not be: input type=checkbox ... class=mystyleMy text/input ? Any way to do this or am I missing something? (BTW - this is the tomahawk 1.1.3 control) -Andrew
Re: java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
My jars are: axis-jaxrpc-1.4.jar axis.jar common-annotations.jar commons-beanutils.jar commons-collections.jar commons-digester.jar commons-discovery.jar commons-fileupload-1.1.1.jar commons-lang.jar commons-logging.jar commons-validator.jar el-api.jar el-ri.jar jirasoap.jar jsf-api.jar jsf-facelets.jar jsf-impl.jar jsf-tlds.jar jstl.jar junit-4.1.jar log4j-1.2.11.jar postgresql-8.1-405.jdbc3.jar saaj-api.jar standard.jar tomahawk-1.1.5-SNAPSHOT.jar tomahawk-sandbox-1.1.5-SNAPSHOT.jar wsdl4j-1.5.1.jar -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-javax-faces-webapp-UIComponentTag-tf1981170.html#a5437033 Sent from the MyFaces - Users forum at Nabble.com.
Re: java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
People keep telling me I can't use jsf1.2 and tomcat, but that simply isn't true. It works absolutely fine if I use facelets... as long as I don't introduce myfaces. -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-javax-faces-webapp-UIComponentTag-tf1981170.html#a5437240 Sent from the MyFaces - Users forum at Nabble.com.
Re: java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
Oh, nevermind, it's different: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/JspIdConsumer java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1779) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1779) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.getString(HtmlJSCookMenuRenderer.java:326) org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeNavigationMenuItems(HtmlJSCookMenuRenderer.java:254) org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:189) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:827) javax.faces.component.UIComponent.encodeAll(UIComponent.java:883) javax.faces.render.Renderer.encodeChildren(Renderer.java:137) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:827) javax.faces.component.UIComponent.encodeAll(UIComponent.java:883) javax.faces.component.UIComponent.encodeAll(UIComponent.java:889) com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:243) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:46) -- View this message in context: http://www.nabble.com/java.lang.NoClassDefFoundError%3A-javax-faces-webapp-UIComponentTag-tf1981170.html#a5437358 Sent from the MyFaces - Users forum at Nabble.com.
File download link in MyFaces/Facelets
Hello Community! I have the file upload working in MyFaces/Facelets. On upload, it is stored in the persistence layer as a blob. The blob's wrapper bean provides the unique numeric id for a given file. Now, I need to show the link, so that users could download the given file. The link will specify the unique id, and the servlet will fetch the blob from the persistence and write it into a response. Please suggest the architecture for this use case. Thanks. Z
Re: File download link in MyFaces/Facelets
See this thread: http://mail-archives.apache.org/mod_mbox/myfaces-users/200512.mbox/[EMAIL PROTECTED] On 7/21/06, xzuma [EMAIL PROTECTED] wrote: Hello Community! I have the file upload working in MyFaces/Facelets. On upload, it is stored in the persistence layer as a blob. The blob's wrapper bean provides the unique numeric id for a given file. Now, I need to show the link, so that users could download the given file. The link will specify the unique id, and the servlet will fetch the blob from the persistence and write it into a response. Please suggest the architecture for this use case. Thanks. Z
RE: Tomahawk tree2
Andrew, one last request: the TreeBean found in the source files (jsfCompAA-source.zip) is incomplete: /** * */ package warSource.net.sf.jsfcomp.aa.tree.examples; /** * * @author Andrew Robinson (andrew) */ public class TreeBean { public TreeBean() {} } Would you mind copying me the full source for this Bean. Thanks a lot and best regards, JV De: Andrew Robinson [mailto:[EMAIL PROTECTED] Enviado el: viernes, 21 de julio de 2006 10:18 Para: MyFaces Discussion Asunto: Re: Tomahawk tree2 Sorry, I haven't had time to document it on the web site. Here is the link to download it: http://sourceforge.net/project/showfiles.php?group_id=137466package_id=197375 On 7/21/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Thanks Andrew, I don´t see the component that you mention on that page? Regards, JV
wizard component
Hi guys, Anybody knows of a wizard-like component that takes the end-user through a sequence of steps with next/back buttons, validating the input at each step Best, Bolerio
Re: wizard component
Trinidad/adffaces has something like this -- processTrain or navigationTrain or something like that. http://wiki.apache.org/myfaces/ADF_Faces Shale has a dialog component, but I don't know the details as I haven't used it. On 7/21/06, Iordanov, Borislav (GIC) [EMAIL PROTECTED] wrote: Hi guys, Anybody knows of a wizard-like component that takes the end-user through a sequence of steps with next/back buttons, validating the input at each step… Best, Bolerio
about converters
Hi guys,The converters only works for selectOneMenus when i send data from page to bean or works when i change the value from bean and then refresh the page?In my case when i call selectOneMenu.setSubmittedValue (someObject); from a ValueChangeEvent, no conversion is done, this is correct?-- Yours truly (Atenciosamente),Rogério
Re: about converters
The submitted value for a UIInput component is the unconverted value, yes. Converters get called from processValidations, renderResponse, and possibly other phases as well (I think the submitted value is converted to a local value in processValidations (applyValues for immediate components) and the backing bean data is converted back to a string during renderResponse). On 7/21/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Hi guys, The converters only works for selectOneMenus when i send data from page to bean or works when i change the value from bean and then refresh the page? In my case when i call selectOneMenu.setSubmittedValue (someObject); from a ValueChangeEvent, no conversion is done, this is correct? -- Yours truly (Atenciosamente), Rogério
Re: File download link in MyFaces/Facelets
But of course, Mike! Thanks a lot! Saved my day. Z. On 7/21/06, Mike Kienenberger [EMAIL PROTECTED] wrote: See this thread: http://mail-archives.apache.org/mod_mbox/myfaces-users/200512.mbox/[EMAIL PROTECTED] On 7/21/06, xzuma [EMAIL PROTECTED] wrote: Hello Community! I have the file upload working in MyFaces/Facelets. On upload, it is stored in the persistence layer as a blob. The blob's wrapper bean provides the unique numeric id for a given file. Now, I need to show the link, so that users could download the given file. The link will specify the unique id, and the servlet will fetch the blob from the persistence and write it into a response. Please suggest the architecture for this use case. Thanks. Z
Re: File download link in MyFaces/Facelets
If you found the information helpful, perhaps you could create a wiki entry for it. It's a common question. On 7/21/06, xzuma [EMAIL PROTECTED] wrote: But of course, Mike! Thanks a lot! Saved my day. Z. On 7/21/06, Mike Kienenberger [EMAIL PROTECTED] wrote: See this thread: http://mail-archives.apache.org/mod_mbox/myfaces-users/200512.mbox/[EMAIL PROTECTED] On 7/21/06, xzuma [EMAIL PROTECTED] wrote: Hello Community! I have the file upload working in MyFaces/Facelets. On upload, it is stored in the persistence layer as a blob. The blob's wrapper bean provides the unique numeric id for a given file. Now, I need to show the link, so that users could download the given file. The link will specify the unique id, and the servlet will fetch the blob from the persistence and write it into a response. Please suggest the architecture for this use case. Thanks. Z
Re: about converters
Rog, keep it on the mailing list, please. :-) I do something similar for my Cayenne entities without problems. I'm not sure why you'd need the submitted value. getAsObject passes the submitted value as an argument, and the return value for getAsString will be used as the submitted value on rendering. On 7/21/06, Rogerio Pereira [EMAIL PROTECTED] wrote: In my case i'm creating a generic entity converter that returns an hibernate entity to use on my bean by calling (MyEntity) selectOneMenu.getSubmittedValue(). I would like to do this: selectOneMenu.setSubmittedValue(myEntity) and when the converter is called the option value is set to entity id, but after your response i think this is impossible. 2006/7/21, Mike Kienenberger [EMAIL PROTECTED]: The submitted value for a UIInput component is the unconverted value, yes. Converters get called from processValidations, renderResponse, and possibly other phases as well (I think the submitted value is converted to a local value in processValidations (applyValues for immediate components) and the backing bean data is converted back to a string during renderResponse). On 7/21/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Hi guys, The converters only works for selectOneMenus when i send data from page to bean or works when i change the value from bean and then refresh the page? In my case when i call selectOneMenu.setSubmittedValue (someObject); from a ValueChangeEvent, no conversion is done, this is correct? -- Yours truly (Atenciosamente), Rogério -- Yours truly (Atenciosamente), Rogério
Re: about converters
Oh man sorry, it was a mistake with GMail :)Well i use submitted value because this is the way that i prefer to work with some forms that do intensive use of ValueChangeEvents. 2006/7/21, Mike Kienenberger [EMAIL PROTECTED]: Rog, keep it on the mailing list, please. :-)I do something similar for my Cayenne entities without problems. I'mnot sure why you'd need the submitted value. getAsObject passes thesubmitted value as an argument, and the return value for getAsString will be used as the submitted value on rendering.On 7/21/06, Rogerio Pereira [EMAIL PROTECTED] wrote: In my case i'm creating a generic entity converter that returns an hibernate entity to use on my bean by calling (MyEntity) selectOneMenu.getSubmittedValue(). I would like to do this: selectOneMenu.setSubmittedValue(myEntity) and when the converter is called the option value is set to entity id, but after your response i think this is impossible. 2006/7/21, Mike Kienenberger [EMAIL PROTECTED]: The submitted value for a UIInput component is the unconverted value, yes. Converters get called from processValidations, renderResponse, and possibly other phases as well (I think the submitted value is converted to a local value in processValidations (applyValues for immediate components) and the backing bean data is converted back to a string during renderResponse). On 7/21/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Hi guys, The converters only works for selectOneMenus when i send data from page to bean or works when i change the value from bean and then refresh the page? In my case when i call selectOneMenu.setSubmittedValue (someObject); from a ValueChangeEvent, no conversion is done, this is correct? -- Yours truly (Atenciosamente), Rogério -- Yours truly (Atenciosamente), Rogério -- Yours truly (Atenciosamente),Rogério
Re: NetBeans 5.5
On 7/21/06, Francesco Consumi [EMAIL PROTECTED] wrote: Hi, I just downloaded and installed NetBeans 5.5 beta 2, and stilldoesn't recognize myfaces tag libraries.Does someone know something about this problem ?NetBeans has built in support for the JSF standard TLDs (and they are identical for the RI and for MyFaces), so I assume you are talking about the extra component libraries like Tomahawk, Trinidad, and Tobago? For those you can register your own copy of the relevant DTDs, as follows:* Create a catalog containing all of your DTDs, according to the OASIS XML Catalog format (I need to look up more details on that, and will report back). * Open the Runtime tab in the navigator* Right click on the DTD and XML Schema Catalogs entry, and select Add Catalog.* Select the correct catalog type, and browse to the URL of the appropriate catalog.* Press OK.Once the correct catalog format is documented, it might be a good idea for MyFaces to publish such a catalog on the website, to make this process easy for others who want to import the MyFaces DTDs into a tool that understands XML catalogs. Craigthanks,--Francesco ConsumiUfficio Sistemi informativi Istituto degli InnocentiPiazza SS.Annunziata, 1250122 Firenzeconsumi at istitutodeglinnocenti.itTel. +39 055 2037320ICQ# 12516133
Re: NetBeans 5.5
On 7/21/06, Craig McClanahan [EMAIL PROTECTED] wrote: NetBeans has built in support for the JSF standard TLDs (and they are identical for the RI and for MyFaces), so I assume you are talking about the extra component libraries like Tomahawk, Trinidad, and Tobago? I think he's meaning using the MyFaces impl as runtime. The TLDs have an interesting dif. tag nameactionListener/name tag-classorg.apache.myfaces.taglib.core.ActionListenerTag/tag-class body-contentempty/body-content The Tag's are part of the impl Once the correct catalog format is documented, it might be a good idea for MyFaces to publish such a catalog on the website, to make this process easy for others who want to import the MyFaces DTDs into a tool that understands XML catalogs. Is this an offer from you :) Maybe the maven-faces-plugin has a point to create stuff like that. -Matthias Craig thanks, -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133 -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: Tomahawk tree2
Wow, not sure why the source zip is out of date or if there is an extra java file lying around. Here is the code in SVN: http://svn.sourceforge.net/viewcvs.cgi/jsf-comp/trunk/aa/warSource/net/sf/jsfcomp/aa/tree/examples/TreeBean.java?view=markuprev=585 -Andrew On 7/21/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Andrew, one last request: the TreeBean found in the source files (jsfCompAA-source.zip) is incomplete: /** * */ package warSource.net.sf.jsfcomp.aa.tree.examples; /** * * @author Andrew Robinson (andrew) */ public class TreeBean { public TreeBean() {} } Would you mind copying me the full source for this Bean. Thanks a lot and best regards, JV De: Andrew Robinson [mailto:[EMAIL PROTECTED] Enviado el: viernes, 21 de julio de 2006 10:18 Para: MyFaces Discussion Asunto: Re: Tomahawk tree2 Sorry, I haven't had time to document it on the web site. Here is the link to download it: http://sourceforge.net/project/showfiles.php?group_id=137466package_id=197375 On 7/21/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Thanks Andrew, I don´t see the component that you mention on that page? Regards, JV
MyFaces application don't work in SunOne 8.2
Title: MyFaces application don't work in SunOne 8.2 We have developed a web application using MyFaces Core 1.1.3, Tomahawk 1.1.3 and Tomahawk-Sandbox-1.1.4 an works fine in Tomcat 5.5.12 with J2SDK 1.4. Nowadays we have tried to deploy the same .war in SunOne 8.2 app server. The .war was deployed ok, but any JSF tag was not rendered. In http://wiki.apache.org/myfaces/Installation_and_Configuration we have found out a few guidelines to use MyFaces in SunOne 8.1. We followed these steps but we have no improvements. Have you got any idea? Thanks in advance...
Can UISelectOne Trigger an Action Event?
This one should be a piece of cake for all you JSF experts; how do I make a selectOne component trigger an “action event”? I need to do some backend processing after a user picks a different value for the drop down list, so I need the event to happen after Update Model Values phase. Unfortunately, it seems that value change events can only be processed during the Process Validations phase or the Apply Request Values phase (depending on the value of the immediate atribute). -- View this message in context: http://www.nabble.com/Can-UISelectOne-Trigger-an-Action-Event--tf1981993.html#a5439491 Sent from the MyFaces - Users forum at Nabble.com.
Re: Can UISelectOne Trigger an Action Event?
I use javascript to invoke a hidden command link. t:commandLink id=mylink forceId=true action=... actionListener=... style=display: none; visibility: hidden; / t:selectOneMenu onchange=onclick('mylink'); script // ![CDATA[ function clickLink(linkId) { var fireOnThis = document.getElementById(linkId) if (fireOnThis == null) { alert(Could not locate link + linkId) return } if (document.createEvent) { var evObj = document.createEvent('MouseEvents') evObj.initEvent( 'click', true, false ) fireOnThis.dispatchEvent(evObj) } else if (document.createEventObject) { fireOnThis.fireEvent('onclick') } } // ]] /script On 7/21/06, mjovanov [EMAIL PROTECTED] wrote: This one should be a piece of cake for all you JSF experts; how do I make a selectOne component trigger an action event? I need to do some backend processing after a user picks a different value for the drop down list, so I need the event to happen after Update Model Values phase. Unfortunately, it seems that value change events can only be processed during the Process Validations phase or the Apply Request Values phase (depending on the value of the immediate atribute). -- View this message in context: http://www.nabble.com/Can-UISelectOne-Trigger-an-Action-Event--tf1981993.html#a5439491 Sent from the MyFaces - Users forum at Nabble.com.
multi column/row header with t:dataTable
Hello, i'm try to create a table using t:dataTable with a multi column/row table header. is it possible to create a 'complex' header with colspan' look a like to group the content? i'm going crazy .. no try really works. i need something like that: | group haeder | group haeder2 | |header1 | header2| header3 |header21 | header22 header23 | |content1| content2|content3 |content21| content22|content23 | any ideas? ...does anybody knows why this feature is not supported by JSF??? thanks for help!! Kuni
Re: Startup problem on Weblogic 8.1SP4
Hi Chris, Did you finally manage to find a recommended way? I am struggling with the same problem in the context of Shale + MyFaces + Spring under Bea WL. Thanks, Balazs Christian Kesselheim wrote: If I split up the spring jar and place just the spring-web*.jar files on WEB-INF/lib, weblogic is giving me wicked error messages such as a complete shutdown of the application without any meaningful error message in the log: May 10, 2005 1:51:25 PM CEST Error Deployer BEA-149201 Failed to complete the deployment task with ID 55 for the application test. java.lang.NullPointerException at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletCont ext.java:5999) at weblogic.servlet.internal.ServletContextManager.destroyContext(ServletCo ntextManager.java:196) at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:777) at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java :761) at weblogic.servlet.internal.WebAppModule.rollback(WebAppModule.java:739) ... I've now completely abandoned the spring jsf integration classes (variable resolver and utils) and hacked together my own utilities in combination with jsf-spring. Works like a charm. Chris On May 6, 2005, at 3:20 PM, Christian Kesselheim wrote: No, I haven't. I'm no running on jsf-spring instead. Perhaps I'll try this later. Best regards, Chris On May 6, 2005, at 2:58 PM, Deadman, Hal wrote: Did you try putting spring-web.jar and spring-webmvc.jar in the war and the other spring-*.jar files in the EAR? I am just curious if that works because it sounds like a problem that I will run into at some point. My first JSF application was not in an EAR otherwise I would have had the same problem. Hal -Original Message- From: Christian Kesselheim [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 8:22 AM To: MyFaces Discussion Subject: Re: Startup problem on Weblogic 8.1SP4 The whole issue goes away if I comment out my application locale-config / view- handlerorg.apache.myfaces.application.jsp.JspTilesViewHandlerImpl/ view-handler variable- resolverorg.springframework.web.jsf.DelegatingVariableResolver/ variable-resolver /application in faces-context.xml! Hence, I guess that having the spring jar files inside the EAR classloader and the myfaces jar files inside the WAR classloader of weblogic make the whole classloading break apart. As I can't really put myfaces libraries into the EAR classloader (myfaces expects them in WEB-INF lib, extracting some resources at runtime), I'll try to either split up my spring jar or use the spring-jsf library instead. Best regards, Chris On May 6, 2005, at 1:47 PM, Christian Kesselheim wrote: Hi! I've got a little problem with an application based on both myfaces-1.0.9 and spring running on Weblogic 8.1SP4. My JSF UI is packed into a WAR, which is then in turn wrapped into the applications EAR. The build is done via Maven; so is the generation of all JAR/WAR/EAR manifest files. Followed the getting started instructions on the myfaces website, I included all necessary jars in my WEB-INF/lib (including jsp-2.0.jar). When deploying the application, weblogic starts choking: May 6, 2005 1:37:43 PM CEST Warning HTTP BEA-101162 User defined listener org.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException. May 6, 2005 1:37:43 PM CEST Warning HTTP BEA-101162 User defined listener org.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException. May 6, 2005 1:37:44 PM CEST Error Deployer BEA-149201 Failed to complete the deployment task with ID 34 for the application myapp-0.1-SNAPSHOT. weblogic.management.DeploymentException: Exception:weblogic.management.ApplicationException: start() failed. Module: myapp Error: weblogic.management.DeploymentException: javax/servlet/jsp/el/ELException - with nested exception: [java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(S l aveDeployer.java:2423) at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeploy e r.java:2138) at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Sl a veDeployer.java:2237) at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeplo y er.java:2132) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Sl a veDeployer.java:2384) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Slav e Deployer.java:866) at
Re: multi column/row header with t:dataTable
i am not sure on how much this would help you, but here goes my view: If you want to use something for colspan, specify the width of the columns in your .css file and just use those class names in the columnClass attribute of datatable. That is how i could change the width of my columns in a tree table.. Regards, Nimisha. On 7/21/06, Kuni [EMAIL PROTECTED] wrote: Hello,i'm try to create a table using t:dataTable with a multi column/rowtable header. is it possible to create a 'complex' header with colspan' look a like to group the content?i'm going crazy .. no try reallyworks. i need something like that:| group haeder | group haeder2 ||header1 | header2| header3 |header21 | header22 header23 | |content1| content2|content3 |content21| content22|content23 |any ideas?...does anybody knows why this feature is not supported by JSF??? thanks for help!!Kuni
RE: MyFaces application don't work in SunOne 8.2
Title: MyFaces application don't work in SunOne 8.2 Sorry, we have made a mistake.Following the steps enunciated inhttp://wiki.apache.org/myfaces/Installation_and_Configuration we can run our web application in Sun Java System Application Server Platform Edition 8.2 Personal Edition fine. Thanks -Mensaje original-De: Nicolas Daneri Enviado el: Viernes, 21 de Julio de 2006 06:30 p.m.Para: Fabio RoselliniAsunto: RV: MyFaces application don't work in SunOne 8.2 -Mensaje original-De: Fabio Rosellini [mailto:[EMAIL PROTECTED]Enviado el: Friday, July 21, 2006 04:34 PMPara: users@myfaces.apache.orgAsunto: MyFaces application don't work in SunOne 8.2 We have developed a web application using MyFaces Core 1.1.3, Tomahawk 1.1.3 and Tomahawk-Sandbox-1.1.4 an works fine in Tomcat 5.5.12 with J2SDK 1.4. Nowadays we have tried to deploy the same .war in SunOne 8.2 app server. The .war was deployed ok, but any JSF tag was not rendered. In http://wiki.apache.org/myfaces/Installation_and_Configuration we have found out a few guidelines to use MyFaces in SunOne 8.1. We followed these steps but we have no improvements. Have you got any idea? Thanks in advance...
Re: MyFaces application don't work in SunOne 8.2
I faced the exact same problem. We are using AS 8.2... but when i followed the steps given in http://wiki.apache.org/myfaces/Installation_and_Configuration, for 8.1 and the problem was resolved.. we are not using tomahawk though.. we are using myfaces-all.jar which was causing a conflict. Regards, Nimisha. On 7/21/06, Fabio Rosellini [EMAIL PROTECTED] wrote: We have developed a web application using MyFaces Core 1.1.3, Tomahawk 1.1.3 and Tomahawk-Sandbox-1.1.4 an works fine in Tomcat 5.5.12 with J2SDK 1.4. Nowadays we have tried to deploy the same .war in SunOne 8.2 app server. The .war was deployed ok, but any JSF tag was not rendered. In http://wiki.apache.org/myfaces/Installation_and_Configuration we have found out a few guidelines to use MyFaces in SunOne 8.1. We followed these steps but we have no improvements. Have you got any idea? Thanks in advance...
ManagedBean methods with arguments...
Hi, I was wondering if JSF supports invoking methods in ManagedBeans that have input arguments.. For instance, how can I convert the following pure jsp code to jsf style (I am particularly interested in conversion for the method: getField(String arg)): % String dlen = 0; for (int i = 0; i flds.getCollCount(); i++){ altDataField fld = (altDataField)flds.getCollObject(i); String fldVal = (String)fldVals.get(fld.m_userColumn); if (Integer.parseInt(fld.m_entryLength) 40) dlen = 40; else dlen = fld.m_entryLength; % TR TD align=right%= fld.getField(DESCR) %nbsp;nbsp;nbsp;/TD TDINPUT id=%= fld.getField(USERCOLUMN) % name=%= fld.getField(USERCOLUMN) % size=%= dlen % maxlength=%= fld.getField(ENTRYLENGTH) % value=%= fldVal %/inputnbsp;nbsp;nbsp;/TD TDinput checked type=checkbox name=chk%= fld.getField(USERCOLUMN) % value=1/input/TD TDinput type=radio name=orderby value=%= fld.getField(USERCOLUMN) %/input/TD /TR % } % Regards, Jorge Vásquez
Re: multi column/row header with t:dataTable
Hello Nimisha, thanks for your answer. using css to define the table-layout is a nice idea but it is in my case inapplicable. let me describe my problem: i have a single page with a f:subview:jsp:include page=%= fileToIncludeRequestParameter %//f:subview component. including file contains a t:dataTable component. This is my way to load 'dynamic' datatables with a specific table-layout. the layout is basicly as shown below. The css proposal implies to much css defs.. i cannot believe that there is now way to define a layout with column and f:facet name=header tags like: t:datatable ... h:column f:facet name=header/f:facet /h:column ... /t:datatable hopefully regards, Kuni http://dict.leo.org/ende?lp=endep=j7Z..search=inapplicable nimisha sharma schrieb: i am not sure on how much this would help you, but here goes my view: If you want to use something for colspan, specify the width of the columns in your .css file and just use those class names in the columnClass attribute of datatable. That is how i could change the width of my columns in a tree table.. Regards, Nimisha. On 7/21/06, *Kuni* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, i'm try to create a table using t:dataTable with a multi column/row table header. is it possible to create a 'complex' header with colspan' look a like to group the content? i'm going crazy .. no try really works. i need something like that: | group haeder | group haeder2 | |header1 | header2| header3 |header21 | header22 header23 | |content1| content2|content3 |content21| content22|content23 | any ideas? ...does anybody knows why this feature is not supported by JSF??? thanks for help!! Kuni
Re: multi column/row header with t:dataTable
I think that maybe the trinidad table has colspan support (not sure though, I haven't tried it yet) -Andrew On 7/21/06, Kuni [EMAIL PROTECTED] wrote: Hello Nimisha, thanks for your answer. using css to define the table-layout is a nice idea but it is in my case inapplicable. let me describe my problem: i have a single page with a f:subview:jsp:include page=%= fileToIncludeRequestParameter %//f:subview component. including file contains a t:dataTable component. This is my way to load 'dynamic' datatables with a specific table-layout. the layout is basicly as shown below. The css proposal implies to much css defs.. i cannot believe that there is now way to define a layout with column and f:facet name=header tags like: t:datatable ... h:column f:facet name=header/f:facet /h:column ... /t:datatable hopefully regards, Kuni http://dict.leo.org/ende?lp=endep=j7Z..search=inapplicable nimisha sharma schrieb: i am not sure on how much this would help you, but here goes my view: If you want to use something for colspan, specify the width of the columns in your .css file and just use those class names in the columnClass attribute of datatable. That is how i could change the width of my columns in a tree table.. Regards, Nimisha. On 7/21/06, *Kuni* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, i'm try to create a table using t:dataTable with a multi column/row table header. is it possible to create a 'complex' header with colspan' look a like to group the content? i'm going crazy .. no try really works. i need something like that: | group haeder | group haeder2 | |header1 | header2| header3 |header21 | header22 header23 | |content1| content2|content3 |content21| content22|content23 | any ideas? ...does anybody knows why this feature is not supported by JSF??? thanks for help!! Kuni
commandLink problem
using api, impl, tomahawk 1.1.3... I cannot seem to get the commandLink without javascript to work. commandButton works like a charm. The parameters in the actionUrl seem to be getting encoded properly, but when I click on the link I am not going into my action handler. I tried with my commandLinks inside a form and not inside a form same result. It looks like it wants a form and I am not sure why this would be required? I'm guessing because the form name is used in the encode and decode. I would love to just turn javascript on but strict 508 compliance is one of the number 1 requirements of my project. Any ideas why I would not be going into the lifecycle properly?
Re: selectBooleanCheckbox and it's text
Hi Andrew, You can do it by means of h:outputLabel and display your outputText by the side of your check Box because it gives you a attribute named for which refers to the Checkbox. Regds, Chandru. - Original Message - From: Andrew Robinson [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, July 21, 2006 10:08 PM Subject: selectBooleanCheckbox and it's text I am pretty sure this has been asked before, but I can't find it in the archives. I am trying to put a checkbox on a page and have text with it. I have the following code: t:selectBooleanCheckbox value=#{value} styleClass=mystyle t:outputText value=#{msg.mytext} / /t:selectBooleanCheckbox What gets rendered is: My textinput type=checkbox ... class=mystyle / Should this not be: input type=checkbox ... class=mystyleMy text/input ? Any way to do this or am I missing something? (BTW - this is the tomahawk 1.1.3 control) -Andrew
Re: selectBooleanCheckbox and it's text
Will give it a try, thanks On 7/21/06, Chandra Sekhar [EMAIL PROTECTED] wrote: Hi Andrew, You can do it by means of h:outputLabel and display your outputText by the side of your check Box because it gives you a attribute named for which refers to the Checkbox. Regds, Chandru. - Original Message - From: Andrew Robinson [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, July 21, 2006 10:08 PM Subject: selectBooleanCheckbox and it's text I am pretty sure this has been asked before, but I can't find it in the archives. I am trying to put a checkbox on a page and have text with it. I have the following code: t:selectBooleanCheckbox value=#{value} styleClass=mystyle t:outputText value=#{msg.mytext} / /t:selectBooleanCheckbox What gets rendered is: My textinput type=checkbox ... class=mystyle / Should this not be: input type=checkbox ... class=mystyleMy text/input ? Any way to do this or am I missing something? (BTW - this is the tomahawk 1.1.3 control) -Andrew