Re: Invalid XHTML is outputted by h:form, multiple elements with id=javax.faces.ViewState
Use server side state saving? :) En l'instant précis du 11/11/07 20:27, dabiddd s'exprimait en ces termes: Hello, Anybody knows how can i solve this problem? if rendering multiple forms in the same view, and attempting to validate via the W3C validator, there will be warnings regarding duplicate IDs (javax.faces.ViewState). Thanks, :-) -- http://www.devlog.be (a belgian developer's logs)
Re: Re: [Trinidad]Why does body-contents(of PPR response) break off on the way that responce is wrote, without '/content'?
Thanks Matthias, but I checked that the phenomenon same as Trinidad1.2.3 occurred...Of course, it is debugging. Although I investigated and understand, endDocument 'is' called on the PPRResp onsewriter by org.apache.myfaces.application.jsp.JspViewHandlerImpl. renderView on the JspViewHandlerImpl is processing in following order. Step1)[start] Step2)stateAwareWriter.flushToWriter(response.getWriter()); Step3)newResponseWriter.endDocument(); Step4)response.flushBuffer(); Step5)[finish] FlushToWriter on the stateAwareWriter(step2) takes charge of the output of a r esponse. I think that it may be the cause to have not outputted the response henceforth [Step3]. When replacing Step 2 and Step 3, contenttag was closed correctly and went w ell. However, I think that I want to solve this problem, without changing MyFaces i mplementation. Please give me good solution or hints... Thanks in advance. - Original Message - Date: Fri, 9 Nov 2007 16:51:02 +0100 From: Matthias Wessendorf [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Subject: Re: [Trinidad]Why does body-contents(of PPR response) break off on t he way that responce is wrote, without '/content'? script and endElement (content) is missing... Looks like endDocument isn't called on the PPRResponsewriter. Tried -Myfaces 1.2.1-SNAP ? -Trinidad 1.2.3 `? -M On Nov 9, 2007 7:14 AM, [EMAIL PROTECTED] wrote: Hi all, I use MyFaces1.2.0 and Trinidad1.2.2 with Tomcat6.0. I built environment like 'http://www.irian.at/trinidad-demo/faces/component s/t able.jspx'. but, error message displayed 'Invalid PPR response.' when I changed the ran ge by the range navigation feature. so, I investigated the response.My response had a difference in respect of the following compared with the normal response. *** my response *** ?xml version=1.0 ? ?Tr-XHR-Response-Type ? content action=/trinidad-demo-1.2.2/faces/components/table.jspx fragment ... /fragment *** normal response (by irian's demo) *** ?xml version=1.0 ? ?Tr-XHR-Response-Type ? content action=/trinidad-demo/faces/components/table.jspx fragment ... /fragment script ![CDATA[function _navSubmit(formName, event, id, vld, val){return ... /script /content Why does body-contents(of PPR response) break off on the way that responce is wrote, without '/content'? Thanks in advance. --PR [EMAIL PROTECTED] http://nifmail.jp --PR 麻雀牌や全自動卓を細部まで描き込んだ、リアルな画面のオンライン麻雀ゲーム! http://navi.nifty.com/nifmail/654571b5/
[Trinidad] PanelPage Facets are not displaying
Greetings everyone! I am including the following facets however their contents are not being displayed. I am using Trinidad 1.2.3. Any help is greatly appreciated. !-- Does not appear to be working -- f:facet name=contextGlobal tr:outputFormatted styleUsage=instruction value=Context Global facet/ /f:facet !-- Does not appear to be working -- f:facet name=contextLocal tr:outputFormatted styleUsage=instruction value=Context Local facet/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar1 tr:outputFormatted styleUsage=instruction value=Toolbar 1/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar2 tr:outputFormatted styleUsage=instruction value=Toolbar 2/ /f:facet Curtney
fileupload
Hi, I found this https://issues.apache.org/jira/browse/TOMAHAWK-6 so, I got the tomahawk-1.1.7-SNAPSHOT.jar from http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk/1.1.7-SNAPSHOT/ but I still have the same problem, when my file is too long I get the fileupload exception but I can't show error message using h:message -- Jestes swiadkiem waznego, niecodziennego wydarzenia? Daj nam znac! Wyslij sms/mms na numer 605 24 24 24 http://www.alert24.pl --- Wiadomość została wysłana z serwisu bezpłatnych kont pocztowych portalu Gazeta.pl. Agora SA nie odpowiada za sposób wykorzystywania tych kont przez użytkowników.
Re: [Tobago] Weird problem with tc:link inside tc:sheet
Hi Ramon, sorry, I think I can't help you because I don't really understand what you're doing. Getting and setting request or session attributes seems very strange to me. Why don't you use managed properties in the faces-config to connect one bean with an other? Where does the requestScope.docList comes from? Maybe you should use a session scoped bean to store session scoped data. But I can give you a tip for the param problem. There's a much simplier way to get the data row of the link clicked. When you have a binding to the sheet in your controller then you can get the row clicked in the link action with sheetBinding.getRowData(). Have you had a look at the Tobago adressbook example? Maybe you can get some help from this. Regards Helmut - Original Message - From: Ramon Ziai [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, November 09, 2007 9:27 PM Subject: Re: [Tobago] Weird problem with tc:link inside tc:sheet Hi Helmut, ok, now the id makes sense to me, thanks for explaining. Please find attached my faces-config.xml, the page (browse.jsp) and the relevant controller (BrowseController.java). The code for getting at the link parameter doesn't quite work yet but as that is not the primary problem I did not put much effort into fixing it yet. Thanks in advance, Ramon Am Donnerstag, den 08.11.2007, 12:46 +0100 schrieb Helmut Swaczinna: Hi Ramon, some words to the id of the link: The 0 is the number of the row in the sheet. Because a panel is no naming container it's id is not part of the concatenated id. Moving the link from one column to another has no effect to the id of the link. The column id is not part of the concatenated id. The server identifies the action associated with the link by the id of the link. If you have the same link in more than one column the ids of the links must be different. So there's no problem with the id. To locate the problem we should have a look at the sources. Can you post the complete page, the faces-config and the related snipplets from you java source? Regards Helmut - Original Message - From: Ramon Ziai [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, November 07, 2007 8:22 PM Subject: Re: [Tobago] Weird problem with tc:link inside tc:sheet
How know witch data in changed
Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: How know witch data in changed
Why don't you use valueChangeListener ? 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario -- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: How know witch data in changed
hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario -- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: How know witch data in changed
Hi, A phaselistener may work here, in after phase of restore view, traverse the component tree, if the component is an editablevalueholder, cast the component to editablevalueholder and add the valuechangelistener by addValueChangeListener or setValueChangeListener. A valuechangelistener implementation needs a processValueChange method or it can be a method binding, in your case the first option is a better alternative See editableValueHolder for more info. Cheers, Cagatay Civici [EMAIL PROTECTED] ps3 network id : facescontext On Nov 12, 2007 3:06 PM, [EMAIL PROTECTED] wrote: Is there a way to set the same ValueChangeListener to all component of all view without specific code in the page? I don't want leave my programmers manage the logic to know witch component is changed, because I need to managed this kind of problem in the framework code. Any suggestions? Thanks, M. From: Gerhard Petracek [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 13.34 To: MyFaces Discussion Subject: Re: How know witch data in changed hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How know witch data in changed
Hi Cheers, but if a componenet already has a ValueChangeListener setted by the programmer for other reasons? The new ValueChangeListener si added or replace existings? Thank, Mario -Original Message- From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 14.50 To: MyFaces Discussion Subject: Re: How know witch data in changed Hi, A phaselistener may work here, in after phase of restore view, traverse the component tree, if the component is an editablevalueholder, cast the component to editablevalueholder and add the valuechangelistener by addValueChangeListener or setValueChangeListener. A valuechangelistener implementation needs a processValueChange method or it can be a method binding, in your case the first option is a better alternative See editableValueHolder for more info. Cheers, Cagatay Civici [EMAIL PROTECTED] ps3 network id : facescontext On Nov 12, 2007 3:06 PM, [EMAIL PROTECTED] wrote: Is there a way to set the same ValueChangeListener to all component of all view without specific code in the page? I don't want leave my programmers manage the logic to know witch component is changed, because I need to managed this kind of problem in the framework code. Any suggestions? Thanks, M. From: Gerhard Petracek [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 13.34 To: MyFaces Discussion Subject: Re: How know witch data in changed hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Trinidad]: multiline table rows tr:table with nested tr:column - Tags
Hi to all, as this is a must-have for our application, it would be great, if someone could investigate this topic. Aside from the example in the screenshot, colspan should also be handeled correctly. And each column should be sortable: For Example a structure like: header row 1: |Header 1.1 (colspan=2)|Header 1.2 (colspan=1)| header row 2: |Header 2.1 (colspan=1) |Header 2.2 (colspan=1)|Header 2.3 (colspan=1)| 1st data row 1: |Data 1.1 .|Data 1.2 .| 1st data row 2: |Data 2.1 ..|Data 2.2 .|Data 2.3 .| 2nd data row 1: |Data 1.1 .|Data 1.2 .| 2nd data row 2: |Data 2.1 ..|Data 2.2 .|Data 2.3 .| (...) As I am a newbie to JSF and Trinidad any help would be great. Thanks Harald ** Harald Kuhn AirPlus International Business Information Services Phone: +49 (0) 61 02 204-821 Fax: +49 (0) 61 02 204-139 E-Mail: [EMAIL PROTECTED] Internet: http://www.airplus.com/ www.airplus.com ** Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 Neu-Isenburg · Deutschland · Geschäftsführer: Patrick W. Diemer (Vorsitz), Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: Amtsgericht Offenbach/Main, HRB 8119 -Original Message- From: Kuhn, Harald [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 1:05 PM To: MyFaces Discussion Subject: [Trinidad]: multiline table rows tr:table with nested tr:column - Tags Hi, we are trying build a table, where each logical row (from the Backing bean) is displayed as 2 rows in HTML output. So the result should look similar to this image (from our struts-application, we want to migrate to JSF): Picture (Device Independent Bitmap) What I tried to to is to use a tr:table + nested tr:column - Tags i.e. tr:document xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; title=Multiline Table tr:form tr:table value=#{dynamicTable.data} var=tableRow varStatus=tableStatus rowBandingInterval=1 rows=3 noWrap=true sortable=true tr:column sortable=true noWrap=true sortProperty=kategorie defaultSortOrder=ascending f:facet name=header tr:outputText value=1. and 2. column (sort= Kategorie) / /f:facet tr:column sortable=true noWrap=true sortProperty=kategorie defaultSortOrder=ascending f:facet name=header kategorie /f:facet tr:outputText value=#{tableRow['kategorie']} / /tr:column tr:column sortable=true noWrap=true sortProperty=transaktionen defaultSortOrder=ascending f:facet name=header transaktionen /f:facet tr:outputText value=#{tableRow['transaktionen']} / /tr:column tr:outputText value=#{tableRow['kategorie']} / /tr:column tr:column sortable=true noWrap=true sortProperty=transaktionen defaultSortOrder=ascending f:facet name=header tr:outputText value=3. Spalte (sort = transaktionen) / /f:facet tr:column sortable=true noWrap=true sortProperty=betragCompanyAccount defaultSortOrder=ascending f:facet name=header Betrag CA /f:facet tr:outputText value=#{tableRow['betragCompanyAccount']} / /tr:column tr:outputText value=#{tableRow['transaktionen']} / /tr:column /tr:table /tr:form /tr:document #{dynamicTable.data} returns just a list of Beans (public final ListAirlineBean getData()) Unfortunatly, only the header -facets are rendered as I would expect. But, the data rows not. The output (after the first paging request) in different browsers look as followed: FF 2.0: Picture (Device Independent Bitmap) IE7: Picture (Device Independent Bitmap) Logging says: 2007-10-29 13:00:26,906 WARN
Re: How know witch data in changed
Hi, From the docs; addValueChangeListener(javax.faces.event.ValueChangeListener listener) Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. In addition check if the listener is not already added to the listeners list before using this. Cagatay On Nov 12, 2007 4:10 PM, [EMAIL PROTECTED] wrote: Hi Cheers, but if a componenet already has a ValueChangeListener setted by the programmer for other reasons? The new ValueChangeListener si added or replace existings? Thank, Mario -Original Message- From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 14.50 To: MyFaces Discussion Subject: Re: How know witch data in changed Hi, A phaselistener may work here, in after phase of restore view, traverse the component tree, if the component is an editablevalueholder, cast the component to editablevalueholder and add the valuechangelistener by addValueChangeListener or setValueChangeListener. A valuechangelistener implementation needs a processValueChange method or it can be a method binding, in your case the first option is a better alternative See editableValueHolder for more info. Cheers, Cagatay Civici [EMAIL PROTECTED] ps3 network id : facescontext On Nov 12, 2007 3:06 PM, [EMAIL PROTECTED] wrote: Is there a way to set the same ValueChangeListener to all component of all view without specific code in the page? I don't want leave my programmers manage the logic to know witch component is changed, because I need to managed this kind of problem in the framework code. Any suggestions? Thanks, M. From: Gerhard Petracek [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 13.34 To: MyFaces Discussion Subject: Re: How know witch data in changed hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Trinidad]: multiline table rows tr:table with nested tr:column - Tags
Hi Harald, I don't know anything about the tr:table component, but I know that neither the standard h:dataTable nor the tomahawk t:dataTable will support this. They are strictly one row per object. In a case like this where you need such strict layout control, I would suggest you investigate using tomahawk's t:dataList (or the trinidad equivalent). You would need to explicitly add html tags to output the table header, footer, and column definitions, because t:dataList doesn't handle that as the table components do. However you can then use t:dataList to loop over your list of objects outputting whatever you want for each object (including multiple TR tags). It's not as elegant, but gives more control. Are the contents of the table read-only? Hopefully so. The table components do make significant effort to make sure that input components work fine within rows of a table; not sure what t:dataList does in this case. If you do have input components in there, then at the least you should probably wrap the t:dataList in an f:subview tag to minimise problems with component id conflicts. Regards, Simon Kuhn schrieb: Hi to all, as this is a must-have for our application, it would be great, if someone could investigate this topic. Aside from the example in the screenshot, colspan should also be handeled correctly. And each column should be sortable: For Example a structure like: header row 1: |Header 1.1 (colspan=2)|Header 1.2 (colspan=1)| header row 2: |Header 2.1 (colspan=1) |Header 2.2 (colspan=1)|Header 2.3 (colspan=1)| 1st data row 1: |Data 1.1 .|Data 1.2 .| 1st data row 2: |Data 2.1 ..|Data 2.2 .|Data 2.3 .| 2nd data row 1: |Data 1.1 .|Data 1.2 .| 2nd data row 2: |Data 2.1 ..|Data 2.2 .|Data 2.3 .| (...) As I am a newbie to JSF and Trinidad any help would be great. Thanks Harald ** Harald Kuhn AirPlus International Business Information Services Phone: +49 (0) 61 02 204-821 Fax: +49 (0) 61 02 204-139 E-Mail: [EMAIL PROTECTED] Internet: http://www.airplus.com/ www.airplus.com ** Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 Neu-Isenburg · Deutschland · Geschäftsführer: Patrick W. Diemer (Vorsitz), Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: Amtsgericht Offenbach/Main, HRB 8119 -Original Message- From: Kuhn, Harald [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 1:05 PM To: MyFaces Discussion Subject: [Trinidad]: multiline table rows tr:table with nested tr:column - Tags Hi, we are trying build a table, where each logical row (from the Backing bean) is displayed as 2 rows in HTML output. So the result should look similar to this image (from our struts-application, we want to migrate to JSF): Picture (Device Independent Bitmap) What I tried to to is to use a tr:table + nested tr:column - Tags i.e. tr:document xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; title=Multiline Table tr:form tr:table value=#{dynamicTable.data} var=tableRow varStatus=tableStatus rowBandingInterval=1 rows=3 noWrap=true sortable=true tr:column sortable=true noWrap=true sortProperty=kategorie defaultSortOrder=ascending f:facet name=header tr:outputText value=1. and 2. column (sort= Kategorie) / /f:facet tr:column sortable=true noWrap=true sortProperty=kategorie defaultSortOrder=ascending f:facet name=header kategorie /f:facet tr:outputText value=#{tableRow['kategorie']} / /tr:column tr:column sortable=true noWrap=true sortProperty=transaktionen defaultSortOrder=ascending f:facet name=header transaktionen /f:facet tr:outputText value=#{tableRow['transaktionen']} / /tr:column tr:outputText value=#{tableRow['kategorie']} / /tr:column
t:savestate
Hi I am trying to upgrade my application from JSF 1.1.1 to JSF 1.2, using myfaces 1.2. I am using multiple tabs in the same browser (same http session) and am using client side state saving. Now when I am trying to upgrade I want to know if its possible to use the server side state saving in the same scenario using JSF 1.2 and how should I do it. This is necessary for me because I dont want too much data to be flowing between the client and the server. Secondly I think (I am not sure) client side saving might encourage hostile user attacks. I shall be highly obliged with your comments.
Re: t:savestate
Hasnain Badami [EMAIL PROTECTED] schrieb: Hi I am trying to upgrade my application from JSF 1.1.1 to JSF 1.2, using myfaces 1.2. I am using multiple tabs in the same browser (same http session) and am using client side state saving. Now when I am trying to upgrade I want to know if its possible to use the server side state saving in the same scenario using JSF 1.2 and how should I do it. As far as I know, the state-saving functionality is identical in MyFaces 1.1 and MyFaces 1.2, ie there is nothing you can do with 1.2 that cannot be done in 1.1. This is necessary for me because I dont want too much data to be flowing between the client and the server. As I'm sure you're aware, this is always a tradeoff. Client-side can be bad on a slow network. But it scales to more clients than server-side state does, because the server doesn't need ram to keep the client state in. Things are more interesting with multiple windows and server-side state though. I don't *think* this is supported for either MyFaces 1.1 or 1.2, though I could be wrong. Myfaces 1.1 definitely caches N old views in the user session, so that back buttons work (where N defaults to around 4). But AFAIK, this is an LRU cache, meaning that after 4 new pages the oldest cached tree is discarded. So if in tab 1 the user clicks through 4 pages, then tab 2's tree state has been lost and an error will occur when the user tries to use it. What would be necessary is to somehow tell the windows apart, and keep at least one JSF tree for each one but that seems tricky; I've never seen any code in MyFaces that does that. Anyone out there using concurrent windows with server-side state? Secondly I think (I am not sure) client side saving might encourage hostile user attacks. MyFaces 1.1 and 1.2 both have a feature to encrypt the client-side-state information. This is sufficient to prevent any hostile attacks. As far as I know this functionality is identical in MyFaces 1.1 and MyFaces 1.2. This is turned on with a context param in the web.xml file. There is documentation on this in the myfaces wiki. Regards, Simon
Re: How know witch data in changed
hello mario, today it's my third and last try to send this answer :-/ (at the moment there is a strange situation - some of my mails are not delivered and some others are (but they were send to the same address(es) at a later point of time compared to the undelivered mails) - at the moment the web-interface of gmail is also a bit confused - mails aren't displayed correctly and so on (really strange) - so i try to answer directly to your first post - it's just a further try to resend my answer which was send before the second answer of cagatay.) @cagatay: thank you for your answer – it was the reason why i recognized that my answer wasn't delivered (my answer included basically the same statement as yours) – with this mail i try to resend my previous mail. (*sorry* if sooner or later the two other mails will be delivered and the answer is duplicated) my previous answer: there is also a second possible solution for this problem. advantage: you don't have to walk through the component tree once more. (if i got the idea mentioned by cagatay right) disadvantage: it's maybe a bit more work than the PhaseListener approach. you can decorate all renderers and manually add your ValueChangeListener (it is real adding - no replacement). if you would like to choose this solution you are welcome to look at the implementation of jtracc (http://jtracc.org or directly at http://code.google.com/p/jtracc/source) - there i implemented such a wrapper (TranslationRendererWrapper). it's an other domain so you can ignore what's going on in this wrapper in detail (you only need the principle). in your case you have to add a ValueChangeListener manually by using code like: ( (EditableValueHolder) component ).addValueChangeListener(...) before you do that you have to check if the component is a component which implements the EditableValueHolder interface! after adding the listener you can simply delegate to the decorated renderer. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario -- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
How know current outcome
Hello, is there a way to know, in a PhaseListener, the current outcome invoked by the user without implements a my NavigationHandler? Thanks in advance, Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
[Trinidad] New feature to come in 1.0.5 - multiple first level nodes displayed in the treeTable
FYI, for those that have wanted the ability to have multiple root nodes shown in the treeTable, a way to do it will be part of 1.0.5. As of this enhancement, there is a rootNodeRendered that will allow you to hide the root node. https://issues.apache.org/jira/browse/TRINIDAD-786 -Andrew
Re: JBoss 4.2.2 and MyFaces
I think the best place to start debugging this issue is to look at your server startup logs. You might find some hints there, as to what flavour of JSF is your jboss using. I am also using the same configuration but I wasn't interested in running my code with the Sun RI. So I removed jboss jsf libraries. Then included all the myfaces 1.2 libraries in my lib folder. I think you have to specify the war bundles jsf implementation flag to true in your web.xml. This was just my experience, your requirements might be different. On Nov 10, 2007 9:35 PM, Dave [EMAIL PROTECTED] wrote: Thanks for quick help. In my jsf application, I did not define or set classloader. What could be the cause? Thanks! *Bernhard Huemer [EMAIL PROTECTED]* wrote: Hello, sounds like a classloader issue as you're still using the JSF RI, at least according to the error message (FacesContext not found - MyFaces vs. Cannot find FacesContext - JSF RI; and of course the line numbers don't match). regards, Bernhard On 11/10/2007 +0100, Dave wrote: I upgraded to JBoss 4.2.2 GA from 4.0.5. and followed the following instruction to use MyFaces core instead of the built-in JSF ri. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces But I got the RuntimeException: can not find FacesContext java.lang.RuntimeException: Cannot find FacesContext at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext( UIComponentClassicTagBase.java:1796) at javax.faces.webapp.UIComponentClassicTagBase.setJspId( UIComponentClassicTagBase.java:1613) at org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:152) at org.apache.jsp.index_jsp._jspService(index_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke( ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest( ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward( ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward( ApplicationDispatcher.java:292) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch( ServletExternalContextImpl.java:419) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView( JspViewHandlerImpl.java:211) Thanks for help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Issue with getting the values of the rows in dynamically generated Table
Simon, I am sorry that my post would cause inconvenience. I have posted this question in both of the Forums as I didn't get any reply for my prevoious questions when in 'MyFaces - Users' Forum. I would delete the one which I posted in 'MyFaces - Dev' Forum. Actually I am working on Trinidad, Oracle JDeveloper. As you assumed tempCoreTable is not a componentBinding from the page. I have two selectManyListBoxes. The requirement is that I need to construct a dynamic page as follows: panelGrid1 | |__panelGrid | | | |__checkBox // checkBox ids will be stored in a static ListCoreSelectBooleanCheckbox | |__inputText // These Components will be rendered dynamically based on number of selected |// values in first selectManyListbox |__panelGrid | | | |__table// User will enter data in these tables. On selection of checkbox and based |// number of selected values in second selectManyListbox, the number of rows will |__panelGrid // be rendered in the table | | | |__checkBox | |__inputText | |__panelGrid | |__table // User will enter data in these tables. On selection of checkbox and based // number of selected values in second selectManyListbox, the number of rows will // be rendered in the table --- | save | // Button --- I am getting a reference (of table) tempCoreTable by the following code: for(int totalCheckboxCount = 0; totalCheckboxCount chkboxlist.size(); totalCheckboxCount++) { List panelGridChildren = chkboxlist.get(totalCheckboxCount).getParent().getParent().getChildren(); HtmlPanelGrid tempHtmlPanelGrid = (HtmlPanelGrid)panelGridChildren.get(childCount); CoreTable tempCoreTable = (CoreTable)tempHtmlPanelGrid.getChildren().get(0); // Code in my previous post goes here. } getSelectedRowKeys is a method in tr:table component. Thanks Glen Simon Kitching-4 wrote: Glen, Please do not post these sorts of question to the dev list. It belongs on the user list. And definitely do not post to both lists; most developers are also subscribed to the user list. Posting to both just annoys the people you are hoping will help you. In JSF, it is very rarely necessary to fetch data from the components. I presume that tempCoreTable is a componentBinding to the table component from the page. Using component bindings is ugly and should be used only when nothing else will work. Usually the best solution for this sort of problem is to modify the objects that the table is rendering. So the table is no longer passed a list of ServiceBean objects, but instead a list of ServiceBeanHandler objects. The ServiceBeanHandler can then hold the logic that handles updates for each row rather than using the loop below. The tempCoreTable binding variable can then be deleted. I don't know what this getSelectedRowKeys method is. There is no such method on a UIData object. Is this from Trinidad, or are you trying to write your own custom UIComponent or ??? In the past I have implemented tables where a column holds a checkbox for each row that the user can click to select a row. I guess this is what you are doing. In this case, the ServiceBeanHolder class can add a boolean property to hold the selected/unselected state of that particular row, with the checkbox component just mapping to that property. Regards, Simon Glen [EMAIL PROTECTED] schrieb: I have a problem with getting values of the inputText components from a dynamically generated table. Table will have inputText components in each cell. The value entered by user should come to backing bean. The following is the code that shows how I am trying to get the values: Iterator selectedRowKeys = tempCoreTable.getSelectedRowKeys().iterator(); while(selectedRowKeys.hasNext()) { ServiceBean tableRow = (ServiceBean)tempCoreTable.getRowData(Integer.parseInt(selectedRowKeys.next().toString())); System.out.println(Weight :: + tableRow.getWeight()); System.out.println(Minimum Value :: + tableRow.getMinValue()); System.out.println(Id :: + tableRow.getDataID()); System.out.println(Name :: + tableRow.getName()); } ServiceBean is a simple Java Bean that contains set of properties weight, minValue, dataId, name and their get-set methods. Also the rows in the dynamically generated table are also of type ServiceBean. Please help me to get out this problem. -- View this message in context: http://www.nabble.com/Issue-with-getting-the-values-of-the-rows-in-dynamically-generated-Table-tf4789818.html#a13702158 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View
Re: How know current outcome
Short answer: no (out of the box) But there are ways to do it. (1) custom NavigationHandler (this is really quite easy, you can just wrap a current one -- not sure why you want to avoid this) and (2) custom ActionListener (the global one, not the one you add to action generators -- http://tinyurl.com/2b4q77) -Andrew On 11/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, is there a way to know, in a PhaseListener, the current outcome invoked by the user without implements a my NavigationHandler? Thanks in advance, Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
[Trinidad] Problems with buttons that launch dialogs on facet=actions
Hi all, I have a problem with buttons that launch dialogs. I place a CommandButton or CommandLink inside facet=actions of a tr:table in this way: tr:table id=tabla rows=10 rowBandingInterval=1 columnBandingInterval=0 selectionListener=#{accionBean.seleccionar} rowSelection=multiple autoSubmit=true f:facet name=actions tr:panelGroup tr:commandButton id=generar partialSubmit=true useWindow=true action=#{accionBean.generarPropuesta} windowHeight=800 windowWidth=700 / tr:commandButton id=editarLinea partialSubmit=true useWindow=true action=#{accionBean.editarLinea} windowHeight=800 windowWidth=700 / /tr:panlGroup /f:facet ... /tr:table When the user clicks on the button, the dialog is launched and the associated code is executed. But when the user closes the dialog, the returnListener is not called. I have been debugging the application and it seems that in the method public boolean isReturning(FacesContext context, UIComponent source) in the class org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit when looking for the returnListener to execute, the id of the component is tabla:0:generar instead of tabla:generar, which causes the ReturnEvent not to be queued. If I place the buttons out of the table, the dialog is launched and the returnListener is executed as expected. Any of you have experienced this behaviour? Should I file a bug? Regards, - - Rafa
[h:panelGroup] layout=block not work
Hello I'd like to put a commandButton into a div component. I use the panelGroup with layout = block; but I also get a span element . Im using myfaces 1.1.5 and facelets thanks.. -- View this message in context: http://www.nabble.com/-h%3ApanelGroup--layout%3D%22block%22-not-work-tf4792612.html#a13710169 Sent from the MyFaces - Users mailing list archive at Nabble.com.
probleme with IE7 cache
Hii everybody.. I have a strange behaviour caused by IE 7 chache, Im using myfaces 1.1.5 with facelets and rich-faces.. how can set header parameters in order to send nw rquest to server and not use the one saved on cache.. thanks.. -- View this message in context: http://www.nabble.com/probleme-with-IE7-cache-tf4792707.html#a13710490 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] Update from 1.0.1 to 1.0.3 breaks PPR
Sorry to bother, but I was wondering if this issue has had developments and if so, if it has been addressed in version 1.0.4. Thank you, Francisco On Nov 2, 2007 5:15 PM, shhQuiet [EMAIL PROTECTED] wrote: I am having this problem, using Facelets 1.1.14 and any version of Trinidad greater than 1.0.1. I believe the cause is that the xml PPR response has a content type of text/html. Bertrand, Shawn R wrote: During the PPR request, do you happen to disable the component which originated the request? -- View this message in context: http://www.nabble.com/-Trinidad--Update-from-1.0.1-to-1.0.3-breaks-PPR-tf4634155.html#a13551730 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] PanelPage Facets are not displaying
I have searched the forum and there was one mention of this however there was no reply. Also, I fogot to add that I am using Seam and running JBoss 4.2.1. Is there a compatability problem? On Monday 12 November 2007 01:15, Curtney Jacobs wrote: Greetings everyone! I am including the following facets however their contents are not being displayed. I am using Trinidad 1.2.3. Any help is greatly appreciated. !-- Does not appear to be working -- f:facet name=contextGlobal tr:outputFormatted styleUsage=instruction value=Context Global facet/ /f:facet !-- Does not appear to be working -- f:facet name=contextLocal tr:outputFormatted styleUsage=instruction value=Context Local facet/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar1 tr:outputFormatted styleUsage=instruction value=Toolbar 1/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar2 tr:outputFormatted styleUsage=instruction value=Toolbar 2/ /f:facet Curtney
[Announce] Release of Apache MyFaces Trinidad 1.0.4
The Apache MyFaces Trinidad team is pleased to announce the release of Apache MyFaces Trinidad Core 1.0.4. Apache MyFaces Trinidad is a JavaServer(tm) Faces 1.1 component library. Trinidad Core 1.0.4 is available in both binary and source distributions: * http://myfaces.apache.org/trinidad/download.html Apache MyFaces Trinidad is available in the central Maven repository under Group ID org.apache.myfaces.trinidad. Release Notes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310661styleName=Htmlversion=12312810 Enjoy! -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org
Re: [Trinidad] Update from 1.0.1 to 1.0.3 breaks PPR
We'll look at it. Got a demo application, that shows the issue. Have to check it. But not fixed in 1.0.4. I am not able to reproduce it in my environment, just in this demo. Hadn't had much time to check, but I'll check it. -Matthias On Nov 12, 2007 8:34 PM, Francisco Passos [EMAIL PROTECTED] wrote: Sorry to bother, but I was wondering if this issue has had developments and if so, if it has been addressed in version 1.0.4. Thank you, Francisco On Nov 2, 2007 5:15 PM, shhQuiet [EMAIL PROTECTED] wrote: I am having this problem, using Facelets 1.1.14 and any version of Trinidad greater than 1.0.1. I believe the cause is that the xml PPR response has a content type of text/html. Bertrand, Shawn R wrote: During the PPR request, do you happen to disable the component which originated the request? -- View this message in context: http://www.nabble.com/-Trinidad--Update-from-1.0.1-to-1.0.3-breaks-PPR-tf4634155.html#a13551730 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org
Re: How know witch data in changed
hello mario, @cagatay: thank you for your answer – it was the reason why i recognized that my answer wasn't delivered (my answer included basically the same statement as yours) – with this mail i try to resend my previous mail. (without links – maybe it's the reason for the lost mail?!???) - @mario: you are welcome to visit the irian website - products / jtracc for further information - and follow the links. (*sorry* if sooner or later my first mail will be delivered and the answer is duplicated) my previous answer: there is also a second possible solution for this problem. advantage: you don't have to walk through the component tree once more. (if i got the idea mentioned by cagatay right) disadvantage: it's maybe a bit more work than the PhaseListener approach mentioned by cagatay. you can decorate all renderers and manually add (it is real adding - no replacement) your ValueChangeListener. if you would like to choose this solution you are welcome to look at the implementation of jtracc (see info above) - there i implemented such a wrapper (TranslationRendererWrapper). it's an other domain so you can ignore what's going on in this wrapper in detail. in your case you have to add a ValueChangeListener manually by using code like: ( (EditableValueHolder) component ).addValueChangeListener(...) before you do that you have to check if the component is a component which implements the EditableValueHolder interface! after adding the listener you can simply delegate to the decorated renderer. regards, gerhard 2007/11/12, Cagatay Civici [EMAIL PROTECTED]: Hi, From the docs; addValueChangeListener(javax.faces.event.ValueChangeListener listener) Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. In addition check if the listener is not already added to the listeners list before using this. Cagatay On Nov 12, 2007 4:10 PM, [EMAIL PROTECTED] wrote: Hi Cheers, but if a componenet already has a ValueChangeListener setted by the programmer for other reasons? The new ValueChangeListener si added or replace existings? Thank, Mario -Original Message- From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 14.50 To: MyFaces Discussion Subject: Re: How know witch data in changed Hi, A phaselistener may work here, in after phase of restore view, traverse the component tree, if the component is an editablevalueholder, cast the component to editablevalueholder and add the valuechangelistener by addValueChangeListener or setValueChangeListener. A valuechangelistener implementation needs a processValueChange method or it can be a method binding, in your case the first option is a better alternative See editableValueHolder for more info. Cheers, Cagatay Civici [EMAIL PROTECTED] ps3 network id : facescontext On Nov 12, 2007 3:06 PM, [EMAIL PROTECTED] wrote: Is there a way to set the same ValueChangeListener to all component of all view without specific code in the page? I don't want leave my programmers manage the logic to know witch component is changed, because I need to managed this kind of problem in the framework code. Any suggestions? Thanks, M. From: Gerhard Petracek [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 13.34 To: MyFaces Discussion Subject: Re: How know witch data in changed hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged,
duplicate id error with tomahawk and a4j
Hello, I am having an issue with a4j and tomahawk that when i am using a4j to rerender regions of the page, then i navigate (using jsf navigation) to the previous page and rerender components I get IllegalStateException. Any ideas on how I can isolate this error or any frequent causes anyone is aware of? Thanks, Joe Graham [EMAIL PROTECTED] [11/12/07 13:20:04:138 MST] 00a9 WebAppE [Servlet Error]- [Faces Servlet]: java.lang.IllegalStateException: Duplicate component ID '_id14' found in view. at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:174) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application .StateManagerImpl .removeTransientChildrenAndFacets(StateManagerImpl.java:182) at com .sun .faces .application.StateManagerImpl.saveSerializedView(StateManagerImpl.java: 86) at org .ajax4jsf .framework .ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:90) at com .ibm .faces .application .DevelopmentStateManager .saveSerializedView(DevelopmentStateManager.java:33) at org .ajax4jsf .framework .ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:90) at org.ajax4jsf.framework.ajax.AjaxContext.saveViewState(AjaxContext.java: 509) at org .ajax4jsf .framework .renderer.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:82) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:228) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at com .ibm .ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972) at com .ibm .ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907) at com .ibm .ws .webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java: 145) at org .apache .myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java: 97) at com .ibm .ws .webcontainer .filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com .ibm .ws .webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java: 130) at org .ajax4jsf .framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java: 127) at org .ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java: 277) at com .ibm .ws .webcontainer .filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com .ibm .ws .webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java: 130) at org .apache .myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java: 181) at com .ibm .ws .webcontainer .filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com .ibm .ws .webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java: 130) at com.esri.adf.web.util.ADFSessionTimeoutFilter.doFilter(Unknown Source) at com .ibm .ws .webcontainer .filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com .ibm .ws .webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java: 130) at com .ibm .ws .webcontainer .filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com .ibm .ws .webcontainer .filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701) at com .ibm .ws .webcontainer .filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646) at com .ibm .ws .webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java: 475) at com .ibm .ws .wswebcontainer .servlet.ServletWrapper.handleRequest(ServletWrapper.java:463) at com .ibm .ws .webcontainer .servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java: 744) at
Re: [Trinidad] PanelPage Facets are not displaying
Hm, forgot to put a form component around your panelPage? Curtney Jacobs wrote: I have searched the forum and there was one mention of this however there was no reply. Also, I fogot to add that I am using Seam and running JBoss 4.2.1. Is there a compatability problem? On Monday 12 November 2007 01:15, Curtney Jacobs wrote: Greetings everyone! I am including the following facets however their contents are not being displayed. I am using Trinidad 1.2.3. Any help is greatly appreciated. !-- Does not appear to be working -- f:facet name=contextGlobal tr:outputFormatted styleUsage=instruction value=Context Global facet/ /f:facet !-- Does not appear to be working -- f:facet name=contextLocal tr:outputFormatted styleUsage=instruction value=Context Local facet/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar1 tr:outputFormatted styleUsage=instruction value=Toolbar 1/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar2 tr:outputFormatted styleUsage=instruction value=Toolbar 2/ /f:facet Curtney
[Trinidad] Table expert, anyone?
I am desperately trying to get a specific table UI to work - see screenshot. In short I have a list-backed table model. When displayed there's a delete button in front of row. The first column is a selectOneChoice. There's always one more row at the bottom than there are real values. If the user selects a value from the dropdown, then another row is added. Here's the catch: Of course, neither the delete link nor the dropdown should trigger validation, so I have set immediate=true on them. Unfortunately now the components on the page do not update correctly, for example if I delete the second row (see screenshot) the page does indeed display one row less, but the second row still displays the same data. What the heck can I do to programmatically update the component-side of the model? inline: table-before.pnginline: table-after.png
Re: How know witch data in changed
hello mario, there is also a second possible solution for this problem. advantage: you don't have to walk through the component tree once more. disadvantage: it's maybe a bit more work than the PhaseListener approach mentioned by cagatay. you can decorate all renderers and manually add (it is real adding - no replacement) your ValueChangeListener if you would like to choose this solution you are welcome to look at the implementation of jtracc (http://jtracc.org or direclty at http://code.google.com/p/jtracc/source) - there i implemented such a wrapper (TranslationRendererWrapper). it's an other domain so you can ignore what's going on in this wrapper in detail. in your case you have to add a ValueChangeListener manually by using code like: ( (EditableValueHolder) component ).addValueChangeListener(...) -- before you do that you have to check if the current component is a component which implements the EditableValueHolder interface! after adding the listener you can simply delegate to the decorated renderer. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi Cheers, but if a componenet already has a ValueChangeListener setted by the programmer for other reasons? The new ValueChangeListener si added or replace existings? Thank, Mario -Original Message- From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 14.50 To: MyFaces Discussion Subject: Re: How know witch data in changed Hi, A phaselistener may work here, in after phase of restore view, traverse the component tree, if the component is an editablevalueholder, cast the component to editablevalueholder and add the valuechangelistener by addValueChangeListener or setValueChangeListener. A valuechangelistener implementation needs a processValueChange method or it can be a method binding, in your case the first option is a better alternative See editableValueHolder for more info. Cheers, Cagatay Civici [EMAIL PROTECTED] ps3 network id : facescontext On Nov 12, 2007 3:06 PM, [EMAIL PROTECTED] wrote: Is there a way to set the same ValueChangeListener to all component of all view without specific code in the page? I don't want leave my programmers manage the logic to know witch component is changed, because I need to managed this kind of problem in the framework code. Any suggestions? Thanks, M. From: Gerhard Petracek [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 13.34 To: MyFaces Discussion Subject: Re: How know witch data in changed hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Trinidad] Table expert, anyone?
hello, how do you trigger ppr (the update) at the moment? there are several ways to trigger ppr - to answer your question concerning programmatically updating components maybe the following link will help you: http://myfaces.apache.org/trinidad/devguide/ppr.html#Using%20RequestContext regards, gerhard 2007/11/12, Stephen Friedrich [EMAIL PROTECTED]: I am desperately trying to get a specific table UI to work - see screenshot. In short I have a list-backed table model. When displayed there's a delete button in front of row. The first column is a selectOneChoice. There's always one more row at the bottom than there are real values. If the user selects a value from the dropdown, then another row is added. Here's the catch: Of course, neither the delete link nor the dropdown should trigger validation, so I have set immediate=true on them. Unfortunately now the components on the page do not update correctly, for example if I delete the second row (see screenshot) the page does indeed display one row less, but the second row still displays the same data. What the heck can I do to programmatically update the component-side of the model? -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Trinidad] Update from 1.0.1 to 1.0.3 breaks PPR
Thank you, it's reassuring to know that it's not forgotten :) Francisco On Nov 12, 2007 8:23 PM, Matthias Wessendorf [EMAIL PROTECTED] wrote: We'll look at it. Got a demo application, that shows the issue. Have to check it. But not fixed in 1.0.4. I am not able to reproduce it in my environment, just in this demo. Hadn't had much time to check, but I'll check it. -Matthias On Nov 12, 2007 8:34 PM, Francisco Passos [EMAIL PROTECTED] wrote: Sorry to bother, but I was wondering if this issue has had developments and if so, if it has been addressed in version 1.0.4. Thank you, Francisco On Nov 2, 2007 5:15 PM, shhQuiet [EMAIL PROTECTED] wrote: I am having this problem, using Facelets 1.1.14 and any version of Trinidad greater than 1.0.1. I believe the cause is that the xml PPR response has a content type of text/html. Bertrand, Shawn R wrote: During the PPR request, do you happen to disable the component which originated the request? -- View this message in context: http://www.nabble.com/-Trinidad--Update-from-1.0.1-to-1.0.3-breaks-PPR-tf4634155.html#a13551730 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org
Re: [Trinidad] Table expert, anyone?
hi, at the moment it is difficult to see what you already tried and which painful way of trying different possibilities you already walked along... first of all - there is a bug at sortable and filterable tables - i already opened an issue... some details: this bug only occurs if you have a changing model within a sortable table - i guess that's not your case!? 2 further questions: - have you already tried to use component binding? - did you already give ppr a chance or did you just deactivated it? - generally ppr should work very well if nothing of both would solve your problem - i don't have further spontaneous ideas without knowing more details about your implementation... is it possible for you to provide some source code of your implementation or an equivalent example? regards, gerhard 2007/11/13, Stephen Friedrich [EMAIL PROTECTED]: Thanks for the answer. I am not at all using PPR at the moment. Just to be sure that my problem is not caused in any way by PPR, I switched it off using this snippet at the top of my page: script type=text/javascript xml:space=preserve // ![CDATA[ _pprUnsupported = true; // ]] /script If I understand the problem correctly, the immediate flag causes all other components on the page to stay unprocessed. So the html component with the generated id shopTimeDetails:1:threelc just keeps its value, even though at row index 1 there now is a different model value. I just don't have any idea how to make this scenario work. Gerhard Petracek wrote: hello, how do you trigger ppr (the update) at the moment? there are several ways to trigger ppr - to answer your question concerning programmatically updating components maybe the following link will help you: http://myfaces.apache.org/trinidad/devguide/ppr.html#Using%20RequestContext regards, gerhard 2007/11/12, Stephen Friedrich [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: I am desperately trying to get a specific table UI to work - see screenshot. In short I have a list-backed table model. When displayed there's a delete button in front of row. The first column is a selectOneChoice. There's always one more row at the bottom than there are real values. If the user selects a value from the dropdown, then another row is added. Here's the catch: Of course, neither the delete link nor the dropdown should trigger validation, so I have set immediate=true on them. Unfortunately now the components on the page do not update correctly, for example if I delete the second row (see screenshot) the page does indeed display one row less, but the second row still displays the same data. What the heck can I do to programmatically update the component-side of the model? -- 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: [Trinidad] Table expert, anyone?
Thanks for the answer. I am not at all using PPR at the moment. Just to be sure that my problem is not caused in any way by PPR, I switched it off using this snippet at the top of my page: script type=text/javascript xml:space=preserve // ![CDATA[ _pprUnsupported = true; // ]] /script If I understand the problem correctly, the immediate flag causes all other components on the page to stay unprocessed. So the html component with the generated id shopTimeDetails:1:threelc just keeps its value, even though at row index 1 there now is a different model value. I just don't have any idea how to make this scenario work. Gerhard Petracek wrote: hello, how do you trigger ppr (the update) at the moment? there are several ways to trigger ppr - to answer your question concerning programmatically updating components maybe the following link will help you: http://myfaces.apache.org/trinidad/devguide/ppr.html#Using%20RequestContext regards, gerhard 2007/11/12, Stephen Friedrich [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: I am desperately trying to get a specific table UI to work - see screenshot. In short I have a list-backed table model. When displayed there's a delete button in front of row. The first column is a selectOneChoice. There's always one more row at the bottom than there are real values. If the user selects a value from the dropdown, then another row is added. Here's the catch: Of course, neither the delete link nor the dropdown should trigger validation, so I have set immediate=true on them. Unfortunately now the components on the page do not update correctly, for example if I delete the second row (see screenshot) the page does indeed display one row less, but the second row still displays the same data. What the heck can I do to programmatically update the component-side of the model? -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Trinidad] Table expert, anyone?
Fair enough. Thanks for staying with me. PPR on or off does not make any difference. Here's an extract of my JSF/facelets page: --- tr:table id=shopTimeDetails var=details value=#{shopTimeDetailsHome.shopTimeDetails} binding=#{shopTimeDetailsHome.table} tr:column headerText=Delete tr:commandLink id=deleteLink action=#{shopTimeDetailsHome.remove} immediate=true rendered=#{!details.isPlaceholder} f:param name=detailsRowIndex value=#{details.rowIndex}/ img src=images/delete.gif/ /tr:commandLink /tr:column tr:column headerText=Engine Type tr:selectOneChoice id=engineType value=#{details.engineType} required=true autoSubmit=true immediate=true valueChangeListener=#{shopTimeDetailsHome.handleEngineTypeChanged} s:selectItems value=#{engineTypesQuery.resultList} var=engineType label=#{engineType.name}/ /tr:selectOneChoice /tr:column tr:column headerText=3LC tr:inputText id=threelc value=#{details.threelc} required=true maximumLength=3 rendered=#{!details.isPlaceholder} tr:validateLength maximum=3/ /tr:inputText /tr:column --- And here's an extract of the bean that should handle removing/adding rows (property accesors excluded). The correct row gets removed from the model (from the shopTimeDetails list), but if row index 1 is deleted, then the new values from the old index 2 never make it to the page. I think that's more or less logical: The immediate delete command link causes a short-circuit of the remaining phases and the processing of the non-immediate components never takes place. But it sure must be possible somehow to access the stamped components and update them. Or maybe (hopefully) there's a cleaner/better way to implement this style of UI. Note my pitiful attempt to copy values manually (now commented out). --- public class ShopTimeDetailsHome { private ListShopTimeDetails shopTimeDetails; private transient CoreTable table; public void remove() { String indexText = FacesUtil.getRequestParameter(detailsRowIndex); try { int rowIndex = Integer.parseInt(indexText); //handleRowRemove(rowIndex); shopTimeDetails.remove(rowIndex); updateTransientDetailsProperties(); } catch (NumberFormatException e) { errorLog.error(Expected row index to delete, but got: + indexText, e); } } private void handleRowRemove(int i) { Object oldRowKey = table.getRowKey();// backup current model state try { int rowCount = table.getRowCount(); int columnCount = table.getChildCount(); for (int rowIndex = i; rowIndex rowCount - 1; ++rowIndex) { for (int columnIndex = 0; columnIndex columnCount; ++columnIndex) { copyCell(rowIndex + 1, columnIndex, rowIndex, columnIndex); } } } finally { table.setRowKey(oldRowKey);// restore model state } } private void copyCell(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex) { table.setRowIndex(fromRowIndex); List fromColumns = table.getChildren(); UIComponent column = (UIComponent) fromColumns.get(fromColumnIndex); UIComponent fromCell = (UIComponent) column.getChildren().get(0); if (fromCell instanceof EditableValueHolder) { EditableValueHolder holder = (EditableValueHolder) fromCell; Object value = holder.isLocalValueSet() ? holder.getLocalValue() : holder.getValue(); table.setRowIndex(toRowIndex); List toColumns = table.getChildren(); UIComponent toColumn = (UIComponent) toColumns.get(toColumnIndex); EditableValueHolder toCell = (EditableValueHolder) toColumn.getChildren().get(0); toCell.setValue(value); } } private void updateTransientDetailsProperties() { for (int i = 0; i shopTimeDetails.size(); i++) { ShopTimeDetails details = shopTimeDetails.get(i); boolean isPlaceholder = i == shopTimeDetails.size() - 1; details.setIsPlaceholder(isPlaceholder); details.setRowIndex(i); } } Gerhard Petracek wrote: hi, at the moment it is difficult to see what you already tried and which painful way of trying different possibilities you already walked along... first of all - there is a bug at sortable and filterable tables - i already opened an issue... some details: this bug only occurs if you have a
Re: [Trinidad] PanelPage Facets are not displaying
Thanks for the reply: Actually, I do have a form component around the panelPage. The other facets for panelPage work fine, just the new ones that don't seam to work. For example, toolbar1, toolbar2, toolBarGlobal, contextGlobal, contextLocal, etc. Others like navigation1, navigation2, navigation3, navigationGlobal, location, etc works great. I am pretty sure it is something obvious I am missing. My layout is such: tr:document tr:form tr:panelBorderLayout tr:panelPage f:facet name= . /tr:panelPage /tr:panelBorderLayout /tr:form /tr:document Anymore suggestions? Curtney On Monday 12 November 2007 14:38, Stephen Friedrich wrote: Hm, forgot to put a form component around your panelPage? Curtney Jacobs wrote: I have searched the forum and there was one mention of this however there was no reply. Also, I fogot to add that I am using Seam and running JBoss 4.2.1. Is there a compatability problem? On Monday 12 November 2007 01:15, Curtney Jacobs wrote: Greetings everyone! I am including the following facets however their contents are not being displayed. I am using Trinidad 1.2.3. Any help is greatly appreciated. !-- Does not appear to be working -- f:facet name=contextGlobal tr:outputFormatted styleUsage=instruction value=Context Global facet/ /f:facet !-- Does not appear to be working -- f:facet name=contextLocal tr:outputFormatted styleUsage=instruction value=Context Local facet/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar1 tr:outputFormatted styleUsage=instruction value=Toolbar 1/ /f:facet !-- Does not appear to be working -- f:facet name=toolbar2 tr:outputFormatted styleUsage=instruction value=Toolbar 2/ /f:facet Curtney
Re: JBoss 4.2.2 and MyFaces
Hi, Did you check your web.xml? Do you have servlet-mapping for Faces Servlet? And are you using same URL pattern to invoke your JSF page? If you have provided .jsf as URL pattern but trying to access the page as .jsp, you will end-up in this kind of trouble. Cheers, Neo. http://neoexpedition.wordpress.com On Nov 13, 2007 1:54 AM, Hasnain Badami [EMAIL PROTECTED] wrote: I think the best place to start debugging this issue is to look at your server startup logs. You might find some hints there, as to what flavour of JSF is your jboss using. I am also using the same configuration but I wasn't interested in running my code with the Sun RI. So I removed jboss jsf libraries. Then included all the myfaces 1.2 libraries in my lib folder. I think you have to specify the war bundles jsf implementation flag to true in your web.xml. This was just my experience, your requirements might be different. On Nov 10, 2007 9:35 PM, Dave [EMAIL PROTECTED] wrote: Thanks for quick help. In my jsf application, I did not define or set classloader. What could be the cause? Thanks! Bernhard Huemer [EMAIL PROTECTED] wrote: Hello, sounds like a classloader issue as you're still using the JSF RI, at least according to the error message (FacesContext not found - MyFaces vs. Cannot find FacesContext - JSF RI; and of course the line numbers don't match). regards, Bernhard On 11/10/2007 +0100, Dave wrote: I upgraded to JBoss 4.2.2 GA from 4.0.5. and followed the following instruction to use MyFaces core instead of the built-in JSF ri. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces But I got the RuntimeException: can not find FacesContext java.lang.RuntimeException: Cannot find FacesContext at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796) at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613) at org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:152) at org.apache.jsp.index_jsp._jspService(index_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java :70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:336) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java :654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java :379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java :419) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211) Thanks for help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [Trinidad] Update from 1.0.1 to 1.0.3 breaks PPR
This may help or not, sounds like there has been more discussion on this issue. We had problems with PPR in all versions above 1.0.1 because we weren't using jspx: i.e. use something like this: ?xml version=1.0 encoding=iso-8859-1 standalone=yes ? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=2.0 xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; jsp:directive.page contentType=text/html;charset=utf-8 / f:view f:loadBundle basename=com.cyest.spms.resources.messages var=msgs / tr:document tr:form /tr:form /tr:document /f:view /jsp:root Regards, Oscar On Nov 13, 2007 1:42 AM, Francisco Passos [EMAIL PROTECTED] wrote: Thank you, it's reassuring to know that it's not forgotten :) Francisco On Nov 12, 2007 8:23 PM, Matthias Wessendorf [EMAIL PROTECTED] wrote: We'll look at it. Got a demo application, that shows the issue. Have to check it. But not fixed in 1.0.4. I am not able to reproduce it in my environment, just in this demo. Hadn't had much time to check, but I'll check it. -Matthias On Nov 12, 2007 8:34 PM, Francisco Passos [EMAIL PROTECTED] wrote: Sorry to bother, but I was wondering if this issue has had developments and if so, if it has been addressed in version 1.0.4. Thank you, Francisco On Nov 2, 2007 5:15 PM, shhQuiet [EMAIL PROTECTED] wrote: I am having this problem, using Facelets 1.1.14 and any version of Trinidad greater than 1.0.1. I believe the cause is that the xml PPR response has a content type of text/html. Bertrand, Shawn R wrote: During the PPR request, do you happen to disable the component which originated the request? -- View this message in context: http://www.nabble.com/-Trinidad--Update-from-1.0.1-to-1.0.3-breaks-PPR-tf4634155.html#a13551730 Sent from the MyFaces - Users mailing list archive at Nabble.com . -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org
Re: [Trinidad] Table expert, anyone?
Hi Gerhard, I posted a question a couple days ago about this issue but get no answer. Could you tell me what is the number of the bug? Regards, - - Rafa On Nov 13, 2007 1:28 AM, Stephen Friedrich [EMAIL PROTECTED] wrote: Fair enough. Thanks for staying with me. PPR on or off does not make any difference. Here's an extract of my JSF/facelets page: --- tr:table id=shopTimeDetails var=details value=#{ shopTimeDetailsHome.shopTimeDetails} binding=#{shopTimeDetailsHome.table } tr:column headerText=Delete tr:commandLink id=deleteLink action=#{ shopTimeDetailsHome.remove} immediate=true rendered=#{!details.isPlaceholder} f:param name=detailsRowIndex value=#{details.rowIndex}/ img src=images/delete.gif/ /tr:commandLink /tr:column tr:column headerText=Engine Type tr:selectOneChoice id=engineType value=#{details.engineType} required=true autoSubmit=true immediate=true valueChangeListener=#{shopTimeDetailsHome.handleEngineTypeChanged} s:selectItems value=#{engineTypesQuery.resultList} var=engineType label=#{engineType.name}/ /tr:selectOneChoice /tr:column tr:column headerText=3LC tr:inputText id=threelc value=#{details.threelc} required=true maximumLength=3 rendered=#{!details.isPlaceholder} tr:validateLength maximum=3/ /tr:inputText /tr:column --- And here's an extract of the bean that should handle removing/adding rows (property accesors excluded). The correct row gets removed from the model (from the shopTimeDetails list), but if row index 1 is deleted, then the new values from the old index 2 never make it to the page. I think that's more or less logical: The immediate delete command link causes a short-circuit of the remaining phases and the processing of the non-immediate components never takes place. But it sure must be possible somehow to access the stamped components and update them. Or maybe (hopefully) there's a cleaner/better way to implement this style of UI. Note my pitiful attempt to copy values manually (now commented out). --- public class ShopTimeDetailsHome { private ListShopTimeDetails shopTimeDetails; private transient CoreTable table; public void remove() { String indexText = FacesUtil.getRequestParameter (detailsRowIndex); try { int rowIndex = Integer.parseInt(indexText); //handleRowRemove(rowIndex); shopTimeDetails.remove(rowIndex); updateTransientDetailsProperties(); } catch (NumberFormatException e) { errorLog.error(Expected row index to delete, but got: + indexText, e); } } private void handleRowRemove(int i) { Object oldRowKey = table.getRowKey();// backup current model state try { int rowCount = table.getRowCount(); int columnCount = table.getChildCount(); for (int rowIndex = i; rowIndex rowCount - 1; ++rowIndex) { for (int columnIndex = 0; columnIndex columnCount; ++columnIndex) { copyCell(rowIndex + 1, columnIndex, rowIndex, columnIndex); } } } finally { table.setRowKey(oldRowKey);// restore model state } } private void copyCell(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex) { table.setRowIndex(fromRowIndex); List fromColumns = table.getChildren(); UIComponent column = (UIComponent) fromColumns.get (fromColumnIndex); UIComponent fromCell = (UIComponent) column.getChildren().get(0); if (fromCell instanceof EditableValueHolder) { EditableValueHolder holder = (EditableValueHolder) fromCell; Object value = holder.isLocalValueSet() ? holder.getLocalValue() : holder.getValue(); table.setRowIndex(toRowIndex); List toColumns = table.getChildren(); UIComponent toColumn = (UIComponent) toColumns.get (toColumnIndex); EditableValueHolder toCell = (EditableValueHolder) toColumn.getChildren().get(0); toCell.setValue(value); } } private void updateTransientDetailsProperties() { for (int i = 0; i shopTimeDetails.size(); i++) { ShopTimeDetails details = shopTimeDetails.get(i); boolean isPlaceholder = i == shopTimeDetails.size() - 1; details.setIsPlaceholder(isPlaceholder); details.setRowIndex(i); } }