Re: Tomahawk's saveState with Trinidad
Hello Franscisco, You got a good catch there, but we cannot add that in either Trinidad core logic nor in Tomahawk's because it would create a dependency link between both libraries. However, I think it worth a wiki entry though, maybe about known issues between Trinidad and Tomahawk. Regards, ~ Simon On 4/23/07, Francisco Passos [EMAIL PROTECTED] wrote: Hello there. It took me a while to discover that Tomahawk's t:saveState component does not work with Trinidad unless org.apache.myfaces.trinidad.CACHE_VIEW_ROOTis set to false. I understand that in architectural terms, both things are mutually exclusive, but I'd recommend presenting a huge warning in the logs when a page contains a t:saveState and CACHE_VIEW_ROOT is not set to false. This way users will have an idea what is happening. Thank you, Francisco Passos
Re: how do I refresh a table component after selecting and deleting one or more rows ?
Hello, Even if the row is deleted in the database, maybe it still exists in the DataModel, can you provide a small code snip of your bean please? Also, are you using PPR or is it a full submit delete? Regards, ~ Simon On 4/20/07, Edmond B. Mulemangabo [EMAIL PROTECTED] wrote: Ritchie Francis wrote: What scope is the bean that populates the table? If the bean is session Thank you for replying. The bean is session scoped and I'd like to keep it session scoped. -- Edmond/
Re: how do I refresh a table component after selecting and deleting one or more rows ?
Ok so this is a PPR delete then, I assume you placed the delete button on each row of the table? If so then you have to add a partial target on the table to the button. On 4/20/07, Edmond B. Mulemangabo [EMAIL PROTECTED] wrote: Mike Kienenberger wrote: When you delete the row, you would also update the dataTable's backing list. It won't matter what the scope of the list is. Thank you Mike. I did update the dataTable's backing list as well as the underlying database; I was able to monitor the delete operation using a debugger. Still the page isn't refreshed unless I reload it completely using a navigation rule that forces the page to reload. My application is built in such way that forcing the page to reload completely using a navigation rule would lead to some valuable data getting lost; I'd like to keep the page as is and just refresh the table component to make it reflect the actual state after deleting rows. Note : the dataTable's backing bean is session scoped. -- Edmond/
Re: Installing Maven Trinidad Archetype
Hello, mvn install in the plugins directory to build it. However, I don't see why this is needed, if this is really the issue since he built plugin can be found in maven repos. On 4/14/07, Andy Birchall [EMAIL PROTECTED] wrote: Ah, I wasn't aware that I had to do that. I thought that these instructions were building the Archetype plugin: http://wiki.apache.org/myfaces/Trinidad_Archetype No? Can you point me to the page which tells me how to build the plugins? Thanks a lot Andy On 4/14/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: did you build the plugins as well ? On 4/13/07, Andy Birchall [EMAIL PROTECTED] wrote: Yes I did. I built it using the instructions here: http://wiki.apache.org/myfaces/Building_ADF_With_Maven and it all built fine. Thanks On 4/13/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: did you build trinidad ? On 4/13/07, Andy Birchall [EMAIL PROTECTED] wrote: Hello, I've been trying to install the Trinidad Archetype to my Maven 2 installation but without success. I have followed the instructions on here: http://wiki.apache.org/myfaces/Trinidad_Archetype i.e. I have checked out the source and typed 'mvn install' in the trinidad-archetype directory But this results in this error: C:\Temp\trinidad-archetypemvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.myfaces.trinidadbuild ArtifactId: maven-plugin-parent Version: 1.0.1-incubating-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.myfaces.trinidadbuild:maven-plugin-parent:pom:1.0.1-incubating-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.myfaces.trinidadbuild:maven-plugin-parent for project: org.apache.myfaces.trinidadbuild:myfaces-arc hetype-trinidad:maven-plugin:1.0.1-incubating-SNAPSHOT So it seems it is looking for the Trinidad artifact in the central maven repository but obviously can't find it. Do I have to set another repository for it to look in to download? I'm probably missing something obvious but can't seem to find a solution. Sorry, I'm pretty new to this. Thanks Andy -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: Skinning Tags
Good to know! It seems that I missed that important update. On 4/2/07, Jeanne Waldman [EMAIL PROTECTED] wrote: Simon/Gary, We can inherit from any skin in Trinidad already. You use the extends element in the trinidad-skins.xml file and the value that goes in there is the skin-id of the skin you want to extend.. I'll add a demo if there isn't one already. Thanks, Jeanne Simon Lessard wrote: Hello Gary We plan to add inheritance from any skin, not just from simple in the future, so you'll be able to override just what you want. Regards, ~ Simon On 3/30/07, Matt Cooper [EMAIL PROTECTED] wrote: It would be very cool to have a page or set of pages in the demo project that served as a skin generator where the user could create a skin using a GUI and not have to know anything about CSS. If anyone is looking for a project, this would be a very cool one to donate. ;-) On 3/30/07, Gary VanMatre [EMAIL PROTECTED] wrote: From: Jeanne Waldman [EMAIL PROTECTED] You should be able to create an html file from the skin-selectors.xml file by running 'mvn site'. - Jeanne I really like this global skinning concept but it would be nice if there was a way to just override a few things in a skin. From what I understand, it's a all of nothing type of approach (speaking from the ADF 10.1.3.2side) and only an option for the simple skin. I'd like to be able to pick an existing skin but only override a couple of things. This would be very handy for the CSS challenged. Is this possible in Trinidad? Gary Simon Lessard wrote: There's two places: For the full list, if you downloaded the source files, in /trinidad/src/site/xdoc/skin-selectors.xml For the old list (from ADF Faces): http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/j sf/doc/skin-selectors.html Regards, ~ Simon On 3/30/07, Chris Hane wrote: I've started to edit a custom skin for Trinidad. I thought I saw somewhere a tag list for each component. And of course I can't find it now that I'm looking for it. Could someone point me to the page that lists the elements for each component that can be skinned? Thanks, Chris
Re: Skinning Tags
There's two places: For the full list, if you downloaded the source files, in /trinidad/src/site/xdoc/skin-selectors.xml For the old list (from ADF Faces): http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html Regards, ~ Simon On 3/30/07, Chris Hane [EMAIL PROTECTED] wrote: I've started to edit a custom skin for Trinidad. I thought I saw somewhere a tag list for each component. And of course I can't find it now that I'm looking for it. Could someone point me to the page that lists the elements for each component that can be skinned? Thanks, Chris
Re: Skinning Tags
Hello Gary We plan to add inheritance from any skin, not just from simple in the future, so you'll be able to override just what you want. Regards, ~ Simon On 3/30/07, Matt Cooper [EMAIL PROTECTED] wrote: It would be very cool to have a page or set of pages in the demo project that served as a skin generator where the user could create a skin using a GUI and not have to know anything about CSS. If anyone is looking for a project, this would be a very cool one to donate. ;-) On 3/30/07, Gary VanMatre [EMAIL PROTECTED] wrote: From: Jeanne Waldman [EMAIL PROTECTED] You should be able to create an html file from the skin-selectors.xml file by running 'mvn site'. - Jeanne I really like this global skinning concept but it would be nice if there was a way to just override a few things in a skin. From what I understand, it's a all of nothing type of approach (speaking from the ADF 10.1.3.2side) and only an option for the simple skin. I'd like to be able to pick an existing skin but only override a couple of things. This would be very handy for the CSS challenged. Is this possible in Trinidad? Gary Simon Lessard wrote: There's two places: For the full list, if you downloaded the source files, in /trinidad/src/site/xdoc/skin-selectors.xml For the old list (from ADF Faces): http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/j sf/doc/skin-selectors.html Regards, ~ Simon On 3/30/07, Chris Hane wrote: I've started to edit a custom skin for Trinidad. I thought I saw somewhere a tag list for each component. And of course I can't find it now that I'm looking for it. Could someone point me to the page that lists the elements for each component that can be skinned? Thanks, Chris
Re: Debuging CSS
Hello Chris, Try to set the org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION context parameter to true while you're debugging CSS. This will generate only the full version of the selectors, Here's the full doc: /** * Disables optimizations that are normally performed by the * Trinidad Renderers to reduce content size. * p * This Boolean property controls whether or not Trinidad Renderer * implementations should attempt to reduce the size of generated * content, for example, by compressing style class names. These * optimizations are enabled by default. In general, * clients should not need to disable these optimizations. However, * clients that want to disable this functionality for testing or * debugging purposes can do so by setting this property to Boolean.TRUE. */ static public final String DISABLE_CONTENT_COMPRESSION = org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION; On 3/29/07, Chris Hane [EMAIL PROTECTED] wrote: Is there a way to reverse map the generated CSS (or maybe generate the CSS files with better names). For example, I have the following css on an html element and am trying to track down where each of these is defined. Not being a CSS expert it would be nice to be able even in a debug mode to generate the CSS elements with more descriptive names so I can quickly see what I need to change. .xr, .xu, .x4j {MyCSS-des... (line 25) color:#00; font-family:Browallia New,Arial,Helvetica,Geneva,sans-serif; font-size:10pt; font-weight:normal; padding:0px 8px 0px 0px; text-align:left; } Thanks, Chris
Re: IDE support for Trinidad Facelets
Hello, As mentioned on MyEclipse forums, Facelets support will be added with next major release: From : http://www.myeclipseide.com/index.php?name=PNphpBB2file=viewtopict=9797postdays=0postorder=ascstart=135 Guys it has been confirmed by management that we will be improving the JSF tooling in 5.5 and adding XHTML support as our first steps towards Facelets. We don't be claiming full facelets support in 5.5, but things should get better, then I believe our goal is full Facelets by 6 or 6.1 In the meantime you could use Exadel for Facelets support or, if you don't mind the little extra work, it works nice in current MyEclipse as well as JDeveloper too if you setup the path to facelets.tld correctly. Regards, ~ Simon On 3/23/07, Brian Smith [EMAIL PROTECTED] wrote: I use Netbeans 5.5 with the Facelets plugin. It supports code completion for JSF component libraries. Download Netbeans 5.5 http://www.netbeans.org/ Download the Facelets Plugin https://nbfaceletssupport.dev.java.net/features.html The facelets plugin is still in beta on its 5th development snapshot but is pretty decent. If you have issues with the plugin, send them to the mailing list (you first have to join the project) https://nbfaceletssupport.dev.java.net/servlets/ProjectMailingListList On 3/23/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: I am using plain eclipse and an xml editor, therefore no auto completion feature :-) Perhaps you wanna try this editor: http://www.eclipse.org/webtools/jsf/main.php I gave it a shot last year and it looked promising, not sure if it supports / will support Facelets. Join the mailing list and ask :-) -M On 3/23/07, Kuno Baeriswyl [EMAIL PROTECTED] wrote: Hello everybody! I use MyEclipseIDE 5.1 for development. The JSP Editor provided autocompletion and suggestion feature including taglib documentation, even for trinidad. I know that MyEclipse doens't fully support xhtml at the moment. Anyway, I've got the suggestion for the standard JSF components. But I'm missing the taglib documentation and the suggestion feature for the trinidad components. Is there any alternative? Which IDE do you use? And if you used Eclipse, did get working those features? Thanks for your suggestions! Kuno -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: Trinidad ADF with JDK 1.6
Hello all, I can use Trinidad with Java 6 without any issue here and was able to do so for the past 8 months, so I doubt it's a Trinidad issue. Regards, ~ Simon On 3/20/07, Himanshu Purandare [EMAIL PROTECTED] wrote: Yes, I do. We have pages that have Trinidad as well as Tomahawk components on the same page. And all that works fine with Java 5. - Himanshu On 20/03/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Interesting. I didn't think Tomahawk and Trinidad could be used in the same webapp, or at least on the same JSF page. Do you have components from both libraries on the same pages? Himanshu Purandare [EMAIL PROTECTED] 03/20/2007 11:08 AM Please respond to adffaces-user@incubator.apache.org To adffaces-user@incubator.apache.org cc Subject Re: Trinidad ADF with JDK 1.6 Eric, Its MyFaces Tomahawk. I'm still not sure if we can run Trinidad ADF with Java 6.0 - Himanshu On 20/03/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Himanshu, When you say, Our current applications which are now using myfaces along with Trinidad, do you mean MyFaces Core or MyFaces Tomahawk? Himanshu Purandare [EMAIL PROTECTED] 03/19/2007 03:52 PM Please respond to adffaces-user@incubator.apache.org To adffaces-user@incubator.apache.org cc Subject Re: Trinidad ADF with JDK 1.6 We are using JBoss 4.0 as our Application server. Our past applications use myfaces (without Trinidad ADF) and they seem to work fine with no issues on servers with Java 6.0 Our current applications which are now using myfaces along with Trinidad ADF has issues when deployed with Java 6.0 Thanks, Himanshu On 19/03/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Out of curiosity, which application server are you using with Java 6.0? Himanshu Purandare [EMAIL PROTECTED] 03/19/2007 03:31 PM Please respond to adffaces-user@incubator.apache.org To adffaces-user@incubator.apache.org cc Subject Re: Trinidad ADF with JDK 1.6 We have almost all of our servers upgraded to Java 6.0 Hence in order to run our applications on the servers, we need to make sure that they run seamlessly on Java 6.0 That is the reason we are need our apps to work on Java 6.0 Hope this explains the reason of our shift from Java 5.0 to 6.0 Thanks, Himanshu On 19/03/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: I am not using it yet. That isn't a recommendation. Let me ask different, are the strong needs for Java6, that you want to run your project on Java6`? -M On 3/19/07, Himanshu Purandare [EMAIL PROTECTED] wrote: Thanks Matthias, But does that mean that its a bit early for us to upgrade to JDK 1.6 at the moment? Could you please advise as it will help us to take a decision. Thanks, Himanshu On 19/03/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: Hi, I doubt that we have that many adapters of jdk1.6 here (yet). I don't mind to have it working w/ jdk1.6, but I personally think the reqiurements should stay w/ jdk 1.5, since also the curren java ee is depending on that thx, Matthias On 3/19/07, Himanshu Purandare [EMAIL PROTECTED] wrote: Hi, This is Himanshu Purandare from Nemours. We are currently working on a project which involves technologies like Trinidad ADF along with Myfaces, Hibernate and Oracle. The project was working fine with JDK 1.5 without any issues. We upgraded to JDK 1.6 and it started complaining. It gave us an errors like following: WARNING: The TrinidadFilter has not been installed. Apache Trinidad requires this filter for proper execution. 2007-03-19 10:27:14,362 ERROR [STDERR] Mar 19, 2007 10:27:14 AM org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase getRenderer WARNING: Renderer 'org.nemours.ui.faces.ExtendedDocumentRenderer' not found for component family 'org.nemours.ui.faces.Document' 2007-03-19 10:27:14,378 ERROR [STDERR] Mar 19, 2007 10:27:14 AM org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl WARNING: Could not find renderer for CoreExtendedDocument[UIXFacesBeanImpl, id=_idJsp0], rendererType = org.nemours.ui.faces.ExtendedDocumentRenderer 2007-03-19 10:27:14,378 ERROR [STDERR] Mar 19, 2007 10:27:14 AM org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase getRenderer WARNING: Renderer 'org.apache.myfaces.HtmlTagRenderer' not found for component family 'javax.faces.Output' 2007-03-19 10:27:14,659 INFO [STDOUT] 10:27:14,659 INFO [[/coast]] No
Re: Skinning / Detecting Style-Sheet-Changes
Hello Felix, I don't think we support that feature yet. Personally I have to do the same as you when working on a skin. Regards, ~ Simon On 3/19/07, Felix Gonschorek [EMAIL PROTECTED] wrote: Hello all, i am trying to implement my own style for trinidad components. but for every change i make to the css, i have to stop tomcat, clear the cache folder and then start tomcat again. if i try to delete the cached css, the file is locked and can't be deleted. Changes to the css are not recognized immediately. i have played around with some web.xml config-settings, but i haven't had success yet. this way it takes a lot of time to create a whole new style, is'nt there a possibility to see immediately results after changes to the css an a page reload? does sombody have a hint for me? i would greatly appreciate some help. thanks in advance felix gonschorek
Re: Trinidad table - remove a row
Oh, sorry, but it's still possible!!! With a bit more work though. In the page: tr:table binding=#{myBean.table} ... ... /tr:table In the bean: private UIComponent table; public UIComponent getTable() { return table; } public void setTable(UIComponent table) { this.table = table; } public String myAction() { RequestContext.getCurrentInstance().addPartialTarget(table); // ... } On 2/13/07, Henk Vanhoe [EMAIL PROTECTED] wrote: Henk Vanhoe wrote: Thank you for your answer! I have done some more tests and I noticed that when I push the delete-button the correct contact is removed from the model (the smallTable-list), but these changes are not correctly translated in the HTML-page... But when I replace my actionListener by an action method (as you do in your code), the changes are correctly displayed (as if with an actionlistener the view were not synchronized with the model??) Unfortunately with an actionListener it is impossible to use partial page rendering... I meant : Unfortunately with an *** action method *** it is impossible to use partial page rendering... Is there a way to force the view to be redisplayed with the correct data without losing the possibility to use partial page rendering? Regards, Henk Matthias Wessendorf wrote: What I do is: tr:column f:facet name=header tr:outputText value=-Delete-/ /f:facet tr:commandLink id=delete text=Delete action=#{all.deleteUser} tr:setActionListener from=#{user} to=#{all.toDelete}/ /tr:commandLink /tr:column in the #{all} bean: private User toDelete = null; (+set/get) and public String deleteUser() { this.getUserService().removeUser(toDelete); return (all); } the user service here is injected w/ spring. The demo is available here: http://code.google.com/p/facesgoodies/ On 2/13/07, Henk Vanhoe [EMAIL PROTECTED] wrote: Hi, I'm trying to create a (trinidad) table in which it is possible to remove a row. Next to each row, a delete-button is displayed. However, each time I push the delete button, a wrong row is deleted (for instance, when I push the delete button next to the first row, the third row is removed)! Does anyone have an idea why this may be happening??? Regards, Henk JSF-code: tr:table var=row value=#{tableBean.smallTable} rowBandingInterval=1 binding=#{tableBean.smallTableBinding} tr:column sortProperty=naam sortable=true f:facet name=header tr:outputText value=Naam / /f:facet tr:inputText id=voornaam value=#{row.naam}/ /tr:column tr:column sortProperty=voornaam sortable=true f:facet name=header tr:outputText value=Voornaam / /f:facet tr:inputText value=#{row.voornaam} / /tr:column tr:column sortProperty=leeftijd sortable=true f:facet name=header tr:outputText value=Leeftijd / /f:facet tr:inputText value=#{row.leeftijd} / /tr:column tr:column tr:commandLink id=removeContact text=Remove actionListener=#{tableBean.removeContact} immediate=true / /tr:column /tr:table Managed bean: public class TableBean { private ListContact smallTable; private UIXTable smallTableBinding; public TableBean() { this.smallTable = new ArrayListContact(); Contact c1 = new Contact(); c1.setNaam(Vandam); c1.setVoornaam(Alain); c1.setLeeftijd(33); smallTable.add(c1); Contact c2 = new Contact(); c2.setNaam(Tanghe); c2.setVoornaam(Sammy); c2.setLeeftijd(36); smallTable.add(c2); Contact c3 = new Contact(); c3.setNaam(Laplasse); c3.setVoornaam(Bucky); c3.setLeeftijd(42); smallTable.add(c3); } public void removeContact(ActionEvent event) throws Exception { logger.info(Inside TableBean.removeContact()); Contact contact = (Contact) smallTableBinding.getRowData(); Collection contacten = (Collection) smallTableBinding.getValue(); contacten.remove(contact); } //Getters, setters and other methods... } faces-config: managed-bean managed-bean-nametableBean/managed-bean-name managed-bean-classbe.kava.jsfdemo.table.TableBean /managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean
Re: RE : AW: templating mecanism ?
Hello, Unless you use JSF 1.2, most pure JSP templating framework might fail under some circumstances. You could checkout Tiles and try to have it work with Trinidad, but you should really go with Facelet instead. If your IDE whine because it cannot find Facelet's TLD, then do a Google search for Facelet tld and you'll find out that Exadel as released such TLD file to fool IDE and make them more Facelet friendly. Regards, ~ Simon On 2/1/07, Adrian Gonzalez [EMAIL PROTECTED] wrote: Thank you very much But I really need to use JSP for rendering (not facelets) - my IDE doesn't support JSF design with facelets syntax. Do you know a templating solution for JSP engine ? --- Döring Markus [EMAIL PROTECTED] a écrit : Hello, Trinidad comes with a buildin Facelets library and Facelets has a very powerfull templating mechanism. Just have a look at it and test if it's what you need. Greetings Markus -Ursprüngliche Nachricht- Von: Adrian Gonzalez [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 1. Februar 2007 14:32 An: adffaces-user@incubator.apache.org Betreff: templating mecanism ? Hello, I would like to know if there's a templating mecanism provided by trinidad (or usable with trinidad) and usable for JSP rendering ? I've tried Shale Tiles extension with ADF Faces, and it doesn't work, so I would like to know if there's a substitute. Moreover I don't want to use sitemesh engine for composition (cause of the parsing performance impact). The region tags enable composition but not templating I think. Thanks __ _ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re: Table refresh problem when using dialog
Hello, Thanks for confirming that I messed up when I tried it, I'll retry it where I used the manual call. :) On 1/10/07, magdolna holitska [EMAIL PROTECTED] wrote: Hello, I tried both Venkata's and Simon's solutions and they both worked. Thank you all for your help! Regards, Magdolna From: venkata guddanti [EMAIL PROTECTED] Reply-To: adffaces-user@incubator.apache.org To: adffaces-user@incubator.apache.org Subject: Re: Table refresh problem when using dialog Date: Tue, 9 Jan 2007 14:01:02 -0700 Hi Magdolna, Can you change the partialTriggers=cmdIn cmdOut to partialTriggers=data:cmdln cmdOut and see if it works? This is because the table is a naming container. If this does not work, I believe it might be related to the fact that the currency is established for the table when the commandLink action is invoked and the clientId for the commandLink includes the currency. Regards, Venkata On 1/9/07, magdolna holitska [EMAIL PROTECTED] wrote: Hi all, Did anyone had a chance to have a look at the issue I am having below? Here are a few more details: In the example below I am trying to add one row to a table using PPR. The command link that opens the dialog is inside the table, in each row. When the dialog returns a new row should be added to the table, but for some reason this isn't happening. However, if I refresh with the browser, the row is added. Any ideas? Thanks, Magdolna From: magdolna holitska [EMAIL PROTECTED] Reply-To: adffaces-user@incubator.apache.org To: adffaces-user@incubator.apache.org Subject: Table refresh problem when using dialog Date: Fri, 05 Jan 2007 12:01:27 -0500 Hello, I have a table containing numbers and a link: Add New. When the user clicks on the link, a new number will be added to the table. The problem I have is: If I have the link outside the table, the number will be added to the list and the table will be refreshed properly. At the other hand, when I place the command link inside the table, the number will be added to the list, but the table is not refreshed with the new value. I only noticed this behaviour when I am using it with dialogs. If I just use an ActionEvent instead of a ReturnEvent, it works fine. This is just a simple example that I prepared to point out the issue, but of course in the real application I do have values that I am passing and retrieving from the dialog. I also pasted the code below. Thank you in advance. Regards, Magdolna Example.xhtml: tr:commandLink id=cmdOut text=Add New useWindow=true windowWidth=300 windowHeight=400 partialSubmit=true action=dialog:numDialog returnListener=#{exampleBean.numDialogReturned}/ tr:table id=data value=#{exampleBean.numList} var=data partialTriggers=cmdIn cmdOut width=20% tr:column id=userAction headerText=User Action tr:commandLink id=cmdIn text=Add New useWindow=true windowWidth=300 windowHeight=400 partialSubmit=true action=dialog:numDialog returnListener=#{exampleBean.numDialogReturned}/ /tr:column tr:column id=num headerText=Number tr:outputText value=#{data}/ /tr:column /tr:table ExampleBean.java: private ListInteger numList; private int num = 100; public ListInteger getNumList() { if (numList == null) { numList = new ArrayList(); } System.out.println(numList: (+numList.size()+): +numList); return numList; } public void numDialogReturned(ReturnEvent event) { System.out.println(--- RETURN); Boolean isAdd = (Boolean)event.getReturnValue(); if (isAdd) numList.add(new Integer(num++)); } // DIALOG public void performOK(ActionEvent e) { logger.debug(Click OK ); RequestContext.getCurrentInstance ().returnFromDialog(true,null); } public void performCancel(ActionEvent e) { logger.debug(Click Cancel ); RequestContext.getCurrentInstance().returnFromDialog(false,null); } NumDialog.xhtml tr:form tr:panelFormLayout labelWidth=40% tr:panelButtonBar tr:commandButton text=OK actionListener=#{equipmentDetailBean.performOK}/ tr:commandButton text=Cancel immediate=true actionListener=#{equipmentDetailBean.performCancel}/ /tr:panelButtonBar /tr:panelFormLayout /tr:form _ Discover Live.ca http://live.ca/, the search engine by the creators of Windows Live Messenger http://www.live.com/?mkt=en-ca _ Share your opinion and enter to win! Please complete this survey to enter into a draw for a grand prize of $500 or
Re: Partial Page Rendering in tr:table
Hello, Hmm that page is ambiguous, but it really means exactly the opposite of what you read! The No-code part here mean that you don't have to code anything, it,s all built in. Regards, ~ Simon On 1/10/07, Anshuman Abhishek Roy [EMAIL PROTECTED] wrote: Hi, I had earlier tried to use partial triggers in the tr:table component it seems that Partial Page Rendering is not supported in tr: table according to this link: http://incubator.apache.org/adffaces/spec-diff.html is there any work around for this? regards, Anshuman Disclaimer This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses. Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email. Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.
Re: Table refresh problem when using dialog
Hello Magdolna, I don't think the naming container trick will work as I already tried it in the past. Then again I might have messed up while trying. I was able to achieve refresh with a manual call to TrinidadContext.addPartialTarget(tableComponent). It's really a poor man solution, but it works. I think that issue deserve a JIRA entry. Regards, ~ Simon On 1/9/07, venkata guddanti [EMAIL PROTECTED] wrote: Hi Magdolna, Can you change the partialTriggers=cmdIn cmdOut to partialTriggers=data:cmdln cmdOut and see if it works? This is because the table is a naming container. If this does not work, I believe it might be related to the fact that the currency is established for the table when the commandLink action is invoked and the clientId for the commandLink includes the currency. Regards, Venkata On 1/9/07, magdolna holitska [EMAIL PROTECTED] wrote: Hi all, Did anyone had a chance to have a look at the issue I am having below? Here are a few more details: In the example below I am trying to add one row to a table using PPR. The command link that opens the dialog is inside the table, in each row. When the dialog returns a new row should be added to the table, but for some reason this isn't happening. However, if I refresh with the browser, the row is added. Any ideas? Thanks, Magdolna From: magdolna holitska [EMAIL PROTECTED] Reply-To: adffaces-user@incubator.apache.org To: adffaces-user@incubator.apache.org Subject: Table refresh problem when using dialog Date: Fri, 05 Jan 2007 12:01:27 -0500 Hello, I have a table containing numbers and a link: Add New. When the user clicks on the link, a new number will be added to the table. The problem I have is: If I have the link outside the table, the number will be added to the list and the table will be refreshed properly. At the other hand, when I place the command link inside the table, the number will be added to the list, but the table is not refreshed with the new value. I only noticed this behaviour when I am using it with dialogs. If I just use an ActionEvent instead of a ReturnEvent, it works fine. This is just a simple example that I prepared to point out the issue, but of course in the real application I do have values that I am passing and retrieving from the dialog. I also pasted the code below. Thank you in advance. Regards, Magdolna Example.xhtml: tr:commandLink id=cmdOut text=Add New useWindow=true windowWidth=300 windowHeight=400 partialSubmit=true action=dialog:numDialog returnListener=#{exampleBean.numDialogReturned }/ tr:table id=data value=#{exampleBean.numList} var=data partialTriggers=cmdIn cmdOut width=20% tr:column id=userAction headerText=User Action tr:commandLink id=cmdIn text=Add New useWindow=true windowWidth=300 windowHeight=400 partialSubmit=true action=dialog:numDialog returnListener=#{exampleBean.numDialogReturned}/ /tr:column tr:column id=num headerText=Number tr:outputText value=#{data}/ /tr:column /tr:table ExampleBean.java: private ListInteger numList; private int num = 100; public ListInteger getNumList() { if (numList == null) { numList = new ArrayList(); } System.out.println(numList: (+numList.size()+): +numList); return numList; } public void numDialogReturned(ReturnEvent event) { System.out.println(--- RETURN); Boolean isAdd = (Boolean)event.getReturnValue(); if (isAdd) numList.add(new Integer(num++)); } // DIALOG public void performOK(ActionEvent e) { logger.debug(Click OK ); RequestContext.getCurrentInstance ().returnFromDialog(true,null); } public void performCancel(ActionEvent e) { logger.debug(Click Cancel ); RequestContext.getCurrentInstance ().returnFromDialog(false,null); } NumDialog.xhtml tr:form tr:panelFormLayout labelWidth=40% tr:panelButtonBar tr:commandButton text=OK actionListener=#{equipmentDetailBean.performOK}/ tr:commandButton text=Cancel immediate=true actionListener=#{equipmentDetailBean.performCancel}/ /tr:panelButtonBar /tr:panelFormLayout /tr:form _ Discover Live.ca http://live.ca/, the search engine by the creators of Windows Live Messenger http://www.live.com/?mkt=en-ca _ Share your opinion and enter to win! Please complete this survey to enter into a draw for a grand prize of $500 or one of twenty $50 cash prizes.
Re: Problem using tr:train with Facelets 1.1.11
Yeah, I'll add some logging message to fix that. On 12/19/06, Adam Winer [EMAIL PROTECTED] wrote: Graeme, It's not a Facelets problem - the issue is that your train in the second example isn't inside of a form. So, easy to fix. But the train is being very bad here - it should be logging a descriptive warning, not blowing up. If you could log a JIRA issue on that problem so we don't lose track of it, that'd be much appreciated. Thanks, Adam On 12/13/06, Graeme Steyn [EMAIL PROTECTED] wrote: Good Afternoon, I am currently experiencing a problem with the use of the Trinidad tr:train component, tomahawk (t:inputDate) and facelets 1.1.11. I am using a snapshot built today from the faces-1_2-061113 branch in SVN. The problem that I am experiencing is that in the first test instance below (example 1), the use of tr:train works correctly and renders the train correctly. However, when I embed the tr:train in a facelets template, as in example 2, I get the following error: java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.core.desktop.TrainRenderer $Train.init(TrainRenderer.java:913) at org.apache.myfaces.trinidadinternal.renderkit.core.desktop.TrainRenderer .encodeAll(TrainRenderer.java:175) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.j ava:181) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComp onentBase.java:712) at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollect ion.java:490) at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive (UIXComponentBase.java:1258) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComp onentBase.java:732) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:5 78) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper .java:178) at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderVi ew(ViewHandlerImpl.java:171) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase. java:133) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at org.apache.catalina.core.ApplicationFilterChain.servletService(Applicati onFilterChain.java:397) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:184) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoF ilter(TrinidadFilterImpl.java:327) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterI mpl(TrinidadFilterImpl.java:291) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(T rinidadFilterImpl.java:214) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilte r.java:90) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:216) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:184) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil ter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:216) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:184) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:276) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java :566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 36) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java :566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java :566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipelin e.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java :566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 36) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at
Re: Skinning the Details Stamp and the Disclosed Symbol
Hello mark, Why don't you make your own skin and override those selectors? It's hard coded only for the simple skin. ~ Simon On 11/22/06, Mark Robinson [EMAIL PROTECTED] wrote: Hi, I'm trying to change the symbol used on the disclosure icons(it's a unicode arrow right now). It's hard coded into the BaseDesktopSkin.java file and is set when Trinidad starts up. So what I'm asking is what is the best way to change that. So far I can change it programmatically in a bean with: Skin mySkin= SkinFactory.getFactory().getSkin(FacesContext.getCurrentInstance(), mizar.desktop); mySkin.registerIcon(AFDetailUndisclosedIcon, new TextIcon(+)); Now, that's not really the most elegant way to change it, but it does work. So is there a better way? Mark
Re: Customizing the asterisk on required fields
Hello, The color and icon are customizable in the skin using the selectors: .AFRequiredIconStyle // for color .AFRequiredIcon:alias // to change the icon However I don't think the position can be controlled. Regards, ~ Simon On 11/21/06, Daniel Hannum [EMAIL PROTECTED] wrote: Hi, sorry if this has been asked before. I didn't see a good search feature for the archives. I need to customize the appearance of the asterisks on required fields. I think it's great that it puts the asterisks there for you, but it still isn't right. Currently, I'm using a panelGrid (2 columns). outputLabel inputText outputLabel inputText outputLabel inputText Problem is that the asterisks on required fields go before the inputText, so they don't align right anymore. Another option is to not use panelGrid and just use one big component for both (the label attribute), but then the fields don't line up right vertically. What I want is to make the asterisk appear at the end of the inputText or on the label or anywhere other than where it is now. Also the asterisk is black, and I want it to be red. Are these things customizable in styles somewhere? Thanks. Dan
Re: inputText required and navigation
Hello, The current page should not be reloaded if the commandNavigationItem is immediate. Can you post a code snippet of your page please? Did you make the inputText immediate as well, if so that's the problem, it should not be? Regards, ~ Simon On 11/15/06, d sanders [EMAIL PROTECTED] wrote: That gets rid of the popup, but now I get an error on the required field itself and via tr:messages. David --- Adam Winer [EMAIL PROTECTED] wrote: Try setting immediate=true on the commandNavigationItem. -- Adam On 11/15/06, d sanders [EMAIL PROTECTED] wrote: Hello, I get validation popups on empty tr:inputText fields that have required=true when using panelPage/commandNavigationItem/nodeStamp to navigate to a different page. Is this to be expected? I am not attempting to submit my form, just navigate to another page. Sponsored Link Compare mortgage rates for today. Get up to 5 free quotes. Www2.nextag.com Sponsored Link $420k for $1,399/mo. Think You Pay Too Much For Your Mortgage? Find Out! www.LowerMyBills.com/lre
Re: Custom Converter not getting called
I think that's might be your issue. Did yo utest with a non-null value to see if the converter get called? I'll check the spec but I think null never get converted nor validated except for required=true fields. On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Great, thanks for confirming the client-side stuff for me. Yes, 'myProperty' is a String. I am not trying to convert from one type to another, just trying to change the value if needed (i.e., if the value is null, then display the String -- instead). Dave -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 11:45 AM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called No, you shouldn't be required to do anything differently at all. If there's no client converter, it eliminates client-side validation for that element, but that's it. BTW, is myProperty of type String? There might be a bug where Strings aren't getting passed through Converters. -- Adam On 11/9/06, David Brunette [EMAIL PROTECTED] wrote: Hi everybody. I am trying to create and use a custom converter that will change the value for an inputText based on some criteria. I have written the Java class (implementing Converter), and setup the configuration in my faces-config.xml. With the following test, everything worked just as I expected it to work: h:inputText label=The Property: value=#{myBean.myProperty} f:converter converterId=converter.MyStringValueConverter / /h:inputText But when I change that test to use a tr:inputText / instead of the regular JSF h:inputText /, my custom converter was not being called when the page is rendered. Is there anything that I need to do different to get this to work with a Trinidad inputText if it already works for a regular JSF inputText? I know that Trinidad has the capability to have client-side converters and validators, but I am simply trying to use my same, simple converter class with the Trinidad component. If I am using the Trinidad component, am I forced to use a client-side converter? Thanks... Dave The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Re: Custom Converter not getting called
Hmmm let me think... You could override the renderers, but this is tedious for something looking so trivial... Did you try an empty String value by any chance? I'm not sure of the behavior, that could be a potential solution... Also, what kind of component are we talking about? Trinidad's select* components have an unselectedLabel (unselectedText?) or something attribute (gee I really gotta learn all those attribute names by heart). I never quite understood why the spec did that with converters and null values... Regards, ~ Simon On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Aha... I think you've got it right, Simon. I had not tried it with a non-null value yet. I just set a default value for myProperty and tried it again. Sure enough, the converter was called as expected. Other than using required=true, is there a way to get the converter to be called with a null value when the page is rendered? If I can't do that, then the only other option I can think of for my scenario is to have TWO components on the page (one that renders the value, and another that renders --), and set the rendered= attribute accordingly so that only one is shown based on the value being null or not-null. This works, but it does not seem very clean to me. Dave -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 12:07 PM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called I think that's might be your issue. Did yo utest with a non-null value to see if the converter get called? I'll check the spec but I think null never get converted nor validated except for required=true fields. On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Great, thanks for confirming the client-side stuff for me. Yes, 'myProperty' is a String. I am not trying to convert from one type to another, just trying to change the value if needed (i.e., if the value is null, then display the String -- instead). Dave -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 11:45 AM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called No, you shouldn't be required to do anything differently at all. If there's no client converter, it eliminates client-side validation for that element, but that's it. BTW, is myProperty of type String? There might be a bug where Strings aren't getting passed through Converters. -- Adam On 11/9/06, David Brunette [EMAIL PROTECTED] wrote: Hi everybody. I am trying to create and use a custom converter that will change the value for an inputText based on some criteria. I have written the Java class (implementing Converter), and setup the configuration in my faces-config.xml. With the following test, everything worked just as I expected it to work: h:inputText label=The Property: value=#{myBean.myProperty} f:converter converterId=converter.MyStringValueConverter / /h:inputText But when I change that test to use a tr:inputText / instead of the regular JSF h:inputText /, my custom converter was not being called when the page is rendered. Is there anything that I need to do different to get this to work with a Trinidad inputText if it already works for a regular JSF inputText? I know that Trinidad has the capability to have client-side converters and validators, but I am simply trying to use my same, simple converter class with the Trinidad component. If I am using the Trinidad component, am I forced to use a client-side converter? Thanks... Dave The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use
Re: Custom Converter not getting called
It works with MyFaces? Then I think it's indeed a bug on our side. Adam can you confirm? Maybe we should allow converters' getAsString during rendering... Hmmm speaking about it make me think we might have a JIRA issue about that and maybe even a patch, maybe already commited. What version of Trinidad do you use? Regards, ~ Simon On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: I'm dealing with simple tr:outputText / and tr:inputText / here. Yeah, I'd rather not mess with the renderers for something this small. And the empty String does call the converter, but I was hoping to catch both empty String and null. And since a null value calls my converter when using h:inputText /, I was hoping it would do the same for the Trinidad inputText component. Dave -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 12:43 PM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called Hmmm let me think... You could override the renderers, but this is tedious for something looking so trivial... Did you try an empty String value by any chance? I'm not sure of the behavior, that could be a potential solution... Also, what kind of component are we talking about? Trinidad's select* components have an unselectedLabel (unselectedText?) or something attribute (gee I really gotta learn all those attribute names by heart). I never quite understood why the spec did that with converters and null values... Regards, ~ Simon On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Aha... I think you've got it right, Simon. I had not tried it with a non-null value yet. I just set a default value for myProperty and tried it again. Sure enough, the converter was called as expected. Other than using required=true, is there a way to get the converter to be called with a null value when the page is rendered? If I can't do that, then the only other option I can think of for my scenario is to have TWO components on the page (one that renders the value, and another that renders --), and set the rendered= attribute accordingly so that only one is shown based on the value being null or not-null. This works, but it does not seem very clean to me. Dave -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 12:07 PM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called I think that's might be your issue. Did yo utest with a non-null value to see if the converter get called? I'll check the spec but I think null never get converted nor validated except for required=true fields. On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Great, thanks for confirming the client-side stuff for me. Yes, 'myProperty' is a String. I am not trying to convert from one type to another, just trying to change the value if needed (i.e., if the value is null, then display the String -- instead). Dave -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 11:45 AM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called No, you shouldn't be required to do anything differently at all. If there's no client converter, it eliminates client-side validation for that element, but that's it. BTW, is myProperty of type String? There might be a bug where Strings aren't getting passed through Converters. -- Adam On 11/9/06, David Brunette [EMAIL PROTECTED] wrote: Hi everybody. I am trying to create and use a custom converter that will change the value for an inputText based on some criteria. I have written the Java class (implementing Converter), and setup the configuration in my faces-config.xml. With the following test, everything worked just as I expected it to work: h:inputText label=The Property: value=#{myBean.myProperty} f:converter converterId=converter.MyStringValueConverter / /h:inputText But when I change that test to use a tr:inputText / instead of the regular JSF h:inputText /, my custom converter was not being called when the page is rendered. Is there anything that I need to do different to get this to work with a Trinidad inputText if it already works for a regular JSF inputText? I know that Trinidad has the capability to have client-side converters and validators, but I am simply trying to use my same, simple converter class with the Trinidad component. If I am using the Trinidad component, am I forced to use a client-side converter? Thanks... Dave The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader
Re: Custom Converter not getting called
Awww, my memory is failing me, the issue I was talking about was http://issues.apache.org/jira/browse/ADFFACES-38. I would be all for giving Converters a chance to do formatting even on null values though, especially if the spec does not forbid it. Regards, ~ Simon On 11/10/06, Simon Lessard [EMAIL PROTECTED] wrote: It works with MyFaces? Then I think it's indeed a bug on our side. Adam can you confirm? Maybe we should allow converters' getAsString during rendering... Hmmm speaking about it make me think we might have a JIRA issue about that and maybe even a patch, maybe already commited. What version of Trinidad do you use? Regards, ~ Simon On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: I'm dealing with simple tr:outputText / and tr:inputText / here. Yeah, I'd rather not mess with the renderers for something this small. And the empty String does call the converter, but I was hoping to catch both empty String and null. And since a null value calls my converter when using h:inputText /, I was hoping it would do the same for the Trinidad inputText component. Dave -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 12:43 PM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called Hmmm let me think... You could override the renderers, but this is tedious for something looking so trivial... Did you try an empty String value by any chance? I'm not sure of the behavior, that could be a potential solution... Also, what kind of component are we talking about? Trinidad's select* components have an unselectedLabel (unselectedText?) or something attribute (gee I really gotta learn all those attribute names by heart). I never quite understood why the spec did that with converters and null values... Regards, ~ Simon On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Aha... I think you've got it right, Simon. I had not tried it with a non-null value yet. I just set a default value for myProperty and tried it again. Sure enough, the converter was called as expected. Other than using required=true, is there a way to get the converter to be called with a null value when the page is rendered? If I can't do that, then the only other option I can think of for my scenario is to have TWO components on the page (one that renders the value, and another that renders --), and set the rendered= attribute accordingly so that only one is shown based on the value being null or not-null. This works, but it does not seem very clean to me. Dave -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 12:07 PM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called I think that's might be your issue. Did yo utest with a non-null value to see if the converter get called? I'll check the spec but I think null never get converted nor validated except for required=true fields. On 11/10/06, David Brunette [EMAIL PROTECTED] wrote: Great, thanks for confirming the client-side stuff for me. Yes, 'myProperty' is a String. I am not trying to convert from one type to another, just trying to change the value if needed (i.e., if the value is null, then display the String -- instead). Dave -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 11:45 AM To: adffaces-user@incubator.apache.org Subject: Re: Custom Converter not getting called No, you shouldn't be required to do anything differently at all. If there's no client converter, it eliminates client-side validation for that element, but that's it. BTW, is myProperty of type String? There might be a bug where Strings aren't getting passed through Converters. -- Adam On 11/9/06, David Brunette [EMAIL PROTECTED] wrote: Hi everybody. I am trying to create and use a custom converter that will change the value for an inputText based on some criteria. I have written the Java class (implementing Converter), and setup the configuration in my faces-config.xml. With the following test, everything worked just as I expected it to work: h:inputText label=The Property: value=#{ myBean.myProperty} f:converter converterId=converter.MyStringValueConverter / /h:inputText But when I change that test to use a tr:inputText / instead of the regular JSF h:inputText /, my custom converter was not being called when the page is rendered. Is there anything that I need to do different to get this to work with a Trinidad inputText if it already works for a regular JSF inputText? I know that Trinidad has the capability to have client-side converters
Re: af:table select one auto submit
Hello, Try using a selectionListener instead. Regards, ~ Simon On 11/8/06, Troy Bull [EMAIL PROTECTED] wrote: Greetings I am trying to make my table (select 1) auto submit once the user picks a radio button. I set AutoSubmit to true on the tableSelectOne facet and I created an attributeChange_listner but it never gets called. Is there something i am missing? Any help greatly appreciated. If anyone can point me to a working example I should be able to figure it out from there.. thanks troy
Re: af|panelBox ignores background color override
Also, you should take a look at the skin documentation. Some new panelBox selectors were added to allow round edges and so on. I found the problem. It's because the selectors inherited from simple get stronger CSS priority than your. This is bad, I'll probably move those style to minimal instead in order to prevent such issue from happening again. ~ Simon On 10/30/06, Simon Lessard [EMAIL PROTECTED] wrote: Hmmm, try the following, it works fine for me: af|panelBox::medium af|panelBox::body { background-color: black; } However what you did should have worked as well. I'll try it locally come back with either a patch, or a workaround. Did you clear your browser cache when you changed the skin? af|panelBox::body { background-color: black; } On 10/30/06, Nicolas Kalkhof [EMAIL PROTECTED] wrote: hi folks, i#180;m having trouble trying to define custom skin parameters for the panelBox. it seems that trinidad (current trunk) ignors any changes in background color. the same works fine for ADF faces 10.1.3.1. my skin css fragment looks like this: af|panelBox::header { background-color: #00; color: #00; height: 15px; } af|panelBox::body { background-color: #00; color: #00; height: 45px; } and the jspx fragment: tr:panelBox text=header tr:outputText value=test / /tr:panelBox the background stays white :( any ideas? regards, nicolas __ XXL-Speicher, PC-Virenschutz, Spartarife mehr: Nur im WEB.DEhttp://web.de/Club! Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130
Re: Can we use bean to specify id attribute value
Yeah, hard coded is the way to go. On 10/30/06, Olivier Lafontaine [EMAIL PROTECTED] wrote: EL expressions are usually not supported for the id attribute. At least, the JSF specification states that it is not supported for the standard component classes, see section 3.1.4 of the spec. So unless it is explicitly stated in the documentation of a component, I guess it is not supported. This makes sense considering the id must be stable throughout the component life. Olivier On 10/30/06, Causevic, Dzenan [EMAIL PROTECTED] wrote: I would like to specify the id attribute value with bean (like I do for actionListener, action, and selected attributes) but my browser is throwing an error message complaining about this. tr:navigationPane hint=tabs tr:commandNavigationItem id=login text=Home actionListener=#{ commandNavigationItem.navigationItemAction} action=#{ navigationTabsBean.getNavigationCase} selected=#{ navigationTabsBean.selectedLogin}/ tr:commandNavigationItem id=codeOfCond text=Code of Conduct actionListener=#{ commandNavigationItem.navigationItemAction} action=#{ navigationTabsBean.getNavigationCase} selected=#{ navigationTabsBean.selectedCodeOfCond}/ /tr:navigationPane I would like to use id attributre like following tr:navigationPane hint=tabs tr:commandNavigationItem id=#{navigationTabsBean.loginId} text=Home actionListener=#{commandNavigationItem.navigationItemAction} action=#{ navigationTabsBean.getNavigationCase} selected=#{ navigationTabsBean.selectedLogin}/ tr:commandNavigationItem id=#{navigationTabsBean.codeOfCondId text=Code of Conduct actionListener=#{ commandNavigationItem.navigationItemAction} action=#{ navigationTabsBean.getNavigationCase} selected=#{ navigationTabsBean.selectedCodeOfCond}/ /tr:navigationPane Is this possible or does the id attribute must be hard coded like in the code on the top?
Re: Component to show a floating DIV?
I kind of like the idea, it would help going around the popup blocker issues. That being said, there's some design issue to talk about. First, how will that pseudo dialog will be populated? Do we want to harmonize it with our current dialog framework or not? If not then we could simply place the content as child of the div. However, if we want to harmonize it (which is better imho) we would have to populate it with another page content. This has some problems that I can think of: 1) The navigation must be evaluated (can be handled with some NavigationHandler magic); 2) The page content must be read (Facelets can handle that, but that would create a strong dependency between Trinidad and Facelets); 3) The Facelets would have to be stripped of the HTML/BODY/HEAD generating elements. That one can be painful, we could also use a special ResponseWriter to ignore those elements though; 4) Work out the return events. Regards, ~ Simon On 10/25/06, Danny Robinson [EMAIL PROTECTED] wrote: Does anyone have any comments on Dave's email below? I'd like to ask for some direct on this and how it might be achieved wither currently, or in the future. Thx, D. On 9/15/06, David Brunette [EMAIL PROTECTED] wrote: Hi everybody. I have had a look at the Dialog Framework that is available in Trinidad. It looks like a nice way to show the user a small bit of content for a short period of time before returning to the original page. While designing our application, we like that... but we are hoping to avoid the opening of a new instance of the browser, which is what the dialog itself really is. Instead, we would like to show that small bit of content in a floating DIV (I believe that's the right term?) that would open and close just like a dialog would. I haven't found anything in JSF/Trinidad that will do this for us, so my question is: 1) Is there actually a component out there that allows us to show content in a floating DIV, and I've just overlooked it? 2) If not, would it spark enough interest to eventually come up with one? I'm interested in anybody's thoughts about this. Thanks... Dave -- Chordiant Software Inc. www.chordiant.com
Re: Customizing required validator
Close enough Olivier, but it's the opposite client-validation-disabledtrue/client-validation-disabled. The option is a disabled condition... That always looked quite counter-intuitive to me, I would rather see client-validation-enabled. Regards, ~ Simon On 10/24/06, Olivier Lafontaine [EMAIL PROTECTED] wrote: I'm not sure if it works with trinidad, but with ADF Faces, you can add the following to WEB-INF/adf-faces-config.xml to disable client side validation: client-validation-disabledfalse/client-validation-disabled I've verified the XML schema used to validate trinidad configuration and the element is supported. So why not try adding the above line in your WEB-INF/trinidad-config.xml to see if it works the way you want it. Olivier On 10/24/06, Daniel Hannum [EMAIL PROTECTED] wrote: I asked this a while ago and never got a reply. Seems like it should be possible, but neither Google nor my 2 JSF books could help: Can I customize the required validator? Or write my own? I don't want the Javascript alert boxes to be displayed. I'd like to make them simple JSF messages instead. Can I do this? Thanks Dan
Re: Customizing required validator
Actually even better would be : enable-client-validationtrue/enable-client-validation On 10/24/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Yeah, I agree, same true for compressen-disabled :) On 10/24/06, Simon Lessard [EMAIL PROTECTED] wrote: Close enough Olivier, but it's the opposite client-validation-disabledtrue/client-validation-disabled. The option is a disabled condition... That always looked quite counter-intuitive to me, I would rather see client-validation-enabled. Regards, ~ Simon On 10/24/06, Olivier Lafontaine [EMAIL PROTECTED] wrote: I'm not sure if it works with trinidad, but with ADF Faces, you can add the following to WEB-INF/adf-faces-config.xml to disable client side validation: client-validation-disabledfalse/client-validation-disabled I've verified the XML schema used to validate trinidad configuration and the element is supported. So why not try adding the above line in your WEB-INF/trinidad-config.xml to see if it works the way you want it. Olivier On 10/24/06, Daniel Hannum [EMAIL PROTECTED] wrote: I asked this a while ago and never got a reply. Seems like it should be possible, but neither Google nor my 2 JSF books could help: Can I customize the required validator? Or write my own? I don't want the Javascript alert boxes to be displayed. I'd like to make them simple JSF messages instead. Can I do this? Thanks Dan -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: Errors Building with Maven
Hello Tim, Have you tried running it more than once? Sometimes Maven repositories are flooded. It seems that it was not able to find Shale files in your case. Regards, ~ Simon On 10/22/06, Romanowski, Tim [EMAIL PROTECTED] wrote: Yesterday I installed Maven 2.0.4, the Tortoise Subversion client, and checked out the source as described in the wiki page at [1]. I was successful with the following command: cd trinidad/plugins mvn install However, when I cd to the trinidad directory and run mvn -e install, I get an exception. The first thing I noted was a warning on trying to retrieve 'snapshot org.apache.myfaces.trinidadbuild:ma ven-faces-plugin:incubator-m1-SNAPSHOT' from the repository. I don't know if that's related, but the Trinidad Build segment that generates the warning seems to install ok (or does lack of an error not necessarily mean a successful install?). After the shale POM error, it's downhill from there. On the wiki [1], it mentions Also make sure the version number you get matches the version number in the pom.xml for maven. if it is 2.0.2 make sure it is the same. If you don't know what you're doing, that isn't very clear...Does this imply Make sure the version of Maven that you get matches the version of Maven in the pom.xml? If so, which POM needs to be modified, and where in the POM does the version number need to be adjusted? Being new to Maven, I noticed several POMs, and did not find anything obvious that pointed to a Maven version number. Any help would be sincerely appreciated. C:\trinidad\trinidadmvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Apache Incubator Trinidad Podling [INFO] Apache Trinidad Build [INFO] Apache Trinidad API [INFO] Apache Trinidad Impl [INFO] Apache Trinidad Demo [INFO] - --- [INFO] Building Apache Incubator Trinidad Podling [INFO]task-segment: [install] [INFO] - --- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing C:\trinidad\trinidad\pom.xml to C:\Documents and Settings\Admi nistrator\.m2\repository\org\apache\myfaces\trinidad\trinidad\incubator- m1-SNAPS HOT\trinidad-incubator-m1-SNAPSHOT.pom [INFO] - --- [INFO] Building Apache Trinidad Build [INFO]task-segment: [install] [INFO] - --- [INFO] snapshot org.apache.myfaces.trinidadbuild:maven-faces-plugin:incubator-m1 -SNAPSHOT: checking for updates from apache.snapshots [WARNING] repository metadata for: 'snapshot org.apache.myfaces.trinidadbuild:ma ven-faces-plugin:incubator-m1-SNAPSHOT' could not be retrieved from repository: apache.snapshots due to an error: Error transferring file [INFO] Repository 'apache.snapshots' will be blacklisted [INFO] [faces:generate-master-faces-config {execution: default}] [INFO] Generating META-INF/maven-faces-plugin/faces-config.xml [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: C:\trinidad\trinidad\trinidad-build\target\trinidad-build-i ncubator-m1-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing C:\trinidad\trinidad\trinidad-build\target\trinidad-build-incu bator-m1-SNAPSHOT.jar to C:\Documents and Settings\Administrator\.m2\repository\ org\apache\myfaces\trinidad\trinidad-build\incubator-m1-SNAPSHOT\trinida d-build- incubator-m1-SNAPSHOT.jar [INFO] - --- [INFO] Building Apache Trinidad API [INFO]task-segment: [install] [INFO] - --- [INFO] snapshot org.apache.myfaces.trinidadbuild:maven-xrts-plugin:incubator-m1- SNAPSHOT: checking for updates from apache.snapshots [WARNING] repository metadata for: 'snapshot org.apache.myfaces.trinidadbuild:ma ven-xrts-plugin:incubator-m1-SNAPSHOT' could not be retrieved from repository: a pache.snapshots due to an error: Error transferring file [INFO] Repository 'apache.snapshots' will be blacklisted [INFO] [xrts:generate-sources {execution: default}] [INFO] Generating 29 XRTS bundles to C:\trinidad\trinidad\trinidad-api\target\ma ven-xrts-plugin\main\java Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/shale /shale-master/1/shale-master-1.pom [INFO] [ERROR] BUILD
Re: Using Skinning facility for custom components
Hello Frank, I think we already have a JIRA issue (ADFFACES-54https://issues.apache.org/jira/browse/ADFFACES-54) for configurable inheritance. Regards, ~ Simon On 10/12/06, Frank Nimphius [EMAIL PROTECTED] wrote: Adam, would it be an option to chain skins so that a custom skin can inherit settings from a base skin? I think this would make configuration easy Frank Adam Winer wrote: On 10/11/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: add your def. to the base-desktop.xss and maybe added some constants for that to SkinSelectors.java Well, that's only if you're building new components for inclusion in Trinidad. If you're building your own components, then you'd put those styles in a custom skin, and tell people to use that skin. (This isn't totally satisfactory, since really you want to aggregate your styles into all skins. Jeanne is, I believe, working on functionality that will enable that for custom component developers.) -- Adam in your renderer, just renderer that styles, using renderStyleCass() for single clazzes and renderStyleClasses() when rendering more classes (for instance, in a disabled case) -; On 10/11/06, Clemens Schneider [EMAIL PROTECTED] wrote: Hi again and sorry for asking so frequently, can you tell me, what would be the steps to provide trinidad-skinning for a custom component? which files would I have to touch (xss stylesheets, SkinFactory, ...)? Is there a quick way to achieve this? thanks in advance! -clem -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- Frank Nimphius Principal Product Manager Application Development Tools Oracle Corporation mail: [EMAIL PROTECTED] phone:+49 2058 782481
Re: Use of tr:document tag
Try the following: tr:document f:facet name=metaContainer h:outputText value=script type=\text/javascript\ src=#{ facesContext.externalContext.requestContextPath()}/js/dojo/dojo.js}\/script escape=false/ /f:facet /tr:document Regards, ~ Simon On 10/7/06, Naresh Bhatia [EMAIL PROTECTED] wrote: I am running into a minor problem trying to use Adam's example. In the script tag, I need to add the context path in front of the script path. Unfortunately the EL expression shown below is not being evaluated: tr:document f:facet name=metaContainer f:verbatim script type=text/javascript src=#{facesContext.externalContext.requestContextPath()}/js/dojo/dojo.j s /script /f:verbatim /f:facet /tr:document How do I fix this problem? Thanks. Naresh -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Saturday, October 07, 2006 10:31 AM To: adffaces-user@incubator.apache.org Subject: Re: Use of tr:document tag Use the metaContainer facet: tr:document f:facet name=metaContainer f:verbatimscript .//f:verbatim /f:facet /tr:document On 10/7/06, Naresh Bhatia [EMAIL PROTECTED] wrote: Since the tr:document tag encapsulates the generation of html, body, and head elements, how do I force generation of some elements in to head. For example, I would like my script tags to go to the head. (May be not a good example because it appears that script tags are forced into head anyway. However, I don't see that documented in the tag library docs.) Naresh
Re: AJAX and progressIndicator?
Hmmm, The page should not fully reload itself... Only the components with a partialTrigger on the poll should... About including the delay on the indicator itself, I would not be against it as it's about the only real life usage of the poll. We could even make progressIndicator extends poll maybe. Regards, ~ Simon On 10/5/06, Döring Markus [EMAIL PROTECTED] wrote: Hello, As far as I know (and can see) trinidad is using AJAX for different components like the tr:table and other. Why don't use the tr:progressIndicator AJAX? In the demo there is a tr:poll interval=2000 id=pollid / in the page to make sure the progressBar is updated every 2 seconds and the complete page reloads. Would be nice to have something like tr:progressIndicator id=progressid action=progressEnd value=#{ progress.progressModel} refreshRate=2000 / And the progressBar updates itself every 2 seconds without reloading the complete page. Or do I miss something? Greetings Markus
Re: Re: AJAX and progressIndicator?
O, cool stuff... It's a shame I didn't think about those before. On 10/5/06, Adam Winer [EMAIL PROTECTED] wrote: I've seen people use poll in all sorts of ways, other than progressIndicator - like tables with auto-updating data, or creating a heartbeat to warn the user about getting logged out if no action is taken. -- Adam On 10/5/06, Simon Lessard [EMAIL PROTECTED] wrote: Hmmm, The page should not fully reload itself... Only the components with a partialTrigger on the poll should... About including the delay on the indicator itself, I would not be against it as it's about the only real life usage of the poll. We could even make progressIndicator extends poll maybe. Regards, ~ Simon On 10/5/06, Döring Markus [EMAIL PROTECTED] wrote: Hello, As far as I know (and can see) trinidad is using AJAX for different components like the tr:table and other. Why don't use the tr:progressIndicator AJAX? In the demo there is a tr:poll interval=2000 id=pollid / in the page to make sure the progressBar is updated every 2 seconds and the complete page reloads. Would be nice to have something like tr:progressIndicator id=progressid action=progressEnd value=#{ progress.progressModel} refreshRate=2000 / And the progressBar updates itself every 2 seconds without reloading the complete page. Or do I miss something? Greetings Markus
Re: Problem combining trinidad and facelets
Hello Böhringer, Why do you use a c:foreach in the navigationPane? You should use nodeStamp instead. I think this iswhat iscausing your problem. Regards, ~ Simon On 9/29/06, Böhringer Jochen [EMAIL PROTECTED] wrote: Hello, If I setup Trinidad and Facelets and try to execute the following xhtml file I get a ClassCastException (see below). This is caused by the usage of the c:forEach Tag I think. So I tried to switch to ui:repeat but with a similar exception (see below). I am using jsf-facelets-1.1.11.jar, myfaces-1.1.4 and Trinidad-m1-snapshot on JBoss 4.x. Any help would be greatly appreciated. Regards Jochen ?xml version=1.0 encoding=iso-8859-1 standalone=yes ? tr:document xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; xmlns:trh=http://myfaces.apache.org/trinidad/html; xmlns:c=http://java.sun.com/jsp/jstl/core; title=#{navigationControler.activePageTitle} tr:form tr:panelPage f:facet name=navigation1 tr:navigationPane hint=tabs id=navigation1 c:forEach var=menuItem items=#{ navigationControler.menuItemList} tr:commandNavigationItem text=#{ menuItem.label} shortDesc=#{menuItem.id} selected=#{menuItem.selected} action=redirect.main disabled=#{menuItem.disabled} f:actionListener type= de.tccproducts.dprs.webapp.navigation.NavigationHandler / /tr:commandNavigationItem /c:forEach /tr:navigationPane /f:facet /tr:panelPage /tr:form ui:debug / /tr:document c:forEach Exception: 16:41:38,557 INFO [STDOUT] 29.09.2006 16:41:38 org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPaneRendererrenderContent SCHWERWIEGEND: Warning: illegal component hierarchy detected, expected UIXCommand but found another type of component instead. java.lang.ClassCastException: com.sun.facelets.compiler.UIInstructions at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPaneRenderer.renderContent (NavigationPaneRenderer.java:123) at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPaneRenderer.encodeAll (NavigationPaneRenderer.java:86) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.encodeEnd( CoreRenderer.java:181) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd( UIXComponentBase.java:673) at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd( UIXCollection.java:466) at org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode._renderComponent (UIComponentUINode.java:329) at org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode.render( UIComponentUINode.java:273) at org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode.render( UIComponentUINode.java:250) at org.apache.myfaces.trinidadinternal.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render (ContextPoppingUINode.java:234) at org.apache.myfaces.trinidadinternal.ui.BaseUINode.render( BaseUINode.java:356) at org.apache.myfaces.trinidadinternal.ui.BaseUINode.render( BaseUINode.java:311) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderChild( BaseRenderer.java:423) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderNamedChild( BaseRenderer.java:395) at org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.PageHeaderLayoutRenderer._renderTabBar (PageHeaderLayoutRenderer.java:580) at org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.PageHeaderLayoutRenderer.renderContent (PageHeaderLayoutRenderer.java:440) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.render( BaseRenderer.java:91) at org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer.render (XhtmlLafRenderer.java:81) at org.apache.myfaces.trinidadinternal.ui.BaseUINode.render( BaseUINode.java:356) at org.apache.myfaces.trinidadinternal.ui.BaseUINode.render( BaseUINode.java:311) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderChild( BaseRenderer.java:423) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderIndexedChild( BaseRenderer.java:341) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderIndexedChild( BaseRenderer.java:233) at org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderContent (BaseRenderer.java:140) at
Re: Problem combining trinidad and facelets
No, no that's not how to use it. Sorry that I was not more explicit in my first answer. Here's how: tr:navigationPane hint=tabs id=navigation1 var=menuItem value=#{ navigationControler.menuItemList} f:facet name=nodeStamp tr:commandNavigationItem text=#{menuItem.label} ... / /f:facet /tr:navigationPane Regards, ~ Simon On 9/29/06, Böhringer Jochen [EMAIL PROTECTED] wrote: Hello Simon, thanks for your hint. Now I switched to this code. But I get the message tr:nodeStamp Tag Library supports namespace: http://myfaces.apache.org/trinidad, but no tag was defined for name: nodeStamp Also switching to f:nodeStamp does not help: f:nodeStamp Tag Library supports namespace: http://java.sun.com/jsf/core, but no tag was defined for name: nodeStamp What am I missing? ?xml version=1.0 encoding=iso-8859-1 standalone=yes ? tr:document xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; xmlns:trh=http://myfaces.apache.org/trinidad/html; xmlns:c=http://java.sun.com/jsp/jstl/core; title=#{navigationControler.activePageTitle} tr:form tr:panelPage f:facet name=navigation1 tr:navigationPane hint=tabs id=navigation1 var=menuItem value=#{navigationControler.menuItemList} tr:nodeStamp tr:commandNavigationItem text=#{ menuItem.label} shortDesc=#{menuItem.id} selected=#{menuItem.selected} action=redirect.main disabled=#{menuItem.disabled} f:actionListener type= de.tccproducts.dprs.webapp.navigation.NavigationHandler / /tr:commandNavigationItem /tr:nodeStamp /tr:navigationPane /f:facet /tr:panelPage /tr:form ui:debug / /tr:document Regards Jochen -Ursprüngliche Nachricht- Von: Simon Lessard [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 29. September 2006 16:57 An: adffaces-user@incubator.apache.org Betreff: Re: Problem combining trinidad and facelets Hello Böhringer, Why do you use a c:foreach in the navigationPane? You should use nodeStamp instead. I think this iswhat iscausing your problem. Regards, ~ Simon On 9/29/06, Böhringer Jochen [EMAIL PROTECTED] wrote: Hello, If I setup Trinidad and Facelets and try to execute the following xhtml file I get a ClassCastException (see below). This is caused by the usage of the c:forEach Tag I think. So I tried to switch to ui:repeat but with a similar exception (see below). I am using jsf-facelets-1.1.11.jar, myfaces-1.1.4 and Trinidad-m1-snapshot on JBoss 4.x. Any help would be greatly appreciated. Regards Jochen ?xml version=1.0 encoding=iso-8859-1 standalone=yes ? tr:document xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; xmlns:trh=http://myfaces.apache.org/trinidad/html; xmlns:c=http://java.sun.com/jsp/jstl/core; title=#{navigationControler.activePageTitle} tr:form tr:panelPage f:facet name=navigation1 tr:navigationPane hint=tabs id=navigation1 c:forEach var=menuItem items=#{ navigationControler.menuItemList} tr:commandNavigationItem text=#{ menuItem.label} shortDesc=#{menuItem.id} selected=#{menuItem.selected} action=redirect.main disabled=#{menuItem.disabled} f:actionListener type= de.tccproducts.dprs.webapp.navigation.NavigationHandler / /tr:commandNavigationItem /c:forEach /tr:navigationPane /f:facet /tr:panelPage /tr:form ui:debug / /tr:document c:forEach Exception: 16:41:38,557 INFO [STDOUT] 29.09.2006 16:41:38 org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPaneRendererrenderContent SCHWERWIEGEND: Warning: illegal component hierarchy detected, expected UIXCommand but found another type of component instead
Re: Emphasize important fields with skin
Oh, I see, Yes, you're right, those should be splitted. Can you add a JIRA issue for it please? Regards, ~ Simon On 9/25/06, Martin Koci [EMAIL PROTECTED] wrote: I was unaccurate in my question. The problem is that class=style1 style2 cannot use compression of class names (output is style1 style2) but style1 can (output is x1n). Here is how I changed method FormInputRenderer.renderRootDomElementStyles(FacesContext,RenderingContext, UIComponent, FacesBean) : // get the style classes that I want to render on the root dom element here. String styleClass = getStyleClass(bean); String contentStyleClass = getRootStyleClass(bean); String disabledStyleClass = null; String readOnlyStyleClass = null; String requiredStyleClass = null; // Here we split user supplied style classes to string array String[] styleClasses = styleClass.split( ); // readOnly takes precedence over disabled for the state. // -= Simon =- Why? if(getReadOnly(context, bean)) { readOnlyStyleClass = SkinSelectors.STATE_READ_ONLY; } else if (getDisabled(bean)) { disabledStyleClass = SkinSelectors.STATE_DISABLED; } if(_isConsideredRequired(bean)) { requiredStyleClass = SkinSelectors.STATE_REQUIRED; } String[] strings = new String[4 + styleClasses.length]; strings[0] = contentStyleClass; strings[1] = disabledStyleClass; strings[2] = readOnlyStyleClass; strings[3] = requiredStyleClass; // we append user styles to the end of array for (int i = 0; i styleClasses.length; i++) { String style = styleClasses[i]; strings[4 + i] = style; } renderStyleClasses(context, arc, strings); renderInlineStyle(context, arc, bean); Simon Lessard píše v Út 19. 09. 2006 v 11:25 -0400: Hello Martin, I don't think it is the problem. I believe the problem is actually located in the interaction between panelFormLayout and inputComponents. Output otherStyleClass styleImportant x1a is correct, it mean that the element has three classes: otherStyleClass, styleImportant and x1a. In HTML the semantic is a bit different from what it's in a CSS file. CSS .class1 .class2 {...} is matching HTML element class=class1 element class=class2/ /element. On the other hand, element class=class1 class2 would match the following CSS selectors: CSS .class1{...} .class2{...} .class1.class2{...} // Notice there's no space between the classes, this is a CSS 2 (not valid in CSS 1) composite selector and it won't work in IE because IE is stupid. The possible issue I see however is on which DOM element it gets placed and I'm working on this issue currently as it's blocking on of my patches. Regards, ~ Simon On 9/19/06, Martin Koci [EMAIL PROTECTED] wrote: Hello again, I resume my requirements: 1) use trinidad skin framework as much as possible 2) all explicitly reffered CSS styles are in skins files and will switch with skin (as 'styleImportant' here in my case) 3) allow to use more CSS style class in styleClass attribute with solution: tr:inputText ... styleClass=styleImportant / it works ok, output is somethink like x1a x1b, styleImportant is correctly compressed to x1a. But if coder uses e.g. tr:inputText ... styleClass=otherStyleClass styleImportant / (requirement 3) output is otherStyleClass styleImportant x1a. Problem is FormInputRenderer.renderRootDomElementStyles: String styleClass = getStyleClass(bean); returns otherStyleClass styleImportant which is not array but String and this value is passed to RendereringContext.getStyleClass. But there is no entry for this key in _styleMap (there are only entries for otherStyleClass and styleImportant separately). I think value of styleClass attribute should be parsed to String array to enable users put their CSS style classes into trinidad skins. Is that correct? Regards, Martin Simon Lessard píše v Čt 07. 09. 2006 v 09:13 -0400: Hmmm try the following then, it might work: tr:inputText ... styleClass=styleImportant / And in the skin: .styleImportant af|inputText::content { color: #325fa4; font-weight: bold; } On 9/7/06, Martin Koci [EMAIL PROTECTED] wrote: Hello Simon, unfortunately that solution will not work with IE. In my case I have tr:inputText ... styleClass=styleImportant / where 'styleImportant is placed in skin file as: .styleImportant { color: #325fa4; font-weight: bold; } With Firefox it works because html input inherits (in sence of CSS) font size and color. But IE doesn't support CSS inherit for this. Maybe I'm looking for a way how to place 'importantStyle' to html input element rendered with tr:inputText renderer - now it is rendered as style class on enclosing span
Re: Use of custom style sheets
Ugh... I'll have to test that, the first form should work just as well. On 9/25/06, HulaBula [EMAIL PROTECTED] wrote: Does it work now? I ran into a similar problem and now figured out that the config-parser treats family blue /family different to familyblue/family (-- which will work) You can see that behaviour if you step-debug through CoreRenderingContext.java. (linebreaks are not trimmed) greets! clemens Simon Lessard wrote: You must specify the skin-family in trinidad.config.xml to value: blue. On 9/25/06, Causevic, Dzenan [EMAIL PROTECTED] wrote: I am a beginner to Trinidad components and I have a simple question regarding the use of style sheets. I am getting default look for tab components, however my page is using my own style sheet and now I need to get these tabs to use the same colors as the rest of the page. The documenation is not so clear, that's why I am posting here for help. I created WEB-INF/trinidad-config.xml file and added following directive: skin-familyblueSkin/skin-family Then I created WEB-INF/trinidad-skins.xml like this: skins xmlns=http://myfaces.apache.org/trinidad/skin; skin id blue.desktop /id family blue /family render-kit-id org.apache.myfaces.trinidad.desktop /render-kit-id style-sheet-name stylesheet/blueSkin.css /style-sheet-name /skin /skins Finally I placed blueSkin.css (the one from the demo page) in my web/stylesheet directory. However I still get a default look for my tabs. What am I still missing here?
Re: Use of custom style sheets
Then it should be the one used. So, simple question, did you clear your cache? You must clear it almost everytime while working on your skin. Regards, ~ Simon On 9/25/06, Causevic, Dzenan [EMAIL PROTECTED] wrote: Yes I did. It's there. Dzenan Causevic Software Web Developer NaviSite, Inc. Syracuse, NY (315) 453-2912 x5346 -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 2006 2:54 PM To: adffaces-user@incubator.apache.org Subject: Re: Use of custom style sheets Hello Dzenan, No, you should be able to palce the CSS anywhere, /adf/styles/cache will get generated automatically. Did you try to enter the CSS url in your browser to see if the stylesheet can be found? Regards, ~ Simon On 9/25/06, Causevic, Dzenan [EMAIL PROTECTED] wrote: I did make those changes but still no success. I am still getting default look. This is the excerpt from the source file: link rel=stylesheet charset=UTF-8 type=text/css href=/seekerreg/adf/styles/cache/blue- desktop-unknown-version-en-gecko.cssscriptvar _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';/scriptscript src=/seekerreg/adf/jsLibs/Common11-m7.js /scriptscript_defaultTZ()/script link href=/seekerreg/stylesheet/stylesheet.css rel=stylesheet /head Can blueSkin.css be placed in web/stylesheet directory where the custom sheet resides, or does it have to go to some type of web/adf/styles/cache like what we get above? -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Mon 9/25/2006 1:56 PM To: adffaces-user@incubator.apache.org Subject: Re: Use of custom style sheets Ugh... I'll have to test that, the first form should work just as well. On 9/25/06, HulaBula [EMAIL PROTECTED] wrote: Does it work now? I ran into a similar problem and now figured out that the config-parser treats family blue /family different to familyblue/family (-- which will work) You can see that behaviour if you step-debug through CoreRenderingContext.java. (linebreaks are not trimmed) greets! clemens Simon Lessard wrote: You must specify the skin-family in trinidad.config.xml to value: blue. On 9/25/06, Causevic, Dzenan [EMAIL PROTECTED] wrote: I am a beginner to Trinidad components and I have a simple question regarding the use of style sheets. I am getting default look for tab components, however my page is using my own style sheet and now I need to get these tabs to use the same colors as the rest of the page. The documenation is not so clear, that's why I am posting here for help. I created WEB-INF/trinidad-config.xml file and added following directive: skin-familyblueSkin/skin-family Then I created WEB-INF/trinidad-skins.xml like this: skins xmlns=http://myfaces.apache.org/trinidad/skin; skin id blue.desktop /id family blue /family render-kit-id org.apache.myfaces.trinidad.desktop /render-kit-id style-sheet-name stylesheet/blueSkin.css /style-sheet-name /skin /skins Finally I placed blueSkin.css (the one from the demo page) in my web/stylesheet directory. However I still get a default look for my tabs. What am I still missing here?
Re: Emphasize important fields with skin
Hello Martin, I don't think it is the problem. I believe the problem is actually located in the interaction between panelFormLayout and inputComponents. Output otherStyleClass styleImportant x1a is correct, it mean that the element has three classes: otherStyleClass, styleImportant and x1a. In HTML the semantic is a bit different from what it's in a CSS file. CSS .class1 .class2 {...} is matching HTML element class=class1 element class=class2/ /element. On the other hand, element class=class1 class2 would match the following CSS selectors: CSS .class1{...} .class2{...} .class1.class2{...} // Notice there's no space between the classes, this is a CSS 2 (not valid in CSS 1) composite selector and it won't work in IE because IE is stupid. The possible issue I see however is on which DOM element it gets placed and I'm working on this issue currently as it's blocking on of my patches. Regards, ~ Simon On 9/19/06, Martin Koci [EMAIL PROTECTED] wrote: Hello again, I resume my requirements: 1) use trinidad skin framework as much as possible 2) all explicitly reffered CSS styles are in skins files and will switch with skin (as 'styleImportant' here in my case) 3) allow to use more CSS style class in styleClass attribute with solution: tr:inputText ... styleClass=styleImportant / it works ok, output is somethink like x1a x1b, styleImportant is correctly compressed to x1a. But if coder uses e.g. tr:inputText ... styleClass=otherStyleClass styleImportant / (requirement 3) output is otherStyleClass styleImportant x1a. Problem is FormInputRenderer.renderRootDomElementStyles: String styleClass = getStyleClass(bean); returns otherStyleClass styleImportant which is not array but String and this value is passed to RendereringContext.getStyleClass. But there is no entry for this key in _styleMap (there are only entries for otherStyleClass and styleImportant separately). I think value of styleClass attribute should be parsed to String array to enable users put their CSS style classes into trinidad skins. Is that correct? Regards, Martin Simon Lessard píše v Čt 07. 09. 2006 v 09:13 -0400: Hmmm try the following then, it might work: tr:inputText ... styleClass=styleImportant / And in the skin: .styleImportant af|inputText::content { color: #325fa4; font-weight: bold; } On 9/7/06, Martin Koci [EMAIL PROTECTED] wrote: Hello Simon, unfortunately that solution will not work with IE. In my case I have tr:inputText ... styleClass=styleImportant / where 'styleImportant is placed in skin file as: .styleImportant { color: #325fa4; font-weight: bold; } With Firefox it works because html input inherits (in sence of CSS) font size and color. But IE doesn't support CSS inherit for this. Maybe I'm looking for a way how to place 'importantStyle' to html input element rendered with tr:inputText renderer - now it is rendered as style class on enclosing span. Thanks Martin Simon Lessard píše v Po 04. 09. 2006 v 13:09 -0400: Hello Martin, You can use a styleClass and place it in the skin's CSS, then it would switch with it. Regards, ~ Simon On 9/3/06, Martin Koci [EMAIL PROTECTED] wrote: Hello, I'm looking for solution how to emphasize some fields on form with consistent way with skins. My case is simple - users want see some important fields in different font size or with different font color. This is simply doable with inlineStyle or style, but value remains same even user selects other skin. Many thanks, Martin
Re: tr:inputText Skinning Question
Hello Markus, Is the use case only about required fields or also some other states? If it's about required only, there's a patche pending that will fix it. Regards, ~ Simon On 9/14/06, Markus Heinisch [EMAIL PROTECTED] wrote: Hi, I want to paint the background color of a tr:inputText depending of some state: tr:inputText value=#{bindings.Title.inputValue} label=#{bindings.Title.label} required=#{bindings.Title.mandatory} styleClass=#{bindings.Title.mandatory ? 'required' : 'nonrequired' / I read in an posting some weeks ago that I can use the af|inputText::content selector. I tried following definition: .required af|inputText::content{ background-color: red; } It works when the tr:inputText is *not* used inside of a tr:panelFormLayout! But most of the time I use a tr:panelFormLayout parent for all my input components. I tried the following definition: .required af|panelFormLayout::content-cell af|inputText::content{ background-color: red; } Does not paint my inputText inside the panelFormLayout! Of course, using af|panelFormLayout::content-cell af|inputText::content{ background-color: red; } paints all inputs red inside of a paneFormLayout. How can I style the background color of an input inside of a panelFormLayout depending on a state? Any hints are welcome! Thanks, Markus -- Markus Heinisch Dipl.-Inform. Consultant Trivadis GmbH Freischützstrasse 92 81927 München Germany Tel.: +49-89-99275930 Fax : +49-89-99275959 Mobile: +49-162-2959616 mailto:[EMAIL PROTECTED] http://www.trivadis.com http://www.trivadis.com/
Re: ADF Bindings Servlet/Filter not invoking Faces Servlet
Hello Samba, This is more an ADF issue than a Trinidad one. However, I will try my best to answer it. Data bindings uses a pageDef file, I assume you already found that out. However, Facelet uses templates based on different pages. The question thus arise, where do you place your bindings? In the main page or the template. The answer, may be a bit unintuitive, but it's always in the page, never in the template, even if the binding is used in the template. That is, if your template is displaying the table, if should not have the table defined in its pageDef, the table should instead be defined in the page using that that template so that ADF lifecycle load the pageDef, and thus the bindings, before the render phase (prepare model phase if I remember well). Since pages included by Facelets are never known (and cannot be) by ADF at that moment, their pageDef is NEVER ever read, so drag drop from the binding pane in JDeveloper in combination with Facelets almost never work, you have to edit the pageDef manually. So my first suggestion would be to check your pageDef files. My second suggestion, which is my preferred most of the time, especially with product like TopLink (as opposed to BC4J), is to do it all programatically and drop databinding altogether. Note, I think you would have more success on OTN for this issue, Steve Muench is probably the highest authority on that matter. Regards, ~ Simon Technically, Facelet actually only fill the component tree On 9/12/06, Samba [EMAIL PROTECTED] wrote: I'm getting ADF Faces and Facelets working properly with pages written in jspx format, but the Faces Servlet being mapped to jsf format. The problem I'm getting is while displaying ADF Tables with data retrieved from the database using Toplink and bindings provided by ADF Databindings. The following is the Web.xml mappings for Faces Servlet and ADF bindings filter: servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping filter filter-nameadfBindings/filter-name filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class /filter filter-mapping filter-nameadfBindings/filter-name url-pattern*.jsp/url-pattern /filter-mapping filter-mapping filter-nameadfBindings/filter-name url-pattern*.jspx/url-pattern /filter-mapping I'm getting the ADF tables displayed using ADF Bindings, if the faces servlet is mapped for jspx format;but, at the cost of losing Facelets...Facelets is not working with Faces Servlet mapped to jspx format(though written in jspx format, the faces servlet mappping has to be made for jsf format.On the other hand, if I use faces servlet mapping for jsf pages I'm getting Facelets working but ADF Databindings are not working ,(I guess) and hence ADF Faces Tables are not being displayed(I'm getting Access Denied message). I even tried to change the ADF binding filter mappings from jsp jspx to - jsp and jsf But I got the same Access denied message. Suppose, I need customised display, rather than just a Table or Form,like: public String getEmp() { BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding(findAllEmp); Object result = operationBinding.execute(); if (!operationBinding.getErrors().isEmpty()) { return null; } ListEmp res=(ListEmp)result; for(int i=0;ires.size();i++) { Emp myrec=res.get(i); System.out.println(Employee [+myrec.getEname()+], Salary [+myrec.getSal()+]); } return ; } where I do some customisation in the backing bean. and I call that method binded to a button as below: af:commandButton text=findAllEmp disabled=#{!bindings.findAllEmp.enabled} binding=#{backing_Success.commandButton1} id=commandButton1 action=#{backing_Success.getEmp}/ What I'm getting is a disabled button. Why doesn't ADF bindings servlet invoke the faces Servlet? Can't we make ADF Bindings Servlet invoke Faces Servlet by configuring in the web.xml? Can't we get ADF Bindings filter mapped to work with jsf pages? Won't ADF Bindings work with jsf pages, will they work only with jspx pages? , Please Help me. Thanking you, - Regards, Samba.
Re: ADF Bindings Servlet/Filter not invoking Faces Servlet
As for the extension I think you should use .xhtml for everything when using Facelets. I don't remember if I actually succeeded using both techonology together however. On 9/12/06, Simon Lessard [EMAIL PROTECTED] wrote: Hello Samba, This is more an ADF issue than a Trinidad one. However, I will try my best to answer it. Data bindings uses a pageDef file, I assume you already found that out. However, Facelet uses templates based on different pages. The question thus arise, where do you place your bindings? In the main page or the template. The answer, may be a bit unintuitive, but it's always in the page, never in the template, even if the binding is used in the template. That is, if your template is displaying the table, if should not have the table defined in its pageDef, the table should instead be defined in the page using that that template so that ADF lifecycle load the pageDef, and thus the bindings, before the render phase (prepare model phase if I remember well). Since pages included by Facelets are never known (and cannot be) by ADF at that moment, their pageDef is NEVER ever read, so drag drop from the binding pane in JDeveloper in combination with Facelets almost never work, you have to edit the pageDef manually. So my first suggestion would be to check your pageDef files. My second suggestion, which is my preferred most of the time, especially with product like TopLink (as opposed to BC4J), is to do it all programatically and drop databinding altogether. Note, I think you would have more success on OTN for this issue, Steve Muench is probably the highest authority on that matter. Regards, ~ Simon Technically, Facelet actually only fill the component tree On 9/12/06, Samba [EMAIL PROTECTED] wrote: I'm getting ADF Faces and Facelets working properly with pages written in jspx format, but the Faces Servlet being mapped to jsf format. The problem I'm getting is while displaying ADF Tables with data retrieved from the database using Toplink and bindings provided by ADF Databindings. The following is the Web.xml mappings for Faces Servlet and ADF bindings filter: servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping filter filter-nameadfBindings/filter-name filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class /filter filter-mapping filter-nameadfBindings/filter-name url-pattern*.jsp/url-pattern /filter-mapping filter-mapping filter-nameadfBindings/filter-name url-pattern*.jspx/url-pattern /filter-mapping I'm getting the ADF tables displayed using ADF Bindings, if the faces servlet is mapped for jspx format;but, at the cost of losing Facelets...Facelets is not working with Faces Servlet mapped to jspx format(though written in jspx format, the faces servlet mappping has to be made for jsf format.On the other hand, if I use faces servlet mapping for jsf pages I'm getting Facelets working but ADF Databindings are not working ,(I guess) and hence ADF Faces Tables are not being displayed(I'm getting Access Denied message). I even tried to change the ADF binding filter mappings from jsp jspx to - jsp and jsf But I got the same Access denied message. Suppose, I need customised display, rather than just a Table or Form,like: public String getEmp() { BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding(findAllEmp); Object result = operationBinding.execute(); if (!operationBinding.getErrors().isEmpty()) { return null; } ListEmp res=(ListEmp)result; for(int i=0;ires.size();i++) { Emp myrec=res.get(i); System.out.println(Employee [+myrec.getEname()+], Salary [+myrec.getSal()+]); } return ; } where I do some customisation in the backing bean. and I call that method binded to a button as below: af:commandButton text=findAllEmp disabled=#{!bindings.findAllEmp.enabled} binding=#{backing_Success.commandButton1} id=commandButton1 action=#{backing_Success.getEmp}/ What I'm getting is a disabled button. Why doesn't ADF bindings servlet invoke the faces Servlet? Can't we make ADF Bindings Servlet invoke Faces Servlet by configuring in the web.xml? Can't we get ADF Bindings filter mapped to work with jsf pages? Won't ADF Bindings work with jsf pages, will they work only with jspx pages? , Please Help me. Thanking you, - Regards, Samba.
Re: ADF Bindings Servlet/Filter not invoking Faces Servlet
Hello Samba, Drag drop works only with data controls to my knowledge. As for EL, I usually create a facade architecture and managed beans, so yeah it implies more code, but I get access to the whole API and it's easier to switch over another technology after imho. Better extensibility and modularisation at the cost of an higher initial development effort. Note that I'm more used to Hibernate than TopLink though, so the API could be a bit different, but I'm prety sure you can do almost the same. Regards, ~ Simon On 9/12/06, Samba [EMAIL PROTECTED] wrote: Thank you once again Simon, I understand that I shoiuld place a service request with Metalink. But before that Please clarify me one more thing: Can we get the EL access tio the methods that use TopLink ExpressionBuilder and all the other API(Which I'm not much familiar with). But Dragging and dropping DataControls from the DataControl pallette saves a lot of time rather than writing a few lines of code for each and every database related action that we do on a webpage! Can we get that drag and drop functionality with out ADF Bindings? Thanking you heartfeltly(if such a word exists!) Samba. On 9/12/06, Simon Lessard [EMAIL PROTECTED] wrote: Hmmm, Have you tried the following using XHTML extension for Facelets as well? Theorically it *should* work. filter-mapping filter-nameadfBindings/filter-name url-pattern*.xhtml/url-pattern /filter-mapping filter-mapping filter-nameadfFaces/filter-name url-pattern*.xhtml/url-pattern /filter-mapping Yet again, my suggestion would be to drop data controls altogether, this is hard when everyones know the technology, but ADF is not the best MV separation ever invented, the evil pageDef makes me think about ASP that remind me about IE which gives me nightmares. Furthermore, data controls will most likely suffer deep changes with JEE 5 persitence with annotations. If the above does not work (it should work though really) and you must use data controls, I think you should fill a Metalink issue as they should not be so tightly linked to page extension. Sorry that I cannot help much on this issue, but it's really either a Facelets and/or ADF Databindings (Oracle) issue and I cannot access the code of either to check what's going wrong. Regards, ~ Simon On 9/12/06, Samba [EMAIL PROTECTED] wrote: Thankyou very much Simon, for your detailed answer. I'm displaying those database tables in client pages, and not in templates, but still I could not access the Bindings in my backing bean, or get the table displayed. One more thing is For pages(in the same facelets application where faces servlet mapping is done for jsf)with out any Facelets tags in them also , I'm getting the same message Access denied for tables and also the bindings are not called in method actions written for commmandbuttons, in backing bean. And when I change that we.xml entry to map faces servlet to jspx pages , I'm getting ADF Bindings work, but facelets are not working in this format. Those two have become mutually exclusive thiings! I tried to change the path attribue for page tag in DataBindings.cpxfile from: page path=/TestPage.jspx usageId=TestPagePageDef/ to page path=/TestPage.jsf usageId=TestPagePageDef/ but still I did not get the bindings work for jsf pages. How is that the bindings filter is written to work with only jspx pages? Is this immutable? Can't we use bindings in jsf format? Or may be Is it that JDevloper is not recognising the jsf file format? Thanking you for the support you are providing,, Samba. On 9/12/06, Simon Lessard [EMAIL PROTECTED] wrote: As for the extension I think you should use .xhtml for everything when using Facelets. I don't remember if I actually succeeded using both techonology together however. On 9/12/06, Simon Lessard [EMAIL PROTECTED] wrote: Hello Samba, This is more an ADF issue than a Trinidad one. However, I will try my best to answer it. Data bindings uses a pageDef file, I assume you already found that out. However, Facelet uses templates based on different pages. The question thus arise, where do you place your bindings? In the main page or the template. The answer, may be a bit unintuitive, but it's always in the page, never in the template, even if the binding is used in the template. That is, if your template is displaying the table, if should not have the table defined in its pageDef, the table should instead be defined in the page using that that template so that ADF lifecycle load the pageDef, and thus the bindings, before the render phase (prepare model phase if I remember well). Since pages included by Facelets are never known (and cannot be) by ADF at that moment
Re: Looking for container tag
panelGroups is what should be used in that case indeed. panelBox is a more complex component. On 9/6/06, Daniel Hannum [EMAIL PROTECTED] wrote: panelGroupLayout did the trick, and most importantly, it didn't impose any layout changes. It's an invisible container of components. Just what I wanted. Thanks. -Original Message- From: Günther, Thorsten [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 11:21 AM To: adffaces-user@incubator.apache.org Subject: AW: Looking for container tag Hi! I took a tr:panelBox for that, but perhaps it's not the ideal choice. tr:panelHorizontalLayout or tr:panelGroupLayout should do it also. Bye, Thorsten -Ursprüngliche Nachricht- Von: Daniel Hannum [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 6. September 2006 16:17 An: adffaces-user@incubator.apache.org Betreff: Looking for container tag Hi, I'm trying to make components change there rendered status based on a dropdown. I found this article: http://groundside.com/blog/GrantRonald.php?title=conditional_rendering_o f_jsf_fields_depemore=1c=1tb=1pb=1 This isn't hard. I know how to do autoSubmit and partialTriggers and all. The difficulty is that you need to set partialTriggers on the PARENT component because if a component is not rendered, it doesn't listen for events. So what I want is a simple container component (kinda like a div) that I can just put my child components inside of, and set partialTriggers on. Is there such a component? I think a panelGrid with one item inside it would do it, or maybe a panelGroup, but those aren't ADF, so you can't use partialTriggers on them. Ideas? I'm going to look more at the component list, but I didn't see something simple like what I want. Thanks. Dan
Re: selectManyShuttle skinning
Hello Martin, I added some more comments inline, On 8/31/06, Martin Dickson [EMAIL PROTECTED] wrote: Hi Simon, Thank you for the reply -- comments on comments inline. :-) Simon Lessard wrote: On 8/30/06, Martin Dickson [EMAIL PROTECTED] wrote: 1) How can one turn off / not render / hide the text-only links in the Shuttle for Move, Move All, etc? The icon links (e.g. af|selectManyShuttle::move-icon) are addressable in a stylesheet, but there appears to be no matching ability to style (and thus hide) the text only links. What is the use case exactly? A shuttle with icon only? Yes indeed. The default use of the Shuttle appears to be either a) only text links (no icons) or b) text links and icons. We want c) icons only. Not possible currently, this is quite sad. I guess we could easily implement a skin property like -ora-show-link-text to enable skins to remove the links. I'll create an improvement issue on JIRA about that. 2) How is the :hover pseduoclass supported in Trinidad skins? :hover will pass thourgh the final generated CSS, however this won't work with icons. OK -- I can see that. The images given as content in the CSS become img tags in the generated html... which means that I can't use a background image switch as we have been doing. (This is a bit frustrating). In the future we might support it using some JavaScript when we detect :hover used on icons, it could fixes many issues. Also, beware of CSS :hover though as it work only on a elements in IE. Understood. There are ways around this by using IE htc behavior. Yeah, there's always way around for IE... The one I prefer is: not use IE :P. I guess you would like to add an highlighted border to the button on :hover... This would be a very nice addition imho and I will try to think of the best way to support it. However I doubt it's possible at the moment. Not really. What I want to do is switch images on hover. I can currently do this in CSS (on Tomahawk components). The engineering team now want to use Trinidad components and I need to work out how to match their behaviour to the rest of the UI (which uses image background switching), eg: a.taskIcon { width: 32px; height: 32px; background-repeat: no-repeat; background-position: 0 0px; } a.taskIcon.homeIcon {background-image: url(images/home32.png); } a.taskIcon:hover {background-position: 0 -32px;} If we had support for -icon:hover that issue would be easy: a.task-icon { content: url(...) } a.task-icon:hover { content: url(someInvisibleImage); } 2a) (OK so maybe three questions) :-) Is there a way to set a specific class against each of the links in the Shuttle? Not currently... Would be a nice addition too. However, supporting something like af|selectManyShuttle::move-icon:hover looks better. Not if it doesn't support images this way. If I can't support image swapping via the skin selectors I'd still be very happy to support it using traditional CSS and classes on the links. Without either I cannot implement with Trinidad something that is trivial to implement without it... and that would seem to be an undesirable weakness in in the skinning framework. I cannot see that removing / preventing standard CSS abilities without offering an alternative is a good way to go. If there is no method for achieving this then using Trinidad is (from this UI designers perspective at least) no longer just an implementation detail. :-) The skinning engine is improving over time, we need to have this kind of issues reported though and if possible added to JIRA. Believe me, I argued a lot about how skinning work in the past, and we all know it still need ameliorations, so don't be scared to continue posting issues like that. Most of the time we'll try to implement it when it seems reasonable. -icon:hover will be a tad harder to implement but I believe it's an important feature as well and I'll see if I can code it. Regards, ~ Simon Regards, Martin -- Martin Dickson ph: +64 9 3730400 x3592 User Experience Engineer fax: +64 9 3730401 First Data Utilities http://www.firstdata.com
Re: How to style a single tr:inputText with a background-color depending on a state?
Hello Markus, It will be possible soon since I posted a patch about this, we only need to commit it when we're sure it works fine. We have a small issue with states currently though so it might not be today. You'll be able to do just what you want using af|inputText:required::content/ Regards, ~ Simon On 8/31/06, Markus Heinisch [EMAIL PROTECTED] wrote: Hi, I want to style required input fields (tr:inputText) with a different background color and only the input element should be affected. With ADF Faces I used a little trick (see below). Now I want to use Trinidad and the trick doesn't work anymore! I have found no way to style a single component instance with a style class. (Don't want to write an inline style for every required form field). The documentation says about attribute styleClass: If in ADF, styleClass and inlineStyle were rendered on the label and the input. In Trinidad, these attributes are rendered on the root dom element. Sorry, have no clue what that means. Does it mean the root of the document or the parent of the input element which is a td? In the end it make no difference if I use attribute styleClass or not. :-( Any hints are welcome! Thanks, Markus From: Markus Heinisch [mailto:[EMAIL PROTECTED] Sent: Wed 28.06.2006 18:24 To: adffaces-user@incubator.apache.org Subject: AW: [SPAM] - Skin Enhancement Request - Bayesian Filter detected spam Hi Dan, Are you looking for a solution like this: af:inputText value=#{bindings.Title.inputValue} label=#{bindings.Title.label} required=#{bindings.Title.mandatory} styleClass=#{bindings.Title.mandatory ? 'required' : 'nonrequired'} columns=#{bindings.Title.displayWidth} /af:inputText The EL expression in the attribute styleClass makes the trick. The EL expression resolves to styleClass=required when the Title is mandatory (example uses Oracle ADF which provides for a property like 'Title' some metadata like 'mandatory' or 'updatable'). The styleclass must be defined in a CSS or your Skin-CSS: input.required, textarea.required, select.required { background-color: rgb(255,255,181); border-style: solid ; } input.nonrequired, textarea.nonrequired, select.nonrequired { background-color: white; border-style: solid ; } From my point of view everything you need is available to solve your styling needs. ;-) Cheers, Markus -- Markus Heinisch Dipl.-Inform. Consultant Trivadis GmbH Freischützstrasse 92 81927 München Germany Tel.: +49-89-99275930 Fax : +49-89-99275959 Mobile: +49-162-2959616 mailto:[EMAIL PROTECTED] http://www.trivadis.com -Ursprüngliche Nachricht- Von: Dan Robinson [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 28. Juni 2006 18:02 An: adffaces-user@incubator.apache.org Betreff: [SPAM] - Skin Enhancement Request - Bayesian Filter detected spam I don't think this is currently possible, but please prove me wrong! We'd like to provide a skin configuration that would cause certain styles to be appled when a field is marked as required. Specifically, we'd like to cause the input field background colour to be changed to make it very obvious that it is required. So far we've only been able to set the background color for all elements of an input field (label, tip, etc.). I guess an extension of this would be to make the label bold etc. etc. Thanks, Danny
Re: unsubscribe
Yes, but that was not my point. I agree that we should add some doc about it. However, what is strange is that many uses To: adffaces-user@incubator.apache.org Subject: unsubscribe Content: unsubscribe I may be wrong, but To: and Subject: are easily understandable, but I don't think many unsubscribe engines allow unsubscribe content. On the other hand, there's a chance to guess the unsubscribe method from the subcribing one, that people obviously found since they're on the list. I agree that it's quite obscure though. There was that post about someone who received spam mail asking him to subscribe though, but I sure hope that's not the case of everyone. Regards and sorry if that looked blunt, ~ Simon On 8/29/06, Sloan, Noah M [EMAIL PROTECTED] wrote: Perhaps because there is nothing about how to unsubscribe on the site? (the subscribe/unsubscribe text is not linked) Expecting people to guess [EMAIL PROTECTED] and adffaces-user- [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] is asking a bit much don't you think? From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Mon 28-Aug-06 1:30 PM To: adffaces-user@incubator.apache.org Subject: Re: unsubscribe ... Why is so many people trying to unsubscribe using that method? Unsubscribing only require an empty email to be sent to [EMAIL PROTECTED] Regards, ~ Simon On 8/28/06, Rick Rodriguez [EMAIL PROTECTED] wrote: unsubscribe -Original Message- From: Hall, Peter [mailto:[EMAIL PROTECTED] Sent: Fri 8/25/2006 1:40 AM To: adffaces-user@incubator.apache.org Cc: Subject:unsubscribe unsubscribe
Re: unsubscribe
... Why is so many people trying to unsubscribe using that method? Unsubscribing only require an empty email to be sent to [EMAIL PROTECTED] Regards, ~ Simon On 8/28/06, Rick Rodriguez [EMAIL PROTECTED] wrote: unsubscribe -Original Message- From: Hall, Peter [mailto:[EMAIL PROTECTED] Sent: Fri 8/25/2006 1:40 AM To: adffaces-user@incubator.apache.org Cc: Subject:unsubscribe unsubscribe
Re: unsubscribe
There's some inline comments below. On 8/28/06, Rick Rodriguez [EMAIL PROTECTED] wrote: I've been using the following method, and after numerous empty emails, it hasn't unsubscribed me: Hi! This is the ezmlm program. I'm managing the adffaces-dev@incubator.apache.org mailing list. -- That might be the problem, you seem to have unsubscribed from adffaces-dev successfully. You're missing adffaces-user. Try [EMAIL PROTECTED] if it does not work then we indeed have a small problem. Regards, ~ Simon I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] removed from the adffaces-dev mailing list, please send an empty reply to this address: [EMAIL PROTECTED] Usually, this happens when you just hit the reply button. If this does not work, simply copy the address and paste it into the To: field of a new message. or click here: mailto: [EMAIL PROTECTED] -Original Message- From: Simon Lessard [mailto:[EMAIL PROTECTED] Sent: Mon 8/28/2006 11:30 AM To: adffaces-user@incubator.apache.org Cc: Subject:Re: unsubscribe ... Why is so many people trying to unsubscribe using that method? Unsubscribing only require an empty email to be sent to [EMAIL PROTECTED] Regards, ~ Simon On 8/28/06, Rick Rodriguez [EMAIL PROTECTED] wrote: unsubscribe -Original Message- From: Hall, Peter [mailto:[EMAIL PROTECTED] Sent: Fri 8/25/2006 1:40 AM To: adffaces-user@incubator.apache.org Cc: Subject:unsubscribe unsubscribe