tag:blogger.com,1999:blog-8492059842142356488.post7002306109919807258..comments2023-09-23T16:46:57.616+02:00Comments on Thoughts on software development: Passing JSF action methods into ui:includeOleg Varaksinhttp://www.blogger.com/profile/13872270134068047346noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-8492059842142356488.post-45011485570289936232011-07-20T06:30:09.154+02:002011-07-20T06:30:09.154+02:00Hi,
I am having one requirement. I need to pass t...Hi,<br /><br />I am having one requirement. I need to pass the param value to the backing bean like<br /><br />ui:include src="/template/common/commonHeader.xhtml"<br />ui:param name="tagLine" value="JSF value"<br />/ui:param<br />/ui:include<br /><br />I need to pass the param value to some backing bean. How can we do this? This value we will use to query the DB to display the data on the pageAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-3755353662992870802011-07-20T06:28:04.396+02:002011-07-20T06:28:04.396+02:00Hi,
I am having one requirement. I need to pass t...Hi,<br /><br />I am having one requirement. I need to pass the param value to the backing bean like<br /><br /><br /><br /><br /><br />I need to pass the param value to some backing bean. How can we do this? This value we will use to query the DB to display the data on the page.....Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-61744420008693748402011-05-04T07:10:13.295+02:002011-05-04T07:10:13.295+02:00I am using jsf1.2,
In 1.jsf i have written the cod...I am using jsf1.2,<br />In 1.jsf i have written the code as :<br /><br /><br /> <br /> <br /> <br /><br />and 2.jsf i am trying to fetch value of 'contestNm' , code as ...<br /><br />#{contestNm}<br /><br />value is not coming ...<br />Can anybody help regarding this.<br />Thanks in Advance<br />Vimala.vimuhttps://www.blogger.com/profile/03857791585392627901noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-64710705698845446532011-05-04T07:08:49.900+02:002011-05-04T07:08:49.900+02:00I am using jsf1.2,
In 1.jsf i have written the co...I am using jsf1.2, <br />In 1.jsf i have written the code as :<br /><br /><br /> <br /> <br /> <br /><br />and 2.jsf i am trying to fetch value of 'contestNm' , code as ...<br /><br />#{contestNm}<br /><br />value is not coming ...<br />Can anybody help regarding this.<br />Thanks in Advance<br />Vimala.vimuhttps://www.blogger.com/profile/03857791585392627901noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-7938564816516102192011-03-18T17:08:11.508+01:002011-03-18T17:08:11.508+01:00Interesting. I'm using JSF 2 (the last Mojarra...Interesting. I'm using JSF 2 (the last Mojarra 2.1.1).Oleg Varaksinhttps://www.blogger.com/profile/13872270134068047346noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-46834918792147268342011-03-18T17:00:08.158+01:002011-03-18T17:00:08.158+01:00yes... the method is there...
without single-quot...yes... the method is there...<br /><br />without single-quote is working<br /><br />action="#{bean[filterAction]}"<br /><br /><br /><br />i am usin jsf1.2<br />you?antoniohttps://www.blogger.com/profile/14649602340958361650noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-11403956745515480432011-03-18T16:20:17.538+01:002011-03-18T16:20:17.538+01:00Oh, yes, you are right. "if you don't use...Oh, yes, you are right. "if you don't use EL 2.x" is related to f:setPropertyActionListener. To your problem - do you sure you have the method filterAction in your bean reportRequestBean? I have such syntax in at least 2 projects and everything works fine.Oleg Varaksinhttps://www.blogger.com/profile/13872270134068047346noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-17049724025362979062011-03-18T14:22:33.657+01:002011-03-18T14:22:33.657+01:00wait... i dont need any param
just to call the met...wait... i dont need any param<br />just to call the method...<br /><br />its a void...<br /><br />and i read in your article <br /><br />[...]or if you don't use EL 2.x[...]<br /><br /><br />am i wrong?!antoniohttps://www.blogger.com/profile/14649602340958361650noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-30051421190715733872011-03-18T12:50:03.111+01:002011-03-18T12:50:03.111+01:00You need at least EL 2.0 to be able to call method...You need at least EL 2.0 to be able to call methods with parameters :-) I have never tried EL 2.0 with JSF 1.2, but I think they should play nice together.Oleg Varaksinhttps://www.blogger.com/profile/13872270134068047346noreply@blogger.comtag:blogger.com,1999:blog-8492059842142356488.post-79554644685981153622011-03-18T12:13:08.982+01:002011-03-18T12:13:08.982+01:00hi
nice article... just what i need
but im stuck.....hi<br />nice article... just what i need<br />but im stuck...<br /><br />seems like my included facelet cannot interpret the following EL<br /><br />...action="#{reportRequestBean['filterAction']}"...<br /><br />the except is:<br /><br />javax.servlet.ServletException: #{reportRequestBean['filterAction']}: javax.el.MethodNotFoundException: /pages/filtri_ricerca_report.xhtml @68,125 action="#{reportRequestBean['filterAction']}": Method not found: it.enel.amr.mbeans.ReportRequestBean@4f36b91b.filterAction()<br /><br /><br /><br />fact is that the facelet receives and reads the params, indeed in a h:outputText it prints the value of the method to call...<br /><br /><br />jsf 1.2<br />el 1.1<br /><br /><br />thanks bud<br />;)antoniohttps://www.blogger.com/profile/14649602340958361650noreply@blogger.com