Re: [Trinidad] Table with special row to define filters
Hi Andrew, thanks a lot, that idea did not came to my mind! David Andrew Robinson schrieb: Why would a different data model prevent usage of input fields? This would only show the input text if it is the first row. This is an extremely simple example, but you should get the point. -Andrew On 10/9/07, David Uebelacker <[EMAIL PROTECTED]> wrote: Hi, i want to define input text fields in this row, so it will not work with another data model :-(. Overwriting the default renderer seems to be the only solution for me. David Andrew Robinson schrieb: Custom DataModel that always returns a special first row? On 10/8/07, David Uebelacker <[EMAIL PROTECTED]> wrote: Hi, is there a way to add a special row to a trinidad table, which is not defined by the data ? We have to implement a table, with filters for each column. Under the header should be a row, with one input fields for every column. The user can define a filter, by entering a value into these input fields. I tried it with the header facet, but there is the sorting mechanism in the way :-(. Any better ideas/solutions ? Thanks, David -- David Uebelacker mailto:[EMAIL PROTECTED] http://david.uebelacker.eu/
inputTextHelp value if no change
if user does not input anything and leave the help text unchanged, the binding value should be null. But currently it is the help text. Is this a bug? Dave - Need a vacation? Get great deals to amazing places on Yahoo! Travel.
Programmatically selecting and deselecting rows in a tr:table with rowSelection="multiple"
Is it possible to programmatically select or deselect rows in a tr:table? I would like to remove the rows that a user has selected from within an action handler method that is bound to a commandButton. It seems that when I call getSelectionState() on the CoreTable, I'm getting a null RowKeySet. Thanks, Richard
Nasty PPR problem
I was positively surprised how easy it was to get a table with a dynamic number of columns working with trinidad, jstl and facelets. Now whenever the user clicks on a command link in a table cell I'd like to update a separate form with details of the data represented by that cell - using PPR on that form. It is working (sometimes) using the code below. The problem is, that I only conditionally render the link. PPR fails completely for all cells in a row if the command link isn't rendered in the first column of that row. Seems to me PPR is canceled somehow, because of a problem with the id of the trigger component, which does not differ from one column to the next. Any solution? I'd take a workaround, as well :-) ...
Re: Schedule component
The schedule component is no longer in the sandbox, but in Tomahawk, since version 1.1.5. You can find working examples in the Tomahawk examples: http://example.irian.at/example-simple-20071009/home.jsf Jurgen 2007/10/9, Kunle Ola <[EMAIL PROTECTED]>: > > Jurgen, > > How are you, sorry to bother you but we are looking to integrate your > component into an application we are currently developing. I cannot find any > working examples in the Sandbox, and the only documentation I can find is > the description page on the myfaces site.The page is quite terse, so, I > was hoping you may be able to tell me where I might find more detailed > documentation and hopefully some working examples of your component. > > > Regards > > Kunle Ola > -- I have a nine iron and I'm not afraid to use it
Re: [Trinidad 1.0.3] returnListener is broken
OK, it's not a general issue with returnListener; it's returnListener inside a facet of the table. Nice job analyzing this down to TRINIDAD-737 - makes it easy to discern the problem. The problem is that we've started setting currency by calling setRowKey() on the table, but that means that the clientId of the contents start changing... which is wrong. Shoulda thought of that when I reviewed this. There'll be other things that break (for instance, PPR within a facet of the table). The fix, I think, is to not set the currency, but instead merely set up the EL state as if currency were set, e.g. going from - set row key to first selected row - process the event - restore row key ... to the more verbose: - get original values "var" and "varStatus" off the request map - set row key to first selected row - grab new "var" and "varStatus" off the request map - restore row key - set new "var" and "varStatus" onto the request map - process the event - restore "var" and "varStatus" to original values For now, you can work around this (significant) bug by moving the panelButtonBar to after the table, and out of the "footer". But we should roll a 1.0.4 fairly soon to fix this regression, and any others if they get found soon. -- Adam On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > if i add a returnListener to my commandButton, which is defined in a facet > from a table, the returnListener is not called anymore. He is a short example: > > > > >immediate="true" action="dialog:openHitMeDialog" > returnListener="#{backing.handleReturn}" /> > > > > > > > > > > I have tested this scenario with trinidad 1.0.2 and it works fine. The > difference between these releases is amongst others the jira issue > TRINIDAD-737. I have removed this changes from my trinidad 1.0.3 source and > started a new build and now the returnListener is called again. > Is it a problem how i defined the commandButton in my page or is it a bug > that comes with TRINIDAD-737??? > > Hope anybody can help me... > > Cheers Sven > > -- > Pt! Schon vom neuen GMX MultiMessenger gehört? > Der kanns mit allen: http://www.gmx.net/de/go/multimessenger >
Re: [Trinidad 1.0.3] backward compatibility
Yeah, we really could use info on whether it was 1.0.2 or 1.0.3 that causes the problems. And, since obviously we wouldn't have released anything if the whole thing was broken, it's important to make some attempt to say exactly what is failing and how, and to provide a minimal testcase of something that does not work. -- Adam On 10/9/07, Simon Lessard <[EMAIL PROTECTED]> wrote: > Hello Andrew, > > It should be backward compatible, yes. However there was some big changes > from 1.0.1 to 1.0.2, true AJAX PPR mainly. Do you get any exception stack > trace or is it just the components refusing to work? Also, what happen if > you use 1.0.2? > > > Regards, > > ~ Simon > > > On 10/9/07, Andrew Richards > <[EMAIL PROTECTED] > > wrote: > > Hello all. > > > > Can anyone tell me if Trinidad 1.0.3 is backward compatible with Trinidad > 1.0.1? I have a reasonably complex legacy JSF application which I have tried > porting to 1.0.3 for a number of reasons. Unfortunately the application > fails miserably. Just taking a quick glance I can see MenuModel, > PanelAccordian, TreeTable etc etc all fail in my application? > > > > Are there any major configuration changes I need to make to port to > Trinidad 1.0.3 ? Currently all I have done is changed the dependency in my > maven pom. > > > > Many thanks > > > > Andy > > > >
Re: [Trinidad] Table with special row to define filters
Why would a different data model prevent usage of input fields? This would only show the input text if it is the first row. This is an extremely simple example, but you should get the point. -Andrew On 10/9/07, David Uebelacker <[EMAIL PROTECTED]> wrote: > Hi, > > i want to define input text fields in this row, so it will not work with > another data model :-(. > Overwriting the default renderer seems to be the only solution for me. > > David > > Andrew Robinson schrieb: > > Custom DataModel that always returns a special first row? > > > > On 10/8/07, David Uebelacker <[EMAIL PROTECTED]> wrote: > > > >> Hi, > >> > >> is there a way to add a special row to a trinidad table, which is not > >> defined by the data ? > >> > >> We have to implement a table, with filters for each column. Under the > >> header should be a row, with one input fields for every column. The user > >> can define a filter, by entering a value into these input fields. > >> > >> I tried it with the header facet, but there is the sorting mechanism in > >> the way :-(. Any better ideas/solutions ? > >> > >> > >> Thanks, > >> > >> David > >> > >> > >> -- > >> David Uebelacker > >> mailto:[EMAIL PROTECTED] > >> http://david.uebelacker.eu/ > >> > >> > >> > > > > > >
jscookMenu assistance
Hey fellas, using the following code to insert an icon into the menu results in this code being generated for icon: /styles/admin/jscookmenu/ThemeOffice/copy.gif I am looking to add a style to the above generated code for icon so that it loses its border. In the function cmDrawSubMenu in jscookmenu.js the following code results in the above code : if (item[0] != null) str += item[0]; Is it possible to modify it so that the code has a style attribute added to it ? Any hints as to how I can achieve this? Thanks, ..kace -- View this message in context: http://www.nabble.com/jscookMenu-assistance-tf4596920.html#a13124849 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] Table with special row to define filters
Hi, i want to define input text fields in this row, so it will not work with another data model :-(. Overwriting the default renderer seems to be the only solution for me. David Andrew Robinson schrieb: Custom DataModel that always returns a special first row? On 10/8/07, David Uebelacker <[EMAIL PROTECTED]> wrote: Hi, is there a way to add a special row to a trinidad table, which is not defined by the data ? We have to implement a table, with filters for each column. Under the header should be a row, with one input fields for every column. The user can define a filter, by entering a value into these input fields. I tried it with the header facet, but there is the sorting mechanism in the way :-(. Any better ideas/solutions ? Thanks, David -- David Uebelacker mailto:[EMAIL PROTECTED] http://david.uebelacker.eu/
jscookmenu with layout=vbl using IE6
Dear all, I am having a problem trying to use a jscookmenu with a vertical layout and a left-sided submenu list (). When I view the output in Internet Explorer v6 all submenus appear to the *right* of the menu instead of to the left. Does anyone know what the problem is? Mat. _ Celeb spotting – Play CelebMashup and win cool prizes https://www.celebmashup.com
Daily Builds
Hi, the link to the Nightly Builds from the Trinidad Download page is leading to old files only. The newest is from 28.06.07. I searched the list, but did not found any relevant announcement on this. Where can I find the newer builds? Thanks, Timm
Unable to get values to Backing Bean from a disabled control
Hi All, I am unable to get values of disabled components [inputText,selectOneChoice]. I have a jspx page (summary page) which lists out all the employee details in a tabular form. The last column contains an edit icon for each row, which navigates to edit employee details. The same page has been used to add new employee details also. [addEditEmployee.jspx] There are few components [say status - selectOneChoice - Active by default] which would be disabled when adding a new employee. I am able to get the value into Backing bean while adding a new employee and was able to save the employee successfully. There are few components [say Emp Code - inputText] which would be disabled while editing an existing employee. The same component would be enabled based upon a condition and is updatable. When edit icon has been clicked in the summary page, it would navigate to addEditEmployee.jspx where we can update the other fields but not Emp Code. I am unable to get the value of the component while updating an employee in case when inputText is disabled. As I am using Hibernate, the data would be added/updated into the Database with the help of Hibernate Template with the configurations in POJOs and hbm.xml files. Please help me out. Thnxs Glen -- View this message in context: http://www.nabble.com/Unable-to-get-values-to-Backing-Bean-from-a-disabled-control-tf4596458.html#a13123147 Sent from the MyFaces - Users mailing list archive at Nabble.com.
[Trinidad] pageFlowScope and request parameter handling
Our main application page features a tr:table, and users can modify the details of each entry in that table using dialogs displayed via the dialog framework. Here is the app flow: 1. A row in the table is selected 2. The modify button is clicked and a dialog displays with that entry's details 3. The OK button in the dialog is pressed 4. The OK button's actionListener determines if a confirmation is needed from user to continue to accept the changes or to leave the detail dialog open for further changes 5. If the confirmation needs to be displayed, a dialog is either displayed via a navigation rule action or via the launchDialog API 6. If the user agrees to the confirmation, we need to process some HttpServletRequest parameters from the original request (the OK submit from the detail dialog) since we have some straight HTML inputs on the dialog that need processing At this point, do I have access to the original request parameters? Can I use pageFlowScope for this? I figure this sort of flow is pretty standard in applications (with the exception of request parameter parsing), so there must be a way to achieve this. Thanks in advance for your clarification/suggestions, Shawn Bertrand Tyco Electronics Corporation
Re: [Trinidad 1.0.3] backward compatibility
Hello Andrew, It should be backward compatible, yes. However there was some big changes from 1.0.1 to 1.0.2, true AJAX PPR mainly. Do you get any exception stack trace or is it just the components refusing to work? Also, what happen if you use 1.0.2? Regards, ~ Simon On 10/9/07, Andrew Richards <[EMAIL PROTECTED]> wrote: > > Hello all. > > Can anyone tell me if Trinidad 1.0.3 is backward compatible with Trinidad > 1.0.1? I have a reasonably complex legacy JSF application which I have > tried porting to 1.0.3 for a number of reasons. Unfortunately the > application fails miserably. Just taking a quick glance I can see MenuModel, > PanelAccordian, TreeTable etc etc all fail in my application? > > Are there any major configuration changes I need to make to port to > Trinidad 1.0.3 ? Currently all I have done is changed the dependency in my > maven pom. > > Many thanks > > Andy >
RE: [Trinidad] PPR problem
Ok, I made a mistake in resetting my values in the constructor, this example works as expected. Nate Perkins General Dynamics C4 Systems This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message. From: Perkins, Nate-P63196 [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 09, 2007 8:17 AM To: MyFaces Discussion Subject: RE: [Trinidad] PPR problem Ok, I came up with a pretty simple test page. The page has two buttons in the first subform that show a panel in the second subform. The only button that works in the second subform is the non-PPR button ('Close'). The actions are not called for any other button. I also tried actionListeners and those are not called either. There are no Javascript errors. This was tested with 1.0.1 Page: ... ... Backing Bean: public class TestProbBb { /** the Logger */ private static Logger m_logger = Logger.getLogger(TestProbBb.class); public TestProbBb() { m_logger.trace("Entering constructor"); setPanelShown(false); setPanelEditing(false); m_logger.trace("Exiting constructor"); } public String showPanel() { m_logger.trace("Entering showPanel"); setPanelShown(true); setPanelEditing(false); m_logger.trace("Exiting showPanel"); return null; } public String editPanel() { m_logger.trace("Entering editPanel"); setPanelShown(true); setPanelEditing(true); m_logger.trace("Exiting editPanel"); return null; } public String save() { m_logger.trace("Entering save"); setPanelEditing(false); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Saved")); m_logger.trace("Exiting save"); return null; } public void saveListener(ActionEvent event) { m_logger.trace("Entering saveListener"); m_logger.trace("Exiting saveListener"); } public String edit() { m_logger.trace("Entering edit"); setPanelEditing(true); m_logger.trace("Exiting edit"); return null; } public void editListener(ActionEvent event) { m_logger.trace("Entering editListener"); m_logger.trace("Exiting editListener"); } public String cancel() { m_logger.trace("Entering cancel"); setPanelEditing(false); m_logger.trace("Exiting cancel"); return null; } public void cancelListener(ActionEvent event) { m_logger.trace("Entering cancelListener"); m_logger.trace("Exiting cancelListener"); } public String close() { m_logger.trace("Entering close"); setPanelShown(false); m_logger.trace("Exiting close"); return null; } public void closeListener(ActionEvent event) { m_logger.trace("Entering closeListener"); m_logger.trace("Exiting closeListener"); } public boolean isPanelEditing() { Boolean bool = (Boolean) RequestContext.getCurrentInstance().getPageFlowScope().get("panelEditing "); if (bool == null) { return false; } else { return bool; } } private void setPanelEditing(boolean bool) { RequestContext.getCurrentInstance().getPageFlowScope().put("panelEditing ", bool); } public boolean isPanelShown() { Boolean bool = (Boolean) RequestContext.getCurrentInstance().getPageFlowScope().get("panelShown") ; if (bool == null) { return false; } else { return bool; } } private void setPanelShown(boolean bool) { RequestContext.getCurrentInstance().getPageFlowScope().put("panelShown", bool); } } Nate Perkins General Dynamics C4 Systems This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message. From: Matt Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:30 PM To: MyFaces Discussion Subject: Re: [Trinidad] PPR problem Oh,
Hit open twice on file download question...
Our webapp is required to download data files to the client. To do this we have written a servlet as follows: ServletOuputStream sos = response.getOutputStream(); response.setContentType("application/octet-stream"); response.setContentLength(theBytes.length); // the bytes is a byte array read from a file... response.setHeader("Content-Disposition","attachment; filename=\"" + filename + "\""); sos.write(theBytes); sos.close(); The above works fine in that the file is downloaded and the browser pops up the window stating Open, Save, More Info..., or Cancel. In Internet Explorer when the user wants to Open the file the Open button needs to be pressed two times. All other buttons only need pressed one time and it works. Can anyone explain why this is happening or how I can make it stop? Thank-you, Ray Milburn L3 Communications, GSI --- GO SPURS!! ---
Re: jscoomkmenu / commandNavigation2 and images
I am not sure why it didn't print the whole tag I had in the previous mail, but here it is again < img src = " img/dletnote.gif " height = " 16 " width=" 16 " style = " border : 0px; " / > I hope it gets it this time. What I am saying is, you have to set the style ( border : 0px; ) to the image tag. I have not used jscookmenu, but I have used images with commandLinks and this is based on my experience of that. hope it works for you, Sushma kace <[EMAIL PROTECTED]> wrote: Thanks Sushma, do you mean instead of doing the following : itemLabel = "validate" action = "go_validate" icon = "/styles/admin/ThemeOffice/copy.gif" style="border:0px;"/> I should do itemLabel = "validate" action = "go_validate" "> /styles/admin/ThemeOffice/copy.gif I am looking to get the icon to lose its border and grey background color. The above does not work. Anything else I can try. thanks ..kace Sushma Sharma wrote: > > > try style="border:0px;" in img tag. it works for me. > > img/dletnote.gif > > kace wrote: > > > tried style; that didnt work either. > > I would also like to get rid of the background color of the icon along > with > the border. > > anyone have another suggestion? > > ..kace > > > > Abhi-10 wrote: >> >> hey sorry this inlineStyle is an attribute of trinidad please check what >> attribute is there for styling. >> >> On 10/8/07, kace wrote: >>> >>> >>> Thanks Abhi, >>> >>> I tried it in both >>> >>> >> itemLabel = "validate" action = >>> "go_validate" >>> icon = >>> "/styles/admin/ThemeOffice/copy.gif" inlineStyle="border:none"/> >>> and in >>> >>> >> inlineStyle="border:none;" /> >>> >>> and both are still producing borders.. >>> >>> ..kace >>> >>> >>> Abhi-10 wrote: >>> > >>> > use inlineStyle="border:none" in your image >>> > >>> > On 10/8/07, kace wrote: >>> >> >>> >> >>> >> Hi fellas, >>> >> >>> >> when using commandNavigation2 I use images instead of value but it >>> looks >>> >> ugly due to the border placed around the image and same when using >>> icons >>> >> in >>> >> jscookmenu. >>> >> >>> >> >>> >> Is it possible to remove the border around the icons or images that >>> are >>> >> used >>> >> within jscookmenu and commandNavigation2? >>> >> >>> >> Thanks, >>> >> >>> >> ..kace >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13107426 >>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >>> >> >>> >> >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13107554 >>> Sent from the MyFaces - Users mailing list archive at Nabble.com. >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13109052 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > > > The word "Impossible" itself says " I m possible". > Sushma > > > > > - > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user > panel and lay it on us. > -- View this message in context: http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13117509 Sent from the MyFaces - Users mailing list archive at Nabble.com. The word "Impossible" itself says " I m possible". Sushma - Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV.
RE: [Trinidad] PPR problem
Ok, I came up with a pretty simple test page. The page has two buttons in the first subform that show a panel in the second subform. The only button that works in the second subform is the non-PPR button ('Close'). The actions are not called for any other button. I also tried actionListeners and those are not called either. There are no Javascript errors. This was tested with 1.0.1 Page: ... ... Backing Bean: public class TestProbBb { /** the Logger */ private static Logger m_logger = Logger.getLogger(TestProbBb.class); public TestProbBb() { m_logger.trace("Entering constructor"); setPanelShown(false); setPanelEditing(false); m_logger.trace("Exiting constructor"); } public String showPanel() { m_logger.trace("Entering showPanel"); setPanelShown(true); setPanelEditing(false); m_logger.trace("Exiting showPanel"); return null; } public String editPanel() { m_logger.trace("Entering editPanel"); setPanelShown(true); setPanelEditing(true); m_logger.trace("Exiting editPanel"); return null; } public String save() { m_logger.trace("Entering save"); setPanelEditing(false); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Saved")); m_logger.trace("Exiting save"); return null; } public void saveListener(ActionEvent event) { m_logger.trace("Entering saveListener"); m_logger.trace("Exiting saveListener"); } public String edit() { m_logger.trace("Entering edit"); setPanelEditing(true); m_logger.trace("Exiting edit"); return null; } public void editListener(ActionEvent event) { m_logger.trace("Entering editListener"); m_logger.trace("Exiting editListener"); } public String cancel() { m_logger.trace("Entering cancel"); setPanelEditing(false); m_logger.trace("Exiting cancel"); return null; } public void cancelListener(ActionEvent event) { m_logger.trace("Entering cancelListener"); m_logger.trace("Exiting cancelListener"); } public String close() { m_logger.trace("Entering close"); setPanelShown(false); m_logger.trace("Exiting close"); return null; } public void closeListener(ActionEvent event) { m_logger.trace("Entering closeListener"); m_logger.trace("Exiting closeListener"); } public boolean isPanelEditing() { Boolean bool = (Boolean) RequestContext.getCurrentInstance().getPageFlowScope().get("panelEditing "); if (bool == null) { return false; } else { return bool; } } private void setPanelEditing(boolean bool) { RequestContext.getCurrentInstance().getPageFlowScope().put("panelEditing ", bool); } public boolean isPanelShown() { Boolean bool = (Boolean) RequestContext.getCurrentInstance().getPageFlowScope().get("panelShown") ; if (bool == null) { return false; } else { return bool; } } private void setPanelShown(boolean bool) { RequestContext.getCurrentInstance().getPageFlowScope().put("panelShown", bool); } } Nate Perkins General Dynamics C4 Systems This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message. From: Matt Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, October 08, 2007 3:30 PM To: MyFaces Discussion Subject: Re: [Trinidad] PPR problem Oh, and one other tip is to try reproducing the problem using a very simple test case. This will sometimes help to narrow down and identify the problem. On 10/8/07, Matt Cooper <[EMAIL PROTECTED]> wrote: Hmm... that looks correct to me too. I don't know what else might be causing the problem. The next step would be to see if there are any JavaScript errors in the browser, possibly looking at the network traffic to see if the updated DOM is being sent back to the browser, possibly assigning an actionListener on the button to make sure that at least the action is queued. Hope this helps, Matt O
Re: jscoomkmenu / commandNavigation2 and images
Thanks Sushma, do you mean instead of doing the following : I should do /styles/admin/ThemeOffice/copy.gif I am looking to get the icon to lose its border and grey background color. The above does not work. Anything else I can try. thanks ..kace Sushma Sharma wrote: > > > try style="border:0px;" in img tag. it works for me. > >img/dletnote.gif > > kace <[EMAIL PROTECTED]> wrote: > > > tried style; that didnt work either. > > I would also like to get rid of the background color of the icon along > with > the border. > > anyone have another suggestion? > > ..kace > > > > Abhi-10 wrote: >> >> hey sorry this inlineStyle is an attribute of trinidad please check what >> attribute is there for styling. >> >> On 10/8/07, kace wrote: >>> >>> >>> Thanks Abhi, >>> >>> I tried it in both >>> >>> >> itemLabel = "validate" action = >>> "go_validate" >>> icon = >>> "/styles/admin/ThemeOffice/copy.gif" inlineStyle="border:none"/> >>> and in >>> >>> >> inlineStyle="border:none;" /> >>> >>> and both are still producing borders.. >>> >>> ..kace >>> >>> >>> Abhi-10 wrote: >>> > >>> > use inlineStyle="border:none" in your image >>> > >>> > On 10/8/07, kace wrote: >>> >> >>> >> >>> >> Hi fellas, >>> >> >>> >> when using commandNavigation2 I use images instead of value but it >>> looks >>> >> ugly due to the border placed around the image and same when using >>> icons >>> >> in >>> >> jscookmenu. >>> >> >>> >> >>> >> Is it possible to remove the border around the icons or images that >>> are >>> >> used >>> >> within jscookmenu and commandNavigation2? >>> >> >>> >> Thanks, >>> >> >>> >> ..kace >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13107426 >>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >>> >> >>> >> >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13107554 >>> Sent from the MyFaces - Users mailing list archive at Nabble.com. >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13109052 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > > > The word "Impossible" itself says " I m possible". > Sushma > > > > > - > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user > panel and lay it on us. > -- View this message in context: http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13117509 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Antwort: [Trinidad] tr:inputListOfValues with modal out-of-the-box popup ?
..by the way, I noticed that the modal feature works with InputListOfValues when using IE 7. However, in FF 2 it is broken. Just for your information..I am not sure if this is already a known issue? My configuration: Trinidad 1.2.2, Facelets 1.1.12-SNAPSHOT, Seam 2.0RC1. Thanks, Wolfgang. [EMAIL PROTECTED] 09.10.2007 13:39 Bitte antworten an "MyFaces Discussion" An "MyFaces Discussion" Kopie Thema [Trinidad] tr:inputListOfValues with modal out-of-the-box popup ? Hi, we would like to use tr:inputListOfValues modally so that the main window is completely blocked while the inputListOfValues is active. Is this possible right now out-of-the-box? As far as I can see, it is not unless you start using your own Javascript after an onclick event. Correct? Thanks, Wolfgang.
[Trinidad 1.0.3] backward compatibility
Hello all. Can anyone tell me if Trinidad 1.0.3 is backward compatible with Trinidad 1.0.1? I have a reasonably complex legacy JSF application which I have tried porting to 1.0.3 for a number of reasons. Unfortunately the application fails miserably. Just taking a quick glance I can see MenuModel, PanelAccordian, TreeTable etc etc all fail in my application? Are there any major configuration changes I need to make to port to Trinidad 1.0.3 ? Currently all I have done is changed the dependency in my maven pom. Many thanks Andy
JSF, Tiles and Portal
Hi I'm porting an existing application to Weblogic Portal 10. This application uses JSF, Tomahawk and tiles. I was wondering if anyone has experience using JSF/My Faces and Tiles in a portlet. I am using Weblogic 10 with the versions of JSF RI and struts which are bundled with Weblogic 10 plus Tomahawk 1.1.6. I am using the tomahawk JspTilesViewHandlerImpl as the application view handler I am having trouble accessing stuff which is defined in the tiles XML file via a portlet. I therefore cooked up a simple example to test in detail what is going on: <%@ page language="java" contentType="text/html;charset=UTF-8" errorPage="/cfmu-error_portlet.jsp"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%> <%@ taglib prefix="naming" uri="http://bea.com/faces/adapter/tags-naming"; %> Portlet-Test When I access the pages directly (i.e. not through a portlet) through the tiles definitions I have no problems. http://localhost:7001/pages/portlet-test.faces It also works when I set up the portlet to access the layout.jsp directly It works as expected, if however I set up the portlet to go through the tiles definition: This does not work no content is generated. Weblogic reports an error that it cannot find the gridlayout.jsp, which controls the portlet layout, however I think this error message is misleading and actually it cannot load this JSP because there is a problem with the portlet's content, because if I switch the portlet to point to the JSP directly I do not get this error. So it looks like the tiles lookup in JspTilesViewHandlerImpl may be broken when accessed through the portal, Could this be something to do with when filters are being triggered? At the moment I have a workaround where for every portlet I have a wrapper.jsp that implements the stuff done in the tiles.xml file <%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%> This works fine, and unblocks the rest of my work, but it is nod ideal and I would like to be able to use the tiles.xml as normal anyone any ideas? Thanks in advance Sandy This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender.
[Trinidad] problem with filtering a sortable table
hi everybody! is there a suggested way for filtering the data-model of a sortable table (+ ppr)? (especially for triggering the re-indexing of the internal structures) filtering a table works very well. e.g. the following scenario: there is a table and a checkbox on the same page. the checkbox triggers (with the use of ppr) a filtering process. this scenario works very well - the collection which is associated with a table is filtered and redisplayed correctly. however, after adding support for sortable columns the following problem occurs: sorting works well - and the internal _baseIndicesList and _sortedIndicesList are correct (without the filtering functionality). (to summarize: if i don't combine them, filtering and sorting work correctly) combining these two features causes a wrong result. (sorting -> result is ok -> filtering -> result is wrong) after a quick debugging session i saw, that the referenced model of the table is ok. however, the internal _baseIndicesList and _sortedIndicesList aren't recalculated (they are out of sync compared to the referenced model). so the calculation of rangeEnd results in a wrong result (e.g. 0 -> an empty table is displayed - even though the model contains several entries) is there a way to solve this problem without changing trinidad? if no: i've several ideas to solve this problem (one of them is already tested!) - but i think this would be a topic for the dev-list. regards, gerhard
Re: jscoomkmenu / commandNavigation2 and images
try style="border:0px;" in img tag. it works for me. kace <[EMAIL PROTECTED]> wrote: tried style; that didnt work either. I would also like to get rid of the background color of the icon along with the border. anyone have another suggestion? ..kace Abhi-10 wrote: > > hey sorry this inlineStyle is an attribute of trinidad please check what > attribute is there for styling. > > On 10/8/07, kace wrote: >> >> >> Thanks Abhi, >> >> I tried it in both >> >> >> itemLabel = "validate" action = >> "go_validate" >> icon = >> "/styles/admin/ThemeOffice/copy.gif" inlineStyle="border:none"/> >> and in >> >> >> inlineStyle="border:none;" /> >> >> and both are still producing borders.. >> >> ..kace >> >> >> Abhi-10 wrote: >> > >> > use inlineStyle="border:none" in your image >> > >> > On 10/8/07, kace wrote: >> >> >> >> >> >> Hi fellas, >> >> >> >> when using commandNavigation2 I use images instead of value but it >> looks >> >> ugly due to the border placed around the image and same when using >> icons >> >> in >> >> jscookmenu. >> >> >> >> >> >> Is it possible to remove the border around the icons or images that >> are >> >> used >> >> within jscookmenu and commandNavigation2? >> >> >> >> Thanks, >> >> >> >> ..kace >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13107426 >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13107554 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/jscoomkmenu---commandNavigation2-and-images-tf4591491.html#a13109052 Sent from the MyFaces - Users mailing list archive at Nabble.com. The word "Impossible" itself says " I m possible". Sushma - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
[Trinidad 1.0.3] returnListener is broken
Hi, if i add a returnListener to my commandButton, which is defined in a facet from a table, the returnListener is not called anymore. He is a short example: I have tested this scenario with trinidad 1.0.2 and it works fine. The difference between these releases is amongst others the jira issue TRINIDAD-737. I have removed this changes from my trinidad 1.0.3 source and started a new build and now the returnListener is called again. Is it a problem how i defined the commandButton in my page or is it a bug that comes with TRINIDAD-737??? Hope anybody can help me... Cheers Sven -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
[Trinidad] maybe returnListener is broken in trinidad 1.0.3
Hi, if i add a returnListener to my commandButton, which is defined in a facet from a table, the returnListener is not called anymore. Here is a short example: I have tested this scenario with trinidad 1.0.2 and it works fine. The difference between these releases is amongst others the jira issue TRINIDAD-737. I have removed this changes from my trinidad 1.0.3 source and started a new build and now the returnListener is called again. Is it a problem how i defined the commandButton in my page or is it a bug that comes with TRINIDAD-737??? Hope anybody can help me... Cheers Sven -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
Re: [Trinidad]: is there a way to get an "onLoad" from a partial submit?
Hi Dave, There is a 'TrPage.getInstance ().getRequestQueue().addStateChangeListener(myCallback);' and a 'TrPage.getInstance().addDomReplaceListener(myCallback);' which might help you. More information here: http://myfaces.apache.org/trinidad/devguide/ppr.html#Javascript%20APIs%20for%20PPR HTH, Abhi On 10/9/07, Dave Syer <[EMAIL PROTECTED]> wrote: > > > Is there a way to get an "onLoad" from a partial submit? It seems like > there > should be a way to get a client-side callback when the Ajax request is > complete, so I can show a hidden panel. Is it possible? > > Alternatively, is there a way to add an actionListener to a panelPopup > component, which would probably be the most direct way to do what I > want? I > find it quite strange that it is not exposed as a standard attribute of > that > component anyway. Is there a reason why it wouldn't be possible to expose > as an attribute (or facet)? > -- > View this message in context: > http://www.nabble.com/-Trinidad-%3A-is-there-a-way-to-get-an-%22onLoad%22-from-a-partial-submit--tf4593436.html#a13113193 > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >
[Trinidad] tr:inputListOfValues with modal out-of-the-box popup ?
Hi, we would like to use tr:inputListOfValues modally so that the main window is completely blocked while the inputListOfValues is active. Is this possible right now out-of-the-box? As far as I can see, it is not unless you start using your own Javascript after an onclick event. Correct? Thanks, Wolfgang.
[Trinidad]: is there a way to get an "onLoad" from a partial submit?
Is there a way to get an "onLoad" from a partial submit? It seems like there should be a way to get a client-side callback when the Ajax request is complete, so I can show a hidden panel. Is it possible? Alternatively, is there a way to add an actionListener to a panelPopup component, which would probably be the most direct way to do what I want? I find it quite strange that it is not exposed as a standard attribute of that component anyway. Is there a reason why it wouldn't be possible to expose as an attribute (or facet)? -- View this message in context: http://www.nabble.com/-Trinidad-%3A-is-there-a-way-to-get-an-%22onLoad%22-from-a-partial-submit--tf4593436.html#a13113193 Sent from the MyFaces - Users mailing list archive at Nabble.com.
about jsf and tiles
Good days , i`m using myfaces 1.1.4 with spring and tiles. the following exception is happening: javax.faces.FacesException at de.mindmatters.faces.lifecycle.RenderResponsePhase.executePhase(RenderResponsePhase.java:53) at de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java:37) at de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:166) at de.mindmatters.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:226) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.NullPointerException at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:168) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221) at de.mindmatters.faces.lifecycle.RenderResponsePhase.executePhase(RenderResponsePhase.java:45) ... 21 more my web.xml 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";> contextConfigLocation /WEB-INF/applicationContext.xml com.sun.faces.verifyObjects true Set this flag to true if you want the JSF Reference Implementation to verify that all of the application objects you have configured (components, converters, renderers, and validators) can be successfully created. Default value is false. Poner a false cuando se ponga en produccion. com.sun.faces.validateXml true Set this flag to true if you want the JSF Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. Poner a false cuando se ponga en produccion. javax.faces.STATE_SAVING_METHOD client Indica donde queremos guardar el estado de la aplicacion. Poner a server cuando se ponga en produccion. antes probarlo! org.apache.myfaces.ALLOW_JAVASCRIPT true Este parametro le dice a MyFaces si se va a permitir renderizar javascript. Default: "true" org.apache.myfaces.PRETTY_HTML true si es verdadero, el renderizado html estara formateado, permitiendo que se pueda leer bien. En la fase de desarrollo, estara a true, cuando este en produccion, estara a false. 30 index.jsp org.springframework.web.context.request.RequestContextListener org.springframework.web.context.ContextLoaderListener Faces Servlet javax.faces.webapp.FacesServlet 1 TilesServet org.apache.struts.tiles.TilesServlet definitions-config /WEB-INF/tiles-defs.xml 2 Faces Servlet *.jsf MyFacesExtensionsFilter org.apache.myfaces.webapp.filter.ExtensionsFilter tiles-defs.xml http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";> faces-config.xml http://java.sun.com/dtd/web-facesconfig_1_1.dtd";> org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl org.springframework.web.jsf.DelegatingVariableResolver es * succesNoJS /paginas/listado.jsp error error.jsp index.jsp <% response.sendRedirect("busquedaDosCajas.jsf"); %> busquedaDosCajas is defined in tiles-defs.xml, it`s created by org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl. i think that`s the problem, but im not sure anybody could help me? regards a lot -- View this message in context: http://www.nabble.com/about-jsf-and-tiles-tf4593035.html#a13112179 Sent from the MyFaces - Users mailing list archive at Nabble.com.
AW: [Tobago] javascript libraries
Another question regarding javascript-libraries: When I place the prototype library Version 1.5.0 in the Tobago-resource-folder.../script/... it will be found, no matter if there is another library in the standard-theme jar. But when I place my own js-file in the same folder it can only be found when I place the javascript tag with the path to the file in the page like this: Is there a way, that I can tell the rendered to include all files in the script folder, no matter if they are already provided by Tobago? Regards, Mario -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Volker Weber Gesendet: Montag, 8. Oktober 2007 14:38 An: MyFaces Discussion Betreff: Re: [Tobago] javascript libraries Hi Mario, i don't know jquery. prototype.js 1.4.0 is currently bundled with tobago, this may be the problem when adding 1.5.0 also. But don't relay on the bundle, we plan to remove prototype.js in favor to dojo. Regards, Volker 2007/10/8, Schröder, Mario <[EMAIL PROTECTED]>: > > > > > Hi, > > > > I would like to do some fieldchecking of input fields with the > prototype-library. I'm using the Version 1.5.0. In my first step I just want > to find all input fields. It works with a simple html-page. So I designed a > page containing two input fields and a button with Tobago. But the Mozilla > Firefox throws an error: Prototype.BrowserFeatures has no properties. > Another favourite of mine is the jquery library. But it neither works with > Tobago. > > Has anyone tried to use a library like prototype or jquery with Tobago? > > > > Regards! > >
[Trinidad] maybe returnListener is broken in trinidad 1.0.3
Hi, if i add a returnListener to my commandButton, which is defined in a facet from a table, the returnListener is not called anymore. Here is a short example: I have tested this scenario with trinidad 1.0.2 and it works fine. The difference between these releases is amongst others the jira issue TRINIDAD-737. I have removed this changes from my trinidad 1.0.3 source and started a new build and now the returnListener is called again. Is it a problem how i defined the commandButton in my page or is it a bug that comes with TRINIDAD-737??? Hope anybody can help me... Cheers Sven
RE: Tomahawk, Trinidad and Struts-Tiles Problem
I have set the view-handler as alternate handler in web.xml... > > my Faces-Config: > = > > > > org.apache.myfaces.trinidad.core > > > Have you set the view-handler? org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl -- View this message in context: http://www.nabble.com/Tomahawk%2C-Trinidad-and-Struts-Tiles-Problem-tf4589373.html#a13111276 Sent from the MyFaces - Users mailing list archive at Nabble.com.