Re: Missing ELResolver on MyFaces 1.2 for ManagedBean Accesssing
Hi Leonardo, it works perfectly :). Thanks for the very fast answer. Regards, Christian. Am Montag, den 31.05.2010, 19:18 -0500 schrieb Leonardo Uribe: > Hi > > Try use provider scope to load EL api dependency: > > > javax.el > el-api > 1.0 > provided > > > regards, > > Leonardo > > 2010/5/31 Christian Schneider > > > Hi experts, > > i try to access an RequestBean from a SessionBean like this: > > > > final DebuggerBean db = (DebuggerBean) > > FacesContext.getCurrentInstance().getApplication().getELResolver().resolveVariable(facesContext, > > "neededBean"); > > > > This way is described here [1]. > > > > But i got an error that the needed classfile for ELResolver wasn't found on > > my classpath. The project is maven configured and these are my dependencies: > > > > > >javax.faces > >jsf-api > >1.2 > > > > > > > >org.apache.myfaces.core > >myfaces-api > >1.2.8 > >compile > > > > > > > >org.apache.myfaces.core > >myfaces-impl > >1.2.8 > >compile > > > > > > > > > >org.apache.myfaces.tomahawk > >tomahawk12 > >1.1.9 > > > > > > > >com.sun.facelets > >jsf-facelets > >1.1.14 > > > > > > > >javax.servlet > >servlet-api > >2.4 > > > > > > > > How can solve the missing ELResolver class? > > > > If i add the el-api and el-impl to the projects pom, the webserver won't > > start. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for reading/helping, > > Christian. > > > > > > > > [1] http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother > > signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
Re: [Tobago] foreach in c:sheet
Hi Hani, didn't you sent the image or removes the list the attachment? If so, you can also send me the image directly... Regards, Udo Am 31.05.10 09:22, schrieb Abushammala, Hani (EXTERN: FTP): Sorry, i forget to attach the image. Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: FTP) [mailto:extern.hani.abushamma...@volkswagen.de] Gesendet: Freitag, 28. Mai 2010 12:00 An: MyFaces Discussion Betreff: AW: [Tobago] foreach in c:sheet Hi Udo, To explain the problematic i will use the same image in topic "[Tobago] dynamic panels in tc:sheet". I want to create panel within a column to visualize a list of dynamic items as icons for each row of the sheet and the elements of the sheet has a list of the elements to visualize. Also the panel in each row is completely independent, so that the number of elements to visualize is not limted and the links of elements has differnent attributes. Thank you for the help. Regards, Hani -Ursprüngliche Nachricht- Von: Udo Schnurpfeil [mailto:u...@schnurpfeil.de] Gesendet: Freitag, 28. Mai 2010 09:30 An: users@myfaces.apache.org Betreff: Re: [Tobago] foreach in c:sheet Hi Hani, to find the optimal solution for your problem it whould be helpful to have a screenshot of your app. The question is: is the number of links in one column limited? Are the links mostly the same, or are they completely independent? When we have limited links, we can use static links with rendered attributes and we don't have to create lots of components in each row. Regards, Udo Am 27.05.10 12:04, schrieb Abushammala, Hani (EXTERN: FTP): Hi Volker, By component binding i used actually your tip for using rendered attribut (thank you!) After creating the main panel and his children panels for each row of the sheet, i've defined the rendered attribut of the children panels with: ComponentUtil.setBooleanProperty(childPanel /* the i child panel */, TobagoConstants.ATTR_RENDERED, "#{" + sheetVar + ".index == " + item.getIndex() /* for i child panel */ + "}"); So that the first panel will be in rendered in the first row and the rest of panels will be disabled and etc. It works fine, but i need a better solution. The jstl way works also, but all panels will be displayed in each row of sheet. I didn't think about a new implementation of the UIPanel, i will try this one now. Thank you Regards, Hani -Ursprüngliche Nachricht- Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im Auftrag von Volker Weber Gesendet: Donnerstag, 27. Mai 2010 09:45 An: MyFaces Discussion Betreff: Re: [Tobago] foreach in c:sheet Hi, as Udo wrote, you can't use jstl inside tc:sheet! Or to be more precise: the var param of tc:sheet is not available when jstl iterates, because jstl evaluates before tobago starts renderring. I also can't imagine how you do this with component binding, because this is also done before rendering starts. Can you explain how you do this? But there is a way to solve this, you need binding to a extended UIPanel implementation which drops and recreates children depending on sheets var in each process* method. Regards, Volker 2010/5/27 Abushammala, Hani (EXTERN: FTP) : Hello Udo, Sorry, i forget to list the important libraries in use: avalon-framework-4.1.3.jar tobago-core-1.0.24.jar jstl-1.1.0.jar myfaces-impl-1.1.7.jar myfaces-api-1.1.7.jar commons-el-1.0.jar standard-1.1.2.jar Thank you. -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: FTP) [mailto:extern.hani.abushamma...@volkswagen.de] Gesendet: Mittwoch, 26. Mai 2010 15:12 An: MyFaces Discussion Betreff: AW: [Tobago] foreach in c:sheet Hello Udo, I want to add a dynamic panel to a column, which has many elements for each row in the sheet, that means the content of the panel for each row is different (like sheet in sheet). I could do it with programming of whole panel in java and binding it in the jsp, but i am looking now for a different way. I've tried to use jstl, but it doesn`t work to render the right dynamic panel for right row: I've used jstl 1.1. Thank you. -Ursprüngliche Nachricht- Von: Udo Schnurpfeil [mailto:u...@schnurpfeil.de] Gesendet: Dienstag, 25. Mai 2010 09:16 An: users@myfaces.apache.org Betreff: Re: [Tobago] foreach in c:sheet Hello Hani, I've never tried to use, so I have no experience with that tag. Your code will not work, because the content inside of the will be visited only one time. The JSTL Tag needs to be called in each row to make it work. Mixing JSTL and JSF an
Re: [Tobago] foreach in c:sheet
Hi Hani, I got your image, finally. When the boxes are a kind of rating, you may use only one image and vary the value from rating0.gif to rating5.gif like here http://www.macdesktops.net/core/images/rating2.gif Another solution may be using instead of . (Unfortunately there is a little style problem with inside of (line break between the elements, when the column is too small), but I will fix it in the next version) Hope that helps Udo Am 01.06.10 09:49, schrieb Udo Schnurpfeil: Hi Hani, didn't you sent the image or removes the list the attachment? If so, you can also send me the image directly... Regards, Udo Am 31.05.10 09:22, schrieb Abushammala, Hani (EXTERN: FTP): Sorry, i forget to attach the image. Regards, Hani -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: FTP) [mailto:extern.hani.abushamma...@volkswagen.de] Gesendet: Freitag, 28. Mai 2010 12:00 An: MyFaces Discussion Betreff: AW: [Tobago] foreach in c:sheet Hi Udo, To explain the problematic i will use the same image in topic "[Tobago] dynamic panels in tc:sheet". I want to create panel within a column to visualize a list of dynamic items as icons for each row of the sheet and the elements of the sheet has a list of the elements to visualize. Also the panel in each row is completely independent, so that the number of elements to visualize is not limted and the links of elements has differnent attributes. Thank you for the help. Regards, Hani -Ursprüngliche Nachricht- Von: Udo Schnurpfeil [mailto:u...@schnurpfeil.de] Gesendet: Freitag, 28. Mai 2010 09:30 An: users@myfaces.apache.org Betreff: Re: [Tobago] foreach in c:sheet Hi Hani, to find the optimal solution for your problem it whould be helpful to have a screenshot of your app. The question is: is the number of links in one column limited? Are the links mostly the same, or are they completely independent? When we have limited links, we can use static links with rendered attributes and we don't have to create lots of components in each row. Regards, Udo Am 27.05.10 12:04, schrieb Abushammala, Hani (EXTERN: FTP): Hi Volker, By component binding i used actually your tip for using rendered attribut (thank you!) After creating the main panel and his children panels for each row of the sheet, i've defined the rendered attribut of the children panels with: ComponentUtil.setBooleanProperty(childPanel /* the i child panel */, TobagoConstants.ATTR_RENDERED, "#{" + sheetVar + ".index == " + item.getIndex() /* for i child panel */ + "}"); So that the first panel will be in rendered in the first row and the rest of panels will be disabled and etc. It works fine, but i need a better solution. The jstl way works also, but all panels will be displayed in each row of sheet. I didn't think about a new implementation of the UIPanel, i will try this one now. Thank you Regards, Hani -Ursprüngliche Nachricht- Von: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] Im Auftrag von Volker Weber Gesendet: Donnerstag, 27. Mai 2010 09:45 An: MyFaces Discussion Betreff: Re: [Tobago] foreach in c:sheet Hi, as Udo wrote, you can't use jstl inside tc:sheet! Or to be more precise: the var param of tc:sheet is not available when jstl iterates, because jstl evaluates before tobago starts renderring. I also can't imagine how you do this with component binding, because this is also done before rendering starts. Can you explain how you do this? But there is a way to solve this, you need binding to a extended UIPanel implementation which drops and recreates children depending on sheets var in each process* method. Regards, Volker 2010/5/27 Abushammala, Hani (EXTERN: FTP) : Hello Udo, Sorry, i forget to list the important libraries in use: avalon-framework-4.1.3.jar tobago-core-1.0.24.jar jstl-1.1.0.jar myfaces-impl-1.1.7.jar myfaces-api-1.1.7.jar commons-el-1.0.jar standard-1.1.2.jar Thank you. -Ursprüngliche Nachricht- Von: Abushammala, Hani (EXTERN: FTP) [mailto:extern.hani.abushamma...@volkswagen.de] Gesendet: Mittwoch, 26. Mai 2010 15:12 An: MyFaces Discussion Betreff: AW: [Tobago] foreach in c:sheet Hello Udo, I want to add a dynamic panel to a column, which has many elements for each row in the sheet, that means the content of the panel for each row is different (like sheet in sheet). I could do it with programming of whole panel in java and binding it in the jsp, but i am looking now for a different way. I've tried to use jstl, but it doesn`t work to render the right dynamic panel for right row: I've used jstl 1.1. Thank you. -Ursprüngliche Nachricht- Von: Udo Schnurpfeil
Re: MyFaces Test
Hello Jakob, I started using this, and it works great (I used to use Shale Test before -- not a whole lot has changed). I'll write about it when I get the chance. Has any work been done on getting ConfigParser to work with managed beans as well? Right now it just handles converters, UI components, validators, etc. --- 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 Tue, May 25, 2010 at 1:04 PM, Jakob Korherr wrote: > Hi Kito, > > (1) There are two versions of MyFaces-Test: test12 for JSF 1.2 and test20 > for JSF 2.0. > (2) It only uses the JSF-API, so it is not implementation specific. > > However MyFaces test currently is kinda messy, but we are trying to improve > it. That's why there is a MyFaces-Test GSoC project (as Gerhard already > pointed out). > > I hope this helps. > > Regards, > Jakob > > 2010/5/24 Kito Mann > > > Hello Leonardo, > > > > Thanks for the update. Two questions: > > > > (1) Does it work with JSF 1.2? > > (2) Can it be used without MyFaces (i.e. with Mojarra) > > > > --- > > 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 Mon, May 24, 2010 at 4:48 PM, Leonardo Uribe > wrote: > > > > > Hi Kito > > > > > > There is no site for myfaces-test project yet. Currently, this project > is > > > used by myfaces core 2.0.x. Some code that should be on myfaces-test is > > on > > > myfaces-core so in the long term it is necessary to move this code and > do > > a > > > cleanup. Right now, on myfaces impl there are some tests (facelet > testing > > > stuff) that requires create another module on myfaces-test project to > be > > > moved. The only documentation available is the one that comes from > > > shale-test project. > > > > > > regards, > > > > > > Leonardo Uribe > > > > > > 2010/5/24 Kito Mann > > > > > > Hello, > > >> > > >> I'm looking into testing frameworks, and the only info I can find on > > >> MyFaces > > >> Test is the Maven repo: (svn.apache.org/repos/asf/myfaces/test) . Has > > >> anything been written about it? > > >> --- > > >> 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 > > >> > > > > > > > > > > > > -- > Jakob Korherr > > blog: http://www.jakobk.com > twitter: http://twitter.com/jakobkorherr > work: http://www.irian.at >
ExtVal: ELHelper composite component problem
Hello, I am using the ELHelper class in order to achieve information about the value binding of UIComponents (the binded attribute and the corresponding backing bean). This information can be received by the method ELHelper.getPropertyDetailsOfValueBinding(UIComponent), which returns a PropertyDetails-object that contains the data I need. Here is the code: ELHelper helper = ExtValUtils.getELHelper(); PropertyDetails details = helper.getPropertyDetailsOfValueBinding(comp); // The comp-Object is an instance of UIInput. This solution works very well, however, if the comp-object is part of a custom Composite Component, the details-object is always null. I have started to debug the ELHelper but until now I have no clue how it works in detail. I suppose that the problem is caused by the cc.attrs expression in the value-binding of the composite components, e.g., #{cc.attrs.person.name}, that probably can not be resolved. I also tried to use the ValueExpression directly but this did not work as well. Does anyone understand that problem or even have a solution? Thanks in advance for any help Regards, Rene - Facts: JSF: mojarra 2.0.2 ExtVal: 2.0.4 Snapshot Server: Apache Tomcat 6.0.26
Re: ExtVal: ELHelper composite component problem
hi rene, are you using the implementation provided by extval for your custom code? or are you just using extval and the problem occurs during the validation process? regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2010/6/2 Rene Stehr > Hello, > > > > I am using the ELHelper class in order to achieve information about the > value binding of UIComponents (the binded attribute and the corresponding > backing bean). This information can be received by the method > „ELHelper.getPropertyDetailsOfValueBinding(UIComponent)“, which returns a > PropertyDetails-object that contains the data I need. > > > > > > Here is the code: > > ELHelper helper = ExtValUtils.getELHelper(); > > PropertyDetails details = helper.getPropertyDetailsOfValueBinding(comp); // > The comp-Object is an instance of UIInput. > > > > > > This solution works very well, however, if the comp-object is part of a > custom Composite Component, the details-object is always null. I have > started to debug the ELHelper but until now I have no clue how it works in > detail. I suppose that the problem is caused by the “cc.attrs” expression > in > the value-binding of the composite components, e.g., > #{cc.attrs.person.name}, that probably can not be resolved. > > I also tried to use the ValueExpression directly but this did not work as > well. > > > > Does anyone understand that problem or even have a solution? > > > > Thanks in advance for any help > > Regards, > > Rene > > > > - > > Facts: > > JSF: mojarra 2.0.2 > > ExtVal: 2.0.4 Snapshot > > Server: Apache Tomcat 6.0.26 > > > >