Behaviour of custom components
Hi, How do we solve this design decision problem? When developing a custom component, if it has some behaviour associated with it, where exactly should this behaviour be implemented? e.g. To develop a table sortable on multiple columns, once the user identifies the columns to be sorted and clicks the sort button (which is also part of table component) there must be an action listener which implements this sort method. I mean when such a component is delivered to myfaces, it does not have a backing bean packaged with it. But still it is a self-contained ready-to-use component. The users of myfaces simply have to include the tag for the component in their JSF page, and assign a datamodel to it. And the sortable table is ready for use in their page. Here myfaces users do not implement the core sorting behaviour of the component, since it is packaged somehow in the comopent - I need to understand where? Thanks Arti
Re: updateActionListener questions (re: Shale Clay mostly)
I was already wondering myself. It would fit better in the component, if there is one. Manfred? @Rich: Can you do a patch - would be great. regards, Martin On 4/19/06, Richard Wallace <[EMAIL PROTECTED]> wrote: > I'm trying to make use of the Tomahawk updateActionListener action > listener in a Shale Clay based app and was having problems getting it to > work properly. After doing some debugging I realized that the problem > was that I was trying to map to the property "property" on the > UpdateActionListener class thinking that the tag "property" attribute > just passed the value through. > > On closer inspection I realized this isn't the case and that the > UpdateActionListenerTag itself takes the value set for the "property" > attribute and creates a value binding which is passed to the > UpdateActionListener with the setPropertyBinding() method. Similarly, > the UpdateActionListenerTag also figures out if the "value" attribute is > supposed to be an actual value object or a value binding. > > I searched this list and this was also a problem when trying to > integrate with Facelets. So my question is why is all this work done in > the UpdateActionListenerTag class instead of in the UpdateActionListener > class itself? Then the tag class would just pass the values through > like all the other tags in JSF. > > Rich > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Char Encoding
Hi,I checked the spring's char encoding filter and also implemented a new filter but still i see (i can see filter working in the debugging mode)No character encoding given, using default character encoding ISO-8859-1 warning in the console.regards...On 4/19/06, Mert Çalışkan <[EMAIL PROTECTED]> wrote: You should also convert your application resource bundles to UTF-8. Here is a blogpost contains necessary steps.. http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf Cheers, Mert. On 4/18/06, Cagatay Civici <[EMAIL PROTECTED] > wrote: Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse; public class YourCharEncodingFilter implements Filter { public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { servletRequest.setCharacterEncoding("UTF-8"); servletResponse.setCharacterEncoding("UTF-8"); filterChain.doFilter (servletRequest, servletResponse); } public void destroy() { }}Regards, Cagatay On 4/18/06, Murat Hazer <[EMAIL PROTECTED] > wrote: Hi, I see this line(s) at the output console after each page render completed 17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1 i am using spring's CharacterEncodingFilter to solve this problem as below;encodingFilterorg.springframework.web.filter.CharacterEncodingFilter encodingUTF-8forceEncoding trueshould i do something different in order to change default char encoding to utf-8? -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/ -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Faces Trace
+1 for a global setting +1 for a possibility to override the global setting with a local validator setting... regards, Martin On 4/19/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Shale comes with it's own validators that can do both client side and server > side. Each validator has flags like client="true" server="true". The > disadvantage is that client side validation uses popus that is not favored > much. > > A central mechanism to control validation setting should be good but also it > would be flexible if a validator can override the global setting. > > > On 4/19/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > And you might check what Struts Shale already does. From what I know > > it integrates commons-validator. > > > > On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I guess the optimal solution is as follows; > > > > > > Client side validation feature is added to Tomahawk and Sandbox > validators > > > using an attribute(client="true"). If this flag is true then validation > > > takes place at client otherwise regular server side validation happens. > > > There should be other attributes to customize the client validation like > > > enablePopup, highlight and etc. > > > > > > What do you think? I'm eagerly waiting to create patches that would > enable > > > these validators to validate at client side. > > > > > > Regards, > > > > > > Cagatay > > > > > > > > > On 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote: > > > > On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote: > > > > > Yes. > > > > > > > > > > That's the other thing I'd like to have - automatic client-side > > > > > validation happening with the server side validation in place. It > > > > > would be good to have something like a hook in the extended > validators > > > > > - with this hook, they are asked to render out their client-side > > > > > validation javascript. > > > > > > > > > > Using this, separate validators wouldn't be necessary. > > > > > > > > Exactly. > > > > > > > > > Still, I think that the rendering question is very important. In the > > > > > current state when working with ADF, I wished I could disable client > > > > > side validation in ADF faces alltogether (I'm sure there is a way to > > > > > do so, didn't look deeper into it so far). The popup box is just not > > > > > context sensitive enough. > > > > > > > > Yep, you can disable it altogether - there's a WEB-INF/web.xml flag. > > > > > > > > -- Adam > > > > > > > > > > > > > > > > -- > > Alexandre Poitras > > Québec, Canada > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: clear_formname( ) javascript
Any more hints on this one guys? I've run out of ideas. Murray Brandon wrote: Hey no worries Mario, I'll check out the latest nightly to see if it gets rid of the warning. Can any of you guys fill me in on the source of this clear_formname( ) method? I mean, I can see where it is called from, but is it the myfaces filter that's responsible for generating the method? >From what I read, my filter-mapping warnings can be ignored - it is still processed ok, so the clear_formname( ) should be being created. Yet I suspect my myfaces filter is not being loaded correctly. How can I tell? Wouldn't that stop the date chooser buttons appearing? Mine appear. Looking at the source of HtmlFormRendererBase it looks like it /optionally/ outputs the javascript for the clear_formname( ) method, but HtmlButtonRendererBase /always/ adds the call to the method onClick= regardless. So I get the javascript error on my page when I click on a commandButton saying that clear_formname( ) is not defined. Have I missed something? Are there circumstances where "set" would be empty? Maybe I need to set the HIDDEN_COMMAND_INPUTS_SET_ATTR attribute somehow? eg. (my source is a nightly from a few weeks ago, so forgive me if it's not quite the same) *HtmlFormRendererBase.java * //render hidden command inputs Set set = (Set)component.getAttributes().get(HIDDEN_COMMAND_INPUTS_SET_ATTR); *if (set != null && !set.isEmpty()) * { HtmlRendererUtils.renderHiddenCommandFormParams(writer, set); String target; if (component instanceof HtmlForm) { target = ((HtmlForm)component).getTarget(); } else { target = (String)component.getAttributes().get(HTML.TARGET_ATTR); } HtmlRendererUtils.renderClearHiddenCommandFormParamsFunction(writer, component.getClientId(facesContext), set, target); } *HtmlButtonRendererBase.java* /always /puts in the javascript for the call to the method /*/call the clear_ method onClick.append(HtmlRendererUtils.getClearHiddenCommandFormParamsFunctionName(formName)).append("();");* Regards, Murray PS. I noticed you all working over easter. tsk tsk. ;-) Mario Ivankovits wrote: Hi! Yes, it was only a warning - no other side effect. It should be fixed now. Sorry for the inconvenience. Ciao, Mario On 4/14/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: I've opened http://issues.apache.org/jira/browse/TOMAHAWK-257 on this issue. I know things work if you use the proposed 1.1.2 MyFaces-core release even with the warnings. It's possible that things are breaking if you use the 1.1.3 MyFaces-core trunk. I ran a quick test, and it doesn't seem to matter if I use 1.1.3 core. I get the warnings at startup that way, but my filter-mappings are still correctly used. As near as I can tell, the only effect is an incorrect warning message, but everything is working as expected. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with simple JSF MyFaces deployment
I have built a very simple JSF web app and am having trouble trying to deploy it. I am getting an error that I am unable to track down via google. It is: <[ServletContext(id=17083797,name=SampleW ar,context-path=/SampleWar)] Root cause of ServletException. javax.faces.FacesException: javax/servlet/jsp/el/FunctionMapper at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: javax.servlet.ServletException: javax/servlet/jsp/el/FunctionMapper at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:469) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416) ... 13 more I have a simple .jsp with this tag: The faces-config contains: calc test.CalcBean session and the CalcBean class has methods getResult():String and setResult(String):void it all seems like it should work, but I get the error above. I am using the MyFaces 1.1.2 release (core only) and Weblogic 8.1sp4. It is a bit frustrating that the error that actually occurs does not show up in the stack trace -- only its getMessage() value "javax/servlet/jsp/el/FunctionMapper" which doesn't tell me much of anything. Any ideas? Thanks, ken clark -- View this message in context: http://www.nabble.com/Problem-with-simple-JSF-MyFaces-deployment-t1472317.html#a3981514 Sent from the MyFaces - Users forum at Nabble.com.
Re: TreeModelBase/HtmlTree : Java heap space
You are probably trying to load way too much data into the tree. How much data are you talking about? I would suggest looking at the archives for discussions on dynamic trees. You can customize tree2 model to use a database. Sean On 4/17/06, Sunil Kulkarni <[EMAIL PROTECTED]> wrote: > Hi, > > I am using MyFaces 1.1.1/Tomcat 5.5.12. I am using sample TreeBacker.java > file to render a tree. > > If I don't get data from Database, then everything works fine. But, if I am > trying to get Tree information from database and then construct 'TreeNode' > then I get the following exception. > > There is similar issue reported in users list with subject "Java heap > space: Error with Tree2", but I did not find any answer to it. > > Please let me know, if you know the solution. > > Thanks. > > > javax.faces.FacesException: Caused by: javax.servlet.ServletException: > ServletException in '/common/login_menu.jsp': Java heap space > at > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848) > at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781) > at > org.apache.jsp.template.logintemplate_jsp._jspService(logintemplate_jsp.java:78) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) > at > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415) >
RE: Missing tomahawk.jar in MyFaces1.2
Thanks Sean. -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 April 2006 11:03 AM To: MyFaces Discussion Subject: Re: Missing tomahawk.jar in MyFaces1.2 > If tomahawk1.2 is not released yet, whey does the relase notes for MyFaces > Core 1.2, have details of bug fixes, in Tomahawk components, like > ,etc.??? This is misleading/confusing me. At one point the two projects were intertwined and shared the same JIRA instance. So all of the bugs that were already closed before we split the JIRA instance into two projects stayed in the core. We were in a rush to release so we did not go back and move them all. So in the future things will be more clear. > Balaji Sean This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
Re: Missing tomahawk.jar in MyFaces1.2
> If tomahawk1.2 is not released yet, whey does the relase notes for MyFaces > Core 1.2, have details of bug fixes, in Tomahawk components, like > ,etc.??? This is misleading/confusing me. At one point the two projects were intertwined and shared the same JIRA instance. So all of the bugs that were already closed before we split the JIRA instance into two projects stayed in the core. We were in a rush to release so we did not go back and move them all. So in the future things will be more clear. > Balaji Sean
myfaces 1.1.1 error with Weblogic 9.1
Title: Heading One Has anyone used myfaces with Weblogic Server 9.1? We have added myfaces to our application with 7 lines of code in our login.jsp. It works correctly on WLS 8.1 SP5. After trying to upgrade to WLS 9.1 the login page throws the following error: javax.faces.FacesException: Exception occuured while processing 'C:\BFAPPS\bea\user_projects\domains\test\apps\portal\Login.jsp' at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:179) javax.servlet.ServletException: Exception occuured while processing 'C:\BFAPPS\bea\user_projects\domains\test\apps\portal\Login.jsp' at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:303) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224) at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:496) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973 ***BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005)***
Re: findComponenet problem
On 4/15/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote: > I am trying to do a : > UIOutput c= (UIOutput) > facesContext.getViewRoot().findComponent("main:bscName"); > And my page looks like: > .. > > columnClasses="label,nothing,label,nothing" > [...] > > [...] > disabled="true"/> [...] > > > > [...] > > . > > But getting null instead of thre component. > What is wrong here? Either you've specified an id on an unshown naming container (f:view, f:subview), or your c:choose statement didn't evaluate to true. My understanding is that "#{neBean.neType.name == 'BTS'}" is only evaluated with the page is initially compiled (first request). You probably should be using h:panelGroup rendered="#{neBean.neType.name == 'BTS'}" instead.
Re: Faces Trace
Shale comes with it's own validators that can do both client side and server side. Each validator has flags like client="true" server="true". The disadvantage is that client side validation uses popus that is not favored much. A central mechanism to control validation setting should be good but also it would be flexible if a validator can override the global setting.On 4/19/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: And you might check what Struts Shale already does. From what I knowit integrates commons-validator.On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Hi,>> I guess the optimal solution is as follows;>> Client side validation feature is added to Tomahawk and Sandbox validators> using an attribute(client="true"). If this flag is true then validation > takes place at client otherwise regular server side validation happens.> There should be other attributes to customize the client validation like> enablePopup, highlight and etc.>> What do you think? I'm eagerly waiting to create patches that would enable > these validators to validate at client side.>> Regards,>> Cagatay>>> On 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote: > > On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote:> > > Yes.> > >> > > That's the other thing I'd like to have - automatic client-side > > > validation happening with the server side validation in place. It> > > would be good to have something like a hook in the extended validators> > > - with this hook, they are asked to render out their client-side > > > validation _javascript_.> > >> > > Using this, separate validators wouldn't be necessary.> >> > Exactly.> >> > > Still, I think that the rendering question is very important. In the > > > current state when working with ADF, I wished I could disable client> > > side validation in ADF faces alltogether (I'm sure there is a way to> > > do so, didn't look deeper into it so far). The popup box is just not > > > context sensitive enough.> >> > Yep, you can disable it altogether - there's a WEB-INF/web.xml flag.> >> > -- Adam> >>>--Alexandre Poitras Québec, Canada
Re: Faces Trace
And you might check what Struts Shale already does. From what I know it integrates commons-validator. On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Hi, > > I guess the optimal solution is as follows; > > Client side validation feature is added to Tomahawk and Sandbox validators > using an attribute(client="true"). If this flag is true then validation > takes place at client otherwise regular server side validation happens. > There should be other attributes to customize the client validation like > enablePopup, highlight and etc. > > What do you think? I'm eagerly waiting to create patches that would enable > these validators to validate at client side. > > Regards, > > Cagatay > > > On 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote: > > On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote: > > > Yes. > > > > > > That's the other thing I'd like to have - automatic client-side > > > validation happening with the server side validation in place. It > > > would be good to have something like a hook in the extended validators > > > - with this hook, they are asked to render out their client-side > > > validation javascript. > > > > > > Using this, separate validators wouldn't be necessary. > > > > Exactly. > > > > > Still, I think that the rendering question is very important. In the > > > current state when working with ADF, I wished I could disable client > > > side validation in ADF faces alltogether (I'm sure there is a way to > > > do so, didn't look deeper into it so far). The popup box is just not > > > context sensitive enough. > > > > Yep, you can disable it altogether - there's a WEB-INF/web.xml flag. > > > > -- Adam > > > > -- Alexandre Poitras Québec, Canada
anyone has experience of ICEFaces?
Hi all, I wonder if any one has some experience of using ICEFaces? I need your advice. Is it valuable to learn? I have tried the demo of ICEFaces, and found that sometimes the app is really slow and even worse not work. -- regards,Terry
Re: Faces Trace
On 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote: > Why would developers want to enable client-side validation one-by-one? > I'd think this would nearly always want to be a global setting. Adam has a good point in that client-side validation settings would nearly-always be configured as a global setting. But I still think ValidatorBase is the best place to put the code -- just have it read and provide the default configuration settings from the web.xml file settings. Then for the "nearly never" cases, we can still allow per-validator configuration to override the global settings.
Re: Faces Trace
Hi,I guess the optimal solution is as follows;Client side validation feature is added to Tomahawk and Sandbox validators using an attribute(client="true"). If this flag is true then validation takes place at client otherwise regular server side validation happens. There should be other attributes to customize the client validation like enablePopup, highlight and etc. What do you think? I'm eagerly waiting to create patches that would enable these validators to validate at client side.Regards,CagatayOn 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote:On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote:> Yes.>> That's the other thing I'd like to have - automatic client-side> validation happening with the server side validation in place. It > would be good to have something like a hook in the extended validators> - with this hook, they are asked to render out their client-side> validation _javascript_.>> Using this, separate validators wouldn't be necessary. Exactly.> Still, I think that the rendering question is very important. In the> current state when working with ADF, I wished I could disable client> side validation in ADF faces alltogether (I'm sure there is a way to > do so, didn't look deeper into it so far). The popup box is just not> context sensitive enough.Yep, you can disable it altogether - there's a WEB-INF/web.xml flag.-- Adam
RE: Missing tomahawk.jar in MyFaces1.2
Thanks everyone for the reply. I'll wait for tomahawk 1.2. If tomahawk1.2 is not released yet, whey does the relase notes for MyFaces Core 1.2, have details of bug fixes, in Tomahawk components, like ,etc.??? This is misleading/confusing me. Balaji -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Werner Punz Sent: Tuesday, 18 April 2006 5:30 PM To: users@myfaces.apache.org Subject: Re: Missing tomahawk.jar in MyFaces1.2 Hi Balaji, sorry to say that, but the Tomahawk release cycles are now decoupled due to the addition of the Tobago component set and soon also the ADF Faces framework to the myfaces mix. So currently there first was the core released and soon also a stable Tomahawk 1.1.2 will be released (the fork for stable is imminent as we speak), in the meantime I only can recommend to revert to the nighlies until the stable Tomahawk is in sync. In the future there will be decoupled releases of the core and the component sets, with a much higher release frequency. Werner Balaji Kalyansundaram schrieb: > Hi Dennis > > Thanks for the reply. > > "Please pay attention to the fact that you cannot use this release of > MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it > will only work with the Tomahawk library in version 1.1.2 and onward." > - I cannot find the new version of tomahawk separately @ > http://myfaces.apache.org/download.html > > Only the old 1.1.1 is available. But it is mentioned above that this will not > work with new verion of myfaces core. > > > Balaji > > > -Original Message- > From: Dennis Byrne [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 18 April 2006 5:13 PM > To: MyFaces Discussion > Subject: Re: Missing tomahawk.jar in MyFaces1.2 > > > You may want to check your inbox for the announcement notes. Tomahawk is now > released seperately. > > Dennis Byrne > >> -Original Message- >> From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, April 18, 2006 03:11 AM >> To: dev@myfaces.apache.org, users@myfaces.apache.org >> Subject: Missing tomahawk.jar in MyFaces1.2 >> >> >> Hi All >> >> Glad to hear that the new verison is available. >> >> I cannot find the the tomahawk.jar @ >> http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip >> >> But it has myfaces-impl.jar, etc. >> >> Am I lloking at the wrong place? >> >> Thanks in advance. >> >> Balaji >> >> >> This correspondence is for the named persons only. >> It may contain confidential or privileged information or both. >> No confidentiality or privilege is waived or lost by any mis transmission. >> If you receive this correspondence in error please delete it from your >> system immediately and notify the sender. >> You must not disclose, copy or relay on any part of this correspondence, if >> you are not the intended recipient. >> Any opinions expressed in this message are those of the individual sender >> except where the sender expressly, >> and with the authority, states them to be the opinions of the Department of >> Emergency Services, Queensland. > > > > This correspondence is for the named persons only. > > It may contain confidential or privileged information or both. > > No confidentiality or privilege is waived or lost by any mis transmission. > > If you receive this correspondence in error please delete it from your system > immediately and notify the sender. > > You must not disclose, copy or relay on any part of this correspondence, if > you are not the intended recipient. > > Any opinions expressed in this message are those of the individual sender > except where the sender expressly, > > and with the authority, states them to be the opinions of the Department of > Emergency Services, Queensland. > This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
updateActionListener questions (re: Shale Clay mostly)
I'm trying to make use of the Tomahawk updateActionListener action listener in a Shale Clay based app and was having problems getting it to work properly. After doing some debugging I realized that the problem was that I was trying to map to the property "property" on the UpdateActionListener class thinking that the tag "property" attribute just passed the value through. On closer inspection I realized this isn't the case and that the UpdateActionListenerTag itself takes the value set for the "property" attribute and creates a value binding which is passed to the UpdateActionListener with the setPropertyBinding() method. Similarly, the UpdateActionListenerTag also figures out if the "value" attribute is supposed to be an actual value object or a value binding. I searched this list and this was also a problem when trying to integrate with Facelets. So my question is why is all this work done in the UpdateActionListenerTag class instead of in the UpdateActionListener class itself? Then the tag class would just pass the values through like all the other tags in JSF. Rich
Re: indeciperable Errors in Tobabgo app
ok, can you temporary remove the sheet for a test. If the page is working the error can be caused by a value binding of the sheet. Or can you try to use a debugger to find the cause of the error? If this not help. You can send me all your code. Regards Bernd John schrieb: Ok - removed the jsp:include - the stack trace is the same as before - no change that I can see... An error occurred in the bean. Error Message is: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: Stack Trace is : javax.faces.FacesException: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan dlerImpl.java:152) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372 ) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter( TobagoMultipartFormdataFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) Caused by: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:422) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView HandlerImpl.java:234) at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan dlerImpl.java:120) ... 19 more Caused by: org.apache.jasper.JasperException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle tWrapper.java:504) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:375) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:416) ... 21 more -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:26 AM To: MyFaces Discussion Subject: Re: indeciperable Errors in Tobabgo app Can you remove the include in the main tag file, please. Can you send me the full Stacktrace? Regards Bernd John schrieb: Replacing the deprecated t:include with jsp:include (with corresponding parameter change), didn't have any effect on the error. Line 4 is definitely where the tag file is referenced. John -Or
Re: Char Encoding
You should also convert your application resource bundles to UTF-8. Here is a blogpost contains necessary steps.. http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf Cheers, Mert. On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse; public class YourCharEncodingFilter implements Filter { public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { servletRequest.setCharacterEncoding("UTF-8"); servletResponse.setCharacterEncoding("UTF-8"); filterChain.doFilter (servletRequest, servletResponse); } public void destroy() { }}Regards, Cagatay On 4/18/06, Murat Hazer <[EMAIL PROTECTED] > wrote: Hi, I see this line(s) at the output console after each page render completed 17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1 i am using spring's CharacterEncodingFilter to solve this problem as below;encodingFilterorg.springframework.web.filter.CharacterEncodingFilter encodingUTF-8forceEncoding trueshould i do something different in order to change default char encoding to utf-8? -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: styleClass attribute on t:column having no effect when columnClasses attribute is present on t:dataTable
I've never used the css styling attributes, but it makes sense to me that a column style would either replace or add to a table style specification. Perhaps you could open a Jira issue and submit a patch providing this functionality? On 4/18/06, Matt Hughes <[EMAIL PROTECTED]> wrote: > If you have a dataTable as such: > > columnClasses="colClassOne, colClassTwo, colClassThree" > value=".." > > > > > > > > The rendered HTML only has the style classes specified in the > columnClasses attribute. Is this the desired effect? I was not able to > find any documentation specifying what was supposed to happen if you had > both of them. I believe that the styleClass attribute on the t:column > element should be *added* not ignored. So the resulting HTML *should* > IMHO look like this. > > > > > > > > > > Instead of: > > > > > > > > >
Re: Tobago DateUnitTest failure
Hello, until we have a solution for the problems with DateUnitTest, I excluded the test. Regards, Arvid Volker Weber wrote: Hi Rogerio, the DateUnitTest again :-(. Can you please post the test results from 'target/surefire-reports/'. You can skip the tests with 'mvn -Dmaven.test.skip=true' Regards, Volker Rogerio Pereira wrote: Hi, I have a test failure on Tobago build process, is there any workaround? -- Yours truly (Atenciosamente), Rogério
Re: Dynamic data table components
Since a) dojo makes it "easy" to do all that stuff b) I don't know a Faces component you need ;-) -Matthias On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > Frank, > > you might take a look at "dojo toolkit". > There a dnd facility inside. Also I think I have seen some "editable" > table stuff in their demo. > > Best would be to write a custom renderer for UIData, using that dojo stuff. > > -Matthias > > On 4/18/06, Frank Russo <[EMAIL PROTECTED]> wrote: > > > > I have an app that I'm rewritting using JSF with Facelets. The app currently > > has tables of data with editable fields, but also, the table is ordered and > > has javascript that allows for drag and drop ordering of rows. > > > > Are there any external components already built that do this? Just thought > > I'd check before I write one myself. > > > > Thanks... > > > > > > > > Frank Russo > > Senior Developer > > FX Alliance, LLC > > > -- > Matthias Wessendorf > Aechterhoek 18 > 48282 Emsdetten > http://jroller.com/page/mwessendorf > mwessendorf-at-gmail-dot-com > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: Dynamic data table components
Frank, you might take a look at "dojo toolkit". There a dnd facility inside. Also I think I have seen some "editable" table stuff in their demo. Best would be to write a custom renderer for UIData, using that dojo stuff. -Matthias On 4/18/06, Frank Russo <[EMAIL PROTECTED]> wrote: > > I have an app that I'm rewritting using JSF with Facelets. The app currently > has tables of data with editable fields, but also, the table is ordered and > has javascript that allows for drag and drop ordering of rows. > > Are there any external components already built that do this? Just thought > I'd check before I write one myself. > > Thanks... > > > > Frank Russo > Senior Developer > FX Alliance, LLC -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Dynamic data table components
I have an app that I'm rewritting using JSF with Facelets. The app currently has tables of data with editable fields, but also, the table is ordered and has _javascript_ that allows for drag and drop ordering of rows. Are there any external components already built that do this? Just thought I'd check before I write one myself. Thanks... Frank RussoSenior DeveloperFX Alliance, LLC
Re: sql in validator
I frequently use hql in my validators. And if you aren't a Hibernate User, HQL is the hibernate extension of SQL.On Mar 10, 2006, at 5:30 PM, Lance Frohman wrote: Is there a reason not to use sql in a validator? I have never seen this, but it would obviously be useful. I have an application where users choose an id, and I could create a validator with sql to see if that user id is already taken. Or are there better ways to do things like this? Thanks, Lance Joel WilsonWeb Application Developer/ArchitectD E V O T I O N-Skype: Jesfrk7Skype: 321.285.7470Cell: 321-332.4654Office: 407.677.8514Fax: 407.677.8610-1964 Howell Branch RoadSuite 102Winter Park, Florida 32792-Changing the world, one byte at a time . . .
Re: Tobago DateUnitTest failure
Hi Rogerio, the DateUnitTest again :-(. Can you please post the test results from 'target/surefire-reports/'. You can skip the tests with 'mvn -Dmaven.test.skip=true' Regards, Volker Rogerio Pereira wrote: > Hi, > > I have a test failure on Tobago build process, is there any workaround? > > -- > Yours truly (Atenciosamente), > > Rogério > -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
styleClass attribute on t:column having no effect when columnClasses attribute is present on t:dataTable
If you have a dataTable as such: The rendered HTML only has the style classes specified in the columnClasses attribute. Is this the desired effect? I was not able to find any documentation specifying what was supposed to happen if you had both of them. I believe that the styleClass attribute on the t:column element should be *added* not ignored. So the resulting HTML *should* IMHO look like this. Instead of:
Tobago DateUnitTest failure
Hi,I have a test failure on Tobago build process, is there any workaround?-- Yours truly (Atenciosamente),Rogério
Re: Converter with parameters
>From: "Matthias Wessendorf" <[EMAIL PROTECTED]> >> > MyConverter converter = new MyConverter(); > > converter.setCustom((String) idCmp.getAttributes("custom")); > > idCmp.setConverter(converter); > > getAttributes().get("custom"); > Oh yeah, that's the ticket. Thanks Matthias. > ;-) > > -Matthias
Re: Faces Trace
On 4/18/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > Yes. > > That's the other thing I'd like to have - automatic client-side > validation happening with the server side validation in place. It > would be good to have something like a hook in the extended validators > - with this hook, they are asked to render out their client-side > validation javascript. > > Using this, separate validators wouldn't be necessary. Exactly. > Still, I think that the rendering question is very important. In the > current state when working with ADF, I wished I could disable client > side validation in ADF faces alltogether (I'm sure there is a way to > do so, didn't look deeper into it so far). The popup box is just not > context sensitive enough. Yep, you can disable it altogether - there's a WEB-INF/web.xml flag. -- Adam
Re: Faces Trace
Why would developers want to enable client-side validation one-by-one? I'd think this would nearly always want to be a global setting. -- Adam On 4/18/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > > Another idea will be to use the built-in standart validators rather than > > seperate client validators above and in this case an attribute like > > "enableClientScript" is needed. > > We now have a ValidatorBase class that all Tomahawk and Sandbox > validators inherit from. This is the perfect place to add an > "enableClientScript" attribute, and it'll automatically be picked up > by all of the other validators. >
Re: Converter with parameters
>MyConverter converter = new MyConverter(); >converter.setCustom((String) idCmp.getAttributes("custom")); >idCmp.setConverter(converter); getAttributes().get("custom"); ;-) -Matthias
RE: Converter with parameters
>From: "Lindholm, Greg" <[EMAIL PROTECTED]> >> Hello Massimiliano, > > You need you write a custom tag, you can't do it with > the f:converter tag. > You could also bind the target component to a managed bean and manually register a converter. Then you could use transparent attributes on the component to pass on to the converter. A custom tag would be the better approach. The custom attribute would be added to the component. private HtmlOutputText idCmp = null; public HtmlOutputText getIdCmp() { if (idCmp == null) { idCmp = new HtmlOutputText(); } if (idCmp.getConverter() == null) { MyConverter converter = new MyConverter(); converter.setCustom((String) idCmp.getAttributes("custom")); idCmp.setConverter(converter); } } public void setIdCmp(HtmlOutputText id). Gary > If you look at this thread it's got source code for creating > a custom tag for a converter. > > You will need to pay attention to when the attributes from > the tag get evaluated (when the valueBinding getValue() occurs). > The example shown will evaluate the attributes when the > converter is created. Further down the thread there is > a discussion of how to evaluate the attributes when the > converter getAsString() is called. > > http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/17632/focus=1781 > 9 > > > Greg > > -Original Message- > From: Massimiliano Cantoni [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 18, 2006 11:58 AM > To: users@myfaces.apache.org > Subject: Converter with parameters > > I am trying to develop an application using Myfaces and now I am facing > t his pr oblem: > > I am trying to develop a custom converter using the converter tag. > To be more concrete I am trying to convert the name of a document given > the id. > Unfortunately the name of the document is not depending only on the id > but also on another customization number and > I do not know how to pass it to the converter. > > I tried the following > > > > > > > > But unfortunately it says that converter must be empty according to TLD. > > I tried also the follwing > > > > > > and tried to get custom from MyConverter code without any success. > > Am I using the correct approach? > > Can someone point me on the right direction? > > JSF newbie but not too much > > -- > -- > Cantoni Massimiliano > > CED Assicom S.p.a. > email: [EMAIL PROTECTED] > Indirizzo: Via De Cocule 33030 BUIA(UD) > Telefono: 0432/9683 > -- >
Using Eclipse Maven2 plugin with MyFaces
Hi,Somebody could compile myfaces sources from eclipse using maven plugin?-- Yours truly (Atenciosamente),Rogério
Syntax Question
If I attempt to use for my app that uses tiles I get the following error when I attempt to load a any page with a form in it: Location: http://localhost:8989/myfaces-4-18/pages/login.faces Line Number 249, Column 27: The problem is obviously the form being generated after the element. Is there any way to prevent this? until then I will just not use . Sorry if this is a very basic question, I am a little new to JSF.
How is clustering supposed to work??
I'm confused about clustering faces apps. Here's my understanding - maybe someone can correct me or point me in the right direction: 1. Application logic is implemented in a backing bean, including application 'state' like current objects, selected items, etc. 2. In faces-config, this bean is flagged as session scope so it's available to subsequent calls (which update its state). 3. To support session replication, you mark the app as 'distributable' and make sure the backing bean implements Serializable and only contain serializable non-transient attributes. Now, in my testing, this doesn't work. The main reason it doesn't work is that there's no call to setAttribute() when the bean is updated (so changes never propagate to other servers). So, am I missing something or is this a really big problem? Thanks, Denis
Re: Faces Trace
On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Another idea will be to use the built-in standart validators rather than > seperate client validators above and in this case an attribute like > "enableClientScript" is needed. We now have a ValidatorBase class that all Tomahawk and Sandbox validators inherit from. This is the perfect place to add an "enableClientScript" attribute, and it'll automatically be picked up by all of the other validators.
RE: Converter with parameters
j4j:param tag: http://www.jsftutorials.net/param.html Rhys -Original Message- From: Lindholm, Greg [mailto:[EMAIL PROTECTED] Sent: April 18, 2006 12:32 PM To: MyFaces Discussion Subject: RE: Converter with parameters Hello Massimiliano, You need you write a custom tag, you can't do it with the f:converter tag. If you look at this thread it's got source code for creating a custom tag for a converter. You will need to pay attention to when the attributes from the tag get evaluated (when the valueBinding getValue() occurs). The example shown will evaluate the attributes when the converter is created. Further down the thread there is a discussion of how to evaluate the attributes when the converter getAsString() is called. http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/17632/focus=1781 9 Greg -Original Message- From: Massimiliano Cantoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 11:58 AM To: users@myfaces.apache.org Subject: Converter with parameters I am trying to develop an application using Myfaces and now I am facing this problem: I am trying to develop a custom converter using the converter tag. To be more concrete I am trying to convert the name of a document given the id. Unfortunately the name of the document is not depending only on the id but also on another customization number and I do not know how to pass it to the converter. I tried the following But unfortunately it says that converter must be empty according to TLD. I tried also the follwing and tried to get custom from MyConverter code without any success. Am I using the correct approach? Can someone point me on the right direction? JSF newbie but not too much -- -- Cantoni Massimiliano CED Assicom S.p.a. email: [EMAIL PROTECTED] Indirizzo: Via De Cocule 33030 BUIA(UD) Telefono: 0432/9683 --
RE: Faces context is null
Hasnain, The bottom will work however, a common mistake is to redirect but not exit the method. Method execution continues ( I just went through this). My code for forwarding an error is beloow ((HttpServletRequest)request).getRequestDispatcher("/error.jsf").forward(request, response); return; Rhys -Original Message-From: Frank Felix Debatin [mailto:[EMAIL PROTECTED]Sent: April 18, 2006 11:55 AMTo: 'MyFaces Discussion'Subject: RE: Faces context is null Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL ) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 5:50 PMTo: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher("./login.jsf").forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > I am trying to implement a security filter. In the doFilter method if I am> trying to get the faces context using FacesContext.getCurrentInstance() but> this instruction returns null.Right!> Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value.> Actually on authentication failure I would like to reload the login page and> the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework.[1] http://tinyurl.com/ha6s5> Thanks>> Hassnain--Matthias WessendorfAechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
RE: Converter with parameters
Hello Massimiliano, You need you write a custom tag, you can't do it with the f:converter tag. If you look at this thread it's got source code for creating a custom tag for a converter. You will need to pay attention to when the attributes from the tag get evaluated (when the valueBinding getValue() occurs). The example shown will evaluate the attributes when the converter is created. Further down the thread there is a discussion of how to evaluate the attributes when the converter getAsString() is called. http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/17632/focus=1781 9 Greg -Original Message- From: Massimiliano Cantoni [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 11:58 AM To: users@myfaces.apache.org Subject: Converter with parameters I am trying to develop an application using Myfaces and now I am facing this problem: I am trying to develop a custom converter using the converter tag. To be more concrete I am trying to convert the name of a document given the id. Unfortunately the name of the document is not depending only on the id but also on another customization number and I do not know how to pass it to the converter. I tried the following But unfortunately it says that converter must be empty according to TLD. I tried also the follwing and tried to get custom from MyConverter code without any success. Am I using the correct approach? Can someone point me on the right direction? JSF newbie but not too much -- -- Cantoni Massimiliano CED Assicom S.p.a. email: [EMAIL PROTECTED] Indirizzo: Via De Cocule 33030 BUIA(UD) Telefono: 0432/9683 --
RE: indeciperable Errors in Tobabgo app
Ok - removed the jsp:include - the stack trace is the same as before - no change that I can see... An error occurred in the bean. Error Message is: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: Stack Trace is : javax.faces.FacesException: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan dlerImpl.java:152) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372 ) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter( TobagoMultipartFormdataFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) Caused by: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:422) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView HandlerImpl.java:234) at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan dlerImpl.java:120) ... 19 more Caused by: org.apache.jasper.JasperException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle tWrapper.java:504) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:375) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:416) ... 21 more -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 1:26 AM To: MyFaces Discussion Subject: Re: indeciperable Errors in Tobabgo app Can you remove the include in the main tag file, please. Can you send me the full Stacktrace? Regards Bernd John schrieb: > Replacing the deprecated t:include with jsp:include (with > corresponding parameter change), didn't have any effect on the error. > Line 4 is definitely where the tag file is referenced. > > John > > -Original Message- > From: Bernd Bohmann [mailto:[EMAIL PROTECTED] > Sent: Monday, April 17, 2006 1:28 PM > To: MyFaces Discussion > Subject: Re: indeciperable Errors in Tobabgo app > > Hello John, > > the include tag in main.tag is deprecated please use jsp:include > ins
Re: Faces context is null
Actually when I modified the code to HttpServletResponse httpResponse = (HttpServletResponse)response; httpResponse.sendRedirect("login.jsf"); the server enters an infinite loop. On 4/18/06, Hasnain Badami <[EMAIL PROTECTED]> wrote: Sorry it didnt worked :-( Hassnain On 4/18/06, Hasnain Badami <[EMAIL PROTECTED] > wrote: Thanks Frank, it works :) Hassnain On 4/18/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote: Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL ) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2006 5:50 PM To: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher("./login.jsf").forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED] > wrote: > I am trying to implement a security filter. In the doFilter method if I am> trying to get the faces context using FacesContext.getCurrentInstance() but> this instruction returns null.Right!> Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value.> Actually on authentication failure I would like to reload the login page and> the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5> Thanks>> Hassnain--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: Faces context is null
Sorry it didnt worked :-( Hassnain On 4/18/06, Hasnain Badami <[EMAIL PROTECTED]> wrote: Thanks Frank, it works :) Hassnain On 4/18/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote: Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL ) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2006 5:50 PM To: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher("./login.jsf").forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED] > wrote: > I am trying to implement a security filter. In the doFilter method if I am> trying to get the faces context using FacesContext.getCurrentInstance() but> this instruction returns null.Right!> Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value.> Actually on authentication failure I would like to reload the login page and> the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5> Thanks>> Hassnain--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: Faces context is null
Thanks Frank, it works :) Hassnain On 4/18/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote: Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL ) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 18, 2006 5:50 PM To: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher("./login.jsf").forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED] > wrote: > I am trying to implement a security filter. In the doFilter method if I am> trying to get the faces context using FacesContext.getCurrentInstance() but> this instruction returns null.Right!> Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value.> Actually on authentication failure I would like to reload the login page and> the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5> Thanks>> Hassnain--Matthias Wessendorf Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Converter with parameters
I am trying to develop an application using Myfaces and now I am facing this problem: I am trying to develop a custom converter using the converter tag. To be more concrete I am trying to convert the name of a document given the id. Unfortunately the name of the document is not depending only on the id but also on another customization number and I do not know how to pass it to the converter. I tried the following But unfortunately it says that converter must be empty according to TLD. I tried also the follwing and tried to get custom from MyConverter code without any success. Am I using the correct approach? Can someone point me on the right direction? JSF newbie but not too much -- -- Cantoni Massimiliano CED Assicom S.p.a. email: [EMAIL PROTECTED] Indirizzo: Via De Cocule 33030 BUIA(UD) Telefono: 0432/9683 --
RE: Faces context is null
Hasnain, try a redirect like this: httpResponse.sendRedirect( httpResponse.encodeRedirectURL(LOGIN_URL ) ); HTH Frank Felix From: Hasnain Badami [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 5:50 PMTo: MyFaces DiscussionSubject: Re: Faces context is null Thanks for your reply guys. I also tried to use request.getRequestDispatcher("./login.jsf").forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > I am trying to implement a security filter. In the doFilter method if I am> trying to get the faces context using FacesContext.getCurrentInstance() but> this instruction returns null.Right!> Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value.> Actually on authentication failure I would like to reload the login page and> the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework.[1] http://tinyurl.com/ha6s5> Thanks>> Hassnain--Matthias WessendorfAechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
RE: Faces context is null
Why do you need faces? Whats the business? Rhys -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matthias Wessendorf Sent: April 18, 2006 11:28 AM To: MyFaces Discussion Subject: Re: Faces context is null > I am trying to implement a security filter. In the doFilter method if I am > trying to get the faces context using FacesContext.getCurrentInstance() but > this instruction returns null. Right! > Any idea of why this is happening? FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you get a null value. > Actually on authentication failure I would like to reload the login page and > the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated. J2EE based security might be usful. Or ou may try a PhaseListener instead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5 > Thanks > > Hassnain -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: Faces context is null
Thanks for your reply guys. I also tried to use request.getRequestDispatcher("./login.jsf").forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt. Any idea of what might be the problem. once again thanks for your replies Hassnain On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > I am trying to implement a security filter. In the doFilter method if I am> trying to get the faces context using FacesContext.getCurrentInstance() but> this instruction returns null.Right!> Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you geta null value.> Actually on authentication failure I would like to reload the login page and> the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5> Thanks>> Hassnain--Matthias WessendorfAechterhoek 1848282 Emsdetten http://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com
Re: to display bean messages?
will print all global FacesMessage instances found in the FacesContext. If you want to add a message from your Invoke Application phase (an actionListener method, for example), just do this: if ( passwords don't match ) { MessageUtils.addMessage(FacesMessage.SEVERITY_ERROR,"message.key.passwords.nomatch", null); } This message will be displayed by the tag. -- View this message in context: http://www.nabble.com/%3Ch%3Amessages%3E-to-display-bean-messages--t1468904.html#a3970818 Sent from the MyFaces - Users forum at Nabble.com.
Re: Sortable tables dataTable and commandSortHeader
Thanks Catalin, That may be solution. Regards, Sasha On 4/18/06, Catalin Kormos <[EMAIL PROTECTED]> wrote: > Hi Sasha, > > Well, one solution would be to add an new attribute similar to > "rowIndexVar", probably named "currentColumnVar" that will act as parameter > name, under which a boolean is set in request scope, set to true for the > currently sorted column, and false for the others. > > I'm planning to provide a patch for this in the next couple of days, if this > sounds good to others too, or somebody else is not faster than me :). > > Regards, > Catalin > > > Sasa Milosavljevic <[EMAIL PROTECTED]> wrote: > I need to render different title on commandSortHeader link regarding > is it current column equal to sort column. So I need to check for > every header something like this commandSortHeader.columnName == > sortColumn. I suppose i can find component via context , perform > conversion and check condition, but I am not sure is this the best way > to do that? > Thanks in advance. > Sasha > > > > > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1¢/min. > >
Re: JSF and Portlets commandbutton path to my pic
hey, > commandButton look like : > > image="#{facesContext.externalContext.requestContextPath} + > "/path/to/pic.gif"" action="#{Overview.createEmpty}" /> please try image="#{facesContext.externalContext.requestContextPath}/path/to/pic.gif" if this isn't good for you, bind the component to a backing bean by using binding="#{mybean.button}" The property "button" must be type of "HtmlCommandButton" there you can use something like button.setImage("foo.gif"); HTH, Matthias > > ? > > best regards, > > ben > > > Matthias Wessendorf schrieb: > > btw. there is also an *interesting* util clazz inside of MyFaces > > ([1]) > > > > [1] > > http://myfaces.apache.org/impl/apidocs/org/apache/myfaces/portlet/PortletUtil.html > > > thanks for this hint > > On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > > > >> have you tried something like > >> > >> #{facesContext.externalContext.requestContextPath} > >> > >> another thing might be using "binding" attribute. With that you'll get > >> "java based access" to the component inside of your managed bean > >> > certainly i could try this one but i want to avoid it > > >> Regards, > >> Matthias > >> > >> On 4/18/06, Benjamin Bratkus <[EMAIL PROTECTED]> wrote: > >> > >>> Hello all, > >>> > >>> i want to display a pic above my commandButton but i cant find a > >>> resolution because > >>> org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or > >>> attribute directive in tag file, attribute image does not accept any > >>> expressions > >>> > >>> >>> image="<%=renderResponse.encodeURL(renderRequest.getContextPath() + > >>> "/path/to/pic.gif")%>" action="#{Overview.createEmpty}" /> > >>> > >>> > >>> any suggestions ? hints? > >>> > >>> best regards, > >>> > >>> ben > >>> > >>> > >> -- > >> Matthias Wessendorf > >> Aechterhoek 18 > >> 48282 Emsdetten > >> http://jroller.com/page/mwessendorf > >> mwessendorf-at-gmail-dot-com > >> > >> > > > > > > -- > > Matthias Wessendorf > > Aechterhoek 18 > > 48282 Emsdetten > > http://jroller.com/page/mwessendorf > > mwessendorf-at-gmail-dot-com > > > > > > > > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: JSF and Portlets commandbutton path to my pic
hello matthias, thanks for your fast reply, could you give me more details for this sollution ? should my commandButton look like : ? best regards, ben Matthias Wessendorf schrieb: btw. there is also an *interesting* util clazz inside of MyFaces ([1]) [1] http://myfaces.apache.org/impl/apidocs/org/apache/myfaces/portlet/PortletUtil.html thanks for this hint On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: have you tried something like #{facesContext.externalContext.requestContextPath} another thing might be using "binding" attribute. With that you'll get "java based access" to the component inside of your managed bean certainly i could try this one but i want to avoid it Regards, Matthias On 4/18/06, Benjamin Bratkus <[EMAIL PROTECTED]> wrote: Hello all, i want to display a pic above my commandButton but i cant find a resolution because org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or attribute directive in tag file, attribute image does not accept any expressions " action="#{Overview.createEmpty}" /> any suggestions ? hints? best regards, ben -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
to display bean messages?
Hello! Save my poor soul!!! :-) I'm seeking a way to be able to report high-level bean messages back to the user (e.g. password-confirmation mismatch etc.), not only field validation messages summary. Please, tell me how to do it... I cant find a way to use HtmlMessages class (and tag) properly... No addMessage(...) -like methods. Thank you!!! Michael.
Re: Sortable tables dataTable and commandSortHeader
Thanks Adrew that works. I looked for more general solution but forget this simple one. Regards Sasha. On 4/18/06, Andrew Robinson <[EMAIL PROTECTED]> wrote: > Is this what you want? > > > > > > > > > > -Andrew > > > On 4/18/06, Sasa Milosavljevic <[EMAIL PROTECTED]> wrote: > > I need to render different title on commandSortHeader link regarding > > is it current column equal to sort column. So I need to check for > > every header something like this commandSortHeader.columnName == > > sortColumn. I suppose i can find component via context , perform > > conversion and check condition, but I am not sure is this the best way > > to do that? > > Thanks in advance. > > Sasha > > > >
Re: Faces context is null
> I am trying to implement a security filter. In the doFilter method if I am > trying to get the faces context using FacesContext.getCurrentInstance() but > this instruction returns null. Right! > Any idea of why this is happening? FacesContext is setup inside of FacesServlet.service() ([1]) for each request. So your filter is called before service() is call. That's why you get a null value. > Actually on authentication failure I would like to reload the login page and > the main purpose of getting the facescontext is to get the navigationhandler > and load the login page. Any alternative ideas would be highly appreciated. J2EE based security might be usful. Or ou may try a PhaseListener instead, which is called *inside* the Faces framework. [1] http://tinyurl.com/ha6s5 > Thanks > > Hassnain -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
RE: Faces context is null
Best practice is to use the default security mechanism of your container. Something like: [code] FORM myRealm /login.jsf /login-error.jsf [/code] Check your applicationserver descriptor how to set an authenticator. Greets Dennie From: Hasnain Badami [mailto:[EMAIL PROTECTED] Sent: dinsdag 18 april 2006 17:18 To: MyFaces Discussion Subject: Faces context is null Hi I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null. Any idea of why this is happening? Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated. Thanks Hassnain
Faces context is null
Hi I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null. Any idea of why this is happening? Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated. Thanks Hassnain
Re: Sortable tables dataTable and commandSortHeader
Hi Sasha,Well, one solution would be to add an new attribute similar to "rowIndexVar", probably named "currentColumnVar" that will act as parameter name, under which a boolean is set in request scope, set to true for the currently sorted column, and false for the others. I'm planning to provide a patch for this in the next couple of days, if this sounds good to others too, or somebody else is not faster than me :).Regards,CatalinSasa Milosavljevic <[EMAIL PROTECTED]> wrote: I need to render different title on commandSortHeader link regardingis it current column equal to sort column. So I need to check forevery header something like this commandSortHeader.columnName ==sortColumn. I suppose i can find component via context , performconversion and check condition, but I am not sure is this the best wayto do that?Thanks in advance.Sasha Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
Re: JSF and Portlets commandbutton path to my pic
btw. there is also an *interesting* util clazz inside of MyFaces ([1]) [1] http://myfaces.apache.org/impl/apidocs/org/apache/myfaces/portlet/PortletUtil.html On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > have you tried something like > > #{facesContext.externalContext.requestContextPath} > > another thing might be using "binding" attribute. With that you'll get > "java based access" to the component inside of your managed bean > > Regards, > Matthias > > On 4/18/06, Benjamin Bratkus <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > i want to display a pic above my commandButton but i cant find a > > resolution because > > org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or > > attribute directive in tag file, attribute image does not accept any > > expressions > > > > > image="<%=renderResponse.encodeURL(renderRequest.getContextPath() + > > "/path/to/pic.gif")%>" action="#{Overview.createEmpty}" /> > > > > > > any suggestions ? hints? > > > > best regards, > > > > ben > > > > > -- > Matthias Wessendorf > Aechterhoek 18 > 48282 Emsdetten > http://jroller.com/page/mwessendorf > mwessendorf-at-gmail-dot-com > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: Sortable tables dataTable and commandSortHeader
Is this what you want? -AndrewOn 4/18/06, Sasa Milosavljevic <[EMAIL PROTECTED]> wrote: I need to render different title on commandSortHeader link regardingis it current column equal to sort column. So I need to check forevery header something like this commandSortHeader.columnName ==sortColumn. I suppose i can find component via context , perform conversion and check condition, but I am not sure is this the best wayto do that?Thanks in advance.Sasha
Re: JSF and Portlets commandbutton path to my pic
have you tried something like #{facesContext.externalContext.requestContextPath} another thing might be using "binding" attribute. With that you'll get "java based access" to the component inside of your managed bean Regards, Matthias On 4/18/06, Benjamin Bratkus <[EMAIL PROTECTED]> wrote: > Hello all, > > i want to display a pic above my commandButton but i cant find a > resolution because > org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or > attribute directive in tag file, attribute image does not accept any > expressions > > image="<%=renderResponse.encodeURL(renderRequest.getContextPath() + > "/path/to/pic.gif")%>" action="#{Overview.createEmpty}" /> > > > any suggestions ? hints? > > best regards, > > ben > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Re: Question About Loading Items Into/ From Beans
Thanks for the push in the right direction. This worked perfectly! Troy Matthias Wessendorf said the following on 4/18/2006 9:25 AM: use in main.jsp and in constructor of your backing bean "bean" popluate the propery "list" . list can be any of these *types*: - Arrays - java.util.List - java.sql.ResultSet - javax.servlet.jsp.jstl.sql.Result JSF isn't an action based framework. Btw. if you don't know how to define a backing bean, which is a normal JvaBean, please go ahead and read some *introductions* ;-) HTH, Matthias On 4/18/06, Troy Bull <[EMAIL PROTECTED]> wrote: Greetings: I will start out by saying I am coming from a struts background. When I program struts every one of my applications started out with kicker.do. This action is where I loaded up collections of DTO's (ejb 2). Then in my jsp pages I would use these collections to display menus (drop downs) and other things. Now that I have switched to (or am trying to) JSF, I dont understand how I can access my database data. For example, I have a page main.jsp and on that page I want to have a JSF data table. I have a session facade bean that returns a collection of DTO's that I want in the table, how do I access this collection from my page? In the old scheme I would load the collection into a session scoped variable and then just iterate over it. Is there some way I can tell my data table to invoke my session ejb facade bean? I am really confused. Thanks in advance for any pointers troy -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
JSF and Portlets commandbutton path to my pic
Hello all, i want to display a pic above my commandButton but i cant find a resolution because org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or attribute directive in tag file, attribute image does not accept any expressions image="<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/path/to/pic.gif")%>" action="#{Overview.createEmpty}" /> any suggestions ? hints? best regards, ben
Re: Char Encoding
Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;public class YourCharEncodingFilter implements Filter { public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { servletRequest.setCharacterEncoding("UTF-8"); servletResponse.setCharacterEncoding("UTF-8"); filterChain.doFilter(servletRequest, servletResponse); } public void destroy() { }}Regards,CagatayOn 4/18/06, Murat Hazer <[EMAIL PROTECTED]> wrote: Hi, I see this line(s) at the output console after each page render completed 17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1i am using spring's CharacterEncodingFilter to solve this problem as below; encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true should i do something different in order to change default char encoding to utf-8?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Question About Loading Items Into/ From Beans
btw. [1] shows the complete value of UIData.getValue(). More on DataModel see [2] [1] http://tinyurl.com/nnsg8 [2] http://tinyurl.com/moy8b On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > use in main.jsp > > and in constructor of your backing bean "bean" popluate the propery "list" . > > list can be any of these *types*: > - Arrays > - java.util.List > - java.sql.ResultSet > - javax.servlet.jsp.jstl.sql.Result > > JSF isn't an action based framework. > > Btw. if you don't know how to define a backing bean, which is a normal > JvaBean, please go ahead and read some *introductions* ;-) > > HTH, > Matthias > > On 4/18/06, Troy Bull <[EMAIL PROTECTED]> wrote: > > Greetings: > > > > I will start out by saying I am coming from a struts background. When I > > program struts every one of my applications started out with kicker.do. > > This action is where I loaded up collections of DTO's (ejb 2). Then in > > my jsp pages I would use these collections to display menus (drop downs) > > and other things. > > > > Now that I have switched to (or am trying to) JSF, I dont understand how > > I can access my database data. For example, I have a page main.jsp and > > on that page I want to have a JSF data table. I have a session facade > > bean that returns a collection of DTO's that I want in the table, how do > > I access this collection from my page? In the old scheme I would load > > the collection into a session scoped variable and then just iterate over > > it. Is there some way I can tell my data table to invoke my session ejb > > facade bean? I am really confused. > > > > Thanks in advance for any pointers > > troy > > > > > -- > Matthias Wessendorf > Aechterhoek 18 > 48282 Emsdetten > http://jroller.com/page/mwessendorf > mwessendorf-at-gmail-dot-com > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Char Encoding
Hi, I see this line(s) at the output console after each page render completed17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1i am using spring's CharacterEncodingFilter to solve this problem as below; encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true should i do something different in order to change default char encoding to utf-8?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: Question About Loading Items Into/ From Beans
use in main.jsp and in constructor of your backing bean "bean" popluate the propery "list" . list can be any of these *types*: - Arrays - java.util.List - java.sql.ResultSet - javax.servlet.jsp.jstl.sql.Result JSF isn't an action based framework. Btw. if you don't know how to define a backing bean, which is a normal JvaBean, please go ahead and read some *introductions* ;-) HTH, Matthias On 4/18/06, Troy Bull <[EMAIL PROTECTED]> wrote: > Greetings: > > I will start out by saying I am coming from a struts background. When I > program struts every one of my applications started out with kicker.do. > This action is where I loaded up collections of DTO's (ejb 2). Then in > my jsp pages I would use these collections to display menus (drop downs) > and other things. > > Now that I have switched to (or am trying to) JSF, I dont understand how > I can access my database data. For example, I have a page main.jsp and > on that page I want to have a JSF data table. I have a session facade > bean that returns a collection of DTO's that I want in the table, how do > I access this collection from my page? In the old scheme I would load > the collection into a session scoped variable and then just iterate over > it. Is there some way I can tell my data table to invoke my session ejb > facade bean? I am really confused. > > Thanks in advance for any pointers > troy > -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten http://jroller.com/page/mwessendorf mwessendorf-at-gmail-dot-com
Sortable tables dataTable and commandSortHeader
I need to render different title on commandSortHeader link regarding is it current column equal to sort column. So I need to check for every header something like this commandSortHeader.columnName == sortColumn. I suppose i can find component via context , perform conversion and check condition, but I am not sure is this the best way to do that? Thanks in advance. Sasha
Question About Loading Items Into/ From Beans
Greetings: I will start out by saying I am coming from a struts background. When I program struts every one of my applications started out with kicker.do. This action is where I loaded up collections of DTO's (ejb 2). Then in my jsp pages I would use these collections to display menus (drop downs) and other things. Now that I have switched to (or am trying to) JSF, I dont understand how I can access my database data. For example, I have a page main.jsp and on that page I want to have a JSF data table. I have a session facade bean that returns a collection of DTO's that I want in the table, how do I access this collection from my page? In the old scheme I would load the collection into a session scoped variable and then just iterate over it. Is there some way I can tell my data table to invoke my session ejb facade bean? I am really confused. Thanks in advance for any pointers troy
Tomahawk dataTable dubt. How to handle each row differently
Hi all, I'm currrently develping a simple web page that shows informations through a tomahawk dataTable. I'd like to don't render a single row of my table when, for instance, a property of my currentObject be false. Ps.: I can't remove this entry from my collection before rendering my page because when I'm going to save this collection in the database, this record shall be persisted even so not rendered on my page. Thanks and best regards. Sergio Flor.
Re: Missing tomahawk.jar in MyFaces1.2
I'm not sorry to say it ;-) This is a good thing. It should mean more frequent releases of tomahawk which changes often as opposed to the core which is stable but requires lots of testing before a release. Sean On 4/18/06, Werner Punz <[EMAIL PROTECTED]> wrote: > Hi Balaji, sorry to say that, but the Tomahawk release cycles are now > decoupled due to the addition of the Tobago component set and soon also > the ADF Faces framework to the myfaces mix. > > So currently there first was the core released and soon also a stable > Tomahawk 1.1.2 will be released (the fork for stable is imminent as we > speak), in the meantime I only can recommend to revert to the nighlies > until the stable Tomahawk is in sync. > > In the future there will be decoupled releases of the core and the > component sets, with a much higher release frequency. > > Werner > > > > Balaji Kalyansundaram schrieb: > > Hi Dennis > > > > Thanks for the reply. > > > > "Please pay attention to the fact that you cannot use this release of > > MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it > > will only work with the Tomahawk library in version 1.1.2 and onward." > > - I cannot find the new version of tomahawk separately @ > > http://myfaces.apache.org/download.html > > > > Only the old 1.1.1 is available. But it is mentioned above that this will > > not work with new verion of myfaces core. > > > > > > Balaji > > > > > > -Original Message- > > From: Dennis Byrne [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, 18 April 2006 5:13 PM > > To: MyFaces Discussion > > Subject: Re: Missing tomahawk.jar in MyFaces1.2 > > > > > > You may want to check your inbox for the announcement notes. Tomahawk is > > now released seperately. > > > > Dennis Byrne > > > >> -Original Message- > >> From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED] > >> Sent: Tuesday, April 18, 2006 03:11 AM > >> To: dev@myfaces.apache.org, users@myfaces.apache.org > >> Subject: Missing tomahawk.jar in MyFaces1.2 > >> > >> > >> Hi All > >> > >> Glad to hear that the new verison is available. > >> > >> I cannot find the the tomahawk.jar @ > >> http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip > >> > >> But it has myfaces-impl.jar, etc. > >> > >> Am I lloking at the wrong place? > >> > >> Thanks in advance. > >> > >> Balaji > >> > >> > >> This correspondence is for the named persons only. > >> It may contain confidential or privileged information or both. > >> No confidentiality or privilege is waived or lost by any mis transmission. > >> If you receive this correspondence in error please delete it from your > >> system immediately and notify the sender. > >> You must not disclose, copy or relay on any part of this correspondence, > >> if you are not the intended recipient. > >> Any opinions expressed in this message are those of the individual sender > >> except where the sender expressly, > >> and with the authority, states them to be the opinions of the Department > >> of Emergency Services, Queensland. > > > > > > > > This correspondence is for the named persons only. > > > > It may contain confidential or privileged information or both. > > > > No confidentiality or privilege is waived or lost by any mis transmission. > > > > If you receive this correspondence in error please delete it from your > > system immediately and notify the sender. > > > > You must not disclose, copy or relay on any part of this correspondence, if > > you are not the intended recipient. > > > > Any opinions expressed in this message are those of the individual sender > > except where the sender expressly, > > > > and with the authority, states them to be the opinions of the Department of > > Emergency Services, Queensland. > > > >
Re: [ANNOUNCE] MyFaces 1.1.2
Thanks, Yes I can see that it is inside shared - I just don't know what I should do my knowledge of maven/svn environment is limited to lines told in Myfaces Wiki. So, for me the only way to build the sandbox has been "mvn install" and that fails now. --- VLi ---On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: ConvertDateTimeTagBase is inside of SHAREDOn 4/18/06, Vesa Lindfors <[EMAIL PROTECTED]> wrote:> Hi,>> Many thanks of 1.1.2 core.> > I have understood that we should still build the sandbox jar with maven> (until official 1.1.2 versions available).> I tried twice: I took svn update, then I gave "maven clean" and "maven > install" - but both times the result was:>> Compiling 150 source files to> C:\Myfaces-1.1.2\current\core\impl\target\classes> [INFO]> - > ---> [ERROR] BUILD FAILURE> [INFO]> -> ---> [INFO] Compilation failure>> C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[21,50] cannot resolve symbol> symbol : class ConvertDateTimeTagBase> location: package core>> C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[29,16] cannot resolve symbol> symbol : class ConvertDateTimeTagBase> location: class> org.apache.myfaces.taglib.core.ConvertDateTimeTag>> C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[40,8] cannot resolve symbol> symbol : variable super> location: class> org.apache.myfaces.taglib.core.ConvertDateTimeTag>> C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[41,8] cannot resolve symbol> symbol : method setConverterId ( java.lang.String)> location: class> org.apache.myfaces.taglib.core.ConvertDateTimeTag>> > br,> --- VLi --- On 4/18/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:> > Don't know where this reference comes from - it's not there anymore in > > the current MyFaces sources.> >> > Did you get rid of the commons jar file? There is none in the new> > MyFaces-release.> >> > regards,> >> > Martin > >> > On 4/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:> > > Hi,> > >> > > > Please pay attention to the fact that you cannot use this release of > > > > MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it> > > > will only work with the Tomahawk library in version 1.1.2 and onward.> > >> > > I just downloaded the new core Version ( myfaces-core-1.1.2-bin.zip)> > > together with the latest Tomahawk> > > Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip).> > > During startup, it gives me the following exception:> > > > > > javax.faces.FacesException : java.lang.NoClassDefFoundError:> > >> org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper> > > at> > > > org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)> > > at> > >> org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265) > > > at> > >> org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)> > > at> > >> org.apache.myfaces.config.FacesConfigurator.configure (FacesConfigurator.java:133)> > > at> > >> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64)> > > at > > >> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47)> > > at> > > org.apache.catalina.core.StandardContext.listenerStart > (StandardContext.java:3727)> > > at> org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)> > > at> > >> org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java> :759)> > > at> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)> > > at> org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)> > > at> > > org.apache.catalina.startup.HostConfig.deployDescriptor> (HostConfig.java:603)> > > at> > >> org.apache.catalina.startup.HostConfig.deployDescriptors (HostConfig.java:535)> > > at> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)> > > at> org.apache.catalina.startup.HostConfig.start(HostConfig.java :1118)> > > at> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)> > > at> > >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > (LifecycleSupport.java:119)> > > at> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)> > > at> org.apache.catalina.core.StandardHost.start (StandardHost.java:718)> > > at> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)> > > at> org.apache.catalina.core.StandardEngine.start
Re: [ANNOUNCE] MyFaces 1.1.2
ConvertDateTimeTagBase is inside of SHARED On 4/18/06, Vesa Lindfors <[EMAIL PROTECTED]> wrote: > Hi, > > Many thanks of 1.1.2 core. > > I have understood that we should still build the sandbox jar with maven > (until official 1.1.2 versions available). > I tried twice: I took svn update, then I gave "maven clean" and "maven > install" - but both times the result was: > > Compiling 150 source files to > C:\Myfaces-1.1.2\current\core\impl\target\classes > [INFO] > - > --- > [ERROR] BUILD FAILURE > [INFO] > - > --- > [INFO] Compilation failure > > C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[21,50] cannot resolve symbol > symbol : class ConvertDateTimeTagBase > location: package core > > C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[29,16] cannot resolve symbol > symbol : class ConvertDateTimeTagBase > location: class > org.apache.myfaces.taglib.core.ConvertDateTimeTag > > C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[40,8] cannot resolve symbol > symbol : variable super > location: class > org.apache.myfaces.taglib.core.ConvertDateTimeTag > > C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ > ConvertDateTimeTag.java:[41,8] cannot resolve symbol > symbol : method setConverterId ( java.lang.String) > location: class > org.apache.myfaces.taglib.core.ConvertDateTimeTag > > > br, > --- VLi --- > > > > On 4/18/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > Don't know where this reference comes from - it's not there anymore in > > the current MyFaces sources. > > > > Did you get rid of the commons jar file? There is none in the new > > MyFaces-release. > > > > regards, > > > > Martin > > > > On 4/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > > Please pay attention to the fact that you cannot use this release of > > > > MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it > > > > will only work with the Tomahawk library in version 1.1.2 and onward. > > > > > > I just downloaded the new core Version ( myfaces-core-1.1.2-bin.zip) > > > together with the latest Tomahawk > > > Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip). > > > During startup, it gives me the following exception: > > > > > > javax.faces.FacesException : java.lang.NoClassDefFoundError: > > > > org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper > > > at > > > > org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279) > > > at > > > > org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265) > > > at > > > > org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634) > > > at > > > > org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133) > > > at > > > > org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64) > > > at > > > > org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47) > > > at > > > org.apache.catalina.core.StandardContext.listenerStart > (StandardContext.java:3727) > > > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) > > > at > > > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java > :759) > > > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > > > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) > > > at > > > org.apache.catalina.startup.HostConfig.deployDescriptor > (HostConfig.java:603) > > > at > > > > org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) > > > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) > > > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) > > > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) > > > at > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > (LifecycleSupport.java:119) > > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) > > > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > > > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) > > > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > > > at > org.apache.catalina.core.StandardService.start > (StandardService.java:450) > > > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > > >
Re: [ANNOUNCE] MyFaces 1.1.2
Hi, Many thanks of 1.1.2 core.I have understood that we should still build the sandbox jar with maven (until official 1.1.2 versions available). I tried twice: I took svn update, then I gave "maven clean" and "maven install" - but both times the result was: Compiling 150 source files to C:\Myfaces-1.1.2\current\core\impl\target\classes[INFO] [ERROR] BUILD FAILURE[INFO] - ---[INFO] Compilation failureC:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ConvertDateTimeTag.java:[21,50] cannot resolve symbolsymbol : class ConvertDateTimeTagBase location: package coreC:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ConvertDateTimeTag.java:[29,16] cannot resolve symbolsymbol : class ConvertDateTimeTagBaselocation: class org.apache.myfaces.taglib.core.ConvertDateTimeTagC:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ConvertDateTimeTag.java:[40,8] cannot resolve symbolsymbol : variable super location: class org.apache.myfaces.taglib.core.ConvertDateTimeTagC:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\ConvertDateTimeTag.java:[41,8] cannot resolve symbolsymbol : method setConverterId ( java.lang.String)location: class org.apache.myfaces.taglib.core.ConvertDateTimeTag br, --- VLi ---On 4/18/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: Don't know where this reference comes from - it's not there anymore inthe current MyFaces sources.Did you get rid of the commons jar file? There is none in the newMyFaces-release.regards,Martin On 4/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:> Hi,>> > Please pay attention to the fact that you cannot use this release of > > MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it> > will only work with the Tomahawk library in version 1.1.2 and onward.>> I just downloaded the new core Version ( myfaces-core-1.1.2-bin.zip)> together with the latest Tomahawk> Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip).> During startup, it gives me the following exception:>> javax.faces.FacesException : java.lang.NoClassDefFoundError:> org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper> at> org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)> at > org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)> at> org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)> at > org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)> at> org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64) > at> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47)> at> org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java:3727)> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)> at> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java :759)> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)> at> org.apache.catalina.startup.HostConfig.deployDescriptor (HostConfig.java:603)> at> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)> at> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)> at org.apache.catalina.core.StandardService.start (StandardService.java:450)> at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)> at org.apache.catalina.startup.Catalina.start(Catalina.java:551)> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)> at> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)> at> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)> at java.lang.reflect.Method.invoke(Method.java:585)> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java :413)>> It?s rig
Re: HTML Editor - JSF 1.2 roadmap
Another thing I forgot, you can use the dojo rich edit as is, I doubht anything will be broken in this regard. As long as you use the initializer apis and do not start to mess around with some internals, like I had to do, you are safe anyway.
Re: HTML Editor - JSF 1.2 roadmap
Philippe Lamote schrieb: > Hi Werner, > > Did I understood well that the timeframe to promote it from the > sandbox(s:) to t:(plain Tomahawk) is about 2 weeks? > No sorry I was unclear, the timeframe for the pagelet component to hit the sandbox will be around two weeks, depending on how much time I can spend on it. The promotion of dojo from the sandbox to Tomahawk is not decided yet. I probably will wait for the dojo 0.3 release and the component fixup which has to be done before we move forward with that one, unless there are imminent reasons for doing that sooner. The main reason why I am holding off, besides the obvious lack of time (and the myfaces 1.1.2 release), is that we have some very complicated components in the sandbox which rely on some dojo internals which might be broken. And the 0.3 release should have a stable enough API so that we do not run into those issues in the immediate future once we start to move core code towards dojo, tomahawk wise.
Re: HTML Editor - JSF 1.2 roadmap
Werner Punz schrieb: > Matthias Wessendorf schrieb: >>> Actually the easiest replacement currently probably is to use the >>> dojoInitializer to get it, the tomahawk sandbox has a full dojo in there >>> and the editor can be reached via a textarea and the dojo initializer >> Philippe- >> >> you may also take a look at [1] >> >> -Matthias >> >> [1] http://tinyurl.com/cp9jm >> > Well one warning though, with this method you cannot adjust the buttons > the better way currently is to use the dojoinitilizer for the requires > statements and then use standard javascripts for initializing the editor. > AFAIR there is an example in the somewhat hidden dojo subdir of the > myfaces-sandbox examples where exactly that is done. > If not please drop a message here and I will post some code. > > Sorry to answer here again, the affected file can be found in myfaces-examples-sandbox/dojo/textareatestjsfonly.jsp (jsf) this is a small demo on how to initialize the editor http://wuerg.kicks-ass.net:8080/myfaces-example-sandbox/dojo/textareatestjsfonly.jsf here is a small demo. If you need the text edtor limited into a smaller area, wrap it into a div. Note it is important that you use a textarea as a starting base, due to the form handling, if you use a div as a starting base for the dojo editor the form values will be lost. here is a general description: http://dojotoolkit.org/docs/rich_text.html
Re: HTML Editor - JSF 1.2 roadmap
Hi Werner, Did I understood well that the timeframe to promote it from the sandbox(s:) to t:(plain Tomahawk) is about 2 weeks? Philippe On 18 Apr 2006, at 12:43, Werner Punz wrote: Philippe Lamote schrieb: Thanks Matthias & Werner, Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ? (this currently is the main problem - Kupu just doesn't work on IE) Phil The dojo editor at least works on mozilla and ie, I think also on safari, there might be some issues with opera though.
Re: HTML Editor - JSF 1.2 roadmap
Matthias Wessendorf schrieb: >> Actually the easiest replacement currently probably is to use the >> dojoInitializer to get it, the tomahawk sandbox has a full dojo in there >> and the editor can be reached via a textarea and the dojo initializer > > Philippe- > > you may also take a look at [1] > > -Matthias > > [1] http://tinyurl.com/cp9jm > Well one warning though, with this method you cannot adjust the buttons the better way currently is to use the dojoinitilizer for the requires statements and then use standard javascripts for initializing the editor. AFAIR there is an example in the somewhat hidden dojo subdir of the myfaces-sandbox examples where exactly that is done. If not please drop a message here and I will post some code.
Re: Forced to use session bean for datatable
Hi,You can save your lists (datatable uses) with , this is a better approach then session scoped beans as i know.regards...On 4/18/06, 101questionjsf <[EMAIL PROTECTED]> wrote: hi all,I'm using datatable with sorting option for quite a number of pages, withsession beans for nearly all beans.If I switch to use request scope bean, the sorting will not work for thedatatable. Is it alright that nearly all my beans are session scoped? Or is there anyother option such that i can have sorting option and also request scoped?Thanks--View this message in context: http://www.nabble.com/Forced-to-use-session-bean-for-datatable-t1467150.html#a3965215Sent from the MyFaces - Users forum at Nabble.com. -- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
Re: HTML Editor - JSF 1.2 roadmap
Philippe Lamote schrieb: > Thanks Matthias & Werner, > > Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ? > (this currently is the main problem - Kupu just doesn't work on IE) > Phil > The dojo editor at least works on mozilla and ie, I think also on safari, there might be some issues with opera though.
RE: How to fire an Action in
Do you have server- or client-state? I think that I remeber some issues with server-state and that tabchange-listener hth Alexander > -Original Message- > From: MYyfaces Chaminda Siyasin [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 16, 2006 9:34 AM > To: users@myfaces.apache.org > Subject: How to fire an Action in > > I am using myfaces s Tag in a Tab Pane of my > application.but I want to fire a action event in side the > Tab.So I used > Myfaces attribute but there is no > action firing. > And I tried to use > > rendered="#{tabbedPaneBean._tab4Visible}"> > > >actionListener="#{tabPaneListenerBean.listen}"> > > > > > > >value="#{exampleTabbedPane.selectedIndexT}"/> > > > Even is not working inside the > Could you please give me a hint regarding on action firing in > this Tab Pane. > > Thanks, > > chaminda > -- > View this message in context: > http://www.nabble.com/How-to-fire-an-Action-in-%3Cx%3ApanelTab -t1456923.html#a3937410 > Sent from the MyFaces - Users forum at Nabble.com. > >
Re: HTML Editor - JSF 1.2 roadmap
Thanks Matthias & Werner, Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ? (this currently is the main problem - Kupu just doesn't work on IE) Phil On 18 Apr 2006, at 11:20, Matthias Wessendorf wrote: Actually the easiest replacement currently probably is to use the dojoInitializer to get it, the tomahawk sandbox has a full dojo in there and the editor can be reached via a textarea and the dojo initializer Philippe- you may also take a look at [1] -Matthias [1] http://tinyurl.com/cp9jm
Re: Welcome Dennis Byrne as a MyFaces committer!
Wellcome again! Bruno On 4/18/06, Werner Punz <[EMAIL PROTECTED]> wrote: > Martin Marinschek schrieb: > > Wow, a lot of welcome mails tonight! > > > > Welcome Dennis Byrne as a very active MyFaces contributor and now > > committer. Ok, he's been for a while, but can you imagine, we forgot > > to send out a welcome mail. So there it is. Dennis, it's great to have > > you aboard! > > > Congratulations > >
Re: Welcome Jurgen Lust to the team!
Wellcome! Bruno On 4/18/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > welocme jurgen! > > On 4/18/06, Stan Silvert <[EMAIL PROTECTED]> wrote: > > Welcome Jurgen! > > > > Stan Silvert > > JBoss, Inc. > > [EMAIL PROTECTED] > > callto://stansilvert > > > > > -Original Message- > > > From: Martin Marinschek [mailto:[EMAIL PROTECTED] > > > Sent: Monday, April 17, 2006 6:25 PM > > > To: MyFaces Development; MyFaces Discussion > > > Subject: Welcome Jurgen Lust to the team! > > > > > > Hi *, > > > > > > The MyFaces PMC is pleased to announce that we've added Jurgen Lust to > > > the team - Jurgen has been an active MyFaces contributor for a long > > > time now, and it's a pleasure to have him aboard. > > > > > > @Jurgen: sorry for the delayed welcome mail - we somehow forgot about > > > this. > > > > > > regards, > > > > > > Martin > > > > > -- > Matthias Wessendorf > Aechterhoek 18 > 48282 Emsdetten > http://jroller.com/page/mwessendorf > mwessendorf-at-gmail-dot-com >
Forced to use session bean for datatable
hi all, I'm using datatable with sorting option for quite a number of pages, with session beans for nearly all beans. If I switch to use request scope bean, the sorting will not work for the datatable. Is it alright that nearly all my beans are session scoped? Or is there any other option such that i can have sorting option and also request scoped? Thanks -- View this message in context: http://www.nabble.com/Forced-to-use-session-bean-for-datatable-t1467150.html#a3965215 Sent from the MyFaces - Users forum at Nabble.com.
Re: Faces Trace
@Catagay: forget my offlist question The central messages element we could find by going through the tree and finding the first instance of the messages component. Would that be ok? regards, Martin On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Hi, > > Then design maybe changed like; > > highlight="true" enablePopup="false" /> > > > This way there is no need to include the message component as a child. The > validator knows what to validate and what to use the display the error > message. If the msg attribute is not provided than the validation error is > displayed at main h:messages which acts like validation summary. > > > Regards, > > Cagatay Civici, > > On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote: > > Yes, something like this. Don't know if the message needs to be > > included - can we find a way not to do this? What if you have several > > validators, but only one message component. > > > > @using the default server side validators: > > > > Due to the reasons Adam has pointed out (potential security risk) it > > would be good to have validators which always do server side > > validation as well. > > > > regards, > > > > Martin > > > > On 4/18/06, Cagatay Civici <[EMAIL PROTECTED] > wrote: > > > Hi, > > > > > > After some brainstorming on the discussion here's what I come up with; > > > > > > > > enablePopup="false" display="dynamic"> > > > > > styleClass="someClass" /> > > > > > > > > > By this way the message will be displayed using the message component. > Also > > > there are flags like enablePopup, display, highlight and more to provide > > > flexibility. The validators should use commons-validator also. > > > > > > Another idea will be to use the built-in standart validators rather than > > > seperate client validators above and in this case an attribute like > > > "enableClientScript" is needed. This will allow the validator validate > at > > > client site. Validators than can do both client and server side > validation > > > is the approach of Shale and .NET. > > > > > > Regards, > > > > > > Cagatay Civici > > > > > > > > > On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote: > > > > Yes. > > > > > > > > That's the other thing I'd like to have - automatic client-side > > > > validation happening with the server side validation in place. It > > > > would be good to have something like a hook in the extended validators > > > > - with this hook, they are asked to render out their client-side > > > > validation javascript. > > > > > > > > Using this, separate validators wouldn't be necessary. > > > > > > > > Still, I think that the rendering question is very important. In the > > > > current state when working with ADF, I wished I could disable client > > > > side validation in ADF faces alltogether (I'm sure there is a way to > > > > do so, didn't look deeper into it so far). The popup box is just not > > > > context sensitive enough. > > > > > > > > regards, > > > > > > > > Martin > > > > > > > > On 4/18/06, Adam Winer < [EMAIL PROTECTED]> wrote: > > > > > > On 4/17/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > > > > > > What I like about ADF faces is that it uses existing validators > for > > > > > > > the client side validation. What I don't like is that it > notifies > > > the > > > > > > > user with a popup box - not very interactive IMHO. > > > > > > > > > > I agree too - I'd like to feed that it into better schemes, > > > > > which I think is doable given the current APIs, esp. > > > > > popups floating by existing components. > > > > > > > > > > But to me, the really important issues aren't so much how it gets > > > > > rendered (which can be massaged down the line), but the > > > > > basic architectural ones, most particularly, how do you attach > > > > > client-side validation? For that, the only really clean answer > > > > > is that it should happen implicitly as a result of adding a > > > > > server-side validation, so that client-side validation is always > > > > > a strict subset of server-side validation. Any client-side > validation > > > > > scheme that doesn't follow this pattern is a security risk. > > > > > > > > > > -- Adam > > > > > > > > > > > > > > > > > > > > > > > > > > > How do you tell the users that validation failed? > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > http://www.irian.at > > > > > > > > Your JSF powerhouse - > > > > JSF Consulting, Development and > > > > Courses in English and German > > > > > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Faces Trace
Hi,Then design maybe changed like; This way there is no need to include the message component as a child. The validator knows what to validate and what to use the display the error message. If the msg attribute is not provided than the validation error is displayed at main h:messages which acts like validation summary. Regards,Cagatay Civici,On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote: Yes, something like this. Don't know if the message needs to beincluded - can we find a way not to do this? What if you have several validators, but only one message component.@using the default server side validators:Due to the reasons Adam has pointed out (potential security risk) itwould be good to have validators which always do server side validation as well.regards,MartinOn 4/18/06, Cagatay Civici <[EMAIL PROTECTED] > wrote:> Hi,>> After some brainstorming on the discussion here's what I come up with; >> > enablePopup="false" display="dynamic">> > styleClass="someClass" />> >> By this way the message will be displayed using the message component. Also> there are flags like enablePopup, display, highlight and more to provide > flexibility. The validators should use commons-validator also.>> Another idea will be to use the built-in standart validators rather than> seperate client validators above and in this case an attribute like > "enableClientScript" is needed. This will allow the validator validate at> client site. Validators than can do both client and server side validation> is the approach of Shale and .NET. >> Regards,>> Cagatay Civici>>> On 4/18/06, Martin Marinschek < [EMAIL PROTECTED]> wrote:> > Yes.> > > > That's the other thing I'd like to have - automatic client-side> > validation happening with the server side validation in place. It> > would be good to have something like a hook in the extended validators > > - with this hook, they are asked to render out their client-side> > validation _javascript_.> >> > Using this, separate validators wouldn't be necessary.> >> > Still, I think that the rendering question is very important. In the > > current state when working with ADF, I wished I could disable client> > side validation in ADF faces alltogether (I'm sure there is a way to> > do so, didn't look deeper into it so far). The popup box is just not > > context sensitive enough.> >> > regards,> >> > Martin> >> > On 4/18/06, Adam Winer < [EMAIL PROTECTED]> wrote: > > > > On 4/17/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > > > > What I like about ADF faces is that it uses existing validators for > > > > > the client side validation. What I don't like is that it notifies> the> > > > > user with a popup box - not very interactive IMHO.> > >> > > I agree too - I'd like to feed that it into better schemes, > > > which I think is doable given the current APIs, esp.> > > popups floating by existing components.> > >> > > But to me, the really important issues aren't so much how it gets > > > rendered (which can be massaged down the line), but the> > > basic architectural ones, most particularly, how do you attach> > > client-side validation? For that, the only really clean answer > > > is that it should happen implicitly as a result of adding a> > > server-side validation, so that client-side validation is always> > > a strict subset of server-side validation. Any client-side validation > > > scheme that doesn't follow this pattern is a security risk.> > >> > > -- Adam> > >> > >> > >> > >> > > > > How do you tell the users that validation failed? > > >> > >> >> >> > --> >> > http://www.irian.at > >> > Your JSF powerhouse -> > JSF Consulting, Development and > > Courses in English and German> >> > Professional Support for Apache MyFaces> >>>-- http://www.irian.at Your JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces
Re: [ANNOUNCE] MyFaces 1.1.2
Don't know where this reference comes from - it's not there anymore in the current MyFaces sources. Did you get rid of the commons jar file? There is none in the new MyFaces-release. regards, Martin On 4/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > > Please pay attention to the fact that you cannot use this release of > > MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it > > will only work with the Tomahawk library in version 1.1.2 and onward. > > I just downloaded the new core Version (myfaces-core-1.1.2-bin.zip) > together with the latest Tomahawk > Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip). > During startup, it gives me the following exception: > > javax.faces.FacesException: java.lang.NoClassDefFoundError: > org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper > at > org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279) > at > org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265) > at > org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634) > at > org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133) > at > org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64) > at > org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) > at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603) > at > org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > at > org.apache.catalina.core.StandardService.start(StandardService.java:450) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > at org.apache.catalina.startup.Catalina.start(Catalina.java:551) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > > It?s right, there is definetely no > HtmlBufferResponseWriterWrapper.class in Tomahawk.jar. How do i bring > it to work ? Any ideas where the missing classes are included ? > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: HTML Editor - JSF 1.2 roadmap
> Actually the easiest replacement currently probably is to use the > dojoInitializer to get it, the tomahawk sandbox has a full dojo in there > and the editor can be reached via a textarea and the dojo initializer Philippe- you may also take a look at [1] -Matthias [1] http://tinyurl.com/cp9jm
Re: HTML Editor - JSF 1.2 roadmap
Philippe Lamote schrieb: > Hi, > > I've got 2 less-related questions: > > 1/ I've seen various HTML editor pass the revue (Dojo, TinyMCE, Kupu) > --> Any advice on which to use best? Apparently Kupu has Win IE > integration issues, yet I guess it was chosen for Tomahawk over some > others for a good reason(s)? (perhaps valid back then anymore but not > anymore?) > Also, if one of the core devs is listening: which one will future > Tomahawk releases embrace? Will T stick to Kupu and improve it, or > switch to one of the others? > Actually the easiest replacement currently probably is to use the dojoInitializer to get it, the tomahawk sandbox has a full dojo in there and the editor can be reached via a textarea and the dojo initializer In the long run there will be a full blown dojo html editor, it is just a matter of personal time why this thing has not been implemented (crossported, there is at least one other attempt at it) I think being able to settle down on the dojo editor currently is our best option licenswise. Most html editors (TinyMCE for instance) are either LGPL or GPL. Also really soon now there will be a pagelet editor available as tag which I had to develop for another project (and the main reason why the dojo integration has stalled somewhat from my side) This can serve as full html editor replacement. I am speaking of a checkin timeframe of within the next two weeks. http://wuerg.kicks-ass.net:8080/spellchecker/example.jsf works best in ie, but it works with some glitches in moz already
HTML Editor - JSF 1.2 roadmap
Hi, I've got 2 less-related questions: 1/ I've seen various HTML editor pass the revue (Dojo, TinyMCE, Kupu) --> Any advice on which to use best? Apparently Kupu has Win IE integration issues, yet I guess it was chosen for Tomahawk over some others for a good reason(s)? (perhaps valid back then anymore but not anymore?) Also, if one of the core devs is listening: which one will future Tomahawk releases embrace? Will T stick to Kupu and improve it, or switch to one of the others? 2/ Is there a (more or less vague, unofficial) timeframe for a MyFaces impl release in line ith JSF 1.2? (June/...?) Thx for advice, Philippe
Re: Tobago t:sheet and pagingStart attribute
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Pager.java myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java Nazar Stasiv schrieb: Which source files should I update? Bernd Bohmann wrote: Can you try a update, please. Regards Bernd -- Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
Re: Faces Trace
Yes, something like this. Don't know if the message needs to be included - can we find a way not to do this? What if you have several validators, but only one message component. @using the default server side validators: Due to the reasons Adam has pointed out (potential security risk) it would be good to have validators which always do server side validation as well. regards, Martin On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote: > Hi, > > After some brainstorming on the discussion here's what I come up with; > > enablePopup="false" display="dynamic"> > styleClass="someClass" /> > > > By this way the message will be displayed using the message component. Also > there are flags like enablePopup, display, highlight and more to provide > flexibility. The validators should use commons-validator also. > > Another idea will be to use the built-in standart validators rather than > seperate client validators above and in this case an attribute like > "enableClientScript" is needed. This will allow the validator validate at > client site. Validators than can do both client and server side validation > is the approach of Shale and .NET. > > Regards, > > Cagatay Civici > > > On 4/18/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > Yes. > > > > That's the other thing I'd like to have - automatic client-side > > validation happening with the server side validation in place. It > > would be good to have something like a hook in the extended validators > > - with this hook, they are asked to render out their client-side > > validation javascript. > > > > Using this, separate validators wouldn't be necessary. > > > > Still, I think that the rendering question is very important. In the > > current state when working with ADF, I wished I could disable client > > side validation in ADF faces alltogether (I'm sure there is a way to > > do so, didn't look deeper into it so far). The popup box is just not > > context sensitive enough. > > > > regards, > > > > Martin > > > > On 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote: > > > > On 4/17/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > > > > What I like about ADF faces is that it uses existing validators for > > > > > the client side validation. What I don't like is that it notifies > the > > > > > user with a popup box - not very interactive IMHO. > > > > > > I agree too - I'd like to feed that it into better schemes, > > > which I think is doable given the current APIs, esp. > > > popups floating by existing components. > > > > > > But to me, the really important issues aren't so much how it gets > > > rendered (which can be massaged down the line), but the > > > basic architectural ones, most particularly, how do you attach > > > client-side validation? For that, the only really clean answer > > > is that it should happen implicitly as a result of adding a > > > server-side validation, so that client-side validation is always > > > a strict subset of server-side validation. Any client-side validation > > > scheme that doesn't follow this pattern is a security risk. > > > > > > -- Adam > > > > > > > > > > > > > > > > > How do you tell the users that validation failed? > > > > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Faces Trace
Hi,After some brainstorming on the discussion here's what I come up with; By this way the message will be displayed using the message component. Also there are flags like enablePopup, display, highlight and more to provide flexibility. The validators should use commons-validator also. Another idea will be to use the built-in standart validators rather than seperate client validators above and in this case an attribute like "enableClientScript" is needed. This will allow the validator validate at client site. Validators than can do both client and server side validation is the approach of Shale and .NET. Regards,Cagatay CiviciOn 4/18/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: Yes.That's the other thing I'd like to have - automatic client-sidevalidation happening with the server side validation in place. It would be good to have something like a hook in the extended validators- with this hook, they are asked to render out their client-sidevalidation _javascript_.Using this, separate validators wouldn't be necessary. Still, I think that the rendering question is very important. In thecurrent state when working with ADF, I wished I could disable clientside validation in ADF faces alltogether (I'm sure there is a way to do so, didn't look deeper into it so far). The popup box is just notcontext sensitive enough.regards,MartinOn 4/18/06, Adam Winer <[EMAIL PROTECTED]> wrote: > > On 4/17/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:> > > What I like about ADF faces is that it uses existing validators for > > > the client side validation. What I don't like is that it notifies the> > > user with a popup box - not very interactive IMHO.>> I agree too - I'd like to feed that it into better schemes, > which I think is doable given the current APIs, esp.> popups floating by existing components.>> But to me, the really important issues aren't so much how it gets> rendered (which can be massaged down the line), but the > basic architectural ones, most particularly, how do you attach> client-side validation? For that, the only really clean answer> is that it should happen implicitly as a result of adding a> server-side validation, so that client-side validation is always > a strict subset of server-side validation. Any client-side validation> scheme that doesn't follow this pattern is a security risk.>> -- Adam> > > How do you tell the users that validation failed? >>--http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces
Re: Tobago t:sheet and pagingStart attribute
Which source files should I update? Bernd Bohmann wrote: Can you try a update, please. Regards Bernd
Re: [ANNOUNCE] MyFaces 1.1.2
Hi, Please pay attention to the fact that you cannot use this release of MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it will only work with the Tomahawk library in version 1.1.2 and onward. I just downloaded the new core Version (myfaces-core-1.1.2-bin.zip) together with the latest Tomahawk Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip). During startup, it gives me the following exception: javax.faces.FacesException: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279) at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265) at org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) It?s right, there is definetely no HtmlBufferResponseWriterWrapper.class in Tomahawk.jar. How do i bring it to work ? Any ideas where the missing classes are included ?
Re: indeciperable Errors in Tobabgo app
Can you remove the include in the main tag file, please. Can you send me the full Stacktrace? Regards Bernd John schrieb: Replacing the deprecated t:include with jsp:include (with corresponding parameter change), didn't have any effect on the error. Line 4 is definitely where the tag file is referenced. John -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 1:28 PM To: MyFaces Discussion Subject: Re: indeciperable Errors in Tobabgo app Hello John, the include tag in main.tag is deprecated please use jsp:include instead. Because the pageparts/header.jsp is missing I remove it from the main.tag. I have not the time to setup all the required Objects for the sheet so i remove the sheet too. The page seems to be ok. See the attached file. Regards Bernd John schrieb: Here they are... -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 10:10 AM To: MyFaces Discussion Subject: Re: indeciperable Errors in Tobabgo app Hello John, can you send the jsp page and the layout tag file, please. Regards Bernd John schrieb: How to make sense of this Line 4 is simply the inclusion of a tag file ( layout:main> ), which has been working fine for quite a while. An error occurred in the bean. Error Message is: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="t" %>2: <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>3: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>4: 5: 6: 7: Stacktrace: Stack Trace is : javax.faces.FacesException: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="t" %> 2: <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> 3: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %> 4: 5: 6: 7: Stacktrace: at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewH an dlerImpl.java:152) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:3 72 ) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli ca tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi lt erChain.java:173) at org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilte r( TobagoMultipartFormdataFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli ca tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi lt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa lv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa lv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja va :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja va :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr oc essConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi nt .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll ow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo ol .java:684) at java.lang.Thread.run(Unknown Source) Caused by: javax.faces.FacesException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="t" %> 2: <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> 3: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %> 4: 5: 6: 7: Stacktrace: at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch (S ervletExternalContextImpl.java:422) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspVi ew HandlerImpl.java:234) at org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewH an dlerImpl.java:120) ... 19 more Caused by: org.apache.jasper.JasperException: Exception in JSP: /pageparts/quarantinelist.jsp:4 1: <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="t" %> 2: <%@ taglib uri="http://java.sun.com/j
Re: Tobago t:sheet and pagingStart attribute
Can you try a update, please. Regards Bernd Nazar Stasiv schrieb: I set pagingStart to 0 in filter action. And InstancesBean.getPagingStart() returns 0 after filter has been changed. Can anyone help? Nazar Stasiv wrote: Hi all There is an issue with t:sheet I came across in my project. There's a t:sheet component on the page and it displays a collection of items. There is also drop-down list component above sheet. If I change value of drop-down list t:sheet displays new collection of items. It's sort of filter functionality. Then I've got 60 items (25 per page) for 3 pages. And filter which filters out all but one item from the list. When I apply filter number of pages should change from <1,2,3> to <1> and Page 1 of 1 but it won't See screen shot attached Here goes the jsp code showRowRange="none" showPageRange="right" showDirectLinks="center" directLinkCount="10" forceVerticalScrollbar="false" pagingLength="#{instances.pagingLength}" stateChangeListener="#{instances.stateChangeListener}" pagingStart="#{instances.pagingStart}" sortActionListener="#{instances.onSort}"> id="selected_instance"/> submitURI="InstanceDetails?id=#{instance.iid}"> label="#{instance.processName}"/> type="both"/> type="both"/> And action called with t:selectOne onchange attribute public void setCurrentFilter(String currentFilter) throws ConnectivityException { state.setInstancesPagingStart(0);// this is value binding to sheet pagingStart attribute state.setInstancesCurrentFilter(currentFilter); populateInstances(_sortBy + _orderBy); // updates collection of items in collection displayed by sheet component. populateProperties(); } Nazar -- Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333