Re: [Trinidad] tr:table PPR failing

2007-09-13 Thread Timothy M. Braun
Andrew, I compared the AJAX response to the html source and I can't seem to find anything out of place. I have included the two below, maybe I missed something. I added id's to most of the jsf components so that it is a little easier to parse. On a side

Re: [Trinidad] tr:tree non expanding nodes anymore

2007-09-13 Thread Renzo Tomaselli
Adam, no warning at all. I suspect that a4j interferes with the new xmlhttp-based PPR. Adam Winer wrote: Do you see any logged warnings whatsoever? You apparently are using A4J - what happens if you remove A4J from the picture? There's not enough to go on just in this report. --

Re: [Trinidad] error: No RenderingContext has been created

2007-09-13 Thread Renzo Tomaselli
Hard to detect. I can see this error only at the very first postback, not afterwards. I just wonder if anybody succeeded in having a4j together with Trinidad 1.02 in the same application. I can kick a4j/richfaces out of the game as soon as I can replace dropdown menus (e.g. context-menus)

Problem setting disabledStyleClass on menu item of jscookMenu

2007-09-13 Thread mario.buonopane
Hi, I'm using t:jscookMenu with t:navigationMenuItems child. All MenuItem are created by a managed bean that set disabledStyleClass of each NavigationMenuItem to a myStyle string. The problem is that when the menu is rendered, I have a disabled menu item but semme don't use the

RE: number conversion and null values

2007-09-13 Thread Michael Heinen
Thanks Ben, this solved the problem. Changing only the setter was not sufficient. I have to change the getter and the type also to Double, as you said. Michael -Original Message- From: Ben Smith [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 12. September 2007 22:06 To: MyFaces Discussion

RE: number conversion and null values

2007-09-13 Thread Michael Heinen
Damn, I tested a little bit more and now there is another problem. If I enter 5.0 or 5,0 (depending on the locale) I get the following exception: Exception setting property Threshold: of base with class com.recommind.litigation.client.web.model.Category, Bean:

Re: number conversion and null values

2007-09-13 Thread Matthias Wessendorf
inputText value=#{mybean.adouble} / requires input of 5.0 (DoubleConverter does this Double.valueOf(value) if you want 5,0 (where , is the decimal separator, like in Germany), you need a numberConverter with pattern or locale. -Matthias On 9/13/07, Michael Heinen [EMAIL PROTECTED] wrote: Damn,

Re: number conversion and null values

2007-09-13 Thread Mario Ivankovits
Hi! The NumberConverter returns a Long instead of a Double! How can I get a simple automatic NumberConversion working ? This is really annoying! I am not sure if this has already been mentioned in this thread. But there is a numberConverter in Tomahawk's sandbox which will do the trick.

include rendered JSF output in JSP page

2007-09-13 Thread Alexander Lendl
Hi, I need to include the rendered html output from a myfaces jsf page in an old jsp page (not a jsf page!). Unfortunately it's not possible to use a jsf page at this point. It's a jsp/servlet framework application which is used during developement to test the output of portlets in tomcat -

RE: number conversion and null values

2007-09-13 Thread Michael Heinen
A wonderful :-))) Thanks Mario. I was not aware of this converter in sandbox. This seems to be what I need. Isn't the default converter useless in combination with doubles without this destType ? Michael -Original Message- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent:

Re: number conversion and null values

2007-09-13 Thread Mario Ivankovits
Hi! Isn't the default converter useless in combination with doubles without this destType ? Notice, in most situations you do not have to set this destType, the converter will determine this automatically. Well, the default converter, I think the common strategy when using this converter is

Re: number conversion and null values

2007-09-13 Thread Matthias Wessendorf
I just took a look at the sandbox tomahawk numberconverter. Similar to Trinidad's NumberConverter. Nice! -Matthias On 9/13/07, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! Isn't the default converter useless in combination with doubles without this destType ? Notice, in most situations

Re: Problem with frames, server state saving and restore_view

2007-09-13 Thread Nurten Jewabreh
Alex N. a.nitzschke at web.de writes: Hi, I've a problem with frames, the component tree and server side state saving. The frameset contains a tree frame (with a tree2 component ) and a data frame. After several actions in the data frame, the NUMBER_OF_VIEWS_IN_SESSION is reached

Re: include rendered JSF output in JSP page

2007-09-13 Thread Volker Weber
Hi Alexander, not sure if this is possible in a phaseListerner, i think it sould be, but you may look at this thread for a possilbel solution: http://www.nabble.com/Change-visibility-dinamically-tf3299810.html#a9202172 Regards, Volker 2007/9/13, Alexander Lendl [EMAIL PROTECTED]: Hi,

Any plan to add Drag and Drop to MyFaces?

2007-09-13 Thread Dave
Hello, I have seen many web pages have Drag and Drop (DnD) features. Is there any plan to add DnD functionality to MyFaces (Tomahawk) ? RichFaces has DnD, but 1. it lacks precise positioning, For example, drag a panelGroup and drop it between two other panelGroups. 2. It can not

Re: include rendered JSF output in JSP page

2007-09-13 Thread Alexander Lendl
Volker, thanks for your quick reply... I don't think that this thread can really help me with my problem. It's not necessary that the required functionality happens in a PhaseListener (could also be in a servlet, servlet filter, custom jsp tag, ...). All I need is to get the rendered html

Re: include rendered JSF output in JSP page

2007-09-13 Thread Volker Weber
Hi, to get the rendered html you can, as described in the thread, replace the responsewriter before rendering. Than you can get the writers content after rendering. I think this should be possible also i a PahseListener in before and after renderResponse phase. to prevent faces to do anything

Re: Any plan to add Drag and Drop to MyFaces?

2007-09-13 Thread Simon Lessard
Hello Dave, Stay tuned for RCF, it contains such feature. For now you can download JDeveloper 11g technical preview for a sneak peek of RCF. RCF was given to Apache by Oracle, but we're still waiting for the code drop. Hopefully, it'll be soon. Regards, ~ Simon On 9/13/07, Dave [EMAIL

Download File

2007-09-13 Thread Wolfgang
Hi, is there any kind of a jsf component with which I can download files? I need just a simple download-button on my webpage. Cheers!

Re: include rendered JSF output in JSP page

2007-09-13 Thread Simon Kitching
Have you considered using the jakarta commons httpclient library to send a separate request from your test framework back to the JSF page on the same server (or a different one)? The HttpClient operation will then return the complete block of HTML rendered by that JSF page without any complex

Re: Download File

2007-09-13 Thread Matthias Wessendorf
Trinidad has an actionlistener for that. If you aren't using trinidad, you still can take a look at the code and use its logic. -Matthias On 9/13/07, Wolfgang [EMAIL PROTECTED] wrote: Hi, is there any kind of a jsf component with which I can download files? I need just a simple

Re: Download File

2007-09-13 Thread Wolfgang
Which Trinidad component should that be?? Can I also use the upload file component for downloading? Trinidad has an actionlistener for that. If you aren't using trinidad, you still can take a look at the code and use its logic. -Matthias On 9/13/07, Wolfgang [EMAIL PROTECTED] wrote: Hi,

Re: Download File

2007-09-13 Thread Volker Weber
http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_fileDownloadActionListener.html Regards, Volker 2007/9/13, Wolfgang [EMAIL PROTECTED]: Which Trinidad component should that be?? Can I also use the upload file component for downloading? Trinidad has an actionlistener for that.

Re: Download File

2007-09-13 Thread Matthias Wessendorf
On 9/13/07, Wolfgang [EMAIL PROTECTED] wrote: Which Trinidad component should that be?? no component; an actionListener. See the doc: http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_fileDownloadActionListener.html source is here:

Re: include rendered JSF output in JSP page

2007-09-13 Thread Alexander Lendl
Thanks again Volker... sorry for this stupid question, but can you please tell me, how to get the html content as string out of the ResponseWriter? facesContext.getResponseWriter() gives me an HtmlResponseWriterImpl with a JspWriterImpl which includes the desired content in a char array, but I

java.lang.IllegalStateException: No Factories configured for this Application

2007-09-13 Thread David Delbecq
Hello, Problem: Tomcat 5.5.16, windows computer. Has worked well up until now, has been solved by removi work directory of tomcat and restarting. However, we would like to know what happened and how to prevent it in future: Error message: No Factories configured for this Application. This

RE: [Trinidad] Table and PPR of action components

2007-09-13 Thread Bertrand, Shawn R
I went the route of using the selection event in adding the actions facet as a partial target, but the selectionListener wasn't being called as it had been in ADF Faces. I immediately suspected a false autoSubmit, added the attribute to set it to true and the selection event was triggered,

Re: include rendered JSF output in JSP page

2007-09-13 Thread Volker Weber
Hi, in beforePhase: // replace responseWriter StringWriter content = new StringWriter(); ResponseWriter contentWriter = writer.cloneWithWriter(content); facesContext.setResponseWriter(contentWriter); and in afterPhase you can get the content out of the StringWriter. Regards,

Re: [Trinidad] tr:table PPR failing

2007-09-13 Thread Andrew Robinson
Timothy, I stripped the page and the AJAX down to the ID attributes only (FYI I used this set of commands with VIM to do this: %s//\r/g | %s/^.\+\(id=[^]\+\).*/\1/ | %s/^[^i].\+\n// | sort ) Here are the results: Page: id=acctPage:acctTable id=acctPage:acctTable:j_id_jsp_1566647018_17

Re: java.lang.IllegalStateException: No Factories configured for this Application

2007-09-13 Thread Martin Marinschek
Hi David, this error-message is long, but it is not complete. In the current SVN head, it is more complete - and it includes as a solution, to clean out the tomcat work directory. What is happening here is (I'm just guessing) that Tomcat converts the tld-libraries and stores them in some

no Javascript script tags generated for t: or s: elements when, using tomahawk + sandbox + jsf RI 1.2 + Tomcat 6, no exceptions thrown

2007-09-13 Thread jfn555
Hi, first the configuration: I try to run Tomahawk with Sandbox on the JSF RI 1.2 on Apache Tomcat 6. It all seemed to work fine (t:selectItems and so on run really great) until I tried to get s:selectManyPicklist to work (one of the main reasons I got Sandbox in the first place). I

Re: Download File

2007-09-13 Thread Mikael Andersson
You can also do this with plain jsf in a action method. Search for this method getInstrumentsBySecCodePattern on this page : http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel That method could easily be changed into a normal action method. Seem to remeber there was a page in the

Re: Download File

2007-09-13 Thread Mikael Andersson
Sorry wrong method name, should be exportHtmlTableToExcel, copy pasting is difficult ;) On 13/09/2007, Mikael Andersson [EMAIL PROTECTED] wrote: You can also do this with plain jsf in a action method. Search for this method getInstrumentsBySecCodePattern on this page :

Re: [Trinidad] tr:table PPR failing

2007-09-13 Thread Adam Winer
On 9/13/07, Andrew Robinson [EMAIL PROTECTED] wrote: Timothy, I stripped the page and the AJAX down to the ID attributes only (FYI I used this set of commands with VIM to do this: %s//\r/g | %s/^.\+\(id=[^]\+\).*/\1/ | %s/^[^i].\+\n// | sort ) Can I get you on permanent retainer for

Re: [Trinidad] Exception with XMLMenuModel usage

2007-09-13 Thread Adam Winer
I had a quick look at the code to see if there was a simple way to resolve: http://issues.apache.org/jira/browse/TRINIDAD-708 ... and, ouch, not really. The problem's not so much on the XMLMenuModel side of things, but the MenuContentHandlerImpl and MenuNode code, where we have: - A

Re: [Trinidad] tr:table PPR failing

2007-09-13 Thread Andrew Robinson
I stripped the page and the AJAX down to the ID attributes only (FYI I used this set of commands with VIM to do this: %s//\r/g | %s/^.\+\(id=[^]\+\).*/\1/ | %s/^[^i].\+\n// | sort ) Can I get you on permanent retainer for VIM-editing? :) Isn't VIM regex syntax really pretty? Easier to

Re: [Trinidad] Exception with XMLMenuModel usage

2007-09-13 Thread Andrew Robinson
That was what I thought too. When I saw the code, my first reaction was uh-oh. Perhaps the key can be changed to be based on the source instead of a request-global key? On 9/13/07, Adam Winer [EMAIL PROTECTED] wrote: I had a quick look at the code to see if there was a simple way to resolve:

Re: [Trinidad] tr:table PPR failing

2007-09-13 Thread Adam Winer
On 9/13/07, Adam Winer [EMAIL PROTECTED] wrote: On 9/13/07, Andrew Robinson [EMAIL PROTECTED] wrote: Timothy, I stripped the page and the AJAX down to the ID attributes only (FYI I used this set of commands with VIM to do this: %s//\r/g | %s/^.\+\(id=[^]\+\).*/\1/ | %s/^[^i].\+\n// |

RE: [Trinidad] console is undefined?

2007-09-13 Thread Bertrand, Shawn R
The error dialog indeed doesn't appear in Firefox, though would it if Firebug wasn't installed? There doesn't appear to be any sort of error when running in Firefox - all I see in the Firebug console are POST messages as expected. I haven't looked at the current 1.0.2 codebase, but does it

Re: [Trinidad] console is undefined?

2007-09-13 Thread Andrew Robinson
I put a comment on the bug to possibly enhance Trinidad's logging to use log4js. There are two projects with that name, one at sourceforge and one at berlios. I think either may be work looking at. They should both work in any browser that I am aware of. What do you think Adam? -Andrew On

Re: [Trinidad] console is undefined?

2007-09-13 Thread Matt Cooper
The easiest thing might be to see if it reproduces in a very simple hello world page. If the problem reproduces then it might be work verifying that the .js files listed in the page source do load script as expected (put those URLs in your browser's address bar). If the problem doesn't reproduce

Re: [Trinidad] console is undefined?

2007-09-13 Thread Adam Winer
I'd love to get some much better logging in Trinidad. http://ajaxpatterns.org/Javascript_Logging_Frameworks lists some more. Both the ones you mention are Apache 2.0 licensed, as is log4javascript, so from that standpoint we're OK. The major concern is that we don't start bloating our JS size

Re: [Trinidad] Exception with XMLMenuModel usage

2007-09-13 Thread Adam Winer
On 9/13/07, Andrew Robinson [EMAIL PROTECTED] wrote: That was what I thought too. When I saw the code, my first reaction was uh-oh. Perhaps the key can be changed to be based on the source instead of a request-global key? Easy enough from the XMLMenuModel side - but how well does that work

NPE when adding dependency to webapp

2007-09-13 Thread Ole Ersoy
Hi, I'm getting an exception with myfaces when adding a dependency to the webapp. This dependency contains a component and renderer, but I removed the META-INF directory, so it should just be interpreted as a simple java dependency. If I completely remove the dependency the test app deploys

[ Tomahawk ] Can someone update the CompatibilityMatrix ?

2007-09-13 Thread Stephen More
It looks like the CompatibilityMatrix is getting a little old: http://wiki.apache.org/myfaces/CompatibilityMatrix Can someone add: Column needed for MyFaces 1.2 Row needed for Tomahawk 1.1.6 -Thanks Steve More

Re: [ Tomahawk ] Can someone update the CompatibilityMatrix ?

2007-09-13 Thread Matthias Wessendorf
wiki pages can be updated by everyone. Feel free to do :-) On 9/13/07, Stephen More [EMAIL PROTECTED] wrote: It looks like the CompatibilityMatrix is getting a little old: http://wiki.apache.org/myfaces/CompatibilityMatrix Can someone add: Column needed for MyFaces 1.2 Row needed for

Re: no Javascript script tags generated for t: or s: elements when, using tomahawk + sandbox + jsf RI 1.2 + Tomcat 6, no exceptions thrown

2007-09-13 Thread simon
On Thu, 2007-09-13 at 17:42 +0200, jfn555 wrote: Hi, first the configuration: I try to run Tomahawk with Sandbox on the JSF RI 1.2 on Apache Tomcat 6. It all seemed to work fine (t:selectItems and so on run really great) until I tried to get s:selectManyPicklist to work (one of the main

Re: [Trinidad] Numeric values in table column cells / skinning

2007-09-13 Thread venkata guddanti
Yes. Please do log a JIRA ticket for this. I believe the skin-selectors documentation needs to be updated. Regards, Venkata On 9/12/07, Carsten Pieper [EMAIL PROTECTED] wrote: Thanks Venkata, I think the selectors af|column::cell-number, af|column::header-number may no longer be used.

Re: [Trinidad] console is undefined?

2007-09-13 Thread Matt Cooper
The other thing you can look into is using Firebug Lite which you can use with IE but requires a change to your JSP to insert its script... more details here: http://www.getfirebug.com/lite.html On 9/13/07, Matt Cooper [EMAIL PROTECTED] wrote: The easiest thing might be to see if it reproduces

Re: [ Tomahawk ] Can someone update the CompatibilityMatrix ?

2007-09-13 Thread Stephen More
OK, I added the columns and rows. I just don't know where the yeses and nos go. -Steve On 9/13/07, Matthias Wessendorf mat.org wrote: wiki pages can be updated by everyone. Feel free to do :-) On 9/13/07, Stephen More ste...om wrote: It looks like the CompatibilityMatrix is

Re: [Trinidad] console is undefined?

2007-09-13 Thread Andrew Robinson
I can't say as I have used either, they just came up with some google searching. I definitely think some research is in order and hopefully some opinions from the community for any that people have used. I know that A4J uses some of them. Perhaps the suggestion for firebug lite may be good. It

Re: null EL expression - ELResolver cannot handle a null base Object with identifier 'nullValue'

2007-09-13 Thread mraible
I'm seeing this same issue with MyFaces 1.2.0 and Facelets 1.1.13. I tried the exclusion selection below and that doesn't solve anything. I've had a discussion with the Jetty folks about commons-el in Jetty 6.1.5 and they've proven it's not present.

Re: java.lang.IllegalStateException: No Factories configured for this Application

2007-09-13 Thread Ole Ersoy
Ok - I think I have it isolated. I have a working component that works fine using ValueBindings. However, I figured I'd go ahead and get everything upgraded to the unified EL, so I followed the steps in the migration guide: http://java.sun.com/javaee/javaserverfaces/docs/ReleaseNotes.html

RE: [Trinidad] console is undefined?

2007-09-13 Thread Bertrand, Shawn R
The underlying error (only in IE - Firefox is fine) is below. Can you tell me what might be going wrong here? This follows a commandButton click in which we get as far as the PPR update I believe. Error object delivering XML request status changed to function(a3) {

MyFaces 1.2.0 on Resin 3.1.2

2007-09-13 Thread mraible
I'm getting the following error when trying to run MyFaces 1.2.0 on Resin 3.1.2. Any ideas? @400046e9bb65051988cc [17:36:10.302] Loading .tld files from global classpath @400046e9bb670c2104c4 [17:36:12.924] com.caucho.xml.XmlParseException:

Re: MyFaces 1.2.0 on Resin 3.1.2

2007-09-13 Thread mraible
By hacking the myfaces_core.tld and repackaging the JAR, I was able to fix the issue below. From looking at the XSD, this does seem to be a valid bug. After getting the app up, I tried to navigate to a page and there seems to be an issue with Facelets. Anyone running Facelets 1.1.13 on Resin

Re: [Trinidad] console is undefined?

2007-09-13 Thread Adam Winer
One thing we could do is come up with a REALLY trivial API like TrLog.error(), TrLog.severe(), TrLog.warning(), write one version that delegates to a quality JS logging implementation and load that in the debug Trinidad JS, and have the non-debug libraries contain just: TrLog.error =

Re: java.lang.IllegalStateException: No Factories configured for this Application

2007-09-13 Thread Ole Ersoy
Got it. I changed the scope of the el dependency to provided, and it took care of it. dependency groupIdjavax.servlet.jsp/groupId artifactIdjsp-api/artifactId version2.1/version scopeprovided/scope /dependency Cheers, - Ole Ole Ersoy

RE: [Trinidad] tr:table PPR failing

2007-09-13 Thread Timothy M. Braun
Adam-- I used firebug and the problem arises from a parse error of the xml response. It seems as though the /content closing element is missing from the response. I have included the text from the response below. content