Re: how to use a new dojo class in myfaces?
Rogerio Pereira schrieb: The resource loading itself works well, but i think that's no chance to have a module in another jar since dojo requires the modules in a relative path from dojo source tree, as you already know, this isn't changed in the last version of myfaces. Ok, I had a good nights sleep over this. Afair it still is possible. The resource loading from myfaces should resolve that problem. Following, we have our own dojoized classes outside of the dojo hierarchy, I doubt jars are the issue here. Dojo itself resolves the namespaces over urls not over files so once you have dojo on your client all the other classes are loaded relatively to your dojo root. But that does not happen on jar level it happens on uri level. You can move your own classes outside of the dojo hirarchy relatively to dojo afair, by using the myfaces resource loading mechanisms. Jars are a non issue in this case, in my opinion. All I can say is check out some of the dojoized components of myfaces. while some of them only consume dojo some of them really use the class mechanisms and component mechanisms, and they use relative paths, starting from the dojo hierarchy into the local package hierarchy. The most important part is, if you define those paths on the dojo side you have to have in mind that all of this is loaded over relative urls which then have to root into your javasources. (I will again have a deeper look into those issues tomorrow when I do the dojo upgrade, then I will have more infos on this and how I did it, it probably was something like /..//dojo javascript class)> But as I said the easiest way to kickstart probably is to bypass all of this and add your dojoized javascripts to the dojo class hierarchy itself vial a build process (which for now is the preferred way by the dojo people as it seems)
How to open a JSF page in Weblogic Portal 8.1.5
HiDoes anyone knows how to open a portlet which is mapped to a JSF page in Weblogic 8.1.5 ??Hello World is displayed when I use the following entries in portal.xml Login Portlet loginPortlet Customer Admin Portlet org.apache.portals.bridges.jsf.FacesPortlet ViewPage /WEB-INF/jsps/login/login.jsp 0 text/html view en es Login Login Login -- Regards, Kapil kataria
Re: Facelets
I use Trinidad / Facelets / MyFaces (as runtime) works fine! what is wrong? what are your errors? if myfaces related: ask hier if Trinidad (ADF) related, ask the Trinidad guys if Facelets related, ask on facelets list -Matthias On 8/16/06, Dudu <[EMAIL PROTECTED]> wrote: Someone is using Facelets with ADF and MyFaces I think it is still beta. Am I right? I've tried it without sucess... I need to use in production environment, and I think it is a more powerful template for jsf than tiles... What your are using to make templates with jsdf(ADF and myfaces together)??? thanks -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Facelets
Someone is using Facelets with ADF and MyFacesI think it is still beta. Am I right? I've tried it without sucess...I need to use in production environment, and I think it is a more powerful template for jsf than tiles... What your are using to make templates with jsdf(ADF and myfaces together)???thanks
Re: Shale 1.0.x change to servlet 2.4 spec
On 8/16/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 8/16/06, Joe Shevland <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry if this has been discussed but I haven't found a huge amount of > discussion on it, just a few comments describing that it was an > important and necessary change. Some time around Shale 1.0.3 changes > were introduced which meant you needed to deploy to a Servlet API 2.4 > compliant container. This has left us in the difficult position of > either ripping out Shale or sticking with an increasingly dated version, > as unfortunately we're stuck with a 2.3 servlet container. > > Since 1.0.2 there's already been a few patches we've needed, and I > suspect that'll increase as its given more of a workout (certainly the > validation area has needed a few backported patches, the JSF > filter/controller aspect is working fine). Where I'm heading with this > is has anyone tried any workarounds to get the latest release to deploy > under a Servlet 2.3 environment? Or are the changes fundamental in > nature... I was hoping someone had just packaged up a few of the > required javax.servlet classes into a minijar and voila. I'm guessing > not given the classes in question and the need for container support, > but thought I'd ask the question. Or I was going to ask whether its > feasible to implement the functionality provided by the 2.4 spec in a > different fashion, if the changes are fairly localized, we would happily > take the time to do that too if theres an indication its possible. > > Cheers > Joe > > > The dependency that would be the hardest to try to work around is the use of a ServletRequestListener to fire init/destroy events for view controllers and related beans. This API did not exist in Servlet 2.3, although it *might* theoretically be possible ot use a Filter to do some of this stuff. This change to servlet 2.4 might be the reason why I could not get shale 1.0.3 to work inside WebSphere Portal 5.1. My application would not even start anymore. Is there any way that I can get my application to start up in the container that supports only 2.3? I realize that I may need to sacrifice some capabilities of shale. Two other questions... Does the use of shale-clay require the use of shale-core? Also could the ViewController functionality be relocated as a Phase Listener - the reason that I am asking is that portals do not have the ServletRequest or Filter entry points? The other dependency, which I can't see any way around, is if you are using the application controller filter, and you want that to apply to RequestDispatcher.forward calls as well -- there's no way to emulate this technique in 2.3. But it's not necessarily something that would affect all users of Shale, the way the first issue is. One of the hard parts about designing frameworks is deciding how to balance between supporting old APIs (to deal with users like you who are stuck and can't change) versus focus on enabling the use of new things. J2EE 1.4 (which includes Servlet 2.4) has been around for a couple of years now, and it would make building Shale a *lot* more complicated (plus limit what we can do) to support older revs, when the opportunities to improve ease of use through leveraging new APIs are there, and have been there for quite a while. I really sympathize with your position, but I think Shale needs to maintain it's base platform dependencies including Servlet 2.4 in order to address the current and future needs. Craig
problem, In the component “t:panelTabbedPan e” I place the style “texto_negro” . But it does not take it.
Good Evening. In the component “t:panelTabbedPane” I place the style “texto_negro”. This style is codified in a file .css and it have the following sentences: “.texto_negro { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; color: #00; } “ But it does not take it. The code is the following one: width="500px" border="0" activeTabStyleClass="false" style="texto_negro"> label="Pestaña_1" rendered="true" > id="testCheckBox" value="chexBox"/> for="testCheckBox" value="A checkbox"/> id="inp1"/> required="true" /> rendered="true"> id="testCheckBox2" value="chexBox"/> for="testCheckBox" value="A checkbox"/> id="inp11"/> required="true" /> I am grateful to whom could answer me: How I do, with styles .css, that the tab take these styles? Thanks
Re: has anyone used EL with a jsp style tag?
hi, yeah I meant styleClass. I've tried a lot of combinations and they all seem to get flagged as an error in EL syntax by MyEclipse, and the page causes an exception when I try to bring it up in tomcat. Maybe there are other ways to do the same thing? I just want to change the styleClass on a label depending on whether the field failed some edit. Thank you for responding, any other hints, guidance are appreciated. Tom "Mike Kienenberger" <[EMAIL PROTECTED] To om> "MyFaces Discussion" 08/16/2006 07:04 cc PM Subject Re: has anyone used EL with a jsp Please respond to style tag? "MyFaces Discussion" <[EMAIL PROTECTED] ache.org> On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm trying to do something like this > >
Re: No markup in myfaces-example-wap.war?
Jayson, what do you mean, when you say "no markup" ? -Matt On 8/16/06, Raymond, Jayson X -ND <[EMAIL PROTECTED]> wrote: I just pulled down and built the latest build and discovered that myfaces-example-wap.war has no markup to implement the demo with…. What am I missing something? Thanks in advance – Jayson Raymond -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
Re: how to use a new dojo class in myfaces?
Rogerio Pereira schrieb: The resource loading itself works well, but i think that's no chance to have a module in another jar since dojo requires the modules in a relative path from dojo source tree, as you already know, this isn't changed in the last version of myfaces. Ah yes, now I can remember, sorry, it has been quite a while. I dont think there is any chance to bypass that problem unless you either move away from the dojo component structure or to integrate your codebase into the dojo sourcetree and make your own build. another way might be to use the affected jars unpacked and add your own stuff in your build process unpacked as well. Either way, this is a big problem and it has to be fixed by the dojo people, i do not see any possibility to fix that one on the java side since the entire component dojo component code relies heavily on the dojo resource loading itself which causes this limit. Anoter way would be to omit the dojo component structure itself and just use the dojo infrastructure as a consumer.
No markup in myfaces-example-wap.war?
I just pulled down and built the latest build and discovered that myfaces-example-wap.war has no markup to implement the demo with…. What am I missing something? Thanks in advance – Jayson Raymond
Re: has anyone used EL with a jsp style tag?
On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm trying to do something like this I haven't done this, but I've seen others post similar code. Looks good to me. Try replacing 'someBean.boolean' with 'true' and 'false' and see if it does what you expect. Is this a 'style' or a 'styleClass' attribute?
Re: commandlink not working with sandbox subform
A jira issue has been creted for this. http://issues.apache.org/jira/browse/TOMAHAWK-606 Thanks, MahbubMike Kienenberger <[EMAIL PROTECTED]> wrote: I'd recommend opening a jira issue on this.http://issues.apache.org/jira/browse/TOMAHAWKThe only reference I've seen to this ishttp://issues.apache.org/struts/browse/STR-2496and the recommendation there was to use instead.At minimum, this needs to be documented, but probably there's a biggerproblem hiding here somewhere.On 8/13/06, Mahbub Rahman <[EMAIL PROTECTED]>wrote:>> Hi,>> t:commandLink and t:commandSortHeader in tomahawk-1.1.5-SNAPSHOT.jar does> not work for me with myfaces core 1.1.4 pre release version also (with jsp> not facelets). I am receiveing the same _javascript_ error (:_idcl is> null or not an object) on ie 6 and similar error on firefox. h:commandLink> works fine whereever t:commandLink fails.>> I am not receving this _javascript_ error on tomahawk 1.1.4 release branch> build available on> http://people.apache.org/builds/myfaces/tomahawk-1.1.x/>>> Thanks,> Mahbub>>> Murat Hazer <[EMAIL PROTECTED]>wrote:>> Hi,>> I use without any errors, the nly differece from your configuration is i use> facelets.>> Could you check your extension filter configuration, just an idea..>> regards...>>> On 8/13/06, Mak Nern Fatt Melvin <[EMAIL PROTECTED]>wrote:> >> >> >> > Hi,> >> > I am using sandBox subform to handle multiple forms in a single html> document. Everything works well really well except when it comes to the the> use of commandlink. I find that commandlink won't work when subform is used.> My simplified codes is as follows:> >> > > >> > > >> > > > > > > > > >> > > >> > > >> >> > I got the following _javascript_ error: caiaLicenceForm:_idcl is null or not> an object> > where "caiaLicenceForm" is my main form id.> >> > I am using the following jar files:> > 1) myfaces-api-1.1.5-SNAPSHOT.jar> > 2) myfaces-impl-1.1.5-SNAPSHOT.jar> > 3) tomahawk-1.1.5-SNAPSHOT.jar> > 4) tomahawk-sandbox-1.1.5-SNAPSHOT.jar> >> >> > Is there anyone who has used commandlink with sandBox subform and has no> problem with it? Need a reply from anyone. Thanks in advance. --> Murat HAZER> http://www.projedunyasi.org>>> > Do you Yahoo!?> Everyone is raving about the all-new Yahoo! Mail Beta.>> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: how to use a new dojo class in myfaces?
2006/8/16, Werner Punz <[EMAIL PROTECTED]>: First of all sorry for having been absent for a whiledue to health reasons. I will try to be more presentin the immediate future.Welcome back. The best way, given from what I can remember about the namespace issueis to simply extend the dojo namespace.This however is probably not possible in your case unless you arewilling to roll your own myfaces. What we did was to bend the resource loading mechanismsmyfaces already had in place to our own namespace withinthe myfaces structure and adjusted our own dojo basedcomponent classes to that namespace (check the code for that it was more or less a trial and error on my side til thingsstarted to work, due to lack of documentation on this issue back then).The lack of documentation is the sad part. I am not entirely sure since I do not know the current statusof the resource loading if stuff like that works from a differentjar as well, you can give it a try however.But as I said it is probably the easiest to just add your stuff to the dojo namespace, this is the recommendedway by the dojo people for now until the entirenamespacing issue is more or less fixed (rollingyour own namespaces is not fully documentedand not very well working to my knowledge) I have not checked out the current dojo version in this regardif the entire namespacing issue has been fixed.The resource loading itself works well, but i think that's no chance to have a module in another jar since dojo requires the modules in a relative path from dojo source tree, as you already know, this isn't changed in the last version of myfaces.
has anyone used EL with a jsp style tag?
hello to all, I'm trying to do something like this From what I've read, style will take an EL as long as it resolves to a string, just can't seem to tie that with a test expression. Thanks for your help in advance. Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail.
Re: pushing Dojo version 0.3.1 to sandbox
Gerald Müllan schrieb: Hi, on friday Werner and me will start on working to get the newest Dojo release 0.3.1 out to sandbox. This change may affect all dojo used components in a slight manner, since the dojo guys worked very hard on changing some modules and packages :) Apart from changing structure, functionality increased to a high level, so I am sure we will get some added values from the migration. If any problems around the affected components occur, please report the bugs and we will try to fix them as soon as possible. Yes, first of all my apologies that I have been absent lately, but I was absent due to health reasons which I still have not fully been recovered from. Anyway Yes, I am currently in preparations for the move to the next dojo version, I have been using the code for a while now in other projects and have confidence enough that the version is good enough to be moved over into myfaces. (No severe bugs in the parts I have used yet) So if all goes well Gerald and I will start to work on the big move by friday, so expect the new codebase very soon now.
Re: how to use a new dojo class in myfaces?
First of all sorry for having been absent for a while due to health reasons. I will try to be more present in the immediate future. The best way, given from what I can remember about the namespace issue is to simply extend the dojo namespace. This however is probably not possible in your case unless you are willing to roll your own myfaces. What we did was to bend the resource loading mechanisms myfaces already had in place to our own namespace within the myfaces structure and adjusted our own dojo based component classes to that namespace (check the code for that it was more or less a trial and error on my side til things started to work, due to lack of documentation on this issue back then). I am not entirely sure since I do not know the current status of the resource loading if stuff like that works from a different jar as well, you can give it a try however. But as I said it is probably the easiest to just add your stuff to the dojo namespace, this is the recommended way by the dojo people for now until the entire namespacing issue is more or less fixed (rolling your own namespaces is not fully documented and not very well working to my knowledge) I have not checked out the current dojo version in this regard if the entire namespacing issue has been fixed. Werner Rogerio Pereira schrieb: Ok for sandbox, but what about when i have a dojo enabled component (collapsiblePanel) and i need to create a new dojo module for my own dojo class and package this dojo class in my own jar. I couldn't find a way to pass the location of the resouce inside my jar. This thing will be for a personal project and can be donated to myfaces in the future, but not now. So i need find a way to call DojoUtils.addNamespace and pass the location of my dojo class packaged as resource in my own jar?
Re: General Lifecycle Question
On 8/16/06, Frank Russo <[EMAIL PROTECTED]> wrote: So, I made the mistake of not having an h:messages tag on my page. I was referencing an attribute on an object in a list as part of a datatable, that was failing. The only thing I was noticing was that the lifecycle was skipping the invoke application phase. Once I added the h:messages tag, I saw the issue, but what I'm wondering is that shouldn't the lifecycle also have skipped the update model values phase as well? I thought if process validations phase fails, then the lifecycle jumps right to render response. Sounds right to me, but was it the validation phase that was failing? It sounds like it would be the update model phase that's failing since the path to the model was wrong.
General Lifecycle Question
So, I made the mistake of not having an h:messages tag on my page. I was referencing an attribute on an object in a list as part of a datatable, that was failing. The only thing I was noticing was that the lifecycle was skipping the invoke application phase. Once I added the h:messages tag, I saw the issue, but what I'm wondering is that shouldn't the lifecycle also have skipped the update model values phase as well? I thought if process validations phase fails, then the lifecycle jumps right to render response. What is the correct behavior here? Frank RussoSenior DeveloperFX Alliance, LLC
Re: jscookMenu set up
On 7/17/06, Leyzerzon, Simeon <[EMAIL PROTECTED]> wrote: MyFacesExtensionsFilter Faces Servlet MyFacesExtensionsFilter *.jsf These two entries are duplicates, and will result in the filter being called twice on your page's generated html code. I'd say delete one of them and see if that doesn't fix some of your problems.
Selecting Row on Sortable Datatable
I think my problem is related to the following discussion. http://www.nabble.com/Selecting-Row-on-sortable-Datatable-t1905482.html I was using the auto sort feature of datatable for 1.13, but could not get it to work with Facelets as the datatable was unable to correctly determine the sort column. So I decided to try commandSortHeader and I am running into the same sort of issue as above. I currently do not set the preserveDataModel Attribute. Basically I have two backing beans and two forms Country Search Form and Country Maintenance Form The relevant methods on my backing beans are as follows Country Search Backing Bean Country Maintenance Form setSortColumn editPressed() setSortAscending getDataModel The setSortColumn Method sorts the list based on the Column Command Link pressed. On the Country Search Form I have a Find Button which populates the List. Everything works good until I try to edit the List after a sort. For Instance if my original List is CA – Canada US – United States And I sort it such that my list is US – United States CA - Canada What I am seeing is that when the edit Link is pressed on the US Row I am editing Canada. On some debugging that I have done I am seeing that the setSortColumn method on the Country Search Backing Bean is being called in the RestoreViewPhase Before the editPressed method is called. This means the list is resorted back into CA – Canada US – United States Before I get the Selected Row. Has this problem been fixed? If so which version? Is there a workaround? Also what is the estimated schedule for the 1.14 release? Thanks, Tom
Re: Using MyFacesGenericPortlet with Bea Weblogic Portal 8.1
Stefan Aigner wrote: > > Hi all, > > I want to use MyFacesGenericPortlet to convert existing portlets running > under Bea Weblogic Portal 8.1 SP5 to use JSF. > > I am relatively new to this, so I started with the MyFaces expamples > app. I tried to convert it into a portlet by following the steps under > > http://wiki.apache.org/myfaces/CreatingJSFPortlets. > > When I now deploy the MyFaces examples app as a portlet, I get this > exception: > > java.lang.IllegalArgumentException: Relative path [sample1.jsf] must > start with a / at > com.bea.netuix.servlets.controls.portlet.JavaPortlet$LocalUrlWriter.rewriteUrl(JavaPortlet.java:1232) > at > com.bea.portlet.container.PortletResponseImpl.encodeURL(PortletResponseImpl.java:57) > at > org.apache.myfaces.context.portlet.PortletExternalContextImpl.encodeResourceURL(PortletExternalContextImpl.java:197) > > > > Does any one know what this could mean? It means where you have "sample1.jsf" you need "/sample1.jsf" > > There are also several general questions, which are not completely clear > to me? As stated in the documentation above, I copied all what was > included in the web.xml of the MyFaces examples app into the web.xml of > my portal application. > > What I do not understand is what I need the FacesServlet for. When I > click on a link in my portlet, it is the portal servlet who handles the > request. > > In the examples app, there are links of the type > > Sample > 1 > > Does JSF behind the scenes automatically change the link to a link to my > portal servlet? If not, do I have to change the links manually to be > links to the portal servlet? If that's the case, how do I tell the > portal servlet what view id to display next? > > I just don't get the point of using the faces servlet in a portal > environment. > > > I would highly appreciate any help, hints and comments. > > > Thanks in advance, > > Stefan > > > ___ > > ACHTUNG! > Ab 19.06.2006 neue Postanschrift: > ___ > > Stefan Aigner . adesso AG . Rotherstrasse 19 . 10245 Berlin > > tel.: +49-30-7262033-42 mobil: +49-178-2808102 > fax: +49-30-7262033-99 email: [EMAIL PROTECTED] > > http://www.adesso.de > ___ -- Dave Brondsema Software Developer Cornerstone University signature.asc Description: OpenPGP digital signature
RE: swalled exception
Hi, Well, I guess it is sad then if so much thought has been put into the spec. I don't understand why you take the RI as the ultimate R, it was written by mere mortals after all ;) Never heard of "faces-trace", but yes it's a good idea for a program to stop executing after a fatal error instead of pretending it's not there. regards -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 11:19 AM To: MyFaces Discussion; Cagatay Civici Subject: Re: swalled exception Hi Bolerio, I can tell you that a lot of thought has been put into devising the JSF-Spec - even more, sometimes I think that too much thought has caused some of the problems of the spec However, please check what the RI does in the same case (and I think I checked before and found out that it does) - If the same is done, this would point away from a programming mistake. My point remains - wouldn't this be a good addition to faces-trace? Having an EL-resolver, and maybe DefaultActionListenerImpl with a better error-handling? regards, Martin On 8/16/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > Hi Martin, > > Mandated by the spec? Hmmm...don't know, I would agree that the JSF could have been designed with a bit more thoughtfulness, but this particular one looks just like a programming mistake. > > Best, > Bolerio > > > -Original Message- > From: Martin Marinschek [mailto:[EMAIL PROTECTED] > Sent: Wed 8/16/2006 10:47 AM > To: MyFaces Discussion > Subject: Re: swalled exception > > Interestingly enough, the RI does the same as we in the case of an > exception in the update model phase. I haven't checked with the spec > if this is mandated, but the JavaDoc indicate something in this > direction. > > I honestly don't like this myself. I wonder if faces-trace could be > extended to show exceptions like this on the page during development? > > regards, > > Martin > > On 8/16/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > As mentionned, time constraints prevented me from figuring out how to turn on logging, let alone submit a patch or even open a JIRA > > > > I wasn't asking for comment, but making one, and I also indicated a very specific case where the problem occurs, in the hope that it would be helpful. If it's not, than too bad. > > > > regards > > > > > > -Original Message- > > From: Mike Kienenberger [mailto:[EMAIL PROTECTED] > > Sent: Wed 8/16/2006 9:53 AM > > To: MyFaces Discussion > > Subject: Re: swalled exception > > > > Borislav, > > > > When you come across something like this, consider opening a JIRA > > issue and optionally attaching a patch to fix it. At minimum, you > > should include the stack trace or log message. Be aware that some > > behavior may be mandated by the JSF spec. > > > > In this particular case, there's not enough information to even > > comment on the specific problem. > > > > On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > Hi guys, > > > > > > > > > > > > I'm sure there is a way to configure logging so that this doesn't happen, > > > but by default I notice tons of swallowed exceptions in MyFaces. The > > > resulting behavior obviously is that something doesn't work and there's no > > > indication why. Regardless of logging the error and of my not having spent a > > > few hours figuring out how to configure MyFaces logs, I think it is > > > unacceptable behavior for the application to continue to run after a fatal > > > error. An example of a fatal error is an NPE thrown from a property setter > > > during the "update model values" request processing phase. Such errors > > > should be propagated to the servlet container so that I can eventually see a > > > stack trace on my browser - very convenient during development. > > > > > > > > > > > > Regards, > > > > > > Bolerio > > > > > > > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: commandlink not working with sandbox subform
I'd recommend opening a jira issue on this. http://issues.apache.org/jira/browse/TOMAHAWK The only reference I've seen to this is http://issues.apache.org/struts/browse/STR-2496 and the recommendation there was to use instead. At minimum, this needs to be documented, but probably there's a bigger problem hiding here somewhere. On 8/13/06, Mahbub Rahman <[EMAIL PROTECTED]> wrote: Hi, t:commandLink and t:commandSortHeader in tomahawk-1.1.5-SNAPSHOT.jar does not work for me with myfaces core 1.1.4 pre release version also (with jsp not facelets). I am receiveing the same javascript error (:_idcl is null or not an object) on ie 6 and similar error on firefox. h:commandLink works fine whereever t:commandLink fails. I am not receving this javascript error on tomahawk 1.1.4 release branch build available on http://people.apache.org/builds/myfaces/tomahawk-1.1.x/ Thanks, Mahbub Murat Hazer <[EMAIL PROTECTED]> wrote: Hi, I use without any errors, the nly differece from your configuration is i use facelets. Could you check your extension filter configuration, just an idea.. regards... On 8/13/06, Mak Nern Fatt Melvin <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I am using sandBox subform to handle multiple forms in a single html document. Everything works well really well except when it comes to the the use of commandlink. I find that commandlink won't work when subform is used. My simplified codes is as follows: > > > > > > > > > > > > > > > > I got the following javascript error: caiaLicenceForm:_idcl is null or not an object > where "caiaLicenceForm" is my main form id. > > I am using the following jar files: > 1) myfaces-api-1.1.5-SNAPSHOT.jar > 2) myfaces-impl-1.1.5-SNAPSHOT.jar > 3) tomahawk-1.1.5-SNAPSHOT.jar > 4) tomahawk-sandbox-1.1.5-SNAPSHOT.jar > > > Is there anyone who has used commandlink with sandBox subform and has no problem with it? Need a reply from anyone. Thanks in advance. -- Murat HAZER http://www.projedunyasi.org Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.
Re: [Tomahawk] panelTabbedPane and serverSideTabSwitch question
Older versions of MyFaces didn't process "true" correctly for serverSideTabSwitching. You had to use "#{true}" instead. You didn't say what version of Tomahawk you were using, but I think this was fixed after 1.1.1. Don't remember for sure -- check jira issue tracker. On 8/14/06, Nicolas Kalkhof <[EMAIL PROTECTED]> wrote: hello folks, i have a question regarding panelTabbedPane usage with tomahawk. to my understanding only the active tab is send to the browser when serverSideTabSwitch="true", right? so why are all tabs send to the browser regardless of the serverSideTabSwitch flag in my case? my code looks like this: . regards, nicolas __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Re: Re: commandLinks don't work on Tomcat 5.5.17
On 6/9/06, Garner Shawn <[EMAIL PROTECTED]> wrote: MyFaces Core 1.1.3 Binary Distribution MyFaces Tomahawk 1.1.2 Binary Distribution You cannot use Core 1.1.3 with Tomahawk 1.1.2. On 6/13/06, Hailong Zhang <[EMAIL PROTECTED]> wrote: I have the same problem. I'm working on Tomcat 5.5.12 with MyFaces 1.1.3 & Tomahawk 1.1.2. You cannot use Core 1.1.3 with Tomahawk 1.1.2. You can use Core 1.1.2 with Tomahawk 1.1.2. You can use Core 1.1.1 with Tomahawk 1.1.1. You can use Core 1.0.9 with Tomahawk 1.0.9. You can use Core 1.1.3 with Tomahawk 1.1.3 or Tomahawk 1.1.4 or Tomahawk 1.1.5 etc. You can use Tomahawk 1.1.3 with Core 1.1.3 or Core 1.1.4 or Core 1.1.5. Before 1.1.3, versions must match. With 1.1.3 and afterward, core and tomahawk AFTER 1.1.3 can be mixed and matched.
Using MyFacesGenericPortlet with Bea Weblogic Portal 8.1
Hi all, I want to use MyFacesGenericPortlet to convert existing portlets running under Bea Weblogic Portal 8.1 SP5 to use JSF. I am relatively new to this, so I started with the MyFaces expamples app. I tried to convert it into a portlet by following the steps under http://wiki.apache.org/myfaces/CreatingJSFPortlets. When I now deploy the MyFaces examples app as a portlet, I get this exception: java.lang.IllegalArgumentException: Relative path [sample1.jsf] must start with a / at com.bea.netuix.servlets.controls.portlet.JavaPortlet$LocalUrlWriter.rewriteUrl(JavaPortlet.java:1232) at com.bea.portlet.container.PortletResponseImpl.encodeURL(PortletResponseImpl.java:57) at org.apache.myfaces.context.portlet.PortletExternalContextImpl.encodeResourceURL(PortletExternalContextImpl.java:197) Does any one know what this could mean? There are also several general questions, which are not completely clear to me? As stated in the documentation above, I copied all what was included in the web.xml of the MyFaces examples app into the web.xml of my portal application. What I do not understand is what I need the FacesServlet for. When I click on a link in my portlet, it is the portal servlet who handles the request. In the examples app, there are links of the type Sample 1 Does JSF behind the scenes automatically change the link to a link to my portal servlet? If not, do I have to change the links manually to be links to the portal servlet? If that's the case, how do I tell the portal servlet what view id to display next? I just don't get the point of using the faces servlet in a portal environment. I would highly appreciate any help, hints and comments. Thanks in advance, Stefan ___ ACHTUNG! Ab 19.06.2006 neue Postanschrift: ___ Stefan Aigner . adesso AG . Rotherstrasse 19 . 10245 Berlin tel.: +49-30-7262033-42 mobil: +49-178-2808102 fax: +49-30-7262033-99 email: [EMAIL PROTECTED] http://www.adesso.de ___
Re: Potlets with Tomahawk in Liferay
Wiki this please.2006/8/16, David Chandler <[EMAIL PROTECTED]>: I'm running Tree2 from Tomahawk 1.1.3 in Jetspeed2 with server-side expansion so as not to require _javascript_. The ExtensionsFilter is therefore needed only to serve up the image resources needed by Tree2, and image requests are handled through the Faces Servlet, not the portal, so the ExtensionsFilter will run as normal for these requests. However, Tomahawk 1.1.3 checks to see if the ExtensionsFilter has been configured, which fails in the portal context, but you can disable the check with a web.xml context param. So to summarize, you can use Tree2 1.1.3 in a portal without any of the MYFACES-434 patches if 1) You use server-side toggle 2) You configure ExtensionsFilter as normal for the Faces Servlet 3) You disable the ExtensionsFilter configuration check as follows in web.xml: org.apache.myfaces.CHECK_EXTENSIONS_FILTER false /dmc David Chandler blog: http://turbomanage.wordpress.com On 8/14/06, Dave Brondsema <[EMAIL PROTECTED] > wrote: Marcus Smith wrote:> Hi,>> I tried to run Tomahawk components (which require _javascript_) like InputCalendar or tree2 in a Portlet on the Liferay Portal without success. > On portlet deployment Exceptions are thrown regarding to the ExtensionFilter.>> I know there is a JIRA entry about this issues and many patches are available. ( http://issues.apache.org/jira/browse/MYFACES-434).>> Can somebody tell me how to apply which patch to the myfaces src?>> Has anybody successful deployed portlets using Tomahawk components? >I use some tomahawk components that do not use _javascript_, but thatdoesn't really help you. The MYFACES-434 patches are probablyout-of-date from the current development code and need some tweaking before they can be used easily.We really need a MyFaces developer who works with portlets.FWIW, I use the popup calendar from http://www.jenia.org/ which worksfine with no filter. --Dave BrondsemaSoftware DeveloperCornerstone University -- Yours truly (Atenciosamente),Rogério (_rogerio_)
Re: Shale 1.0.x change to servlet 2.4 spec
On 8/16/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: The dependency that would be the hardest to try to work around is the use of a ServletRequestListener to fire init/destroy events for view controllers and related beans. This API did not exist in Servlet 2.3, although it *might* theoretically be possible ot use a Filter to do some of this stuff. Every servlet filter is a "ServletRequestListener" so that seems pretty easy to deal with. The other dependency, which I can't see any way around, is if you are using the application controller filter, and you want that to apply to RequestDispatcher.forward calls as well -- there's no way to emulate this technique in 2.3. But it's not necessarily something that would affect all users of Shale, the way the first issue is. Yep. That's probably not negotiable.
Re: Potlets with Tomahawk in Liferay
I'm running Tree2 from Tomahawk 1.1.3 in Jetspeed2 with server-side expansion so as not to require _javascript_. The ExtensionsFilter is therefore needed only to serve up the image resources needed by Tree2, and image requests are handled through the Faces Servlet, not the portal, so the ExtensionsFilter will run as normal for these requests. However, Tomahawk 1.1.3 checks to see if the ExtensionsFilter has been configured, which fails in the portal context, but you can disable the check with a web.xml context param. So to summarize, you can use Tree2 1.1.3 in a portal without any of the MYFACES-434 patches if 1) You use server-side toggle 2) You configure ExtensionsFilter as normal for the Faces Servlet 3) You disable the ExtensionsFilter configuration check as follows in web.xml: org.apache.myfaces.CHECK_EXTENSIONS_FILTER false /dmc David Chandler blog: http://turbomanage.wordpress.com On 8/14/06, Dave Brondsema <[EMAIL PROTECTED]> wrote: Marcus Smith wrote:> Hi,>> I tried to run Tomahawk components (which require _javascript_) like InputCalendar or tree2 in a Portlet on the Liferay Portal without success. > On portlet deployment Exceptions are thrown regarding to the ExtensionFilter.>> I know there is a JIRA entry about this issues and many patches are available. ( http://issues.apache.org/jira/browse/MYFACES-434).>> Can somebody tell me how to apply which patch to the myfaces src?>> Has anybody successful deployed portlets using Tomahawk components? >I use some tomahawk components that do not use _javascript_, but thatdoesn't really help you. The MYFACES-434 patches are probablyout-of-date from the current development code and need some tweaking before they can be used easily.We really need a MyFaces developer who works with portlets.FWIW, I use the popup calendar from http://www.jenia.org/ which worksfine with no filter. --Dave BrondsemaSoftware DeveloperCornerstone University
Re: Shale 1.0.x change to servlet 2.4 spec
On 8/16/06, Joe Shevland <[EMAIL PROTECTED]> wrote: Hi,Sorry if this has been discussed but I haven't found a huge amount ofdiscussion on it, just a few comments describing that it was animportant and necessary change. Some time around Shale 1.0.3 changes were introduced which meant you needed to deploy to a Servlet API 2.4compliant container. This has left us in the difficult position ofeither ripping out Shale or sticking with an increasingly dated version,as unfortunately we're stuck with a 2.3 servlet container.Since 1.0.2 there's already been a few patches we've needed, and Isuspect that'll increase as its given more of a workout (certainly thevalidation area has needed a few backported patches, the JSF filter/controller aspect is working fine). Where I'm heading with thisis has anyone tried any workarounds to get the latest release to deployunder a Servlet 2.3 environment? Or are the changes fundamental in nature... I was hoping someone had just packaged up a few of therequired javax.servlet classes into a minijar and voila. I'm guessingnot given the classes in question and the need for container support,but thought I'd ask the question. Or I was going to ask whether its feasible to implement the functionality provided by the 2.4 spec in adifferent fashion, if the changes are fairly localized, we would happilytake the time to do that too if theres an indication its possible. CheersJoeThe dependency that would be the hardest to try to work around is the use of a ServletRequestListener to fire init/destroy events for view controllers and related beans. This API did not exist in Servlet 2.3, although it *might* theoretically be possible ot use a Filter to do some of this stuff.The other dependency, which I can't see any way around, is if you are using the application controller filter, and you want that to apply to RequestDispatcher.forward calls as well -- there's no way to emulate this technique in 2.3. But it's not necessarily something that would affect all users of Shale, the way the first issue is.One of the hard parts about designing frameworks is deciding how to balance between supporting old APIs (to deal with users like you who are stuck and can't change) versus focus on enabling the use of new things. J2EE 1.4 (which includes Servlet 2.4) has been around for a couple of years now, and it would make building Shale a *lot* more complicated (plus limit what we can do) to support older revs, when the opportunities to improve ease of use through leveraging new APIs are there, and have been there for quite a while. I really sympathize with your position, but I think Shale needs to maintain it's base platform dependencies including Servlet 2.4 in order to address the current and future needs.Craig
Re: How to add child to node in tree2?
On 8/12/06, Ach <[EMAIL PROTECTED]> wrote: I have a tree2 component with checkboxes on nodes. And a add button in my form and want to add a childeren to checked node when I press ADD button. I do not know how to know which node is checked and how to generate the code for adding child node. Your help is so appreciated friends. To add a child, your node simply needs to return it when getChildren is called. So how to add a child depends on your implemenation of Node.getChildren(). I don't know how you can determine which node is checked -- again that probably depends on how your application set up the node. I do know that you can determine which node is clicked like this: Node node = (Node)treeUI.getNode(); where binding="#{yourBean.treeUI}"
Re: swalled exception
Hi Bolerio, I can tell you that a lot of thought has been put into devising the JSF-Spec - even more, sometimes I think that too much thought has caused some of the problems of the spec However, please check what the RI does in the same case (and I think I checked before and found out that it does) - If the same is done, this would point away from a programming mistake. My point remains - wouldn't this be a good addition to faces-trace? Having an EL-resolver, and maybe DefaultActionListenerImpl with a better error-handling? regards, Martin On 8/16/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: Hi Martin, Mandated by the spec? Hmmm...don't know, I would agree that the JSF could have been designed with a bit more thoughtfulness, but this particular one looks just like a programming mistake. Best, Bolerio -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Wed 8/16/2006 10:47 AM To: MyFaces Discussion Subject: Re: swalled exception Interestingly enough, the RI does the same as we in the case of an exception in the update model phase. I haven't checked with the spec if this is mandated, but the JavaDoc indicate something in this direction. I honestly don't like this myself. I wonder if faces-trace could be extended to show exceptions like this on the page during development? regards, Martin On 8/16/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > As mentionned, time constraints prevented me from figuring out how to turn on logging, let alone submit a patch or even open a JIRA > > I wasn't asking for comment, but making one, and I also indicated a very specific case where the problem occurs, in the hope that it would be helpful. If it's not, than too bad. > > regards > > > -Original Message- > From: Mike Kienenberger [mailto:[EMAIL PROTECTED] > Sent: Wed 8/16/2006 9:53 AM > To: MyFaces Discussion > Subject: Re: swalled exception > > Borislav, > > When you come across something like this, consider opening a JIRA > issue and optionally attaching a patch to fix it. At minimum, you > should include the stack trace or log message. Be aware that some > behavior may be mandated by the JSF spec. > > In this particular case, there's not enough information to even > comment on the specific problem. > > On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hi guys, > > > > > > > > I'm sure there is a way to configure logging so that this doesn't happen, > > but by default I notice tons of swallowed exceptions in MyFaces. The > > resulting behavior obviously is that something doesn't work and there's no > > indication why. Regardless of logging the error and of my not having spent a > > few hours figuring out how to configure MyFaces logs, I think it is > > unacceptable behavior for the application to continue to run after a fatal > > error. An example of a fatal error is an NPE thrown from a property setter > > during the "update model values" request processing phase. Such errors > > should be propagated to the servlet container so that I can eventually see a > > stack trace on my browser - very convenient during development. > > > > > > > > Regards, > > > > Bolerio > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: render a complex datatable ???
On 8/16/06, Michael Heinen <[EMAIL PROTECTED]> wrote: But I have an open question to your 3rd approach: If my datatable contains a List with ItemHolders, how can I achieve that always n Items (not ItemHolders or SubItems) are rendered on each page? Would I have to create a new Renderer for the table and a new Scroller if the dataModel contains a List with ItemHolders? I don't know the answer to this. I know that DataTable contains "first" and "rows" variables to represent pages, so my guess is that you'd need to change the DataTable component rather than the renderer or DataScroller.
RE: swalled exception
Hi Martin, Mandated by the spec? Hmmm...don't know, I would agree that the JSF could have been designed with a bit more thoughtfulness, but this particular one looks just like a programming mistake. Best, Bolerio -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Wed 8/16/2006 10:47 AM To: MyFaces Discussion Subject: Re: swalled exception Interestingly enough, the RI does the same as we in the case of an exception in the update model phase. I haven't checked with the spec if this is mandated, but the JavaDoc indicate something in this direction. I honestly don't like this myself. I wonder if faces-trace could be extended to show exceptions like this on the page during development? regards, Martin On 8/16/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > As mentionned, time constraints prevented me from figuring out how to turn on > logging, let alone submit a patch or even open a JIRA > > I wasn't asking for comment, but making one, and I also indicated a very > specific case where the problem occurs, in the hope that it would be helpful. > If it's not, than too bad. > > regards > > > -Original Message- > From: Mike Kienenberger [mailto:[EMAIL PROTECTED] > Sent: Wed 8/16/2006 9:53 AM > To: MyFaces Discussion > Subject: Re: swalled exception > > Borislav, > > When you come across something like this, consider opening a JIRA > issue and optionally attaching a patch to fix it. At minimum, you > should include the stack trace or log message. Be aware that some > behavior may be mandated by the JSF spec. > > In this particular case, there's not enough information to even > comment on the specific problem. > > On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hi guys, > > > > > > > > I'm sure there is a way to configure logging so that this doesn't happen, > > but by default I notice tons of swallowed exceptions in MyFaces. The > > resulting behavior obviously is that something doesn't work and there's no > > indication why. Regardless of logging the error and of my not having spent a > > few hours figuring out how to configure MyFaces logs, I think it is > > unacceptable behavior for the application to continue to run after a fatal > > error. An example of a fatal error is an NPE thrown from a property setter > > during the "update model values" request processing phase. Such errors > > should be propagated to the servlet container so that I can eventually see a > > stack trace on my browser - very convenient during development. > > > > > > > > Regards, > > > > Bolerio > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces <>
Tomahawk schedule component (fitting entries on weekly and daily views)
I have many entries in each day and that creates problems fitting them on monthly and weekly views. What I'm trying to achieveis to show only those entries which fit a day cell and put link 'more...' on the bottom of the cell clicking on which would bring up daily view. Any thoughts how this can be done?Thanks,--MG
Re: swalled exception
Interestingly enough, the RI does the same as we in the case of an exception in the update model phase. I haven't checked with the spec if this is mandated, but the JavaDoc indicate something in this direction. I honestly don't like this myself. I wonder if faces-trace could be extended to show exceptions like this on the page during development? regards, Martin On 8/16/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: As mentionned, time constraints prevented me from figuring out how to turn on logging, let alone submit a patch or even open a JIRA I wasn't asking for comment, but making one, and I also indicated a very specific case where the problem occurs, in the hope that it would be helpful. If it's not, than too bad. regards -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wed 8/16/2006 9:53 AM To: MyFaces Discussion Subject: Re: swalled exception Borislav, When you come across something like this, consider opening a JIRA issue and optionally attaching a patch to fix it. At minimum, you should include the stack trace or log message. Be aware that some behavior may be mandated by the JSF spec. In this particular case, there's not enough information to even comment on the specific problem. On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > I'm sure there is a way to configure logging so that this doesn't happen, > but by default I notice tons of swallowed exceptions in MyFaces. The > resulting behavior obviously is that something doesn't work and there's no > indication why. Regardless of logging the error and of my not having spent a > few hours figuring out how to configure MyFaces logs, I think it is > unacceptable behavior for the application to continue to run after a fatal > error. An example of a fatal error is an NPE thrown from a property setter > during the "update model values" request processing phase. Such errors > should be propagated to the servlet container so that I can eventually see a > stack trace on my browser - very convenient during development. > > > > Regards, > > Bolerio -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
RE: swalled exception
As mentionned, time constraints prevented me from figuring out how to turn on logging, let alone submit a patch or even open a JIRA I wasn't asking for comment, but making one, and I also indicated a very specific case where the problem occurs, in the hope that it would be helpful. If it's not, than too bad. regards -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wed 8/16/2006 9:53 AM To: MyFaces Discussion Subject: Re: swalled exception Borislav, When you come across something like this, consider opening a JIRA issue and optionally attaching a patch to fix it. At minimum, you should include the stack trace or log message. Be aware that some behavior may be mandated by the JSF spec. In this particular case, there's not enough information to even comment on the specific problem. On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > I'm sure there is a way to configure logging so that this doesn't happen, > but by default I notice tons of swallowed exceptions in MyFaces. The > resulting behavior obviously is that something doesn't work and there's no > indication why. Regardless of logging the error and of my not having spent a > few hours figuring out how to configure MyFaces logs, I think it is > unacceptable behavior for the application to continue to run after a fatal > error. An example of a fatal error is an NPE thrown from a property setter > during the "update model values" request processing phase. Such errors > should be propagated to the servlet container so that I can eventually see a > stack trace on my browser - very convenient during development. > > > > Regards, > > Bolerio <>
Re: swalled exception
In the future, as you all come across these, let's open some JIRA issues so they can either be handled better (different logging level or throw the exception) On 8/16/06, L Frohman <[EMAIL PROTECTED]> wrote: I have had a similar problem, where the code catches an exception, then if the logging level was set to debug, it logs the exception, then the exception was rethrown. Yes this was frustrating to solve, until I set my logging level to debug. It was obviously written this way for a reason, but I don't know why. -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 6:54 AM To: MyFaces Discussion Subject: Re: swalled exception Borislav, When you come across something like this, consider opening a JIRA issue and optionally attaching a patch to fix it. At minimum, you should include the stack trace or log message. Be aware that some behavior may be mandated by the JSF spec. In this particular case, there's not enough information to even comment on the specific problem. On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > I'm sure there is a way to configure logging so that this doesn't > happen, but by default I notice tons of swallowed exceptions in > MyFaces. The resulting behavior obviously is that something doesn't > work and there's no indication why. Regardless of logging the error > and of my not having spent a few hours figuring out how to configure > MyFaces logs, I think it is unacceptable behavior for the application > to continue to run after a fatal error. An example of a fatal error is > an NPE thrown from a property setter during the "update model values" > request processing phase. Such errors should be propagated to the > servlet container so that I can eventually see a stack trace on my browser - very convenient during development. > > > > Regards, > > Bolerio
Re: data refreshing in the autosortable dataTable
resolved without help of autosortable tables. vasiliy.kiryanov wrote: > > Hello all. > > I want to find solution how to invoke my method in the BackingBean method > that fill data form db every time when user select sorting by another > field clicking on the table header. > Or how to say to t:savestate to forget old data when user click on button > to recieve new data for new selected period. > Sure I prefer second way because program will get data from db only when > new data is needed. > > thank you. > -- View this message in context: http://www.nabble.com/data-refreshing-in-the-autosortable-dataTable-tf2108130.html#a5833505 Sent from the MyFaces - Users forum at Nabble.com.
RE: Testing of MyFaces Core 1.1.4 - SNAPSHOT
I found the problem. In previous versions the panelNavigation needed no enclosing form-tag, but surrounding now wit form tag it works fine! BTW, when will the 1.1.4 /1.1.5 be released? Regards, Stephan > -Original Message- > From: Strittmatter, Stephan > [mailto:[EMAIL PROTECTED] > Sent: Monday, July 17, 2006 1:59 PM > To: MyFaces Discussion > Subject: RE: Testing of MyFaces Core 1.1.4 - SNAPSHOT > > I am not shure, if it is from 1.1.4-SNAPSHOT. I use also > tomahawk-1.1.5-SNAPSHOT in addition. > > But using with static > elements, I have JavaScriptErrors in Firefox: > > Error: getScrolling is not defined > Source File: http://localhost/index.jsf > Line: 1 > > Regards, > > Stephan > > > -Original Message- > > From: Torsten Krah [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 17, 2006 12:48 PM > > To: MyFaces Discussion > > Subject: Re: Testing of MyFaces Core 1.1.4 - SNAPSHOT > > > > Is there a tomahawk 1.1.4 going to be released - using some of its > > components here and 1.1.5 tomahawk doesnt work with 1.1.4 of core, > > although 1.1.3 tomahawk still seems to work. > > > > exception is: > > > > javax.faces.FacesException: > > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.get > > BooleanValue(Ljava/lang/String;Ljava/lang/Object;Z)Z > > > > kind regards > > > > Torsten > > > > Am Samstag, den 15.07.2006, 22:53 -0700 schrieb Matthias Wessendorf: > > > Hi users, > > > > > > we are about to release the next version of the MyFaces > Core version > > > (1.1.4). We'd like to ask you to test our last snapshot > of the core > > > distribution, which is available at: > > > > > > * http://people.apache.org/builds/myfaces/core-1.1.x/ > > > > > > Please check them and let us know if they'll be okay > > > for the release. For your information; Dennis tested them > > with the TCK > > > and they passed the test, which is a *good* signal :) > > > > > > More info here: http://wiki.apache.org/myfaces/CoreRelease114 > > > > > > Thanks for the help, > > > Matthias > > > > > > > >
RE: swalled exception
I have had a similar problem, where the code catches an exception, then if the logging level was set to debug, it logs the exception, then the exception was rethrown. Yes this was frustrating to solve, until I set my logging level to debug. It was obviously written this way for a reason, but I don't know why. -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 6:54 AM To: MyFaces Discussion Subject: Re: swalled exception Borislav, When you come across something like this, consider opening a JIRA issue and optionally attaching a patch to fix it. At minimum, you should include the stack trace or log message. Be aware that some behavior may be mandated by the JSF spec. In this particular case, there's not enough information to even comment on the specific problem. On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > I'm sure there is a way to configure logging so that this doesn't > happen, but by default I notice tons of swallowed exceptions in > MyFaces. The resulting behavior obviously is that something doesn't > work and there's no indication why. Regardless of logging the error > and of my not having spent a few hours figuring out how to configure > MyFaces logs, I think it is unacceptable behavior for the application > to continue to run after a fatal error. An example of a fatal error is > an NPE thrown from a property setter during the "update model values" > request processing phase. Such errors should be propagated to the > servlet container so that I can eventually see a stack trace on my browser - very convenient during development. > > > > Regards, > > Bolerio
RE: Ajax and Portlets
caching could be disabled for Portlets within Liferay: http://jroller.com/page/stritti?entry=myfaces_portlets_within_liferay Probably this helps you. Regards, Stephan From: Papaioannou, Todd [mailto:[EMAIL PROTECTED] Sent: Saturday, August 05, 2006 2:12 AMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: RE: Ajax and Portlets Not with anything that includes commandButtons or commandLinks. With Liferay at least, the portal caching gets in the way. Going a back door route to get the page from JSF breaks because you can't then ensure that the links are compliant to the portal's url structure. Well, without a lot of really portal specific code. Have had a lot of success wiring in DWR and doing the work from within the browser, using DWR as a back door to the Controller. This is my preferred route currently. Todd From: Rogerio Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 6:53 AMTo: MyFaces DiscussionSubject: Ajax and Portlets Any sucess reports?-- Yours truly (Atenciosamente),Rogério
RE: render a complex datatable ???
Thanks Mike for your thoughts. The first 2 approaches are not applicable for me as you suspected. Yes, my data I completely homogenious. SubItem and Item contain 100% the same attributes for display. But I have an open question to your 3rd approach: If my datatable contains a List with ItemHolders, how can I achieve that always n Items (not ItemHolders or SubItems) are rendered on each page? Say I have a datatable with n=4 items on each page: Page1: Item1 Item2 Item3 Item4 Page2 Item5 Item6 Item7 Item8 When the user clicks now on Item2, I need something like a drill functionality: Page1 Item1 Item2 SubItem2_1 (indented by css) SubItem2_1 Item3 Item4 Page2 Item5 Item6 Item7 Item8 Would I have to create a new Renderer for the table and a new Scroller if the dataModel contains a List with ItemHolders? Michael -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 16. August 2006 15:41 To: MyFaces Discussion Subject: Re: render a complex datatable ??? Here are a few ways I've handled this situation. The first two are probably not applicable. 1) Use a t:popup to show the subitem values for a column. The displayed column value is the first subitem in the list. For a "name" column, for example, I'd show "Bob [4]" with the "[4]" in a different color, and when the mouse hovers over the "[4]", It'd show "BobFredGeorgeTom" in the popup. 2) Use an inner dataTable to display the elements. The column would contain "BobFredGeorgeTom" when displayed. This can work fairly well when the data spans multiple columns. 3) Create a ItemHolder class containing a reference to an Item and a reference to a SubItem.Build a list of these with Items and Subitems as appropriate for display, and assign this list to the dataTable value.Then in your columns, display something depending on whether the item or the subitem value is non-null. It'll depend on the data how this might look. If the data is homogenious, then you can do something like I think you can even go so far as to make the column itself rendered or not rendered, thus having the subitem columns and item columns differ in number, but you'd want to test this. This might look cleanest as you could list all of the item columns, then all of the subitem columns on your page. On 8/16/06, Michael Heinen <[EMAIL PROTECTED]> wrote: > I have a datatable with Items in it. > > One column in the datatable contains a link to show SubItems of an Item. > > These SubItems have to be displayed also in the datatable below the clicked > Item in additional rows. > > The row (or the columns) of these SubItems have special css classes for > visualization. The number of columns is the same for Items and SubItems. > > Moreover the rows (Items and SubItems) contain checkboxes. > > > > The datatable is bound to a PagedListDataModel in the BackingBean as > mentioned in the WIKI. > > This dataModel contains a List of Items and I have to display e.g. 20 Items > on each page, regardless of SubItems. > > The class Item contains a method getSubItems(). > > > > What is now the best approach to visualize these SubItems in the datatable? > > I think I have just to output additional table rows. > > > > a) Can I achieve this with a custom TableRenderer? > > The HtmlTableRendererBase contains a method afterRow(FacesContext > facescontext, UIData uidata). > > Can I overwrite this method and place my logic there? > > uiData.getRowData() returns the last rendered Item. > > How can I now render additional rows with columns (and their children) for > these SubItems? > > > > b) Or would it be easier to manipulate the dataModel and add the SubItems to > the DataModel? > > I am not sure how to display the right number of Items on a page in this > case if the DataModel contains both, Items and SubItems? > > > > > > Any help is highly appreciated > > Michael
Re: swalled exception
Borislav, When you come across something like this, consider opening a JIRA issue and optionally attaching a patch to fix it. At minimum, you should include the stack trace or log message. Be aware that some behavior may be mandated by the JSF spec. In this particular case, there's not enough information to even comment on the specific problem. On 7/17/06, Iordanov, Borislav (GIC) <[EMAIL PROTECTED]> wrote: Hi guys, I'm sure there is a way to configure logging so that this doesn't happen, but by default I notice tons of swallowed exceptions in MyFaces. The resulting behavior obviously is that something doesn't work and there's no indication why. Regardless of logging the error and of my not having spent a few hours figuring out how to configure MyFaces logs, I think it is unacceptable behavior for the application to continue to run after a fatal error. An example of a fatal error is an NPE thrown from a property setter during the "update model values" request processing phase. Such errors should be propagated to the servlet container so that I can eventually see a stack trace on my browser – very convenient during development. Regards, Bolerio
Re: how to use a new dojo class in myfaces?
Ok for sandbox, but what about when i have a dojo enabled component (collapsiblePanel) and i need to create a new dojo module for my own dojo class and package this dojo class in my own jar. I couldn't find a way to pass the location of the resouce inside my jar. This thing will be for a personal project and can be donated to myfaces in the future, but not now. So i need find a way to call DojoUtils.addNamespace and pass the location of my dojo class packaged as resource in my own jar?2006/8/16, Rogerio Pereira <[EMAIL PROTECTED]>: Ok for sandbox, but what about when i have a dojo enabled component (collapsiblePanel) and i need to create a new dojo module for my own dojo class and package this dojo class in my own jar. I couldn't find a way to pass the location of the resouce inside my jar. This thing will be for a personal project and can be donated to myfaces in the future, but not now. So i need find a way to call DojoUtils.addNamespace and pass the location of my dojo class packaged as resource in my own jar. 2006/8/16, Gerald Müllan < [EMAIL PROTECTED]>: Yes, werner has written the dojo foundation stuff in sandbox environment.If you add the js file like i suggested, it is automatically packagedinto the sandbox jar.Just test it; Try a mvn install with maven (only in sandbox dir), and have a look at the jar.The js. file is than automatically loaded into the browser; and thusdojo should be able to understand that file.Does it work now?cheers,GeraldOn 8/16/06, Rogerio Pereira < [EMAIL PROTECTED]> wrote:> Is Werner that created the dojo support for myfaces? DojoUtils.addNamespace > seens the right way, but my only problem is related with location parameter, > how can i pass the resource folder inside my component jar to this method.>> 2006/8/16, Rogerio Pereira < [EMAIL PROTECTED]>:> > > > H, with DojoUtils.addNamespace i can define my own namespace and then> point this namespace to the location that you mentioned for my component> dojo class. Thx Gerald.> >> > > > 2006/8/16, Gerald Müllan < [EMAIL PROTECTED]>:> >> > > Hi, > > >> > > if you contribute the component, it will first go to sandbox. > > >> > > So put your custom .js stuff where the other js files for the> > > components are located; in the resources dir:> > >> > >> tomahawk\sandbox\core\src\main\resources\org\apache\myfaces\custom\yourComponentDir > > >> > > You can load the js resource than easily via the _javascript_ location> > > and the extensions filter.> > > See other renderers as an example, e.g. TableSuggestAjaxRenderer. > > >> > > cheers,> > >> > > Gerald> > >> > > On 8/16/06, Rogerio Pereira < [EMAIL PROTECTED] > wrote:> > > > Hi guys!> > > >> > > > I need create a new dojo class that will be use by my component, how> can i> > > > access this class if the same will be packaged in my component jar, or > i> > > > must package in tomahawk-sandbox.jar ?> > > >> > > > --> > > > Yours truly (Atenciosamente),> > > >> > > > Rogério (_rogerio_) > > >> > >> > > --> > > Gerald Müllan> > > Schelleingasse 2/11> > > 1040 Vienna, Austria> > > 0043 699 11772506> > > [EMAIL PROTECTED]> > >> >> >> >> >> > -- > >> > Yours truly (Atenciosamente),> > > > Rogério (_rogerio_) -->> Yours truly (Atenciosamente),>> Rogério (_rogerio_)--Gerald MüllanSchelleingasse 2/111040 Vienna, Austria 0043 699 11772506[EMAIL PROTECTED] -- Yours truly (Atenciosamente),Rogério (_rogerio_) -- Yours truly (Atenciosamente),Rogério (_rogerio_)
Re: render a complex datatable ???
Here are a few ways I've handled this situation. The first two are probably not applicable. 1) Use a t:popup to show the subitem values for a column. The displayed column value is the first subitem in the list. For a "name" column, for example, I'd show "Bob [4]" with the "[4]" in a different color, and when the mouse hovers over the "[4]", It'd show "BobFredGeorgeTom" in the popup. 2) Use an inner dataTable to display the elements. The column would contain "BobFredGeorgeTom" when displayed. This can work fairly well when the data spans multiple columns. 3) Create a ItemHolder class containing a reference to an Item and a reference to a SubItem.Build a list of these with Items and Subitems as appropriate for display, and assign this list to the dataTable value.Then in your columns, display something depending on whether the item or the subitem value is non-null. It'll depend on the data how this might look. If the data is homogenious, then you can do something like I think you can even go so far as to make the column itself rendered or not rendered, thus having the subitem columns and item columns differ in number, but you'd want to test this. This might look cleanest as you could list all of the item columns, then all of the subitem columns on your page. On 8/16/06, Michael Heinen <[EMAIL PROTECTED]> wrote: I have a datatable with Items in it. One column in the datatable contains a link to show SubItems of an Item. These SubItems have to be displayed also in the datatable below the clicked Item in additional rows. The row (or the columns) of these SubItems have special css classes for visualization. The number of columns is the same for Items and SubItems. Moreover the rows (Items and SubItems) contain checkboxes. The datatable is bound to a PagedListDataModel in the BackingBean as mentioned in the WIKI. This dataModel contains a List of Items and I have to display e.g. 20 Items on each page, regardless of SubItems. The class Item contains a method getSubItems(). What is now the best approach to visualize these SubItems in the datatable? I think I have just to output additional table rows. a) Can I achieve this with a custom TableRenderer? The HtmlTableRendererBase contains a method afterRow(FacesContext facescontext, UIData uidata). Can I overwrite this method and place my logic there? uiData.getRowData() returns the last rendered Item. How can I now render additional rows with columns (and their children) for these SubItems? b) Or would it be easier to manipulate the dataModel and add the SubItems to the DataModel? I am not sure how to display the right number of Items on a page in this case if the DataModel contains both, Items and SubItems? Any help is highly appreciated Michael
render a complex datatable ???
I have a datatable with Items in it. One column in the datatable contains a link to show SubItems of an Item. These SubItems have to be displayed also in the datatable below the clicked Item in additional rows. The row (or the columns) of these SubItems have special css classes for visualization. The number of columns is the same for Items and SubItems. Moreover the rows (Items and SubItems) contain checkboxes. The datatable is bound to a PagedListDataModel in the BackingBean as mentioned in the WIKI. This dataModel contains a List of Items and I have to display e.g. 20 Items on each page, regardless of SubItems. The class Item contains a method getSubItems(). What is now the best approach to visualize these SubItems in the datatable? I think I have just to output additional table rows. a) Can I achieve this with a custom TableRenderer? The HtmlTableRendererBase contains a method afterRow(FacesContext facescontext, UIData uidata). Can I overwrite this method and place my logic there? uiData.getRowData() returns the last rendered Item. How can I now render additional rows with columns (and their children) for these SubItems? b) Or would it be easier to manipulate the dataModel and add the SubItems to the DataModel? I am not sure how to display the right number of Items on a page in this case if the DataModel contains both, Items and SubItems? Any help is highly appreciated Michael
Re: Shale 1.0.x change to servlet 2.4 spec
Take a look: http://www.nabble.com/Servlet-2.3---JSP-1.2-support-tf1981495.html Thanks, MahbubJoe Shevland <[EMAIL PROTECTED]> wrote: Hi,Sorry if this has been discussed but I haven't found a huge amount of discussion on it, just a few comments describing that it was an important and necessary change. Some time around Shale 1.0.3 changes were introduced which meant you needed to deploy to a Servlet API 2.4 compliant container. This has left us in the difficult position of either ripping out Shale or sticking with an increasingly dated version, as unfortunately we're stuck with a 2.3 servlet container.Since 1.0.2 there's already been a few patches we've needed, and I suspect that'll increase as its given more of a workout (certainly the validation area has needed a few backported patches, the JSF filter/controller aspect is working fine). Where I'm heading with this is has anyone tried any workarounds to get the latest release to deploy under a Servlet 2.3 environment? Or are the changes fundamental in nature... I was hoping someone had just packaged up a few of the required javax.servlet classes into a minijar and voila. I'm guessing not given the classes in question and the need for container support, but thought I'd ask the question. Or I was going to ask whether its feasible to implement the functionality provided by the 2.4 spec in a different fashion, if the changes are fairly localized, we would happily take the time to do that too if theres an indication its possible.CheersJoe Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
Re: Doubt about design of JSF applications
Well, facelets themselves are compatible - the question is if all components you want to use (and which need them) have appropriate tag handlers available. regards, Martin On 8/16/06, Dudu <[EMAIL PROTECTED]> wrote: And at this moment Facelets is perfectly compatible? Surprises is not so good and production environment. Thanks all Ps:Sorry, but I have mentioned I want to stay in jsf and no jsp. I will see facelets. On 8/16/06, Frank Russo <[EMAIL PROTECTED]> wrote: > Or if you are starting a new project, you can look into using Facelets > instead of JSP... > > > Frank Russo > Senior Developer > FX Alliance, LLC > > > -Original Message- > From: Martin Marinschek [mailto: [EMAIL PROTECTED] > Sent: Wednesday, August 16, 2006 7:39 AM > To: MyFaces Discussion; [EMAIL PROTECTED] > Subject: Re: Doubt about design of JSF applications > > Hi Dudu, > > The problem you are telling us about sounds like you should have a look > at integrating Tiles with JSF - there is a special > JspTilesViewHandlerImpl class in MyFaces which will help you with this. > You can look at the Tiles-Example of MyFaces to find out how it works. > > Basically, you'll need to add the JspTilesViewHandlerImpl to your > faces-config.xml, a special context parameter to your web.xml, and a > tiles-config.xml to your WEB-INF directory. > > Then you'll need to extract a basic template from your JSF pages, and > you can extend your other pages from this template. > > regards, > > Martin > > On 8/16/06, Dudu < [EMAIL PROTECTED]> wrote: > > I start developing jsf applications who the components is always > > generated dinamically, and there are few pages. > > > > Now I'm starting a personal project, and the components are static... > > There are a PanelPage, and inside the menu1 facet there are a menuTab > > with various commandMenuItems When the user click on a > > commandMenuItem, what I should to do: > > 1 - Navigate to other page, who the panelPage will be repetead, and > > the center is the content what I want. > > or: > > 2 - Without navigation, clearing and after adding childrens to the > > central panelPage, who there are a menuTab on menu1 facet > > > > My doubt is, "and every page I need to put the same panelPage with > > different central content", is it correct??? Anyone can indicate me a > > document with this discussion?? > > > > Thanks. > > > > ps: I know the facelets, but I must try to do this using only JSF. > > > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > > > > -- -- Dudu GoogleTalk: eduardopichler[at]gmail[dot]com skype:eduardopichler -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Doubt about design of JSF applications
And at this moment Facelets is perfectly compatible? Surprises is not so good and production environment.Thanks allPs:Sorry, but I have mentioned I want to stay in jsf and no jsp. I will see facelets. On 8/16/06, Frank Russo <[EMAIL PROTECTED]> wrote: Or if you are starting a new project, you can look into using Faceletsinstead of JSP...Frank RussoSenior DeveloperFX Alliance, LLC-Original Message-From: Martin Marinschek [mailto: [EMAIL PROTECTED]]Sent: Wednesday, August 16, 2006 7:39 AMTo: MyFaces Discussion; [EMAIL PROTECTED] Subject: Re: Doubt about design of JSF applicationsHi Dudu,The problem you are telling us about sounds like you should have a lookat integrating Tiles with JSF - there is a specialJspTilesViewHandlerImpl class in MyFaces which will help you with this. You can look at the Tiles-Example of MyFaces to find out how it works.Basically, you'll need to add the JspTilesViewHandlerImpl to yourfaces-config.xml, a special context parameter to your web.xml, and a tiles-config.xml to your WEB-INF directory.Then you'll need to extract a basic template from your JSF pages, andyou can extend your other pages from this template.regards,MartinOn 8/16/06, Dudu < [EMAIL PROTECTED]> wrote:> I start developing jsf applications who the components is always> generated dinamically, and there are few pages.> > Now I'm starting a personal project, and the components are static...> There are a PanelPage, and inside the menu1 facet there are a menuTab> with various commandMenuItems When the user click on a > commandMenuItem, what I should to do:> 1 - Navigate to other page, who the panelPage will be repetead, and> the center is the content what I want.> or:> 2 - Without navigation, clearing and after adding childrens to the > central panelPage, who there are a menuTab on menu1 facet>> My doubt is, "and every page I need to put the same panelPage with> different central content", is it correct??? Anyone can indicate me a > document with this discussion??>> Thanks.>> ps: I know the facelets, but I must try to do this using only JSF.>--http://www.irian.at Your JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces-- -- DuduGoogleTalk: eduardopichler[at]gmail[dot]comskype:eduardopichler
Re: Doubt about design of JSF applications
Hi Dudu, yes, this will work as well - it doesn't matter where you break up your pages to create templates and "tiles-variables". regards, Martin P.S.: Facelets is of course an alternate suggestion, but you mentioned you want to stay with JSP... On 8/16/06, Dudu <[EMAIL PROTECTED]> wrote: Perfect Martin! And jsf alone cannot to solve this problem right? I need the same panelPage (ADF) in all pages, and the childrens of it are diferent. Diferent tables and inputs. Are you sure tiles I'll be able to do this? On 8/16/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > Hi Dudu, > > The problem you are telling us about sounds like you should have a > look at integrating Tiles with JSF - there is a special > JspTilesViewHandlerImpl class in MyFaces which will help you with > this. You can look at the Tiles-Example of MyFaces to find out how it > works. > > Basically, you'll need to add the JspTilesViewHandlerImpl to your > faces-config.xml, a special context parameter to your web.xml, and a > tiles-config.xml to your WEB-INF > directory. > > Then you'll need to extract a basic template from your JSF pages, and > you can extend your other pages from this template. > > regards, > > Martin > > On 8/16/06, Dudu <[EMAIL PROTECTED]> wrote: > > I start developing jsf applications who the components is always generated > > dinamically, and there are few pages. > > > > Now I'm starting a personal project, and the components are static... > > There are a PanelPage, and inside the menu1 facet there are a menuTab with > > various commandMenuItems > > When the user click on a commandMenuItem, what I should to do: > > 1 - Navigate to other page, who the panelPage will be repetead, and the > > center is the content what I want. > > or: > > 2 - Without navigation, clearing and after adding childrens to the central > > panelPage, who there are a menuTab on menu1 facet > > > > My doubt is, "and every page I need to put the same panelPage with different > > central content", is it correct??? Anyone can indicate me a document with > > this discussion?? > > > > Thanks. > > > > ps: I know the facelets, but I must try to do this using only JSF. > > > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > -- -- Dudu GoogleTalk: eduardopichler[at]gmail[dot]com skype:eduardopichler -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
RE: Doubt about design of JSF applications
Or if you are starting a new project, you can look into using Facelets instead of JSP... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 7:39 AM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: Re: Doubt about design of JSF applications Hi Dudu, The problem you are telling us about sounds like you should have a look at integrating Tiles with JSF - there is a special JspTilesViewHandlerImpl class in MyFaces which will help you with this. You can look at the Tiles-Example of MyFaces to find out how it works. Basically, you'll need to add the JspTilesViewHandlerImpl to your faces-config.xml, a special context parameter to your web.xml, and a tiles-config.xml to your WEB-INF directory. Then you'll need to extract a basic template from your JSF pages, and you can extend your other pages from this template. regards, Martin On 8/16/06, Dudu <[EMAIL PROTECTED]> wrote: > I start developing jsf applications who the components is always > generated dinamically, and there are few pages. > > Now I'm starting a personal project, and the components are static... > There are a PanelPage, and inside the menu1 facet there are a menuTab > with various commandMenuItems When the user click on a > commandMenuItem, what I should to do: > 1 - Navigate to other page, who the panelPage will be repetead, and > the center is the content what I want. > or: > 2 - Without navigation, clearing and after adding childrens to the > central panelPage, who there are a menuTab on menu1 facet > > My doubt is, "and every page I need to put the same panelPage with > different central content", is it correct??? Anyone can indicate me a > document with this discussion?? > > Thanks. > > ps: I know the facelets, but I must try to do this using only JSF. > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: Tobago Facelets sheet
Thanks Bernd, look this http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://java.sun.com/jsf/core"; xmlns:ui="http://java.sun.com/jsf/facelets"; xmlns:tc="http://myfaces.apache.org/tobago/component"; xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension";> The HTML generated has the box, the toolbar, the tc:in (label and textbox), etc, but the sheet is not visible. Maybe is an java scritp error or something like that, because in the HTML generated exists from the sheet. Before all thank you by your time
Re: Doubt about design of JSF applications
Hi Dudu, The problem you are telling us about sounds like you should have a look at integrating Tiles with JSF - there is a special JspTilesViewHandlerImpl class in MyFaces which will help you with this. You can look at the Tiles-Example of MyFaces to find out how it works. Basically, you'll need to add the JspTilesViewHandlerImpl to your faces-config.xml, a special context parameter to your web.xml, and a tiles-config.xml to your WEB-INF directory. Then you'll need to extract a basic template from your JSF pages, and you can extend your other pages from this template. regards, Martin On 8/16/06, Dudu <[EMAIL PROTECTED]> wrote: I start developing jsf applications who the components is always generated dinamically, and there are few pages. Now I'm starting a personal project, and the components are static... There are a PanelPage, and inside the menu1 facet there are a menuTab with various commandMenuItems When the user click on a commandMenuItem, what I should to do: 1 - Navigate to other page, who the panelPage will be repetead, and the center is the content what I want. or: 2 - Without navigation, clearing and after adding childrens to the central panelPage, who there are a menuTab on menu1 facet My doubt is, "and every page I need to put the same panelPage with different central content", is it correct??? Anyone can indicate me a document with this discussion?? Thanks. ps: I know the facelets, but I must try to do this using only JSF. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Doubt about design of JSF applications
I start developing jsf applications who the components is always generated dinamically, and there are few pages.Now I'm starting a personal project, and the components are static...There are a PanelPage, and inside the menu1 facet there are a menuTab with various commandMenuItems When the user click on a commandMenuItem, what I should to do:1 - Navigate to other page, who the panelPage will be repetead, and the center is the content what I want.or:2 - Without navigation, clearing and after adding childrens to the central panelPage, who there are a menuTab on menu1 facet My doubt is, "and every page I need to put the same panelPage with different central content", is it correct??? Anyone can indicate me a document with this discussion?? Thanks.ps: I know the facelets, but I must try to do this using only JSF.
Exception in JSF page in a Weblogic Portal Application
Hi I am getting the following error The source of this error is javax.servlet.ServletException: Cannot find FacesContext at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:323) at jsp_servlet._web_45_inf.__login._jspService(Login.jsp:56) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526) at weblogic.servlet.when running the JSF page in WebLogic portal applicationThe same page opens fine when runs in Weblogic server..I have even added the bridge(JAR) JSF-Portal required -- Regards, Kapil kataria
Shale 1.0.x change to servlet 2.4 spec
Hi, Sorry if this has been discussed but I haven't found a huge amount of discussion on it, just a few comments describing that it was an important and necessary change. Some time around Shale 1.0.3 changes were introduced which meant you needed to deploy to a Servlet API 2.4 compliant container. This has left us in the difficult position of either ripping out Shale or sticking with an increasingly dated version, as unfortunately we're stuck with a 2.3 servlet container. Since 1.0.2 there's already been a few patches we've needed, and I suspect that'll increase as its given more of a workout (certainly the validation area has needed a few backported patches, the JSF filter/controller aspect is working fine). Where I'm heading with this is has anyone tried any workarounds to get the latest release to deploy under a Servlet 2.3 environment? Or are the changes fundamental in nature... I was hoping someone had just packaged up a few of the required javax.servlet classes into a minijar and voila. I'm guessing not given the classes in question and the need for container support, but thought I'd ask the question. Or I was going to ask whether its feasible to implement the functionality provided by the 2.4 spec in a different fashion, if the changes are fairly localized, we would happily take the time to do that too if theres an indication its possible. Cheers Joe
Re: Chandru
Hi Chandru, what kind of co-existence are you talking about? There is a jsf-struts project which can act as a bridge, with which you can use JSF components and struts-actions... Generally speaking, though, it's not recommendable to "ride two elephants" (I quote David Geary in his 2005 JavaOne speak on combining JSF and Struts). regards, Martin On 8/9/06, Chandra Sekhar <[EMAIL PROTECTED]> wrote: Hi Group, I need some information about the Coexistence between the JSF and Struts .what is the procedure for it. Regards, Chandru. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: New component - interested?
Interesting! How about merging this into the popup-component - it looks pretty similar to me functionality-wise? regards, Martin On 8/8/06, Trica Laurentiu <[EMAIL PROTECTED]> wrote: Hi again Yes, it is a JavaScript, no requests are sent when clicking on the title. And the container is absolute-positioned using tag. Hope the things are clearer now :) On 8/8/06, "R. Müller" <[EMAIL PROTECTED]> wrote: > Is it a JavaScript-solution or is there a request sent on popup/popdown > ? Is the popup-container a absolute-positioned -tag ? > > regards > > Ronald > > Trica Laurentiu wrote: > > Hello > > > > Me and my colleague developed a new component: OptionsMenu. > > It is essentially a pop up container for other objects. > > It has a header that contains a text and 2 icons (images) - one for the > > initial state, and another for the expanded state. > > The icons are visible only one at a time, according to the component state. > > The position of the icon can be left or right (default is right - in the > > right of the text). > > You can specify: > > - the icon position > > - headerStyle - CSS style > > - headerStyleClass - CSS style class > > - containerStyle - CSS style > > - containerStyleClass - CSS style class > > > > You can also specify via facelets the images to be shown: > > - upIcon > > - downIcon > > > > Example: > > > > > headerStyle="color:#33; font-size:18px;" > > containerStyle="color:#88; border-color: black; > > border-style:solid; border-width:thin;" > > iconPosition = "left"> > > > > > style="border-width: 0" /> > > > > > > > > > > > > > > > > > > > > http://www.yahoo.com"; > > title="title" >link > > > > > > > > > > > > I attached some pictures so you can see it in action. > > > > Hope you will find it useful. > > > > -- > > Best regards, > > Laurentiu Trica > > > > > > > > > > > > > > > > > > > -- Best regards, Laurentiu -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
MyFacesExtensionsFilter use this
Is there a way to add actions/extensions to the extensions filter? I’m writing some custom components and they require some resources and I would like the extensions filter to add them in for me in place of writing my own filter. Thanks, Robert
Re: how to use a new dojo class in myfaces?
Hi, if you contribute the component, it will first go to sandbox. So put your custom .js stuff where the other js files for the components are located; in the resources dir: tomahawk\sandbox\core\src\main\resources\org\apache\myfaces\custom\yourComponentDir You can load the js resource than easily via the javascript location and the extensions filter. See other renderers as an example, e.g. TableSuggestAjaxRenderer. cheers, Gerald On 8/16/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote: Hi guys! I need create a new dojo class that will be use by my component, how can i access this class if the same will be packaged in my component jar, or i must package in tomahawk-sandbox.jar ? -- Yours truly (Atenciosamente), Rogério (_rogerio_) -- Gerald Müllan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 [EMAIL PROTECTED]
t:dataTable groupBy with group Footer
Does anyone know how to use t:dataTable grouping with a group footer? Thanks, Robert
Error in JSF page in Weblogic 8.1.5 + Portal
Hi I am intergrating my JSF application in Weblogic 8.1.5 Workshop in a portal application I have created a portal and under that I have created a portlet which binds to my Login.jsp (JSF File) but I am getting the Error at development time taglib not found at the following line <%@ page language="java" %><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> Login.jsp ERROR : Tag handler class was not found -- Regards, Kapil kataria