ValueChangeListener on InputSuggest --Unable to find setter method for onchange
Title: ValueChangeListener on InputSuggest --Unable to find setter method for onchange Hi all. I'm using a InputSuggest Box from the Sandbox Component. Within the InputSuggest I want to use a ValueChangeListener... When the page is loaded I get the following error Stack: exception javax.servlet.ServletException: /newpartner.jsp(132,10) Unable to find setter method for attribute: onchange javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) root cause javax.faces.FacesException: /newpartner.jsp(132,10) Unable to find setter method for attribute: onchange org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:330) javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) This is my code: x:inputSuggest value=#{newPartnerDto.gwname} required=true id=gateway immediate=true onchange=submit() valueChangeListener=#{newPartnerDto.selectgateway} f:selectItems value=#{queryHelper.tmgateway} / /x:inputSuggest What is the problem? Without the ValueChangeListener it works fine...Was the setter method for onchange forgotten? Thx! Regards ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~
Re: deleting nodes in tree2
Thanks for your reply. How I delete nodes? I have checkboxes at each leaf and each level of my tree. If the user submits the form with a button say Submit it calls an actionListener, gets the tree2 check all the checkboxes and deletes the nodes. This step works fine. After that, it looks like the tree gets lost with the ids. It seems to be a bug http://issues.apache.org/jira/browse/MYFACES-351 !!! So I don't know what to do... Alban.
Why no MyFaces-Forum?
Hi guys, is there any reason why the huge and very active MyFaces-Community is not using a normal Internet-Forum like phpBB or something similar for communication? I just can see disadvantages of using old-fashioned Mailing-Lists - or is there a special reason why you're only using Mailing-Lists? -- Mit freundlichen Grüßen / Greetings, Hendrik Neumann; Bochum Germany
Re: Why no MyFaces-Forum?
Well, I prefere mailing lists over forums. Gmail manages them quite good! also on mail-archive.com there is a good archive for myfaces' mailing list. forums I personally do not like them... no idea why ;-) btw. like Werner suggested... www.gmane.org is good one ;-) -Matthias On 10/6/05, Hendrik Neumann [EMAIL PROTECTED] wrote: Hi guys, is there any reason why the huge and very active MyFaces-Community is not using a normal Internet-Forum like phpBB or something similar for communication? I just can see disadvantages of using old-fashioned Mailing-Lists - or is there a special reason why you're only using Mailing-Lists? -- Mit freundlichen Grüßen / Greetings, Hendrik Neumann; Bochum Germany -- Matthias Wessendorf Zülpicher Wall 12, 239 50674 Köln http://www.wessendorf.net mwessendorf-at-gmail-dot-com
InputSuggest Problems with value binding
Title: ValueChangeListener on InputSuggest -->Unable to find setter method for onchange The next problem I have with the InputSuggest Component is the following. I have a form where the user can set several data, If the user enters a String (into the inputSuggest Box), which isn't already in the List of the InputSuggestButton, I get -1 as result... Is it possible to get the String the user entered? I have also tried to solve the problem at the bottom and I added a setter Method to the class org.apache.myfaces.taglib.html.HtmlComponentTagBase but that didn't solve my problem. I still get the same message? Where else do I have to add a setter Method for onchange? Thx for your help! -Ursprüngliche Nachricht-Von: Mitter Andreas, IDE Gesendet: Donnerstag, 6. Oktober 2005 10:12An: users@myfaces.apache.orgBetreff: ValueChangeListener on InputSuggest --Unable to find setter method for onchange Hi all. I'm using a InputSuggest Box from the Sandbox Component. Within the InputSuggest I want to use a ValueChangeListener... When the page is loaded I get the following error Stack: exception javax.servlet.ServletException: /newpartner.jsp(132,10) Unable to find setter method for attribute: onchange javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) root cause javax.faces.FacesException: /newpartner.jsp(132,10) Unable to find setter method for attribute: onchange org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:330) javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) This is my code: x:inputSuggest value="#{newPartnerDto.gwname}" required="true" id="gateway" immediate="true" onchange="submit()" valueChangeListener="#{newPartnerDto.selectgateway}" f:selectItems value="#{queryHelper.tmgateway}" / /x:inputSuggest What is the problem? Without the ValueChangeListener it works fine...Was the setter method for onchange forgotten? Thx! Regards ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~ ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~
Re: Why no MyFaces-Forum?
oh okay - thanks for your anwers! Since I'm using GMail it has become a lot more comfortible to read these Mailing-Lists, because GMail merges the mails to discusions instead of simply putting all emails into a filtered folder. So there is a special reason why you just use Mailing-Lists ;)-- Mit freundlichen Grüßen / Greetings,Hendrik Neumann; Ruhr-University of Bochum
InputCalendar does not work as popup
Hi, I am having trouble using the input calendar component as popup. The effects described below can be reproduced with version 1.1.0 in our production environment (OC4J, Java 1.5) and in several Tomcat versions (4.1, 5.0, 5.1, deploying myfaces examples) using IE, Firefox and Opera. When the Button is clicked and the popup opens, the icons / symbols for switching the month back and forward (the arrows) are rendered only when the mouse has been moved over them. Selecting a month from the dropdown list works fine, selecting a year from the dropdown list simply closes the complete popup, no new year is selected. The Today is pattern cannot be localized / customized. Same to the week number (Wk in English). The Click to select pattern in the status bar of the browser cannot be localized / customized Maybe I am blind, but I am not able to make a submit after selecting a new value e.g. by executing submit(); onchange. As I expect the calendar component to have been tested and for others it works properly, I have no idea why it does not here. Any ideas? Thanks, Daniel
tree2 leaf nodes always have navigation link in server side toggle
Hello all ! Does anyone know if it is a known bug that the tree2 componant always put a navigation link on nodes, even those without childrens... thnx bye ! Sent from the MyFaces - Users forum at Nabble.com.
Re: Portlet Modes
This description is off the top of my head, but I know for sure that I had problems when I didn't set it. There are some places in MyFaces where it needs to cast ExternalContext.getContext() as either a PortletContext or a ServletContext. MyFaces shouldn't require having a portlet.jar so it cannot make the determination of the type of request based on instanceof checks and casting. So it determines the request type with an attribute flag. setPortletRequestFlag() sets that. I figured this out by looking at the source and reading some discussion in the JIRA issue tracker regarding the initial creation of MyFacesGenericPortlet. Look into those areas if you want more info. Dave Patrick Dalla Bernardina wrote: What is setPortletRequestFlag(request); for? Dave Brondsema wrote: Cool. Make sure you call setPortletRequestFlag(request); before nonFacesRequest. It might be useful to include part of this on the wiki page as an example for anyone else who wants to do that. Patrick Dalla Bernardina wrote: With your help I've made an improvement to the implementation in wiki page. Before calling nonFacesRequest I call an action of an bean called PortletBackBean. If this bean is not declared in managed beans, no method is called. I'm showing only doEdit, but the same can be applied to doView. public void doEdit(RenderRequest request, RenderResponse response)throws PortletException, IOException { Boolean isPortletModeChanged = (Boolean)request.getAttribute(ATTR_PORTLET_MODE_CHANGED); if (isPortletModeChanged.booleanValue()) { response.setContentType(text/html); FacesContext fctx = facesContext(request, response); if(fctx!=null){ MethodBinding mb = fctx.getApplication().createMethodBinding(#{PortletBackBean.edit}, null); if(mb!=null){ try{ Object methodResult = mb.invoke(fctx, null); }catch(PropertyNotFoundException e){ /* if the managed bean is not faound ignore the calling*/ } } } nonFacesRequest(request, response, defaultEdit); return; } facesRender(request, response); } Dave Brondsema wrote: Patrick Dalla Bernardina wrote: How can I call an managed bean action when portlet mode (EDIT,VIEW) is changed and process the navigation rules to discover the page to be rendered? You can use http://wiki.apache.org/myfaces/UsingPortletModes as a starting point. To invoke a managed bean action, something like this will work I think: ValueBinding binding = FacesContext.getCurrentInstance().getApplication().createValueBinding(#{myBean.someAction}); Object methodResult = binding.getValue(FacesContext.getCurrentInstance()); -- Dave Brondsema Software Developer Cornerstone University signature.asc Description: OpenPGP digital signature
Programmatically creating command buttons problem
Hi all, I'm working on a custom ViewHandler like is presented in Hans Bergsten JSF book chapter 15. For that I need to programmatically create a command button. I have buttons that need method bindings to talk to method in my managed beans. But I also need command buttons that simply return a String value, for example cancel like this in JSP: h:commandButton value=Cancel action=cancel/ using this code: UICommand command = new UICommand(); command.setValue(Cancel); MethodBinding action = application.createMethodBinding(cancel, null); command.setAction(action); but I get this exception: javax.faces.el.ReferenceSyntaxException: cancel I know that cancel is not really a method but I don't know what other method to call set the command button to return the String cancel. Anybody any idea? Thanks and regards, Jeroen
TOBAGO: howto handle client side events (e.g. onchage) in t:selectManyCheckBox
Hi, I would like to handle onchage or onclick events in the client side. It seems missing from the Tobago tld. Is there away around this limitation? Is there a chance to get a fix for that? TIA Dani
RE: tree2 leaf nodes always have navigation link in server side toggle
Title: Message Make sure your node's isLeaf() method returns true in those cases (although I thought thatthe default implementation was to do that). - Brendan -Original Message-From: Nicolas Viollin (sent by Nabble.com) [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 7:30 AMTo: users@myfaces.apache.orgSubject: tree2 leaf nodes always have navigation link in server side toggleHello all ! Does anyone know if it is a known bug that the tree2 componant always put a navigation link on nodes, even those without childrens... thnx bye ! Sent from the MyFaces - Users forum at Nabble.com.
RE: Tree2 - on-demand load capable?
Yes, we did the same thing, although we supply our own +/- GIFs so we still get kind of the same effect as using the ones supplied with the component. I haven't looked at the component much lately, though, so I don't know if it has been re-architected to allow the programmer to intercept the expand event that is triggered if we have showNav=true. Sean, can you comment on this? - Brendan -Original Message- From: Marcel Ruff [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 5:02 AM To: MyFaces Discussion Subject: Re: Tree2 - on-demand load capable? Eric Pias wrote: Hello, I would like to implement a Tree2 that loads child nodes on demand. What I would like to do is sub-class TreeNode or something else and when the user clicks the + on a node, at that point my code would go out and get just the first level children under that node. I have tried implementing TreeNode and doing this type on functionality in getChildren() without success so far. Before I spend a lot more time debugging, I want to make sure that Tree2 allows for what I want to do. Does anyone know for sure? Thanks, Eric Hi Eric, i have the same task and after searching the mailing list i ended up with a workaround i found in an old mail (i can't remember who posted it). The problem with this workaround is that i needed to remove the '+' icon with t:tree2 ... showNav=false ... and make the folder icon clickable with h:commandLink action=#{t.toggleExpanded} actionListener=#{navigationBacker.processAction} In my NavigationBacker.java:processAction(ActionEvent e) i load the children nodes with data from EJB3-persistency. The bad thing is that the '+' icon is now invisible, but i couldn't find a way to get the event when somebody clicks on the '+' icon. The org.apache.myfaces.custom.tree2.HtmlTree.java seems to register _expandControl = new HtmlCommandLink(); to get internally the '+' clicks, but i haven't found a way to receive the clicks in my code. I have added this with some code snippets to the Wiki page at http://wiki.apache.org/myfaces/Tree2 Please edit the page if you have a better solution, rgds Marcel
Re: Tree2 - on-demand load capable?
CONNER, BRENDAN (SBCSI) wrote: Yes, we did the same thing, although we supply our own +/- GIFs so we still get kind of the same effect as using the ones supplied with the component. Ahh, i think it took the code from one of your mail if i remember correctly. Please correct the Wiki page if there are some errors so others can benefit, thanks Marcel I haven't looked at the component much lately, though, so I don't know if it has been re-architected to allow the programmer to intercept the expand event that is triggered if we have showNav=true. Sean, can you comment on this? - Brendan -Original Message- From: Marcel Ruff [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 5:02 AM To: MyFaces Discussion Subject: Re: Tree2 - on-demand load capable? Eric Pias wrote: Hello, I would like to implement a Tree2 that loads child nodes on demand. What I would like to do is sub-class TreeNode or something else and when the user clicks the + on a node, at that point my code would go out and get just the first level children under that node. I have tried implementing TreeNode and doing this type on functionality in getChildren() without success so far. Before I spend a lot more time debugging, I want to make sure that Tree2 allows for what I want to do. Does anyone know for sure? Thanks, Eric Hi Eric, i have the same task and after searching the mailing list i ended up with a workaround i found in an old mail (i can't remember who posted it). The problem with this workaround is that i needed to remove the '+' icon with t:tree2 ... showNav=false ... and make the folder icon clickable with h:commandLink action=#{t.toggleExpanded} actionListener=#{navigationBacker.processAction} In my NavigationBacker.java:processAction(ActionEvent e) i load the children nodes with data from EJB3-persistency. The bad thing is that the '+' icon is now invisible, but i couldn't find a way to get the event when somebody clicks on the '+' icon. The org.apache.myfaces.custom.tree2.HtmlTree.java seems to register _expandControl = new HtmlCommandLink(); to get internally the '+' clicks, but i haven't found a way to receive the clicks in my code. I have added this with some code snippets to the Wiki page at http://wiki.apache.org/myfaces/Tree2 Please edit the page if you have a better solution, rgds Marcel
The Navigation Did Not Happen! The Original Web Page is Redisplayed.
I do not understand why my web page does not navigate to the next web page. My web page screen1 has a command button and it has an action attribute. [code] action=#{fileManagementBean.displaySelectedFiles} [/code] The action invokes a method in the backing bean and the method returns a String: [code] public String displaySelectedFiles() { int length = dataFile.length; for( int i=0; ilength; i++ ) { selectedDataFiles.add( ( SelectItem )dataFile[i] ); } return success; } [/code] where dataFile is SelectItem[] and selectedDataFiles is a List. In my faces-config.xml, I have specified the navigation rule: [code] navigation-rule from-view-id/pages/screen1.jsp/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/pages/screen2.jsp/to-view-id /navigation-case /navigation-rule [/code] Both screen1.jsp and screen2.jsp are in the pages folder. __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Re: TOBAGO: howto handle client side events (e.g. onchage) in t:selectManyCheckBox
Hello, this is a known problem, but we don't have a solution yet. The main idea of Tobago is that the source code (especially the JSP pages) are independent from the output format (e.g. HTML). If we allow to set onchange and onclick events, the source code will depend on the output format. One solution might be to use an abstract scripting language, which can be translated into different output formats. But there is no decision yet. Do you have a concrete problem? Maybe I can help you? Regards, Udo Dani Kenan wrote: Hi, I would like to handle onchage or onclick events in the client side. It seems missing from the Tobago tld. Is there away around this limitation? Is there a chance to get a fix for that? TIA Dani
Using javascript components behind a proxy container
I am looking to start using some of the javascript components like inputDate and the schedule, but have come up with a problem caused by our use of JSF conflicting with the way that AddResource constructs the path to the javascript resources. The current setup is: A user will see applications using URLs in the format of: http://www.x.com/a/b/c/test?page=start. This calls the proxy to then pass on the request to URLs such as: http://tomcat:8080/application/app?page=start This calls a servlet which sits in front of the JSF application and forwards the request on to: http://tomcat:8080/application/start.faces (The servlet exists to allow a single path to be mapped on to every page - a requirement of the proxy) Up until now this has worked successfully by using a custom implementation of the form renderer to convert the /application/start.faces format action URLs to http://www.x.com/a/b/c/test?page=start;. However AddResource places URLs in the page of the format /application/faces/ AddResource, does not seem to be a pluggable class and I really don't want to have to patch and build each new release with a customised version. The only other way I can think of solving this is via a filter to parse the response and rewrite all URLs, but this is neither efficient or elegant. I would be grateful for any guidance on this. Peter
Re: Login system security
Right - the nice thing about the jsf-security EL extensions is that they don't have to be driven from Container Security you can plug in pretty much any home grown concept of a login page to authenticate and then your own auth mechanism as well. For instance if you take the approach of using a "userInfo" bean on the session which is generated by your own login process then it's trivial to hook that up into the EL interface I guess the next phase of js-security where we're going to start protecting navigation targets based on role will be of interest to you was well Duncan Dave wrote: This is great! I posted a message before about how to login without any protected page. I looked at authenticator package where thereis FormAuthenticator. I like to do similar, but without a protected page. User can click a login link and register all necessary info with session after successful authentication, and stay in the same page. The page will render differently depending on roles. It was suggested to have a dummy protected page that will redirect to current page. The problem is that the current page is stateful using saveState, and the data will not be available by redirecting from the dummy protected page. I looked the source code of servletauthenticator package. But have not figured out how to the realm object to call authenticate(). Any help is appreciated. Thanks. Dave Duncan Mills [EMAIL PROTECTED] wrote: Several Points here 1) Using Security Attributes within your pages. I'm about to release 1.0 of the jsf-security project on SourceForge (www.sourceforge.net/projects/jsf-security) this provides extensions to EL which will give you a new scope #{securityScope} and a bunch of attributes and pseudo functions such as #{securityScope.isUserInRole['manager,admin']} which allow you to use expressions to control rendering and read-only states of components - even if they are not "role" enabled in the way that the myfaces components are. jsf-security is fully pluggable and so if you use Acegi or a home grown Authorization / Authentication mechanism you can plug it in underneath the same consistent EL. The current version hooks into Container Security, and we've j ust started a JAAS adapter as well. If anyone wants to get involved - particularly of you use Acegi today get in touch. For more info on this see this blog entry: and the project on SF. You can pull the source from CVS today and build - it all works I just need to write the doc and the localize the message strings... 2) Using the database to Authenticate / Authorize Your mileage will vary from container to container, but with OC4J ( Oracle App server) you can plus in your own custom login modules that can do just this - Frank and I who work on the jsf-security project just posted a paper on that process a few weeks back: Declarative J2EE authentication and authorization with JAAS Duncan Dave wrote: hi Andrew, How to get a Realm object so that I can call authenticate()? I am using Database to store username and password. Thanks. Andrew robinson [EMAIL PROTECTED] wrote: I am using the built in Tomcat DataSourceRealm so that single sign-on is possible. My login is still using a normal JSP instead of JSF, so I can't use JSF components to build my login page. Has anyone integrated the form-base web.xml authentication with a JSF login page? On 10/4/05, Mike Kienenberger [EMAIL PROTECTED] wrote: I've switch from a login page to a filter that authenticates and sets the User database record in the session.(Actually, I fetch this record every request, and store it in the request, but that may be too excessive for your situation). I then have additional filters that work on that data to provide coarse-grain security (ie, if you don't pass the filter, you can't access any of the application). I also have a SecurityRoleManager bean that provides fine-grain control by operating on the record stored in the session. Ie, "securityRoleManager.canEditDate()" On 10/4/05, Eurig Jones [EMAIL PROTECTED] wrote: I'm trying to decide on a Login/Logout system to protect my files using JSF.. I've played about with extending NavigationHandler, but the problem is, it doesn't protect the files which aren't JSF, a nd you can still run the JSP files if you wanted to... How have you people gone about a database driven login/logout system using Faces? Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools [EMAIL PROTECTED] Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools [EMAIL PROTECTED]
Re: DataTable Single Row Selection using Radio Button
why it is nessesary, since you can go for t:selectOneRadio forceId=true forceIdIndex=false ... in one column ? Ronald Cenk Çivici wrote: Correct url is http://www.jroller.com/page/cenkcivici?entry=jsf_datatable_single_row_selection
Re: deleting nodes in tree2
Hi, just some ideas: - you could try to use the action attribute of the commandButton in combination with the pageNavigation in the faces-config.xml - perhaps it causes some kind of 'model reload' - did you try to delete the whole tree and add a 'new' one with the contains every node but the selected one?? For me the first approach worked quite well.. (in treeTable with t:tree). Hope it helps, Christian --- Ursprüngliche Nachricht --- Von: alban [EMAIL PROTECTED] An: users@myfaces.apache.org Betreff: Re: deleting nodes in tree2 Datum: Thu, 6 Oct 2005 08:56:07 + (UTC) Thanks for your reply. How I delete nodes? I have checkboxes at each leaf and each level of my tree. If the user submits the form with a button say Submit it calls an actionListener, gets the tree2 check all the checkboxes and deletes the nodes. This step works fine. After that, it looks like the tree gets lost with the ids. It seems to be a bug http://issues.apache.org/jira/browse/MYFACES-351 !!! So I don't know what to do... Alban. -- NEU: Telefon-Flatrate fürs dt. Festnetz! GMX Phone_Flat: 9,99 Euro/Mon.* Für DSL-Nutzer. Ohne Providerwechsel! http://www.gmx.net/de/go/telefonie
Re: TOBAGO: howto handle client side events (e.g. onchage) in t:selectManyCheckBox
Hmmm Thing is that for XML based languages, JavaScript has become something like a scripting standard. regards, Martin On 10/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Hello, this is a known problem, but we don't have a solution yet. The main idea of Tobago is that the source code (especially the JSP pages) are independent from the output format (e.g. HTML). If we allow to set onchange and onclick events, the source code will depend on the output format. One solution might be to use an abstract scripting language, which can be translated into different output formats. But there is no decision yet. Do you have a concrete problem? Maybe I can help you? Regards, Udo Dani Kenan wrote: Hi, I would like to handle onchage or onclick events in the client side. It seems missing from the Tobago tld. Is there away around this limitation? Is there a chance to get a fix for that? TIA Dani -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: Login system security
This is a very interesting project - will need to check it out for my next web-app ;) Will you also restrict delivering a view based on the user role? This is the third layer of security restrictions necessary in JSF... regards, Martin On 10/6/05, Duncan Mills [EMAIL PROTECTED] wrote: Right - the nice thing about the jsf-security EL extensions is that they don't have to be driven from Container Security you can plug in pretty much any home grown concept of a login page to authenticate and then your own auth mechanism as well. For instance if you take the approach of using a userInfo bean on the session which is generated by your own login process then it's trivial to hook that up into the EL interface I guess the next phase of js-security where we're going to start protecting navigation targets based on role will be of interest to you was well Duncan Dave wrote: This is great! I posted a message before about how to login without any protected page. I looked at authenticator package where there is FormAuthenticator. I like to do similar, but without a protected page. User can click a login link and register all necessary info with session after successful authentication, and stay in the same page. The page will render differently depending on roles. It was suggested to have a dummy protected page that will redirect to current page. The problem is that the current page is stateful using saveState, and the data will not be available by redirecting from the dummy protected page. I looked the source code of servlet authenticator package. But have not figured out how to the realm object to call authenticate(). Any help is appreciated. Thanks. Dave Duncan Mills [EMAIL PROTECTED] wrote: Several Points here 1) Using Security Attributes within your pages. I'm about to release 1.0 of the jsf-security project on SourceForge (www.sourceforge.net/projects/jsf-security) this provides extensions to EL which will give you a new scope #{securityScope} and a bunch of attributes and pseudo functions such as #{securityScope.isUserInRole['manager,admin']} which allow you to use expressions to control rendering and read-only states of components - even if they are not role enabled in the way that the myfaces components are. jsf-security is fully pluggable and so if you use Acegi or a home grown Authorization / Authentication mechanism you can plug it in underneath the same consistent EL. The current version hooks into Container Security, and we've j ust started a JAAS adapter as well. If anyone wants to get involved - particularly of you use Acegi today get in touch. For more info on this see this blog entry: and the project on SF. You can pull the source from CVS today and build - it all works I just need to write the doc and the localize the message strings... 2) Using the database to Authenticate / Authorize Your mileage will vary from container to container, but with OC4J ( Oracle App server) you can plus in your own custom login modules that can do just this - Frank and I who work on the jsf-security project just posted a paper on that process a few weeks back: Declarative J2EE authentication and authorization with JAAS Duncan Dave wrote: hi Andrew, How to get a Realm object so that I can call authenticate()? I am using Database to store username and password. Thanks. Andrew robinson [EMAIL PROTECTED] wrote: I am using the built in Tomcat DataSourceRealm so that single sign-on is possible. My login is still using a normal JSP instead of JSF, so I can't use JSF components to build my login page. Has anyone integrated the form-base web.xml authentication with a JSF login page? On 10/4/05, Mike Kienenberger [EMAIL PROTECTED] wrote: I've switch from a login page to a filter that authenticates and sets the User database record in the session. (Actually, I fetch this record every request, and store it in the request, but that may be too excessive for your situation). I then have additional filters that work on that data to provide coarse-grain security (ie, if you don't pass the filter, you can't access any of the application). I also have a SecurityRoleManager bean that provides fine-grain control by operating on the record stored in the session. Ie, securityRoleManager.canEditDate() On 10/4/05, Eurig Jones [EMAIL PROTECTED] wrote: I'm trying to decide on a Login/Logout system to protect my files using JSF.. I've played about with extending NavigationHandler, but the problem is, it doesn't protect the files which aren't JSF, a nd you can still run the JSP files if you wanted to... How have you people gone about a database driven login/logout system using Faces? Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools [EMAIL PROTECTED] Yahoo!
Re: TOBAGO: howto handle client side events (e.g. onchage) in t:selectManyCheckBox
P.S.: a solution would be to have a second set of components for HTML based interfaces only? regards, Martin On 10/6/05, Martin Marinschek [EMAIL PROTECTED] wrote: Hmmm Thing is that for XML based languages, JavaScript has become something like a scripting standard. regards, Martin On 10/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Hello, this is a known problem, but we don't have a solution yet. The main idea of Tobago is that the source code (especially the JSP pages) are independent from the output format (e.g. HTML). If we allow to set onchange and onclick events, the source code will depend on the output format. One solution might be to use an abstract scripting language, which can be translated into different output formats. But there is no decision yet. Do you have a concrete problem? Maybe I can help you? Regards, Udo Dani Kenan wrote: Hi, I would like to handle onchage or onclick events in the client side. It seems missing from the Tobago tld. Is there away around this limitation? Is there a chance to get a fix for that? TIA Dani -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: Programmatically creating command buttons problem
From org.apache.myfaces.taglib.UIComponentTagUtils: public static void setActionProperty(FacesContext context, UIComponent component, String action) { if (action != null) { if (!(component instanceof UICommand)) { throw new IllegalArgumentException(Component + component.getClientId(context) + is no UICommand); } MethodBinding mb; if (isValueReference(action)) { mb = context.getApplication().createMethodBinding(action, null); } else { mb = new SimpleActionMethodBinding(action); } ((UICommand)component).setAction(mb); } } On 10/6/05, Jeroen Verhagen [EMAIL PROTECTED] wrote: Hi all, I'm working on a custom ViewHandler like is presented in Hans Bergsten JSF book chapter 15. For that I need to programmatically create a command button. I have buttons that need method bindings to talk to method in my managed beans. But I also need command buttons that simply return a String value, for example cancel like this in JSP: h:commandButton value=Cancel action=cancel/ using this code: UICommand command = new UICommand(); command.setValue(Cancel); MethodBinding action = application.createMethodBinding(cancel, null); command.setAction(action); but I get this exception: javax.faces.el.ReferenceSyntaxException: cancel I know that cancel is not really a method but I don't know what other method to call set the command button to return the String cancel. Anybody any idea? Thanks and regards, Jeroen
Re: InputCalendar does not work as popup
Bug # 1 and 2 are already fixed in the current head version #3 4 are about to be fixed. onchange should exist as an attribute in inputCalendar, right? regards, Martin On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am having trouble using the input calendar component as popup. The effects described below can be reproduced with version 1.1.0 in our production environment (OC4J, Java 1.5) and in several Tomcat versions (4.1, 5.0, 5.1, deploying myfaces examples) using IE, Firefox and Opera. When the Button is clicked and the popup opens, the icons / symbols for switching the month back and forward (the arrows) are rendered only when the mouse has been moved over them. Selecting a month from the dropdown list works fine, selecting a year from the dropdown list simply closes the complete popup, no new year is selected. The Today is pattern cannot be localized / customized. Same to the week number (Wk in English). The Click to select pattern in the status bar of the browser cannot be localized / customized Maybe I am blind, but I am not able to make a submit after selecting a new value e.g. by executing submit(); onchange. As I expect the calendar component to have been tested and for others it works properly, I have no idea why it does not here. Any ideas? Thanks, Daniel -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: Login system security
I can vouch for what Duncan is saying. We were able to write our own custom authenticator for OC4J. It used Windows Active Directory for authentication and Open LDAP for authorization. It was a bit more cumbersome than Tomcat but it worked fine. sean On 10/5/05, Duncan Mills [EMAIL PROTECTED] wrote: Several Points here 1) Using Security Attributes within your pages. I'm about to release 1.0 of the jsf-security project on SourceForge (www.sourceforge.net/projects/jsf-security) this provides extensions to EL which will give you a new scope #{securityScope} and a bunch of attributes and pseudo functions such as #{securityScope.isUserInRole['manager,admin']} which allow you to use expressions to control rendering and read-only states of components - even if they are not role enabled in the way that the myfaces components are. jsf-security is fully pluggable and so if you use Acegi or a home grown Authorization / Authentication mechanism you can plug it in underneath the same consistent EL. The current version hooks into Container Security, and we've just started a JAAS adapter as well. If anyone wants to get involved - particularly of you use Acegi today get in touch. For more info on this see this blog entry: and the project on SF. You can pull the source from CVS today and build - it all works I just need to write the doc and the localize the message strings... 2) Using the database to Authenticate / Authorize Your mileage will vary from container to container, but with OC4J ( Oracle App server) you can plus in your own custom login modules that can do just this - Frank and I who work on the jsf-security project just posted a paper on that process a few weeks back: Declarative J2EE authentication and authorization with JAAS Duncan Dave wrote: hi Andrew, How to get a Realm object so that I can call authenticate()? I am using Database to store username and password. Thanks. Andrew robinson [EMAIL PROTECTED] wrote: I am using the built in Tomcat DataSourceRealm so that single sign-on is possible. My login is still using a normal JSP instead of JSF, so I can't use JSF components to build my login page. Has anyone integrated the form-base web.xml authentication with a JSF login page? On 10/4/05, Mike Kienenberger [EMAIL PROTECTED] wrote: I've switch from a login page to a filter that authenticates and sets the User database record in the session. (Actually, I fetch this record every request, and store it in the request, but that may be too excessive for your situation). I then have additional filters that work on that data to provide coarse-grain security (ie, if you don't pass the filter, you can't access any of the application). I also have a SecurityRoleManager bean that provides fine-grain control by operating on the record stored in the session. Ie, securityRoleManager.canEditDate() On 10/4/05, Eurig Jones [EMAIL PROTECTED] wrote: I'm trying to decide on a Login/Logout system to protect my files using JSF.. I've played about with extending NavigationHandler, but the problem is, it doesn't protect the files which aren't JSF, and you can still run the JSP files if you wanted to... How have you people gone about a database driven login/logout system using Faces? Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools [EMAIL PROTECTED]
Re: TOBAGO: howto handle client side events (e.g. onchage) in t:selectManyCheckBox
A workaround is to put something like this on the page (inside the t:page). t:script onload=initOnChange(); function initOnChange() { var x = document.getElementById(page:username); x.onchange = onChangeFunction; } function onChangeFunction() { alert('username changed'); } /t:script Udo Dani Kenan wrote: Hi, I would like to handle onchage or onclick events in the client side. It seems missing from the Tobago tld. Is there away around this limitation? Is there a chance to get a fix for that? TIA Dani
Re: Why no MyFaces-Forum?
On 10/6/05, Hendrik Neumann [EMAIL PROTECTED] wrote: oh okay - thanks for your anwers! Since I'm using GMail it has become a lot more comfortible to read these Mailing-Lists, because GMail merges the mails to discusions instead of simply putting all emails into a filtered folder. So there is a special reason why you just use Mailing-Lists ;) At most companies with draconian firewalls, NNTP traffic is prohibited ... so many of us would not be able to access the forums while at work. Craig McClanahan
Re: Why no MyFaces-Forum?
Mailing lists are the Apache way. Get yourself a gmail account and you'll have access to all of the projects you are monitoring (not just MyFaces) in one handy place. Gmail also has great searching. Regardless of your email pogram mailing lists also allow you to set up very specific filtering mechanisms based on keywords, etc. sean On 10/6/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 10/6/05, Hendrik Neumann [EMAIL PROTECTED] wrote: oh okay - thanks for your anwers! Since I'm using GMail it has become a lot more comfortible to read these Mailing-Lists, because GMail merges the mails to discusions instead of simply putting all emails into a filtered folder. So there is a special reason why you just use Mailing-Lists ;) At most companies with draconian firewalls, NNTP traffic is prohibited ... so many of us would not be able to access the forums while at work. Craig McClanahan
MyFaces and Shale Clay again
Has anyone been able to utilize myfaces tomahawk components with clay, specifically the clay html views. Myfaces core components are working fine for me, I have just not yet been able to use tomahawk. In my clay-config.xml I have component jsfid=dataTableTmk componentType=org.apache.myfaces.component.html.ext.HtmlDataTable extends = baseHtml ... attributes /component Which I thought would enable me to use tomahawk, however I get Undefined component type org.apache.myfaces.component.html.ext.HtmlDataTable message when I try it. Not really sure if I am doing this correctly, I just followed suit on the examples. Any ideas?
Re: TOBAGO: howto handle client side events (e.g. onchage) in t:selectManyCheckBox
True, most of the output formats for Tobago which come to my mind have an XML based syntax, therefore you have a DOM and it's pretty easy to define a JavaScript binding for this DOM. If I take SVG (I always wanted a SVG renderer for Tobago ;-) as an example the standard scripting language is JavaScript. The question is if scripts written for the HTML DOM will work on the SVG DOM as well. I'm still hoping that most of the common problems where you normally resort to scripting can be solved in Tobago directly in an abstract way. There are other output media, where the standard scripting language is not JavaScript. For example, I took a look at ActionScript for Flash, which reminds me more of BASIC... but I never really worked with Flash, so I might be wrong here. Since Tobago currently doesn't support any other output medium in a complete manor, perhaps we should support more JavaScript events than we currently do. Actually I consider the supported JavaScript event handlers more or less as hacks and I would like to get rid of them. I have some bad memories regarding JavaScript in a taglib similiar to Tobago... Regards, Arvid Martin Marinschek wrote: Hmmm Thing is that for XML based languages, JavaScript has become something like a scripting standard. regards, Martin On 10/6/05, Udo Schnurpfeil [EMAIL PROTECTED] wrote: Hello, this is a known problem, but we don't have a solution yet. The main idea of Tobago is that the source code (especially the JSP pages) are independent from the output format (e.g. HTML). If we allow to set onchange and onclick events, the source code will depend on the output format. One solution might be to use an abstract scripting language, which can be translated into different output formats. But there is no decision yet. Do you have a concrete problem? Maybe I can help you? Regards, Udo Dani Kenan wrote: Hi, I would like to handle onchage or onclick events in the client side. It seems missing from the Tobago tld. Is there away around this limitation? Is there a chance to get a fix for that? TIA Dani -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: MyFaces and Shale Clay again
I just answered my own question. I was referring to the component class when I should have been referring to the component type. so org.apache.myfaces.HtmlDataTable instead of org.apache.myfaces.component.html.ext.HtmlDataTable Ryan Wynn/Vienna/[EMAIL PROTECTED] 10/06/2005 01:26 PM Please respond to MyFaces Discussion To users@myfaces.apache.org cc Subject MyFaces and Shale Clay again Has anyone been able to utilize myfaces tomahawk components with clay, specifically the clay html views. Myfaces core components are working fine for me, I have just not yet been able to use tomahawk. In my clay-config.xml I have component jsfid=dataTableTmk componentType=org.apache.myfaces.component.html.ext.HtmlDataTable extends = baseHtml ... attributes /component Which I thought would enable me to use tomahawk, however I get Undefined component type org.apache.myfaces.component.html.ext.HtmlDataTable message when I try it. Not really sure if I am doing this correctly, I just followed suit on the examples. Any ideas?
Re: MYFACES-656
Hello, Boris Kovalenko wrote: Hello! ... Ok, this helps... now local dates are ok. Thank You, Volker! But now I have problems with dates I reading from SQL. What should I do with them? Is there best practices how to work with dates? Is that only for old values or also for the new ones (created by the new applicateion with the correced converter)? if only for the old ones it seems that your old dates in the database are not GMT based. Did you access the sql database also by other ways than java? If not, or, if mainly not, i suggest to convert them to GMT. From java.util.Date javadoc : ... the Date class is intended to reflect coordinated universal time (UTC), ... And UTC is nearly GMT. Hmmm... when I directly use Asia/Yekaterinburg it works without problem and does not when %= TimeZone.getDefault().getID() % Hmm, did this worked for you? My container (tomcat5.5.x) does not allow such an expression in faces tag attributes. With respect, Boris Regards volker -- 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.
Re: MyFaces and Shale Clay again
Has anyone been able to utilize myfaces tomahawk components with clay, specifically the clay html views. Myfaces core components are working fine for me, I have just not yet been able to use tomahawk. In my clay-config.xml I have component jsfid=dataTableTmk componentType=org.apache.myfaces.component.html.ext.HtmlDataTable extends = baseHtml ... attributes /component Which I thought would enable me to use tomahawk, however I get Undefined component type org.apache.myfaces.component.html.ext.HtmlDataTable message when I try it. Not really sure if I am doing this correctly, I just followed suit on the examples. Any ideas? You need to add org.apache.myfaces.HtmlDataTable for the component type. The componentType attribute corresponds to the component-type in the faces config used to register a component verses the component-class. I've not tried the tomahawk components yet but I think Clay should have a base configuration file for these components. If you take on that task and would like to contribute back to Shale, please let us know:-) Gary
Re: Login system security
In the core javaserver faces, there are infos about container security in chapter 11. Tomcat Database Realm or LDAP way http://www.horstmann.com/corejsf/ I bought this book, it's very good ;) 2005/10/6, Sean Schofield [EMAIL PROTECTED]: I can vouch for what Duncan is saying. We were able to write our own custom authenticator for OC4J. It used Windows Active Directory for authentication and Open LDAP for authorization. It was a bit more cumbersome than Tomcat but it worked fine. sean On 10/5/05, Duncan Mills [EMAIL PROTECTED] wrote: Several Points here 1) Using Security Attributes within your pages. I'm about to release 1.0 of the jsf-security project on SourceForge (www.sourceforge.net/projects/jsf-security) this provides extensions to EL which will give you a new scope #{securityScope} and a bunch of attributes and pseudo functions such as #{securityScope.isUserInRole['manager,admin']} which allow you to use expressions to control rendering and read-only states of components - even if they are not role enabled in the way that the myfaces components are. jsf-security is fully pluggable and so if you use Acegi or a home grown Authorization / Authentication mechanism you can plug it in underneath the same consistent EL. The current version hooks into Container Security, and we've just started a JAAS adapter as well. If anyone wants to get involved - particularly of you use Acegi today get in touch. For more info on this see this blog entry: and the project on SF. You can pull the source from CVS today and build - it all works I just need to write the doc and the localize the message strings... 2) Using the database to Authenticate / Authorize Your mileage will vary from container to container, but with OC4J ( Oracle App server) you can plus in your own custom login modules that can do just this - Frank and I who work on the jsf-security project just posted a paper on that process a few weeks back: Declarative J2EE authentication and authorization with JAAS Duncan Dave wrote: hi Andrew, How to get a Realm object so that I can call authenticate()? I am using Database to store username and password. Thanks. Andrew robinson [EMAIL PROTECTED] wrote: I am using the built in Tomcat DataSourceRealm so that single sign-on is possible. My login is still using a normal JSP instead of JSF, so I can't use JSF components to build my login page. Has anyone integrated the form-base web.xml authentication with a JSF login page? On 10/4/05, Mike Kienenberger [EMAIL PROTECTED] wrote: I've switch from a login page to a filter that authenticates and sets the User database record in the session. (Actually, I fetch this record every request, and store it in the request, but that may be too excessive for your situation). I then have additional filters that work on that data to provide coarse-grain security (ie, if you don't pass the filter, you can't access any of the application). I also have a SecurityRoleManager bean that provides fine-grain control by operating on the record stored in the session. Ie, securityRoleManager.canEditDate() On 10/4/05, Eurig Jones [EMAIL PROTECTED] wrote: I'm trying to decide on a Login/Logout system to protect my files using JSF.. I've played about with extending NavigationHandler, but the problem is, it doesn't protect the files which aren't JSF, and you can still run the JSP files if you wanted to... How have you people gone about a database driven login/logout system using Faces? Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools [EMAIL PROTECTED] -- hicham ABASSI [EMAIL PROTECTED]
Re: Programmatically creating command buttons problem
Hi Mike, On 10/6/05, Mike Kienenberger [EMAIL PROTECTED] wrote: From org.apache.myfaces.taglib.UIComponentTagUtils: public static void setActionProperty(FacesContext context, UIComponent component, String action) { if (action != null) { if (!(component instanceof UICommand)) { throw new IllegalArgumentException(Component + component.getClientId(context) + is no UICommand); } MethodBinding mb; if (isValueReference(action)) { mb = context.getApplication().createMethodBinding(action, null); } else { mb = new SimpleActionMethodBinding(action); Many, many thanks. That was it. By the way, on Suns RI the equivalent is: Util.createConstantMethodBinding(); regards, Jeroen
Problem with Clear the Submitted Value of Multiple Selections from selectManyListbox
I have a selectManyListbox where users can make multiple selections. The listbox is coded this way: [code] h:selectManyListbox value=#{fileManagementBean.dataFile} f:selectItems value=#{fileManagementBean.dataFileItems}/ /h:selectManyListbox [/code] The dataFileItems is a List of SelectItem objects and the dataFile is a String array. Users may change their mind about the selections made before they submit the form; therefore, I provide the form with a Clear Selections button with an actionListener, and I code this way: [code] h:commandButton value=Clear Selections type=submit actionListener=#{fileManagementBean.clearMultipleSelections} immediate=true/ [/code] In the backing bean, I tried to set the setSubmittedValue, but could not get it right. Here is the clearMultipleSelections method in my backing bean: [code] public void clearMultipleSelections( ActionEvent event ) { int length = dataFile.length; for( int i = 0; i length; i++ ) { dataFile[i].setSubmittedValue( null ); } } [/code] See, the dataFile[i] is a String and the setSubmittedValue method is undefined for the type String. __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Re: Programmatically creating command buttons problem
Yes, because it's going to be different for each JSF implementation, you're probably better off creating your own SimpleActionMethodBinding MethodBinding class. On 10/6/05, Jeroen Verhagen [EMAIL PROTECTED] wrote: Hi Mike, On 10/6/05, Mike Kienenberger [EMAIL PROTECTED] wrote: From org.apache.myfaces.taglib.UIComponentTagUtils: public static void setActionProperty(FacesContext context, UIComponent component, String action) { if (action != null) { if (!(component instanceof UICommand)) { throw new IllegalArgumentException(Component + component.getClientId(context) + is no UICommand); } MethodBinding mb; if (isValueReference(action)) { mb = context.getApplication().createMethodBinding(action, null); } else { mb = new SimpleActionMethodBinding(action); Many, many thanks. That was it. By the way, on Suns RI the equivalent is: Util.createConstantMethodBinding(); regards, Jeroen
Masking inputText
What you guys think is the easiest way to mask my inputText components, for instance when entering numeric values... Thanks
which webflow with JSF?
Hello, I need some webflow. Which one will work best with JSF? WFNM? Spring Webflow? Can they deal with saveState with back navigation? Thanks. Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Re: release 1.1.1RC2 : incompatible change to jscookMenu
Simon Kitching wrote: Hi, I've just tried the 1.1.1RC2 release with my current code, and found that the jscookMenu tag now throws an exception, with message: You provided a wrong themeName.. I see that new features have been added to support custom themes. This is fine, but please restore the original behaviour of accepting an unknown themeName value. A bump in the patch-level release number (1.1.0 - 1.1.1) should not have changes that break valid existing user code. I currently implement a custom theme by passing my own theme name to the jscookMenu class and then ensuring that references to the appropriate .js and .css files are inserted into the page too. The old jscookMenu code simply accepted the unknown theme name, included that name in its generated inline javascript, and skipped output of any references to the .js/.css for a built-in theme. The problem change is to class org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer Possibly a *warning* (logged or even output as a js comment) could be generated by the jscookMenu code to recommend to people that they modify their pages to use the new custom-theming attributes, but throwing an exception isn't nice. Thanks, Simon On a related subject, it would appear that the javascriptLocation attribute is used to locate the JSCookMenu.js and MyFacesHack.js files *as well as* the custom theme's theme.js file. Can this be separated into two different attributes? I would like to be able to specify a theme.js file *without* having to extract the core files JSCookMenu.js and MyFacesHack.js from the tomahawk jar and put them in the same directory. I think introducing a new attribute whose value is the URL of the custom theme file is possible without causing any incompatibilities with prior releases. I'm happy to provide a patch to implement this... Regards, Simon
Re: t:saveState server/client ... or request/session
I can't commit myself to this for every component in the project Martin. I have however created a sibling of saveState called safeState . It acts just as saveState except it makes use of an EncryptionUtil . EncryptionUtil uses several classes under javax.crypto, so there are no third party deps. Unfortunately the static key generator presents a challenge in a cluster. I haven't had problems after a search and replace on all t:saveState tags for my project. Can't say how it would perform in a high volume environment. I also have unit tests. If this ends up behaving itself in my project over a week or two, are you interested? Original message Date: Wed, 5 Oct 2005 09:30:21 +0200 From: Martin Marinschek [EMAIL PROTECTED] Subject: Re: t:saveState server/client ... or request/session To: MyFaces Discussion users@myfaces.apache.org Ok, to shed some light on this: - in the JSF RI, there is encryption on the client side - we have not implemented it so far, (this was after 1.1) cause we have no one here with too much time and experience in this. It should be not too hard though with the RI as an example and the java security classes! Anyone fancy working on this? - on the server end of things, the RI saves the state of the last 15 requests or so - this has been after 1.1. as well, and nobody had the time to do so on our side either... any contributions here are very welcome! - MyFaces is serializing whatever the state saving settings are. So with MyFaces, you get a smaller memory footprint on the server when the session is serialized, but the implementation does the additional work of serialization/deserialization. I really think we should have this as an option, any contribution is very welcome here as well! regards, Martin On 10/5/05, Dennis Byrne [EMAIL PROTECTED] wrote: I guess it would be possible to implement a custom state-saving/state-restoring mechanism that encrypts the data using a key stored in the user session. ... or use a converter that did the encryption/decryption ? Why would the objects stored in the user session on the server be serialized at all, unless webserver clustering is enabled? This is a good point and it probably explains the question I asked in a post that hit the list about 15 minutes ago. I was under the impression the value was serialized in both scenarios from past discussions I have had on the list. http://www.mail- archive.com/users@myfaces.apache.org/msg08176.html That does lead to some pretty heavy memory management at the server end. What if it was serialized to disk Simon ;-) Dennis Byrne -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German Dennis Byrne
MyFaces + Shale Clay
Has anyone been able to utilize myfaces tomahawk components with clay, specifically the clay html views. Myfaces core components are working fine for me, I have just not yet been able to use tomahawk. In my clay-config.xml I have component jsfid=dataTableTmk componentType=org.apache.myfaces.component.html.ext.HtmlDataTable extends = baseHtml ... attributes /component Which I thought would enable me to use tomahawk, however I get Undefined component type org.apache.myfaces.component.html.ext.HtmlDataTable message when I try it. Not really sure if I am doing this correctly, I just followed suit on the examples. Any ideas?
Re: MYFACES-656
Volker Weber wrote: Hello! if only for the old ones it seems that your old dates in the database are not GMT based. Ok, I will check and read DB docs more carefull. No problems, as I still use test DB so I can convert and test anything. Hmmm... when I directly use Asia/Yekaterinburg it works without problem and does not when %= TimeZone.getDefault().getID() % Hmm, did this worked for you? My container (tomcat5.5.x) does not allow such an expression in faces tag attributes. I can't say this worked for me, but my container (Resin-3.0.14) does not complain about any errors. P.S. And again, big thanks for your help. With respect, Boris