Tomahawk Input Calender in RAD and Portal Server
Hi All, Is anybody using Tomahawk t:inputCalender in RAD 6.0 and websphere portal server 5.1.0.3. Is it working properly.?? If so which version of tomahawk,RAD and Portal Server are you using. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Re: Sub columns in datatable
Hi Martin/Mike, I think i could not upload the image file. This is how my table should look like: How can i acheive it. I have tried nesting tables but all my attempts are in vain. In which build of tomahawk can i see headercolspan in t:column. Do we have anything in tomahawk for colspan and rowspan as in HTML tables. Would appreciate any help. --++ | SSN | Names| Profession | + | | FN |MN | LN | | --+-+-+-+--- -- |10 | A| B | C| Engg | --++-+--+--- - |20 | E| F|G| Doc | -- The below code down not help me acheive this: t:column id=col2 f:facet name=header h:outputText value=Names / /f:facet t:column id=d1 f:facet name=header h:outputText value=First Name/ /f:facet h:outputText value=#{subBean.firstData} / /t:column t:column id=d2 f:facet name=header h:outputText value=Middle Name/ /f:facet h:outputText value=#{subBean.middleData} / /t:column t:column id=d3 f:facet name=header h:outputText value=Last Name/ /f:facet h:outputText value=#{subBean.lastData} / /t:column /t:column Best Regards, Pallavi From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 8:58 PM To: MyFaces Discussion Subject: Re: Re: Sub columns in datatable myBean.setFName() and myBean.getFName() in the source would mean: #{myBean.FName} in the JSP regards, Martin On 2/28/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Two possibilities that I know of: 1 - you didn't provide the correct getter accessor. (public, correct type, etc) 2 - you didn't name the getter correctly. This is probably the issue since your code below has FName but your error message has fName. I'd recommend avoiding names starting with consecutive capital letters unless you have a good understanding of bean property naming conventions. On 2/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, I am getting this exception when i try nesting my dataTable: I am unable to read Names from the bean. Could you let me know why i am getting this exception. How can i include sub headers in my nested datatable. javax.faces.el.PropertyNotFoundException : Error getting property 'fName' from bean of type rich.poor.NamesVO This is my data model: public class SubDataBean { int ssn; String profession; List myNames; } public class NamesVO { String fName; String mName; String lName; } In my manage bean i am populationg the datalist in the following manner: public void populateData(){ SubDataBean b1 = new SubDataBean(); NamesVO t1 = new NamesVO(); List x1 = new ArrayList(); b1.setSsn(10); t1.setFName(Pabitra); t1.setMName(Kumar); t1.setLName(Roy); x1.add(t1); b1.setMyNames(x1); b1.setProfession(Mechanical Engineer); dataList.add(b1); } t:column id=col2 f:facet name=header h:outputText value=Names / /f:facet t:dataTable id=insideCol value=#{subBean.myNames} var=demoBean rows=2 cellspacing=0 styleClass=dataTable columnClasses=firstColumn,secondColumn,thirdColumn t:column id=c1 h:outputText value=#{demoBean.fName} / /t:column Best Regards, Pallavi From: Werner Punz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 5:48 PM To: Pallavi Roy(WT01 - HLS) Subject: Re: Re: Sub
colspan and headercolspan in t:column
Hi All, In which build of Tomahawk can i find these attributes. The TLD doc shows reference to it. Any reference on how to use these attributes. http://myfaces.apache.org/tomahawk/tlddoc/index.html Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Re: Sub columns in datatable
Hi All, I am getting this exception when i try nesting my dataTable: I am unable to read Names from the bean. Could you let me know why i am getting this exception. How can i include sub headers in my nested datatable. javax.faces.el.PropertyNotFoundException: Error getting property 'fName' from bean of type rich.poor.NamesVO This is my data model: public class SubDataBean { int ssn; String profession; List myNames; } public class NamesVO { String fName; String mName; String lName; } In my manage bean i am populationg the datalist in the following manner: public void populateData(){ SubDataBean b1 = new SubDataBean(); NamesVO t1 = new NamesVO(); List x1 = new ArrayList(); b1.setSsn(10); t1.setFName(Pabitra); t1.setMName(Kumar); t1.setLName(Roy); x1.add(t1); b1.setMyNames(x1); b1.setProfession(Mechanical Engineer); dataList.add(b1); } t:column id=col2 f:facet name=header h:outputText value=Names / /f:facet t:dataTable id=insideCol value=#{subBean.myNames} var=demoBean rows=2 cellspacing=0 styleClass=dataTable columnClasses=firstColumn,secondColumn,thirdColumn t:column id=c1 h:outputText value=#{demoBean.fName} / /t:column Best Regards, Pallavi From: Werner Punz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 5:48 PM To: Pallavi Roy(WT01 - HLS) Subject: Re: Re: Sub columns in datatable t:dataTable id=insideCol value=#{subBean .dataList} var=demoBean rows=2 rowClasses=row,row_alt cellspacing=0 styleClass=dataTable headerClass=headerClass otherwise you will not have a reference to the current row... On 2/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Werner, I have implemented in the follwoing way but my page is not getting rendered. I have nested another dataTable in the second column. Could you let me know my mistake. f:view h:form id=mySub t:dataTable id=subColumn value=#{my_SubManageBean.dataList} var=subBean rows=2 rowClasses=row,row_alt width=100% cellspacing=0 styleClass=dataTable headerClass=headerClass t:column id=col1 f:facet name=header h:outputText value=SSN / /f:facet h:outputText value=#{subBean.ssn} / /t:column t:column id=col2 f:facet name=header h:outputText value=Names / /f:facet t:dataTable id=insideCol value=#{my_SubManageBean.dataList} var=demoBean rows=2 rowClasses=row,row_alt cellspacing=0 styleClass=dataTable headerClass=headerClass t:column id=c1 f:facet name=header h:outputText value=First Name / /f:facet h:outputText value=#{demoBean.fName} / /t:column t:column id=c2 f:facet name=header h:outputText value=Middle Name / /f:facet h:outputText value=#{demoBean.mName} / /t:column t:column id=c3 f:facet name=header h:outputText value=Last Name / /f:facet h:outputText value=#{demoBean.lName} / /t:column /t:dataTable /t:column t:column id=col3 f:facet name=header h:outputText value=Profession / /f:facet h:outputText value=#{subBean.profession} / /t:column /t:dataTable /h:form /f:view Best Regards, Pallavi From: Werner Punz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 4:06 PM To: Pallavi Roy(WT01 - HLS) Subject: Re: Re: Sub columns in datatable not yet since i am not at home, but here is how you do it in a datatable you have a var which you use to display your data in the table columns oc you just have to push this var into a nested column datalist or datatable and process it like you would a standalone table On 2/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Werner, Do you have any code snippet as to how can I add my sub headers using dataList to t:dataTable. How would the data model be affected Class SubDataBean{ int ssn; String fName; String mName; String lName; String profession;
RE: Re: Sub columns in datatable
Hi Werner, Do you have any code snippet as to how can I add my sub headers using dataList to t:dataTable. How would the data model be affected Class SubDataBean{ int ssn; String fName; String mName; String lName; String profession; } Best Regards, Pallavi -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz Sent: Monday, February 26, 2007 6:04 PM To: users@myfaces.apache.org Subject: Re: Sub columns in datatable [EMAIL PROTECTED] schrieb: Hi all, How to include sub columns in datatable. It has three columns Ssn,Names,profession. As illustrated in the fig below for Names (first names,middle names,last names). How to get the sub columns in the datatable. Try to nest a datalist into the colum of your table this should be possible. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Problems using t:aliasBean
Hi Laurentiu, Please refer to the link at wiki page for usage of aliasBean. http://wiki.apache.org/myfaces/AliasBean. Mention the dataBean name to which property test is bound.(as in faces-config.xml the managed bean name where your test bean property is getting used). When you want to ensure reusability of a bean. t:aliasBean alias=#{aliasB} value=#{test} t:outputText value=#{aliasB.text} / /t:aliasBean Best Regards, Pallavi From: Laurentiu Trica [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 4:37 PM To: MyFaces Discussion Subject: Problems using t:aliasBean Hi I have to use the aliasBean for my page and I get this error: Caused by: javax.faces.el.PropertyNotFoundException: /pages/test.xhtml @11,46 value=#{aliasB['text']}: Bean: java.lang.String, property: text at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java: 58) at javax.faces.component.UIOutput.getValue(UIOutput.java:80) at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValu e(RendererUtils.java:223) The page code is this: t:aliasBean alias=#{aliasB} value=#{test} t:outputText value=#{aliasB.text} / /t:aliasBean The backing bean code is: public class Test { private String text = TEXT; public String getText() { return text; } public void setText(String text) { this.text = text; } } Can anybody help? -- Best regards, Laurentiu The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: How to make Reusable JSP
Hi Cagatay, I have gone through the link which helps on forming composite objects. But i have a slightly different requirement. I was going through the wiki link for alias bean usage http://wiki.apache.org/myfaces/AliasBean. Which has an illustration of this example. How come it has the same holder value and different bean names.Do you know the reason. ... main form using the alias bean x:aliasBean alias=#{holder} value=#{databean1} f:subView jsp:include page=subpage.jsp/ /f:subView /x:aliasBean x:aliasBean alias=#{holder} value=#{databean2} f:subView jsp:include page=subpage.jsp/ /f:subView /x:aliasBean x:aliasBean alias=#{holder} value=#{databean3} f:subView jsp:include page=subpage.jsp/ /f:subView /x:aliasBean I have taken your example of class Geo { private String longitude; private String latitude;} I have my databean class Stadium { private String name; private String club; private Geo geoLoc1; private Geo geoLoc2;} I have my managed bean StadiumController { private Stadium std;} Can i want to do something like this. t:aliasBeansScope t:aliasBean alias=#{my_Geo} value=#{my_Stadium.geoLoc1}/t:aliasBean f:subview id=abc jsp:include page=geoLoc.jsp/jsp:include /f:subview t:aliasBean alias=#{my_AnGeo} value=#{my_Stadium.geoLoc2}/t:aliasBean f:subview id=xyz jsp:include page=geoLoc.jsp/jsp:include /f:subview /t:aliasBeansScope But how do i ensure reusabilty in my geoLoc.jsp. h:panelGrid columns=2 h:outputText value=Please enter longitude / h:inputText id=txt_lattitude value=#{my_Geo.longitude} / h:outputText value=Please enter latitude / h:inputText id=txt_longitude value=#{my_Geo.latitude} / /h:panelGrid This is my faces-config.xml. managed-bean managed-bean-namemy_Geo/managed-bean-name managed-bean-classcom.exper.acs.Geo/managed-bean-class managed-bean-scoperequest/managed-bean-scope /managed-bean managed-bean managed-bean-namemy_AnGeo/managed-bean-name managed-bean-classcom.exper.acs.Geo/managed-bean-class managed-bean-scoperequest/managed-bean-scope /managed-bean managed-bean managed-bean-namemy_Stadium/managed-bean-name managed-bean-classcom.exper.acs.Stadium/managed-bean-class managed-bean-scoperequest/managed-bean-scope managed-property property-namegeoLoc1/property-name value#{my_Geo}/value /managed-property managed-property property-namegeoLoc2/property-name value#{my_AnGeo}/value /managed-property managed-bean Best Regards, Pallavi From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 7:20 PM To: MyFaces Discussion Subject: Re: How to make Reusable JSP Hi, Here's more info; http://wiki.apache.org/myfaces/Creating_Composite_Components By use of alias bean you can define any number of composition components like jspf's in your page. Cagatay On 2/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Cagatay, What a marvellous solution. But can it help me to inlcude the jsp fragment twice in a jsp without overwriting the previous value. Please let me know the importance of t:aliasBeansScope in the below example. t:aliasBeansScope t:aliasBean alias=#{geoLocationAlias} value=#{StadiumEditBean.stadium.geoLocation} / f:subview id=geoLocationView %@ include file=geoLocation.jspf% /f:subview /t:aliasBeansScope Best Regards, Pallavi From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 2:09 PM To: MyFaces Discussion Subject: Re: How to make Reusable JSP Hi, Here's an example; http://www.jroller.com/page/cagataycivici?entry=jsf_composition_componen ts_with_aliasbean Regards, Cagatay On 2/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi All, A) I have a common address JSP which i want to use it in several other Jsps. Having the content below and i want to set this address value in a common AddressVO object(POJO). h:outputText value=Enter the address / h:inputText id=add1 value=#{pc_AddressVO.addLine} / B) I want to use this data in another jsp in the following manner. f:view h:form id=myform
How to make Reusable JSP
Hi All, A) I have a common address JSP which i want to use it in several other Jsps. Having the content below and i want to set this address value in a common AddressVO object(POJO). h:outputText value=Enter the address / h:inputText id=add1 value=#{pc_AddressVO.addLine} / B) I want to use this data in another jsp in the following manner. f:view h:form id=myform Enter Name : h:inputText id=name1 value=#{pc_ClaimsDataBean.myVO.name}/ Enter Profession : h:inputText id=prof1 value=#{pc_ClaimsDataBean.myVO.profession} / f:subview id=xyz jsp:include page=Address.jsp / /f:subview Enter TCN : h:inputText id=tcn1 value=#{pc_ClaimsDataBean.tcn} / Enter Status : h:inputText id=status1 value=#{pc_ClaimsDataBean.status} / f:subview id=abc jsp:include page=Address.jsp / /f:subview h:commandButton id=button1 value=Submit action=#{pc_ClaimsManageBean.save} / /h:form /f:view C) In my ClaimsManageBean I want to set the data in my ClaimsDataBean in the follwoing manner ValueBinding bind1 = fc.getApplication().createValueBinding(#{pc_ClaimsDataBean}); ClaimsDataBean iniVO = (ClaimsDataBean)bind1.getValue(fc); ValueBinding bind2 = fc.getApplication().createValueBinding(#{pc_AddressVO}); AddressVO initVO = (AddressVO)bind2.getValue(fc); iniVO.setAddVO(initVO); But this will give a problem , the last value set in the AddressVO will be set in the DataBean i lose the previous value. Is there a way i can make a reusable jsp which can be used in other JSPs several times. What are the other possible design strategies. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: How to make Reusable JSP
Hi Cagatay, What a marvellous solution. But can it help me to inlcude the jsp fragment twice in a jsp without overwriting the previous value. Please let me know the importance of t:aliasBeansScope in the below example. t:aliasBeansScope t:aliasBean alias=#{geoLocationAlias} value=#{StadiumEditBean.stadium.geoLocation} / f:subview id=geoLocationView %@ include file=geoLocation.jspf% /f:subview /t:aliasBeansScope Best Regards, Pallavi From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 2:09 PM To: MyFaces Discussion Subject: Re: How to make Reusable JSP Hi, Here's an example; http://www.jroller.com/page/cagataycivici?entry=jsf_composition_componen ts_with_aliasbean Regards, Cagatay On 2/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi All, A) I have a common address JSP which i want to use it in several other Jsps. Having the content below and i want to set this address value in a common AddressVO object(POJO). h:outputText value=Enter the address / h:inputText id=add1 value=#{pc_AddressVO.addLine} / B) I want to use this data in another jsp in the following manner. f:view h:form id=myform Enter Name : h:inputText id=name1 value=#{pc_ClaimsDataBean.myVO.name}/ Enter Profession : h:inputText id=prof1 value=#{pc_ClaimsDataBean.myVO.profession} / f:subview id=xyz jsp:include page=Address.jsp / /f:subview Enter TCN : h:inputText id=tcn1 value=#{pc_ClaimsDataBean.tcn} / Enter Status : h:inputText id=status1 value=#{pc_ClaimsDataBean.status} / f:subview id=abc jsp:include page=Address.jsp / /f:subview h:commandButton id=button1 value=Submit action=#{pc_ClaimsManageBean.save} / /h:form /f:view C) In my ClaimsManageBean I want to set the data in my ClaimsDataBean in the follwoing manner ValueBinding bind1 = fc.getApplication().createValueBinding(#{pc_ClaimsDataBean}); ClaimsDataBean iniVO = (ClaimsDataBean)bind1.getValue(fc); ValueBinding bind2 = fc.getApplication().createValueBinding(#{pc_AddressVO}); AddressVO initVO = (AddressVO)bind2.getValue(fc); iniVO.setAddVO(initVO); But this will give a problem , the last value set in the AddressVO will be set in the DataBean i lose the previous value. Is there a way i can make a reusable jsp which can be used in other JSPs several times. What are the other possible design strategies. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Pagination of large database tables
Hi Paul, Thank you for your response. But after going through this I have couple of questions on implementations. Being pretty new jsf i am sorry if some of my doubts are irrelavent. Since i want my GUI to look like 1 2 3 4 5 More .I need to implement a new facetn something like this while customizing t:DataScroller f:facet name=DBfetch h:outputText value=More rendered=condition/h:outputText /f:facet Since Select COUNT(*) from DB is a time consuming operation.The client has ruled out this option. So with the click of More i want to perform a database fetch in subsets of 250 records at a time. I want to perform this operation in my page bean. I want to know how can i link this getfetchData() method in my page bean with the t:DataScroller. Is it possible.?? Best Regards, Pallavi From: Paul Iov [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 6:48 PM To: MyFaces Discussion Subject: Re: Pagination of large database tables Hi Pallavi! First of all take a look at http://wiki.apache.org/myfaces/WorkingWithLargeTables. The illustrating code there is IMHO a little bit buggy (especially for subsets of large datasets, which commes from EJB it makes no sense to fetch the same page twice, since the sorting order never chahges), but generally this approach works fine. I have exactly the same usecase - large resultsets and fetching on demand, but I'm using ac:AjaxDataScroller insteed of t:dataScroller, because the second one is not Ajax-compatible :( Any way, with own extended implementation of DataModel im background it would be preaty easy to implement fetch more feature, you are asking for. regards, paul [EMAIL PROTECTED] schrieb: Hi All, I currently have a requirement for pagination. I want the following GUI display 1 2 3 4 5 more . Where on click of is for previous. And on click of is for next. So with these two i could go ahead with t:dataScroller for the above mentioned functionlity. But if i had the advantage of knowing the total number of rows with DB to perform COUNT operation on the total number of rows. But for larger tables this wouldn't be efficient. Hence the requirement demands fetching rows in multiples of 250. And each page displaying 50 rows per page. With the click on more it would fetch the next 250 rows. And the display should look like 6 7 8 9 10 More .(something similar to google's pagination). Is there a way by which i can implement this. Or can i extend the functionality of t:dataScroller to implement this. Any suggestions are welcome. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Pagination of large database tables
Hi All, I currently have a requirement for pagination. I want the following GUI display 1 2 3 4 5 more . Where on click of is for previous. And on click of is for next. So with these two i could go ahead with t:dataScroller for the above mentioned functionlity. But if i had the advantage of knowing the total number of rows with DB to perform COUNT operation on the total number of rows. But for larger tables this wouldn't be efficient. Hence the requirement demands fetching rows in multiples of 250. And each page displaying 50 rows per page. With the click on more it would fetch the next 250 rows. And the display should look like 6 7 8 9 10 More .(something similar to google's pagination). Is there a way by which i can implement this. Or can i extend the functionality of t:dataScroller to implement this. Any suggestions are welcome. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
How to access request parameters
Hi All, I am not sure if it portal specific or jsf specific. I have JSR-168 faces portlet where i intend to pass a request parameter as : http://localhost:9081/wps/myportal/Pagination?name=pallavi http://localhost:9081/wps/myportal/Pagination?name=pallavi http://localhost:9081/wps/myportal/Pagination?name=pallavi And in my Faces Portlet code i want to use the paramter to display the name in scriptlet code.In this way : % String userValue = request.getParameter(name); % Hi !! %= userValue % But this doesn't seem to work. i only get the message : Hi !! null What is the reason for the request parameter for not being visible. Are there any work arounds. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Double click again.....
Hi All, Has anybody worked with Shale on Websphere Portal 5.1 and RAD.? I am not getting any refernece on the net. If yes then please help me to get shale up and running on Websphere. I am getting the exception : Exception during portlet initialization. Adrian in the mean time i am trying to use shale-core.jar source code for token. a) component-Token b) renderer-TokenRenderer c) taglib-TokenTag d) utils-TokenProcessor e) META-INF-taglib.tld and facesConfig.xml. phew... have i missed anything.(its like re-inventing the wheel) Best Regards, Pallavi From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 5:49 PM To: MyFaces Discussion Subject: Re: Double click again. You could just download the token's source code and use only the component without the other features of shale-core 2006/12/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi All, I had posted a similar query earlier to prevent double click of a form button. I could use Shale's s:token but i ran into compatibility issues between RAD6.0.1 and Shale-core.jar1.0.3. So i had to give it up and try another approach using Synchronizer Token pattern as in sytuts. Please help me fine tune it.Please go ahead to provide me any other elegant approach. I want to call the method generateSaveToken() from phaseListener. Is it possible. Jsp Page h:form h:inputText id=text1/ h:inputHidden value=#{visit.saveToken} / h:commandButton value=Submit id=button1 action=#{reqBean.actionMethod} / /h:form FacesConfig.xml managed-bean descriptionSession bean that holds data and delegates needed by request beans./description managed-bean-namevisit/managed-bean-name managed-bean-classcom.acs.click.Visit/ managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean managed-bean descriptionSome request bean./description managed-bean-namereqBean/managed-bean-name managed-bean-classcom.acs.click.RequestBean/ managed-bean-class managed-bean-scoperequest/managed-bean-scope managed-property property-namevisit/property-name value#{sessionScope.visit}/value /managed-property /managed-bean Visit.java public class Visit extends BaseBean { private long activeToken; private long receivedToken; public long getSaveToken() { return this.activeToken; } public void setSaveToken(long aToken) { this.receivedToken = aToken; } public long getActiveToken() { return activeToken; } public void setActiveToken(long activeToken) { this.activeToken = activeToken; } public long getReceivedToken() { return receivedToken; } public void setReceivedToken(long receivedToken) { this.receivedToken = receivedToken; } boolean tokensMatch() { return (this.activeToken == this.receivedToken); } } RequestBean.java public class RequestBean extends BaseBean { public String actionMethod() { // prevent identical requests from being processed String normalOutcome = Google-NOT-OK; if (this.saveTokenIsInValid() ) return this.logInvalidSaveAndReturn(normalOutcome); this.expireSaveToken(); System.out.println(save token is valid. attempting to save); try { // invoke some business logic here } catch (Exception exc) { this.generateSaveToken(); return null; } this.generateSaveToken(); return success; } BaseBean.java public class BaseBean { protected void generateSaveToken() { System.out.println(generateSaveToken()); Random random = new Random(); long token = random.nextLong(); while (token == 0) { token = random.nextLong(); } System.out.println(Save token generated =+ token); this.getVisit().setActiveToken(token); this.getVisit().setReceivedToken(0); } protected boolean saveTokenIsInValid() { System.out.println(saveTokenIsValid():\n
Double click again.....
Hi All, I had posted a similar query earlier to prevent double click of a form button. I could use Shale's s:token but i ran into compatibility issues between RAD6.0.1 and Shale-core.jar1.0.3. So i had to give it up and try another approach using Synchronizer Token pattern as in sytuts. Please help me fine tune it.Please go ahead to provide me any other elegant approach. I want to call the method generateSaveToken() from phaseListener. Is it possible. Jsp Page h:form h:inputText id=text1/ h:inputHidden value=#{visit.saveToken} / h:commandButton value=Submit id=button1 action=#{reqBean.actionMethod} / /h:form FacesConfig.xml managed-bean descriptionSession bean that holds data and delegates needed by request beans./description managed-bean-namevisit/managed-bean-name managed-bean-classcom.acs.click.Visit/managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean managed-bean descriptionSome request bean./description managed-bean-namereqBean/managed-bean-name managed-bean-classcom.acs.click.RequestBean/managed-bean-class managed-bean-scoperequest/managed-bean-scope managed-property property-namevisit/property-name value#{sessionScope.visit}/value /managed-property /managed-bean Visit.java public class Visit extends BaseBean { private long activeToken; private long receivedToken; public long getSaveToken() { return this.activeToken; } public void setSaveToken(long aToken) { this.receivedToken = aToken; } public long getActiveToken() { return activeToken; } public void setActiveToken(long activeToken) { this.activeToken = activeToken; } public long getReceivedToken() { return receivedToken; } public void setReceivedToken(long receivedToken) { this.receivedToken = receivedToken; } boolean tokensMatch() { return (this.activeToken == this.receivedToken); } } RequestBean.java public class RequestBean extends BaseBean { public String actionMethod() { // prevent identical requests from being processed String normalOutcome = Google-NOT-OK; if (this.saveTokenIsInValid() ) return this.logInvalidSaveAndReturn(normalOutcome); this.expireSaveToken(); System.out.println(save token is valid. attempting to save); try { // invoke some business logic here } catch (Exception exc) { this.generateSaveToken(); return null; } this.generateSaveToken(); return success; } BaseBean.java public class BaseBean { protected void generateSaveToken() { System.out.println(generateSaveToken()); Random random = new Random(); long token = random.nextLong(); while (token == 0) { token = random.nextLong(); } System.out.println(Save token generated =+ token); this.getVisit().setActiveToken(token); this.getVisit().setReceivedToken(0); } protected boolean saveTokenIsInValid() { System.out.println(saveTokenIsValid():\n active token: + this.getVisit().getActiveToken() + \n recv'd token: + this.getVisit().getReceivedToken() ); boolean isValid = this.getVisit().tokensMatch(); return !isValid; } protected void expireSaveToken() { System.out.println(expireSaveToken()); this.getVisit().setActiveToken(0); } protected String logInvalidSaveAndReturn(String outcome) { System.out.println(User submitted a save request that was not + processed because the save token was not valid. Returning outcome: ' + outcome + '.); return outcome; } // Used by JSF managed bean creation facility public Visit getVisit() { FacesContext context = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) context.getExternalContext().getSession(false); Visit visit = (Visit) session.getAttribute(visit); return visit; } // Used by JSF managed bean creation facility public void setVisit(Visit visit) { FacesContext context = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) context.getExternalContext().getSession(false); session.setAttribute(visit,visit); } } Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company
RE: Shale's s:token to prevent double click
Hi Adrian, Thank you for your reply. I can see the page is written by you. I visted the second link.But i can see several jar files.(mailreader-jpa-1.0.3.zip http://people.apache.org/dist/shale/v1.0.3/mailreader-jpa-1.0.3.zip ,shale-blank-1.0.3.zip http://people.apache.org/dist/shale/v1.0.3/shale-blank-1.0.3.zip ,shale-clay-usecases-1.0.3.zip http://people.apache.org/dist/shale/v1.0.3/shale-clay-usecases-1.0.3.zi p etc). Which is the one that i need to download. Please let me know that if i use this s:token in my application. How can i test it if it is working. i can see in the example as h:form h:message for=token/ ... s:token id=token/ /h:form Does it throw an error message when the button is clicked twice.(h:message for=token/) Best Regards, Pallavi From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 1:46 PM To: MyFaces Discussion Subject: Re: Shale's s:token to prevent double click Info you can find in the wiki [1]. The sample project that contains shale-core.jar is in the download section [2]. [1] http://wiki.apache.org/shale/Token [2] http://people.apache.org/dist/shale/v1.0.3/ 2006/12/14, [EMAIL PROTECTED] [EMAIL PROTECTED] : Hi Everybody, I have a JSF Portlet and i want to prevent the double click on a command button. After going through previous posts i have seen suggestions for using s:token. Can s:token work in this scenario. (I not using Myfaces RI but SUN's RI) If so,where are the jar's that i need to implement and where can i find information on this component. Your suggestions are welcome. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Shale's s:token to prevent double click
hello Adrian, I have got the shale-core.jar. Are there any examples to illustrate the s:token example. I have downloaded shale-framework1.0.3.jar. Best Regards, Pallavi From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 1:46 PM To: MyFaces Discussion Subject: Re: Shale's s:token to prevent double click Info you can find in the wiki [1]. The sample project that contains shale-core.jar is in the download section [2]. [1] http://wiki.apache.org/shale/Token [2] http://people.apache.org/dist/shale/v1.0.3/ 2006/12/14, [EMAIL PROTECTED] [EMAIL PROTECTED] : Hi Everybody, I have a JSF Portlet and i want to prevent the double click on a command button. After going through previous posts i have seen suggestions for using s:token. Can s:token work in this scenario. (I not using Myfaces RI but SUN's RI) If so,where are the jar's that i need to implement and where can i find information on this component. Your suggestions are welcome. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Shale's s:token to prevent double click
Hi , I have tried using Shale 1.0.3 on IBM RAD 6.0.1 and Websphere Portal 5.1 But everytime i try to use this shale-core.jar for s:token i get the exception : ServletContext lookup for /.SynchronizedToken returned the portal context. It has to be a different one. Web application stopped. I have tried isolating the reason that RAD supports jdk1.4 but shale1.0.3 supports jdk1.5. Could that be a problem. Is there a workaround for making shale work in this environment. Best Regards, Pallavi From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 2:08 PM To: MyFaces Discussion Subject: Re: Shale's s:token to prevent double click Yes. There is a message attribute where you could specify the error message you want to show, otherwise it shows its default message. 2006/12/14, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi Adrian, Thank you for your reply. I can see the page is written by you. I visted the second link.But i can see several jar files.(mailreader-jpa-1.0.3.zip http://people.apache.org/dist/shale/v1.0.3/mailreader-jpa-1.0.3.zip ,shale-blank-1.0.3.zip http://people.apache.org/dist/shale/v1.0.3/shale-blank-1.0.3.zip , shale-clay-usecases-1.0.3.zip http://people.apache.org/dist/shale/v1.0.3/shale-clay-usecases-1.0.3.zi p etc). Which is the one that i need to download. Please let me know that if i use this s:token in my application. How can i test it if it is working. i can see in the example as h:form h:message for=token/ ... s:token id=token/ /h:form Does it throw an error message when the button is clicked twice.(h:message for=token/) Best Regards, Pallavi From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 1:46 PM To: MyFaces Discussion Subject: Re: Shale's s:token to prevent double click Info you can find in the wiki [1]. The sample project that contains shale-core.jar is in the download section [2]. [1] http://wiki.apache.org/shale/Token [2] http://people.apache.org/dist/shale/v1.0.3/ 2006/12/14, [EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Hi Everybody, I have a JSF Portlet and i want to prevent the double click on a command button. After going through previous posts i have seen suggestions for using s:token. Can s:token work in this scenario. (I not using Myfaces RI but SUN's RI) If so,where are the jar's that i need to implement and where can i find information on this component. Your suggestions are welcome. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage
Shale's s:token to prevent double click
Hi Everybody, I have a JSF Portlet and i want to prevent the double click on a command button. After going through previous posts i have seen suggestions for using s:token. Can s:token work in this scenario. (I not using Myfaces RI but SUN's RI) If so,where are the jar's that i need to implement and where can i find information on this component. Your suggestions are welcome. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: response.Header() not working in JSF Portlet
Hello David, I was just going through some reference in the net and tried HttpServletRequest/HttpServletResponse and it worked for me.But if i go through the Portlet API and use PortletRequest/PortletResponse it doesn't give me the option of setHeader and setContenytType. The content-disposition is helping me get the save-As dialog. As you have mentioned that the response stream has the data already present and it is aggregating the data that i write. I am using a servlet take my text area data,setting the header to word and writing to the output stream. Isn't this the way we used to follow when we used JSP and servlets.I have tried the same combination with JSP and servlets it works wonderfully with no hassles. Is there a elegant way of doing what i am trying to acheive.?? Please show me the way. Best Regards, Pallavi From: Nebinger, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 2:56 AM To: MyFaces Discussion Subject: RE: response.Header() not working in JSF Portlet Hmm, well first of all, since you're running within a portlet I'm actually surprised you're not getting class cast exceptions when casting the request and response objects to HttpServletRequest/HttpServletResponse; the portal should be ensuring that they are PortletRequest/PortletResponse objects, and not HttpServletRequest/HttpServletResponse. However, if you can forward to your word servlet, you're passing in the given request/response objects so why take the time to try to get to the text area through the value binding? It should appear as a request parameter that you could access directly (you'd have to enumerate your parameter names to find one ending with :text1 as the parm names will have the various view root info encoded into them plus portal namespace stuff). Have you tried that? As far as the whole page as output, I'd guess that a) there is already some data in the response buffer before you start generating your word doc and/or b) you're really still within the portal itself; it is calling your portlet on it's own behalf and aggregating the resulting data from this one call with the response information from the rest of the portlets embedded on the page. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 23, 2006 8:35 AM To: users@myfaces.apache.org Subject: RE: response.Header() not working in JSF Portlet Hi David, Thank you for your suggestions. I have now included the servlet and JSF portlet in the same war file and deployed on Websphere Portal Server. But currently the saving of the text area contents into word document is happening but it saves the entire portlet page instead of only the text area contents. Could you help me in my last minute hitch with the code. 1) JSF Portlet Page: h:inputTextarea id=text1 value=#{pc_TextAreaView.textAreaValue} rows=10 cols=50 / h:commandButton id=save1 value=Save with Servlet action=#{pc_TextAreaView.SaveAsWord} / 2) Backing bean Save method: public void SaveAsWord() { System.out.println(I invoke this); FacesContext context = FacesContext.getCurrentInstance(); ExternalContext ctx = context.getExternalContext(); try{ HttpServletResponse response = (HttpServletResponse)ctx.getResponse(); HttpServletRequest request = (HttpServletRequest)ctx.getRequest(); RequestDispatcher view = request.getRequestDispatcher(/WordServ1); view.forward(request,response); }catch(Exception e){e.printStackTrace();} 3) Servlet to handle the saving in word document -- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { FacesContext facesContext = FacesContext.getCurrentInstance(); ValueBinding vb = facesContext.getApplication().createValueBinding(#{pc_TextAreaView}); TextAreaView mybean = (TextAreaView) vb.getValue(facesContext); String mytextarea = mybean.getTextAreaValue(); String filen = default.doc; response.setContentType(application/vnd.ms-word);
RE: Using a outputLabel and a outputText together
Hi ying, Do mention whether in your statement h:outputText value=#{build.help} / build is the var of your resource bundle or something else. Best Regards, Pallavi -Original Message- From: ying lcs [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 10:48 AM To: MyFaces Discussion Subject: Using a outputLabel and a outputText together Hi, i have a h:outputLabel.../ h:inputText.../ i see a label and then a text box. That is what I want. However, when i want to add another line of text as the 'help' text, by adding a h:outputText... I don't see the help text. This is what i am trying to do: h:outputLabel for=buildlanguage styleClass=desc value=#{text['build.language']}/ h:outputText value=#{build.help} / h:inputText value=#{addBuildForm.build.language} id=buildlanguage required=true styleClass=text large v:commonsValidator type=required arg=#{text['build.language']}/ /h:inputText Can you please tell me what am i missing? Thank you. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: response.Header() not working in JSF Portlet
Hi David, Thank you for your suggestions. I have now included the servlet and JSF portlet in the same war file and deployed on Websphere Portal Server. But currently the saving of the text area contents into word document is happening but it saves the entire portlet page instead of only the text area contents. Could you help me in my last minute hitch with the code. 1) JSF Portlet Page: h:inputTextarea id=text1 value=#{pc_TextAreaView.textAreaValue} rows=10 cols=50 / h:commandButton id=save1 value=Save with Servlet action=#{pc_TextAreaView.SaveAsWord} / 2) Backing bean Save method: public void SaveAsWord() { System.out.println(I invoke this); FacesContext context = FacesContext.getCurrentInstance(); ExternalContext ctx = context.getExternalContext(); try{ HttpServletResponse response = (HttpServletResponse)ctx.getResponse(); HttpServletRequest request = (HttpServletRequest)ctx.getRequest(); RequestDispatcher view = request.getRequestDispatcher(/WordServ1); view.forward(request,response); }catch(Exception e){e.printStackTrace();} 3) Servlet to handle the saving in word document -- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { FacesContext facesContext = FacesContext.getCurrentInstance(); ValueBinding vb = facesContext.getApplication().createValueBinding(#{pc_TextAreaView}); TextAreaView mybean = (TextAreaView) vb.getValue(facesContext); String mytextarea = mybean.getTextAreaValue(); String filen = default.doc; response.setContentType(application/vnd.ms-word); response.setHeader( content-disposition,attachment;name=\+filen+\;filename=\+filen+ \); response.setHeader(Cache-Control, no-cache); try{ byte[] buf=new byte[4*1024]; InputStream inStream=new ByteArrayInputStream(mytextarea.getBytes()); OutputStream outStream=response.getOutputStream(); int sizeRead; while ( ( sizeRead=inStream.read(buf, 0, buf.length) ) != -1 ) { outStream.write(buf, 0, sizeRead); } inStream.close(); outStream.close(); } catch(IOException ex){ ex.printStackTrace();} } } Best Regards, Pallavi From: Nebinger, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 8:25 PM To: MyFaces Discussion Subject: RE: response.Header() not working in JSF Portlet To expand on what Stephan provided, in order to share application scope between your JSF application and a non-JSF servlet, they need to be deployed in the same war file and entered in the same web.xml. Combining them in this way will provide the connectivity you'd need based upon Stephan's original response. -Original Message- From: Strittmatter, Stephan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 6:49 AM To: MyFaces Discussion Subject: AW: response.Header() not working in JSF Portlet Hi Pallavi, I use Liferay on Tomcat. The servlet I included within my portlet war. Not in a separate war. Sorry for my short answer, but we have currently system tests with our customer... Regards, Stephan Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 22. November 2006 08:08 An: users@myfaces.apache.org Betreff: RE: response.Header() not working in JSF Portlet Hi Stephan, My concepts are not very clear regarding the portal server. I am using RAD as my IDE and Wepsphere portal server and application server(WAS). Which Portal server are you using.Are you using the same combination. I wanted to know whether you are creating a seperate war file to deploy your servlet on WAS. Then invoking a call to your servlet from your portlet. Can you show me some light on this grey area. Best Regards, Pallavi From: Strittmatter, Stephan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 9:29 PM To: MyFaces Discussion Subject: AW: response.Header() not working in JSF Portlet Hi Pallavi,
RE: response.Header() not working in JSF Portlet
Hi Stephan, My concepts are not very clear regarding the portal server. I am using RAD as my IDE and Wepsphere portal server and application server(WAS). Which Portal server are you using.Are you using the same combination. I wanted to know whether you are creating a seperate war file to deploy your servlet on WAS. Then invoking a call to your servlet from your portlet. Can you show me some light on this grey area. Best Regards, Pallavi From: Strittmatter, Stephan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 9:29 PM To: MyFaces Discussion Subject: AW: response.Header() not working in JSF Portlet Hi Pallavi, within a portlet it is not allowed to chenge the response header. Otherwise a portlet would damage the portal around your portlet. I had this problem also and created a servlet, which I assigned with the special extention. The only problem was, that I had to include the part in a verbatim tag to have a form with an own defined target probably there is a different more elegant way...: f:verbatim form action=${request.contextPath}/download.xml target=_blank method=post input type=submit value=Download title=Download XML file id=execute style=width:7em; class=portlet-form-button / input type=hidden name=execute value=execute / /form /f:verbatim In the web.xml you have to define then the servlet and assign it to the extention. In the servlet you can access the backing bean by following to get some values: FacesContext c = FacesContext.getCurrentInstance(); Application application = c.getApplication(); MyBackingBean bBean= (MyBackingBean) application.createValueBinding(#{MyBackingBean}).getValue(c); Regards, Stephan Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. November 2006 12:25 An: users@myfaces.apache.org Betreff: response.Header() not working in JSF Portlet Hi All, I have a JSF portlet where i want to save the contents of my Text area on the click of a button to a word document. (IBM Websphere portal) h:inputTextarea id=text1 value=#{pc_TextAreaView.textAreaValue} rows=10 cols=50 / h:commandButton id=save value=Save As Word action=#{pc_TextAreaView.SaveAsWord}/ In my page bean i have written the follwoing code but the response.setHeader() doesn't seem to work. I am not getting any pop dialog and i cannot save my file. Please let me know what is wrong in this code snippet.How can i make it work in my portlet. === public String SaveAsWord() { FacesContext context = FacesContext.getCurrentInstance(); HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse(); response.setContentType(application/vnd.ms-word); response.setHeader(Content-Disposition, attachment; filename=myfile.doc); response.setHeader(Cache-Control, no-cache); try{ byte[] buf=new byte[4*1024]; InputStream inStream=new ByteArrayInputStream(textAreaValue.getBytes()); OutputStream outStream=response.getOutputStream(); int sizeRead; while ( ( sizeRead=inStream.read(buf, 0, buf.length) ) != -1 ) { outStream.write(buf, 0, sizeRead); } inStream.close(); outStream.close(); } catch(IOException ex){ ex.printStackTrace(); } return null; } Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Printing and Saving text in JSF
Hi All, I have a simple JSF Faces Portlet application having two buttons (Print and Save) and a text area. I want your suggestions on how i could print the text to printer and save the text to a word doc in JSF. Please forward me any tutorials or references where i could understand this concept. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Re: Floating window in JSF
Hi Werpu, Thank you for your reference. I was in the meantime using a custom body tag in order to call the floating window javascript for onload(). This mailing list is really great. Best Regards, Pallavi -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz Sent: Thursday, November 09, 2006 4:42 PM To: users@myfaces.apache.org Subject: Re: Floating window in JSF [EMAIL PROTECTED] schrieb: Hi All, I have written a code for floating window in javascript. No need for that anymore, since yesterday night there is basic floating window support in myfaces... check out the new sandbox floating pane component (however this component as of yet does not hold positions over page refreshes, I maybe will add that later via cookie statesaving (there are form issues which prevent a real roundtrip solution for those things)) There also is a small demo, in the dojo subdir of the sandbox examples demonstrating it! The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Floating window in JSF
Hi All, I have written a code for floating window in _javascript_. I have tried to run in the IE and its working fine. I now intend to integrate this code in JSF(Websphere Portals). body style="background-color: #DD" exceptionDiv" style="position:relative; padding-top:5px; padding-right:0px; z-index:1"div id="floater" style="position:absolute; top:0px; right:0px; border:1px solid; width:185px; text-align:left" ... ... /div/div But when i translate this code in JSF. I do not know how to replace body style="background-color: #DD" positionit()" but it doesnt bear the results. Is there any corresponding body tag in JSF or onload() function. How could i make this work in JSF. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Tomahawk with Portlets
Hi David, Thanks I thought I had to import another jar. It is a problem with Tomahawk1.1.3 being compatible with Websphere Portal5.1. Liferay is new for me. I am using JSR-168 portlets built using WPS5.1 and RAD. Hav you worked on this? Best Regards, Pallavi -Original Message- From: Nebinger, David [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 6:07 PM To: MyFaces Discussion Subject: RE: Tomahawk with Portlets I am not aware of the Portlet bridge.I am not using any. Do I have to use some portlet-bridge.jar to make Tomahawk compatible with Websphere Portlets. No, portlet bridge is not required. It's a tool that would allow for an existing JSF app to be integrated into a portal w/o code mods, but if you're like me you're generating JSR-128 compatible portlets so the bridge is not required. I think your question has less to do with portal compatibility and more to do with tomahawk on top of the JSF RI, but without details of what the problem is it's hard to say for sure. I can tell you that I'm successfully building JSR 168 portlets using myfaces, tomahawk, and facelets within Liferay. There's nothing Liferay-specific in the code, just some additional xml config files used by Liferay. Unless WS portal is that different, I'd have to assume that they would be compatible there as well. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Tomahawk with Portlets
Hi David, The whole description of my problem is clearly listed in : http://www.nabble.com/MyFaces-with-Sun%27s-JSF-RI-on-Websphere5.1-tf2558 712.html Feel free to give me your suggestions. Best Regards, Pallavi -Original Message- From: Nebinger, David [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 6:50 PM To: MyFaces Discussion Subject: RE: Tomahawk with Portlets Hi David, Thanks I thought I had to import another jar. It is a problem with Tomahawk1.1.3 being compatible with Websphere Portal5.1. Liferay is new for me. I am using JSR-168 portlets built using WPS5.1 and RAD. Hav you worked on this? I haven't. Surely, though, they must have provided some sample portlets, hopefully one that is JSF-based (and better yet a myfaces portlet). I'd dig into these, if you have them, and ensure your configuration matches. I'd also suggest testing your portlet as a simple servlet; you should be able to hit it using a normal url, i.e. if my portlet is in sample-portlet.war going to a local app server on port 8080, I can hit it at http://localhost:8080/sample-portlet/. If it works there when the portlet doesn't, you can be pretty sure that you're looking at a portal integration issue and not simply a coding issue. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: Tomahawk with Portlets
Hi Scott, I am not aware of the Portlet bridge.I am not using any. Do I have to use some portlet-bridge.jar to make Tomahawk compatible with Websphere Portlets. Regards, Pallavi -Original Message- From: Scott O'Bryan [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 8:27 PM To: MyFaces Discussion Subject: Re: Tomahawk with Portlets Pallavi, Just a question but what Portlet bridge are you trying to use? Scott [EMAIL PROTECTED] wrote: Hello, I have a very basic question. I am struggling on this issue for 3 days now.Is there any such open issue in JIRA. Is Tomahawk1.1.3 custom components like t:inputCalender compatible with Sun's JSF RI implementation(jsf-api-jar and jsf-impl.jar) running on Websphere Portal Server5.1 environment. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: How to add tomahawk support to a Sun JSF RI application
Hi All, Please help me in this regard. I am receiving no inputs from the members. I have referred to the link on the net that mentions in order to ensure compatibility between Myfaces and Sun's JSF RI you need to use myfaces-extension.jar. From where do i download myfaces-extension.jar. http://wiki.apache.org/myfaces/How_to_add_MyFaces_support_to_a_Sun_JSF_RI_application Please note i cannot use myfaces-api and impl as the project wants to stick to SUN's JSF RI. :-( Can anybody provide me support on this. I just need to know that how can i configure my extension filters correctly so that tomahawk1.1.3.jar can communicate with common-fileupload.jar and Tomahawk custom component t:inputCalender can work inmy Portlet. Hoping for a reply. Best From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 12:27 PMTo: users@myfaces.apache.orgSubject: How to add tomahawk support to a Sun JSF RI application Hi All, I am very new to JSF and Portals.As a part of my new assignment i have been asked to upgrade to Tomahawk1.1.3.I am using Websphere5.1 andRAD to build my application.The application uses custom components t:inputCalendar and tanelTabbedPane.The application worked properly with Tomahawk1.1.1 but once i have upgraded to Tomahawk1.1.3 i am getting the error message "This portlet is unavailable". The Jars used (apart from other common api's): == 1) tomahawk1.1.3.jar 2) jsf-api.jar 3) jsf-impl.jar 4) common-fileupload.jar Please note i have used jsf-api.jar and jsf-impl.jar and not myfaces-all.jar. My question is how to support t:inputCalneder with Sun's JSF application. How should i configure my extension filter and do i need any other jar to support.B)I have also configured the extension filter in my web.xml file.filterfilter-nameextensionsFilter/filter-namefilter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-classinit-paramparam-nameuploadMaxFileSize/param-nameparam-value100m/param-valuedescriptionSet the size limit for uploaded files.Format: 10 - 10 bytes10k - 10 KB10m - 10 MB1g - 1 GB/description/init-paraminit-paramparam-nameuploadThresholdSize/param-nameparam-value100k/param-valuedescriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk.Format: 10 - 10 bytes10k - 10 KB10m - 10 MB1g - 1 GB/description/init-param/filterfilter-mappingfilter-nameextensionsFilter/filter-nameurl-pattern/*/url-pattern/filter-mappingC)But when i run the application i get the exception in the console as:Nested Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: How to add tomahawk support to a Sun JSF RI application
Hi, Aneesha i have changed my web.xml theway you indicated. (So that the MultipartRequestWrapper is there in this package to communicate with common-fileupload-1.0.jar). But in vain i get the same exception again: Nested Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html I have included the web.xml that i have used : ?xml version="1.0" encoding="UTF-8"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" web-app id="WebApp_ID" display-nameTomTest/display-name context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namecom.ibm.ws.jsf.JSP_UPDATE_CHECK/param-name param-valuetrue/param-value descriptionMonitors Faces JSP files for modifications and synchronizes a running server with the changes without restarting the server. If this parameter is set to false or removed from the deployment descriptor, any changes made to Faces JSP files may not be seen by the server until it is restarted. This parameter is usually set to true while the Faces JSP files are being developed and debugged in order to improve the performance of the development environment./description /context-param context-param param-namecom.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP/param-name param-valuetrue/param-value description/description /context-param context-param param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name param-valuefalse/param-value /context-param filter filter-nameextensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param param-nameuploadMaxFileSize/param-name param-value100m/param-value descriptionSet the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB/description /init-param init-param param-nameuploadThresholdSize/param-name param-value100k/param-value descriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB/description /init-param /filter filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.faces/url-pattern /filter-mapping filter-mapping filter-nameextensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping listener listener-classcom.sun.faces.config.ConfigureListener/listener-class /listener servlet id="Servlet_1153799320859" servlet-nameJS Resource Servlet/servlet-name servlet-class com.ibm.faces.webapp.JSResourceServlet/servlet-class load-on-startup-1/load-on-startup /servlet servlet-mapping servlet-nameJS Resource Servlet/servlet-name url-pattern/.ibmjsfres/*/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list taglib id="PortletTLD" taglib-urihttp://java.sun.com/portlet/taglib-uri taglib-location/WEB-INF/tld/std-portlet.tld/taglib-location /taglib /web-app Iwould be gratefulif you folks could help me. Best Regards, Pallavi From: Aneesha Govil [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 2:55 PMTo: MyFaces DiscussionSubject: Re: How to add tomahawk support to a Sun JSF RI application Also, the extensions filter should have the class set to org.apache.myfaces.webapp.filter.ExtensionsFilterinstead of org.apache.myfaces.component.html.util.ExtensionsFiltermentioned on that webpage. Aneesha On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, Please help me in this regard. I am receiving no inputs from the members. I have referred to the link on the net that mentions in order to ensure compatibility between Myfaces and Sun's JSF RI you need to use myfaces-extension.jar. From where do i download myfaces-extension.jar. http://wiki.apache.org/myfaces/How_to_add_MyFaces_support_to_a_Sun_JSF_RI_application Please note i cannot use myfaces-api and impl as the project wants to stick to SUN's JSF RI. :-( Can anybody provide me support on this. I just need to know that how can i configure my extension filters correctly so that tomahawk1.1.3.jar can communicate with common-fileupload.jar and Tomahawk custom component t:inputCalender can work inmy Portlet. Hoping for a reply. Best From: [EMAIL PROTECTED] [mailto:[EMAIL
Tomahawk with Portlets
Hello, I have a very basic question. Iam struggling on this issue for 3 days now.Is there any such open issue in JIRA. Is Tomahawk1.1.3 custom components like t:inputCalender compatible withSun's JSF RI implementation(jsf-api-jar and jsf-impl.jar)running on Websphere Portal Server5.1 environment. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
RE: How to add tomahawk support to a Sun JSF RI application
Hi Aneesha, Your links are really useful. But i think my application has sworn not to work. Stealing a little of your time. Have you tried working with Tomahawk1.1.3 with Sun's JSF RI(jsf-api.jar and jsf-impl.jar)only and not Myfaces impl(myfaces-api.jar and myfaces-impl.jar).My project wants to stick to sun's impl. Best Regards, Pallavi From: Aneesha Govil [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 5:02 PMTo: MyFaces DiscussionSubject: Re: How to add tomahawk support to a Sun JSF RI application Hi Pallavi,Take a look at this message http://mail-archives.apache.org/mod_mbox/myfaces-users/200608.mbox/[EMAIL PROTECTED] It says this -java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mappingmissing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing Check that the filter-mappings are ok. The problem could have something to do with the include of .jsp pages in other pages, for example [EMAIL PROTECTED] file="header.jsp" %. So make sure that the mapping for .jsppages exist and is correctI can't find it in your web.xml. Try it. Regards,Aneesha On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Aneesha i have changed my web.xml theway you indicated. (So that the MultipartRequestWrapper is there in this package to communicate with common-fileupload-1.0.jar). But in vain i get the same exception again: Nested Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html I have included the web.xml that i have used : ?xml version="1.0" encoding="UTF-8"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd " web-app id="WebApp_ID" display-nameTomTest/display-name context-param param-namejavax.faces.STATE_SAVING_METHOD/ param-name param-valueclient/param-value /context-param context-param param-namecom.ibm.ws.jsf.JSP_UPDATE_CHECK/ param-name param-valuetrue/param-value descriptionMonitors Faces JSP files for modifications and synchronizes a running server with the changes without restarting the server. If this parameter is set to false or removed from the deployment descriptor, any changes made to Faces JSP files may not be seen by the server until it is restarted. This parameter is usually set to true while the Faces JSP files are being developed and debugged in order to improve the performance of the development environment./description /context-param context-param param-namecom.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP/ param-name param-valuetrue/param-value description/description /context-param context-param param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/ param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/ param-name param-valuefalse/param-value /context-param filter filter-nameextensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/ filter-class init-param param-nameuploadMaxFileSize/param-name param-value100m/param-value descriptionSet the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB/description /init-param init-param param-nameuploadThresholdSize/param-name param-value100k/param-value descriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB/description /init-param /filter filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.faces/url-pattern /filter-mapping filter-mapping filter-nameextensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping listener listener-classcom.sun.faces.config.ConfigureListener/ listener-class /listener servlet id="Servlet_1153799320859" servlet-nameJS Resource Servlet/servlet-name servlet-class com.ibm.faces.webapp.JSResourceServlet/servlet-class load-on-startup-1/load-on-startup /servlet servlet-mapping servlet-nameJS Resource Servlet/servlet-name url-pattern/.ibmjsfres/*/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file
How to add tomahawk support to a Sun JSF RI application
Hi All, I am very new to JSF and Portals.As a part of my new assignment i have been asked to upgrade to Tomahawk1.1.3.I am using Websphere5.1 andRAD to build my application.The application uses custom components t:inputCalendar and tanelTabbedPane.The application worked properly with Tomahawk1.1.1 but once i have upgraded to Tomahawk1.1.3 i am getting the error message "This portlet is unavailable". The Jars used (apart from other common api's): == 1) tomahawk1.1.3.jar 2) jsf-api.jar 3) jsf-impl.jar 4) common-fileupload.jar Please note i have used jsf-api.jar and jsf-impl.jar and not myfaces-all.jar. My question is how to support t:inputCalneder with Sun's JSF application. How should i configure my extension filter and do i need any other jar to support.B)I have also configured the extension filter in my web.xml file.filterfilter-nameextensionsFilter/filter-namefilter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-classinit-paramparam-nameuploadMaxFileSize/param-nameparam-value100m/param-valuedescriptionSet the size limit for uploaded files.Format: 10 - 10 bytes10k - 10 KB10m - 10 MB1g - 1 GB/description/init-paraminit-paramparam-nameuploadThresholdSize/param-nameparam-value100k/param-valuedescriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk.Format: 10 - 10 bytes10k - 10 KB10m - 10 MB1g - 1 GB/description/init-param/filterfilter-mappingfilter-nameextensionsFilter/filter-nameurl-pattern/*/url-pattern/filter-mappingC)But when i run the application i get the exception in the console as:Nested Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html. Best Regards, Pallavi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com