Re: Trinidad : date validation
use tr:validateDateTimeRange --- On Fri, 21/11/08, Naik, Bhushan <[EMAIL PROTECTED]> wrote: > From: Naik, Bhushan <[EMAIL PROTECTED]> > Subject: Trinidad : date validation > To: "MyFaces Development" > Date: Friday, 21 November, 2008, 9:29 PM > Hi, > I want to use Trinidad where in need to restrict user to > enter > any date that is less than (Currentdate + 7 days), the > trinidad tag I am > using is "tr:inputDate". > I know in javascript we can do this but how to do this in > Trinidad? > Please suggest. > > Thanks > Bhushan Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
[jira] Commented: (TRINIDAD-1221) bug related to navigationPane Component
[ https://issues.apache.org/jira/browse/TRINIDAD-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647796#action_12647796 ] Dushyant Agarwal commented on TRINIDAD-1221: Is Myfaces Trinidad's Application View Caching responsible for this in any way? My understanding is that in Application View Caching the application view cache does not invalidate itself on its own. The server has to be restarted. I am experiencing the same thing. Maybe the view cache gets loaded the first time the page with command navigation item gets rendered. The next time when war is redeployed the view remains serialized in the application scope cache which conflicts some how with the new view tree created? please comment. > bug related to navigationPane Component > --- > > Key: TRINIDAD-1221 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1221 > Project: MyFaces Trinidad > Issue Type: Bug >Affects Versions: 1.2.8-core >Reporter: ankit mahajan >Priority: Critical > Attachments: indxPage.jsp > > > i am using trinidad's CoreCommandNavigationItem inside of a > CoreNavigationPane component in my application and when i deploy the > application on server for first time it works smoothly but whenever i tried > to redeploy the application again on the server it is showing an exception > and thus i have to shutdown the server and start it again.could anyone help > with this. i have found this bug in PanelAccordian and PanelTabbed components > too > stack trace is shown below: > org.apache.jasper.JasperException: javax.faces.FacesException: > javax.faces.FacesException: javax.faces.FacesException: Cant instantiate > class: > org.apache.myfaces.trinidad.component.core.nav.CoreCommandNavigationItem. > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:535) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) > > org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) > > org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) > > com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) > > com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) > > javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178) > > org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176) > > com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) > com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) > javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) > > org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) > root cause > javax.faces.FacesException: javax.faces.FacesException: > javax.faces.FacesException: Cant instantiate class: > org.apache.myfaces.trinidad.component.core.nav.CoreCommandNavigationItem. > > com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:240) > > javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:211) > > javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476) > > javax.faces.webapp.UICompone
[TRINIDAD]tr:showDetail or tr:Page
Hi, I have a functionality in which a tree of different processes has to be displayed in the left hand side of the window. When some one clicks on any process the jsp for that view id has to be displayed on the rest of teh screen. Also a trail of the tasks that have been opened has to be maintained.So that the user may go back to any previous task as desirable. There is a facility of tr:page, which provides nodeStamp facet for showing the view id's. For showing the trial we can use the tr:train(MaxVisited) component. But in a page, when I populate one view & click on another one & click back to the previous view, the values entered are lost. In another scenario I had seen tr:ShowDetailItem used in panelRadio component. There the value entered in one detail Item was retained if we disclosed another item. Is there any way of setting this type of behavior in tr:page? Should I use some other approach for display? I do not like the Idea of adding CoreShowdetailItem instances at run time if the user clicks on the tree. I want it just the way it is in tr:page. Thanks, Dushyant Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
[jira] Commented: (TRINIDAD-1221) bug related to navigationPane Component
[ https://issues.apache.org/jira/browse/TRINIDAD-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647546#action_12647546 ] Dushyant Agarwal commented on TRINIDAD-1221: Can Matthias Wesssendorf please see if he can resolve this issue with the help of the jsp code attached with this this thread? It would be of great help. > bug related to navigationPane Component > --- > > Key: TRINIDAD-1221 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1221 > Project: MyFaces Trinidad > Issue Type: Bug >Affects Versions: 1.2.8-core >Reporter: ankit mahajan >Priority: Critical > Attachments: indxPage.jsp > > > i am using trinidad's CoreCommandNavigationItem inside of a > CoreNavigationPane component in my application and when i deploy the > application on server for first time it works smoothly but whenever i tried > to redeploy the application again on the server it is showing an exception > and thus i have to shutdown the server and start it again.could anyone help > with this. i have found this bug in PanelAccordian and PanelTabbed components > too > stack trace is shown below: > org.apache.jasper.JasperException: javax.faces.FacesException: > javax.faces.FacesException: javax.faces.FacesException: Cant instantiate > class: > org.apache.myfaces.trinidad.component.core.nav.CoreCommandNavigationItem. > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:535) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) > > org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) > > org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) > > com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) > > com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) > > javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178) > > org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176) > > com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) > com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) > javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) > > org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) > root cause > javax.faces.FacesException: javax.faces.FacesException: > javax.faces.FacesException: Cant instantiate class: > org.apache.myfaces.trinidad.component.core.nav.CoreCommandNavigationItem. > > com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:240) > > javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:211) > > javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476) > > javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660) > > javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:) > > org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:69) > > org.apache.jsp.indxPage_jsp._jspx_meth_tr_005fcommandNavigationItem_005f0(indxPage_jsp.java:390) >
[jira] Issue Comment Edited: (TRINIDAD-1230) [TRINIDAD] Exception on using CoreShowDetailItem
> > > > > java.lang.reflect.Constructor.newInstance(Unknown Source) > > > > java.lang.Class.newInstance0(Unknown > Source) > > > > java.lang.Class.newInstance(Unknown > Source) > > > > > > > com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1014) > > > > > > > com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:539) > > > > > > > com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:236) > > > > > > > javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:211) > > > > > > > javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476) > > > > > > > javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660) > > > > > > > javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:) > > > > > > > org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:69) > > > > > > > org.apache.jsp.indxPage_jsp._jspx_meth_tr_005fcommandNavigationItem_005f0(indxPage_jsp.java:390) > > > > > > > org.apache.jsp.indxPage_jsp._jspx_meth_tr_005fnavigationPane_005f0(indxPage_jsp.java:349) > > > > > > > org.apache.jsp.indxPage_jsp._jspx_meth_tr_005fform_005f0(indxPage_jsp.java:218) > > > > > > > org.apache.jsp.indxPage_jsp._jspx_meth_tr_005fdocument_005f0(indxPage_jsp.java:161) > > > > > > > org.apache.jsp.indxPage_jsp._jspx_meth_f_005fview_005f0(indxPage_jsp.java:114) > > > > > > > org.apache.jsp.indxPage_jsp._jspService(indxPage_jsp.java:78) > > > > > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387) > > > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > > > > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > > > > com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) > > > > > > > org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) > > > > > > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) > > > > > > > org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) > > > > > > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) > > > > > > > com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) > > > > > > > com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) > > > > > > > javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178) > > > > > > > org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176) > > > > > > > com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) > > > > > > > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) > > > > > > > com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) > > > > > > > javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) > > > > > > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) > > > > > > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) > > > > > > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) > > > > > > > org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) > > > > > > > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) was (Author: agarwal_dushyant): well no response was available for this question for a very long time. So I had to post it on JIRA to bring attention to this issue. Even now after having provided the required stack trace,for over two weeks, no response has been provided. > [TRINIDAD] Exception on using CoreShowDetailItem > > > Key: TRINIDAD-1230 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1230 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Components >Affects Versions: 1.2.8-core > Environment: JBoss 4.2.1, Trinidad 1.2.8, JSF 1.2 >Reporter: Dushyant Agarwal > > Hi, > I have a JSF page containing a tr:panelRadio component. Inside this component > I have put tr:showDetailItem > which contain the corresponding component to render. > There are more than one tr:showDetailItem components inside the tr:panelRadio > component. And > all the components are exposed to a backing bean(There are instances for > every component on > the page, in a managed bean). > On deploying my war file once there appears to be no problem. > But on redeploying the war in the server an exception occurs stating > [application] JSF 1004: Could not instantiate class > org.apache.myfaces.trinidad.CoreShowDetailItem. > Then it gives the stack trace of a faces exception with message > java.lang.NullPointerException > I am using the JBoss 4.2.1-GA application server. > I have used trinidad-impl-1.2.8.jar file in the WEB-INF/lib folder. > What should I do to remove this problem? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-1230) [TRINIDAD] Exception on using CoreShowDetailItem
[ https://issues.apache.org/jira/browse/TRINIDAD-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644268#action_12644268 ] Dushyant Agarwal commented on TRINIDAD-1230: well no response was available for this question for a very long time. So I had to post it on JIRA to bring attention to this issue. Even now after having provided the required stack trace,for over two weeks, no response has been provided. > [TRINIDAD] Exception on using CoreShowDetailItem > > > Key: TRINIDAD-1230 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1230 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Components >Affects Versions: 1.2.8-core > Environment: JBoss 4.2.1, Trinidad 1.2.8, JSF 1.2 > Reporter: Dushyant Agarwal > > Hi, > I have a JSF page containing a tr:panelRadio component. Inside this component > I have put tr:showDetailItem > which contain the corresponding component to render. > There are more than one tr:showDetailItem components inside the tr:panelRadio > component. And > all the components are exposed to a backing bean(There are instances for > every component on > the page, in a managed bean). > On deploying my war file once there appears to be no problem. > But on redeploying the war in the server an exception occurs stating > [application] JSF 1004: Could not instantiate class > org.apache.myfaces.trinidad.CoreShowDetailItem. > Then it gives the stack trace of a faces exception with message > java.lang.NullPointerException > I am using the JBoss 4.2.1-GA application server. > I have used trinidad-impl-1.2.8.jar file in the WEB-INF/lib folder. > What should I do to remove this problem? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (TRINIDAD-1230) [TRINIDAD] Exception on using CoreShowDetailItem
[TRINIDAD] Exception on using CoreShowDetailItem Key: TRINIDAD-1230 URL: https://issues.apache.org/jira/browse/TRINIDAD-1230 Project: MyFaces Trinidad Issue Type: Bug Components: Components Affects Versions: 1.2.8-core Environment: JBoss 4.2.1, Trinidad 1.2.8, JSF 1.2 Reporter: Dushyant Agarwal Hi, I have a JSF page containing a tr:panelRadio component. Inside this component I have put tr:showDetailItem which contain the corresponding component to render. There are more than one tr:showDetailItem components inside the tr:panelRadio component. And all the components are exposed to a backing bean(There are instances for every component on the page, in a managed bean). On deploying my war file once there appears to be no problem. But on redeploying the war in the server an exception occurs stating [application] JSF 1004: Could not instantiate class org.apache.myfaces.trinidad.CoreShowDetailItem. Then it gives the stack trace of a faces exception with message java.lang.NullPointerException I am using the JBoss 4.2.1-GA application server. I have used trinidad-impl-1.2.8.jar file in the WEB-INF/lib folder. What should I do to remove this problem? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
RE: MyFaces - Trinidad - Partial Page Rendering [PPR]
To avoid this problem of naming container, you should use the addPartialTarget method of RequestContext Api in the listener of the component which is generating the partial request. Dushyant --- On Fri, 5/9/08, GTrivedi <[EMAIL PROTECTED]> wrote: From: GTrivedi <[EMAIL PROTECTED]> Subject: RE: MyFaces - Trinidad - Partial Page Rendering [PPR] To: dev@myfaces.apache.org Date: Friday, 5 September, 2008, 10:36 AM Hi, Thanks for reply. It works now. Actually I am new to JSF, hence I face this issue. Thanks a lot. nperkins wrote: > > Someone correct me if I'm wrong but I believe your problem is due to the > fact that tr:table is a naming container and so you have to use a fully > qualified id, in your case "tb10:categories", for the components outside > the naming container. This is a common problem using the > partialTriggers mechanism and I believe that the Trinidad Development > Guide has a pretty good discussion of it. > http://myfaces.apache.org/trinidad/devguide/ppr.html > > > Nate Perkins > General Dynamics C4 Systems > > -Original Message- > From: GTrivedi [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 04, 2008 5:05 AM > To: dev@myfaces.apache.org > Subject: MyFaces - Trinidad - Partial Page Rendering [PPR] > > > Hi everyone, > > Here is the problem I am facing. Below given is the code I am using for > PPR. > > > -- > > >value="Select Type" > valueChangeListener="#{shopBuildServiceBean.ajaxExample}" > layout="horizontal"> > > > > > > > > > value="#{shopBuildDataBean.assemblyLengthSize}"> > > > > > var="radioGroup2"> > > disabled="#{shopBuildDataBean.assemblyLengthSize ge 501}" > partialTriggers="categories"/> > > > > > --- > In above given code when I submit the request by clicking on any of the > option button above I get response and display a number in the > . But I am putting partialTriggers="categories" in > second table also. But there I am not getting response as expected. I > mean to say if the number I get through the action method > [shopBuildServiceBean.ajaxExample] >= 501 the button in second table > should get disabled otherwise it should get enabled. > > I am wondering that why it doesn't respond in the second table. One more > important thing is, if I put tag in first > table itself then it works fine. > > My action method [shopBuildServiceBean.ajaxExample] is generating random > number between 1 & 1000. > > Please reply ASAP. > > Thank you very much. > > - > Gautam Trivedi > Programmer Analyst > -- > View this message in context: > http://www.nabble.com/MyFaces---Trinidad---Partial-Page-Rendering--PPR-- > tp19308786p19308786.html > Sent from the My Faces - Dev mailing list archive at Nabble.com. > > > - Gautam Trivedi Programmer Analyst -- View this message in context: http://www.nabble.com/MyFaces---Trinidad---Partial-Page-Rendering--PPR--tp19308786p19324975.html Sent from the My Faces - Dev mailing list archive at Nabble.com. Share files, take polls, and make new friends - all under one roof. Go to http://in.promos.yahoo.com/groups/
[jira] Resolved: (TRINIDAD-1165) [TRINIDAD]Tree table does not show correct bindings.
[ https://issues.apache.org/jira/browse/TRINIDAD-1165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dushyant Agarwal resolved TRINIDAD-1165. Resolution: Fixed We have to put treeTable.resetStampState() after creating all the columns and attaching them to the treeTable. This will reset the state of the column in the nodestamp facet to what it initially was(its value binding wil become what it was given in JSP). > [TRINIDAD]Tree table does not show correct bindings. > > > Key: TRINIDAD-1165 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1165 > Project: MyFaces Trinidad > Issue Type: Improvement > Components: Components >Affects Versions: 1.2.8-core > Environment: Apache Trinidad 1.2.8, Jboss 4.2.1-GA > Reporter: Dushyant Agarwal > Fix For: 1.2.8-core > > > Hi, > I have a JSF page,that contains a tree table that shows data arriving from > database via EJB. > The number columns of the tree table is dynamic. They get created at the time > the page is just about to be rendered at the After render response phase > event. > Now the facet of the tree table contains a column containing > inputText whose readInly has been st as true in the jsp. Rest of the columns > get created dynamically. These other columns contain editable inputTexts. > Their programmatically provided value binding using the setValueExpression() > method of CoreInputText class. > Now there is a radio button in the page whose auto submit is set to true. The > valueChange Listener method attached to it does the following: > 1.Delete all the columns of tree table: using the following code > for(int i=0i i=-1; > treeTable.getChildren.remove(treeTable.getChildren.size()-1; > } > 2. Calls a method on the EJB to get a list of objects from the Database. > Based on this new columns are instantiated,new inputTexts are created,Their > valueBindings are provided and added to the columns. Then the columns are > added to the table. > Now on changing the value of the radio buttons I talked about earlier, the > value of the tree tables columns does get changed. But the value of the > column in the nodeStamp facet also changes. On debugging I found that the > value binding of that column's inputTexts had become equal to the last > column's inputTexts'binding that appeared in the previous view.i.e.the view > that had appeared before clicking on the radio button. > I tried removing the jsp code of node stamp and then creating it afresh from > the backing bean.This included removing the children of the node stamp column > every time. > But I just could not get the valueBinding right. > Now is there any explanation as to how the columns should be removed so that > the value bindings also get removed safely. Where can I make changes to > secure the error? > Thanks, > Dushyant -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (TRINIDAD-1165) [TRINIDAD]Tree table does not show correct bindings.
[TRINIDAD]Tree table does not show correct bindings. Key: TRINIDAD-1165 URL: https://issues.apache.org/jira/browse/TRINIDAD-1165 Project: MyFaces Trinidad Issue Type: Improvement Components: Components Affects Versions: 1.2.8-core Environment: Apache Trinidad 1.2.8, Jboss 4.2.1-GA Reporter: Dushyant Agarwal Fix For: 1.2.8-core Hi, I have a JSF page,that contains a tree table that shows data arriving from database via EJB. The number columns of the tree table is dynamic. They get created at the time the page is just about to be rendered at the After render response phase event. Now the facet of the tree table contains a column containing inputText whose readInly has been st as true in the jsp. Rest of the columns get created dynamically. These other columns contain editable inputTexts. Their programmatically provided value binding using the setValueExpression() method of CoreInputText class. Now there is a radio button in the page whose auto submit is set to true. The valueChange Listener method attached to it does the following: 1.Delete all the columns of tree table: using the following code for(int i=0i
Re: [jira] Resolved: (TRINIDAD-1147) tr:commandNavigationItem
My Problem is still unresolved. How do I use tr:commandNavigationItem to navigate to another frame? Thanks, Dushyant --- On Tue, 8/7/08, Matthias Weßendorf (JIRA) wrote: From: Matthias Weßendorf (JIRA) Subject: [jira] Resolved: (TRINIDAD-1147) tr:commandNavigationItem To: dev@myfaces.apache.org Date: Tuesday, 8 July, 2008, 3:52 PM [ https://issues.apache.org/jira/browse/TRINIDAD-1147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias Weßendorf resolved TRINIDAD-1147. -- Resolution: Invalid Fix Version/s: (was: 1.2.8-core) goLink is to "go" to another (external page). Please don't abuse the jira to enter bugs, which are typical user questions. thanks > tr:commandNavigationItem > > > Key: TRINIDAD-1147 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1147 > Project: MyFaces Trinidad > Issue Type: Test > Components: Components >Affects Versions: 1.2.8-core >Reporter: Dushyant Agarwal > > I am using JDev 11g,JBoss 4.2.1, Trinidad 1.2.4. > In my project I have top,bottom & center frames. I have a page in the > center > frame that consists of a tr:commandNavigationItem component. I have > provided > the "destination" as another page(target.jsp) and "targetFrame" as > bottom > frame. However on clicking on it the navigation takes place to > target.jsp > in > the same frame(center). > On the other hand on using a tr:goLink with the same attrinute values as > above provides the navigation. But tr:goLink does not have an action > attribute as tr:commandNavigationItem. > I need to use tr:commandNavigationItem to navigate to another frame (as > tr:goLink). How can I do it??? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. Share files, take polls, and make new friends - all under one roof. Go to http://in.promos.yahoo.com/groups/
[jira] Created: (TRINIDAD-1147) tr:commandNavigationItem
tr:commandNavigationItem Key: TRINIDAD-1147 URL: https://issues.apache.org/jira/browse/TRINIDAD-1147 Project: MyFaces Trinidad Issue Type: Test Components: Components Affects Versions: 1.2.8-core Reporter: Dushyant Agarwal Fix For: 1.2.8-core I am using JDev 11g,JBoss 4.2.1, Trinidad 1.2.4. In my project I have top,bottom & center frames. I have a page in the center frame that consists of a tr:commandNavigationItem component. I have provided the "destination" as another page(target.jsp) and "targetFrame" as bottom frame. However on clicking on it the navigation takes place to target.jsp in the same frame(center). On the other hand on using a tr:goLink with the same attrinute values as above provides the navigation. But tr:goLink does not have an action attribute as tr:commandNavigationItem. I need to use tr:commandNavigationItem to navigate to another frame (as tr:goLink). How can I do it??? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (TRINIDAD-1141) Unable to set DateTimeConverter with tr:inputDate component from the backing bean
Unable to set DateTimeConverter with tr:inputDate component from the backing bean - Key: TRINIDAD-1141 URL: https://issues.apache.org/jira/browse/TRINIDAD-1141 Project: MyFaces Trinidad Issue Type: Improvement Components: Components Affects Versions: 1.2.4-core Environment: WinXP,SP2, 2GB RAM , COre2 Duo Processor(2.86) Reporter: Dushyant Agarwal Fix For: 1.2.4-core I have JSF page which contains a tr:inputDate component as given below:- As well as there is a commandButton In the Backing bean the action method is as follows:- public String action(){ DateTimeConverter converter = new DateTimeConverter();//the Trinidad DateTime Converter converter.setPattern("dd/MM/"); inputDate1.setConverter(converter); return null; } Then I tried using public Converter getDateConverter() { DateTimeConverter converter = new DateTimeConverter();//the Trinidad DateTime Converter converter.setPattern("dd/MM/"); return converter; } While running the JSF page, on clicking the button the converter does get applied, But after the Page gets rendered if the user again clicks on the calendar button to select a new date then a javascript error appears [Got this info on using firebug for debugging] _getDateFieldFormat(input#inputDate1.af_inputDate_content) _dfsv(input#inputDate1.af_inputDate_content,1217411811404) returnCalendarvalue(Window,undefined) _checkUnload(undefined) _selectdate(121735620) onclick(click client X=1842, client Y =1842) Common1_2_4.js line 2170 This error appear in the popup window where the calendar gets rendered How can I set the above mentioned converter on the inputDate cpmponent from the backing bean. The scope of the BB bean request. pl. consider that I strictly need to set the converter from the backing bean.(Beacause sometimes the component gets generated dynamically. so no way to put tr:convertDateTime ) Thanks, Dushyant -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Fw: Re: [TRINIDAD] Unable to use Converter with tr:inputDate
I need to put the converter from backing bean because the inputDate component is being created dynamically based upon the number of records in the database.Why can't we put sort of in the backing bean And yes the BB bean is request scoped I further tried to make a sample application that contained a class implementing Converter class. It was registered in faces-config.There was a JSF page with a button and inputDate. I the action method of the button I created an instance of the converter class and set it as follows:- inputDate1.setConverter(new myConverter()); But here as well the calendar component gave up working(rant)!! Please specify what u mean by cross-postings.. Thanks, Dushyant --- On Thu, 3/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: From: Matthias Wessendorf <[EMAIL PROTECTED]> Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate To: "MyFaces Discussion" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Thursday, 3 July, 2008, 5:55 PM Please do no cross-postings... On Thu, Jul 3, 2008 at 2:14 PM, dushyant agarwal <[EMAIL PROTECTED]> wrote: > Hi, > I have JSF page which contains a tr:inputDate component as given below:- > > > As well as there is a commandButton > > > In the Backing bean the action method is as follows:- > public String action(){ > > DateTimeConverter converter = new DateTimeConverter();//the Trinidad > DateTime Converter > converter.setPattern("dd/MM/"); > inputDate1.setConverter(converter); > return null; > > } > > While running the JSF page, on clicking the button the converter does get > applied, But after the Page gets rendered if the user again clicks on the > calendar button to select a new date then a javascript error appears > (/**incomprehensible**/). How else can I set the above mentioned converter > on the inputDate cpmponent from the backing bean. > is the scope of the BB bean request ? > pl. consider that I strictly need to set the converter from the backing > bean. why? > > Thanks, > Dushyant > > > > > > Bollywood, fun, friendship, sports and more. You name it, we have it. -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org Best Jokes, Best Friends, Best Food. Get all this and more on Best of Yahoo! Groups. Bollywood, fun, friendship, sports and more.. You name it, we have it on http://in.promos.yahoo.com/groups/bestofyahoo/
Re: [TRINIDAD] Unable to use Converter with tr:inputDate
I need to put the converter from backing bean because the inputDate component is being created dynamically based upon the number of records in the database.Why can't we put sort of in the backing bean I further tried to make a sample application that contained a class implementing Converter class. It was registered in faces-config.There was a JSF page with a button and inputDate. I the action method of the button I created an instance of the converter class and set it as follows:- inputDate1.setConverter(new myConverter()); But here as well the calendar component gave up working(rant)!! Please specify what u mean by cross-postings.. Thanks, Dushyant --- On Thu, 3/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: From: Matthias Wessendorf <[EMAIL PROTECTED]> Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate To: "MyFaces Discussion" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Thursday, 3 July, 2008, 5:55 PM Please do no cross-postings... On Thu, Jul 3, 2008 at 2:14 PM, dushyant agarwal <[EMAIL PROTECTED]> wrote: > Hi, > I have JSF page which contains a tr:inputDate component as given below:- > > > As well as there is a commandButton > > > In the Backing bean the action method is as follows:- > public String action(){ > > DateTimeConverter converter = new DateTimeConverter();//the Trinidad > DateTime Converter > converter.setPattern("dd/MM/"); > inputDate1.setConverter(converter); > return null; > > } > > While running the JSF page, on clicking the button the converter does get > applied, But after the Page gets rendered if the user again clicks on the > calendar button to select a new date then a javascript error appears > (/**incomprehensible**/). How else can I set the above mentioned converter > on the inputDate cpmponent from the backing bean. > is the scope of the BB bean request ? > pl. consider that I strictly need to set the converter from the backing > bean. why? > > Thanks, > Dushyant > > > > > > Bollywood, fun, friendship, sports and more. You name it, we have it. -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/
[TRINIDAD] Unable to use Converter with tr:inputDate
Hi, I have JSF page which contains a tr:inputDate component as given below:- As well as there is a commandButton In the Backing bean the action method is as follows:- public String action(){ DateTimeConverter converter = new DateTimeConverter();//the Trinidad DateTime Converter converter.setPattern("dd/MM/"); inputDate1.setConverter(converter); return null; } While running the JSF page, on clicking the button the converter does get applied, But after the Page gets rendered if the user again clicks on the calendar button to select a new date then a javascript error appears (/**incomprehensible**/). How else can I set the above mentioned converter on the inputDate cpmponent from the backing bean. pl. consider that I strictly need to set the converter from the backing bean. Thanks, Dushyant Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/
[TRINIDAD]Java Script not executing on calling Service's addScript method
Hi, I created a JSF Page with a tr:commandButton in it. Inside its action method I wrote the following code:- public String action(){ ExtendedRenderKitService service= Service.getRenderKitService(FacesContext.getCurrentInsatnce(),ExtendedRenderKitService.class ); service.addScript(FacesContext.getCurrentInsatnce(),"alert( ' hello Trinidad ' );"); } This was supposed to open a Windows alert box with" hello trinidad " written on clicking the command Button. But Nothing happens on doing so!!! What am I doing wrong??? PL. help! Thanks, Dushyant Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups/bestofyahoo/
[TRINIDAD] styleClass not getting applied on tr:column's header
Hi, I have a requirement where I have to put background color=Yellow on one tr:column's header inside a tr:table. In the skin's CSS I wrote the following code: af|column::headerText.ColStyle{ background-color=Yellow; } In the jsp I wrote However, in Mozilla the style is not at all getting applied. In IE the background color of all the cells in that column gets changed to yellow but not of the header. How can I get the correct style applied on the column header?? Thanks, Dushyant Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/
[TRINIDAD] How to prevent input date component from showing dates before a given date
Hi, I have a requirement where I need to render the tr:inputDate component such= that on opening the calendar popup, dates before a certain date can't be s= elected.=C2=A0 How can this be brought about??? Dushyant Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/
tr:form + tr:commandButton not working
Hi I installed FireBug with Mozilla FireFox. In my JSP page I had got a tr:from and a tr:commandButton. On clicking on the commandButton the following process took place. In one Page1.jsp I have got the following code: Not much of a code ?? Now on using FireBug's debugger I got one error at line 4948 in the js file. It said: a0.submit is not a function. Now this line is inside a java script function submitForm(form#form1,1,source:'submit').At line 4948 in the Fire Bug console I found a0.submit(); and on putting a break point at line 4948 I got the value of a0 to be = form#form1Page1.jsp. On moving further from the break point I got the error "a0.submit" is not a function; Now this was in a test application but the same scenario is arising inside the production application(which is bit more complex)where I tried to change h:form to tr:form to use the defaultCommand functionality. There as well the same error came up : line 4948, a0.submit is not a function. Now I want to know the solution. Hope to have provided you with useful information. Dushyant - Share files, take polls, and make new friends - all under one roof. Click here.
[TRINIDAD]Problem in using select Many Shuttle
Hi, I am using JDev 11g TP3,JBoss 4.2.1, Trinidad 1.2.4. Suppose we have a select Many Shuttle. It is rendering properly. The content is getting shifted from the leading to trailing list properly. However the trailingFooter & leadingFooter facet does not work i.e. on placing a commandButton inside the facet it is not visible on the view neither has it got rendered( i have checked the source of the html page). The source code on the page is as follows: The problem is that the commandButton is not getting rendered. As well as if I put the commandButton outside the tr:selectManyShuttle (in the tr:form) then I get a runtime exception on clicking on it. On replacing tr:form with h:form the button acts properly. 1.What might have been the problem?? Do I need to set any attribute on the jsp to enable the facets?? 2.Is it necessary to list all the facets on the jsp and put components in only those where it is necessary & leave the rest of the facets empty?? 3.Is it necessary to use Shuttle proxy in the filter facet before putting components in leading / Trailing footer facets?? 4.How is it possible to change the commandLinks Move/Move all & Remove/RemoveAll that are rendered by default by the component. As well as the top/bottom up/down links in select Order Shuttle?? Dushyant Agarwal - Check out the all-new face of Yahoo! India. Click here.