Re: Problem using PPR together with a tabbedPanel client side
ofamMainForm:tab1_headerCell_sub" > class="myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_first > myFaces_panelTabbedPane_subHeaderCell_active" > > > class="myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_inactive"> > > class="myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_inactive"> > > > class="myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_inactive"> > > "myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_inactive"> >id="ofamMainForm:tab6_headerCell_sub" > class="myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_inactive" > > > class="myFaces_panelTabbedPane_subHeaderCell > myFaces_panelTabbedPane_subHeaderCell_inactive"> > > > > > And yes, the behaviour is the one you wrote in your reply. > > Thank you in advance. > > > On 2/12/07, Ernst Fastl <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > -- > Best regards, > Laurentiu -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: ERROR: Value is not a valid option
Hi, I have had a similar problem recently. Generally happens if the application is not able to find the selected value in the List of selectItems. This can be due to 2 possible situations: 1. The list is not available during validation -> try using a to ensure it is 2. The values of the selectItems (getValue() and setValue()) do not contain Strings and there is no converter: -> use a corresponding converter e.g. for Long - LongConverter for the selectOneMenu hope that helps regards Ernst On 2/22/07, Srinivas V <[EMAIL PROTECTED]> wrote: Hi All, Please help me!! I am having an issue with SelectOneMenu. I have installed JSF 1.1.5-SNAPSHOT,Tomahawk1.1.5- SNAPSHOT and tomahawk-sandbox-1.1.5-SNAPSHOT. Previously i had myfaces1.1 jar I dint have issue with selectOneMenu before. Now when I submit the page, I am getting this jsf validation error: Container:"Value is not a valid option" for a selectOneMenu even if i select some option. code: Can anybody tell me why it is happening? regards srinivas
Re: Tree2 and PPRPanelGroup
Hi, I have had exactly this combination working, do you use a partialTriggerPattern which covers the crosses rendered by the tree (if unsure check the generated html and look at the ids of the crosses) regards Ernst On 3/7/07, Oellien, F (Frank) <[EMAIL PROTECTED]> wrote: Hello, Is it possible to create a Ajax-enabled version of tree2 by putting the component within a pprPanelGroup? I have tried but obviously it does not work as expected: The tree will be rerendered through the Ajax request by pressing a node in the tree. However, the branches will not be expanded if clicking on the crosses. Why? Regards Frank Frank Oellien Scientist Intervet Innovation GmbH Zur Propstei 55270 Schwabenheim, Germany E-Mail: [EMAIL PROTECTED] Phone: +49 (6130) 948 365 Fax:+49 (6130) 948 517 Homehttp://www.intervet.com Intervet Innovation GmbH is an Akzo Nobel company Sitz der Gesellschaft: Schwabenheim Amtsgericht Mainz, HRB 23 166 Geschäftsführer: Dr. Peter Schmid -- This message, including attachments, is confidential and may be privileged. If you are not an intended recipient, please notify the sender then delete and destroy the original message and all copies. You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender. --
Re: latest build: resource src/dom/__package__.js not found
hi dave! This is a known issue which will hopefully be fixed soon. In order to have the oamSubmit-function available you need to have at least one of the components on the page which renders it. As a workaround you could place a dummy commandLink on your page like: that should solve your problem for now. the "Unable to find resource " is a dojo problem and can savely be ignored regards Ernst On 4/23/07, Dave <[EMAIL PROTECTED]> wrote: I downloaded the latest nightly build sandbox jar, and tried to use , but I got the following error: server side Jboss console: -- 14:56:33,094 ERROR [MyFacesResourceLoader] Unable to find resource src/dom/__package__.js for component dojo.DojoResourceLoader. Check that this file is available in the classpath in sub-directory /resource of the package-directory. client - Error: oamSetHiddenInput is not defined Source File: http://localhost/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11773150/ppr.PPRPanelGroup/ppr.js Line: 196 oamSetHiddenInput(formName,formName +':'+'_idcl',triggerElement.id); Did I miss anything? Thanks for help! Dave Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos.
Re: does not submit using Ajax
Hi dave, For JavaScript debugging I can recommend using Firefox together with the firebug plugin http://www.mozilla-europe.org/en/products/firefox/ and https://addons.mozilla.org/de/firefox/addon/1843 what partialTriggers or partialTriggerPattern do you have defined and which components are they refering to? regards Ernst On 4/24/07, Dave <[EMAIL PROTECTED]> wrote: Hello, I am using to update one part of page only. But it refresh the whole page using normal form submit. How should I debug it? I just installed IE script debugger. Thanks! Dave Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos.
Re: myfaces supports ajax framework
there are quite some AJAX components in the tomahawk sandbox. go to: http://www.irian.at/myfaces.jsf look for the link named » MyFaces Sandbox Examples latest build there take a look at the Partial Page Rendering examples cheers Ernst On 4/25/07, deepraj <[EMAIL PROTECTED]> wrote: anyone knows can i use ajax and myfaces together -- View this message in context: http://www.nabble.com/myfaces-supports-ajax-framework-tf3645195.html#a10180178 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: does not work in cell
Hi, This is indeed an issue with the current implementation and we are working on that problem. For the time being you might want to put the whole dataTable into a pprPanelGroup like in http://example.irian.at/example-sandbox-20070501/pprPanelGroupDataScroller.jsf regards Ernst On 4/30/07, Dave <[EMAIL PROTECTED]> wrote: does not work in cell. The book variable becomes null in Render phase. Is there a workaround? Thanks! Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos.
Re: Sandbox behaviour!!
sounds familiar try using s:loadBundle instead of f:loadBundle for your messages regards Ernst On 5/15/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: Hi everybody, can anybody explain me, what are functionalities for sandbox components? For example if you put a message from a ".properties" inside a . When you execute the component (ajax) the message has disappeared! Thank you very much!! 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: and datascroller
Seems to work fine for me on: http://example.irian.at/example-sandbox-20070514/pprPanelGroupDataScroller.jsf what exactly do you mean? On 5/11/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: Hi everybody, can anybody tell me why, when you have a datatable with datascroller inside label: the internal datascroller variables (pageIndex,...) don't refresh until you go to server. Thank you very much... 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: and datascroller
Thanks for the detailed information, I will try to reproduce the problem. Am I correctly asuming that the inputText you are referring to is some sort of a search string which shrinks the list of the datatable to matching entries? and i guess you are using something like onchange="submit(this);" for the inputText right? kind regards Ernst On 5/17/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: Let me explain, I have a paged datatable. I'm trying to refresh datalist trhough an inputText, when user insert some text (trigger) my datatable get refresh by ajax (). All work perfect, datalist get updated, datamodel seems to update new variables (pageIndex, rowsCount, ...) but when you click on last buttom (paginator) it drive you through last page from old search, ie: rows = 5 initial results ---> 25 / 5 = 5 pages. filter results > 15 / 5 = 3 pages. click last buttom --> you go to page 5 of 3 (15 results) Thanks for all!!! ----- Mensaje original De: Ernst Fastl <[EMAIL PROTECTED]> Para: MyFaces Discussion Enviado: martes, 15 de mayo, 2007 23:20:28 Asunto: Re: and datascroller Seems to work fine for me on: http://example.irian.at/example-sandbox-20070514/pprPanelGroupDataScroller.jsf what exactly do you mean? On 5/11/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > can anybody tell me why, when you have a datatable with datascroller inside > label: the internal > datascroller variables (pageIndex,...) don't refresh until you go to server. > > Thank you very much... > > > > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas.
Re: and datascroller
Hi glad to hear, that your table works. Regarding your question I fear I'll again need a little more information: which type of binding are you referring to? value binding ( value="#{var}" ) or component binding ( binding="'#{component}") which method is called twice? btw. since you seem to use a debbuger anyway - When you stop at a breakpoint and you don't know why the method is called, you can take a look at the stack up to the LifecycleImpl . There you can then see in which phase of the JSF request lifecycle you currently are. greez Ernst On 5/21/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: Don´t worry about the problem. It works!!! The solution was establish: preserveDataModel=false and sent binding values at inputText field in order to reset datascroller. There are two execution of methods (can you explain why is this happening? lifeCycle???). At first execution you recieve binding values, in this step you can reset datascroller internal variables (pageIndex, rowsCount, ...) depending from previous binding values Thanks for your interest Ernst. Only one thing, can you explain me why the two execution of methods when you go to server (Request - Response). Thank you very much!!! ----- Mensaje original De: Ernst Fastl <[EMAIL PROTECTED]> Para: MyFaces Discussion Enviado: sábado, 19 de mayo, 2007 15:52:11 Asunto: Re: and datascroller Thanks for the detailed information, I will try to reproduce the problem. Am I correctly asuming that the inputText you are referring to is some sort of a search string which shrinks the list of the datatable to matching entries? and i guess you are using something like onchange="submit(this);" for the inputText right? kind regards Ernst On 5/17/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: > > Let me explain, I have a paged datatable. I'm trying to refresh datalist > trhough an inputText, when user insert some text (trigger) my datatable get > refresh by ajax (). > > All work perfect, datalist get updated, datamodel seems to update new > variables (pageIndex, rowsCount, ...) but when you click on last buttom > (paginator) it drive you through last page from old search, ie: > > rows = 5 > initial results ---> 25 / 5 = 5 pages. > filter results > 15 / 5 = 3 pages. > click last buttom --> you go to page 5 of 3 (15 results) > > Thanks for all!!! > > - Mensaje original > De: Ernst Fastl <[EMAIL PROTECTED]> > Para: MyFaces Discussion > Enviado: martes, 15 de mayo, 2007 23:20:28 > Asunto: Re: and datascroller > > > > Seems to work fine for me on: > > http://example.irian.at/example-sandbox-20070514/pprPanelGroupDataScroller.jsf > > what exactly do you mean? > > On 5/11/07, Angel Miralles Arevalo <[EMAIL PROTECTED]> wrote: > > > > Hi everybody, > > > > can anybody tell me why, when you have a datatable with datascroller > inside > > label: the internal > > datascroller variables (pageIndex,...) don't refresh until you go to > server. > > > > Thank you very much... > > > > > > > > LLama Gratis a cualquier PC del Mundo. > > Llamadas a fijos y móviles desde 1 céntimo por minuto. > > http://es.voice.yahoo.com > > > > > ¡Descubre una nueva forma de obtener respuestas a tus preguntas! > Entra en Yahoo! Respuestas. > ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas.
Re: JavaScript oamSubmit rendered only if commandButton is in component tree
I fear at the moment you would have to put at least a dummy commandlink () in your page. Thats how I currently work around this problem. I would also appreciate to always have that function available. I think we should propose that on [EMAIL PROTECTED] you might be interested in following that thread. On 5/21/07, Sertic Mirko, Bedag <[EMAIL PROTECTED]> wrote: Hi there I've a question regarding the oamSubmit JavaScript command. Why is it only Rendered if a commandButton or a commandLink is in the current component tree? Ive a custom component that needs these JavaScript commands to work properly, so how can i enforce that the JavaScript commands are always rendered? Regards Mirko
Re: [COMMUNITY] Ernst Fastl - Committer
Thank you all for this warm welcome and all the support I got from you which enabled me to do this patches in the first place. I'm happy to be a part of this great community. kind regards Ernst On 5/29/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: Welcome Ernst! regards, Martin On 5/29/07, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Congrats Ernst, Welcome! > > Cagatay > > > On 5/29/07, Grant Smith <[EMAIL PROTECTED]> wrote: > > Welcome Ernst ! > > > > > > > > On 5/29/07, Mario Ivankovits <[EMAIL PROTECTED]> wrote: > > > Hi! > > > > Thanks Ernst, and welcome to the team! > > > Welcome on board! > > > > > > Ciao, > > > Mario > > > > > > > > > > > > > > -- > > Grant Smith > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: JSF and AJAX without custom components?
Hi, I can understand you don't like to write your own component for soving this problem (although seeing the stuff you posted I guess you are skilled enough for that). Anyway, have you tried the existing solutions like PPRPanelGroup from the tomahawk sandbox or Ajax4JSF? regards Ernst On 5/26/07, Stan Carney <[EMAIL PROTECTED]> wrote: Hello, I was wondering if anybody has had any success with JSF and AJAX outside of building custom components? We are fortunate to have a very talented UI developer with a strong knowledge of JQuery and Taconite and we would like to leverage his abilities as much as possible. We are using Facelets on top of MyFaces with JQuery and Taconite moderate success with the exception of forms due to JSF's state management facility. Based on all my reading of similar solutions I have come up with the following, not yet fully completed or working solution to the age old Country/Subdivision problem. i.e. when the user picks a country from a select box on a form the country subdivision select box (i.e. states, provinces, etc..) are retrieved via AJAX and inserted into the DOM. 1) Use JavaScript to find the value and submit the javax.faces.ViewState hidden form field along with the country code using a GET to the same URL as the viewId value in the embedded javax.faces.ViewState field. 2) Created a PhaseListener that runs after the RestoreView phase that detects the request is an Ajax call via configurable query string parameters. 3) PhaseListener finds the HtmlSelectOneMenu component for the country subdivision field by it's id, clears existing children and updates the list with the new subdivisions. See code below: FacesContext facesContext = FacesContext.getCurrentInstance(); HtmlSelectOneMenu c = (HtmlSelectOneMenu) facesContext.getViewRoot().findComponent("form:country-subdivision"); List children = c.getChildren(); children.clear(); children.addAll(selectBoxUtils.convertSelectItemToUISelectItem(subdivisions)); 4) The new state is saved via the following code (based on similar examples and lots of debugging): SerializedView serializedview = facesContext.getApplication().getStateManager().saveSerializedView(facesContext); Object[] savedState = new Object[3]; Object treeStruct = serializedview.getStructure(); if (treeStruct != null) { if (treeStruct instanceof String) { savedState[0] = treeStruct; } } savedState[2] = facesContext.getViewRoot().getViewId(); String viewState = StateUtils.construct(savedState, facesContext.getExternalContext()); 5) The javax.faces.ViewState field (viewState from above code) is returned in an XML response and inserted into the DOM via taconite. 6) The PhaseListener then marks the response as complete. Unfortunately it isn't working 100% because I think I'm not updating the state properly somewhere. Either that or not returning the correct sequence number or not getting it into the StateManager correctly. But before I proceed any further I wanted to solicit advice from others that have done this before. Thoughts? Thanks, Stan
Re: JSF and AJAX without custom components?
Hi Stan, Thank you for the insights to your solution. It sounds very interesting indeed. Hope we'll hear again from you on the list. kind regards Ernst On 6/5/07, Stan Carney <[EMAIL PROTECTED]> wrote: Thanks for your response Ernst! Yeah, I have looked around at pretty much every JSF AJAX framework out there and it isn't that I'm not impressed. There are definitely some smart people working to create generic components to be consumed by the masses. In our current position though I don't think these frameworks make a lot of sense for us to use. We have an extremely strong UI developer and we just want to be able to expose his talents, and in our current circumstance having to use pre-built AJAX components or having to create our own would severely hamper his abilities. So anyway I have solved my problem via the following process. It allows us to interact with JSF, i.e. forms, via AJAX without having to write components. It has some significant short comings if it was going to be used for general consumption by the JSF community (i.e. lacking configuration, you can shoot your foot off easily, etc...) but works for us. So keeping with good list etiquette I'm posting my solution below for those, if any, that get a hit on my initial question. I have created a PhaseListener that runs after the RESTORE_VIEW phase and checks for the presence of a known parameter. Every parameter on every request is checked which I'm not a fan of but from what I have seen most other JSF/AJAX solutions do the same and it appears to run super fast. If a 'known' parameter exists the PhaseListener instantiates the class associated with the parameter for processing. In my case all of these 'processor' classes implement a simple interface with one method, process(), that takes a CaseInsensitiveMap as an argument. This map contains the map returned value from the getParameterMap() method on HttpServletRequest: HttpServletRequest req = (HttpServletRequest) event.getFacesContext().getExternalContext().getRequest(); CaseInsensitiveMap map = new CaseInsensitiveMap(); map.putAll(req.getParameterMap()); The process() method then does what it needs to do. Typically finding components by their ids in the restored view, that are either known by the class or sent as parameters, and updating their values accordingly. Then the class composes an XML document that our client side JavaScript (taconite and/or JQuery) understands and returns this XML string. The PhaseListener then determines if the returned string contains a javax.faces.ViewState placeholder we came up with and substitutes the placeholder with the new ViewState value generated below. If there is no placeholder, i.e. not interacting with a JSF form, we can omit the updating of the ViewState value. In that case though we typically do straight HTTP and bypass JSF completely. try { UIViewRoot viewRoot = context.getViewRoot(); StateManager stateMgr = context.getApplication().getStateManager(); ComponentSupport.removeTransient(viewRoot); SerializedView serializedView = stateMgr.saveSerializedView(context); Object[] savedState = new Object[3]; Object treeStruct = serializedView.getStructure(); if (treeStruct != null) { if (treeStruct instanceof String) { savedState[0] = treeStruct; } } savedState[2] = viewRoot.getViewId(); String viewState = StateUtils.construct(savedState, context.getExternalContext()); return viewState; } catch (Exception e) { throw new RuntimeException(e); } The PhaseListener writes out the string to the response stream and marks the response as complete. The client JavaScript interprets the XML and updates the DOM. The DOM should now match the DOM stored on the server. It works well for us and results in the creation of only one class, after the initial PhaseListener creation, per Ajaxable event. The above code does tinker with the internal workings of MyFaces which may/will cause us issues on an upgrade. I haven't tested it for thread-safety yet but everything I have seen with other frameworks leads me to believe all is well. Thanks, Stan Ernst Fastl wrote: > Hi, > > I can understand you don't like to write your own component for > soving this problem (although seeing the stuff you posted I guess > you are skilled enough for that). > > Anyway, have you tried the > existing solutions like PPRPanelGroup from the tomahawk sandbox > or Ajax4JSF? > > regards > > Ernst
Re: pprPanelGroup ajax-request error
Hi, When an error occurs during processing a PPR request the PPR engine submits the form in order to enable the application to show a proper error page. Have you checked your server log for any exceptions which occur during the partial requests? regards Ernst On 6/25/07, samju <[EMAIL PROTECTED]> wrote: i got this:An unexpected error occured during an ajax-request page has been fully submitted! i am using IE and Shale. ... what realy happen: when navigate to the blaa.jsp the ajax-request is working for the given periodicalUpdate="5000" and the result of it is the Error above.(the error appear periodicaly!! ) 1.so what to do? 2.where had the page been fully submitted? Sam -- View this message in context: http://www.nabble.com/pprPanelGroup-ajax-request-error-tf3976160.html#a11286738 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: pprPanelGroup ajax-request error
There have been some issues with PPR in combination with datatables lately. Try using the latest nightly build of the sandbox 1.1.6. available on: http://people.apache.org/builds/myfaces/nightly/ It would also be good to put log4j.logger.org.apache.myfaces=DEBUG in your log4jconfig to see what really happened. Alternativly you can also attach the sources which are also available under the address above and step through the PPRPhaseListener in the Debugger to find out on your own best wishes Ernst On 6/26/07, samju <[EMAIL PROTECTED]> wrote: Hi, no log file anymore:-) i will try to reconstruct the error and take a look on it and report back! i think the Error is to be due to misconfiguration that i done. i am missing something that ppr engine needs to work properly. 1.is it necessary to use the dataTable *Value* to comminucate with the ppr Engine? 2.which steps have i to follow for using the ppr? 3.which jars version (tomhw, sandb,myFacs )? regards, Sam Ernst Fastl wrote: > > Hi, > > When an error occurs during processing a PPR request the PPR engine > submits the form in order to enable the application to show a proper > error page. > > Have you checked your server log for any exceptions which occur > during the partial requests? > > regards > > Ernst > > On 6/25/07, samju <[EMAIL PROTECTED]> wrote: >> >> i got this:An unexpected error occured during an ajax-request page has >> been >> fully submitted! >> >> i am using IE and Shale. >> >> > preserveDataModel="false" renderedIfEmpty="false" rowId="#{result.id}" >> binding="#{Sworker.doworkonID}" > >> ... >> >> >> what realy happen: when navigate to the blaa.jsp the ajax-request is >> working >> for the given periodicalUpdate="5000" and the result of it is the Error >> above.(the error appear periodicaly!! ) >> >> 1.so what to do? >> 2.where had the page been fully submitted? >> >> Sam >> -- >> View this message in context: >> http://www.nabble.com/pprPanelGroup-ajax-request-error-tf3976160.html#a11286738 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/pprPanelGroup-ajax-request-error-tf3976160.html#a11296647 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: how to stop Ajax poll call through java script
Looks as if the form with the search criteria was not submitted at all. Are your search inputs within the same as the dataTable and dataScroller ? On 7/13/07, ayan <[EMAIL PROTECTED]> wrote: What about my dataScroller problem??? anybody who knows how to get around with it? Is there any other way to solve it other than extending from the dataScroller renderer? -- View this message in context: http://www.nabble.com/How-to-send-parameters-when-navigating-a-list-using-t%3AdataScroller-tf4066575.html#a11571964 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Tomahawk Sandbox
Try using tomahawk 1.1.7 as well. If the problem still occurs increase the log-level of the org.apache.myfaces package in your logging configuration to debug and check for messages that resources could not be served or found. regards Ernst On 8/10/07, Lyn Büsching <[EMAIL PROTECTED]> wrote: > Hi, > > i'm new on faces and have some problmes with Tomahawk/Sandbox, using > Ajax support. > > The aim is to create a page, where only a part of this page should be > rendered after the input. > > > The code of the side: > > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%> > <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%> > <%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%> > <%@ taglib uri="http://myfaces.apache.org/sandbox"; prefix="s"%> > > "http://www.w3.org/TR/html4/loose.dtd";> > > > > Insert title here > > > > Ergebnis der Flächenberechnung > Dieses Programm berechnet die Fläche eines Quadrats anhand der > eingegebenen Seitenlänge > > > Ergebnis der Berechnung: > Ihre Eingabe war: > > > > damit ist der Flächeninhalt: > > > > > > Eingabe: > > action="success"> > > > > Aktuelle Systemzeit: > > > > > > > Unfortunately the Ajax support does not work. The side is new generated > every time. There are no error messages in Tomcat, only the Firebug > (Firefox 1.5 as well as 2.0) shows the JavaScript Error: > 'dojo is not defined'. > > I'm using MyFaces 1.1.5, Tomahawk 1.1.5, Tomahawk-Sandbox 1.1.7, Apache > Pluto 1.1.3 with and Apache Portlet Bridge for JSF in Tomcat 5.5.20. > > Can any one tell me how to resolve this error? > > Thanks!!! > > Lyn > > > -- > Lyn Büsching > > l a t / l o n GmbH > Aennchenstrasse 1953177 Bonn, Germany > phone ++49 +228 18496-0 fax ++49 +228 18496-29 > http://www.lat-lon.de http://www.deegree.org >
Re: t:pprPanelGroup
Hi Michal, Sounds lilke a good workaround to me. We are currently working on JavaScript execution within PPR regions. Once that is solved we will address the issue you have. I hope we will be able to do so before the next release. best wishes Ernst On 8/14/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote: > As a workaround I always render button2, but set it's inline style to > 'display: block' or 'display: none'. > > On 14/08/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote: > > I have a button1 and button2 inside pprPanelGroup. button1 is always > > visible and visibility of button2 is toggled by button1. > > > > I want button2 to be also capable of doing partial rendering. After > > pressing button1 the button2 gets rendered, but the scripts for PPR > > don;'t get called for it, thus pressing button2 will cause full page > > submit. Is there any workaround for this? > > > > regards, > > michał > > > > -- > > Michał Stawicki > > > > [EMAIL PROTECTED] > > http://stawicki.jasliska.pl > > > > > -- > Michał Stawicki > > [EMAIL PROTECTED] > http://stawicki.jasliska.pl >
Re: t:pprPanelGroup
Hi again, I commited a fix for the encoding issue recently. Try if the problem still occurs with the current nightly builds. regards Ernst On 8/17/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote: > Good to hear that. > > BTW: did you see my post regarding pprPanelGroup breaking posting of > UTF8 encoded text? > > regards, > michał > > On 15/08/07, Ernst Fastl <[EMAIL PROTECTED]> wrote: > > Hi Michal, > > > > Sounds lilke a good workaround to me. We are currently working > > on JavaScript execution within PPR regions. Once that is solved > > we will address the issue you have. I hope we will be able to > > do so before the next release. > > > > best wishes > > > > Ernst > > > > On 8/14/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote: > > > As a workaround I always render button2, but set it's inline style to > > > 'display: block' or 'display: none'. > > > > > > On 14/08/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote: > > > > I have a button1 and button2 inside pprPanelGroup. button1 is always > > > > visible and visibility of button2 is toggled by button1. > > > > > > > > I want button2 to be also capable of doing partial rendering. After > > > > pressing button1 the button2 gets rendered, but the scripts for PPR > > > > don;'t get called for it, thus pressing button2 will cause full page > > > > submit. Is there any workaround for this? > > > > > > > > regards, > > > > michał > > > > > > > > -- > > > > Michał Stawicki > > > > > > > > [EMAIL PROTECTED] > > > > http://stawicki.jasliska.pl > > > > > > > > > > > > > -- > > > Michał Stawicki > > > > > > [EMAIL PROTECTED] > > > http://stawicki.jasliska.pl > > > > > > > > -- > Michał Stawicki > > [EMAIL PROTECTED] > http://stawicki.jasliska.pl >
Re: help, with ppr and multiple selectonemenu nested
Generally your code looks fine as far as I can see. 2 questions 1) is the third panelGroup rendered from the beginning? 2) which version of the tomahawk-sandbox are you using? kind regards Ernst On 9/26/07, alvaro tovar <[EMAIL PROTECTED]> wrote: > hi all, i can't make this, if some one have a example ,please tell me. > > this is mi code: > > onchange="submit(this);"> > > > > > onchange="submit(this);"> > > > > > > > > > > onchange="submit(this);"> > > > > > > > if only i have 2 selectonemenu run ok. but whith 3 not. > >
Re: pprPanelGroup - can it submit only a single form element?
Hello Tara, Currently the pprPanelGroup only supports full form submissions. Using a datascroller to only show for instance 10 rows per page should help to speed up the process. I don't know if thats possible in your case. If you need to display all the rows at once you could update both totals using plain JavaScript. On most clients that should be faster than any AJAX solution since its just some basic math compared to XMLHTTP request response. hope this helps best wishes Ernst On 10/24/07, Tara Peltier <[EMAIL PROTECTED]> wrote: > > I have a datatable where each cell is an inputText component. The dataTable > needs to have totals for each row and for each column. The totals need to > be updated as the user enters numbers in the dataTable. > > pprPanelGroup works great -- I put a pprPanelGroup around each total, and it > listens for the appropriate events. > > But ... each time the pprPanelGroup detects an event, it submits the entire > form -- all of the cells in the dataTable, not just the single cell whose > value changed. This gets pretty slow when there's 70+ cells in the > dataTable. > > In ajax4jsf, there's the concept of ajaxSingle=true, where only a single > form element is submitted. Is there anything similar in pprPanelGroup? > > I'm also open to better suggestions on how to accomplish row & column totals > on a datatable. > > Thanks in advance, > Tara Peltier > -- > View this message in context: > http://www.nabble.com/pprPanelGroup---can-it-submit-only-a-single-form-element--tf4685216.html#a13388802 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >
Re: JSF dropdown results in Out Of Memory
Try adding for instance -Xmx 1024 to your Servlet container Java startup options in order to allow your JVM to allocate more memory. btw. do you really have 14.000 entries in one dropdown? could you use a pageable datatable instead and fetch only parts of those 14.000 at a time? cheers Ernst On 10/25/07, bansi <[EMAIL PROTECTED]> wrote: > > Hi Andrew > > I have an situation, where the dropdown on JSF page gets populated with > 14,171 records from database using Hibernate Named Query. > > Accessing the page very first time works well & the dropdown gets populated > > > > Subsequent accessing the page calls JSF action method reset , which reset > the dropdown i.e. addrBlkSelectItems = null so that it gets populated fresh > from the database. But it results in > > java.lang.OutOfMemoryError: Java heap space > > > > Not sure what i am doing wrong > > > Any pointers/suggestions will be highly appreciated > > > > Regards > > Bansi > > -- > View this message in context: > http://www.nabble.com/JSF-dropdown-results-in-Out-Of-Memory-tf4693846.html#a13416630 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >
Re: Question about creating a dropdown list with dynamic values
You could write a method: List retval = new ArrayList(); for(A a:list) retval.add(new SelectItem(a.getAttr1() + a.getAttr2() ) ) return retval; and use this as value for a selecItems-component hope that helps Ernst On 10/31/06, ying lcs <[EMAIL PROTECTED]> wrote: i have a list of object , A. And object A has 2 string attributes: attr1, attr2. How can i create a dropdown select list by combining the string of attr1 and string of attr2? i.e. I want to create a select value option of [attr1, attr2] // for each A in the list of A. Thank you for any help.
Re: Anyone used and ?
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 and 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 or tag: > > > > > > > id="ofamMainForm:ppr2">
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: Custom scrollable data table component?
Sounds cool. You may be able to utilize the drag&drop support from the dojo-toolkit. are you planning to open-source that table? kind regards Ernst On Thu, Mar 20, 2008 at 4:20 AM, Hoc Nguyen Thanh <[EMAIL PROTECTED]> wrote: > Hi all, > > My customer needs a scrollable data table which is configurable: the > column list and all information about columns are not known at the > design time, this information is loaded at runtime (information such as > column caption, width, position, visibility, etc). Further more, my > customer also wants to drag and drop to change column position. > > I intend to write a component which takes configuration information and > data then, it will display table, no column definition in the .xthml > page: > >configInfo="#bean.configInfo"> > > > Please share with me your thought about this. > > Regards, > Hoc > >
Re: iframe and saveState
Be aware that t:saveState also does no "magic" to not use memory for things you store there. Generally you have 2 types of state saving in JSF: server-side and client-side. server-side saves the state in the HTTP Session of the user, client-side serializes and encodes the state and sends it back to the client in an hidden input field. For a list of uploaded file data I would NOT recommend client side state saving because it would always sent the complete list of files to the client and back again (lots of bandwith and cpu power required). If you have that much memory concerns on your server that you cannot use the HTTP Session to store the uploaded files temporarily then do not use t:saveState for the file data (because it likely does exactly that - check your web.xml). In this case you maybe want to save the files directly to disk in a temporary folder and store only the file-names and size in the backing bean (to still be able to show the list of attachments before they are saved). A nightly cron job could delete all files in the temporary folder which are older than a day or so. hope this helps Ernst On Fri, Mar 28, 2008 at 12:15 PM, Piotr <[EMAIL PROTECTED]> wrote: > > Hi, > > any suggestions please. I'm really facing a big problem with this. > > > I thought that maybe while being in the "mainPage" view > I could try to retrieve value of "t:saveState" component from "iframe" view > but can't figure out how to implement this exactly. > > Any help would be appreciated. > > > > > > Piotr wrote: > > > > Hi users, > > > > I'm trying to do file upload functionality kind of similar to gmail one. > > I thought that it could be done using iframe and saveState from tomahawk > > but I'm facing some problems. > > > > In my page main page I have nested iframe component: > > ... > > > > > > .. some input fields etc. > > > > > > > width="90%" height="60" > > > > > > > > > > > > > ... > > > > > > page nested in the iframe: > > ... > > > value="#{someBean.uploadedAttachements}"/> > > > > ...some data table to display uploaded files > > > > > > > > > storage="file" accept="*/*" required="true" size="30"/> > > > > > > > > > > > > Now the issue is that when I upload the files, with the iframe nested > > page, > > they are stored between request with "saveState" tag as they should, > > I can see them listed in the data table. > > The problem is that when I try to save the whole item (some input fields > > and > > uploaded attachment files), with previously uploaded attachments, > > using the form in my main page (the one in which iframe is nested) the > > uploaded attachments collection is empty. > > Placing in the main page doesn't change > > situation. > > Is there a way to keep state of some variable between requests generated > > from iframe and my main page? > > Maybe I'm following wrong way to do this upload, do you have any other > > proposals? > > > > Please note that I don't want to store anything in session scope. > > > > > > Thanks in advance. > > Piotr > > > > > > -- > View this message in context: > http://www.nabble.com/iframe-and-saveState-tp15981711p16349005.html > > > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >
Re: PPR and regilar HTML
the problem here is that html as well as f:verbatim results in transient compoents which are not available after restore view anymore. In the facelets 1.1.14 there is a parameter to enable build of the tree before restore: facelets.BUILD_BEFORE_RESTORE true with that parameter it works in my case cheers Ernst On 5/20/08, Werner Punz <[EMAIL PROTECTED]> wrote: > Guy Bashan schrieb: >> Thanks Warner, >> This is quite a big limitation ... ;-) >> Do you know if ajax4jsf solves this issue? >> > They do it on the servlet filter level by cutting and altering the html > code... > > Tomahawk ppr does it on the component tree level to my knowledge. > Don´t know how Trinidad does it, but I assume they do it on the Tree > level as well. > > One way or the other you have to intercept to get such mechanisms in place. > >
Re: PPR and regilar HTML
I forgot to mention - if you want to use facelets.BUILD_BEFORE_RESTORE you currently have to be aware of 2 things: 1. there is a bug in facelets which breaks state-saving when this param is on you can work around that by either patching facelets or using a custom state manager 2. you cannot modify the component tree manually since it breaks state saving in this case regards Ernst On 5/20/08, Ernst Fastl <[EMAIL PROTECTED]> wrote: > the problem here is that html as well as f:verbatim results in transient > compoents which are not available after restore view anymore. > In the facelets 1.1.14 there is a parameter to enable build of the > tree before restore: > > > facelets.BUILD_BEFORE_RESTORE > true > > > with that parameter it works in my case > > cheers > > Ernst > > > > On 5/20/08, Werner Punz <[EMAIL PROTECTED]> wrote: >> Guy Bashan schrieb: >>> Thanks Warner, >>> This is quite a big limitation ... ;-) >>> Do you know if ajax4jsf solves this issue? >>> >> They do it on the servlet filter level by cutting and altering the html >> code... >> >> Tomahawk ppr does it on the component tree level to my knowledge. >> Don´t know how Trinidad does it, but I assume they do it on the Tree >> level as well. >> >> One way or the other you have to intercept to get such mechanisms in >> place. >> >> >
[ORCHESTRA] How to set ConversationContext timeout
Hi there! We are using myfaces-orchestra-core 1.1 and have troubles with the default ConversationContext timeout of 30 min. We would like the conversationContexts to timeout with the HTTP Session (meaning a value of -1 right ?) The ConversationScope supports a timeout property for individual conversations but not for the ConversationContext. Is there a similar property somewhere for the ConversationContext timeout so it could be configured in the spring configuration? If not - what would be the best place to set this property on the ConversationContext? kind regards Ernst
Re: [MyFaces][Tomahwak][Sandbox]
Yes, if two different pprPanelGroups trigger on the same input-element both of them are refreshed with one AJAX request. On 8/21/08, Guy Bashan <[EMAIL PROTECTED]> wrote: > Hi, > > > > I think I have already asked this question, but got no replay: > > Is there a way autorefreshing 2 differen regions using PPR in a single > request (rather than 2.) > > > > Thanks, > > Guy. > >
Re: [MyFaces][Tomahwak][Sandbox]
Sorry for the misunderstanding I thought you ment to use partialTrigger. For periodicalUpdate what you want is unfortunatly not supported yet. We would have to detect on the server side if two pprPanelGroups have the same periodical update time and act accordingly ... As a workaround you could specify partialTriggers to a commandButton with no action and style="display:none" and write a small javascript-function which clicks this button every 5 seconds. This way you have only one AJAX request every 5 seconds. hope that helps cheers Ernst On 8/21/08, Guy Bashan <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry to bug on this issue, but I am trying to understand it correctly. What > do you mean by: "trigger on the same input-element"? There are no input > elements here. Just 2 PPR regions triggered in "periodicalUpdate" mode. > > For example: > periodicalUpdate="5000">. > periodicalUpdate="5000">. > > Thanks, > Guy. > > -Original Message- > From: Ernst Fastl [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 21, 2008 10:14 PM > To: MyFaces Discussion > Subject: Re: [MyFaces][Tomahwak][Sandbox] > > Yes, if two different pprPanelGroups trigger on the same input-element > both of them are refreshed with one AJAX request. > > On 8/21/08, Guy Bashan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> >> >> I think I have already asked this question, but got no replay: >> >> Is there a way autorefreshing 2 differen regions using PPR in a single >> request (rather than 2.) >> >> >> >> Thanks, >> >> Guy. >> >> > >