AW: MyFaces 1.2.6, JBoss PortletBridge 1.0.0CR3 Postback with LifeRay 5.2.3
Hi I checked this with FireBug. The right form is submitted, and there is a javax.faces.ViewState parameter. But for some reason, it doesn't get to the JSF implementation... Regards Mirko -Ursprüngliche Nachricht- Von: sethfromaust...@gmail.com [mailto:sethfromaust...@gmail.com] Im Auftrag von Jakob Korherr Gesendet: Mittwoch, 17. März 2010 16:44 An: MyFaces Discussion Betreff: Re: MyFaces 1.2.6, JBoss PortletBridge 1.0.0CR3 Postback with LifeRay 5.2.3 Hi, It has to be something like that, yes. But why are there two different forms in the HTML anyway? Regards, Jakob 2010/3/17 Sertic Mirko, Bedag mirko.ser...@bedag.ch h...@all We are running into a strange problem with MyFaces, Facelets, the JBoss PortletBridge running on LifeRay. It seems that normal h:commandLinks are no longer working. After some debugging, it seems that HtmlResponseStateManager.isPostback() always returns false, and the Lifecycle jumps to the RENDER_RESPONSE phase. No action is invoked. In fact there is no VIEW_STATE_PARAM request parameter. What is going wrong here? I noticed that there are two form elements in the resulting HTML of the page. Is the MyFaces JavaScript just submitting the wrong form? Thanks in advance Mirko
[Tobago] Problem using JSP tags with attributes
Hi all, I have a problem using jsp tags with attributes in tobago. Tobago version: 1.0.24-SNAPSHOT Myfaces version: 1.1.6 Tomcat version: 6.0.18 I'm using a tag with the attribute %@ attribute name=dataBean %. If I try to access this attribute inside the tag I get a ParseException. Access: --- tc:sheet value=#{${dataBean}.errors} ... Exception: -- org.apache.commons.el.parser.ParseException: Encountered { at line 1, column 4. Was expecting one of: } ... . ... ... gt ... Is there a problem with the EL parser? Do I have to use a different one? Best regards, Alf -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Re: [Tobago] Problem using JSP tags with attributes
Hi Alf, The expression #{${dataBean}.errors} works in older Servlet APIs with Tobago. It should work until Tomcat 5.5, but doen't work with Tomcat 6.0. It also doesn't work with Facelets, but in Facelets you may use #{dataBean.errors} instead. For JSPs #{dataBean.errors} will work, when dataBean is in some context, it depends on your application, what is the best way to put in in the context. Regards, Udo Am 18.03.10 09:26, schrieb Alf Felis: Hi all, I have a problem using jsp tags with attributes in tobago. Tobago version: 1.0.24-SNAPSHOT Myfaces version: 1.1.6 Tomcat version: 6.0.18 I'm using a tag with the attribute %@ attribute name=dataBean %. If I try to access this attribute inside the tag I get a ParseException. Access: --- tc:sheet value=#{${dataBean}.errors} ... Exception: -- org.apache.commons.el.parser.ParseException: Encountered { at line 1, column 4. Was expecting one of: } ... . ... ... gt ... Is there a problem with the EL parser? Do I have to use a different one? Best regards, Alf
Possible trinidad ui bug?
Hello all. I use a tr:table with rowBandingInterval=1. If i choose to align=right the column, it always stays white and although the other columns set correctly the background color, due to rowBandingInterval=1, these right-aligned column don't. Is this a bug? Thnx! -- __o _\._ (_)/ (_)
Re: [TOBAGO] formatting fields with tx:in
Hi Fernando, this feature is not implemented yet. A global solution might be, sending the String via AJAX on blur to the Converter and let him Format it. We should add this into JIRA. But I don't know, if I want that while typing. It may be irritating the user. Nevertheless you can realize it for your application writing JavaScript. Regards, Udo Am 17.03.10 17:44, schrieb Fernando Augusto: Hello, Is there a way to make tx:in to format the string passed (like a phone number, or anything like) while the user is typing? I tried f:convertNumber to make the currency format but it is not working. Any help on the issue? Best Regards, Fernando Augusto
Re: [Tobago] Problem using JSP tags with attributes
Hi again, I tried Tomcat 6.0.26 and now I get another message: org.apache.jasper.JasperException: /WEB-INF/tags/layout/errorTab.tag(6,8) #{${dataBean}.errors} contains invalid expression(s): javax.el.ELException: Error Parsing: #{${dataBean}.errors} I think I made a mistake while accessing the attribute... but I don't know whats wrong :( Or is it impossible to use such JSP attributes within Tobago? Regards, Alf - original Nachricht Betreff: [Tobago] Problem using JSP tags with attributes Gesendet: Do, 18. Mrz 2010 Von: Alf Felisalf.fe...@gmx.de Hi all, I have a problem using jsp tags with attributes in tobago. Tobago version: 1.0.24-SNAPSHOT Myfaces version: 1.1.6 Tomcat version: 6.0.18 I'm using a tag with the attribute %@ attribute name=dataBean %. If I try to access this attribute inside the tag I get a ParseException. Access: --- tc:sheet value=#{${dataBean}.errors} ... Exception: -- org.apache.commons.el.parser.ParseException: Encountered { at line 1, column 4. Was expecting one of: } ... . ... ... gt ... Is there a problem with the EL parser? Do I have to use a different one? Best regards, Alf -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 --- original Nachricht Ende -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Re: [TOBAGO] tx:date in a popup
Hi, It seems to be a bug. It is correct that you tested it with Internet Explorer? With Firefox it works fine. On the demo app, the AJAX variant to open the popup hasn't this bug. Maybe this is a quick workaround for you. Regards, Udo Am 17.03.10 17:41, schrieb Fernando Augusto: Hello, I am using Tobago 1.0.24 and just ran in a weird situation... I have a form inside a popup, that uses tx:date. When I click in the calendar icon, only the modal DIV appears, behind the popup. I must click the calendar again to show it correctly. I already tried to change the modal property of the popup window to false, but the behavior continues... How can I make the calendar icon to appear in a single click, while the form is inside the popup? Best Regards, Fernando Augusto
Re: [Tobago] Problem using JSP tags with attributes
Hi Udo, sorry... I didn't get your mail :( I will try your solution :) Many thanks!!! Regards, Alf -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Re: [TOBAGO] formatting fields with tx:in
Hello Udo, Thanks for the help. The idea of formatting while typing is common here in Brazil. I'll do it with JS as you said. The AJAX idea is not bad too. Best Regards, Fernando Augusto On Thu, 18 Mar 2010 13:56:34 +0100, Udo Schnurpfeil u...@schnurpfeil.de wrote: Hi Fernando, this feature is not implemented yet. A global solution might be, sending the String via AJAX on blur to the Converter and let him Format it. We should add this into JIRA. But I don't know, if I want that while typing. It may be irritating the user. Nevertheless you can realize it for your application writing JavaScript. Regards, Udo
Re: [Tobago] Problem using JSP tags with attributes
Hi Udo, this doesn't work :( If I use #{dataBean.errors} the given bean (passed by attribute!) won't be found. For example: javax.faces.el.PropertyNotFoundException: Base is null: dataBean My beans are initialized with Spring, but I tried to define them in facesContext, too. Both doesn't work. Any other Idea? Regards, Alf Hi Alf, The expression #{${dataBean}.errors} works in older Servlet APIs with Tobago. It should work until Tomcat 5.5, but doen't work with Tomcat 6.0. It also doesn't work with Facelets, but in Facelets you may use #{dataBean.errors} instead. For JSPs #{dataBean.errors} will work, when dataBean is in some context, it depends on your application, what is the best way to put in in the context. Regards, Udo -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Re: How do I bind nested table using Trinidad?
Navnath, Can you provide more information about what you are trying to achieve? A code snippet would work best. Max navnath kumbhar wrote: Hi There, Can any one suggest me, how do I bind nested table using Trinidad? I am able to bind simple table for row selection, I am trying same for nested table(i.e. child table), but it's not working. Can any one face same issue? Thank You, Navnath Kumbhar.
Re: [Tobago] Problem using JSP tags with attributes
I will try to discribe what I am going to do... For example I will create a sheet (panel, box, etc.) which I can use in different pages. The sheet content should be filled from different beans. Some pages should contain the sheet twice with two different beans containing the data to be displayed. How do I solve this problem? My approach was using jsp tag files containing the sheet part with %@ attribute name=... %, but apparently this doesn't work. Possibly there is a better solution? Best regards, Alf -- GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern E-Mail, SMS mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail
Re: [Tobago] Problem using JSP tags with attributes
Alf, I did that using a few techniques. First, using both actionListener and action methods. When something happens, like a click or else, the actionlistener do all the persist work, while the action is just to adjust a layout bean with the specific need of the transition. Another technique would be using FacesContext, so from somewhere from the code, you are able to change things in other beans. Sorry if I am not able to send you an example of that now, for I am on work time and since all my code is in brazilian portuguese, you won´t be able to understand it fully. But the ideas are there, and I´ve seen them in different parts of tobago-examples. Best Regards, Fernando Augusto On Thu, 18 Mar 2010 16:17:57 +0100, Alf Felis alf.fe...@gmx.de wrote: I will try to discribe what I am going to do... For example I will create a sheet (panel, box, etc.) which I can use in different pages. The sheet content should be filled from different beans. Some pages should contain the sheet twice with two different beans containing the data to be displayed. How do I solve this problem? My approach was using jsp tag files containing the sheet part with %@ attribute name=... %, but apparently this doesn't work. Possibly there is a better solution? Best regards, Alf
Tutorial for MyFaces PortletBridge with Facelets
Hi I'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3. Thanks in advance Mirko
Re: Tutorial for MyFaces PortletBridge with Facelets
Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko
Re: Tutorial for MyFaces PortletBridge with Facelets
Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko
Re: Tutorial for MyFaces PortletBridge with Facelets
Hi In fact, I remember there is a class called FaceletPortletViewHandler. There are not on facelets jars, but exists: http://www.docjar.com/docs/api/com/sun/facelets/FaceletPortletViewHandler.html And it allows run a portlet in liferay with facelets (I tried when it was added orchestra support on portlets and it works). To find the code, it is somewhere on facelets cvs. regards, Leonardo Uribe 2010/3/18 Kito Mann kito.m...@virtua.com Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko
Re: Tutorial for MyFaces PortletBridge with Facelets
The current facelets distributions contains a portlet demo that includes the source for FaceletPortletViewHandler.java. This is currently the best place to start. I have a version that I believe improves on this that I put together for a recent workshop -- basically similar to the above but it includes checks (that have no runtime dependencies on the portlet api) to see if we are running in a portlet request and delegates otherwise. I.e. its designed to work properly if the app is accessed both directly via the web or from a portal AND even if deployed in a web only installation -- no portlet container present. I hope to get this later version online at some point when I can package this workshop as an online tutorial but other higher priorities at the moment. I would of course be happy to send this source to anyone who wants it. -Mike- On 3/18/2010 9:56 AM, Kito Mann wrote: Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com mailto:michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br mailto:ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko
Re: [Tobago] Problem using JSP tags with attributes
Okay, I think I understand what you need. In Tobago the tx:-library was similar. Take some components and combine it to a new one. But because of the disadvantages of Tag-Files we coded it with Java-Code :-( Did you tried running your app with Tomcat 5.5? There are different solutions. The old solutions doesn't work in new Containers with the new JSF spec. When using Facelets, this will work also with JSF 1.1 and JSF 1.2. There might be an ugly solution, but I didn't tried it: JSP: % request.put(x, Foo) % my:tag/ % request.put(x, Bar) % my:tag/ Tag-File: tc:label value=#{x} / It is ugly, because the parameter x can't be seen and I think it will run only with JSF 1.1, but not with JSF 1.2. You can't use % % in Tag-Files, so you can't nest it. My suggestions is: Use Facelets when you can. The good end: The JSF 2.0 Composite Components is the *real* solution for that issue :-) Regards, Udo Am 18.03.10 16:17, schrieb Alf Felis: I will try to discribe what I am going to do... For example I will create a sheet (panel, box, etc.) which I can use in different pages. The sheet content should be filled from different beans. Some pages should contain the sheet twice with two different beans containing the data to be displayed. How do I solve this problem? My approach was using jsp tag files containing the sheet part with%@ attribute name=... %, but apparently this doesn't work. Possibly there is a better solution? Best regards, Alf
Re: Tutorial for MyFaces PortletBridge with Facelets
Mike, Do you have the sources a ready-to-use ViewHandle avalilable somewhere? That is, if you can publish those sources. :-) []s, Fernando Lozano The current facelets distributions contains a portlet demo that includes the source for FaceletPortletViewHandler.java. This is currently the best place to start. I have a version that I believe improves on this that I put together for a recent workshop -- basically similar to the above but it includes checks (that have no runtime dependencies on the portlet api) to see if we are running in a portlet request and delegates otherwise. I.e. its designed to work properly if the app is accessed both directly via the web or from a portal AND even if deployed in a web only installation -- no portlet container present. I hope to get this later version online at some point when I can package this workshop as an online tutorial but other higher priorities at the moment. I would of course be happy to send this source to anyone who wants it. -Mike- On 3/18/2010 9:56 AM, Kito Mann wrote: Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com mailto:michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br mailto:ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko
Re: Tutorial for MyFaces PortletBridge with Facelets
Here is source I used as the answer for the workshop task (I recently gave) of writing a Facelets Viewhandler as part of getting a Facelets demo to work in a portlet environment. It has compile dependencies on Facelet's (subclasses the Facelet's view handler) so you need the Facelets jars in your classpath. I also suggest modifying the package structure to suit your needs as this is based on the workshop. -Mike- On 3/18/2010 10:28 AM, ferna...@lozano.eti.br wrote: Mike, Do you have the sources a ready-to-use ViewHandle avalilable somewhere? That is, if you can publish those sources. :-) []s, Fernando Lozano The current facelets distributions contains a portlet demo that includes the source for FaceletPortletViewHandler.java. This is currently the best place to start. I have a version that I believe improves on this that I put together for a recent workshop -- basically similar to the above but it includes checks (that have no runtime dependencies on the portlet api) to see if we are running in a portlet request and delegates otherwise. I.e. its designed to work properly if the app is accessed both directly via the web or from a portal AND even if deployed in a web only installation -- no portlet container present. I hope to get this later version online at some point when I can package this workshop as an online tutorial but other higher priorities at the moment. I would of course be happy to send this source to anyone who wants it. -Mike- On 3/18/2010 9:56 AM, Kito Mann wrote: Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com mailto:michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br mailto:ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko /** * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jsfdays; import java.io.FileNotFoundException; import java.io.IOException; import java.io.Writer; import java.net.URL; import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import javax.el.ELException; import javax.faces.FacesException; import javax.faces.application.StateManager; import javax.faces.application.ViewHandler; import javax.faces.component.UIViewRoot; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; import javax.faces.render.RenderKit; import com.sun.facelets.FaceletViewHandler; import com.sun.facelets.util.DevTools; import javax.portlet.faces.Bridge; import javax.portlet.MimeResponse; import javax.portlet.PortletResponse; public class PortletFaceletViewHandler extends FaceletViewHandler { public PortletFaceletViewHandler(ViewHandler parent) { super(parent); } protected ResponseWriter
Re: Tutorial for MyFaces PortletBridge with Facelets
Michael, we're using the stock FaceletPortletViewHandler to expose a facelet app as a portlet. Would be great to be able to use the same view handler to view the app directly. So, I'd like the source to your modifications if you are willing to share. Thanks. On 3/18/2010 1:10 PM, Michael Freedman wrote: The current facelets distributions contains a portlet demo that includes the source for FaceletPortletViewHandler.java. This is currently the best place to start. I have a version that I believe improves on this that I put together for a recent workshop -- basically similar to the above but it includes checks (that have no runtime dependencies on the portlet api) to see if we are running in a portlet request and delegates otherwise. I.e. its designed to work properly if the app is accessed both directly via the web or from a portal AND even if deployed in a web only installation -- no portlet container present. I hope to get this later version online at some point when I can package this workshop as an online tutorial but other higher priorities at the moment. I would of course be happy to send this source to anyone who wants it. -Mike- On 3/18/2010 9:56 AM, Kito Mann wrote: Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com mailto:michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br mailto:ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko -- Guy Rouillier
Re: Tutorial for MyFaces PortletBridge with Facelets
It was attached to the e-mail I sent a little while ago (11:12am). Note: this code can only be run with a compliant JSR 301 or 329 Bridge. I.e. it relies on the standard/spec which states the bridge adds a request attribute prior to activating Faces that allows one to check to see if you are running within a portlet request without testing instanceof -- hence avoiding runtime dependencies on portlet classes. -Mike- On 3/18/2010 12:01 PM, Guy Rouillier wrote: Michael, we're using the stock FaceletPortletViewHandler to expose a facelet app as a portlet. Would be great to be able to use the same view handler to view the app directly. So, I'd like the source to your modifications if you are willing to share. Thanks. On 3/18/2010 1:10 PM, Michael Freedman wrote: The current facelets distributions contains a portlet demo that includes the source for FaceletPortletViewHandler.java. This is currently the best place to start. I have a version that I believe improves on this that I put together for a recent workshop -- basically similar to the above but it includes checks (that have no runtime dependencies on the portlet api) to see if we are running in a portlet request and delegates otherwise. I.e. its designed to work properly if the app is accessed both directly via the web or from a portal AND even if deployed in a web only installation -- no portlet container present. I hope to get this later version online at some point when I can package this workshop as an online tutorial but other higher priorities at the moment. I would of course be happy to send this source to anyone who wants it. -Mike- On 3/18/2010 9:56 AM, Kito Mann wrote: Michael, What would be the best way to distribute the portlet version of the Facelets view handler? --- Kito D. Mann | twitter: kito99 | Author, JSF in Action Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter: jsfcentral +1 203-404-4848 x3 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman michael.freed...@oracle.com mailto:michael.freed...@oracle.com wrote: Not quite true. Facelets native ViewHandler is servlet dependent. The trick for running Facelets in a portlet environment via a bridge is to provide an alternative ViewHandler using the portlet APIs and configuring this ViewHandler in your faces-config.xml. So yes the MyFace Portlet bridge doesn't inherently include this ViewHandler (it requires facelet dependent code) it is easy to add/generate to your app. In fact I gave a workshop recently where one of the samples was to complete such a ViewHandler and package in an app with the MyFaces Portlet Bridge to run a facelets sample as a portlet. -Mike- On 3/18/2010 9:31 AM, ferna...@lozano.eti.br mailto:ferna...@lozano.eti.br wrote: Hi there, AFAIK facelets is not supported by the current portlet-bridge JSRs (both for PortletAPI 1.0 and 2.0) so MyFaces Portlet Bridge, which is the RI for both JSRs, does not support facelets. []s, Fernand Lozano HiI'd like to know if there is a kind of reference documentation available for running the MyFaces Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in advanceMirko
How do I bind nested table using Trinidad?
Hi There, Can any one suggest me, how do I bind nested table using Trinidad? I am able to bind simple table for row selection, I am trying same for nested table(i.e. child table), but it's not working. :working: Can any one face same issue? Thank You, Navnath Kumbhar. -- View this message in context: http://old.nabble.com/How-do-I-bind-nested-table-using-Trinidad--tp27950889p27950889.html Sent from the MyFaces - Users mailing list archive at Nabble.com.