Re: Problem mit Spring and JSF integration

2007-04-18 Thread Jörn Zaefferer
beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.springframework.org/schema/beans [url]http://www.springframework.org/schema/beans/spring-beans-2.0.xsd;[/url] !-- = GENERAL

Re: XHTML Strict

2007-04-17 Thread Jörn Zaefferer
I don't know if removing the name attribute from the form-element is HTML 4.01 compatible but i think so. This wold be my first proposal. That makes sense, from the XHTML 1.0 spec: HTML 4 defined the name attribute for the elements a, applet, form, frame, iframe, img, and map. HTML 4 also

Re: XHTML Strict

2007-04-17 Thread Jörn Zaefferer
On 4/17/07, Mike Kienenberger [EMAIL PROTECTED] wrote: It'd actually be javax.faces.Hidden that you'd want to look at (and maybe the other Input components). Ah, right. There is even less stuff for Hidden. As long as it's not prohibited, then it's allowed. Ie, not being mentioned at all

Re: XHTML Strict

2007-04-17 Thread Jörn Zaefferer
The second is to wrap every hidden field rendered by the jsf-impl with a div-Element. While this sounds really weird. Can you quote the HTML spec for this requierement? I had someone else tell me that the requirement is that all input elements must be wrapped in a div, so I've heard about

Re: XHTML Strict

2007-04-17 Thread Jörn Zaefferer
No, I'm saying that if strict Xhtml requires div around hidden, and the spec does not prohibit it, then a div should be rendered around the input hidden html element. Ok, as nether HTML 4.01 nor XHTML 1.0 specify something like that, at least I can't find anything, we can put this adacta.

Re: XHTML Strict

2007-04-17 Thread Jörn Zaefferer
On 4/17/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Yes, the burden of proof is on Rudi. If he opens up a JIRA issue with patches and justification (not prohibited by spec, but required for xhtml), then we'll apply them. A quick google search turns up that ins, del, h1, h2, h3, h4, h5, h6,

Re: Table of Contents Component

2007-04-16 Thread Jörn Zaefferer
Would you mind using a client-side solution? http://solidgone.com/jquery/jqTOC/jqTOC.htm Regards Jörn

datagrid component with ajax paging and sorting that runs on websphere portal 5.1 and 6?

2007-04-13 Thread Jörn Zaefferer
Hi folks, I'm looking for a datagrid component that runs on WebSphere Portal 5.1 and 6. It must support sorting and paging via ajax. License doesn't matter, both commercial and opensource is ok. Please consider that I've already tried quite a lot of component framworks, so only hints at

Re: New to MyFaces

2007-04-06 Thread Jörn Zaefferer
I agree with this fully.For me, each project I did in JSF got progressively easier and more pleasurable to deal with. Despite the books and tutorials I read about JSF from the start, the only thing that really made me like it was actually working with it and learning when and how to utilize

Combining in-place-editing via AJAX with JSF's binding

2007-04-05 Thread Jörn Zaefferer
job on that matter. Thanks for your help! Regards Jörn Zaefferer PS: This is my second attempt to send this to the list, maybe I've got more luck this time.

Combining in-place-editing via AJAX with JSF's binding

2007-04-04 Thread Jörn Zaefferer
job on that matter. Thanks for your help! Regards Jörn Zaefferer

Re: servlet and portlet in the same time?

2007-04-04 Thread Jörn Zaefferer
It is possible to access a portlet session from a servlet in the same webapp. You need to pass the portlet namespace in the request to the servlet, and use that namespace to find the portlet session in the global session, which is nothing more then the normal http session. The JSR 168 spec

Re: servlet and portlet in the same time?

2007-04-04 Thread Jörn Zaefferer
Good points Scott. I haven't worked or even seen a portlet container that uses different portlet namespaces and IDs, nor did I worked with WSRP. I still don't quite get what the point of WSRP is anyway...

Re: servlet and portlet in the same time?

2007-04-04 Thread Jörn Zaefferer
I just hope that it won't take IBM updating to JSR 286 as long as it takes them to update to Java 5.

Re: Standardcompliance of rendered markup

2007-04-03 Thread Jörn Zaefferer
On 4/3/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Definitely open JIRA issues (preferrably with patches) for all but one of these items. Error Line 101 column 165: ID jsf_tree_64 already defined. The above will not be fixed -- this element must exist and be submitted in every form.

Re: Custom ViewHandlers

2007-03-28 Thread Jörn Zaefferer
a custom context configuration. I am having a difficult time finding any specification for JSF configuration file (faces-config.xml by default) that describes the delegation process. Brad On Tue, 2007-03-27 at 17:12 +0200, Jörn Zaefferer wrote: Isn't the delegation supposed to allow registering

Re: Custom ViewHandlers

2007-03-27 Thread Jörn Zaefferer
Isn't the delegation supposed to allow registering of more then one view handler? On 3/27/07, Brad Smith [EMAIL PROTECTED] wrote: Thank you Simon. Do you by chance know what to do when also using something like Facelets which also has a custom ViewHandler? I mean as far as how the faces config

Re: display pictures in a limited space

2007-03-17 Thread Jörn Zaefferer
Not (yet) a JSF component, but once you have the necessary HTML markup, it should be just what you are looking for: http://sorgalla.com/jcarousel/ On 3/17/07, Mike Kienenberger [EMAIL PROTECTED] wrote: The fisheye component in the sandbox looks kinda like that, although it's not the same.

Re: Tomahawk release plans?

2007-03-16 Thread Jörn Zaefferer
/show_bug.cgi?id=246 2007/3/15, Jörn Zaefferer [EMAIL PROTECTED]: Absolutely! The JSF API itself isn't enough to write components without duplicating tons of code. You either do duplication, or depend on a particular implementation of the API. And this isn't just a problem with JSF alone. I

Re: Tomahawk release plans?

2007-03-16 Thread Jörn Zaefferer
I'm not familiar with Velocity, therefore I'd like to know how velocity handles logic in its views. JSF in general does a good job avoiding any classic if/else and loop constructs in my views. Can I get that with Velocity, too? On 3/16/07, Werner Punz [EMAIL PROTECTED] wrote: Adrian Mitev

Re: Tomahawk release plans?

2007-03-16 Thread Jörn Zaefferer
any research on actually implementing a JSF renderer in velocity? On 3/16/07, Werner Punz [EMAIL PROTECTED] wrote: Jörn Zaefferer schrieb: I'm not familiar with Velocity, therefore I'd like to know how velocity handles logic in its views. JSF in general does a good job avoiding any classic

Re: Tomahawk release plans?

2007-03-16 Thread Jörn Zaefferer
. Because of my experience with Velocity, I've looked into the attempts to use it as viewhandler. It's not an ideal fit.Facelets does a much better job. Velocity is not the right tool for the job. http://people.apache.org/~matzew/jsfvelocity.html On 3/16/07, Jörn Zaefferer [EMAIL PROTECTED

Re: Help !!! myfaces tomahawk JSF datatable component problem with Spring Web Flow...

2007-03-16 Thread Jörn Zaefferer
I was referring to the fact that nearly everything is POSTed in JSF. Is there a standard way to do GETs? On 3/16/07, Werner Punz [EMAIL PROTECTED] wrote: Jörn Zaefferer schrieb: I've tried to get Webflow working with JSF in a portlet enviroment. It actually works, and JSFs binding

Re: Tomahawk release plans?

2007-03-15 Thread Jörn Zaefferer
Absolutely! The JSF API itself isn't enough to write components without duplicating tons of code. You either do duplication, or depend on a particular implementation of the API. And this isn't just a problem with JSF alone. I wanted to replace the default month renderer on tomahawks schedule

Re: Component coding questions

2007-03-15 Thread Jörn Zaefferer
This only helps you if you are already using Facelets or have the chance to start using them: Write a tag. On 3/15/07, Marko Asplund [EMAIL PROTECTED] wrote: I'm trying to create a JSF component that would be composed of two child components: an UIInput and a HtmlSelectManyListbox. The user

Re: Help !!! myfaces tomahawk JSF datatable component problem with Spring Web Flow...

2007-03-15 Thread Jörn Zaefferer
I've tried to get Webflow working with JSF in a portlet enviroment. It actually works, and JSFs binding and validation is much better then Spring MVC's. According to the Webflow jira, there are problems with JSF and the backbutton. But that is screwed in both portlet enviroments and JSF in

Re: Tomahawk release plans?

2007-03-14 Thread Jörn Zaefferer
Good to know that a released is coming soon. Any idea if it is planned to include the tomahawk-facelets-taglib.xml in the release? On 3/14/07, Gerald Müllan [EMAIL PROTECTED] wrote: Hi, on the dev-list there is an actual discussion about the release. It should hopefully occur within the next

Re: Tomahawk release plans?

2007-03-14 Thread Jörn Zaefferer
not a committer, but I do monitor the dev list pretty closely. I do, however, plan to help update the Wiki to make sure it is up-to-date with the new components, following the release. Any help is welcome and appreciated! :) Regards, Jeff Bischoff Kenneth L Kurz Associates, Inc. Jörn Zaefferer

Re: StringConversion to EMPTY_STRING

2007-03-12 Thread Jörn Zaefferer
You could add a check for the value to set in each modifier, something like this: public void setName(String newName) { if ( !.equasl(newName) ) { name = newName; } } Still quite cumbersome... On 3/12/07, Strittmatter, Stephan [EMAIL PROTECTED] wrote: Hi Mike, thanks for this info.

Re: i need step by step document!!

2007-03-12 Thread Jörn Zaefferer
In Eclipse, with WTP installed, you can import the example WAR files as projects, deploy them to your Tomcat and play around. That way you have a fully working example with configuration.

Re: StringConversion to EMPTY_STRING

2007-03-12 Thread Jörn Zaefferer
) { return (String) value; } return value + ; } From: Jörn Zaefferer [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 9:29 AM To: MyFaces Discussion Subject: Re: StringConversion to EMPTY_STRING You could add a check for the value to set

Re: how to use a javascript source in a component

2007-03-11 Thread Jörn Zaefferer
On 3/11/07, Mohammad Norouzi [EMAIL PROTECTED] wrote: Hi Jörn How can I find that JQuery? Of course at http://jquery.com/ :-) I find the combination of JSF components that generate HTML markup, combined with jQuery and plugins quite attractive. So far I don't know of any JSF components

Re: [ Tobago ] No Page Refresh while validation

2007-03-11 Thread Jörn Zaefferer
JavaScript based form-validation should always start with the submit event: When a user presses enter inside one form field, the form is submitted without triggering your onclick event. In your case it should be possible to use JSF's built-in localization features. You'd have to somehow render

Re: tiles problem

2007-03-09 Thread Jörn Zaefferer
I've got no experience with Clay either. But Facelets does provide much more then just templating (so may Clay). Getting rid of JSPs is a good start anyway.

Re: tiles problem

2007-03-09 Thread Jörn Zaefferer
That isn't true. You just need to trick your IDE to make it believe it supports facelets. Rick Hightower posted an article about that on developerworks, currently I can't find the link, but the pattern is quite easy. Use jspx as your view extension (instead of xhtml) and register that in your

Re: c:forEach or st similar

2007-03-09 Thread Jörn Zaefferer
If you are using Facelets (you should anyway), you could try the ui:repeat tag. On 3/9/07, anoe [EMAIL PROTECTED] wrote: Hi, i am trying to draw a dynamic number of t:panelTab... depending on the number of elements in a collection. I've tried with c:forEach, t:dataTable and t:dataList, and

Re: how to use a javascript source in a component

2007-03-08 Thread Jörn Zaefferer
On 3/8/07, Grange, John [EMAIL PROTECTED] wrote: Another point to note, is that if you are in the mindset to put script references (and css, etc) in the head, then your code will be more difficult to port to a portlet environment (a fact that is causing significant pain trying to find workable

Re: how to use a javascript source in a component

2007-03-08 Thread Jörn Zaefferer
The name is Jörn, or Joern :-) Anyway, sure thing. My list.jspx is this: ?xml version=1.0 encoding=ISO-8859-1 ? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns=http://www.w3.org/1999/xhtml; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core;

Re: how to use a javascript source in a component

2007-03-08 Thread Jörn Zaefferer
I'm using jQuery to handle that problem. It provides a DOM ready event that is executed as soon as the DOM is ready to be selected and manipulated. Since 1.0 (released 08.2006) that works perfect in IE5.5+, FF1.5+, Opera and Safari. And from what I heard in Konquerer, too. So with that there is

Re: how to use a javascript source in a component

2007-03-07 Thread Jörn Zaefferer
On 3/7/07, Simon Kitching [EMAIL PROTECTED] wrote: Some browsers allow them in the BODY but that is not actually valid html. That isn't true either. The spec says: The SCRIPT http://www.w3.org/TR/html4/interact/scripts.html#edef-SCRIPTelement places a script within a document. This element

Re: how does UICommand execute the action binding?

2007-03-04 Thread Jörn Zaefferer
From what I undestand from the specification (page 169/170) it takes the first matching navigation rule. So for your third case, it checks the form-action, and if that doesn't match, it checks the from-outcome. I agree that from-action alone is very helpful, but the combination has its uses.

Re: Question about index-menu

2007-03-02 Thread Jörn Zaefferer
That seems to be mostly a JavaScript requirement. I haven't combined it with JSF yet, but basically it should work with any valid HTML: http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ For your requirement, you'd have to set the unique-option, eg. $(#mytree).Treeview({ unique: true

Re: tomahawk src

2007-03-02 Thread Jörn Zaefferer
I learned that the nighlty builds contain not only the tomahawk examples (no official release for those yet) but also source distributions for all projects: http://people.apache.org/builds/myfaces/nightly/

Re: Why does JSF submit through JavaScript?

2007-03-01 Thread Jörn Zaefferer
I got the feeling that this was the result of bad knowledge browser-behaviour, HTTP and HTML and JavaScript. I still have no idea why the form isn't just submitted as is, using the name and value of the submit to determine which button was clicked. In addition, the JavaScript could be reduced.

Re: Why does JSF submit through JavaScript?

2007-03-01 Thread Jörn Zaefferer
On 3/1/07, Simon Kitching [EMAIL PROTECTED] wrote: I believe it is (see my earlier reply), and that all the javascript is doing is ensuring any garbage left behind by h:commandLink tags is cleaned up (hidden fields _idcl and _link_hidden_). Ok, but that doesn't explain the JavaScript for an

Re: Why does JSF submit through JavaScript?

2007-03-01 Thread Jörn Zaefferer
Thanks for your reply. Considering that the first target of MyFaces was to implement the JSF specification, I guess there are a lot of areas that can be improved. At some point I'd like to commit my FacesUtil class to the project, which contains several extremely handy shortcuts for the rather

Screwed up JSF lifecycle/component tree when using portlet2portlet communication

2007-02-25 Thread Jörn Zaefferer
of object (here: meetings, agenda items and activities) Maybe someone on this list had already a similar problem and can provide a hint for a solution. Let me know if it would help to post the code of the controllers and the PortletLifecycle. Any help is highly appreciated, thanks! Regards Jörn