How to get an nbsp;?
Hi, I have a dataTable with columns, which are defined like this: h:column f:facet name=header h:outputText value=#{msg['pages.label.edit']}/h:outputText /f:facet h:commandLink value=o action=#{usersController.onEdit} rendered=#{row.saveable}/ /h:column If rendered is false, then the column is empty. Consequently, the borders are missing. (The same applies, btw, with outputText and an empty string.) How do I get an nbsp; in such cases? Thanks, Jochen -- How fast can a year go? As fast as your childs first year.
Re: [ Tobago ] Help regarding Input Suggest
Hi Madan, the inputSuggest is currently not working, i observed this last week in our project, i try to fix it this week, if i found enough spare time. Regards, Volker 2007/2/11, madan chowdary [EMAIL PROTECTED]: Hi all, Many would be knowing the Input Suggest by this time, as it is put on many sites like Yahoo Mail for To address. I need to do the same in one of my pages. I have search box which contains a tc:in/ and tc:button/ When a user enters a part of text, suggest Text must be appeared for the user which makes him a bit easier to find the key word. How to achieve this with Tobago. Thnx in advance, Madan Here's a new way to find what you're looking for - Yahoo! Answers
Re: How to get an nbsp;?
Hi, h:outputText value=nbsp; encoding=false/ Regards, Volker 2007/2/12, Jochen Wiedmann [EMAIL PROTECTED]: Hi, I have a dataTable with columns, which are defined like this: h:column f:facet name=header h:outputText value=#{msg['pages.label.edit']}/h:outputText /f:facet h:commandLink value=o action=#{usersController.onEdit} rendered=#{row.saveable}/ /h:column If rendered is false, then the column is empty. Consequently, the borders are missing. (The same applies, btw, with outputText and an empty string.) How do I get an nbsp; in such cases? Thanks, Jochen -- How fast can a year go? As fast as your childs first year.
Re: How to get an nbsp;?
Moin, When you want that the nbsp; is only shown if cell is empty. h:outputText value=nbsp; encoding=false rendered=#{!row.saveable}/ Am Montag 12 Februar 2007 09:14 schrieb Volker Weber: Hi, h:outputText value=nbsp; encoding=false/ Regards, Volker 2007/2/12, Jochen Wiedmann [EMAIL PROTECTED]: Hi, I have a dataTable with columns, which are defined like this: h:column f:facet name=header h:outputText value=#{msg['pages.label.edit']}/h:outputText /f:facet h:commandLink value=o action=#{usersController.onEdit} rendered=#{row.saveable}/ /h:column If rendered is false, then the column is empty. Consequently, the borders are missing. (The same applies, btw, with outputText and an empty string.) How do I get an nbsp; in such cases? Thanks, Jochen -- How fast can a year go? As fast as your childs first year.
Re: Anyone used s:pprPanelGroup and s:tableSuggestAjax ?
I'd suggest to switch over to StreamingAddRessource, then the javascript-Files are included directly with the component... regards, Martin Marinschek On 2/10/07, Ernst Fastl [EMAIL PROTECTED] wrote: It is not about stability, it is about the lack of support for embedded javascript. Other frameworks as e.g. AjaxAnywhere solve this by parsing the generated output for script-tags, which IMHO not the cleanest solution, but a working one. The problem with this solution is, that it would not cover additional js-includes (which happen to be at the top of the page and therefore not within the partially refreshed area). If you let a previousely not rendered component appear in a partially updated area this include will be missing. I'm not shure if that would work with Ajax4JSF or Trinidad. A possible solution for myfaces could be, to include all javascript-includes seperately in a ppr reply (using DefaultAddRessource for instance) and handle them seperately on the client-side. thoughts? regards Ernst On 2/10/07, Martin Marinschek [EMAIL PROTECTED] wrote: as far as I know, the pprPanelGroup is pretty stable currently! regards, Martin On 2/9/07, Werner Punz [EMAIL PROTECTED] wrote: One word, dont, the pprPanelGroup is not really finished, I dont know its state, but the last time I had a look at it, it had severe problems with everything which had javascript embedded. There are other options for partial page rendering at the moment which work better. (Trinidad has one, Ajax4JSF etc...) Laurentiu Trica schrieb: Hi I have to use s:pprPanelGroup and s:tableSuggestAjax together. But I receive an error like this: 2007-02-08 19:21:21,906 WARN org.apache.myfaces.renderkit .html.util.DefaultAddResource - Response has no head or body tag: ?xml version=1.0? response component id=ofamMainForm:ppr1![CDATA[select id=ofamMainForm:label_Output_Nachweis name=ofamMainForm:label_Output_Nachweis size=1 class=largeinputColumn/select]]/componentcomponent id=ofamMainForm:ppr2![CDATA[script type=text/javascript dojo.require('extensions.FacesIO');/scriptscript type=text/javascriptdojo.require('dojo.event.*');/scriptscript type=text/javascriptdojo.require(' dojo.string');/scriptscript type=text/javascriptdojo.require('dojo.lfx.html');/scriptscript type=text/javascriptdojo.require('dojo.lang');/scriptscript type=text/javascript dojo.require('dojo.html');/scriptscript type=text/javascriptdojo.require('dojo.style');/scriptscript type=text/javascriptdojo.require('dojo.collections.ArrayList ');/scriptscript type=text/javascript src=/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11709551/suggestajax.tablesuggestajax.TableSuggestAjaxRenderer/tableSuggest.js/scripttable style=border-collapse:collapse; cellpadding=0trtdinput id=ofamMainForm:ewcs name=ofamMainForm:ewcs type=text value=150103 autocomplete=off class=largeinputColumn //tr/tdtrtddiv class=ajaxTablePopup id=ofamMainForm:ewcs_auto_complete style=display:inline;/div/tr/td/tablescript type=text/javascriptvar tableSuggestofamMainForm_ewcs_fieldNames = [ofamMainForm:ewcs,,ofamMainForm:ewcsId]; Can anybody help me with this? Thanks in advance. -- Best regards, Laurentiu -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: How to get an nbsp;?
On 2/12/07, Michael Meierhoff [EMAIL PROTECTED] wrote: When you want that the nbsp; is only shown if cell is empty. h:outputText value=nbsp; encoding=false rendered=#{!row.saveable}/ Thanks, that matches the commandLink case. However, is there also a solution for the commandText case? Additionally, shouldn't that be handled by myfaces? Jochen -- How fast can a year go? As fast as your childs first year.
[Tobago] Ajax Frameworks With Tobago.
Hi All, I have a usecase where i need to dynamically change the values(Options) of a ListBox [tc:selectOneChoice] based on a value selected in another ListBox or based on the value entered in a textbox[tc:in]. At present i have achieved this using changeEventListener in which the form is submitted to the server. But i dont want to go to server to get the values. Wanna do that using AJAX. So is there a way that we can achieve this with the thirdparty AJAX frameworks like YUI, ScriptAculoUs, ProtoType etc. It would be great if someone can provide any kinda examples ? Thanks in Advance. Regards, Varma
Using Struts-Faces with Trinidad and MyFaces?
Hello, I'm sending this mail to both mailing lists (myfaces and trinidad) because I think that it is not only a trinidad question, but also JSF/MyFaces related. I have the following situation: - An existing application based on Struts 1.x - A prototype of an application based on Trinidad (nightly) / MyFaces 1.1.5 (nightly). The JSF prototype extends the existing struts application with an additional set of features. But the feature-set is not strong coupled to the existing ones. It's more like an additional application which should be used by the same users. Now the customer wants the both being integrated in one application (one logon, links from the new part to the existing struts features and vice versa). The look and feel of both applications is the same, because I have developed a custom skin for Trinidad which copies the styles of the existing struts application. (So, for the customer integration seems to be very easy ;-) I have seen that there is a Struts-Faces Integration library (http://struts.apache.org/1.x/struts-faces/index.html). Has someone used this library to integrate a Trinidad application with a struts 1.x one? The struts application has a JSCookMenu-like navigation menu at the top of the page and so it would be nice to extend this menu in struts with additional menu items for the jsf part. Or are there any other approaches I should think about? One approach I thought about is to simply use the HttpSession/HttpRequest to exchange data (e.g. logged on user) between the struts and the Trinidad parts and deploy the both controller servlets (JSF and Struts) in parallel without any integration library. If a have a link calling a struts page from a JSF page I can use simple URL-parameters to transfer business data like a customer ID between the application parts. The same should work in the other direction. But in this scenario it would not be possible to have struts and jsf parts on the same page (e.g. the struts navigation menu combined with jsf components on the same page). Am I right? Any comments on these thoughts? Regards Jochen
Re: Using Struts-Faces with Trinidad and MyFaces?
Hello Jochen, since you are able to read German, here is a presentation I gave on Struts AND Faces ([1]). The Struts-Faces-Integration-Lib is not really the way to go. I think it is nice to *learn* JSF, when having a struts app in hand, but not really a production ready tool. Keep them separate. Use JSF for new stuff. Stay with struts for the old stuff. When you are in a situation where you have to refactor some struts code (not just changing the title of a page), move that and all the related stuff to JSF. For instance, when you do a refactoring on a search result. Move that and the search to JSF. You can link from Struts zu Faces by using: forward name=success path=/jsfAlleUser.faces / Vice versa is also possible. When mixing the content of a page, I think it would be more straight forward to have the view containing only one framework. Struts or JSF. Running with both is fine, but don't mix the pages (my opinion). There was a JavaOne talk from David Geary. When it came to the question of mixing Struts and JSF he answered, that he never would like to ride two elephants at the same time :) If your struts actions need access to your jsf backing beans (for what ever reason), you can perhaps use this RequestProcessor (code attached). When doing the templating, go w/ Facelets instead of Tiles. [1] http://www.slideshare.net/mwessendorf/ /* * Copyright 2006, 2007 Matthias Wessendorf * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.wessendorf.struts; import java.io.IOException; import javax.faces.FactoryFinder; import javax.faces.context.FacesContext; import javax.faces.context.FacesContextFactory; import javax.faces.lifecycle.Lifecycle; import javax.faces.lifecycle.LifecycleFactory; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionServlet; import org.apache.struts.config.ModuleConfig; import org.apache.struts.tiles.TilesRequestProcessor; public class LegacyTilesRequestProcessor extends TilesRequestProcessor { public static final String LIFECYCLE_ID_ATTR = javax.faces.LIFECYCLE_ID; private FacesContextFactory facesContextFactory; private Lifecycle lifecycle; @Override public void init(ActionServlet arg0, ModuleConfig arg1) throws ServletException { super.init(arg0, arg1); facesContextFactory = (FacesContextFactory)FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); lifecycle = lifecycleFactory.getLifecycle(getLifecycleId()); } @Override public void destroy() { facesContextFactory = null; lifecycle = null; super.destroy(); } @Override public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { FacesContext facesContext = facesContextFactory.getFacesContext(this.servlet.getServletContext(), request, response, lifecycle); try { super.process(request, response); } catch(Exception e) { if (e instanceof IOException) { throw (IOException)e; } else if (e instanceof ServletException) { throw (ServletException)e; } else if (e.getMessage() != null) { throw new ServletException(e.getMessage(), e); } else { throw new ServletException(e); } } finally { facesContext.release(); } } private String getLifecycleId() { String lifecycleId = this.servlet.getServletContext().getInitParameter(LIFECYCLE_ID_ATTR); return lifecycleId != null ? lifecycleId : LifecycleFactory.DEFAULT_LIFECYCLE; } }
SelectOneMenu immediate=true
First I´m using a SNAPSHOT from last Thursday. Don't know if sths broken there. MAybe this is just stupid but I hope someone can show me out. I have a selectOne menu declared like: h:selectOneMenu id=${_id} value=#{entity[field]} required=${required} converter=EntityConverter onchange=#{onchange} styleClass=editable immediate=${immediate} which I use in a facelets Tag named selectFieldEntity. I use this tag with a:selectFieldEntity readonly=false label=#{messages.oetyp} required=true entity=${dienststelle} field=oeTyp onchange=this.form.submit() valueChangeListener=#{action.oetypSelectionChanged} immediate=true selectItems=${action.OETypen} itemlabel=#{element.langBezeichnung} / but the immediate seems to be ignored as validation occurs on other fields in the form (which is not wanted when the selction changes) I saw this in many examples and I have no idea what the heck Im doing wrong ? Thanks for your advice
Re: [ Tobago ] Help regarding Input Suggest
Hi again, just fixed this. Please try the next nightly or build from svn head. Regards, Volker 2007/2/12, Volker Weber [EMAIL PROTECTED]: Hi Madan, the inputSuggest is currently not working, i observed this last week in our project, i try to fix it this week, if i found enough spare time. Regards, Volker 2007/2/11, madan chowdary [EMAIL PROTECTED]: Hi all, Many would be knowing the Input Suggest by this time, as it is put on many sites like Yahoo Mail for To address. I need to do the same in one of my pages. I have search box which contains a tc:in/ and tc:button/ When a user enters a part of text, suggest Text must be appeared for the user which makes him a bit easier to find the key word. How to achieve this with Tobago. Thnx in advance, Madan Here's a new way to find what you're looking for - Yahoo! Answers
JSCookMenu does not use custome style
Hi all! I'm using jscookmenu like this: t:jscookMenu layout=hbr theme=ThemeOffice styleLocation=css/jscookmenu .. This is what's rendered in the page: link rel=stylesheet href=/ECSWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11712782/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.css type=text/css / How to tell the component to use my theme.css?
[Tomahawk1.1.3]PanelTab Bug
Dear fellows, I want to disable any tab of the panelTabbedPane dynamically. i used the disabled attribute of the panel tab and i set it true, but the paneltab is not disabled. can you please tell me how can i dynamically disable a panelTab. thanx in advance -- View this message in context: http://www.nabble.com/-Tomahawk1.1.3-PanelTab-Bug-tf3212994.html#a8922466 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Unable to deploy Tobago 1.0.9 demo App in WebLogic 8.1.4
Hello Alan, which Java Version you are using? Default for WLS is JRockit 1.4.2_05. But the Tobago Demo is running with Java 5 only, by default. To running Tobago Example Demo with JDK 1.4 you have to build it with the retrotranslated dependencies. Regards Udo TUCKER Alan schrieb: Just trying to deploy the demo application (tobago-example-demo-1.0.9.war) as downloaded. I was presuming this contains everything it needs. Seems to be causing a problem with Commons Logging. WebLogic 8.1 sp4 Standard domain configured with the domain creation wizard – nothing special Windows 2000 professional The stack trace below is seen as WLS tries to deploy the WAR Any Ideas? java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:333) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:233) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.myfaces.tobago.webapp.TobagoServletContextListener.clinit(TobagoServletContextListener.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at weblogic.servlet.internal.WebAppServletContext.registerEventListener(WebAppServletContext.java:2886) at weblogic.servlet.internal.WebAppHelper.parseAndRegisterListeners(WebAppHelper.java:394) at weblogic.servlet.internal.WebAppHelper.registerImplicitTagLibListeners(WebAppHelper.java:359) at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptors(WebAppServletContext.java:2434) at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:5904) at weblogic.servlet.internal.WebAppServletContext.setActive(WebAppServletContext.java:5882) at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:834) at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3315) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2194) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2167) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2503) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2421) at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2138) at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2237) at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2132) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2384) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) --- nested within: -- weblogic.management.ManagementException: - with nested exception: [java.lang.NullPointerException] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) ** *AXA Investment Managers* *Alan Tucker* **Java Consultant** IT Core Services - Enterprise Frameworks 7 Newgate Street, London EC1A 7NX Tel: +44 (0) 20 7003 1184 e-mail:_ [EMAIL PROTECTED] BLOCKED::mailto:[EMAIL PROTECTED]_ Website: www.axa-im.com BLOCKED::http://www.axa-im.com/ Le contenu de ce message electronique est confidentiel et destine a l usage du (des) destinataire(s) designe(s). Si vous n etes pas le destinataire, nous vous informons que toute utilisation, diffusion, retransmission ou copie de cet
RE: [Tobago] How to get a horizontal scrollbar for tc:sheet?
Hi everybody, nobody outthere who can give me a hint on this topic? Regards Helmut Hi, I have a tc:sheet with a lot of columns, so not all can be displayed at once on the page. The sum of the pixel widths of the column is greater than the page width. Tobago sets all columns that don't fit on the page to width zero. So they never can be seen or resized. What I expect is a horizontal scrollbar for the sheet or the containing panel or cell. Setting scrollbars=true for the containing cell doesn't help. So how do I get a horizontal scrollbar? Regards Helmut
FYI: Example panelStack is broken.
Hello all, I wanted to take a look at a example about the t:panelStack component and ran into a problem at http://www.irian.at/myfaces/panelstack.jsf. MyFaces encountered an error. Message: There is more than one JSF tag with id : treePanel for parent component with id : 'stack' javax.faces.FacesException: There is more than one JSF tag with id : treePanel for parent component with id : 'stack' at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:590) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:315) at org.apache.jsp.panelstack_jsp._jspx_meth_h_panelGroup_2(panelstack_jsp.j ava:811) at org.apache.jsp.panelstack_jsp._jspService(panelstack_jsp.java:264) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) With kind regards, Marco -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. --
Re: [Tobago] How to get a horizontal scrollbar for tc:sheet?
Hi Helmut, this is a bug, please add a jira entry. setting fixed sizes should used, even if not enough space availiable, and result in having a scrollbar. Regards, Volker 2007/2/12, H. Swaczinna [EMAIL PROTECTED]: Hi everybody, nobody outthere who can give me a hint on this topic? Regards Helmut Hi, I have a tc:sheet with a lot of columns, so not all can be displayed at once on the page. The sum of the pixel widths of the column is greater than the page width. Tobago sets all columns that don't fit on the page to width zero. So they never can be seen or resized. What I expect is a horizontal scrollbar for the sheet or the containing panel or cell. Setting scrollbars=true for the containing cell doesn't help. So how do I get a horizontal scrollbar? Regards Helmut
Problem using PPR together with a tabbedPanel client side
Hi I use a tabbedPanel on the client side and a PPRPanelGroup to update a field. The problem I encountered is when I change a combobox that triggers the update of that field. It works fine. But then, when I want to change the tab, even if it is on client side, the page is refreshed (the new tab is indeed selected). Anyone encountered this problem before? Is it an issue? Or is there something I am doing wrong? Thank you. -- Best regards, Laurentiu
Re: How do I pass row data from a data table to a pop up
From: Sam_arb [EMAIL PROTECTED] Hi, I want to pass a row data from a data table to be displayed in a pop up. The var property is local only to the data table tag. So how can I pass the row data where it is referenced using var to a pop up? Your suggestions and help are greatly appreciated. You might look at using a statefull action listener that will push around values for you. There are at least a couple implementations of this hanging around myfaces [1]. t:updateActionListener property=#{employeeAction.employee.id} value=#{emp.id} / tr:setActionListener to=#{employeeAction.employee.id} from=#{emp.id} / The JSF 1.2 RI has one of these too. It's called setPropertyActionListener [2]. [1] http://incubator.apache.org/adffaces/trinidad-api/tagdoc/tr_setActionListener.html [2] http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/f/setPropertyActionListener.html Regards Sam. Gary -- View this message in context: http://www.nabble.com/How-do-I-pass-row-data-from-a-data-table-to-a-pop-up-tf321 4018.html#a8925195 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Create custom layout component
Hi there! I am trying to port an existing jsp taglib to jsf. This taglib is a kind of gridbaglayout component, emulating the behavior of the well known swing gridbaglayout for html. I use the UIComponentBodyTag class for subclassing the tag implementation, i use EVAL_BODY_BUFFERED and so on, everything as written in spec. The question for now is : why are child components of my custom Component not rendered to the temporary buffer? The BodyContent of my tag is empty, and when i take a look at the generated html, the child components are rendered BEFORE the parent component. Is this a bug, or am i doing something terminally wrong? Regards, Mirko
RE: [Tobago] Theme Package Issue
Hi Varna,this seems to be a related bug tohttps://issues.apache.org/jira/browse/TOBAGO-212RegardsHelmutHi,I Created a new theme whose package structure is "com.mycompany.tobago.renderkit", fallback theme is speyside.When using this theme getting the following _javascript_ error : Tobago.Config has no properties Tobago.Config.set("Tobago", "themeConfig", "wintage/standard"); The reason is the wintage/ theme-config.js from my wintage theme is included before the standard/theme-config.js. /script script src="/Store/com/mycompany/tobago/renderkit/html/wintage/standard/script/theme-config.js" type ="text/_javascript_"/scriptscript src= "/Store/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/theme-config.js" type="text/_javascript_" Are these script includes sorted alphabetically ?? Isn't this an issue ?? I Guess the includes must be sorted based on fallback dependency !! Atleast the standard theme-config.js must be included first, Because Theme.Config property is initialized there.Regards,Varma
Re: tableSuggest component issue
Hi, have you figured this out with latest svn-version? The component`s base code has changed a lot about 4-5 days ago. I can not reproduce this on the latest build which can be found at: http://example.irian.at/example-sandbox-20070212/tableSuggestAjax.jsf cheers, Gerald On 2/12/07, Laurentiu Trica [EMAIL PROTECTED] wrote: Hi TableSuggest component has a curious behaviour: is it a feature? When I have a suggested list and I don't want to select any of the item on the list, instead I leave blank, when i leave the component and go to other fields, the value is automatically changed to the previous value. Thank you in advance. -- Best regards, Laurentiu -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
[Tobago] Theme Package Issue
Hi, I Created a new theme whose package structure is com.mycompany.tobago.renderkit, fallback theme is speyside. When using this theme getting the following javascript error : Tobago.Config has no properties Tobago.Config.set(Tobago, themeConfig, wintage/standard); The reason is the wintage/theme-config.js from my wintage theme is included before the standard/theme-config.js. /scriptscript src=/Store/com/mycompany/tobago/renderkit/html/wintage/standard/script/theme-config.js type=text/javascript /scriptscript src=/Store/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/theme-config.js type=text/javascript Are these script includes sorted alphabetically ?? Isn't this an issue ?? I Guess the includes must be sorted based on fallback dependency !! Atleast the standard theme-config.js must be included first, Because Theme.Configproperty is initialized there. Regards, Varma
Re: tableSuggest component issue
Thank you Gerald. I will make an update tomorrow. Hope it will work as expected. On 2/12/07, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, have you figured this out with latest svn-version? The component`s base code has changed a lot about 4-5 days ago. I can not reproduce this on the latest build which can be found at: http://example.irian.at/example-sandbox-20070212/tableSuggestAjax.jsf cheers, Gerald On 2/12/07, Laurentiu Trica [EMAIL PROTECTED] wrote: Hi TableSuggest component has a curious behaviour: is it a feature? When I have a suggested list and I don't want to select any of the item on the list, instead I leave blank, when i leave the component and go to other fields, the value is automatically changed to the previous value. Thank you in advance. -- Best regards, Laurentiu -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- Best regards, Laurentiu
AW: Using Struts-Faces with Trinidad and MyFaces?
Hello Matthias, Thanks a lot for the detailed and quick reply and the link to the presentation slides. I think we will try this approach (clean separation between Struts and JSF pages) and combine them with navigation rules. Best Regards Jochen -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Matthias Wessendorf Gesendet: Montag, 12. Februar 2007 10:46 An: MyFaces Discussion Cc: adffaces-user@incubator.apache.org; Böhringer Jochen Betreff: Re: Using Struts-Faces with Trinidad and MyFaces? Hello Jochen, since you are able to read German, here is a presentation I gave on Struts AND Faces ([1]). The Struts-Faces-Integration-Lib is not really the way to go. I think it is nice to *learn* JSF, when having a struts app in hand, but not really a production ready tool. Keep them separate. Use JSF for new stuff. Stay with struts for the old stuff. When you are in a situation where you have to refactor some struts code (not just changing the title of a page), move that and all the related stuff to JSF. For instance, when you do a refactoring on a search result. Move that and the search to JSF. You can link from Struts zu Faces by using: forward name=success path=/jsfAlleUser.faces / Vice versa is also possible. When mixing the content of a page, I think it would be more straight forward to have the view containing only one framework. Struts or JSF. Running with both is fine, but don't mix the pages (my opinion). There was a JavaOne talk from David Geary. When it came to the question of mixing Struts and JSF he answered, that he never would like to ride two elephants at the same time :) If your struts actions need access to your jsf backing beans (for what ever reason), you can perhaps use this RequestProcessor (code attached). When doing the templating, go w/ Facelets instead of Tiles. [1] http://www.slideshare.net/mwessendorf/ /* * Copyright 2006, 2007 Matthias Wessendorf * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.wessendorf.struts; import java.io.IOException; import javax.faces.FactoryFinder; import javax.faces.context.FacesContext; import javax.faces.context.FacesContextFactory; import javax.faces.lifecycle.Lifecycle; import javax.faces.lifecycle.LifecycleFactory; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionServlet; import org.apache.struts.config.ModuleConfig; import org.apache.struts.tiles.TilesRequestProcessor; public class LegacyTilesRequestProcessor extends TilesRequestProcessor { public static final String LIFECYCLE_ID_ATTR = javax.faces.LIFECYCLE_ID; private FacesContextFactory facesContextFactory; private Lifecycle lifecycle; @Override public void init(ActionServlet arg0, ModuleConfig arg1) throws ServletException { super.init(arg0, arg1); facesContextFactory = (FacesContextFactory)FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FA CTORY); LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); lifecycle = lifecycleFactory.getLifecycle(getLifecycleId()); } @Override public void destroy() { facesContextFactory = null; lifecycle = null; super.destroy(); } @Override public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { FacesContext facesContext = facesContextFactory.getFacesContext(this.servlet.getServletContext(), request, response, lifecycle); try { super.process(request, response); } catch(Exception e) { if (e instanceof IOException) { throw (IOException)e; } else if (e instanceof ServletException) { throw (ServletException)e; } else if (e.getMessage() != null) { throw new ServletException(e.getMessage(), e); } else { throw new ServletException(e); } } finally { facesContext.release(); } } private String getLifecycleId() { String lifecycleId = this.servlet.getServletContext().getInitParameter(LIFECYCLE_ID_ATTR); return lifecycleId != null ? lifecycleId : LifecycleFactory.DEFAULT_LIFECYCLE; } }
Re: Create custom layout component
Hi, JSF Components are rendered during the JSF render phase, which is not related to JSP taglib rendering. The JSP taglib are used only to create the JSF component tree during restor view (if view does not yet exist). I suggest you move all your rendering code out of the taglib and do you rendering either in the component itself (encodeBegin(), encodeBefore(), encodeChildren()) either in methods with same name in a component renderer. Sertic Mirko, Bedag a écrit : Hi there! I am trying to port an existing jsp taglib to jsf. This taglib is a kind of gridbaglayout component, emulating the behavior of the well known swing gridbaglayout for html. I use the UIComponentBodyTag class for subclassing the tag implementation, i use EVAL_BODY_BUFFERED and so on, everything as written in spec. The question for now is : why are child components of my custom Component not rendered to the temporary buffer? The BodyContent of my tag is empty, and when i take a look at the generated html, the child components are rendered BEFORE the parent component. Is this a bug, or am i doing something terminally wrong? Regards, Mirko
Re: [ Tobago ] Help regarding Input Suggest
Hi Volker, Thnx for quick response, i ll try the nightly build and check over the fixes you have done. Right now i am using Tobago 1.0.9, I placed 1.0.10 a few days before, when running the app, my page alignments has changed and all my components are aligned zigzag, have to fix this before i go with inputSuggest. Can u tell me how can i proceed with the inputSuggest for tc:in/ That would be helpful for me to implement in my app very soon. Thnx Regards, Madan - Original Message From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, 12 February, 2007 4:27:27 PM Subject: Re: [ Tobago ] Help regarding Input Suggest Hi again, just fixed this. Please try the next nightly or build from svn head. Regards, Volker 2007/2/12, Volker Weber [EMAIL PROTECTED]: Hi Madan, the inputSuggest is currently not working, i observed this last week in our project, i try to fix it this week, if i found enough spare time. Regards, Volker 2007/2/11, madan chowdary [EMAIL PROTECTED]: Hi all, Many would be knowing the Input Suggest by this time, as it is put on many sites like Yahoo Mail for To address. I need to do the same in one of my pages. I have search box which contains a tc:in/ and tc:button/ When a user enters a part of text, suggest Text must be appeared for the user which makes him a bit easier to find the key word. How to achieve this with Tobago. Thnx in advance, Madan Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
tableSuggest component issue
Hi TableSuggest component has a curious behaviour: is it a feature? When I have a suggested list and I don't want to select any of the item on the list, instead I leave blank, when i leave the component and go to other fields, the value is automatically changed to the previous value. Thank you in advance. -- Best regards, Laurentiu
RE: SecurityFilter
Thanks Jurgen, I guess I'll go with acegi then. -Original Message- From: Jurgen Lust [mailto:[EMAIL PROTECTED] Sent: Saturday, February 10, 2007 5:09 AM To: Collette Nathan Contr OO-ALC/ITMD Cc: MyFaces Discussion Subject: Re: SecurityFilter Hi Nathan, Unfortunately I am not allowed to distribute this library, and I doubt it would be of any use to anyone, because it only works with our own SSO solution. However, we have recently switched to JA-SIG CAS (http://www.ja-sig.org) and Acegi Security (http://www.acegisecurity.org/), which works great and is much more flexible and easier to extend than SecurityFilter. Kind regards, Jurgen Op vrijdag 09-02-2007 om 15:30 uur [tijdzone -0700], schreef Collette Nathan Contr OO-ALC/ITMD: Hi Jurgen, I was looking around trying to understand better how SSO and JSF could be put together and I came across this thread: 2006/5/23, Jurgen Lust [EMAIL PROTECTED]: We're using a patched version of SecurityFilter, works like a charm.. Basically, it does the following: 1. check security-config.xml if the requested page requires authorisation 2. check session if user is logged in 3. if user is not logged in, redirect to the login page of the SSO server, passing the origin url as parameter 4. after successful login, redirect to the custom login servlet of our securityfilter, passing a signed token. 5. the login servlet decrypts the token using the public key of the SSO server. The key contains (among other info) the username of the logged-in user. 6. if desired, check a database or ldap or whatever for the roles of this user 7. add all this information to the UserPrincipal We packaged all this in a library, and now we have declarative SSO security for all our JSF webapps. Very simple, but effective... Jurgen Op di, 23-05-2006 te 14:30 +0200, schreef [EMAIL PROTECTED]: Hi There is not any particular functionality in JSF that supports SSO explicitly. This is normally handled in the container, or by plugging in an API such as Acegi or SecurityFilter. Hermod -Original Message- From: Rogerio Pereira [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 2:25 PM To: MyFaces Discussion Subject: Who uses Single Sign On with JSF? Hi, I would like to know if somebody uses SSO with JSF, i'm trying to find a good way to do it in my apps. Thanks for any answer. -- Yours truly (Atenciosamente), Rog�rio Any chance I could get your modified SecurityFilter and use it? Thanks, Nathan Collette Automated Material Tracking Systems - Developer Contractor 586-3869 -- Jurgen Lust email: [EMAIL PROTECTED] blog: http://jroller.com/page/jurgenlust
how do you specify an All Day entry for t:schedule?
I looked at the Examples source for adding an all day entry: DefaultScheduleEntry entry7 = new DefaultScheduleEntry(); entry7.setId(RandomStringUtils.randomNumeric(32)); entry7.setTitle(All day event); entry7.setSubtitle(This event renders as an all-day event); entry7.setAllDay(true); model.addEntry(entry7); The startTime() nor endTime() are not called on the entry. How does the entry know its day? Thanks!
Re: problem jboss 4.0.5 + myfaces/tomahawk + tiles
Hi Alexey, im using myfaces-api-1.1.4, myfaces-impl-1.1.4 and tomahawk-1.1.3. I tried it out and replaced tomahawk-1.1.3 by tomahawk-1.1.4, but with the same result. When i take out the declaration of the ViewHandler org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl im getting the error: org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application ... Mayby it has something to do with the other problem? But should tiles be implemented in the tomahawk.jar? Alexey Kakunin schrieb: What version of MyFaces do you use? As I know version 1.1.5-SNAPSHOT has problem with JBoss - version 1.1.4works fine. 2007/2/11, Raymund Nickel [EMAIL PROTECTED]: Hi, i have a problem with using - jboss 4.0.5 - myfaces/tomahawk - tiles I dont deploy any extra jar´s, all necessary ones should be provide by the jboss, right? When i deploy my application to the jboss, i always get the following error. I tried to find some solutions at the internet, but without success. I hope someone can help me.. After the error-message, i also posted my web.xml and faces-config.xml ERROR [[/]] Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/struts/tiles/DefinitionsFactoryException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject( FacesConfigurator.java:548) at org.apache.myfaces.config.FacesConfigurator.configureApplication( FacesConfigurator.java:473) at org.apache.myfaces.config.FacesConfigurator.configure( FacesConfigurator.java:141) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces( StartupServletContextListener.java:69) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized (StartupServletContextListener.java:52) at org.apache.catalina.core.StandardContext.listenerStart( StandardContext.java:3763) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java :759) at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke( RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java :659) at org.apache.catalina.core.StandardContext.init( StandardContext.java:5052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke( RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java :659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal( TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java :103) at org.jboss.web.AbstractWebDeployer.start( AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart( ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle( ServiceMBeanSupport.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke( ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at
Re: Problem using PPR together with a tabbedPanel client side
Hi, So if I understood you correctly you are using a t:panelTabbedPane with serverSideTabSwitch=false right? Inside you have a dropdown-menu which triggers a partial update of a contained panel group. If you do not touch the drop-down and click on a tab it stays on the client-side, but if you changed the dropdown value and afterwards click on a tab the page gets submitted? if that is the case, could you look into the generated HTML and tell what the onclick-Handlers of the Tab-buttons contain? regards Ernst On 2/12/07, Laurentiu Trica [EMAIL PROTECTED] wrote: Hi I use a tabbedPanel on the client side and a PPRPanelGroup to update a field. The problem I encountered is when I change a combobox that triggers the update of that field. It works fine. But then, when I want to change the tab, even if it is on client side, the page is refreshed (the new tab is indeed selected). Anyone encountered this problem before? Is it an issue? Or is there something I am doing wrong? Thank you. -- Best regards, Laurentiu
Re: problem jboss 4.0.5 + myfaces/tomahawk + tiles
I finally solved my problem. I had to deploy struts.jar... i guess im still a newbie! thx for help Raymund Nickel schrieb: Hi Alexey, im using myfaces-api-1.1.4, myfaces-impl-1.1.4 and tomahawk-1.1.3. I tried it out and replaced tomahawk-1.1.3 by tomahawk-1.1.4, but with the same result. When i take out the declaration of the ViewHandler org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl im getting the error: org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application ... Mayby it has something to do with the other problem? But should tiles be implemented in the tomahawk.jar? Alexey Kakunin schrieb: What version of MyFaces do you use? As I know version 1.1.5-SNAPSHOT has problem with JBoss - version 1.1.4works fine. 2007/2/11, Raymund Nickel [EMAIL PROTECTED]: Hi, i have a problem with using - jboss 4.0.5 - myfaces/tomahawk - tiles I dont deploy any extra jar´s, all necessary ones should be provide by the jboss, right? When i deploy my application to the jboss, i always get the following error. I tried to find some solutions at the internet, but without success. I hope someone can help me.. After the error-message, i also posted my web.xml and faces-config.xml ERROR [[/]] Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/struts/tiles/DefinitionsFactoryException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getConstructor(Unknown Source) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject( FacesConfigurator.java:548) at org.apache.myfaces.config.FacesConfigurator.configureApplication( FacesConfigurator.java:473) at org.apache.myfaces.config.FacesConfigurator.configure( FacesConfigurator.java:141) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces( StartupServletContextListener.java:69) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized (StartupServletContextListener.java:52) at org.apache.catalina.core.StandardContext.listenerStart( StandardContext.java:3763) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java :759) at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke( RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java :659) at org.apache.catalina.core.StandardContext.init( StandardContext.java:5052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke( RawDynamicInvoker.java:164) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java :659) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal( TomcatDeployer.java:297) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java :103) at org.jboss.web.AbstractWebDeployer.start( AbstractWebDeployer.java:371) at org.jboss.web.WebModule.startModule(WebModule.java:83) at org.jboss.web.WebModule.startService(WebModule.java:61) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart( ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle( ServiceMBeanSupport.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(
Re: How do I pass row data from a data table to a pop up
If you are asking how you can display row data in a popup (maybe giving more detail as the mouse moves over a row), here's how I did it: t:dataTable id=searchResultsDataTable [...] var=document t:column t:popup styleClass=popup closePopupOnExitingElement=true closePopupOnExitingPopup=true displayAtDistanceX=10 displayAtDistanceY=10 h:outputText value=#{document.summary} / f:facet name=popup h:outputText value=#{document.detail} / /f:facet /t:popup /t:column [...] On 2/12/07, Sam_arb [EMAIL PROTECTED] wrote: Hi, I want to pass a row data from a data table to be displayed in a pop up. The var property is local only to the data table tag. So how can I pass the row data where it is referenced using var to a pop up? Your suggestions and help are greatly appreciated. Regards Sam. -- View this message in context: http://www.nabble.com/How-do-I-pass-row-data-from-a-data-table-to-a-pop-up-tf3214018.html#a8925195 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Is there any way to specify Sunday-Saturday as the Week (as opposed to Monday-Sunday) in t:schedule?
Is there any way to specify Sunday-Saturday as the Week (as opposed to Monday-Sunday) in t:schedule?
Re: [Tobago] Theme Package Issue
Hello, should be fixed. Please try the next nightly build. Regards Bernd H. Swaczinna wrote: Hi Varna, this seems to be a related bug to https://issues.apache.org/jira/browse/TOBAGO-212 Regards Helmut Hi, I Created a new theme whose package structure is com.mycompany.tobago.renderkit, fallback theme is speyside. When using this theme getting the following javascript error : Tobago.Config has no properties Tobago.Config.set(Tobago, themeConfig, wintage/standard); The reason is the wintage/ theme-config.js from my wintage theme is included before the standard/theme-config.js. /script script src=/Store/com/mycompany/tobago/renderkit/html/wintage/standard/script/theme-config.js type =text/javascript /scriptscript src= /Store/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/theme-config.js type=text/javascript Are these script includes sorted alphabetically ?? Isn't this an issue ?? I Guess the includes must be sorted based on fallback dependency !! Atleast the standard theme-config.js must be included first, Because Theme.Config property is initialized there. Regards, Varma
Possible bug with JSCookMenu
Hi all! I'm using the latest build of tomahawk with facelets. I see that styleLocation attribute is ignored, in the renderer its taken from the attributes list but always the value is null. And i don't see property for styleLocation in the tag class too.
Request scoped dataTables
Hi all, I'm doing some pondering about bean scope and in particular if dataTable is working the way it's intended. I've tried both the myfaces and tomahawk dataTable entities and if they're filled with a request scoped bean wielding a DataModel putting a commandLink or button in the table to provide a detailed view of a row just causes a page reload rather than going to the action I specify. From a considerable amount of google it seems this is a feature of JSF, but I find that hard to believe, even if the RI is doing it too. I've also tried playing with binding and doing downright evil stuff in my faces-config. So first off I apologize if this is a well trodden path in faces discussions. If you don't mind, how do others deal with this? I can't see making all the backing beans session scoped (though it works), and tobago's pageFlow stuff doesn't seem practical now (and I don't even know if it would help). Thanks much, Mike
Re: Request scoped dataTables
Michael Litherland wrote: Hi all, I'm doing some pondering about bean scope and in particular if dataTable is working the way it's intended. I've tried both the myfaces and tomahawk dataTable entities and if they're filled with a request scoped bean wielding a DataModel putting a commandLink or button in the table to provide a detailed view of a row just causes a page reload rather than going to the action I specify. From a considerable amount of google it seems this is a feature of JSF, but I find that hard to believe, even if the RI is doing it too. I've also tried playing with binding and doing downright evil stuff in my faces-config. So first off I apologize if this is a well trodden path in faces discussions. If you don't mind, how do others deal with this? I can't see making all the backing beans session scoped (though it works), and tobago's pageFlow stuff doesn't seem practical now (and I don't even know if it would help). Putting a command link or button in a table certainly works; I've done it many many times. There should be an article on the wiki (wiki.apache.org/myfaces) that describes how to do this master/detail stuff but it appears that the apache wiki is down right now. You don't describe exactly what is happening at your end so I can only speculate what the root problem is, but I wonder if your problem is that on postback your datamodel is empty. This would fit with your second paragraph where you talk about bean scopes. It's a fundamental assumption of JSF that when a page containing a table is posted back to the server the datamodel used to render the table is available (or one with identical data). NB: Currently, MyFaces requires this even if the table contains no input or command components (well, it calls the model getter anyway). I'd like to see MyFaces skip fetching the model in this case but that's another issue. The brute-force solution to making the data model available is indeed to put your backing bean in session-scope. A more elegant solution is to put the model into a conversation scope of some sort; t:saveState is one way to do this. The t:dataTable has a preserveModel attribute or something like that which automatically handles this but does require the datamodel to be serializable so it can be stored with the component tree. If the datamodel is actually backing some data that you know does not change between render and postback (eg is static data from a database) then the datamodel can be safely refetched during the postback processing. However if the data can change this is a really bad idea as JSF will get confused about which row is which. Regards, Simon
Re: Request scoped dataTables
Michael Litherland wrote: Sorry about not being clear. I have a dataTable that renders a ListDataModel created by a request scoped bean. I understand that keeping the DataModel request scoped would make it not work on the return click, so as a result I tried to tie it to a session scoped 'user' bean that is a managed property of all the request beans in question. However a command link that called an action of either the source request bean or the target request bean resulted in reloading the source page as if there was no from-outcome rule for the page given the action that I specified (and I tested this by using log4j to log the method that I wanted called). I could diagram this or provide some pseudo code if that would be helpful. Do you have an h:messages tag in this page? Normally failed to navigate problems are caused by validation failure. A more elegant solution is to put the model into a conversation scope of some sort; t:saveState is one way to do this. I'll look into this, thanks for the hint. NB: Apache Shale provides a conversation scope feature, and so does JBoss Seam. Both are more powerful than t:saveState but also more complex. Hopefully someday conversation scope will be part of the JSF standard as it's basically impossible to write a decent-sized app without it. The t:dataTable has a preserveModel attribute or something like that which automatically handles this but does require the datamodel to be serializable so it can be stored with the component tree. Don't know about this one, eventually that datamodel may have 600+ paged entities and that kind of freaks me out. Of course that's another obstacle on its own. Yep, something to be careful of. However t:saveState has effectively the same implication, as does any other conversation-scope solution OR using session-scope beans. In all cases, the data is kept around until the user decides to do a postback or the session times out. Of course with session-beans there is an additional task of figuring out when to discard data, which conversation scope does for you. Note also that permitting users to use back buttons makes things really ugly. If the table state is embedded in the component tree (t:saveState or t:dataTable's native preserving) then this works but the memory implications can be nasty for large models. If the data is kept separate then a back-button causes mismatch between table and model. If the datamodel is actually backing some data that you know does not change between render and postback (eg is static data from a database) then the datamodel can be safely refetched during the postback processing. However if the data can change this is a really bad idea as JSF will get confused about which row is which. In this case the data for the model won't likely change (additions are infrequent). I understand the concern here. Then refetching the data on postback is probably the best solution. Cheers, Simon
Dynamic panelGrid within dataTable
Howdy, I'm trying to dynamically generate a panelGrid from within a dataTable (yes, dynamic generation is required). The panelGrid will be displayed as details when the user clicks on a row in the table, and each row in the table will generate different contents for its panelGrid. This technique seems to fail when the panelGrid is bound to the var of the dataTable, but not, for instance, when accessing a panelGrid property of some other request or session bean. The exception (below) seems to indicate that the dataTable var is null when the panelGrid binding is evaluated. Here's an extract of the tags: h:form id=createReports t:dataTable id=reports var=report value=#{ReportDefinitions.reportList} sortable=true preserveDataModel=false [...] t:column sortPropertyName=name f:facet name=header h:outputText value=REPORT NAME/ /f:facet h:outputText value=#{report.name}/ /t:column f:facet name=detailStamp t:panelGrid --- t:panelGrid binding=#{report.formPanelGrid} / /t:panelGrid /f:facet /t:dataTable /h:form And the exception is: 17:45:30,171 ERROR [ApplicationImpl] Exception while creating component of type [org.apache.myfaces.HtmlPanelGrid] for binding [#{report.formPanelGrid}] 17:45:30,187 ERROR [Engine] ApplicationDispatcher[/reporter] Servlet.service() for servlet jsp threw exception Caused by: javax.faces.el.PropertyNotFoundException: Base is null: report at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:460) at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:248) at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:449) at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:709) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:596) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:312) at org.apache.jsp.reports.reports_jsp._jspx_meth_t_panelGrid_0(reports_jsp.java:1728) at org.apache.jsp.reports.reports_jsp._jspService(reports_jsp.java:577) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416) ... 42 more I've searched the web for an answer, but I'm probably still missing something. Suggestions? Do I need to introduce some sort of indirection through another bean to make this work? Thanks. fastbob -- View this message in context: http://www.nabble.com/Dynamic-panelGrid-within-dataTable-tf3218128.html#a8937191 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Request scoped dataTables
On 2/12/07, Simon Kitching [EMAIL PROTECTED] wrote: Michael Litherland wrote: Sorry about not being clear. I have a dataTable that renders a ListDataModel created by a request scoped bean. I understand that keeping the DataModel request scoped would make it not work on the return click, so as a result I tried to tie it to a session scoped 'user' bean that is a managed property of all the request beans in question. However a command link that called an action of either the source request bean or the target request bean resulted in reloading the source page as if there was no from-outcome rule for the page given the action that I specified (and I tested this by using log4j to log the method that I wanted called). I could diagram this or provide some pseudo code if that would be helpful. Do you have an h:messages tag in this page? Normally failed to navigate problems are caused by validation failure. Yes I do have a h:messages and copious log4j logging, but it doesn't display any problems, which in itself is worrying. A more elegant solution is to put the model into a conversation scope of some sort; t:saveState is one way to do this. I'll look into this, thanks for the hint. NB: Apache Shale provides a conversation scope feature, and so does JBoss Seam. Both are more powerful than t:saveState but also more complex. Hopefully someday conversation scope will be part of the JSF standard as it's basically impossible to write a decent-sized app without it. Haven't really looked into shale, but steam is too much integration for my taste and gets away from the relatively XML-free nature of JSF/EJB3 (not that XML is bad, but expression of the logic in code is ideal for maintenance going forward). That idea sounds like what the pageFlow portion of tobago is going for and I agree that it's a great idea. The t:dataTable has a preserveModel attribute or something like that which automatically handles this but does require the datamodel to be serializable so it can be stored with the component tree. Don't know about this one, eventually that datamodel may have 600+ paged entities and that kind of freaks me out. Of course that's another obstacle on its own. Yep, something to be careful of. However t:saveState has effectively the same implication, as does any other conversation-scope solution OR using session-scope beans. In all cases, the data is kept around until the user decides to do a postback or the session times out. Of course with session-beans there is an additional task of figuring out when to discard data, which conversation scope does for you. Note also that permitting users to use back buttons makes things really ugly. If the table state is embedded in the component tree (t:saveState or t:dataTable's native preserving) then this works but the memory implications can be nasty for large models. If the data is kept separate then a back-button causes mismatch between table and model. Fortunately for this app the users are in themselves developers so I have the option of saying back is bad, mmkay? but I agree that it's an issue with app development in general (boy do I hate the web sometimes, but really any serious multiuser app has to deal with it). If the datamodel is actually backing some data that you know does not change between render and postback (eg is static data from a database) then the datamodel can be safely refetched during the postback processing. However if the data can change this is a really bad idea as JSF will get confused about which row is which. In this case the data for the model won't likely change (additions are infrequent). I understand the concern here. Then refetching the data on postback is probably the best solution. I'll keep playing when time permits (this is one of those 'it must be complete by tomorrow' (quite literally) apps), but it still seems to me that dataTable may have issues. I'd like as badly as anybody to be able to determine if its my app or the library's issue, hence my call for assistance here. Cheers, Simon Again Simon, thanks for your reply. Mike
Re: [Solved] Dynamic panelGrid within dataTable
Simon, Thanks for your quick response. Obviously I don't understand the rendering model sufficiently. This helps. Yes, what I'm attempting does imply a tight coupling between the presentation and backing bean, but in this case the backing bean is actually used just for presentation and delegates to a more general backing bean. So I can live with this instance. Is there a preferred JSF pattern for communicating user selection of a dataTable row back to the server? I've found a number of somewhat crufty methods (such as on BalusC), but unless I've missed something, none seem particularly attractive other than f:attribute. But perhaps that's just the nature of the beast. Any suggestions? Thanks. fastbob -- View this message in context: http://www.nabble.com/Dynamic-panelGrid-within-dataTable-tf3218128.html#a8937628 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Solved] Dynamic panelGrid within dataTable
fastbob wrote: Simon, Thanks for your quick response. Obviously I don't understand the rendering model sufficiently. This helps. Yes, what I'm attempting does imply a tight coupling between the presentation and backing bean, but in this case the backing bean is actually used just for presentation and delegates to a more general backing bean. So I can live with this instance. Is there a preferred JSF pattern for communicating user selection of a dataTable row back to the server? I've found a number of somewhat crufty methods (such as on BalusC), but unless I've missed something, none seem particularly attractive other than f:attribute. But perhaps that's just the nature of the beast. Any suggestions? Generally when processing a row the nicest solution is to build any functionality needed onto the row object itself. Suppose the model is normally a list of Person objects but some logic is needed to manipulate a particular person then the model can be changed to a list of PersonHandler objects each of which has a person property. In this case, there is no communication of the user selection required; the method is invoked *on* the selected object. An alternative is to set the binding attribute on the t:dataTable object, then the callback method that is invoked can call the getRowData method on the datatable to find the row currently being operated on. It's not so elegant but does work fine. I think that if you write the commandLink to invoke an ActionListener rather than an action method then the event might also have the appropriate row info but am not sure of the details here. Regards, Simon
Query for Composite Controls
Hi all, I'm writing a Composite COntrol. I was at abottle neck here, I need to render the Composite Controls basing upon the Event onChange in the Combo Box List..Do I need to Code a separate renderer for all the three items in the List Box.Or I can mention all the Components in the div tags and make them disabled whenver the SelectItem is Chosen.Please send me the Solutoin for it. Regards, Chandru..
Re: [Tobago] Ajax Frameworks With Tobago.
After spending sometime debugging this, Found that Tobago.addAjaxComponent(':page:panel); has to be called incase if the panel has to be updated using AJAX. Is this a bug in 1.0.9?? Regards, Varma On 2/13/07, Varma Dendukuri [EMAIL PROTECTED] wrote: Hi Volker, Thanks for the Quick Response. When i was trying this, getting the following javascript error. LOG.debugAjaxComponents is not a function. tobago.js (line 595) I'm running on Tobago 1.0.9. I have gone through the js code and found that there is no function called debugAjaxComponents defined in the class LOG. Am i missing anything ?? Regards, Varma On 2/12/07, Volker Weber [EMAIL PROTECTED] wrote: Hi Varma, i have no experience with 'thirdparty AJAX frameworks', but i don't think they work with tobago. But you can do this with the tobago internal ajax partial reload feature. put the second tc:selectOneChoice into a tc:panel with defined clientId ( this means you set a id to this panel and to all surrounding namingContainer components). add a 'change' facet to the first tc:selectOneChoice with a action to change the options for the second one, and a renderedPartially attribute to update. --- jsf tc:page id=page ... tc:selectOneChoice ... f:selectItems .../ f:facet name=change tc:command action=#{ bean.selectOptions} tc:attribute name=renderedPartially value=:page:panel/ /tc:command /f:facet /tc:selectOneChoice tc:panel id=panel tc:selectOneChoice ... f:selectItems value=#{bean.items2}/ /tc:selectOneChoice /tc:panel ... /tc:page --- /jsf the action method public String selectOptions() {...} should update the selectItems in items2 property. And MUST return null, because you don't want to navigate to anohter view. Regards, Volker 2007/2/12, Varma Dendukuri [EMAIL PROTECTED]: Hi All, I have a usecase where i need to dynamically change the values(Options) of a ListBox [tc:selectOneChoice] based on a value selected in another ListBox or based on the value entered in a textbox[tc:in]. At present i have achieved this using changeEventListener in which the form is submitted to the server. But i dont want to go to server to get the values. Wanna do that using AJAX. So is there a way that we can achieve this with the thirdparty AJAX frameworks like YUI, ScriptAculoUs, ProtoType etc. It would be great if someone can provide any kinda examples ? Thanks in Advance. Regards, Varma
RE: t:commandLink and image of button - how not to hard code
But this requires hard coding of the path to spacer.gif. What we are trying to do is implement skins so that the user can change the look and feel of the web page and may decide to choose bigger buttons which may require a change to spacer.gif(?). Not really sure. will experiment with this and see what happens. thanks for the help. L Cooper, Stephen-2 wrote: Here's an idea: Define a CSS class, say 'delete' .delete { background-image: url('path-to-image'); background-repeat: none; background-position: center; } Next, Make your command link have the class of 'delete', and put a 1x1 transparent gif image, sized to the correct size, inside the commandLink e.g. t:commandLink class='delete' spacer.gif /t:commandLink Now, depending on which CSS you include, or if the CSS is actually a JSP, you can include different images for the delete image. E.g. a trash can or an X. Good luck! Coop (p.s. I made the JSF stuff up on the fly, so the syntax may be wrong. The CSS I took from my existing JSP based application) -Original Message- From: Lisa [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 11:21 PM To: users@myfaces.apache.org Subject: Re: t:commandLink and image of button - how not to hard code anyone have any ideas on this one? How can an image be configured as a resource in one location and referred to by t:commandLink throughout the application so that it is hardcoded inonly one place. Is there any way to specify the img file location in a CSS and refer to it in the t:commandLink? thanks L Lisa wrote: I have a commandLink below that has a reference to a hard coded path to button image. Is there a way to simply specify a resource, where that resource has the hard coded path to the button? If so, where are resources like this typically configured? Is there a better way to write the t:commandLink below so that the 3 hard coded paths are gone? thanks --- t:commandLink actionListener=#{myBean.addData} id=btnAdd onmouseover=BtnAddImg.src='../../images/AddButtonBlue.gif'; return true; onmouseout=BtnAddImg.src='../../images/AddButtonSilver.gif'; return true; ../../images/Pt-Add-Button-Silver.gif /t:commandLink -- View this message in context: http://www.nabble.com/%3Ct%3AcommandLink%3E-and-image-of-button---how-no t-to-hard-code-tf3157766.html#a8881008 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/%3Ct%3AcommandLink%3E-and-image-of-button---how-not-to-hard-code-tf3157766.html#a8939041 Sent from the MyFaces - Users mailing list archive at Nabble.com.
selectList - how to pass a parameter to backing bean method from XHTML?
I want to build a SelectItem list by calling a method in my backing bean, but I want to be able to pass the backing bean a String (from the XHTML). --- This is what I currently have: h:selectOneListbox rendered=#{carBean.listMode} id=idSelectVehicleType value=#{carBean.vehicleType} size=1 f:selectItems id=idCarBeanTypeList value=#{carBean.vehicleTypeList}/ /h:selectOneListbox where vehicleTypeList is a method in CarBean.getVehicleTypeList() --- So I want to change the method signature to accept a String like so: CarBean.getVehicleTypeList(String s) and in the XHTML pass String s to CarBean.getVehicleTypeList(String s). Is this possible? value=#{carBean.vehicleTypeList(myString)} thanks Lisa -- View this message in context: http://www.nabble.com/selectList---how-to-pass-a-parameter-to-backing-bean-method-from-XHTML--tf3218841.html#a8939143 Sent from the MyFaces - Users mailing list archive at Nabble.com.