Refreshing when downloading
Hi all,Is there any way at all to refresh a page when downloading a file. The problem I have is that in our app downloading a file changes the state of the interface, and because the save as window pops up the page is not refreshed and the interface is left in an incoherent state. Thanks for any suggestions,Emmanuel
Re: SelectItem style
Thanks for your help Nico, i'll extend the renderer for my purpose.For the render-type try the full class name of the renderer you're extending, i.e. org.apache.myfaces.renderkit.html.HtmlRadioRendererBase On 3/22/06, Krause, Nico [EMAIL PROTECTED] wrote: Hello Emmanuell, I did the following for my problem - so i assume you can do the same. 1. I made a new class (HtmlRadioRendererExtendedBase) from HtmlRadioRendererBase (see sources attached) 2. copied the sources of most of the methods and did some changes within them. 3. I made a new entry in faces-config.xml but here a small problem resists: I dunno what's the correct rendererType for my SelectOneRadio When writing in javax.faces.Menu, my dropdown field (also in the form) turns into a SelectOneRadio element and works great with switching the status by just clicking the label. But the meant SelectOneRadio does nothing. (and the Dropdown should stay a Dropdown;) So does anybody know and please help me, which renderer-type SelectOneRadio is? I seem to be some kind of blind just right now. :-( render-kit renderer component-familyjavax.faces.SelectOne/component-family renderer-type/renderer-type renderer-classwebfleet.regserv.jsfbean.renderer.HtmlRadioRendererExtendedBase/ renderer-class /renderer Nico /render-kit Nico Krause|Software Development| TomTom WORK | [EMAIL PROTECTED] | +49 (0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | www.tomtomwork.com Von: Emmanuel Jay [mailto: [EMAIL PROTECTED]] Gesendet: Dienstag, 21. März 2006 14:17An: MyFaces DiscussionBetreff: Re: SelectItem style hmmh ok, I guess the way is to create a custom renderer for it then.For your problem you can use a valueChangeListener for server side or the tomahawk jsValueChangeListener.Emmanuel On 3/21/06, Krause, Nico [EMAIL PROTECTED] wrote: have the same problem. I think we have to write our own selectItem which supports it. i want to use it in a radio button and i have another requirement: i like to click on the label of a select item so the radio button switches its status. Nico Nico Krause|Software Development| TomTom WORK | [EMAIL PROTECTED] | +49 (0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | www.tomtomwork.com Von: Emmanuel Jay [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 21. März 2006 11:25An: MyFaces DiscussionBetreff: SelectItem style Hi all,Isn't there any way to set the style of a selectItem?Thanks,Emmanuel
SelectItem style
Hi all,Isn't there any way to set the style of a selectItem?Thanks,Emmanuel
Re: SelectItem style
hmmh ok, I guess the way is to create a custom renderer for it then.For your problem you can use a valueChangeListener for server side or the tomahawk jsValueChangeListener.Emmanuel On 3/21/06, Krause, Nico [EMAIL PROTECTED] wrote: have the same problem. I think we have to write our own selectItem which supports it. i want to use it in a radio button and i have another requirement: i like to click on the label of a select item so the radio button switches its status. Nico Nico Krause|Software Development| TomTom WORK | [EMAIL PROTECTED] | +49 (0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | www.tomtomwork.com Von: Emmanuel Jay [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 21. März 2006 11:25An: MyFaces DiscussionBetreff: SelectItem style Hi all,Isn't there any way to set the style of a selectItem?Thanks,Emmanuel
AjaxAnywhere and DataScroller
Hi, I am having problems ajax-ifying the MyFaces dataScroller with AA. I basically get a JSerror of the type:'document.forms.mainForm.elements.mainForm:ds_9898989' is null or not an object. where ds_9898989 is the id of the dataScroller (links). Using AA the links don't seems to be rendered if the scroller is not rendered and then rendered at a later time... Has anybody encountered such a problem? Thanks for your help, Emmanuel
AjaxAnywhere and DataScroller
Hi, I am having problems ajax-ifying the MyFaces dataScroller with AA. I basically get a JSerror of the type:'document.forms.mainForm.elements.mainForm:ds_9898989' is null or not an object. where ds_9898989 is the id of the dataScroller (links). Using AA the links don't seems to be rendered if the scroller is not rendered and then rendered at a later time... Has anybody encountered such a problem? Thanks for your help, Emmanuel
Re: Ajaxanywhere
Hi Enrique,If you want you button or link action not to go through AA you have to return null for those in getZonesToReload.Hope that helps,EmmanuelOn 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Hi,Has anyone successfully used Ajaxanywhere inside a JSF page with a piece of the page being ajaxed and the other piece not? Let me give an example: imagine a JSF page where the selection of a combo box must force the refresh of another combo box. This zone is ajaxed using aa:zoneJSF. But buttons to save or go to another page in the navigation are not ajaxed. My problem is that the ajaxed zone works great, but then I have a button to save, and another one to navigate to another page, and those buttons don't seem to work. When I click them a request is sended, but none of their respective actions are executed, no error messages are shown (I have a global tag in the page). It seems like a request with an action returning simply null (not doing anything). My _javascript_ for Ajaxanywhere looks like this: ajaxAnywhere.getZonesToReload = function(url,submitButton) { if (submitButton.id.equals('myAjaxButton') return dataZone; } ajaxAnywhere.formName = mainForm; ajaxAnywhere.substituteFormSubmitFunction(); ajaxAnywhere.substituteSubmitButtonsBehavior(true); What am I doing wrong? How do you have to indicate non-ajaxed buttons in the getZonesToReload _javascript_ callback?
Re: Ajaxanywhere
I think the AA filter is totally by passed if the list of zones to reload is null (getZonesToReload returns null). In our app we mostly have links and returning null works fine. On 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Null? I remember some tests returning '' and getting a NullPointerException. What should be the reason why returning NULL should work?2006/2/21, Emmanuel Jay [EMAIL PROTECTED]:Hi Enrique, If you want you button or link action not to go through AA you have to return null for those in getZonesToReload. Hope that helps,EmmanuelOn 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Hi,Has anyone successfully used Ajaxanywhere inside a JSF page with a piece of the page being ajaxed and the other piece not? Let me give an example: imagine a JSF page where the selection of a combo box must force the refresh of another combo box. This zone is ajaxed using aa:zoneJSF. But buttons to save or go to another page in the navigation are not ajaxed. My problem is that the ajaxed zone works great, but then I have a button to save, and another one to navigate to another page, and those buttons don't seem to work. When I click them a request is sended, but none of their respective actions are executed, no error messages are shown (I have a global tag in the page). It seems like a request with an action returning simply null (not doing anything). My _javascript_ for Ajaxanywhere looks like this: ajaxAnywhere.getZonesToReload = function(url,submitButton) { if (submitButton.id.equals('myAjaxButton') return dataZone; } ajaxAnywhere.formName = mainForm; ajaxAnywhere.substituteFormSubmitFunction(); ajaxAnywhere.substituteSubmitButtonsBehavior(true); What am I doing wrong? How do you have to indicate non-ajaxed buttons in the getZonesToReload _javascript_ callback?
Re: Ajaxanywhere
Yes our app has ajaxed and non ajaxed part. For example some parts can't be ajaxed at all, such as the part using the fileUpload component (as well as any get operation for that matter).Yes i use the link id to determine whether it is an Ajax request or not. Basically for a link it is: var linkFrom = this.findForm().elements[mainForm:_link_hidden_].value;P.S. I have my own problem with AA, seems that the dataScroller doesn't work well with AA (if you ever come accross that case I'll be glad to hear if you manage to solve it!) On 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Umm, I see. So your application has JSF pages with parts ajaxed and other parts, as usual JSF requests, don't you? I'll try it and let you know whether it finally works or not.By the way, just for the sake of confirmation, is your JS code similar to mine? I mean, do you use the button or link ID to determine whether it's an ajaxed request or not? Thanks very much for your support.2006/2/21, Emmanuel Jay [EMAIL PROTECTED]: I think the AA filter is totally by passed if the list of zones to reload is null (getZonesToReload returns null). In our app we mostly have links and returning null works fine. On 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Null? I remember some tests returning '' and getting a NullPointerException. What should be the reason why returning NULL should work?2006/2/21, Emmanuel Jay [EMAIL PROTECTED]:Hi Enrique, If you want you button or link action not to go through AA you have to return null for those in getZonesToReload. Hope that helps,EmmanuelOn 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Hi,Has anyone successfully used Ajaxanywhere inside a JSF page with a piece of the page being ajaxed and the other piece not? Let me give an example: imagine a JSF page where the selection of a combo box must force the refresh of another combo box. This zone is ajaxed using aa:zoneJSF. But buttons to save or go to another page in the navigation are not ajaxed. My problem is that the ajaxed zone works great, but then I have a button to save, and another one to navigate to another page, and those buttons don't seem to work. When I click them a request is sended, but none of their respective actions are executed, no error messages are shown (I have a global tag in the page). It seems like a request with an action returning simply null (not doing anything). My _javascript_ for Ajaxanywhere looks like this: ajaxAnywhere.getZonesToReload = function(url,submitButton) { if (submitButton.id.equals('myAjaxButton') return dataZone; } ajaxAnywhere.formName = mainForm; ajaxAnywhere.substituteFormSubmitFunction(); ajaxAnywhere.substituteSubmitButtonsBehavior(true); What am I doing wrong? How do you have to indicate non-ajaxed buttons in the getZonesToReload _javascript_ callback?
Re: Ajaxanywhere
Not sure about client side saveState, we use server side saveHave a look on the AA forum, there might be something there...On 2/21/06, Enrico Municella [EMAIL PROTECTED] wrote:Hi, about ajaxanywhere i has a question.Is it savestate client really supported?Because i have problem with this.If i save state ofa variable, it does'nt update his value.Variable's value is always the first. Any idea ?Thanks.EnricoOn 2/21/06, Emmanuel Jay [EMAIL PROTECTED] wrote: Yes our app has ajaxed and non ajaxed part. For example some parts can't be ajaxed at all, such as the part using the fileUpload component (as well as any get operation for that matter). Yes i use the link id to determine whether it is an Ajax request or not. Basically for a link it is: var linkFrom = this.findForm().elements[mainForm:_link_hidden_].value; P.S. I have my own problem with AA, seems that the dataScroller doesn't work well with AA (if you ever come accross that case I'll be glad to hear if you manage to solve it!) On 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Umm, I see. So your application has JSF pages with parts ajaxed and other parts, as usual JSF requests, don't you? I'll try it and let you know whether it finally works or not. By the way, just for the sake of confirmation, is your JS code similar to mine? I mean, do you use the button or link ID to determine whether it's an ajaxed request or not? Thanks very much for your support. 2006/2/21, Emmanuel Jay [EMAIL PROTECTED]: I think the AA filter is totally by passed if the list of zones to reload is null (getZonesToReload returns null). In our app we mostly have links and returning null works fine. On 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote:Null? I remember some tests returning '' and getting a NullPointerException. What should be the reason why returning NULL should work? 2006/2/21, Emmanuel Jay [EMAIL PROTECTED]:Hi Enrique, If you want you button or link action not to go through AA you have to return null for those ingetZonesToReload. Hope that helps, Emmanuel On 2/21/06, Enrique Medina [EMAIL PROTECTED] wrote: Hi, Has anyone successfully used Ajaxanywhere inside a JSF page with a piece of the page being ajaxed and the other piece not? Let me give an example: imagine a JSF page where the selection of a combo box must force the refresh of another combo box. This zone is ajaxed using aa:zoneJSF. But buttons to save or go to another page in the navigation are not ajaxed. My problem is that the ajaxed zone works great, but then I have a button to save, and another one to navigate to another page, and those buttons don't seem to work. When I click them a request is sended, but none of their respective actions are executed, no error messages are shown (I have a global tag in the page). It seems like a request with an action returning simply null (not doing anything). My _javascript_ for Ajaxanywhere looks like this: ajaxAnywhere.getZonesToReload = function(url,submitButton) { if (submitButton.id.equals('myAjaxButton') return dataZone; } ajaxAnywhere.formName = mainForm; ajaxAnywhere.substituteFormSubmitFunction (); ajaxAnywhere.substituteSubmitButtonsBehavior(true); What am I doing wrong? How do you have to indicate non-ajaxed buttons in the getZonesToReload _javascript_ callback?
Re: ajax
AjaxAnywhere is at http://ajaxanywhere.sourceforge.net Emmanuel On 2/3/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: http://java.sun.com/blueprints/ajax.htmlMyFaces' Sandbox also contains ajax components -MatthiasOn 2/3/06, Dave [EMAIL PROTECTED] wrote: I ggled, but did not find good links about Ajax. can someone recommend article/tutorials to start with?I like to use Ajax with JSF. website for ajaxanywhere?ajaxanywhere.com/org does not work. Thanks. Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.--Matthias WessendorfZülpicher Wall 12, 23950674 Kölnhttp://www.wessendorf.net mwessendorf-at-gmail-dot-com
Re: PermGen Space problem???
We are using JBoss on windows, and we have been getting this for a long time. As far as we have seen it is due to multiple hotdeploy, and has not happened during our testing phase where the app is only deployed once... Emmanuel On 1/25/06, Frank Felix Debatin [EMAIL PROTECTED] wrote: For more information, see http://jira.jboss.com/jira/browse/JBAS-1319 The bug is related to the interaction of Tomcat and Log4J, if I understoodcorrectly.-Original Message-From: Thomas Gaudin [mailto:[EMAIL PROTECTED] ]Sent: Wednesday, January 25, 2006 12:25 PMTo: MyFaces DiscussionSubject: Re: PermGen Space problem???I have the same with tomcat only and it is a known issue.It does happen when you reload applications several times (the less memory on the box, the more often it occurs).Usually you don't reload webapps that often on production, if you do, bestis to restart tomcat.ThomasJulien Martin a écrit : Hello Mads, I am running Tomcat and not Jboss. (+ windows) How can I make sure this does not happen in the production environment? Thanks in advance, Julien. -- - Wanadoo vous informe que cete-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
Re: inputSuggestAjax and Rico Problem
Thanks for your replies. I had some double imports and i removed them but that didn't seem to fix the problem. Rico should now be using the Prototype from inputSuggestAjax, but i still geta js error: Rico.Effect is null or not an object or Rico.Effect.AcordionSizeis null or not an object (this is using our own accordeon). Now if i remove our accordeon panel, I get the following JS error: Ajax is undefined. Ajax is a var defined in prototype and the import from the MyFaces Prototype is in the page source... Any further suggestions? On 1/24/06, Werner Punz [EMAIL PROTECTED] wrote: Werner Punz schrieb: Volker Weber schrieb: Hi Werner, i had looked into myfaces accordeon panel, there is an other prototype version used than in inputSuggestAjax! My question was how AddResource would handle this? Regards. Volker Good Question, this seems like a bug to me... I have not tried both in combination yet, but I assume there will be the same version problem. My guess is that there is a conflict between the resource handling of both components which would result in a double import. I will have a look at it this evening.ok command back, the accordeon panel in the sandbox is too buggyto be used in production, this is one of some bugs this thing has.
inputSuggestAjax and Rico Problem
Hi all,I have seen some post going around about problems with inputSuggestAjax and Prototype (MYFaces-871 issue...).We have our own implementation of an accordeon panel which uses Rico (with Prototype 1.4.0 ). This works fine until we try to use the inputSuggestAjax. When doing that the accordeon panel doesn't work anymore and the inputSuggestAjax displays an disabled inputText next to it (and the suggestedItemsMethod isn't triggered). There seem to be some conflicting JS Have any of you encountered this problem...As we do not seem to be able to get a nighlty build for sandbox, I am not sure if the fix for MYFACES-871 would fix this problemThanks,Emmanuel
inputSuggestAjax and Rico Problem
Hi all, I have seen some post going around about problems with inputSuggestAjax and Prototype (MYFaces-871 issue...). We have our own implementation of an accordeon panel which uses Rico (with Prototype 1.4.0). This works fine until we try to use the inputSuggestAjax. When doing that the accordeon panel doesn't work anymore and the inputSuggestAjax displays an disabled inputText next to it (and the suggestedItemsMethod isn't triggered). There seem to be some conflicting JS Have any of you encountered this problem... As we do not seem to be able to get a nighlty build for sandbox, I am not sure if the fix for MYFACES-871 would fix this problem Thanks, Emmanuel
Re: dataScroller total page number (large data set)
Looking at the HtmlDataScroller code getPageCount assumes that the whole data model is loaded in memory to display the number of pages available. Anybody knows a work around this that will allow the setting of the pageCount independently of whether the model is fully loaded or not... On 1/17/06, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi all,We are trying the use the dataScroller for a large data set (I have read the threads about that). Our business logic is all there but we can't figure out how to set the total number of pages on the dataScroller without loading the whole model. Basically we just want to specify on the dataScroller that the total number of pages is X, and we want the user to be able to see that (then our logic handles the partial loading of the model)Any help is much appreciated, Emmanuel
Re: dataScroller total page number (large data set)
How do you make the dataScroller think it has all the data ready?Thanks,EmmanuelOn 1/18/06, Bruno Aranda [EMAIL PROTECTED] wrote:You can also check this entry [1] in the wiki. It might help! Regards,Bruno[1] http://wiki.apache.org/myfaces/WorkingWithLargeTables2006/1/18, Emmanuel Jay [EMAIL PROTECTED]: Looking at the HtmlDataScroller code getPageCount assumes that the whole data model is loaded in memory to display the number of pages available. Anybody knows a work around this that will allow the setting of the pageCount independently of whether the model is fully loaded or not... On 1/17/06, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi all, We are trying the use the dataScroller for a large data set (I have read the threads about that). Our business logic is all there but we can't figure out how to set the total number of pages on the dataScroller without loading the whole model. Basically we just want to specify on the dataScroller that the total number of pages is X, and we want the user to be able to see that (then our logic handles the partial loading of the model) Any help is much appreciated, Emmanuel
Re: dataScroller total page number (large data set)
Thanks a lot for your answers, I will do that...EmmanuelOn 1/18/06, Jesse Alexander (KBSA 21) [EMAIL PROTECTED] wrote:And if you want a behaviour similar to Goolge... then you would not need todo a costly select count(*), you just would assume a value...But basically getRowCount() makes thescroller think, the datamodel knowstheamount of data...hthAlexander -Original Message-From: Bruno Aranda [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 18, 2006 11:29 AMTo: MyFaces DiscussionSubject: Re: dataScroller total page number (large data set) You could implement a DataModel and in the public int getRowCount()execute a sql to count(*) all the data.Regards,Bruno2006/1/18, Emmanuel Jay [EMAIL PROTECTED]: How do you make the dataScroller think it has all the data ready? Thanks, Emmanuel On 1/18/06, Bruno Aranda [EMAIL PROTECTED] wrote: You can also check this entry [1] in the wiki. It might help! Regards, Bruno [1] http://wiki.apache.org/myfaces/WorkingWithLargeTables 2006/1/18, Emmanuel Jay [EMAIL PROTECTED]: Looking at the HtmlDataScroller code getPageCount assumes that the whole data model is loaded in memory to display the number of pagesavailable. Anybody knows a work around this that will allow the setting ofthe pageCount independently of whether the model is fully loaded or not... On 1/17/06, Emmanuel Jay [EMAIL PROTECTED] wrote:Hi all, We are trying the use the dataScroller for a large data set (Ihave read the threads about that). Our business logic is all there but wecan't figure out how to set the total number of pages on the dataScroller without loading the whole model. Basically we just want to specify on the dataScroller that thetotal number of pages is X, and we want the user to be able to see that (then our logic handles the partial loading of the model) Any help is much appreciated, Emmanuel
Re: dataScroller total page number (large data set)
Ok found it, overriding isRowAvailable and getRowData does the job...On 1/18/06, Emmanuel Jay [EMAIL PROTECTED] wrote:I have another question:Using a DataModel how can I just show the data the user sees (I know how to load it, this is not a problem), i.e. if I am on page 2 of the dataScroller the model only holds data for page 2 (not for page 1 and 2), and that is what the user sees On 1/18/06, Emmanuel Jay [EMAIL PROTECTED] wrote: Thanks a lot for your answers, I will do that...EmmanuelOn 1/18/06, Jesse Alexander (KBSA 21) [EMAIL PROTECTED] wrote:And if you want a behaviour similar to Goolge... then you would not need todo a costly select count(*), you just would assume a value...But basically getRowCount() makes thescroller think, the datamodel knowstheamount of data...hthAlexander -Original Message-From: Bruno Aranda [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 18, 2006 11:29 AM To: MyFaces DiscussionSubject: Re: dataScroller total page number (large data set) You could implement a DataModel and in the public int getRowCount()execute a sql to count(*) all the data.Regards,Bruno2006/1/18, Emmanuel Jay [EMAIL PROTECTED]: How do you make the dataScroller think it has all the data ready? Thanks, Emmanuel On 1/18/06, Bruno Aranda [EMAIL PROTECTED] wrote: You can also check this entry [1] in the wiki. It might help! Regards, Bruno [1] http://wiki.apache.org/myfaces/WorkingWithLargeTables 2006/1/18, Emmanuel Jay [EMAIL PROTECTED]: Looking at the HtmlDataScroller code getPageCount assumes that the whole data model is loaded in memory to display the number of pagesavailable. Anybody knows a work around this that will allow the setting ofthe pageCount independently of whether the model is fully loaded or not... On 1/17/06, Emmanuel Jay [EMAIL PROTECTED] wrote:Hi all, We are trying the use the dataScroller for a large data set (Ihave read the threads about that). Our business logic is all there but wecan't figure out how to set the total number of pages on the dataScroller without loading the whole model. Basically we just want to specify on the dataScroller that thetotal number of pages is X, and we want the user to be able to see that (then our logic handles the partial loading of the model) Any help is much appreciated, Emmanuel
dataScroller total page number (large data set)
Hi all,We are trying the use the dataScroller for a large data set (I have read the threads about that). Our business logic is all there but we can't figure out how to set the total number of pages on the dataScroller without loading the whole model. Basically we just want to specify on the dataScroller that the total number of pages is X, and we want the user to be able to see that (then our logic handles the partial loading of the model)Any help is much appreciated, Emmanuel
Re: Tree2 : Is it possible to remove the selected node dynamically?
At the moment I don't believe there is any easy way to do that other than subclassing TreeNodeBase and storing the parent in it when you generate the model. This is the way we do it. That way you have access to the parent node from the selected node a+ Emmanuel On 11/25/05, rahmoune patrick [EMAIL PROTECTED] wrote: Hi All, I can dynamically add a nodeon tree2 on the selected node (TreeNode) using the selectedNode.getChildren().add(...) methodbut I don't know how to remove a selected node properly. The first idea was to look for agetParent() method on treeNode but there is not.I hope thereis another way to do thisAny tips are welcome ? patrick Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici !
Re: Antwort: Re: URGENT! HELP ME! Tree2 state problem
Any chance this has made it to the nightly builds? Thanks, EmmanuelOn 9/23/05, Sean Schofield [EMAIL PROTECTED] wrote: Its a real PITA in JIRA (especially with all of the emails itsgenerating) to mark things resovled and then later close them.Thereis also no bulk close in JIRA.Otherwise the ideal thing to do wouldbe resovle everything and then close when we release. I'm working on the new emergency build right now but I will turn myattention to the latest tree2 stuff shortly.seanOn 9/23/05, Jon Travis [EMAIL PROTECTED] wrote: Can't vote on 564, as it's been closed. Isn't there some process by which bugs are verified as correctly fixing the problem before they are closed? -- Jon On Sep 23, 2005, at 8:07 AM, [EMAIL PROTECTED] wrote: The issue is still open ... so the patch was not applied yet. By the way, the tree2 is corruped by patch MYFACES-564: command components for a node do not work anymore. I already commented the issue but no response so far. Vote for MYFACES-568 and MYFACES-564maybe this speeds up a bit. Regards, Mathias Werlitz [EMAIL PROTECTED] schrieb am 23.09.2005 15:16:40:Hi, Anybody know if this patch has made it to the nightly build? Thanks, Emmanuel On 9/18/05, Bruno Aranda [EMAIL PROTECTED] wrote: I think that this is probable, Sean, out tree2 expert is now busy with the release, but when this is over I am sure he will take a look to the patch. To me that patch seems ok but I am not familiar with tree2. Regards, Bruno 2005/9/18, Emmanuel Jay [EMAIL PROTECTED]:ok, but in any case do you know if the patch will make it into the nightlybuild next week? Thanks, Emmanuel On 9/17/05, Sean Schofield [EMAIL PROTECTED] wrote: You can always build the jars yourself using the source code.Just do SVN checkout and apply the patch. Right now we are focused on the MyFaces 1.1 release on Monday. sean On 9/17/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi, I have the same problem as my app involves changing the tree2 all thetime, modifying node, changing the root... I really hope the patch will make it in the build soon! Cheers EmmanuelOn 9/16/05, Enrico Nicola Mirco [EMAIL PROTECTED] wrote: Hi, Thank you very much for your answer. I hope the patch will includes inthe nightly builds quickly. On 9/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You could set preserveToggle=false, but this is the generalproblem that the tree does not like dynamic changing tree structures, becausethe TreeState is not notified of the changes.I will propose a patch that will make the tree more tolerant to incompatible states, see MYFACES-568. [EMAIL PROTECTED] schrieb am 15.09.2005 14:56:15:Hi,I have a tree2 with showRootNode=true preserveToggle=true clientSideToggle=true. I describe my problem: 1) I open a JSP popup page with a tree2 (there are many nodesunder the root); 2) I expand some node; 3) I close popup; 4) I reopen the popup with another tree2 that, in this case, has only the root because the datamodel is empty. When I open the page the following error occurs: Encountered a node 0 with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded.) When I populate the TreeNode the new TreeNodeBase is create asLeaf, and then, if it has at least a child, I set Leaf=false. I tried to set Leaf=false but the problem is not resolved. I tried to use collapsePath(0) in the backbean but it doesn'twork. I think the tree attempts to restore the previous tree node state. Please everyone help me!!! Thank you
Re: Rif: jboss problem
We are using JBoss 4.0.2 and having no problem with JSF. We have even recently tried some Jenia4Faces component and all works fine... For the login we use a standard html page together with j_security_check and that works fine... Regards, EmmanuelOn 9/29/05, Bruno Aranda [EMAIL PROTECTED] wrote: We are using JBoss in out projects and we have not found any problemwith JSF. The only thing is that JBoss 4.0.3 comes with myfacesalready in it. So if you are using newer versions of myfaces you haveto replace the jars in JBoss with your new ones in the folder $JBOSS_HOME/server/all/deploy/jbossweb-tomcat55.sarRegards,Bruno2005/9/29, Werner Punz [EMAIL PROTECTED]: As soon as I have things up and running... I tried to integrate it via the embedded toolkit into a normal tomcat yesterday and failed miserably due to the integrated sql server not running, so I tried to go to a straig jboss today, the server looked to be excellent ( I have to admit I havent had a look at jboss for years being mostly happy with Tomcat) but the problem was to get jsf up and running, I have failed on two projects for now :-) Werner Dennis Byrne wrote: hands, I really would love to try jboss for their Seam stuff ;-) It looks to interesting to be bypassed. Please share the experience w/ the rest of us once you have done this Werner. Dennis Byrne
Error Handling
Hi, I keep having the following exception after I adding error handling pages in my web.xml (for example for a 404 error). I have not found any good answer to this problem so far so I was wondering if any of you has seen that before and managed to fix it... Cheers, Emmanuel java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:596) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75) at org.apache.jsp.error_002dnotfound_jsp._jspService(org.apache.jsp.error_002dnotfound_jsp:63) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.j ava:415) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:362) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:283) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.ja va:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Unknown Source) 11:26:53,928 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:596) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75) at org.apache.jsp.error_002dnotfound_jsp._jspService(org.apache.jsp.error_002dnotfound_jsp:63) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at
Re: URGENT! HELP ME! Tree2 state problem
Hi, Anybody know if this patch has made it to the nightly build? Thanks, EmmanuelOn 9/18/05, Bruno Aranda [EMAIL PROTECTED] wrote: I think that this is probable, Sean, out tree2 expert is now busy withthe release, but when this is over I am sure he will take a look tothe patch. To me that patch seems ok but I am not familiar with tree2. Regards,Bruno2005/9/18, Emmanuel Jay [EMAIL PROTECTED]: ok, but in any case do you know if the patch will make it into the nightly build next week? Thanks,EmmanuelOn 9/17/05, Sean Schofield [EMAIL PROTECTED] wrote: You can always build the jars yourself using the source code.Just do SVN checkout and apply the patch. Right now we are focused on the MyFaces 1.1 release on Monday. sean On 9/17/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi,I have the same problem as my app involves changing the tree2 all the time, modifying node, changing the root... I really hope the patch will make it in the build soon!CheersEmmanuel On 9/16/05, Enrico Nicola Mirco [EMAIL PROTECTED] wrote: Hi,Thank you very much for your answer. I hope the patch will includes in the nightly builds quickly. On 9/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You could set preserveToggle=false, but this is the general problem that the tree does not like dynamic changing tree structures, because the TreeState is not notified of the changes. I will propose a patch that will make the tree more tolerant to incompatible states, see MYFACES-568. [EMAIL PROTECTED] schrieb am 15.09.2005 14:56:15: Hi, I have a tree2 with showRootNode=true preserveToggle=true clientSideToggle=true. I describe my problem: 1) I open a JSP popup page with a tree2 (there are many nodes under the root); 2) I expand some node; 3) I close popup; 4) I reopen the popup with another tree2 that, in this case, has only the root because the datamodel is empty. When I open the page the following error occurs: Encountered a node 0 with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded.) When I populate the TreeNode the new TreeNodeBase is create as Leaf, and then, if it has at least a child, I set Leaf=false. I tried to set Leaf=false but the problem is not resolved. I tried to use collapsePath(0) in the backbean but it doesn't work. I think the tree attempts to restore the previous tree node state. Please everyone help me!!! Thank you
Highlighting a specifc row in a datatable
Hi, Is it possible to highlight a specifc row in a datatable? I have tried the following but it doesn't work dataTable.setValueBinding(rowClasses, createValueBinding(#{(myvar.highlight) ? 'style1' : 'style2'})); Thanks, Emmanuel
Re: URGENT! HELP ME! Tree2 state problem
ok, but in any case do you know if the patch will make it into the nightly build next week? Thanks, Emmanuel On 9/17/05, Sean Schofield [EMAIL PROTECTED] wrote: You can always build the jars yourself using the source code.Just doSVN checkout and apply the patch.Right now we are focused on the MyFaces 1.1 release on Monday.seanOn 9/17/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi,I have the same problem as my app involves changing the tree2 all the time, modifying node, changing the root... I really hope the patch will make it in the build soon!CheersEmmanuel On 9/16/05, Enrico Nicola Mirco [EMAIL PROTECTED] wrote: Hi, Thank you very much for your answer. I hope the patch will includes in the nightly builds quickly.On 9/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You could set preserveToggle=false, but this is the general problem that the tree does not like dynamic changing tree structures, because the TreeState is not notified of the changes. I will propose a patch that will make the tree more tolerant to incompatible states, see MYFACES-568. [EMAIL PROTECTED] schrieb am 15.09.2005 14:56:15: Hi, I have a tree2 with showRootNode=true preserveToggle=trueclientSideToggle=true. I describe my problem: 1) I open a JSP popup page with a tree2 (there are many nodes under the root);2) I expand some node;3) I close popup;4) I reopen the popup with another tree2 that, in this case, has only the root because the datamodel is empty. When I open the pagethe following error occurs: Encountered a node 0 with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded.) When I populate the TreeNode the new TreeNodeBase is create as Leaf, and then, if it has at least a child, I set Leaf=false. I tried toset Leaf=false but the problem is not resolved. I tried to use collapsePath(0) in the backbean but it doesn't work. I think the tree attempts to restore the previous tree node state. Please everyone help me!!!Thank you
Re: URGENT! HELP ME! Tree2 state problem
Hi, I have the same problem as my app involves changing the tree2 all the time, modifying node, changing the root... I really hope the patch will make it in the build soon! Cheers EmmanuelOn 9/16/05, Enrico Nicola Mirco [EMAIL PROTECTED] wrote: Hi, Thank you very much for your answer. I hope the patch will includes in the nightly builds quickly. On 9/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You could set preserveToggle=false, but this is the general problem that the tree does not like dynamic changing tree structures, because the TreeState is not notified of the changes. I will propose a patch that will make the tree more tolerant to incompatible states, see MYFACES-568. [EMAIL PROTECTED] schrieb am 15.09.2005 14:56:15: Hi, I have a tree2 with showRootNode=true preserveToggle=true clientSideToggle=true. I describe my problem: 1) I open a JSP popup page with a tree2 (there are many nodes under the root); 2) I expand some node; 3) I close popup; 4) I reopen the popup with another tree2 that, in this case, has only the root because the datamodel is empty. When I open the page the following error occurs:Encountered a node 0 with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded.) When I populate the TreeNode the new TreeNodeBase is create as Leaf, and then, if it has at least a child, I set Leaf=false. I tried to set Leaf=false but the problem is not resolved. I tried to use collapsePath(0) in the backbean but it doesn't work. I think the tree attempts to restore the previous tree node state.Please everyone help me!!! Thank you
JSF and j_security_check
Hi, I am looking at form based authentication with JSF and have seen a post on the SDN forum (http://forum.java.sun.com/thread.jspa?threadID=579873messageID=2929577) saying that this was not possible. Is anyone trying to do the same? and is the only to achieve form based authentication to store a var in the session and add some logic on (the rendered attribute of jsf component for example) jsf pages that can be displayed after login (depending on the value of this var)? Any help is greatly apreciated! Emmanuel
Re: tree2 binding
To identify which node was pressed add an actionListener (that implements javax.faces.event.ActionListener) to your commandLink (in your jsp). In the actionListener you can then retrieve the commandLink selected: HtmlCommandLink link = (HtmlCommandLink)event.getComponent(); Then if you do: link.getClientId(faceContext); you'll get the currently selected node id that is under the form 0:0 where 0 is the root EmmanuelOn 8/29/05, MarcV [EMAIL PROTECTED] wrote: You need in fact a actionlistener to do it:f:facet name=documenth:panelGrouph:commandLink immediate=truestyleClass=#{sbNavigatorTreeBean.nodeSelected ?'documentSelected':'document'}actionListener=#{sbNavigatorTreeBean.setNodeSelected}action="" sbNavigatorTreeBean.menuAction}h:graphicImage value=images/tree/document.pngstyle=border='0'/f:param name=paramMenuActionvalue=#{node.identifier} /h:outputText value=#{node.description}//h:commandLink/h:panelGroup/f:facetThe param will provide the id of the node when it is clicked 2005/8/29, Felix Japs [EMAIL PROTECTED]: Hi, thanks for the quick response. My Problem ist not to create and display a tree but to identify which node was clicked by the user. I think I need the binding-attribute. But perhaps there ist another way? bye, felix For the Client side... x:tree2 value=#{ sbNavigatorTreeBean.treeData} id=client-tree var=node varNodeToggler=t showRootNode=false preserveToggle=trueand in the NavigatorBean... public class NavigatorTreeBean { private TreeNode treeData; public NavigatorTreeBean (){ TreeNodeBase folderNode; TreeNodeBase personNode; treeData = new TreeNodeBase(person, Menu, false); // construct a set of fake data (normally your data would come from a database) // populate Fixed Elements portion of the tree personNode = new TreeNodeBase(separator, Menu, false); treeData.getChildren().add(personNode); personNode = new TreeNodeBase(person, Instruments, false); personNode.getChildren().add(new TreeNodeBase(document, View,goIssueSearch, true)); personNode.getChildren().add(new TreeNodeBase(document, Create,#{sbNavigationBean.goIssueCreation}, true )); personNode.getChildren().add(new TreeNodeBase(document, Quick Create,#{sbNavigationBean.goIssueCreation}, true)); (...) 2005/8/29, Felix Japs [EMAIL PROTECTED]: Hi, can someone show me an example how to bind data to the tree2 component? x:tree2 id=serverTree2 value=#{treeBacker.treeData} var=node varNodeToggler=t clientSideToggle=false binding=?? thanks for help, bye Felix Japs--A+,MarcV.
createUniqueIds problems
Hi, I keep having problems with createUniqueId. Basically most of the UI in my app is dynamically generated, and I am trying to understand why createUniqueId keeps producing ClassCastException in VerbatimTag.doAfterBody... If I dont call createUniqueId and use automatic ids I do not have problems but I obviously keep getting the standard warning messages... Any idea? Thanks, Emmanuel
Re: createUniqueIds problems
I am using 20050822 EmmanuelOn 8/29/05, Sean Schofield [EMAIL PROTECTED] wrote: There was a fix sometime over the weekend that caused some problems(although I don't think they were ClassCastExceptions.)Which versionof the code are you using?The latest code (as in today) has a fewchanges that might fix this. seanOn 8/29/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi,I keep having problems with createUniqueId. Basically most of the UI in my app is dynamically generated, and I am trying to understand why createUniqueId keeps producing ClassCastException in VerbatimTag.doAfterBody... If I dont call createUniqueId and use automatic ids I do not have problems but I obviously keep getting the standard warning messages...Any idea?Thanks,Emmanuel
Re: Tree2 and actionListeners
Not sure if this is a tree2 specific problem, I can just see that for some reason the behaviour seems to have changed in my app when I switch to 20050822. Yes the actionListener is called in the APPLY_REQUEST_VALUES(2) phase, and the repopulation is done before that (which means that when I click on the commandLink) the data I retrieve is wrong. The commandLink behave normally outside of the tree. The dataTable is generated dynamically (in fact I generate n datatables dynamically), and at the moment contains outputText and commandLinks. I am really puzzled...On 8/25/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hmm, strange. Are you sure that this is a tree2 specific problem? AFAIK the recent changes in the tree2 should not influence the behaviour of a commandLink. Is the actionListener called at all? Can you determine the phase in which this happens? Does the commandLink behave normally when it is outside of the tree? Do you use input components to display your data (in the dataTable)? [EMAIL PROTECTED] schrieb am 23.08.2005 15:05:18: Hi, Just got the 20050822 build and I have problems with my app (I did not have this problem with the 20050802 build). The problem is as follows. I have a tree2 where each item is a commandLink (with immediate set to true) with an actionListener. A click on a tree item should trigger the repopulation of a dataTable as well as the update of values in other components. Until today this all worked as the actionListener was triggered before the repopulation phase. However with this new build it looks like the immediate attribute is not taken into account, i.e. the repopulation phase in my app is triggered before the event handling Is that a bug or am I doing something wrong? Thanks for your help, Emmanuel
Re: Tree2 and actionListeners
I apologise as it seemed to be a issue in my code :-o Nothing to do with tree 2 in the end... EmmanuelOn 8/26/05, Sean Schofield [EMAIL PROTECTED] wrote: I would agree with Mathias that this doesn't seem to be a Tree2problem, especially if your actionListener is getting called.What do you mean by the repopulation is done before that?Thecomponent tree will be recreated and the tree data can be set but it should still be possible to add to the tree data before rendering.seanOn 8/26/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Not sure if this is a tree2 specific problem, I can just see that for some reason the behaviour seems to have changedin my app when I switch to 20050822. Yes the actionListener is called in the APPLY_REQUEST_VALUES(2) phase, and the repopulation is done before that (which means that when I click on the commandLink) the data I retrieve is wrong. The commandLink behave normally outside of the tree. The dataTable is generated dynamically (in fact I generate n datatables dynamically), and at the moment contains outputText and commandLinks.I am really puzzled... On 8/25/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hmm, strange. Are you sure that this is a tree2 specific problem? AFAIK the recent changes in the tree2 should not influence the behaviour of a commandLink. Is the actionListener called at all? Can you determine the phase in which this happens? Does the commandLink behave normally when it is outside of the tree? Do you use input components to display your data (in the dataTable)? [EMAIL PROTECTED] schrieb am 23.08.2005 15:05:18: Hi, Just got the 20050822 build and I have problems with my app (I did not have this problem with the 20050802 build). The problem is as follows. I have a tree2 where each item is a commandLink (with immediate set to true) with an actionListener. A click on a tree item should trigger the repopulation of a dataTable as well as the update of values in other components. Until today this all worked as the actionListener was triggered before the repopulation phase. However with this new build it looks like the immediate attribute is not taken into account, i.e. the repopulation phase in my app is triggered before the event handling Is that a bug or am I doing something wrong? Thanks for your help, Emmanuel
rowOn... scripts not fired when creating datatable programmatically
Hi, Have any of you seen any issue with setting the rowOnMouseOver, rowOnMouseOut... fields of a datatable programmatically. I am dynamically generating datatables, and the scripts do not seem to be triggered (they were triggered correctly when I was declaring and creating the datatable in the jsp). In my code I have: dataTable.setRowOnMouseOver(this.style.backgroundColor='#B5'); Emmanuel
Opening a new window
Hi, I would like to know if there are any solution to open a new (sub) window with MyFaces. I have a button on my main page and on user clicc I would like to open a new window and display some data in it. Are there any other solutions than using _javascript_? Can the JSF navigation system handle that, and if yes how is it do-able? Thanks for your help, Emmanuel
Re: Opening a new window
I dont think this tag opens a new browser window as the _javascript_ function window.open('url',...) would (correct me if I'm wrong and if there is a way to do it with this tag without modifying it)... I nevertheless use the popup tag to display info that is temporary in the same way as in the popup example. On 8/26/05, Dennis Byrne [EMAIL PROTECTED] wrote: This one might help.http://myfaces.apache.org/tlddoc/tomahawk/t/popup.html Original message Date: Fri, 26 Aug 2005 17:53:04 +0200 From: Emmanuel Jay [EMAIL PROTECTED]Subject: Opening a new windowTo: MyFaces Discussion users@myfaces.apache.org Hi, I would like to know if there are any solution to open a new (sub) window with MyFaces.I have a button on my main page and on user clicc I would like to open a new window and display some data in it. Are there any other solutions than using _javascript_? Can the JSF navigation system handle that, and if yes how is it do-able? Thanks for your help, Emmanuel Dennis Byrne
Re: Opening a new window
Thanks for your help Brendan!On 8/26/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Also, as Mike Kienenberger pointed out in a previous thread on this topic: http://www.jsftutorials.net/interface/jsf-popup.html - Brendan -Original Message-From: CONNER, BRENDAN (SBCSI) Sent: Friday, August 26, 2005 11:43 AMTo: 'MyFaces Discussion'Subject: RE: Opening a new window See the book Core JavaServer Faces (Geary, Horstman), pp. 587 - 595 (in the section: How do I generate a popup window). - Brendan -Original Message-From: Emmanuel Jay [mailto:[EMAIL PROTECTED]] Sent: Friday, August 26, 2005 10:53 AMTo: MyFaces DiscussionSubject: Opening a new windowHi, I would like to know if there are any solution to open a new (sub) window with MyFaces. I have a button on my main page and on user clicc I would like to open a new window and display some data in it. Are there any other solutions than using _javascript_? Can the JSF navigation system handle that, and if yes how is it do-able?Thanks for your help,Emmanuel
Tree2 and actionListeners
Hi, Just got the 20050822 build and I have problems with my app (I did not have this problem with the 20050802 build). The problem is as follows. I have a tree2 where each item is a commandLink (with immediate set to true) with an actionListener. A click on a tree item should trigger the repopulation of a dataTable as well as the update of values in other components. Until today this all worked as the actionListener was triggered before the repopulation phase. However with this new build it looks like the immediate attribute is not taken into account, i.e. the repopulation phase in my app is triggered before the event handling Is that a bug or am I doing something wrong? Thanks for your help, Emmanuel
Weird Validator problem
Hi, I am having a very odd validator problem (I do think that there is nothing out of the usual in what I am doing do at the moment I still think it is a problem in my code but I can't understand why I have this problem). Baiscally I am programmatically adding 2 validators to an HtmlInputText: one is the standard LengthValidator and the other is my own custom one. The LengthValidator is validating fine but my own is never called... My validator is just implementing the Validator interface, and I create it using new (that is not via the application) Any help appreciated, Thanks, Emmanuel
Re: Dynamic image generation
Yes more SVG browser support is definitely needed... I am interrested in having something like the SVG Generator in Batik that would provide a very easy way to generate 2d rasters on the fly. In that respect I might even be able to use the SVG generator straight out of the box I guess (I admit I have never used it, I am currently reviewing what is the best way to achieve that). In terms of a JSF component I was more refering to a render kit that would render the SVG generated by the SVG generator. Could you give me a bit more info on what the graphicSvg component does, and what it offers. Is is build on top of batik? Can I just feed it with an SVG and it will render it in the browser... will it compress the image? Thanks, Emmanuel On 8/3/05, Bruno Aranda [EMAIL PROTECTED] wrote: And it would not only be needed a new render-kit, but also a new setof svg components! That are major words...Bruno2005/8/3, Bruno Aranda [EMAIL PROTECTED] : Creating a component that renders svg files would be pretty straight-forward, as what you would do is to create a component which accepts the svg files and embedes it in the page using the object tags... Using the batik library, you could raster the svg files on-the-fly to generate PNG or JPEGs. If what you want is an SVG render-kit, this is more difficult and would imply more code (that was a good idea for the Google summer of code!). I've developed the graphicSvg component (the first case) some time ago, but didn't have time to finish it, although it works... more or less. However it is capable of showing the SVGs and rastering them. I haven't included it to the sandbox because it has a dependency in the batik library. If someone is interested, feel free to contact me... For the whole render-kit, maybe that would be another project... Regards, Bruno PS we still need more svg browser support... 2005/8/3, Emmanuel Jay [EMAIL PROTECTED]: Hi all, Are there any plans at all for providing support for SVG or any other technology enabling the dynamic generation of 2d images? Thanks, Emmanuel Jay
Re: Dynamic image generation
Thanks for that Bruno So in the raster example you generate the primitive shapes on the fly (using the normal Graphics2D I suppose), then create an SVG document using the Batik Generator and then use the transcoder to save as JPEG or PNG and then stream that out... Is that correct? (or you have the SVG and use the transcoder on it directly) I would be very interrested in looking at your code :) Thanks, Emmanuel On 8/4/05, Bruno Aranda [EMAIL PROTECTED] wrote: Ok, I've uploaded a webapp with the graphicSVG example inhttp://people.apache.org/~baranda/baranda.warFeel free to try it, just drop it in (if possible) clean server and that's all. If someone is interested in the source just ask. Now,there are two examples: one that just put the svg render in the pageinside object tags and another one that rasters the imageson-the-fly using the batik libraries. Now the component is very basic, and it only allows it to raster thesvg or not and choose between png/jpeg format. No compression at themoment, because I only did the component for test purposes... Every example has the source for the jsp page, in the myfaces examples way...Criticism and opinions accepted, of course!Regards,Bruno2005/8/4, Emmanuel Jay [EMAIL PROTECTED]: Yes more SVG browser support is definitely needed...I am interrested in having something like the SVG Generator in Batik that would provide a very easy way to generate 2d rasters on the fly. In that respect I might even be able to use the SVG generator straight out of the box I guess (I admit I have never used it, I am currently reviewing what is the best way to achieve that).In terms of a JSF component I was more refering to a render kit that would render the SVG generated by the SVG generator.Could you give me a bit more info on what the graphicSvg component does, and what it offers. Is is build on top of batik? Can I just feed it with an SVG and it will render it in the browser... will it compress the image?Thanks,Emmanuel On 8/3/05, Bruno Aranda [EMAIL PROTECTED] wrote: And it would not only be needed a new render-kit, but also a new set of svg components! That are major words... Bruno 2005/8/3, Bruno Aranda [EMAIL PROTECTED] : Creating a component that renders svg files would be pretty straight-forward, as what you would do is to create a component which accepts the svg files and embedes it in the page using the object tags... Using the batik library, you could raster the svg files on-the-fly to generate PNG or JPEGs. If what you want is an SVG render-kit, this is more difficult and would imply more code (that was a good idea for the Google summer of code!). I've developed the graphicSvg component (the first case) some time ago, but didn't have time to finish it, although it works... more or less. However it is capable of showing the SVGs and rastering them. I haven't included it to the sandbox because it has a dependency in the batik library. If someone is interested, feel free to contact me... For the whole render-kit, maybe that would be another project... Regards, Bruno PS we still need more svg browser support... 2005/8/3, Emmanuel Jay [EMAIL PROTECTED]:Hi all, Are there any plans at all for providing support for SVG or any othertechnology enabling the dynamic generation of 2d images? Thanks, Emmanuel Jay
Dynamic image generation
Hi all, Are there any plans at all for providing support for SVG or any other technology enabling the dynamic generation of 2d images? Thanks, Emmanuel Jay
Re: MyFaces CVS down?
Yes I was refering to the CVS... Emmanuel On 8/1/05, Martin Marinschek [EMAIL PROTECTED] wrote: Emmanuel was referring to CVS as the nightly build is hosted on cvs.apache.org, I think...regards,Martin On 8/1/05, Sean Schofield [EMAIL PROTECTED] wrote: Are you referring to CVS or SVN?We have switched to SVN.Please see http://myfaces.apache.org/ for information on how to get the sourcecode.seanOn 7/29/05, Martin Marinschek [EMAIL PROTECTED] wrote: infrastructure is working on that.see: http://monitoring.apache.org/status/ regards,Martin On 7/29/05, Martin Marinschek [EMAIL PROTECTED] wrote: yes, downtime...sorry for that. regards, Martin On 7/29/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi all, Just trying to get yesterday's nightly build but no success Is the CVS down? Emmanuel
Re: Catching the Tree2 Collapse/Expand Event
Hi Sean, Has load on demand made it to a nightly build yet? Thanks, Emmanuel On 7/25/05, Sean Schofield [EMAIL PROTECTED] wrote: I'm going to start looking at this issue today.There seem to benumerous (and duplicate) issues in JIRA regarding this.My progressis being hampered somewhat by JIRA being down.seanOn 7/25/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi,I have seen a few posts about that subject but this does not work for me. The solutions seemed to be to use the actionListener of the commandLink, but I have been using it for a while now to process event on the commandLink and it is not triggered when clicking on the + or -. I basically want to do load on demand when clicking on the +... Any suggestions...Thanks,Emmanuel
Re: Problem with loading Tree2 resource (20050725 build)
I don't think that having the + showed when a node has no children is particularly intuitive. I would show a connecting line (a right angled one) instead of the +. Emmanuel On 7/29/05, Sean Schofield [EMAIL PROTECTED] wrote: Correct its always there.What would you show instead?Nothing?Might look a bit weird, especially if you have connecting lines ...seanOn 7/29/05, Emmanuel Jay [EMAIL PROTECTED] wrote: By the way do you know if it is possible to hide the + image when a node doesn't have any children. At the moement it seems that it is always there... On 7/29/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Thanks for that! It works for me too now...On 7/29/05, Christian Froelich [EMAIL PROTECTED] wrote:20050727 works for me -- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
Re: Problem with loading Tree2 resource (20050725 build)
Hi Sean, Sorry been busy on other things. Coul dyou tell me if this issue has been resolved or is scheduled to be resolved? I have reverted to an older build at the moment. EmmanuelOn 7/26/05, Sean Schofield [EMAIL PROTECTED] wrote: I accidentally responded to the dev list (instead of user list.)That's probably more appropriate at this point anyways since it seemsthere could be a bug with the recent code.Please see my answerthere. sean
Re: Problem with loading Tree2 resource (20050725 build)
I have changed my code to reflect the fact that isLeaf now returns the correct value but it still doesn't work. I now get an Invalid bit mask of 6 error. I will get yesterdays nightly build and see if that changes anything... EmmanuelOn 7/29/05, Christian Froelich [EMAIL PROTECTED] wrote: Hi Emmanuel,I had the same tree2 problem. I think the treatment of 'isLeaf' (of theTreeNodes) changed from the 1.0.9 release to the now available nightlybuilds...Now it is correct and isLeaf=true really means that the node has no children.HTH,Christian--5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail+++ GMX - die erste Adresse für Mail, Message, More +++
MyFaces CVS down?
Hi all, Just trying to get yesterday's nightly build but no success Is the CVS down? Emmanuel
Problem with loading Tree2 resource (20050725 build)
Hi, I have just updated to yesterdays (20050725) nightly build (from 1.0.9) and I get the following error on tree2. My extension filter settings haven't changed so I don't really understand why I get that all the sudden... It is a little weird as some of the resource images used by the script are loaded (all the line images seems ok) and some aren't (all the nav are not there)... I get that error when clicking on the link for the expand image (the image is not there through). My facets contains a panelgroup with 2 commandlink children. Any suggestions? Emmanuel java.io.IOException: Unable to find resource images/null for component tree2.HtmlTreeRenderer. Check that this file is available in the classpath in sub-directory /resource of the component-directory. at org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:248) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595)
Re: Problem with loading Tree2 resource (20050725 build)
yep they do work and I am really puzzled as to why my app doesn't work... I have realized that after expanding the tree and selecting a command link node I get the following: javax.faces.FacesException: Invalid bit mask of 14 at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:226) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:299) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.jasper.JasperException: Invalid bit mask of 14 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415) ... 25 more On 7/26/05, Sean Schofield [EMAIL PROTECTED] wrote: Have you tried the tree2 examples in the simple webap?I'm assumingthey are working but maybe you should double check those to make surethey still work.seanOn 7/26/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi,I have just updated to yesterdays (20050725) nightly build (from 1.0.9) and I get the following error on tree2. My extension filter settings haven't changed so I don't really understand why I get that all the sudden... It is a little weird as some of the resource images used by the script are loaded (all the line images seems ok) and some aren't (all the nav are not there)... I get that error when clicking on the link for the expand image (the image is not there through). My facets contains a panelgroup with2 commandlink children.Any suggestions? Emmanueljava.io.IOException: Unable to find resource images/null for component tree2.HtmlTreeRenderer. Check that this file is available in the classpath in sub-directory /resource of the component-directory. at org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:248)at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java :98)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter
Re: COMPONENT_TYPE seems to be wrong
I thought I could use this key to register my component mapping in the app, but I can very much do without. I thought that out of consistency it might be better to have the key match the class name, but it is not an issue. thanks, EmmnuelOn 7/25/05, Sean Schofield [EMAIL PROTECTED] wrote: I don't recall that the spec says anything on what the COMPONENT_TYPEvalue should be for the implementation classes.Why does it matter to you?This is just a key by which the componentclass and renderer are looked up.It does not have to correspond to the actual structure of the java package containing the component.seanOn 7/25/05, Emmanuel Jay [EMAIL PROTECTED] wrote: Hi,I have noticed that the COMPONENT_TYPE in all javax.faces.component.html.* components are of the form javax.faces.class_name rather than javax.faces.component.html.class_nameIs that normal?I would expect them to be of the later form as I want to use them to add a (KEY, UI component) mapping to the application. At the momemt I have to hardcode the correct class name into my app...Emmanuel