Re: PPR with s:pprPanelGroup and resource bundles
Hi, for this kind of requirement you can take the s:loadBundle component, which saves all the values inside a bundle for the entire request. cheers, Gerald On Thu, May 22, 2008 at 3:36 PM, Guy Bashan [EMAIL PROTECTED] wrote: Hi All, I am having a little problem doing PPR with resource bundles. It seems like the values containing resource bundles are empty after PPR. When page loads the resources are loaded properly. Thanks, Guy. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Orchestra] using orchestra conversation without a db connection
Hi, you can just leave out the section property name=advices list ref bean=persistentContextConversationInterceptor/ /list /property on each scope. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Ajax and t:saveState
Hi Guy, yes, the data in the list will be there again if you are using t:saveState and s:pprPanelGroup. I have done such stuff several times with both components, so i promise it :) cheers, Gerald On Mon, Apr 28, 2008 at 2:46 PM, Guy Bashan [EMAIL PROTECTED] wrote: Hi, I was wondering, if it is possible to use PPR (for ajax request) and t:saveState. For example, I want to show a table, that by pressing add button will add data to the bottom of the table. Data will be persisted to database only when pressing save. So I want to be able to maintain the list of items in the table between requests. In addition, I want the add operation to be in ajax, so whole page won't have to be reloaded. Does the t:saveSatae will know to store bean data over PPR ajax requests? Thanks, Guy. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: PPR components
Hi, The AjaxDecodePhaseListener just takes out Ajax requests from some special Ajax components, like InputSuggestAjax, TableSuggestAjax.. and calls some specific renderer stuff. It has nothing related to the ppr component. The PPRPhaseListener does something more. It listens in the Render Response phase and renders only the section embedded inside the pprPanelGroup component as xml. Regarding documentation; I can only refer to the related javadocs. cheers, Gerald On Tue, Apr 29, 2008 at 1:57 PM, Hemanth Abburi [EMAIL PROTECTED] wrote: Hi, I would like to know the difference between how an AjaxDecodePhaseListener works and PPRPhaseListener works. Any reading material on the same would be of great help. Thanking in advance, Hemanth. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: panelTabbedPane submit on serverside tab-switching
Hi, Now I can say the entered values are not written into the bound properties, if the input fields is nested inside a t:dataTable. I am not sure where to go on now. Any ideas? What kind of scope does your bean have? You can use the attribute preserveDataModel=true on your dataTable (does only exist on tomahawks dataTable). This would be something like pageScope only for the list. Maybe this would solve it. This is a nice introduction to preserveDataModel: http://wiki.apache.org/myfaces/Working_With_DataTable_And_PreserveDataModel cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: panelTabbedPane submit on serverside tab-switching
Hi, well, i remember the discussions about tabbedPane and its retained (or not) state a little bit. But if you have a look at the actual example of it http://www.irian.at/myfacesexamples/tabbedPane.jsf The server-side tab switching works with remembering the submitted values. cheers, Gerald On Mon, Apr 21, 2008 at 9:03 PM, Christian Kölle [EMAIL PROTECTED] wrote: Hello everyone, I have a form containing a tomahawk panelTabbedPane which contains 4 tabbed panels. All tabbed panels contain a lot of input-fields. The problem is, as someone mentioned before 2 years ago, that the data entered in the form on TAB_A will be lost, when I switch to TAB_B, provided that server-side-tab-switching is activated. What I would like to have is a feature which writes the data entered into JSF-bound-bean-properties before the actual tabswitching is done (in other words, I need a submit before tab-switching). Please note that I would really like to use server-side tabb-switching, as the tabs contain lots of data and the bandwidth is very limited. Please also note, that I do not like to add a onvalueChange-JScript to all input fields. (Somehow autoscroll does not work (to be investigated).) Any ideas: What about a phase listener, which does this work manually? Regards and thanks in advance. Christian Kölle -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Leak in saveState?
Hi, maybe comet would help here, instead of heavily pinging the server ;-) Yes, i am aware of comet but in our case it was for some reason not meaningful to use it. I can see that in some cases it may help, perhaps you wanna share the impl ? I just removed the two lines with the weak references. So, only ugly duplication of code. :) cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: facelets tomahawk tag issue
Hi, if you want to use tomahwak in combination with facelets i would recommend to use http://code.google.com/p/tomahawk-facelets/ Just copy the jar to your lib dir and you get tomahawk facelets support. But anyway, i am wondering that facelets doesn`t complain about the missing tag definition. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tag Library supports namespace: http://myfaces.apache.org/tomahawk
Hi, if you are using the following: http://code.google.com/p/tomahawk-facelets/ There should not be any problems. You dont`t have to define it by yourself. Just plug into you lib dir, that`s all. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: trinidad: combining trinidad and tomahawk
Hi, have you checked out http://myfaces.apache.org/tomahawk/extensionsFilter.html ? If you have configured the ExtensionsFilter correctly, Trinidad and Tomahawk should work well together. In case of the jscookmenu, i guess that the resource can not be found because it is not delivered. cheers, Gerald On Wed, Apr 16, 2008 at 4:09 PM, arne anka [EMAIL PROTECTED] wrote: hi, how do i combine trinidad and tomahawk in one project? apache.org is rather silent about both the relationship of trinidad and tomahawk (do they complete each other? does one supersed the other?) and the way how to use both together. either the jscookemenu does not work (js errors) or i get an error regarding the tomahawk extension filter not being properly configured. before adding the trinidad parts to web.xml according to http://wiki.apache.org/myfaces/Facelets_with_Trinidad everything worked well. so there's either some configuration stuff i missed or an incompatibiilty (but then again it seems a lot of people use tt together)... any hints? regards -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Sandbox Ajax Components
Hi, if you are interested in all the mentioned sandbox ajax components, you should be aware of some points. I would recommend to use only the PPR stuff and both suggest components. All the other components, like inputTextAjax are really pretty old and not that well implemented. Please do also note, that some of the sandbox components, which are using dojo under the hood will become a major overhaul in the near future. cheers, Gerald On Thu, Apr 17, 2008 at 11:33 AM, Hemanth Abburi [EMAIL PROTECTED] wrote: I would like to know if these are the only ajax components available in sandbox which use AjaxDecodePhase Listener. s:ajaxChildComboBox s:commandButtonAjax s:inputSuggestAjax s:inputTextAjax s:selectManyCheckbox s:selectOneRadio s:tableSuggestAjax Thanks and Regards, Hemanth -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Source Code for sandbox
Hi, if you like to get it via just one download: http://people.apache.org/builds/myfaces/nightly/ You can find it at the very bottom. cheers, Gerald On Fri, Apr 18, 2008 at 7:00 AM, Hemanth Abburi [EMAIL PROTECTED] wrote: Hi, Where can i get the source code for sandbox components? Thanks and Regards, Hemanth. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Leak in saveState?
Hi Simon, i think he has meant that gc is running too many times and slows the system down when the weak refs are getting very high. Which in turn occurs when many users have been interacting with the application and therefore many views have been stored. Well, maybe the approach with the weak references has to be overhauled. I recently did some stuff with periodically fired ajax requests and recognized a kind of system freeze with 20 + users after some time. After some profiling i was aware of the weak references which raised to a huge amount. Per user 3-4 areas are refreshed some times, each few seconds. Many many views are stored weak in this case. I plugged in my own StateManager without the weak references and the problem seems to be gone. Sure thing, this ajax scenario is not common, but it seems to show a major drawback. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Problem with custom component and a4j:support
Hi, it normally doesn`t (it shouldn`t) be related to any special component. Maybe you are not rendering the children of your component? Any js-errors or exceptions on server side? cheers, Gerald On Fri, Apr 4, 2008 at 11:43 AM, Stepan Katharina [EMAIL PROTECTED] wrote: Hello! I have written a custom component which works fine. Now I want to use the a4j:support tag inside my component but it doesn't render the JS. Inside the outputtext it works fine. Can anyone tell me what my component must have in order to use the a4j:support tag. Thanks Katharina -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Advice to apache and look for nice Myfaces/Jsf application architectures
Hi, cagatay has published a very nice example application called moviestore using spring and a good jsf technology stack: http://cagataycivici.wordpress.com/2007/12/19/annotate-jsf-beans-with-spring-25 facesgoodies is also a very nice and easy example project in order to study a real world jsf web application: http://code.google.com/p/facesgoodies Both are a good start in order to get in touch with popular technology stacks related to jsf. cheers, Gerald 2008/4/4 周恩 [EMAIL PROTECTED]: Hi,anybody! I am a chinese with poor english. I am looking for any nice Myfaces/Jsf enterprise application samples, I want to see your enterprise Myfaces/Jsf application architectures and choose the best one for my pjoject? The main question of mine is about real application's managed bean scope and MVC's controller implement strategy. Can anybody share somes for us include me and discuss which is the best architectures practise? I think a nice Myfaces/Jsf enterprise application architecture's persistence layer must be flexible with different implement such as JDBC,hibernate and others. Sorry for my poor english. btw: I think that Apache must gather it's power to focus one or two Jsf implements, now there are too many implements under Apache foundation! Tomahawk must keep updating with compatible MyFaces core, impl and sanbox in new version! Please. En Zhou,Beijin,China. 2008-04-04 七件武器,七种完美 立刻体验! -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Leak in saveState?
Hi, Using MessAdmin, I noticed that the size of the attribute 'org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW' in session is continualy increasing. Approximately 100K by viewed page. yes; With the web.xml setting org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION you can influence the amount of stored views in the session in order to restore them when navigating with the back button. However, the JspStateManagerImpl holds *all* the views in the session - regardless the setting - but with a weak reference. Means it will be freed out of the memory if gc determines that memory consumption is high. Because of this, the tool recognizes increasing memory consumption. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: How to clear data already t:saveState manually in code?
Hi, FacesContext facesContext = FacesContext.getCurrentInstance(); facesContext.getExternalContext().getRequestMap().remove(beanName); cheers, Gerald On Fri, Mar 28, 2008 at 11:26 AM, jimmyau [EMAIL PROTECTED] wrote: How to clear data already t:saveState manually in code? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [OFFTOPIC] Reminder: JSFDays Vienna
Hi, have a look at the conference page in the near future, i think there should be an update regarding videos. http://conference.irian.at/conference/main/index.jsf cheers, Gerald On Mon, Mar 17, 2008 at 7:39 AM, Anton Gavazuk [EMAIL PROTECTED] wrote: Hi guys, I hope everything was quite good during JSFDays. Are you going to share some materials (audio, pdfs etc) on JSFdaus official site? 2008/2/14, Martin Marinschek [EMAIL PROTECTED]: Hi all, we'd like to invite you to a JSF conference in Vienna, Austria from 12-14th of March. Anyone who wants to register as an attendee? Here is the link: http://conference.irian.at - click on preregister. Attendees will pay a very small conference fee - 100€. Speaker slots are pretty much filled already - except you have a topic which just rocks ;) There will be a supporting programm alongside the conference - so you will (additionally to learning about JSF and improving your JSF knowledge) have a good chance of getting to know Vienna and its surroundings. So far, there have been close to a hundred registrations - so this conference is definitely going to be a meeting point for everyone interested in JSF! regards, Martin -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: New Apache MyFaces Sandbox component (CAPTCHA)
Hi, and here is the component in action (only valid for today): http://example.irian.at/example-sandbox-20080304/home.jsf cheers, Gerald On Mon, Mar 3, 2008 at 6:34 PM, Matthias Wessendorf [EMAIL PROTECTED] wrote: Hi, On Mon, Mar 3, 2008 at 6:18 PM, Hazem Saleh [EMAIL PROTECTED] wrote: Hi Guy, I finished developing the Apache MyFaces Sandbox CAPTCHA component. Here is the jira issue link: https://issues.apache.org/jira/browse/TOMAHAWK-1207 I hope it can be useful to all the community. Thanks all. was already committed (see SVN tab): https://issues.apache.org/jira/browse/TOMAHAWK-1207?page=com.atlassian.jira.plugin.ext.subversion:subversion-commits-tabpanel thanks for the component! -- Hazem Ahmed Saleh Ahmed http://www.jroller.com/page/HazemBlog -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tomahawk panelTabbedPane bgcolor
Hi, best is you specify the styleClasses on your own. To change the backgroundColor of the tabbedPane body itself, type tabContentStyleClass=panelTabbedPane whereas the class .panelTabbedPane gets the backgroundColor. If you want to change the backgroundColor of the tab, just write t:panelTab styleClass=panelTab and address the .panelTab class. Both work fine to me. cheers, Gerald On Wed, Feb 27, 2008 at 9:06 AM, Drinkwater, GJ (Glen) [EMAIL PROTECTED] wrote: Hi I have the panelTabbedPane working fine with serverSideTabSwitch=false, but when I switch to server sided, serverSideTabSwitch=true the bgcolor attribute is then ignored. Can anyone help with this problem, it looks like it does this with the tomahawk examples too. Glen -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Trinidad] Something like InputSuggest
Hi, why not? Give it a try! But apart from this, just pushing in sandbox jar because of one component is litte bit overkill.. cheers, Gerald On Wed, Feb 27, 2008 at 10:32 AM, Mirco Attocchi [EMAIL PROTECTED] wrote: Hi all, someone know how I can build someting like a tr:SelectOneChoiche but with dynamic filtering of list based on user's input text? In Myfaces Sandbox there are InputSuggets ... I think they arent't usable with Trinidat? Thanks Mirco Attocchi -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Editing dynamic dataTable
Hi, a few lines of code would be helpful. Apart from this. Maybe there are validation errors; Do you have a messages tag on the page? Try to put your bean in page-scope instead of the session one. You can achieve this with the t:saveState component. cheers, Gerald On Sun, Feb 24, 2008 at 5:15 PM, chichi [EMAIL PROTECTED] wrote: Hello everyone, I am having trouble editing a dynamic datatable. I've tried so many solutions but nothing worked for me. Every time I click the edit button, it just stays on the page even though the navigations are correct. I also tried the getRowData but that too didnt work. Thanks for your help. -- View this message in context: http://www.nabble.com/Editing-dynamic-dataTable-tp15665521p15665521.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: MyFaces @PostConstruct and DI issue
Hi, this issue was already discussed under https://issues.apache.org/jira/browse/MYFACES-1761 cheers, Gerald On Mon, Feb 25, 2008 at 3:24 PM, Curtiss Howard [EMAIL PROTECTED] wrote: Hi Stas, I'm not a MyFaces developer, but I believe this is a legitimate, major issue. I was able to reproduce this problem and what's happening is MyFaces is creating the bean, doing resource injection, calling the @PostConstruct method, and _then_ injecting managed properties. The article you linked makes it very clear that MyFaces needs to create the bean, perform resource AND managed property injection, and then call the @PostConstruct method: But the flow within the JSF 1.2 RI for instantiating managed beans is as follows: 1. New the bean declared using the default constructor 2. Inject any |@Resource| declarations 3. Assign any managed-properties declared, cascading this process if new beans are referenced 4. Call |@PostConstruct| on the bean if declared 5. Store the bean in the correct scope and return I have a working patch for this problem if one of the devs would like to weigh in with their opinion about opening a JIRA issue for this problem I'd be happy to provide it. Curtiss Howard -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: submitOnEvent usage
Hi, the global event should work, as it is also documented at http://example.irian.at/example-sandbox-20080225/submitOnEventGlobal.jsf Have you tried it with a non-trinidad commandLink/commandButton? Any js related errors? cheers, Gerald On Sun, Feb 24, 2008 at 4:02 PM, jnl1 [EMAIL PROTECTED] wrote: hi all... i'm trying to use submitOnEvent to submit a form when a user hits enter. Looking at the docs, it looks like keypressed and on enter are the defaults. So, all I would need would be a simple: s:submitOnEvent for=searchButton / I put this in my page, but no luck. here's my page. pointers on what i'm doing wrong are greatly appreciated... thanks html xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:c=http://java.sun.com/jstl/core; xmlns:t=http://myfaces.apache.org/tomahawk; xmlns:s=http://myfaces.apache.org/sandbox; xmlns:af=http://xmlns.oracle.com/adf/faces; ui:composition h:form id=searchStandardsAllDataStandardsSearchForm s:submitOnEvent for=searchButton / h:panelGrid columns=1 width=40% af:panelHeader styleClass=searchPanel af:panelForm rows=4 width=40% styleClass=searchForm af:inputText id=criteriaName value=#{searchStandardsAllDataStandardsSearchForm.criteria.name} label=#{messages['name']}: required=false readOnly=false /af:inputText af:inputText id=criteriaId value=#{searchStandardsAllDataStandardsSearchForm.criteria.id} label=#{messages['id']}: required=false readOnly=false /af:inputText af:selectOneChoice id=criteriaCategoryId value=#{searchStandardsAllDataStandardsSearchForm.criteria.categoryId} label=#{messages['category.id']}: required=false readOnly=false unselectedLabel= valueChangeListener=#{searchStandardsController.populateSubcategories} autoSubmit=true c:if test=${!empty criteriaCategoryIdBackingList} f:selectItems value=#{criteriaCategoryIdBackingList} / /c:if /af:selectOneChoice af:selectOneChoice id=criteriaTypeId value=#{searchStandardsAllDataStandardsSearchForm.criteria.typeId} label=#{messages['type.id']}: required=false readOnly=false unselectedLabel= c:if test=${!empty criteriaTypeIdBackingList} f:selectItems value=#{criteriaTypeIdBackingList} / /c:if /af:selectOneChoice af:selectOneChoice id=criteriaOrganizationId value=#{searchStandardsAllDataStandardsSearchForm.criteria.organizationId} label=#{messages['organization.id']}: required=false readOnly=false unselectedLabel= c:if test=${!empty criteriaOrganizationIdBackingList} f:selectItems value=#{criteriaOrganizationIdBackingList} / /c:if /af:selectOneChoice af:selectOneChoice id=criteriaGroupId value=#{searchStandardsAllDataStandardsSearchForm.criteria.groupId} label=#{messages['group.id']}: required=false readOnly=false unselectedLabel= c:if test=${!empty criteriaGroupIdBackingList} f:selectItems value=#{criteriaGroupIdBackingList} / /c:if /af:selectOneChoice af:selectOneChoice id=criteriaSubcategoryId value=#{searchStandardsAllDataStandardsSearchForm.criteria.subcategoryId} label=#{messages['subcategory.id']}: required=false readOnly=false unselectedLabel= c:if test=${!empty criteriaSubcategoryIdBackingList} f:selectItems value=#{criteriaSubcategoryIdBackingList} / /c:if /af:selectOneChoice af:selectOneChoice id=criteriaStatusId value=#{searchStandardsAllDataStandardsSearchForm.criteria.statusId} label=#{messages['status.id']}: required=false readOnly=false unselectedLabel= c:if test=${!empty criteriaStatusIdBackingList} f:selectItems value=#{criteriaStatusIdBackingList} / /c:if /af:selectOneChoice /af:panelForm /af:panelHeader af:panelButtonBar styleClass=floatleft af:commandLink id=searchButton text=#{messages['search']} action=#{searchStandardsController.allDataStandardsSearch} styleClass=lightbutton/ /af:panelButtonBar /h:panelGrid /h:form /ui:composition /html -- View this message in context:
Re: Where to find all the param-names such as org.apache.myfaces.ALLOW_JAVASCRIPT?
Hi, best place to have a look at is the web.xml provided by the example application. See file tomahawk-examples-1.1.6-bin.zip http://myfaces.apache.org/download.html cheers, Gerald 2008/2/6 Thomas Chang [EMAIL PROTECTED]: Hi all, In the web.xml we see often in the context-param/ the param-name such as org.apache.myfaces.ALLOW_JAVASCRIPT or javax.faces.STATE_SAVING_METHOD. I wonder where can I find all of these param-names? Regards Thomas Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite! -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: A question about integration of JSF and Spring
Hi, a nice introduction with code examples was published by cagatay on his blog: http://cagataycivici.wordpress.com cheers, Gerald On Feb 3, 2008 1:32 PM, Matthias Wessendorf [EMAIL PROTECTED] wrote: check code.google.com/p/facesgoodies On Feb 3, 2008 1:17 PM, Thomas Chang [EMAIL PROTECTED] wrote: Hi all, I am looking for tutorials, documentations about inegration of JSF/MyFaces and Spring. Could someone help me? Regards Thomas Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: submitOnEvent callback
Hi Dave, don`t know why the method is not called, maybe Mario knows it. It`s not that nice, but you may also write: callback=mySpecialUserCallback .. function mySpecialUserCallback(event, srcComponentId, clickComponentId) { return #{bean.submitOnChange}; } This should work without any problems; cheers, Gerald On Feb 1, 2008 11:53 AM, Dave [EMAIL PROTECTED] wrote: the bean method return a string that is a javascript function name. Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! callback=#{bean.callbackFunction} The callback should point to a javascript function name instead of a bean method. callback is meant to be executed on the client. This javascript method then should allow you to return true/false, on false the click should not happen. Ciao, Mario Looking for last minute shopping deals? Find them fast with Yahoo! Search. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: s:inputSuggestAjax dojo controls not working
Hi, ok, problem solved. Although I am still confused about how it works for other people. This really seems to be a bug in MyFaces and is currently discussed on the dev list. But i am not sure of how it was itroduced, the examples still work. I solved this problem by overriding the StartupServletContextListener and removing the duplicate phase listeners from the lifecycle. s:inputSuggestAjax works fine now. There should be a patch applied today evening; Try a nightly build from the next few days. Please report if it fixes the problem!? cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: JsCookMenu - own themes
Hi, you can specify your own Theme via the following: theme=ThemeOffice styleLocation=/css/jscookmenu/ Just create the dir /ThemeOffice under jscookmenu and place theme.css in it (copy from default theme.css). This should work. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: s:inputSuggestAjax dojo controls not working
Hi, normally you have to specify the suggestedItemsMethod with the get as a prefix because the component does a methodBinding. So, in your case it would be suggestedItemsMethod=#{formsBackingBean.getBuildIncomeExpenseCodeSuggestionList} But i am wondering, because you have observed that the list is returned correctly. Are there any js related errors? Please also try to use the latest nightly build from sandbox, which can be found at http://people.apache.org/builds/myfaces/nightly/ Does this change anything? cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: s:inputSuggestAjax dojo controls not working
Did you have a look at our examples page: http://example.irian.at/example-sandbox-20080129/inputSuggestAjax.jsf Any differences in rendered html or the ajax-response? Are you using client side state saving? (which should work anyway) Try to build a very simple page in your app, without any proprietary code. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tomahawk Sandbox promotion schedule?
+1 on SubForm too. It is really widely used and quite stable. (same to submitOnEvent) Another candidate would be s:selectManyPicklist. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tomahawk Sandbox promotion schedule?
I want to promote these nice and useful Dojo-dependent components pprPanelGroup suggest (inputSuggestAJAX, tableSuggestAJAX, simple input suggest) fishEyeNavigationMenu modalDialog and will do the promotion but we should definitely wait until new Dojo comes in (there was a major overhaul to the api). I am just waiting for Werner`s Dojo drop. So, Werner, count me in. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tomahawk pannelTabbedPane tag
Hi, please do also append the corresponding snippet of your web.xml. cheers, Gerald On Jan 24, 2008 12:56 PM, Alvi [EMAIL PROTECTED] wrote: Hi, I am trying to make a simple tab page. My code is.. %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% html head titlet:panelTabbedPane exampletitle /head body center f:view t:panelTabbedPane width=400 bgcolor=#cddcf6 align=center serverSideTabSwitch=false selectedIndex=0 t:panelTab label=First h:form id=form1 t:outputText value=Client Side First Tab Content./ /h:form /t:panelTab t:panelTab label=Second h:form id=form2 t:outputText value=Client Side Second Tab Content. / /h:form /t:panelTab /t:panelTabbedPane /f:view /center /body /html When I run, I got following error.. ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html; I have setuped extension filter on web.xml file. Still I have same error. Any one has any idea??? -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tomahawk pannelTabbedPane tag
remove the filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.jsf/url-pattern /filter-mapping instead wire it to your FacesServlet filter-mapping filter-nameextensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping Assuming you call it Faces Servlet. Is there any difference? Apart from this. You are using Facelets, right? So, why are there the jsp-includes at the top of the tabbedPane page? cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Which suggestion input field component?
Hi, the simple suggest component from sandbox is quite stable and can be used without any restrictions. There are no problems i am aware of. As an alternative you could also have a look at the inputSuggestAjax component. But if the suggested values are predefined and not dependent from user inputs i would take the first approach. cheers, Gerald On Jan 22, 2008 8:51 AM, Marko Asplund [EMAIL PROTECTED] wrote: Hi, I need to add an input text field with suggestion capabilities to an existing JSF 1.1 application. Which component would you recommend using? The Sandbox s:inputSuggest would seem like a good fit but I have some concerns about using Sandbox due to it's experimental status. The number of possible values is not large, the maximum will be around 150. The value set is also static and doesn't depend on other component values. marko -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Which suggestion input field component?
Tomahawk-sandbox is only available as a SNAPSHOT-version, there are no releases. The version number increments if tomahawk also increments and a new tom release is published. This does not mean that all the stuff in it is unstable. Quite a few components are ready for production and widely used (like Subform, Ajax components, suggest, modal dialog..). The main reason for not pushing some of the components to tom is less amount time. :) However, you can get the latest nightly here: http://people.apache.org/builds/myfaces/nightly/ Your file should be: tomahawk-sandbox-1.1.7-SNAPSHOT-bin.zip No need for a checkout and build from sources. cheers, Gerald On Jan 22, 2008 12:50 PM, Marko Asplund [EMAIL PROTECTED] wrote: Hi, Thanks, Gerald. Are there any Sandbox release builds available I could use? Or do I need to build it myself? Which tag should I use for checking out the source? marko Gerald Müllan wrote: the simple suggest component from sandbox is quite stable and can be used without any restrictions. There are no problems i am aware of. As an alternative you could also have a look at the inputSuggestAjax component. But if the suggested values are predefined and not dependent from user inputs i would take the first approach -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Which suggestion input field component?
Yes, it should work with Tomahawk versions less than 1.1.7. On Jan 22, 2008 4:31 PM, Marko Asplund [EMAIL PROTECTED] wrote: ok, thanks again. Does the Sandbox have any dependencies on the Tomahawk version? Can I expect the 1.1.7-SNAPSHOT to work with Tomahawk 1.1.6 or earlier? marko Gerald Müllan wrote: Tomahawk-sandbox is only available as a SNAPSHOT-version, there are no releases. The version number increments if tomahawk also increments and a new tom release is published. This does not mean that all the stuff in it is unstable. Quite a few components are ready for production and widely used (like Subform, Ajax components, suggest, modal dialog..). The main reason for not pushing some of the components to tom is less amount time. :) However, you can get the latest nightly here: http://people.apache.org/builds/myfaces/nightly/ Your file should be: tomahawk-sandbox-1.1.7-SNAPSHOT-bin.zip No need for a checkout and build from sources. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Myfaces-1.2.1-snapshot: Spring injected bean not available in @PostContruct method
Hi, Do you have the managed bean in faces-config.xml defined oder via spring configuration file? MyFaces should not be responsible for injecting a spring bean. This is done when using Spring beans only. I would suggest to define it directly in Spring an use Spring`s init-method approach. cheers, Gerald On Jan 17, 2008 10:11 PM, Zheng, Xiahong [EMAIL PROTECTED] wrote: In my managed bean, I have a service bean configured and injected by spring as in the following, private DataService dataService; @PostConstruct public void retrieveData() { dataService.retrieveData(); } Public void setDataService(DataService dataService) { this.dataService = dataService; } Using RI, dataService is already injected before retrieveData method is called. However, this is not the case with myfaces. It seems that spring injection happens much later resulting in NPE thrown in the method. Is this expected with myfaces inplementation or a bug? -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Myfaces-1.2.1-snapshot: Spring injected bean not available in @PostContruct method
Spring only has to get access to the RequestContext in order to manage request-beans - but this is just one entry in web.xml. Have a look at this blog article from cagatay: http://cagataycivici.wordpress.com/2007/09/10/using-spring-to-manage-jsf-beans/ Or the annotated way (only with spring 2.5): http://cagataycivici.wordpress.com/2007/12/19/annotate-jsf-beans-with-spring-25/ cheers, Gerald On Jan 18, 2008 2:34 PM, Simon Kitching [EMAIL PROTECTED] wrote: Zheng schrieb: Yes, that's exactly how I inject spring beans. I am injecting a spring managed bean to a JSF managed bean. What do you mean by defining all beans in spring? Do you suggest I should have spring manage my JSF bean? Is it possible? Yes. Spring version 2.0 and later support a scope attribute on bean definitions. Values include request and session as well as singleton and prototype. So now all beans can be declared in spring, and only navigation rules need to be in faces-config.xml. It is much nicer this way. Spring can also support @PostConstruct annotations, and I think this is nicer than using Spring's old init-method property. After all, it is the *class* that knows whether it needs to be initialised or not. There is still one thing the jsf managed-bean stuff can do that I don't know how to do in spring: injecting jsf implicit objects, like request parameter values. And spring does *not* currently report errors when injecting a short-lifetime bean into one with a longer lifetime; jsf does warn about this which is a good idea. But in all other ways, Spring is far superior. Regards, Simon -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Myfaces-1.2.1-snapshot: Spring injected bean not available in @PostContruct method
When using Spring in combination with JSF it makes no sense to mix up ManagedBean facility controlled beans with Spring defined Service-/DAO-Beans. I would recommend to define them also via Spring. In this case you can take fully advantage of Spring features and dont`t add unnecessary configuration overhead to your application. cheers, Gerald On Jan 18, 2008 11:53 AM, Bernhard Huemer [EMAIL PROTECTED] wrote: Hello, most probably he's injecting the Spring bean using managed-properties, i.e. I think his managed bean definition looks like the following: managed-bean managed-bean-name.../managed-bean-name ... managed-property property-namedataService/property-name value#{dataService}/value /managed-property /managed-bean However, there's a bug in MyFaces as it calls methods being annotated with @PostConstruct before all properties have been injected. I have already created a JIRA Issue, but I haven't got the time to fix this bug so far. Therefore I'd recommend you to define alle your beans in Spring directly, just as Gerhard has already mentioned. regards, Bernhard On 01/18/2008 +0100, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, Do you have the managed bean in faces-config.xml defined oder via spring configuration file? MyFaces should not be responsible for injecting a spring bean. This is done when using Spring beans only. I would suggest to define it directly in Spring an use Spring`s init-method approach. cheers, Gerald On Jan 17, 2008 10:11 PM, Zheng, Xiahong [EMAIL PROTECTED] wrote: In my managed bean, I have a service bean configured and injected by spring as in the following, private DataService dataService; @PostConstruct public void retrieveData() { dataService.retrieveData(); } Public void setDataService(DataService dataService) { this.dataService = dataService; } Using RI, dataService is already injected before retrieveData method is called. However, this is not the case with myfaces. It seems that spring injection happens much later resulting in NPE thrown in the method. Is this expected with myfaces inplementation or a bug? -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Configuration files being loaded twice, but not declared in web.xml
Hi, clean out all the class-caches from your IDE and all deployment directories. If this doesn`t help; As an alternative to the provided tomahawk-facelets-taglib.jar, you could also use the included resources and add it to your webApp manually. Don`t forget to add the Facelet taglib reference to the new tomahawk taglib in your web.xml. But normally, this should not make any difference. cheers, Gerald On Jan 7, 2008 6:12 PM, diaphanous [EMAIL PROTECTED] wrote: As an update, I tried replicating my pages with myfaces/Tomahawk without facelets and that seemed to fix this problem. But ideally I would like to use the Facelets Templating. Thanks, diaphanous wrote: Hi, I was wondering if anyone has any ideas that I could try. I really don't understand why everything seems to be loaded twice. diaphanous wrote: Hi, I have read the FAQ and double-checked that my web.xml does not contain the config files parameter. However, my entire startup is being repeated twice. This is a rather simple application that I am building using NB6 and the bundled Tomcat6. I am trying to use MyFaces 1.1.5, Tomahawk 1.1.6, and Facelets. The log that follows the web.xml is just up to loading the login page. Is it because of that one ERROR line in the log? How can I fix that? I tried looking in the MANIFEST.MF indicated, but couldn't see what it was complaining about. It is the unaltered tomahawk-taglib.jar that I downloaded. Thanks in advance for your help. Here is a my web.xml: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namefacelets.SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param context-param descriptionIf true, rendered HTML code will be formatted, so that it is human readable. i.e. additional line separators and whitespace will be written, that do not influence the HTML code. Default: true/description param-nameorg.apache.myfaces.PRETTY_HTML/param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value /context-param context-param descriptionIf true, a javascript function will be rendered that is able to restore the former vertical scroll on every request. Convenient feature if you have pages with long lists and you do not want the browser page to always jump to the top if you trigger a link or button action that stays on the same page. Default: false/description param-nameorg.apache.myfaces.AUTO_SCROLL/param-name param-valuetrue/param-value /context-param context-param description Validate managed beans, navigation rules and ensure that forms are not nested. /description param-nameorg.apache.myfaces.VALIDATE/param-name param-valuetrue/param-value /context-param context-param description A very common problem in configuring MyFaces-web-applications is that the Extensions-Filter is not configured at all or improperly configured. This parameter will check for a properly configured Extensions-Filter if it is needed by the web-app. In most cases this check will work just fine, there might be cases where an internal forward will bypass the Extensions-Filter and the check will not work. If this is the case, you can disable the check by setting this parameter to false. /description param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name param-valuetrue/param-value /context-param context-param description This parameter enables partial state saving. /description param-namejavax.faces.PARTIAL_STATE_SAVING_METHOD/param-name
Re: TabbedPanel not refreshing values
Hi, which scope does the detail bean have; are you using the saveState tag somewhere? It seems that the bean is restored from anywhere. cheers, Gerald On Dec 28, 2007 11:23 AM, Janap [EMAIL PROTECTED] wrote: Hello all, I use a Datatable backed by a dataModel(no savestate or preserveModel) to show the data on the main page. To go to the detail page the user has to click on the datatable..then he is sent to a tab on the same page. So the structure is #{MainBean.dataModel} for dataTable and #{Main.detailbean} for the detail Page. I set the values of the detail Bean using commandLink( without immediate=true). The problem is that the first time they are set but the second time when I goto Main page tab and click again..the detailbean values are not updated. And yes...the new values are updated if I use t:outputText instead of t:inputText. Also..the new values are updated when I point the navigation(detailPage) to another new page. Only in the tab case it doesnt work. I tried to reload the view by adding the navigation hnadler. Uses facesContext.renderresponse...nothing works. any more ideas... thx -- View this message in context: http://www.nabble.com/TabbedPanel-not-refreshing-values-tp14524128p14524128.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Bug using tomcat 6 and myfaces 1.2
Hi, i have also observed this problem. I think it that WebXmlParser tries to get the dtd definition via an internet connection which causes the exception if you are working offline. Initialize your log4j configuration the right way and you will see the correct logging message. But an internet connection should definitely not be mandatory. cheers, Gerald On Dec 24, 2007 9:52 AM, Ognjen Blagojevic [EMAIL PROTECTED] wrote: Hi Matthias, I had similar problem. I tried to add the listener in web.xml, but that didn't help. It seems to me that it has something to do with the internet connection. Starting tomcat (6.0.13) without internet connection causes application to throw this exception as soon as I try to view application home page. If the internet connection is enabled during tomcat startup everything works just fine. Although exception message is verbose, I think it is misleading, because I cannot figure out what is the exact resource that application is trying to get from the internet. BTW, that looks very similar to Tomahawk problem with DTD. Regards, Ognjen HTTP Status 500 - type Exception report message description: The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) root cause java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90) javax.faces.webapp.FacesServlet.init(FacesServlet.java:88) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs. Apache Tomcat/6.0.13 Matthias Wessendorf wrote: you need to conf the listener in your web.xml -M On Dec 20, 2007 2:07 PM, Alonso Isidoro Roman [EMAIL PROTECTED] wrote: SEVERE: StandardWrapper.Throwable java.lang.IllegalStateExceptio n: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener 2007/12/20, [EMAIL PROTECTED] [EMAIL PROTECTED] : I have a problem when i try to deploy this happens == 20/12/2007 09:19:55 org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which
Re: [INFO] new sandbox slideShow component - ImageLoop
Hi, the general (not nightly build) example page http://www.irian.at/myfaces-sandbox/home.jsf shows the component in the actual development iteration. There is no difference to the nightly build. Yes, a new tag for buttons would be very nice! The actual solution is little bit ugly. cheers, Gerald On Dec 10, 2007 5:13 PM, Christopher Cudennec [EMAIL PROTECTED] wrote: Hi, I would like to take a look at the examples online. Unfortunately the link to the latest build on Irian does not work. Could someone look after this? Check: http://example.irian.at/example-simple-20071210 http://example.irian.at/example-sandbox-20071210 Cheers, Christopher Alan Romaniuc schrieb: Hi, I am new to JSF, but I am interested in develop this component a little more. What would be suggestions or recommendations? A new tag for the buttons? Yeah, The component is definitely a nice one. Looks great! Only the buttons are a pain for those guys, using the compoent. But... it's open source, so don't complain; fix it ;) Since I don't have a use case for that, I am not fixing it :) -M -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: My Faces Ajax
The tomahawk-sandbox-1.1.7-SNAPSHOT-bin.zip file is the right one but you can also download it via maven as Gerhard mentioned. The latest sandbox jar is compatible with tomahawk-1.1.5, for sure. cheers, Gerald On Nov 27, 2007 11:41 PM, [EMAIL PROTECTED] wrote: Actually , I found the download page where I see tomahawk-sandbox-1.1.7-SNAPSHOT-bin.zip . First of all , Am I look at right thing . Secondly , does that mean I have to use tomahawk-1.1.7. Our application is built on tomahawk-1.1.5. At this point I don't want to switch . Is there a sandbox jar which would be compatible with tomahawk-1.1.5 Shipra Jain Lead System Software Engineer Sperian 900 Douglas Pike Smithfield, RI 02917 401-757-2332 http://www.sperianprotection.com Shipra Jain/IT/US/Bacou-Dalloz 11/27/2007 05:16 PM To MyFaces Discussion users@myfaces.apache.org cc Subject Re: My Faces AjaxLink Hi Gerald I looked at some of the examples of ppr also focus components , that might solve my issue . But where do I download the sandbox.jar from ? Thanks Shipra Jain Lead System Software Engineer Sperian 900 Douglas Pike Smithfield, RI 02917 401-757-2332 http://www.sperianprotection.com Gerald Müllan [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 11/21/2007 06:20 AM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: My Faces Ajax Hi, if you are already using MyFaces I would suggest to have a quick look at our sandbox-ajax stuff if it fits your needs. http://www.irian.at/myfaces-sandbox/home.jsf Go to the partial page rendering section at the very top of the page. If you want to use it in your application you only have to add the MyFaces sandbox jar and use the ppr component in the view layer. The advantage is that MyFaces Sandbox ppr is very lightweight and quite fast. Please report if you have any questions to it. cheers, Gerald On Nov 20, 2007 11:52 PM, [EMAIL PROTECTED] wrote: Can anyone tell me , if I want to use AJAX with My Faces , what is the best way ? A link to some examples / site would be helpful. I have seen lot of mails about a4j . Have people been using this library successfully ? My main issue is that after a valueChange Listener is triggered , the whole page is refreshed it comes to the top of the page . The user has to scroll down to get to the place where he left . Can I use AJAX to make the necessary changed to my form without refreshing the page or at least come back to the same place ? Am I on the right track ? If not please point me to correct solution . All the help is appreciated . Shipra -- 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: My Faces Ajax
Hi, if you are already using MyFaces I would suggest to have a quick look at our sandbox-ajax stuff if it fits your needs. http://www.irian.at/myfaces-sandbox/home.jsf Go to the partial page rendering section at the very top of the page. If you want to use it in your application you only have to add the MyFaces sandbox jar and use the ppr component in the view layer. The advantage is that MyFaces Sandbox ppr is very lightweight and quite fast. Please report if you have any questions to it. cheers, Gerald On Nov 20, 2007 11:52 PM, [EMAIL PROTECTED] wrote: Can anyone tell me , if I want to use AJAX with My Faces , what is the best way ? A link to some examples / site would be helpful. I have seen lot of mails about a4j . Have people been using this library successfully ? My main issue is that after a valueChange Listener is triggered , the whole page is refreshed it comes to the top of the page . The user has to scroll down to get to the place where he left . Can I use AJAX to make the necessary changed to my form without refreshing the page or at least come back to the same place ? Am I on the right track ? If not please point me to correct solution . All the help is appreciated . Shipra -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Tomahawk] after enter key first tab becomes visible
Hi, if you provide the attribute selectedIndex and bind it to a page scoped bean, the problem should be gone. cheers, Gerald On Nov 19, 2007 9:52 AM, Rottstock, Sven [EMAIL PROTECTED] wrote: Hi, i have a little problem with the tabbedPane component. In details i have 4 tabs in my page. If i select any tab (except the first one) and press the enter key, the tabbedPane is switched back to the first tab. This behaviour is only visible with the Internet Explorer and you can see this on the tabbedPane example that is provided in the MyFaces download area. Has anybody the same problem and have a workaround or a hint how i can fix it (maybe with JavaScript?) Best Regards Sven -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Tomahawk] after enter key first tab becomes visible
Hi, which kind of scope do you have defined for the bean? It should be more than request scope, because otherwise the index will be reset. cheers, Gerald On Nov 19, 2007 12:06 PM, Rottstock, Sven [EMAIL PROTECTED] wrote: Hi Gerald, i'm using the attribute selectedIndex. Furthermore a TabChangeListener is invoked if you switch to a new tab. In the debugger i can see that everthing is well. The selectedIndex is set correctly in the bean. But if i press the enter key, the TabChangeListener is invoked again with the new index for the first tab :-( Should i remove the TabChangeListener? If so how can i set the selected index into my bean? This is necessary because i have sometimes switch the tab from the server side. And the setter method is not invoked by the t:panelTabbedPane. Regards Sven -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Gerald Müllan Gesendet: Montag, 19. November 2007 11:31 An: MyFaces Discussion Betreff: Re: [Tomahawk] after enter key first tab becomes visible Hi, if you provide the attribute selectedIndex and bind it to a page scoped bean, the problem should be gone. cheers, Gerald On Nov 19, 2007 9:52 AM, Rottstock, Sven [EMAIL PROTECTED] wrote: Hi, i have a little problem with the tabbedPane component. In details i have 4 tabs in my page. If i select any tab (except the first one) and press the enter key, the tabbedPane is switched back to the first tab. This behaviour is only visible with the Internet Explorer and you can see this on the tabbedPane example that is provided in the MyFaces download area. Has anybody the same problem and have a workaround or a hint how i can fix it (maybe with JavaScript?) Best Regards Sven -- 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: inputSuggestAjax ignoring maxSuggestedItems
Hi, have a look at the next nightly build, it should work now. cheers - Gerald On 10/22/07, BinaryMechanic [EMAIL PROTECTED] wrote: Hi, I'm trying to use the inputSuggestAjax control in sandbox snapshot 1.1.7. The control is working fine, except that it's ignoring the maxSuggestedItems value I'm specifying (1300), and returning the default 200 instead. Here's the code : s:inputSuggestAjax id=listtest maxSuggestedItems=1300 suggestedItemsMethod=#{searchParamVO.getTestISList} value=#{searchParamVO.testIS}/ The getTestISList method is receiving the value 1300 correctly, but my return list is still being truncated to the first 200. I've probably missed something obvious, but InputSuggestAjaxRenderer.java seems to break out of the write loop when suggestedCount DEFAULT_MAX_SUGGESTED_ITEMS, and ignores that I've specified a higher value on the control? Any help would be greatly appreciated. I haven't tried building myfaces before, but I guess as a workaround I could increase DEFAULT_MAX_SUGGESTED_ITEMS - 200 as a default cutoff seems a little low. Although I'm sure people will disagree with sending back 1300, I chose the myfaces version of an inputsuggest so users can drop down the complete list before typing and ajax kicks in to reduce the list if they prefer. Cheers For ideas on reducing your carbon footprint visit Yahoo! For Good this month. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Problem with JSCookMenu and it's actions
Hi, why do you have specified the javascript location? Maybe the paths are wrong. cheers, Gerald On 10/30/07, Tobias Kühne [EMAIL PROTECTED] wrote: Hello all, I'm trying to use the jscookmenu component. The menu is diplayed correctly, but the actions belonging to the navigationMenuItems aren't working. All I got when clicking on an item is this: HTTP Status 404 - /easywords/idJsp0_navmenu_menu:A%5Dsuccess type Status report message /easywords/idJsp0_navmenu_menu:A%5Dsuccess description The requested resource (/easywords/idJsp0_navmenu_menu:A%5Dsuccess) is not available. This is a part of the source code of the page: t:jscookMenu layout=hbr theme=ThemeBlue id=navmenu styleLocation=css javascriptLocation=css t:navigationMenuItem id=nav_0_0 itemLabel=#{msg.menu_home} action=success / ... And the source code of the rendered page looks like that: script type=text/javascript!-- var idJsp0_navmenu_menu = [['img src=images/myfaces.gif/', 'Home', 'idJsp0_navmenu_menu:A]success', '_idJsp0', null], ... I'm using myfaces and tomahawk in version 1.1.6. Any ideas on that issue? Thanks, Tobias. -- Tobias Kühne IT Software GmbH Data Security Elbe KG Tel.: +49 (391) 509609-55 Bahnhofstr. 18, D-39104 Magdeburg Fax : +49 (391) 509609-56 Geschäftsführer: Jens Henning Amtsgericht Stendal, HRA 22588 -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Makeing inputsuggestajax tag look like a inputText box and not a selectOne
Hi, i don`t think that this is currently possible. But have a look at: http://wiki.apache.org/myfaces/InputSuggestAjax At the bottom there is the css-styling section, maybe you can deal with the component in this way. cheers, Gerald On 10/12/07, Tony Akocs [EMAIL PROTECTED] wrote: Can I change the style of the inputsuggestajax tag to look like a simple inputText box. I don't want the drop down arrow image. Thanks. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: inputSuggestAjax problem
Hi, what is the signature of the suggestedItemsMethod? Did you have a look at: http://example.irian.at/example-sandbox-20071012/inputSuggestAjax.jsf The daily build works, so the component should not have a bug. cheers, Gerald On 10/11/07, popajce [EMAIL PROTECTED] wrote: I tried that but unfortunately it doesn't work. maybe I missed something in web.xml or faces-config.xml so here they are: web.xml ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameEskont Menica/display-name listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/spring.xml/param-value /context-param listener listener-class org.apache.myfaces.webapp.StartupServletContextListener /listener-class /listener servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config-main.xml, /WEB-INF/faces-config-input.xml/param-value /context-param servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping filter filter-nameMyFacesExtensionsFilter/filter-name filter-class org.apache.myfaces.webapp.filter.ExtensionsFilter /filter-class init-param descriptionSet the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB/description param-nameuploadMaxFileSize/param-name param-value100m/param-value /init-param init-param descriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB/description param-nameuploadThresholdSize/param-name param-value100k/param-value /init-param /filter filter-mapping filter-nameMyFacesExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping context-param description State saving method: client or server (= default) See JSF Specification 2.5.2 /description param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueserver/param-value /context-param /web-app and faces-config.xml faces-config managed-bean managed-bean-nameinputSuggestMSBR/managed-bean-name managed-bean-class com.mesk.controllers.ajax.InputSuggestMSBR /managed-bean-class managed-bean-scoperequest/managed-bean-scope /managed-bean alvaro tovar wrote: i ha ve a problem, with this i comment this line and was resolved, in faces-config.xml !-- variable-resolver org.springframework.web.jsf.DelegatingVariableResolver/variable-resolver -- On 10/10/07, popajce [EMAIL PROTECTED] wrote: hi, I am using: tomahawk-sandbox-1.1.7-SNAPSHOT myfaces-core-1.1.5 tomahawk-1.1.5 I am trying to use inputSuggestAjax, but unfortunately it doesn't work, here is my jsp page: f:view h:form t:dojoInitializer bindEncoding=utf-8/ s:inputSuggestAjax suggestedItemsMethod=#{inputSuggestMSBR.getListOfMSBRs} value=#{inputSuggestMSBR.msbr} autoComplete=false / h:commandButton/ /h:form /f:view I don't get any errors, but in a browser no suggestions are shown. Also state saving method is set to server, i tried with client, but it still doesn't work. Does anybody can help me. Thanks. -- View this message in context:
Re: SelectOneMenu Enums in items var possible?
Hi, i am doing it always via using tomahawks t:selectItems: t:selectOneMenu value=#{bean.type} t:selectItems var=enum value=#{otherBean.enumValues} itemLabel=#{enum.name} itemValue=#{enum.type}/ /t:selectOneMenu and the otherBean: public List getEnumValues() { return Arrays.asList(EnumClass.values()); } Hope this helps, cheers - Gerald On 8/7/07, Wolf Benz [EMAIL PROTECTED] wrote: I just discover there is a class called java.lang.EnumSet. Sandeep - have you tried that already? -Wolf On 8/7/07, sandeep gururaj [EMAIL PROTECTED] wrote: Well, I haven't been lucky! If it is possible, do let me know so that I can re-factor my code. ~Sandeep -Original Message- From: Wolf Benz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 5:40 PM To: MyFaces Discussion Subject: SelectOneMenu Enums in items var possible? Hi List, Does anyone know whether you can load an Enum into a SelectOneMenu's items variable? So smth like: h:selectOneMenu value=#{jsfBean.beanVar.varOfEnumType} f:selectItem itemLabel=#{labels.choose_one} itemValue=choose_one/ f:selectItems value=#{jsfBean.model.EnumClass} / /h:selectOneMenu -Wolf -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: InputSuggestAjax: 'Ajax' is undefined
Hi, which version of sandbox are you using? Also, it seems you have two tomahwak versions in your classpath: tomahawk-1.1.6.jar, tomahawk.jar? cheers, Gerald On 7/16/07, M M [EMAIL PROTECTED] wrote: Hello When I deploy a simple application using InputSuggestAjax and try to watch then my Browser (IE 6) is giving me the error: 'Ajax' is undefined Tomahawk and Sandbox seem to render the site correctly. There is no error thrown in the tomcat log files. I have checked google for similar issues but found only few (actually 1) similar case (but without a solution) Any advices ? Tomcat 5.5.12 myfaces-impl-1.1.5.jar tomahawk-1.1.6.jar tomahawk.jar sandbox.jar Java 5.0 Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: how to stop Ajax poll call through java script
Hi, you mean the poll from sandbox` ppr? This is currently not possible, only starting the poll after a button click. But i need exactly the same usecase and will implement this scenario the next week. cheers, Gerald On 7/12/07, Arvind Pandey [EMAIL PROTECTED] wrote: Hi all, On click one link I want to stop ajax poll (which polls the server after a specified time interval). Any idea? thanks regards Arvind Pandey -Original Message- From: ayan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 1:18 PM To: users@myfaces.apache.org Subject: How to send parameters when navigating a list using t:dataScroller Got a problem on sending parameter when navigating to a datatable using the t:dataScroller component. My case was that, I have a search button that triggers population of data to the datatable, but when I click the navigation link of dataScroller, my search criteria was not submitted, I notice that it only submits its own parameter, (org.apache.catalina.util.ParameterMap) {form_SUBMIT=[Ljava.lang.String;@1317bfb, form:scroll=[Ljava.lang.String;@1c2a074, form:_idcl=[Ljava.lang.String;@b427c1} How would I be able to add my own request parameter when dataScroller navigation is triggered? Tried to google it and search it in this forum but I haven't found an answer. Pls. help. -- View this message in context: http://www.nabble.com/How-to-send-parameters-when-navigating-a-list-using-t% 3AdataScroller-tf4066575.html#a11555195 Sent from the MyFaces - Users mailing list archive at Nabble.com. Disclaimer: The information contained in this e-mail and attachments if any are privileged and confidential and are intended for the individual(s) or entity(ies) named in this e-mail. If the reader or recipient is not the intended recipient, or employee or agent responsible for delivering to the intended recipient, you are hereby notified that dissemination, distribution or copying of this communication or attachments thereof is strictly prohibited. IF YOU RECEIVE this communication in error, please immediately notify the sender and return the original message. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: t:message inside pprPanelGroup
Hi, i think this is the case because the {0}, {1} values are in request scope only. Try to store the values somewhere, e.g. t:saveState with model value bindings. cheers, Gerald On 7/12/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote: Disregard what i said. It's something strange with detailFormat. {1} is empty, and {0} is alaways id: message here's my code: t:outputLabel for=password1 value=#{m.password1} / t:inputText id=password1 value=#{registerUser.password1} onkeyup=submit(this); valueChangeListener=#{registerUser.password1Changed} f:validateLength minimum=6 / /t:inputText s:pprPanelGroup partialTriggers=mainForm:password1,mainForm:password2 id=pprPassword2 t:message id=password2Msg for=password1 showSummary=false showDetail=true forceSpan=true replaceIdWithLabel=true/ /s:pprPanelGroup On 12/07/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote: If I put a t:message inside s:pprPanelGroup and it get's displayed as partial rendering, then messages' atttributes are all ignored, and defaults are used. If it is displayed after full page submit everything works fine. Is there any solution for this behaviour? regards, -- Michał Stawicki [EMAIL PROTECTED] http://stawicki.jasliska.pl -- Michał Stawicki [EMAIL PROTECTED] http://stawicki.jasliska.pl -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [ANNOUNCEMENT] New sandbox component -- roundedDiv
Very nice stuff! The component is already deployed: http://example.irian.at/example-sandbox-20070709/home.jsf cheers, Gerald On 7/8/07, Andrew Robinson [EMAIL PROTECTED] wrote: New component available in SVN called roundedDiv. See the documentation for more information: http://myfaces.apache.org/sandbox/roundedDiv.html TinyURL: http://tinyurl.com/38nrk9 -Andrew -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
ExcelExport with t:columns (CrossDataTable)
Hi, any experience with s:excelExport in combination with t:columns? It doesn`t seem to work to me. In the exported excel-file, any t:columns are ignored. All common t:column elements are exported very fine. cheers, Gerald -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: s:inputSuggestAjax - how this tag works with database values
You have to filter out the AssetMgmtSystem elements for the right ones, which begin with A or B. You can do this in the Hibernate query directly (better one) or in the iteration afterwards. cheers, Gerald On 7/2/07, bansi [EMAIL PROTECTED] wrote: Hi Gerald As suggested i wrote the code below for autoComplete to display suggested items based on user input. For example if user keys in A or B into the textbox, then suggested items starting with either A or B only should be displayed. public List autocomplete(String suggest) { String pref = suggest; ArrayList result = new ArrayList(); Iterator iterator = getAssetList().iterator(); // getAssetList() retrives Asset List from database while (iterator.hasNext()) { AssetMgmtSystem elem = (AssetMgmtSystem) iterator.next(); if ((elem != null elem.getName().toLowerCase().indexOf(pref.toLowerCase()) == 0) || .equals(pref)) { result.add(elem); } } return result; } It still displays incorrectly suggested items. Any pointers/suggestions will be highly appreciated Gerald Müllan wrote: Hi, the expected behaviour should be completely done in the suggestedItemsMethod. So it is the developers responsibility to return the list from the db-call, in your case getAssetMgmtSystems(). The call to well fitting suggestions must occur there. cheers, Gerald On 7/2/07, bansi [EMAIL PROTECTED] wrote: I am using Facelets 1.1.2 Tomahawk Sandbox 1.1.5 . The s:inputSuggestAjax component example as mentioned in MyFaces wiki works perfectly fine for me. When i tried using it against the values retrieved from Database, it appends the prefix to the values from database. For example if i key in A in the textbox , then suggested words shows all the database values appended with A . i.e. AWashington ANewYork ANew Jersey The expected behaviour is it should only those values from Database which starts with A or starts with any character that is keyed into textbox Here is the snippet JSF page: h:outputText value=Enter your state : / s:inputSuggestAjax suggestedItemsMethod=#{test.getSuggestedWords} value=#{test.currentValue} / Backing Bean: public List doGetStateList(String keyword){ List stateList = new ArrayList(); ListAssetMgmtSystem assetMgmtSystem = new ArrayListAssetMgmtSystem(); assetMgmtSystem = deviceManager.getAssetMgmtSystems(); // calls database to retrieve state List for (int i=0; i assetMgmtSystem.size(); i++) { AssetMgmtSystem asset = (AssetMgmtSystem) assetMgmtSystem.get(i); Long assetId = asset.getId(); String assetName = asset.getName(); keyword = assetName.substring(0,1); stateList.add(keyword + assetName); } return stateList; } Any pointers/suggestions will be highly appreciated Regards Bansi -- View this message in context: http://www.nabble.com/s%3AinputSuggestAjax---how-this-tag-works-with-database-values-tf4009641.html#a11387032 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- View this message in context: http://www.nabble.com/s%3AinputSuggestAjax---how-this-tag-works-with-database-values-tf4009641.html#a11397388 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: inputSuggestAjax bug?
Hi, it`s completely up to you what you are returning back from the suggestedItemsMethod. On the example page we are not filtering out some values, just returning the same every time. So, when you give back the same list at every time, then the same pop-up list will apear every time. You have to do a kind of filtering in the orm-query or in the method itself. cheers, Gerald On 7/3/07, Joe Ersinghaus [EMAIL PROTECTED] wrote: After working through the inputSuggestAjax code off the Irian site (the suggest with label/value functionality to be specific), I managed to get this working in my app with my data. But I then realized that the suggest aspect wasn't working. No matter what you start to type in the control, the entire list of data shows up in the drop down list. Went back the the test page at the Irian site and same thing happens there. Typing in det should list only the single detroit entry, and not the rest of the data fields. Is this a bug? Or have misunderstood the way an input suggest control should work? Thanks, Joe -- View this message in context: http://www.nabble.com/inputSuggestAjax-bug--tf4016400.html#a11406647 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: s:inputSuggestAjax - how this tag works with database values
Hi, the expected behaviour should be completely done in the suggestedItemsMethod. So it is the developers responsibility to return the list from the db-call, in your case getAssetMgmtSystems(). The call to well fitting suggestions must occur there. cheers, Gerald On 7/2/07, bansi [EMAIL PROTECTED] wrote: I am using Facelets 1.1.2 Tomahawk Sandbox 1.1.5 . The s:inputSuggestAjax component example as mentioned in MyFaces wiki works perfectly fine for me. When i tried using it against the values retrieved from Database, it appends the prefix to the values from database. For example if i key in A in the textbox , then suggested words shows all the database values appended with A . i.e. AWashington ANewYork ANew Jersey The expected behaviour is it should only those values from Database which starts with A or starts with any character that is keyed into textbox Here is the snippet JSF page: h:outputText value=Enter your state : / s:inputSuggestAjax suggestedItemsMethod=#{test.getSuggestedWords} value=#{test.currentValue} / Backing Bean: public List doGetStateList(String keyword){ List stateList = new ArrayList(); ListAssetMgmtSystem assetMgmtSystem = new ArrayListAssetMgmtSystem(); assetMgmtSystem = deviceManager.getAssetMgmtSystems(); // calls database to retrieve state List for (int i=0; i assetMgmtSystem.size(); i++) { AssetMgmtSystem asset = (AssetMgmtSystem) assetMgmtSystem.get(i); Long assetId = asset.getId(); String assetName = asset.getName(); keyword = assetName.substring(0,1); stateList.add(keyword + assetName); } return stateList; } Any pointers/suggestions will be highly appreciated Regards Bansi -- View this message in context: http://www.nabble.com/s%3AinputSuggestAjax---how-this-tag-works-with-database-values-tf4009641.html#a11387032 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: I just cannot make InputSuggestAjax component work
Hi, can you have a look at the response code after typing in? There must be something like [[asd][asd],[bcd][bcd]]... Or is it empty? If you have firebug installed just turn it on and you can see easily the http traffic. Any js-errors on the page? cheers, Gerald On 6/9/07, Madhav Bhargava [EMAIL PROTECTED] wrote: Hi All, Environment: Weblogic 8.1 JDK 1.4.2.x Myfaces 1.1.5 Tomahawk 1.1.5 Tomahawk sandbox 1.1.5 I have taken the lead from the example at http://www.irian.at which is again present at http://wiki.apache.org/myfaces/InputSuggestAjax Instead of an Address bean i have a KeyValuePair bean. This bean has 2 properties - key (String), value (Object). I want to display the values in the drop down that would come up when the user starts typing something and then the selected bean will then be passed to the model. Using the key field of the selected bean i will then compose a query for the database. JSP code: s:inputSuggestAjax suggestedItemsMethod=#{ajaxsuggest.suggest} itemLabelMethod=#{ajaxsuggest.getLabel} value=#{ajaxsuggest.selectedBean } f:converter converterId=inputSuggestAjaxConverter/ /s:inputSuggestAjax Methods in Controller/Managed bean for inputSuggestAjax component: public List suggest(String prefix) { List matchingList = new ArrayList(); Iterator iter = items.iterator(); while(iter.hasNext()) { KeyValuePair bean = (KeyValuePair)iter.next(); if (bean.getValue().toString().startsWith(prefix)) { matchingList.add(bean); } } return matchingList; } public String getLabel(Object selectedBean) { if (null != selectedBean selectedBean instanceof KeyValuePair) { Iterator iter = items.iterator(); while(iter.hasNext()) { KeyValuePair bean = (KeyValuePair)iter.next(); if (bean.getKey().equals(((KeyValuePair)selectedBean).getKey())) { return (String)bean.getValue(); } } } return null; } Just to test i am populating the items List in the controller itself: public InputSuggestAjaxController() { items = new ArrayList(); items.add(new KeyValuePair(1, India)); items.add(new KeyValuePair(2, US)); items.add(new KeyValuePair(3, Russia)); items.add(new KeyValuePair(4, China)); items.add(new KeyValuePair(5, Indonasia)); items.add(new KeyValuePair(6, Iran)); items.add(new KeyValuePair(7, Uganda)); } Custom Converter for this component: public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { if (null != value) { KeyValuePair bean = new KeyValuePair(); bean.setKey(value); return bean; } return null; } public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { if (null != value) { if (value instanceof KeyValuePair) { return (String)((KeyValuePair)value).getValue(); }else if (value instanceof String) { return value.toString(); } } return null; } public class KeyValuePair implements Serializable { private String key = null; private Object value = null; //getter and setter methods... } The problem is that when the user starts typing nothing is suggested even though the control goes to suggest method and a list is created properly. getLabel method gets called and even the method in the converter gets called. But somehow it does not show up. Browser that i am using is IE 6 Any help in this regard will be greatly appreciated. Regards, Madhav -- When I tell the truth, it is not for the sake of convincing those who do not know it, but for the sake of defending those that do -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Transfer Object in JSF, Spring, and Hibernate
Hi, we are using a so called UserType to achieve a mapping between Java objects and the SQL stuff. You are also using hibernate, so have a look at the org.hibernate.usertype.UserType interface and it`s implementations. If you need an example mapping between boolean values and 'Y' or 'N', mail me directly i can send you the corresponding class. cheers, Gerald On 6/7/07, Caroline Jen [EMAIL PROTECTED] wrote: The application on which I am working deploys the JavaServer Faces, Spring and Hibernate frameworks. We are going to use the transfer object to move data between J2EE tiers from the front end to the back end and vice versa. In addition, data types may need to be converted -- At the front end, the type of the data that are entered by users may not match that in the database table. For example, checkboxes may be marked or left blank by users. The type of the checkboxes is boolean in the JSF backing bean. However, we have either Y or N for the corresponding field in the database table. The JSF backing bean holds data as well as controller functionality. Of course, the transfer object holds data only. With regard to class properties, Is the transfer object an exact copy of the JSF backing bean? And at which tier the data are converted to match their correspoding types in the database tables? We also have the data objects which are exact representation of database tables. Thanks for your advices. Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: aliasBean
Hi, the alias is only accessible in jsp-content embedded inside the aliasBean. cheers, Gerald On 5/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Can i access alias bean ONLY in nested content inside aliasBean tag, or it's accessible everywhere in jsp after it's declaration ? I'm using tiles , so i want declare aliasBean in body in and in footer use h:commandButton actionListener=# {aliasName.save}/ My all beans implement save method(via inheritance) Thanks -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Sandbox integration
Hi, there is nothing special when using sandbox in comparison with using tomahawk. The problem seems to be a different one, are there any two sandbox versions in the classpath? Try to empty your deployment dir, maybe a caching problem. cheers, Gerald On 5/13/07, Frozone [EMAIL PROTECTED] wrote: Hi Newsgroup, I just wanted to start a new MyFaces project in which I wanted to use some nice effects. I need the tableSuggestAjax and some PPR which is integrated in the sandbox component. Now I really got some problems integrating sandbox to my project. I already downloaded myFaces-Core 1.1.5 and Tomahawk 1.1.5. These two things work fine without any changes in the web.xml. Now when I want to integrate the sanbox component (tomahawk-sandbox-1.1.5-SNAPSHOT) I get an error: You are using the MyFaces-package : tomahawk-sandbox in different versions; Is there any tutorial how to integrate the sandbox component? Or what do I have to do to get it working? Thanks in advance! Cliff -- View this message in context: http://www.nabble.com/Sandbox-integration-tf3734795.html#a10454211 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Sandbox integration
You have to configure the ExtensionsFilter the proper way, like it is described under: http://myfaces.apache.org/tomahawk/extensionsFilter.html No special requirements for tableSuggestAjax. Gerald On 5/13/07, Frozone [EMAIL PROTECTED] wrote: Ah, thanks for the hint! I had the javadoc also included in my classpath. Removed it and now it works fine. Can you briefly tell me what extension filters I have to register in order to use the sandbox tableSuggestAjax? Thanks once again in advance! Cliff Gerald Müllan wrote: Hi, there is nothing special when using sandbox in comparison with using tomahawk. The problem seems to be a different one, are there any two sandbox versions in the classpath? Try to empty your deployment dir, maybe a caching problem. cheers, Gerald On 5/13/07, Frozone [EMAIL PROTECTED] wrote: Hi Newsgroup, I just wanted to start a new MyFaces project in which I wanted to use some nice effects. I need the tableSuggestAjax and some PPR which is integrated in the sandbox component. Now I really got some problems integrating sandbox to my project. I already downloaded myFaces-Core 1.1.5 and Tomahawk 1.1.5. These two things work fine without any changes in the web.xml. Now when I want to integrate the sanbox component (tomahawk-sandbox-1.1.5-SNAPSHOT) I get an error: You are using the MyFaces-package : tomahawk-sandbox in different versions; Is there any tutorial how to integrate the sandbox component? Or what do I have to do to get it working? Thanks in advance! Cliff -- View this message in context: http://www.nabble.com/Sandbox-integration-tf3734795.html#a10454211 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- View this message in context: http://www.nabble.com/Sandbox-integration-tf3734795.html#a10458413 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Message rendered twice
Hi, you can also set showDetail=false and showSummary=true in the corresponding tag. So, you affect the displaying purpose directly in the view, maybe little bit more elegant. cheers, Gerald On 5/9/07, Rudi Steiner [EMAIL PROTECTED] wrote: Hi, I show the messages on the page like this: h:messages showDetail=true/ Gerald, you are right. If I show the messages with h:messages/, the message is shown just once, so if the detail is not set explicitly on the message-object, the message is also rendered for the detail. Setting up the message in the backingBean like this: FacesMessage message = new FacesMessage(Please select a bid on page 1); message.setDetail(); resolves the problem. Thank you for your help, Rudi Has anyone an idea On 5/8/07, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, looks like summary and details is rendered the same. What is your messages or message tag about? cheers, Gerald On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hm, I once had a similar issue when I was using a ADF Faces/Trinidad component with built-in message display in addition to an explicit message(s) component. What does your page look like? Hello, I'm implementing a wizard-like sequence of pages. The problem is, that the user dosn't have to fill out the pages sequentialy and can save the entered information at every point in time and restart to fill in the forms in another session. The problem I have is, that I have to validate some constraints before saving. So for example, when the user clicks on save on page 3, I have to check if he has entered one field on page 1. To do this, I implemented the method public String saveTemp() in my backingBean, as an action for my commandButton. In this method I do the following: public String saveTemp(){ //selectedBid is bound to a inputText on Page 1 if(selectedBid == null || selectedBid.trim().equals()){ FacesContext context = FacesContext.getCurrentInstance(); FacesMessage message = new FacesMessage(Please select a bid on page 1); context.addMessage(null, message); //context.addMessage(, message); return null; } //continue to save the information entered } Everything works fine so far and the message is shown on the page the user is coming from but the message is shown two times: Please select a bid on page 1 Please select a bid on page 1 Has anybody an idea? Thank you in advance, Rudi -- 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: No suggestions with Sandbox inputSuggestAjax
Hi, How old is the sandbox-version of your jar? I don`t know about any issues currently. Try to call your method getSuggestedItems in both of the cases - view and managed bean code, instead of simply suggestedItems. Maybe that`s the problem. Api and impl are little bit old, but should not matter.. cheers, Gerald On 5/8/07, Erik Govaers [EMAIL PROTECTED] wrote: Hello, I'm trying my hand at a very simple s:inputSuggestAjax example based on the example at http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf. I get an input field, but when I start typing I get no suggestions since my backing bean 'suggestedItems' method is never called. I'm using server-side saving, but switching to client-side makes no difference. I've looked at a lot of the inputSuggestAjax related issues in the mailing lists, but found no solution yet. My guess is that is has either something to do with the fact that I'm using MyFaces 1.1.3 or with the fact that the Shale/Clay ValidatorInputRenderer is overwriting the InputSuggestAjax Renderer (something I noticed just now). Here's my jsp = %@ page session=false contentType=text/html;charset=utf-8% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://myfaces.apache.org/sandbox; prefix=s% html head meta HTTP-EQUIV=Content-Type CONTENT=text/html;charset=UTF-8 / titleInputSuggestAjax Test/title link rel=stylesheet type=text/css href=%= request.getContextPath()%/css/basic.css / /head body f:view h:form h:panelGrid columns=2 h:outputText value=Select style=padding-right:3em;/ s:inputSuggestAjax id=inputSuggestAjaxTest charset=utf-8 required=true value=#{newRegistrationPage.code} style=width:250px; suggestedItemsMethod=#{newRegistrationPage.suggestedItems}/ /h:panelGrid /h:form /f:view /body /html Method signature public List suggestedItems(String keyword); Libraries = myfaces-api-1.1.3.jar myfaces-impl-1.1.3.jar tomahawk-1.1.5.jar tomahawk-sandbox-1.1.5-SNAPSHOT.jar -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Message rendered twice
Hi, looks like summary and details is rendered the same. What is your messages or message tag about? cheers, Gerald On 5/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hm, I once had a similar issue when I was using a ADF Faces/Trinidad component with built-in message display in addition to an explicit message(s) component. What does your page look like? Hello, I'm implementing a wizard-like sequence of pages. The problem is, that the user dosn't have to fill out the pages sequentialy and can save the entered information at every point in time and restart to fill in the forms in another session. The problem I have is, that I have to validate some constraints before saving. So for example, when the user clicks on save on page 3, I have to check if he has entered one field on page 1. To do this, I implemented the method public String saveTemp() in my backingBean, as an action for my commandButton. In this method I do the following: public String saveTemp(){ //selectedBid is bound to a inputText on Page 1 if(selectedBid == null || selectedBid.trim().equals()){ FacesContext context = FacesContext.getCurrentInstance(); FacesMessage message = new FacesMessage(Please select a bid on page 1); context.addMessage(null, message); //context.addMessage(, message); return null; } //continue to save the information entered } Everything works fine so far and the message is shown on the page the user is coming from but the message is shown two times: Please select a bid on page 1 Please select a bid on page 1 Has anybody an idea? Thank you in advance, Rudi -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: DataTable with filtering option - presentation-wise
No, if you are working with the daily builds you got at least the newest one. The null-reference is really strange since filteringTable itself seems to work and it already uses the dojo.widget namespace. Can you try to have a look into firebug or some other js-debugger, if there has any widget been created through the dojo environment, maybe with some other reference name? It must be located somewhere in the globally js object pool (dojo object). cheers, Gerald On 5/4/07, Shane Petroff [EMAIL PROTECTED] wrote: Gerald Müllan wrote: Which version of tomahawk are you using? Same results with 1.1.5 and 1.1.5-SNAPSHOT. Do I need something newer than the daily builds? -- Shane On 5/3/07, Shane Petroff [EMAIL PROTECTED] wrote: Gerald Müllan wrote: have you considered to use s:filterTable from sandbox? ... http://example.irian.at/example-sandbox-20070502/filterTable.jsf (derailing the thread slightly) Thanks for the reference, but I would love some help to get FilterTable working. I've copied/pasted the example code into a page of mine, and the java code into the backing bean. Everything renders fine, and the table is sortable, but the function dojo.widget.byId returns null, so the filter functions do not work. I've tried using dojo.widget.byId on other named components, but it always seems to fail. Is there something that needs to be configured or initialized before byId can work? I'm using tomahawk sandbox 1.1.6 snapshot jar alongside the 1.1.5 release. The only difference I can see in the page is that I've nested the FilterTable inside a form. The page is attached below. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% %@ taglib uri=http://myfaces.apache.org/sandbox; prefix=s% f:loadBundle basename=mytResource var=bundle/ f:view html head title h:outputText value=#{bundle.PickSectionTitle}/ /title link rel=stylesheet type=text/css href=%= request.getContextPath() %/stylesheet.css/ script type=text/javascript function manufacturerFilter(name){ return (name.charAt(0) = 'M' name.charAt(0) = 'Z'); } /script /head body class=page-background h:form h:panelGrid headerClass=page-header styleClass=panel columns=1 cellpadding=5 h:panelGrid headerClass=page-header styleClass=panel columns=1 cellpadding=5 align=right h:commandLink action=#{pickSectionBean.logout} value=#{bundle.Logout}/ /h:panelGrid %-- Header --% f:facet name=header h:outputText value=#{pickSectionBean.headerValue}/ /f:facet h:messages globalOnly=true styleClass=errors/ h:commandButton id=startActionListener value=#{bundle.Home} action=#{pickSectionBean.onHome} styleClass=button/ f:verbatim input type=button value=Show only manufacturers between M and Z onclick=dojo.widget.byId('filterTbl').setFilter('manufacturer', manufacturerFilter); / input type=button value=Clear Filters onclick=alert(dojo.widget.byId('filterTbl'));dojo.widget.byId('filterTbl').clearFilters() / /f:verbatim s:filterTable id=filterTbl var=car value=#{pickSectionBean.cars} s:sortableColumn field=id dataType=Number text=Id h:outputText value=#{car.id} / /s:sortableColumn s:sortableColumn field=manufacturer text=Manufacturer h:outputText value=#{car.manufacturer} / /s:sortableColumn s:sortableColumn field=model text=Model h:outputText value=#{car.model} / /s:sortableColumn /s:filterTable /h:panelGrid /h:form /body /html /f:view -- Shane -- Shane -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: DataTable with filtering option - presentation-wise
Which version of tomahawk are you using? On 5/3/07, Shane Petroff [EMAIL PROTECTED] wrote: Gerald Müllan wrote: have you considered to use s:filterTable from sandbox? ... http://example.irian.at/example-sandbox-20070502/filterTable.jsf (derailing the thread slightly) Thanks for the reference, but I would love some help to get FilterTable working. I've copied/pasted the example code into a page of mine, and the java code into the backing bean. Everything renders fine, and the table is sortable, but the function dojo.widget.byId returns null, so the filter functions do not work. I've tried using dojo.widget.byId on other named components, but it always seems to fail. Is there something that needs to be configured or initialized before byId can work? I'm using tomahawk sandbox 1.1.6 snapshot jar alongside the 1.1.5 release. The only difference I can see in the page is that I've nested the FilterTable inside a form. The page is attached below. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% %@ taglib uri=http://myfaces.apache.org/sandbox; prefix=s% f:loadBundle basename=mytResource var=bundle/ f:view html head title h:outputText value=#{bundle.PickSectionTitle}/ /title link rel=stylesheet type=text/css href=%= request.getContextPath() %/stylesheet.css/ script type=text/javascript function manufacturerFilter(name){ return (name.charAt(0) = 'M' name.charAt(0) = 'Z'); } /script /head body class=page-background h:form h:panelGrid headerClass=page-header styleClass=panel columns=1 cellpadding=5 h:panelGrid headerClass=page-header styleClass=panel columns=1 cellpadding=5 align=right h:commandLink action=#{pickSectionBean.logout} value=#{bundle.Logout}/ /h:panelGrid %-- Header --% f:facet name=header h:outputText value=#{pickSectionBean.headerValue}/ /f:facet h:messages globalOnly=true styleClass=errors/ h:commandButton id=startActionListener value=#{bundle.Home} action=#{pickSectionBean.onHome} styleClass=button/ f:verbatim input type=button value=Show only manufacturers between M and Z onclick=dojo.widget.byId('filterTbl').setFilter('manufacturer', manufacturerFilter); / input type=button value=Clear Filters onclick=alert(dojo.widget.byId('filterTbl'));dojo.widget.byId('filterTbl').clearFilters() / /f:verbatim s:filterTable id=filterTbl var=car value=#{pickSectionBean.cars} s:sortableColumn field=id dataType=Number text=Id h:outputText value=#{car.id} / /s:sortableColumn s:sortableColumn field=manufacturer text=Manufacturer h:outputText value=#{car.manufacturer} / /s:sortableColumn s:sortableColumn field=model text=Model h:outputText value=#{car.model} / /s:sortableColumn /s:filterTable /h:panelGrid /h:form /body /html /f:view -- Shane -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: DataTable with filtering option - presentation-wise
Hi, have you considered to use s:filterTable from sandbox? I don`t know if it fullfills all of your requirements, but have a look: http://example.irian.at/example-sandbox-20070502/filterTable.jsf cheers, Gerald On 5/2/07, Novaree [EMAIL PROTECTED] wrote: Hi group, I need to create a DataTable with a filtering option. I have the backing bean ready and everything works, so now it's time to work on the front end. This is a layout I need: [Header row] [Filtering option (by start/end date, category, etc)] [rows of data] As mentioned, I'm intending to use a Tomahawk DataTable, but I'm lost when it comes to putting the filtering option layer between the header and the data section of the table. Any suggestions? Best regards, Casper Helenius, Denmark -- View this message in context: http://www.nabble.com/DataTable-with-filtering-option---presentation-wise-tf3679238.html#a10281799 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: s:ajaxChildComboBox for three levels
Hi, you should be able to achieve this usecase with ppr from sandbox. See the link for further details: http://example.irian.at/example-sandbox-20070428/pprPanelGroupOnChange.jsf This is the more generic way to do this. The ajaxChildComboBox will be deprecated and not supported in the near future. Also the latest nightly gives some errors when using this component within IE. cheers, Gerald On 4/28/07, Dave [EMAIL PROTECTED] wrote: Can s:ajaxChildComboBox be used for 3 level relationship, for example, country, state and city? I have not tried this, but I doubt it. I am wondering if this component should be extended to 3 levels which is very common. Thanks! h:selectOneMenu value=#{ajaxChildComboBoxBean.selectedCountry} id=countryCombo f:selectItems value=#{ajaxChildComboBoxBean.countries}/ /h:selectOneMenu s:ajaxChildComboBox value=#{ajaxChildComboBoxBean.selectedState} parentComboBox=countryCombo id=stateCombo ajaxSelectItemsMethod=#{ajaxChildComboBoxBean.getStatesOfSelectedCountry} f:selectItems value=#{ajaxChildComboBoxBean.states}/ /s:ajaxChildComboBox s:ajaxChildComboBox value=#{ajaxChildComboBoxBean.selectedCity} parentComboBox=stateCombo ajaxSelectItemsMethod=#{ajaxChildComboBoxBean.getCitiesOfSelectedState} f:selectItems value=#{ajaxChildComboBoxBean.cities}/ /s:ajaxChildComboBox Ahhh...imagining that irresistible new car smell? Check out new cars at Yahoo! Autos. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: tomahawk tabbed pane problem
Hi, there is the tabContentStyleClass attribute of panelTabbedPane component. Try to set a corresponding width style in the stylesheet. This should affect all tab-bodies. Alternatively, you can try to play around with putting a div or table element around the content and set their width. cheers, Gerald On 4/24/07, Nanabolu, Bhvaharan [EMAIL PROTECTED] wrote: Can anyone please provide me a solution. Thanks, Bhavaharan From: Nanabolu, Bhvaharan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 6:23 PM To: users@myfaces.apache.org Subject: tomahawk tabbed pane problem Hi JSF Experts, Can Someone please help me with this issue. I am using tomahawk Tabbed Pane in an application and I am having a problem in setting the size of tab itself.The size of the tab depends on the size of the elements which is included in its content. As each tab in my tabbed pane contains many elements, the size of the each tab is very large which I don't want to be. I tried to override the defaultStyles for tabbed pane by using my own style sheet but that did not reduced the size of the tab.Following is the style sheet class which I used .activeTab{ width: 30px !important; font-size: 100% !important; background-color: #FF !important; border-top: 2px solid #91A0CA !important; border-left: 2px solid #91A0CA !important; border-right: 2px solid #91A0CA !important; border-bottom: 1px none !important; padding: 2px !important; text-align: center !important; font-weight: bold !important; -moz-border-radius-topleft:20px ! important; -moz-border-radius-topright:20px! important; } Is there any way that I can make the size of the tabs to be fixed irrespective of the number of elements in each tab. I am using the following myfaces jars myfaces-api-1.1.6-SNAPSHOT.jar myfaces-impl-1.1.6-SNAPSHOT.jar tomahawk-1.1.5-SNAPSHOT.jar I am attaching the jsp in which the tabbed pane is being used and defaultStyles.css which the tabbed pane uses. defaultStyles.css table.myFaces_panelTabbedPane{ border-style: none; padding: 0; border-spacing: 0; empty-cells: show; } .myFaces_panelTabbedPane_activeHeaderCell{ border-top: 2px outset silver; border-right: 2px outset silver; border-bottom: 0px none; border-left: 2px outset silver; text-align: center; } .myFaces_panelTabbedPane_inactiveHeaderCell, .myFaces_panelTabbedPane_disabledHeaderCell{ border-top: 1px outset silver; border-right: 1px outset silver; border-bottom: 0px none; border-left: 1px outset silver; text-align: center; background-color: silver; } .myFaces_panelTabbedPane_activeHeaderCell input, .myFaces_panelTabbedPane_inactiveHeaderCell input, .myFaces_panelTabbedPane_disabledHeaderCell label{ border-style: none; width: 100%; } .myFaces_panelTabbedPane_activeHeaderCell input{ cursor: pointer; background-color: transparent !important; /* background-color: inherit; */ } .myFaces_panelTabbedPane_inactiveHeaderCell input{ cursor: pointer; background-color: silver; } .myFaces_panelTabbedPane_disabledHeaderCell label{ cursor: default; background-color: silver; } .myFaces_panelTabbedPane_emptyHeaderCell{ border-style: none; } .myFaces_panelTabbedPane_activeHeaderCell input:hover, .myFaces_panelTabbedPane_inactiveHeaderCell input:hover{ /* border-top: orange solid 2px; */ } .myFaces_panelTabbedPane_subHeaderCell{ height: 2px; font-size: 0; border-bottom: 0px none; } .myFaces_panelTabbedPane_subHeaderCell_active{ border-top: 0px none; } .myFaces_panelTabbedPane_subHeaderCell_inactive{ border-top: 2px outset silver; } .myFaces_panelTabbedPane_subHeaderCell_first{ border-left: 2px outset silver; } .myFaces_panelTabbedPane_subHeaderCell_last{ border-top: 2px outset silver; border-right: 2px outset silver; } .myFaces_panelTabbedPane_pane{ border-top: 0px none; border-right: 2px outset silver; border-bottom: 2px outset silver; border-left: 2px outset silver; padding: 10px; } layout1.jsp %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% html head /head body f:view h:form id=layoutFrm t:panelTabbedPane t:panelTab label=Facility t:dataTable value=#{facilityHandler.facilities} var=facility id=facilityData cellpadding=0 cellspacing=0 width=100% border=0
Re: CSS and jscookMenu
Hi, i have tried this one: .ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive { background-color: #908E8D; color:red; } .ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive { background-color: #908E8D; color:red; } The first applies to the main items (which are visible every time) in case of a hover event. The second one seems to be the same like yours (applied to all sub-items in case of a hover event). Both work fine to me in firefox, not tested in IE, but this should also work. cheers, Gerald On 4/17/07, Peter Dahm [EMAIL PROTECTED] wrote: Hi, I have a little problem with CSS and jscookMenu. The problem is, to change the font color for the hover function of MenuItem. The changes in the relvant theme.css for the MenuItem has no effect. For MainItem's everything is fine. I think it has something to do with the table definition of the submenu Here is a snapshot of the theme.css entries. .ThemeIEMenuItem,.ThemeIEMenuItemHover,.ThemeIEMenuItemActive { background-color:white; width: 200px; height: 2em; font-size: 18px; } .ThemeIEMenuItemHover,.ThemeIEMenuItemActive { color: red; } Does someone know something about this problem ??? Peter -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: CSS and jscookMenu
There is the attribute disabledStyleClass, this should help. On 4/17/07, Adrian Mitev [EMAIL PROTECTED] wrote: Is there a way to set different style when a cell of the menu is disabled? 2007/4/17, Gerald Müllan [EMAIL PROTECTED]: Hi, i have tried this one: .ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive { background-color: #908E8D; color:red; } .ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive { background-color: #908E8D; color:red; } The first applies to the main items (which are visible every time) in case of a hover event. The second one seems to be the same like yours (applied to all sub-items in case of a hover event). Both work fine to me in firefox, not tested in IE, but this should also work. cheers, Gerald On 4/17/07, Peter Dahm [EMAIL PROTECTED] wrote: Hi, I have a little problem with CSS and jscookMenu. The problem is, to change the font color for the hover function of MenuItem. The changes in the relvant theme.css for the MenuItem has no effect. For MainItem's everything is fine. I think it has something to do with the table definition of the submenu Here is a snapshot of the theme.css entries. .ThemeIEMenuItem,.ThemeIEMenuItemHover,.ThemeIEMenuItemActive { background-color:white; width: 200px; height: 2em; font-size: 18px; } .ThemeIEMenuItemHover,.ThemeIEMenuItemActive { color: red; } Does someone know something about this problem ??? Peter -- 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: CSS and jscookMenu
I am using latest stable MyFaces and Tomahawak versions (means 1.1.5). But it it`s long time ago that some changes to JsCookMenu have taken place. Have you tried it with overruling the color attribute with !important? Maybe there is some place in your stylesheet where you set the same color in case of a hover event. It`s strange, because the background does work. cheers, Gerald On 4/17/07, Peter Dahm [EMAIL PROTECTED] wrote: Hi, one more annotation. While moving the mouse over the menuitems the background color is changing. Only the text color does not become red peter -Ursprüngliche Nachricht- Von: Gerald Müllan [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. April 2007 10:41 An: MyFaces Discussion Betreff: Re: CSS and jscookMenu Hi, i have tried this one: .ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive { background-color: #908E8D; color:red; } .ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive { background-color: #908E8D; color:red; } The first applies to the main items (which are visible every time) in case of a hover event. The second one seems to be the same like yours (applied to all sub-items in case of a hover event). Both work fine to me in firefox, not tested in IE, but this should also work. cheers, Gerald On 4/17/07, Peter Dahm [EMAIL PROTECTED] wrote: Hi, I have a little problem with CSS and jscookMenu. The problem is, to change the font color for the hover function of MenuItem. The changes in the relvant theme.css for the MenuItem has no effect. For MainItem's everything is fine. I think it has something to do with the table definition of the submenu Here is a snapshot of the theme.css entries. .ThemeIEMenuItem,.ThemeIEMenuItemHover,.ThemeIEMenuItemActive { background-color:white; width: 200px; height: 2em; font-size: 18px; } .ThemeIEMenuItemHover,.ThemeIEMenuItemActive { color: red; } Does someone know something about this problem ??? Peter -- 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: CSS and jscookMenu
I know that you can also access a disabled input with input[disabled] in the stylesheet. You may try it with this approach in case of the jscookmenu. If the attribute is really ignored, you should file a new jira issue. cheers, Gerald On 4/17/07, Renzo Tomaselli [EMAIL PROTECTED] wrote: Gerald, I tried to apply disabledStyleClass to NavigationMenuItem in jscookMenu, no success. This attribute is simply ignored. Until now, I could not find any way to change appearance of disabled jscoookMenu items. The only choice left was to remove disabled items from the item composition, not what I wanted. -- Renzo Gerald Müllan wrote: There is the attribute disabledStyleClass, this should help. On 4/17/07, Adrian Mitev [EMAIL PROTECTED] wrote: Is there a way to set different style when a cell of the menu is disabled? 2007/4/17, Gerald Müllan [EMAIL PROTECTED]: Hi, i have tried this one: .ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive { background-color: #908E8D; color:red; } .ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive { background-color: #908E8D; color:red; } The first applies to the main items (which are visible every time) in case of a hover event. The second one seems to be the same like yours (applied to all sub-items in case of a hover event). Both work fine to me in firefox, not tested in IE, but this should also work. cheers, Gerald On 4/17/07, Peter Dahm [EMAIL PROTECTED] wrote: Hi, I have a little problem with CSS and jscookMenu. The problem is, to change the font color for the hover function of MenuItem. The changes in the relvant theme.css for the MenuItem has no effect. For MainItem's everything is fine. I think it has something to do with the table definition of the submenu Here is a snapshot of the theme.css entries. .ThemeIEMenuItem,.ThemeIEMenuItemHover,.ThemeIEMenuItemActive { background-color:white; width: 200px; height: 2em; font-size: 18px; } .ThemeIEMenuItemHover,.ThemeIEMenuItemActive { color: red; } Does someone know something about this problem ??? Peter -- 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: Integrating sandbox components with last stable version of myfaces
Hi, have a look under: http://people.apache.org/builds/myfaces/nightly There are no official releases of sandbox - only snapshot builds - since it works like a playground. Therefore it is not listed in the download releases section. cheers, Gerald On 4/16/07, Rudi Steiner [EMAIL PROTECTED] wrote: Hi Mike, thank you for your fast reply, but under this link I can't find something like sandbox.jar. Is this jar-File included in one of the jar-Files on this page? Rudi On 4/13/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Use Myfaces Core 1.1.5 and the Myfaces Tomahawk/Sandbox 1.1.5 release candidate found here: http://people.apache.org/builds/myfaces/tomahawk-1.1.5/ On 4/13/07, Rudi Steiner [EMAIL PROTECTED] wrote: Hello, I set up a new project with myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar and everything works fine so far. Non I added tomahawk-sandbox-1.1.5-SNAPSHOT.jar from the nightly builds to test some sandbox components. The problem is, that I can't use the sandbox component but get this instead: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoWidget Googleing around I found, that The dojo stuff was moved from sandbox to tom 3-4 weeks ago. So, the libraries should be found there. and realy, I found the class in the tomahawk-1.1.5-SNAPSHOT.jar. My problem is the following: I don't want to use snapshot-versions of the myfaces-impl just to use the sandbox components but I woul'd like to use the last stable versions of the myfaces- and tomahawk impl (myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar) plus the sandbox components (tomahawk-sandbox-1.1.5-SNAPSHOT.jar). Has anyone an idea, how I can get this combination up and running? Thank you, Rudi -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Integrating sandbox components with last stable version of myfaces
Yes, the last stable tomahwak version is 1.1.5 and you can not get any kind of last-stable-sandbox-release. So, if you take the sandbox-version above, in combination with the 1.1.5 releases you should be lucky without any NoClassDefFoundError. Tom 1.1.5 is released and declared as stable, no 1.1.5 snapshot anymore. cheers, Gerald On 4/16/07, Rudi Steiner [EMAIL PROTECTED] wrote: Hi Gerald, the problem is, that taking this version of sandbox, I get the error described above. My question was, where I can get a sanbox-version compatible with the last official release of myfaces-impl and tomahawk (myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar). best regards, Rudi On 4/16/07, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, have a look under: http://people.apache.org/builds/myfaces/nightly There are no official releases of sandbox - only snapshot builds - since it works like a playground. Therefore it is not listed in the download releases section. cheers, Gerald On 4/16/07, Rudi Steiner [EMAIL PROTECTED] wrote: Hi Mike, thank you for your fast reply, but under this link I can't find something like sandbox.jar. Is this jar-File included in one of the jar-Files on this page? Rudi On 4/13/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Use Myfaces Core 1.1.5 and the Myfaces Tomahawk/Sandbox 1.1.5 release candidate found here: http://people.apache.org/builds/myfaces/tomahawk-1.1.5/ On 4/13/07, Rudi Steiner [EMAIL PROTECTED] wrote: Hello, I set up a new project with myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar and everything works fine so far. Non I added tomahawk-sandbox-1.1.5-SNAPSHOT.jar from the nightly builds to test some sandbox components. The problem is, that I can't use the sandbox component but get this instead: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoWidget Googleing around I found, that The dojo stuff was moved from sandbox to tom 3-4 weeks ago. So, the libraries should be found there. and realy, I found the class in the tomahawk-1.1.5-SNAPSHOT.jar. My problem is the following: I don't want to use snapshot-versions of the myfaces-impl just to use the sandbox components but I woul'd like to use the last stable versions of the myfaces- and tomahawk impl (myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar) plus the sandbox components (tomahawk-sandbox-1.1.5-SNAPSHOT.jar). Has anyone an idea, how I can get this combination up and running? Thank you, Rudi -- 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: how link svg file with jsf component
Hi, maybe some path-related problem in order to access the file in your web-resource dir? cheers, Gerald On 4/16/07, mathias °ö° [EMAIL PROTECTED] wrote: hi david i checked the object tag and tested in a simple html file linked to svg file. and this is working. but the same is not running with the jsf web app. f:verbatim object data=http://../images/map.svg; width=500 height=500 type=image/svg+xml /object /f:verbatim which params must adjusted by a4j:mediaOutput component ? best regards mathias °ö° David Delbecq-2 wrote: firefow can load svg using object tag, so you should check the the object tag is correct and the the pointed svg file is at proper location. En l'instant précis du 12/04/07 16:10, mathias °ö° s'exprimait en ces termes: i have tested with f:verbatim: at browser (ie and firefox) i see only a grey frame. the browser can´t load the svg image. (if i start the svg image from my file browser it will open.) my next step i try with a4j:mediaOutput component , but im not sure which attribute i must set. a4j:mediaOutput element=object uriAttribute=href codetype=image/svg+xml codebase=test.svg / but this code-snapshot does not work. best regards David Delbecq-2 wrote: Indeed, now you say this, am not sure the tomahwak htmlTag component accepts attributes other than the default uioutput ones. maybe something along this? f:verbatim object data=test.svg type=image/svg+xml width=400 height=300 /object /f:verbatim In facelets i would simply make, without verbatim object data=#{someBean.someSvgUrl} type=image/svg+xml width=#{someBean.someSvgWidth} height=#{someBean.someSvgWidth} /object but won't work in JSP. Also the media tag of ajax4jsf is made to ouput 'media' in various tags (object, a, img, iframe), if you can afford an additionnal library... En l'instant précis du 12/04/07 10:40, mathias °ö° s'exprimait en ces termes: 2. use htmTag component t:htmlTag value=object f:attribute name=data value=Test.svg / f:attribute name=width value=500 / f:attribute name=height value=500 / f:attribute name=type value=image/svg+xml / /t:htmlTag but is does not work. how i handle htmlTag Attributes? best regards mathias °ö° David Delbecq-2 wrote: graphicImage renders a tag. Svgs are not supposed to be included with such tags. It's like trying to use a img tag to show a flash object. See here how to include svg in your page: http://wiki.svg.org/SVG_and_HTML When you have understand this, you can use either the ajx4jsf 'media' component or use the tomahawk 'htmlTag' component to render your object tag. Also don't forget to setup your mimetype in your web.xml for svg ressources. En l'instant précis du 11/04/07 16:14, mathias °ö° s'exprimait en ces termes: hi how link an extern svg-file with jsf component. with h:graphicImage url=http://www.***/file.svg; / it does not work. -- View this message in context: http://www.nabble.com/how-link-svg-file-with-jsf-component-tf3559628.html#a10013013 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error...Thanks Zdenek
Is any of the methods called during the ajax-request? cheers, Gerald On 4/5/07, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, please ask such kind of questions on the user list. cheers, Gerald On 4/5/07, Prashant Gaikwad [EMAIL PROTECTED] wrote: Hi Zdenek, Thanks for the response. DOJO error is gone. But another problem is my t:dataTable in the JSP is not refreshing with the latest updates in corresponding database. Below is the snippet. Please suggest how the view would be partially grgenreated. Thanks Prashant t:panelGrid s:pprPanelGroup id=periodicalUpdatedArea styleClass=general_font_datagrid periodicalUpdate=1000 t:dataTableid=data styleClass=scrollerTable,standardTable headerClass=standardTable_Header footerClass=standardTable_Header rowClasses=standardTable_Row1,standardTable_Row2 columnClasses=standardTable_Column,standardTable_ColumnCentered var=student preserveDataModel=false binding=#{Student.data} value=#{Student.dataModel.value} rows=#{Student.dataModel.rows} rowId=#{student.id} sortColumn=#{Student.dataModel.sortColumn} sortAscending=#{Student.dataModel.sortAscending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=studentid immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Student Id?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Student_id}/ /t:commandSortHeader /f:facet h:outputText value=#{student.id}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=name immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Student Name ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Name}/ /t:commandSortHeader /f:facet h:outputText value=#{student.name}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=grade immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Grade ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Grade}/ /t:commandSortHeader /f:facet h:outputText value=#{student.grade}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=topic_news immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Topic ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.topic}/ /t:commandSortHeader /f:facet h:outputText value=#{student.topic}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Priority}/ /f:facet h:outputText value=#{student.priority}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Comment_Can_update_only_your_own_comment}/ /f:facet t:inputTextarea cols=50 value=#{student.comments} /t:inputTextarea f:verbatimbr/br/f:verbatim /h:column /t:dataTable /s:pprPanelGroup /t:panelGrid -Original Message- From: Zdeněk Sochor [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 1:50 PM To: MyFaces Development Subject: Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error... Hi Prashant, Dojo is present in Tomahawk CORE 1.1.5 (and snapshot 1.1.6), NOT in 1.1.3. Download BOTH snapshots - Tomahawk CORE and sandbox to make it work. Regards, Zdenek Prashant Gaikwad napsal(a): Dear Developer friends, Need small help to resolve problem I am facing with tomahawk-sandbox-1.1.6-SNAPSHOT.jar. I downloaded above jar file from nightly build link. I want to implement
Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error...Thanks Zdenek
Hi, please ask such kind of questions on the user list. cheers, Gerald On 4/5/07, Prashant Gaikwad [EMAIL PROTECTED] wrote: Hi Zdenek, Thanks for the response. DOJO error is gone. But another problem is my t:dataTable in the JSP is not refreshing with the latest updates in corresponding database. Below is the snippet. Please suggest how the view would be partially grgenreated. Thanks Prashant t:panelGrid s:pprPanelGroup id=periodicalUpdatedArea styleClass=general_font_datagrid periodicalUpdate=1000 t:dataTableid=data styleClass=scrollerTable,standardTable headerClass=standardTable_Header footerClass=standardTable_Header rowClasses=standardTable_Row1,standardTable_Row2 columnClasses=standardTable_Column,standardTable_ColumnCentered var=student preserveDataModel=false binding=#{Student.data} value=#{Student.dataModel.value} rows=#{Student.dataModel.rows} rowId=#{student.id} sortColumn=#{Student.dataModel.sortColumn} sortAscending=#{Student.dataModel.sortAscending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=studentid immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Student Id?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Student_id}/ /t:commandSortHeader /f:facet h:outputText value=#{student.id}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=name immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Student Name ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Name}/ /t:commandSortHeader /f:facet h:outputText value=#{student.name}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=grade immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Grade ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Grade}/ /t:commandSortHeader /f:facet h:outputText value=#{student.grade}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=topic_news immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Topic ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.topic}/ /t:commandSortHeader /f:facet h:outputText value=#{student.topic}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Priority}/ /f:facet h:outputText value=#{student.priority}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Comment_Can_update_only_your_own_comment}/ /f:facet t:inputTextarea cols=50 value=#{student.comments} /t:inputTextarea f:verbatimbr/br/f:verbatim /h:column /t:dataTable /s:pprPanelGroup /t:panelGrid -Original Message- From: Zdeněk Sochor [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 1:50 PM To: MyFaces Development Subject: Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error... Hi Prashant, Dojo is present in Tomahawk CORE 1.1.5 (and snapshot 1.1.6), NOT in 1.1.3. Download BOTH snapshots - Tomahawk CORE and sandbox to make it work. Regards, Zdenek Prashant Gaikwad napsal(a): Dear Developer friends, Need small help to resolve problem I am facing with tomahawk-sandbox-1.1.6-SNAPSHOT.jar. I downloaded above jar file from nightly build link. I want to implement s:pprPanelGroup for asynchronous (AJAX) refresh of t:dataTable. On implementing sample application from http://www.irian.at/myfaces.jsf. I am getting following error message. I have no clue what its searching for
Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error...Thanks Zdenek
Well, the new release is coming out soon. cheers, Gerald On 4/5/07, Prashant Gaikwad [EMAIL PROTECTED] wrote: Good question !!! From: Alexey Kakunin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 5:33 PM To: MyFaces Discussion Subject: Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error...Thanks Zdenek Hm, MyFaces Tomahawk-1.1.6-SNAPSHOT is already available. What about Tomahawk-1.1.5 stable? Does anybody has any info? 2007/4/5, Gerald Müllan [EMAIL PROTECTED]: Is any of the methods called during the ajax-request? cheers, Gerald On 4/5/07, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, please ask such kind of questions on the user list. cheers, Gerald On 4/5/07, Prashant Gaikwad [EMAIL PROTECTED] wrote: Hi Zdenek, Thanks for the response. DOJO error is gone. But another problem is my t:dataTable in the JSP is not refreshing with the latest updates in corresponding database. Below is the snippet. Please suggest how the view would be partially grgenreated. Thanks Prashant t:panelGrid s:pprPanelGroup id=periodicalUpdatedArea styleClass=general_font_datagrid periodicalUpdate=1000 t:dataTableid=data styleClass=scrollerTable,standardTable headerClass=standardTable_Header footerClass=standardTable_Header rowClasses=standardTable_Row1,standardTable_Row2 columnClasses=standardTable_Column,standardTable_ColumnCentered var=student preserveDataModel=false binding=#{Student.data} value=#{Student.dataModel.value} rows=#{ Student.dataModel.rows} rowId=#{student.id} sortColumn=#{ Student.dataModel.sortColumn} sortAscending=#{Student.dataModel.sortAscending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=studentid immediate=false arrow=true actionListener=#{ Student.actionListener} onclick=if (!confirm(' Sort by Student Id?')) return false styleClass=standardTable_SortHeader h:outputText value=#{ bundles.Student_id}/ /t:commandSortHeader /f:facet h:outputText value=#{ student.id}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=name immediate=false arrow=true actionListener=#{ Student.actionListener} onclick=if (!confirm(' Sort by Student Name ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{ bundles.Name}/ /t:commandSortHeader /f:facet h:outputText value=#{student.name }/ /h:column h:column f:facet name=header t:commandSortHeader columnName=grade immediate=false arrow=true actionListener=#{ Student.actionListener} onclick=if (!confirm(' Sort by Grade ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{ bundles.Grade}/ /t:commandSortHeader /f:facet h:outputText value=#{student.grade}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=topic_news immediate=false arrow=true actionListener=#{ Student.actionListener} onclick=if (!confirm(' Sort by Topic ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{ bundles.topic}/ /t:commandSortHeader /f:facet h:outputText value=#{student.topic}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Priority}/ /f:facet h:outputText value=#{student.priority}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Comment_Can_update_only_your_own_comment}/ /f:facet t:inputTextarea cols=50 value=#{student.comments} /t:inputTextarea f:verbatimbr/br/f:verbatim /h:column /t:dataTable /s:pprPanelGroup /t:panelGrid -Original Message- From: Zdeněk Sochor [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 1:50 PM To: MyFaces Development Subject: Re: tomahawk-sandbox-1.1.6-SNAPSHOT-- DOJO error... Hi Prashant, Dojo is present in Tomahawk CORE 1.1.5 (and snapshot 1.1.6), NOT in 1.1.3. Download BOTH snapshots - Tomahawk CORE and sandbox to make it work. Regards, Zdenek Prashant Gaikwad napsal(a): Dear Developer friends
Re: HTML not rendred for t:dataTable within s:pprPanelGroup
Which tags are not rendered out in particular? If you are using resource bundles you have to take the ones from sandbox which are available in every phase of the lifecycle. On 4/5/07, Prashant Gaikwad [EMAIL PROTECTED] wrote: Hello All, I am facing problem is my t:dataTable in the JSP which is not refreshing with the latest updates in corresponding database. I wont to periodically refresh t:dataTable using AJAX s:pprPanelGroup Below is the snippet. Please suggest how the view would be partially regenerated. The datable is getting populated but HTML is not getting rendered. I think I am missing some ID definition as below is are warnings thrown on console. +++Inside getDataModel Apr 5, 2007 5:16:56 PM org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin WARNING: Attribute 'for' of label component with id _idJsp0:_idJsp160:_idJsp164 is not defined Apr 5, 2007 5:16:56 PM org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin WARNING: Attribute 'for' of label component with id _idJsp0:_idJsp160:_idJsp166 is not defined Apr 5, 2007 5:16:56 PM org.apache.myfaces.renderkit.html.HtmlLabelRenderer encodeBegin WARNING: Attribute 'for' of label component with id _idJsp0:_idJsp160:_idJsp170 is not defined Apr 5, 2007 5:16:56 PM org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase renderChildren WARNING: PanelGrid _idJsp0:_idJsp160:_idJsp165 has not enough children. Child count should be a multiple of the columns attribute. +++Inside getDataModel +++Inside getDataModel +++Inside getDataModel Please help me in resolving this. Thanks Prashant t:panelGrid s:pprPanelGroup id=periodicalUpdatedArea styleClass=general_font_datagrid periodicalUpdate=1000 t:dataTableid=data styleClass=scrollerTable,standardTable headerClass=standardTable_Header footerClass=standardTable_Header rowClasses=standardTable_Row1,standardTable_Row2 columnClasses=standardTable_Column,standardTable_ColumnCentered var=student preserveDataModel=false binding=#{Student.data} value=#{Student.dataModel.value} rows=#{Student.dataModel.rows} rowId=#{student.id} sortColumn=#{Student.dataModel.sortColumn} sortAscending=#{Student.dataModel.sortAscending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=studentid immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Student Id?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Student_id}/ /t:commandSortHeader /f:facet h:outputText value=#{student.id}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=name immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Student Name ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Name}/ /t:commandSortHeader /f:facet h:outputText value=#{student.name}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=grade immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Grade ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.Grade}/ /t:commandSortHeader /f:facet h:outputText value=#{student.grade}/ /h:column h:column f:facet name=header t:commandSortHeader columnName=topic_news immediate=false arrow=true actionListener=#{Student.actionListener} onclick=if (!confirm(' Sort by Topic ?')) return false styleClass=standardTable_SortHeader h:outputText value=#{bundles.topic}/ /t:commandSortHeader /f:facet h:outputText value=#{student.topic}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Priority}/ /f:facet h:outputText value=#{student.priority}/ /h:column h:column f:facet name=header h:outputText value=#{bundles.Comment_Can_update_only_your_own_comment}/ /f:facet t:inputTextarea cols=50 value=#{student.comments} /t:inputTextarea f:verbatimbr/br/f:verbatim /h:column
Re: Making sure no user input is allowed whilst server is processing...[ajax for jsf]
Hi, i take the following approach in order to get a freeze-screen during a (native, non-ajax) request-response-cycle: add the attribute onclick=waitDuringRequestDialogVar.show(); to your command component which raises the submit. s:modalDialog dialogId=waitDuringRequestDialog dialogVar=waitDuringRequestDialogVar dialogAttr=bgColor='white' bgOpacity='0.5' toggle='fade' toggleDuration='250' hiderIds= styleClass=modalDialog h:panelGrid styleClass=modalDialogProgressBox centerAlign h:outputText value=#{text.modalDialogText_requestPending} styleClass=modalDialogText/ /h:panelGrid /s:modalDialog which in turn makes the whole screen freezing as long as the new page is rendered. I didn`t try it out on my own, but in case of an ajax-request i think you need to call the waitDuringRequestDialogVar.show(); just before the xmlhttprequest-call. cheers, Gerald On 3/30/07, Julien Martin [EMAIL PROTECTED] wrote: Hello all, I am wondering if it is possible to make sure that no user input is possible/allowed whilst the server is processing in other words when the startText of the a4j:status is displayed. Do I need some sort of a modal component? Any best practice one of you could advise? How can I disable all of the screen whilst the ajax request is processing?? Thanks in advance, Julien. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: RE : inputSuggestAjax: value vs. label, existing entries vs. new ones
Hi, the component should be sufficient documented here: (along with the label/value-approach) http://wiki.apache.org/myfaces/InputSuggestAjax How would the component make a difference between a value resulting from a selected entry (label) and a new value added in purpose (creation of a new label). You can easily check for the submitted value in the corresponding converter. See also in the reference above. cheers, Gerald On 3/28/07, Jerome Iffrig (Europe) [EMAIL PROTECTED] wrote: Thanks lots Mike for your answer, What you are describing is what I am going currently, I was hoping for a more elegant way ... How about the value/label aspect? It does not seem to be documented anywhere. De: Mike Kienenberger [mailto:[EMAIL PROTECTED] Date: mer. 28/03/2007 20:30 À: MyFaces Discussion Objet : Re: inputSuggestAjax: value vs. label, existing entries vs. new ones Seems like you'd just check that when the value is submitted. See if value is contained in the list provided by suggestedItemsMethod. If true, link. If false, create. You could either handle this in the setValue() method or in the action that submitted the page. On 3/28/07, Jerome Iffrig (Europe) [EMAIL PROTECTED] wrote: Using the inputSuggestAjax, I get autocompletion, brilliant. Now, is there any way to add in the response whether the sent value is effectively one of the auto-suggested values or something else, new (thus not yet in the autocomplete list)? I was imagining maybe an hidden field set to 0 or 1 … Furthermore, it seems to me that this component can work with label-value lists, if it is the case, what happens when selecting one of the suggested entry is clear to me (the value is returned instead of the label), but what once again, if the user enters something new? How would the component make a difference between a value resulting from a selected entry (label) and a new value added in purpose (creation of a new label). The bottom line is that it is important in my use case that the user could either select something from the suggested list (so that I can link onto the PK in the underlying DBMS) OR enter any value of his choice (so that I can create a new entry in the underlying DBMS). Thanks for your lights. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Customizing JSCookMenu
Hi, you have to specify the styleLocation attribute and following copy the default theme.css file of jsCookMenu component to the ThemeOffice directory of your css resource dir. E.g. if styleLocation=/css/jscookmenu/ then you have /css/jscookmenu/ThemeOffice/theme.css Just change all the locators as you wish. cheers, Gerald On 3/20/07, Alberto Chiang [EMAIL PROTECTED] wrote: Hi everyone! I`m having a hard time trying to customise the JSCookMenu component, i need to add a new css to the JSCookMenu but I don't know how to do… I already saw a solution that was created by Simon Kitching , but I didn`t made it work… Can anyone help me? Thanks in advance! Alberto Chiang. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Problem with t:selectItems
Hi, sure, you only have to initialize the selectedItems Array with the corresponding Goups/Ids which have to be checked. cheers, Gerald On 3/15/07, Wiebke Henrici [EMAIL PROTECTED] wrote: Hi, thank you very much for this answer. It works now :-) Now I have one more question: When I display the checkboxes, I would like to have the groups, my object is associated with, checked. Right now, I read simply all groups from the database for the checkboxes, but it would be nice if the user could see which groups already belong to the object. Is there any possibility to do this? Wiebke -Ursprüngliche Nachricht- Von: Gerald Müllan [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 14. März 2007 16:55 An: MyFaces Discussion Betreff: Re: Problem with t:selectItems Hi, this component is a nice counterpart to returning back a list of SelectItems in your model bean code. So, what you actually need is a label and a value for each entry in the list, which in turn is exactly the same as filling a list of SelectItems. You are right with your first try when writing itemValue=#{Group.id}. The itemValue must be a unique identifier for mapping the value to a group object after the response in order to know which entry (or entries) has (have) been choosen. So, the expected type given in the value field (selectedItems in your case) has to be the same as the itemValue type. E.g. Group.id is a Long, so selectedItems has to be of type Long[]. In case of a SelectOne component it would be simply a Long. Just generate setters and getters for the value field, and this should do the trick. Hope this helps, cheers - Gerald On 3/14/07, Wiebke Henrici [EMAIL PROTECTED] wrote: Hi, I want to use t:selectItems within a t:selectManyCheckbox. My problem is that I always get a validation error saying that the value is not valid. My JSP: t:selectManyCheckbox id=sensor_access value=#{sensorBacker.selectedItems} layout=pageDirection layoutWidth=3 t:selectItems value=#{sensorBacker.groups} var=Group itemLabel=#{Group.name} itemValue=#{Group.id} / /t:selectManyCheckbox The definition of sensorBacker.selectedItems and sensorBacker.groups: private CollectionGroupBean groups; private ArrayListGroupBean selectedItems = new ArrayListGroupBean(); When I load my JSP, I fill groups with: groups = remoteReader.readAllGroups(); This works alright, there is one checkbox per group. I am not really sure what to use as itemValue in the t:selectItems. I tried with Group, this didn't work either and gave the same error. I tried with Group.name, this gave no validation error but a ClassCastException in my backing when I tried to do a loop like that: for (GroupBean group: selectedItems){ (some debugging output here) } Can anyone tell me what kind of value has to be there for itemValue? Or what else am I doing wrong? Wiebke -- 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: Help !!! myfaces tomahawk JSF datatable component problem with Spring Web Flow...
Hi, which ajax-support are you using; ajax4jsf, or something other? The problem should be more concerned to the combination of dataTable and the ajax-mechanism. cheers, Gerald On 3/15/07, Alex Tian [EMAIL PROTECTED] wrote: Hi everyone, I'm a newbie to both Spring web flow and Javaserver faces, recently I've encounted a problem with Myfaces Tomahawk JSF datatable component problem with SWF. I was trying to use Tomahawk's datatable component with AJAX-powered auto sorting and pagination. When page's been loaded, the table with the first page's data is dislplayed, but when I tried to click some links(e.g. fastforward or page number links) on this component, nothing happened... Has anyone tried to integrate Myfaces datatable components with Spring web flow ? Any help would be appreciated... View this message in context: Help !!! myfaces tomahawk JSF datatable component problem with Spring Web Flow... Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tomahawk release plans?
Hi, on the dev-list there is an actual discussion about the release. It should hopefully occur within the next 2 weeks. cheers, Gerald On 3/13/07, GUILLEMOT Simon [EMAIL PROTECTED] wrote: I'm also interested to known when the next release is planned. More next month or more next week :) Thx, -Message d'origine- De : Ronald Johnson [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 mars 2007 10:26 À : users@myfaces.apache.org Objet : Tomahawk release plans? Hi, I could not find any roadmap for the Tomahawk versions 1.1.4 / 1.1.5. When will these be released? cheers This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Regarding sandbox's s:inputSuggestAjax
s:focus should also be available in older versions of sandbox, to my mind it stays there for a long time. But if you can live with latest tomahawk and sandbox, take these both libs. cheers, Gerald On 3/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, In which version of Sandbox the s:focus tag is available? Regards, Basha From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: Wednesday, March 07, 2007 7:11 PM To: MyFaces Discussion Subject: Re: Regarding sandbox's s:inputSuggestAjax Hi, see http://myfaces.apache.org/sandbox/tlddoc/s/focus.html Regards, Volker 2007/3/7, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, In my form I have one sandbox's input suggest Ajax filed and next submit button. When the page was displayed I want to focus the cursor to the sandbox's input suggest Ajax filed. Is there any way to do like that? If any then please let me know. Regards, Basha The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: JSF - New window to confirm delete
Hi, did you have a look at our sandbox component modalDialog? http://example.irian.at/example-sandbox-20070313/dojo/dojoDialog.jsf It works very well with a confirmation-cancel usecase. cheers, Gerald On 3/12/07, edney imme [EMAIL PROTECTED] wrote: Hallo, I have a windown, were I need to open another windown, like a popup windown. And in that windown, I will use to ask to the user if he wants to confirm delete the item, or cancel this operation. Detail: I can't use javascript popup window, it must be a new window, with 2 buttons: Ok and Cancel. Did anibody did something like that before ? Or has any idea of how I can do it ? I alredy do some similar using Struts, but never with JSF. Thanks for atention. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: FW: Tomahawk SelectItems
No, I am sure it is in since heavy using it in a current application which uses latest tom-snapshot. Are you using the ones from http://people.apache.org/builds/myfaces/nightly/ ? cheers, Gerald On 3/13/07, Mark Breman [EMAIL PROTECTED] wrote: It looks like the t:selectItems tag is missing in the tag library in the latest nightly build tomahawk-1.1.5-SNAPSHOT.jar. Can someone please confirm this? -Oorspronkelijk bericht- Van: Simon Kitching [mailto:[EMAIL PROTECTED] Verzonden: woensdag 7 maart 2007 21:23 Aan: MyFaces Discussion Onderwerp: Re: FW: Tomahawk SelectItems No, it's not in 1.1.3. However it is in 1.1.5-snapshot. If you're referring to this documentation, then it clearly says that it is built from 1.1.5-snapshot: http://myfaces.apache.org/tomahawk/apidocs/index.html Regards, Simon Cash, Jamie wrote: Where is the tomahawk SelectItems class? It is listed in the tomahawk documentation as being here: org.apache.myfaces.custom.selectitems.UISelectItems but this class doesn't exist in either version 1.1.2 or 1.1.3 of tomahawk. The tag t:selectItems is not recognised either. I hope someone can help. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: automatically open modalDialog
Hi, you have to make sure that the dialog is instantiated before you call dialogVar.show(); I guess that the reference points to null. cheers, Gerald On 3/9/07, simon.s [EMAIL PROTECTED] wrote: Hello! I have a s:moadalDialog, that I want to be opened when the page is loaded. OnLoad does not function. Simon -- View this message in context: http://www.nabble.com/automatically-open-modalDialog-tf3374844.html#a9391689 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [TOMAHAWK] inputSuggestAjax
Hi, if i got you correctly the same works to me on: http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf I step into the first suggest-input, highlight a value from the list and once it is highlighted i can tab out to the next input. If it works on this page, is must also work on any select-menu page combined with suggestAjax components. Or do i got something wrong? To the second issue; You are choosing one value from the list, a few moments after typing in. So why you want to avoid such a behaviour? Thats not really an issue; You can only restrict the length of the pop-up-list.. cheers, Gerald On 3/7/07, Beelen, Marco [EMAIL PROTECTED] wrote: Hello, In my application I'm using the inputSuggestAjax-component from Tomahawk. There are two minor inconvienances with this component, which I would like to address. I'm not sure whether to report them here or to the DoJo-toolkit, but since I'm coding using the tomahawk-component, I will start here. On some form I have several h:selectOneMenu components aligned underneath each other. Most of my selectboxes have just a few options, but one has about 1700 and for that one I'm using the inputSuggestAjax-component. That component is about half way through the list of selectboxes. As a user I can use TAB to switch from 1 input to another and use the up- and down-arrow for selecting the proper option. This stops when I reach the inputSuggestAjax-component, because after I made my selection with the keys the focus does not get set to the next input-field in the form. I have got to use the mousepointer to give focus to the next form element. The selected issue is about layout. If I open the options for the inputSuggestAjax-component all options get rendered in a layer on top of the selectboxes which are located underneath it in the form. That's how I expect it should be have. Once I made a selection, entered some other field and then want to change the selection of the inputSuggestAjax-component, I will click on the text-field. Using the backspace I remove the last part of the text until the component starts to suggest all alternatives, which start with the text still remaining in the input-text-field. Those alternatives will rendered in the background compared to the 'normal' selectboxes also present in the form. This makes is quite hard to read the values of the options and thus select the proper one. IE 6.0 is the target-browser. Does anybody recognise this behaviour and know how to get around these issues? With kind regards, Marco Beelen -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [TOMAHAWK] inputSuggestAjax
Which version of sandbox are you using? I wonder why the iframe should once be rendered underneath and once not. But however, this should be a dojo issue and hopefully you get more information on this on the dojo list. cheers, Gerald On 3/7/07, Beelen, Marco [EMAIL PROTECTED] wrote: Hello, To Gerard: You got me correctly on the first issue. I see now that on the example-page page the tabbing to the next component does work correctly, but in my application it does not. The behaviour of my browser is asif the code onBlur=window.focus() has been executed. If I press down to select the proper option and then press Tab to move on and press down again, the page scrolls vertically. On the second issue Volker got me correctly. I do want the component to give me the alternatives, but the selection lists is rendered underneath then the selectBoxes. ( like CSS with a lower z-index ) With kind regards, Marco -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: woensdag 7 maart 2007 16:12 To: MyFaces Discussion Subject: Re: [TOMAHAWK] inputSuggestAjax Hi Gerald, if i got him right, the selection list renders in a layer under the selectBoxes at the second time. I would guess the iframe is missing, or whatever dojo does to hide this IE bug. Regards, Volker 2007/3/7, Gerald Müllan [EMAIL PROTECTED]: Hi, if i got you correctly the same works to me on: http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf I step into the first suggest-input, highlight a value from the list and once it is highlighted i can tab out to the next input. If it works on this page, is must also work on any select-menu page combined with suggestAjax components. Or do i got something wrong? To the second issue; You are choosing one value from the list, a few moments after typing in. So why you want to avoid such a behaviour? Thats not really an issue; You can only restrict the length of the pop-up-list.. cheers, Gerald On 3/7/07, Beelen, Marco [EMAIL PROTECTED] wrote: Hello, In my application I'm using the inputSuggestAjax-component from Tomahawk. There are two minor inconvienances with this component, which I would like to address. I'm not sure whether to report them here or to the DoJo-toolkit, but since I'm coding using the tomahawk-component, I will start here. On some form I have several h:selectOneMenu components aligned underneath each other. Most of my selectboxes have just a few options, but one has about 1700 and for that one I'm using the inputSuggestAjax-component. That component is about half way through the list of selectboxes. As a user I can use TAB to switch from 1 input to another and use the up- and down-arrow for selecting the proper option. This stops when I reach the inputSuggestAjax-component, because after I made my selection with the keys the focus does not get set to the next input-field in the form. I have got to use the mousepointer to give focus to the next form element. The selected issue is about layout. If I open the options for the inputSuggestAjax-component all options get rendered in a layer on top of the selectboxes which are located underneath it in the form. That's how I expect it should be have. Once I made a selection, entered some other field and then want to change the selection of the inputSuggestAjax-component, I will click on the text-field. Using the backspace I remove the last part of the text until the component starts to suggest all alternatives, which start with the text still remaining in the input-text-field. Those alternatives will rendered in the background compared to the 'normal' selectboxes also present in the form. This makes is quite hard to read the values of the options and thus select the proper one. IE 6.0 is the target-browser. Does anybody recognise this behaviour and know how to get around these issues? With kind regards, Marco Beelen -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -- http://www.irian.at Your JSF
Re: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest
Hi, best is to use latest sandbox (as always with sandbox components). http://people.apache.org/builds/myfaces/nightly/ cheers, Gerald On 3/5/07, bansi [EMAIL PROTECTED] wrote: Hi Gerald Please suggest which latest version of sandbox tomhawk is safe to use to make inputAjaxSuggest component to work. I will appreciate if you could provide the link Regards Bansi Gerald Müllan wrote: Hi, i strongly suggest to use one of the latest sandbox builds if you want to use this component (you also have to use latest tomhawk). There have been many changes introduced and errors fixed the last weeks. cheers, Gerald On 2/27/07, bansi [EMAIL PROTECTED] wrote: Nope it doesnt work even with server side state saving mode Cagatay Civici wrote: Hi, How about server side state saving mode? Does it work with that? Cagatay On 2/26/07, bansi [EMAIL PROTECTED] wrote: Hi I am using Facelets 1.1.2 and tomahawk-sandbox-1.1.3-SNAPSHOT.jar, tomahawk-1.1.3.jar, MyFaces 1.1.4. The code works perfectly fine but when i enter values into textbox it doesnt show up suggested Items . Then i debugged the application with log4j Here is the jsp page h:outputText value=Enter your name : / s:inputSuggestAjax suggestedItemsMethod=#{test.getSuggestedWords} value=#{test.currentValue} / br / h:commandButton value=Submit/ br / h:outputText value=Your name is #{test.currentValue}/ Here is the backing bean public List getSuggestedWords(String keyword) { List list = new ArrayList(); list.add(keyword + Ahmed Saleh); list.add(keyword + Kahki); list.add(keyword + Kourany); list.add(keyword + Kiki); list.add(keyword + Saleh Abouetta); list.add(keyword + Hashim); return list; } public String getCurrentValue() { return currentValue; } public void setCurrentValue(String currentValue) { this.currentValue = currentValue; } //current selected value String currentValue; I have set the Save State to Client in web.xml Any pointers/suggestions will be highly appreciated Regards Bansi -- View this message in context: http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-component-s%3AinputAjaxSuggest-tf3295288.html#a9166912 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-component-s%3AinputAjaxSuggest-tf3295288.html#a9191498 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- View this message in context: http://www.nabble.com/Unable-to-display-Suggested-Items-using-Sandbox-component-s%3AinputAjaxSuggest-tf3295288.html#a9319232 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: selectItems not longer in tomahawk?
Hi, i am using this component quite often with current tomahawk snapshot, so it must be included in the latest jar; and it was for sure not moved to anywhere else. Which version are you using? If you take the latest builds or are waiting for the new tom-release you get t:selectItems. cheers, Gerald On 3/3/07, Jerome Iffrig (Europe) [EMAIL PROTECTED] wrote: Hi, I have been using the selectItems tag from tomahawk for a few weeks now, great. This morning I decided to cleanup my workspace and to use fresh jars from myfaces website, and my tomahawk selectItems does not seem to be recognised as a known tag anymore :-/ Any idea? Has it been moved elsewhere? t:selectItems value=#{aBean.GUICountries} var=item itemValue=#{item.country.code} itemLabel=#{item.name} / Thanks! -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces