AjaxAnywhere and DataScroller

2006-03-01 Thread Emmanuel Jay
Hi, I am having problems ajax-ifying the MyFaces dataScroller with AA. I basically get a JSerror of the type:'document.forms.mainForm.elements.mainForm:ds_9898989' is null or not an object. where ds_9898989 is the id of the dataScroller (links). Using AA the links don't seems to be rendered if

FW: Value binding problems

2006-03-01 Thread Nikita Belov
Can anybody suggest where I have made mistake? My application uses own PropertyResolver. It gets values for JSF components from XML documents by XPath expressions, thus it cant predict actual data type (String, Integer, Boolean) of the returned value and always return some object with

Tree2 and state saving

2006-03-01 Thread Huy Do
Hallo, i'm new to JSF and just wrote some code snippets using the tree2 component. My problem is that the state of the treemodel (especially which node are expanded) is not passed through several requests. For example: I include the tree in welcome.jsp and in view.jsp but if i change the the

JSF - Spring - OpenSessionInViewFilter

2006-03-01 Thread Sebastien Boutte
Hello, I'm trying to get Spring's OpenSessionInFilterView to work but i'm not very lucky. I would like to get an hibernate session directly from my controller for doing dao operations (create, find ...) ; without using HibernateDao class. How can i access the same session used by my

Losing buttons in datascroller page

2006-03-01 Thread Johnny Gonzalez
Hello Everybody, I'm trying to add dataScroller funcionality to a page in which I have a list of elements, so I modified and added all stuff related to the dataScroller, like in the myfaces examples at Irian (http://www.irian.at/myfaces/dataScroller.jsf), to my JSP. The page with the list

Re: How to make complex layout using datatable?

2006-03-01 Thread Joey Geiger
What is then the suggested method to obtain the same functionality? Andrew Robinson wrote: dataList is deprecated. The Tomahawk developers recommend that you do not use it. It doesn't not correctly process the update components phase On 2/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote:

Re: JSF - Spring - OpenSessionInViewFilter

2006-03-01 Thread Aleksei Valikov
Hi. I'm trying to get Spring's OpenSessionInFilterView to work but i'm not very lucky. We've got OSIV working in our JSF/MyFaces/Facelets/Spring app. I do : 1. Put in my web.xml : [skip] Looks fine. 2. My Application Context : [...] looks fine. 3. I Have a static class use to

Re: Session Expiration Default Target?

2006-03-01 Thread Elam Daly
Thanks for the help Mike. Worked like a charm.-ElamOn 2/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 2/27/06, Elam Daly [EMAIL PROTECTED] wrote: how do I determine if a session has expired? Mike Kienenberger wrote: You have to do something like this: boolean expired = false; try {

RE: [OT] Facelets JSP Scriptlets

2006-03-01 Thread Garner, Shawn
This should be directed to the Facelets list My email goes over its limit too often with one list let alone two. Otherwise I would. Shawn -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 5:16 PM To: MyFaces Discussion Subject: Re: [OT]

There's an issue with synching tobago sheet to backing bean

2006-03-01 Thread Nazar Stasiv
Provided backing bean contains collection of items and is in the request scope. If other user deletes an item from the bean there will be irrelevant data on your own screen. If you perform delete action on the very same item in the sheet you'll get loss of data. The issue itself is that

RE: Tree2 and state saving

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
I don't know the specifics of your example, but my first instinct would be that you need to use t:saveState to save the state of the tree between requests. - Brendan -Original Message- From: Huy Do [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 5:17 AM To:

RE: How to make complex layout using datatable?

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Is this deprecation official? I didn't see anything in the JavaDoc indicating this. We're using this in our reports to output a list of tables. What's the risk of using this, or is there a replacement component that provides similar functionality? Thanks, - Brendan -Original Message-

Re: How to make complex layout using datatable?

2006-03-01 Thread Andrew Robinson
It is not officially deprecated, sorry if that was misleading. I tried to use dataList, and found that it was not updating my backing beans at all. So I did some googling and found a thread on the very issue. They said to use a 1 column dataTable instead and it was implied from the conversation

Re: MyFaces dataTable column sorting

2006-03-01 Thread Dave Brondsema
devosc wrote: under what conditions might 'getAscending' be called ? From the definitions of Boolean.valueOf(String) it is only true when the sortAscending attr value is 'true', yet I cant see in any of the examples a 'getAscending' method ? You would use it in your code in your sorting

Re: How to make complex layout using datatable?

2006-03-01 Thread Martin Marinschek
In the meantime, dataList has in fact been fixed by Dennis and me. So it should be ok to use it again - but only in the nightly builds. regards, Martin On 3/1/06, Andrew Robinson [EMAIL PROTECTED] wrote: It is not officially deprecated, sorry if that was misleading. I tried to use dataList,

[OC4J] tld files inside of a jar

2006-03-01 Thread Matthias Wessendorf
Hi, I noticed a problem, with OC4J 9.0.4.1.0 and .tld files, which are located in a jar under META-INF. MyFaces, Tiles (core / standalone) and Shale stores all files there. Works fine for me in Tomcat (standalone and included into JBoss) However, a co-workers JAR file contains the .tld under

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Matthias Wessendorf
The adf-jars also contain their .tld directly under META-INF instead of META-INF/tlds -Matthias On 3/1/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Hi, I noticed a problem, with OC4J 9.0.4.1.0 and .tld files, which are located in a jar under META-INF. MyFaces, Tiles (core / standalone)

RE: How to make complex layout using datatable?

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Great. Thanks, Martin! - Brendan -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 10:13 AM To: MyFaces Discussion Subject: Re: How to make complex layout using datatable? In the meantime, dataList has in fact been fixed by Dennis

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Matthias Wessendorf
After removing the Tiles (standalone) and the Shale-Tiles JARs, I got this interesting exception: My application includes the jsp-2.0.jar as pointed out here: http://tinyurl.com/jcwxh Because of, when I haven't it included I got a classDefNotFound for JSP EL (ELExcepption) I think there is a

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Matthias Wessendorf
Maybe this an a problem with the submitted arg (PageContext), since I provide my own JSP-20.jar (includes javax/servlet/jsp/PageContext) and OC4J's JSP-jars (includes also javax/servlet/jsp/PageContext) -- servlet.jar from j2ee 1.3.x On 3/1/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Dennis Byrne
Hello Mattias, Any reason why the taglib element is in web.xml ? If your app is living in a 2.4 servlet world, the taglib elements are not necessary. The spec says to load all TLDs from both /META-INF/ and /META-INF/tlds . Hope this helps. Dennis Byrne -Original Message- From:

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Matthias Wessendorf
No, I am J2EE 1.3 boy ... On 3/1/06, Dennis Byrne [EMAIL PROTECTED] wrote: Hello Mattias, Any reason why the taglib element is in web.xml ? If your app is living in a 2.4 servlet world, the taglib elements are not necessary. The spec says to load all TLDs from both /META-INF/ and

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Mike Kienenberger
Have you looked at the various tweaks listed in the container wiki page? http://wiki.apache.org/myfaces/Installation_and_Configuration I had some issues with JSP EL -- I was told by Oracle to include two more jar files (see 10.1.2.0.0 entry) I'm fairly certain that I'm also registering the

JSF - Spring - OpenSessionInViewFilter

2006-03-01 Thread Sebastien Boutte
Hi Aleksei, In fact, i've just started to have the OpenSessionInFilterView to work. But now, i've to face different kind of problems. I can retrieve data from Hibernate using lazy initialisation ie i load a collection objects, select one, view it (simple master-details view city-zipcode

Re: Tree2 backward compatibility issue : node selection

2006-03-01 Thread Richard Frazer
Is the TreeWalker interface supposed to be package private? thanks. From: Sean Schofield [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org Date: Mon, 20 Feb 2006 14:32:58 -0500 To: MyFaces Discussion users@myfaces.apache.org Subject: Re: Tree2 backward compatibility

Re: JSF - Spring - OpenSessionInViewFilter

2006-03-01 Thread Enrique Medina
The problem must be that you are using request-scoped beans, don't you?If you use request-scoped beans, then you have to merge on every request, using session.merge ;-)There was a discussion about this issue at the beginning of February:

JSF Lifecycle and Design Question

2006-03-01 Thread j2ee Developer
I have JSF lifecycle and design question. I am building a prototype, porting an existing Struts based application to JSF. The issue I am facing is I believe related to the JSF lifecycle, I need input from you folks as to whether what I am doing is the right way. Here is the scenario of my

RE: JSF Lifecycle and Design Question

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message I would advise against doing any kind of action as part of a managed bean's constructor. In my experience, you want to separate out Action methods from Managed Bean data. Your action methods should be the only things accessing the EJBs, etc. So you should have an action

RE: JSF Lifecycle and Design Question

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message Also, you shouldn't have to worry about populating the bean's values again after the save (unless you're changing them or re-querying the database), since the beans already have their values. From what I recall (although it's been awhile since I've worked with Struts), this

Re: MyFaces dataTable column sorting

2006-03-01 Thread Greg
getAscending is a method that is supposedly used in conjunction with the sortAscending dataTable attribute (as a binding value). However even if this method does exist in the managed bean this method is never called. None of the myfaces examples implement a getAscending method, even though in the

Re: JSF Lifecycle and Design Question

2006-03-01 Thread j2ee Developer
Thanks Brendan! Sounds interesting! Can you please explain a little bit more on how are you seperating data beans from action beans. This is how I have implemented my backing beans. All data is in a formbean(struts style formbean), this formbean is a member attribute of my actual backing bean. The

RE: JSF Lifecycle and Design Question

2006-03-01 Thread Marti, Adrian \(Adrian\)
For initializing data or pre-populating fields you may want to look into Shales abstractviewcontroller and the added lifecycle methods it gives your JSF backing beans. -adrian From: j2ee Developer [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 2:50 PM To: MyFaces

Re: [OC4J] tld files inside of a jar

2006-03-01 Thread Matthias Wessendorf
Ah, I saw, but haven't tried, because of we have to use 9.0.4.1.0 I'll give it a try when I am in office tomorrow -Matthias On 3/1/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Have you looked at the various tweaks listed in the container wiki page?

Re: JSF Lifecycle and Design Question

2006-03-01 Thread Mike Kienenberger
On 3/1/06, Marti, Adrian (Adrian) [EMAIL PROTECTED] wrote: For initializing data or pre-populating fields you may want to look into Shale's abstractviewcontroller and the added lifecycle methods it gives your JSF backing beans. That will work for one bean per page. You can use the jsf-spring

AjaxAnywhere and DataScroller

2006-03-01 Thread Emmanuel Jay
Hi, I am having problems ajax-ifying the MyFaces dataScroller with AA. I basically get a JSerror of the type:'document.forms.mainForm.elements.mainForm:ds_9898989' is null or not an object. where ds_9898989 is the id of the dataScroller (links). Using AA the links don't seems to be rendered

RE: JSF Lifecycle and Design Question

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message What we do is something like the following: public class MyDataBean implements Serializable { private String field1; private Date field2; // define getters and setters } public class MyActionBean implements Serializable { public MyDataBean myDataBean; // define getter

RE: JSF Lifecycle and Design Question

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message Oh, and don't forget to put the following tag in your JSP that displays the contents of your data bean: t:saveState value="#{myDataBean}"/ - Brendan -Original Message-From: CONNER, BRENDAN (SBCSI) Sent: Wednesday, March 01, 2006 2:18 PMTo: MyFaces

AjaxAnywhere, state management and multiple forms

2006-03-01 Thread Andrew Robinson
I'm trying to get a wizard functionality going with AA. My parent page has a panel that is in a default state. A button in this panel should cause a navigation to occur to the next page. The main page does have buttons that should continue to work. So I have next, back, finish and cancel

JSF - Spring - OpenSessionInViewFilter

2006-03-01 Thread Sebastien Boutte
Hi Aleksei, In fact, i've just started to have the OpenSessionInFilterView to work. But now, i've to face different kind of problems. I can retrieve data from Hibernate using lazy initialisation ie i load a collection objects, select one, view it (simple master-details view city-zipcode

Re: JSF Lifecycle and Design Question

2006-03-01 Thread j2ee Developer
Appreciate your response. That is very close to the way we have implemented it here. The only distinction being that the first time page load, in our scenario does not come from an action event ( commandbutton or commandlink). It is the first request. So I am confused as to where do I call the

RE: JSF Lifecycle and Design Question

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message So this is, in effect on your index page? No login page or anything? - Brendan -Original Message-From: j2ee Developer [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 3:44 PMTo: MyFaces DiscussionSubject: Re: JSF Lifecycle and Design

Re: JSF Lifecycle and Design Question

2006-03-01 Thread Mike Kienenberger
Oops, forgot the easiest. One other simple initializing trick to to create an initialized property on your bean and have it listed as the last property. http://mail-archives.apache.org/mod_mbox/myfaces-users/200510.mbox/[EMAIL PROTECTED] On 3/1/06, j2ee Developer [EMAIL PROTECTED] wrote:

RE: JSF Lifecycle and Design Question

2006-03-01 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message If this is *really* your first page, you can do something like: meta http-equiv="Refresh" content= "0; URL=""> that references an "outcome" that leads to a page that does an onload event that simulates the clicking of a hidden commandLink. We've done something similar when

Ajax woes with facelets and myfaces

2006-03-01 Thread Andrew Robinson
Okay, I am trying to create a wizard in an AjaxAnywhere zone. I just posted a question to the myfaces list about this, but did not reply, as this is a different approach and I am having different problems. Setup (this is just shorthand): non-ajax form.../form ajax formaaZoneui:decorate

Re: JSF Lifecycle and Design Question

2006-03-01 Thread Adam Brod
You can just lazily load the data in your bean. For example, myActionBean.getMyDataBean(), just call loadData() in there. (You can keep a boolean to make sure you only load the data once.) Adam Brod Product Development Team j2ee Developer [EMAIL PROTECTED] 03/01/2006 04:43 PM Please

Re: t:inputCalendar component position

2006-03-01 Thread Mike Kienenberger
I recommend opening a JIRA issue on this. Fixes posted to the mailing list tend to get overlooked and lost due to the high volume of email. Thanks. On 2/24/06, Arshad Ali [EMAIL PROTECTED] wrote: I was also using calendar in scrollable div and i got the same problem, so i just changed the .js

Re: immediate action for non commands

2006-03-01 Thread Mike Kienenberger
Use immediate=true on your pulldown as well. Then you should have access to the converted value in component.getValue() [it might be component.getLocalValue() -- I can't remember right now]. On 3/1/06, Lance Frohman [EMAIL PROTECTED] wrote: Thanks, In the action, how do I tell which option

RE: immediate action for non commands

2006-03-01 Thread Lance Frohman
Hope this isn't a stupid question, but how do I get the component (given the id) in the action method? I couldn't find a method in FacesContext, etc. -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 3:36 PM To: MyFaces Discussion

Re: immediate action for non commands

2006-03-01 Thread Mike Kienenberger
The best way to do it is to use component binding=#{yourBean.component} on your page. This only works if you're referencing the component from the same bean every time (which is generally the case). Otherwise, you need to use findComponent() or invokeOnComponent(), which is a lot more

JSF and ServletFilter

2006-03-01 Thread sia far
I have a servlet filter that does some authentication and if it fails it is supposed to forward to a simple error page displaying a message (the page has no jsf component). Though I have this working using struts, I am starting to have a hard time to make it work. I am making the following

RE: immediate action for non commands

2006-03-01 Thread Lance Frohman
Thanks, findComponent() was pretty easy, unless I goofed: (in action method) UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot(); HtmlSelectOneListbox listBox = (HtmlSelectOneListbox)root.findComponent(form:id); -Original Message- From: Mike Kienenberger [mailto:[EMAIL

[OT] Downloading J2EE Without the Sun App Server

2006-03-01 Thread Mike Duffy
Am I missing something? http://java.sun.com/j2ee/1.4/download.html#sdk Is there anyway to download the latest J2EE without downloading the Sun App server? Thx. Mike __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection

two window interaction

2006-03-01 Thread Dave
When a user click an icon, a 2nd window pops up to ask user to make a selection from a tree navigation.After user makes a choice, close the 2nd window. what is the way to fill the first window with the selection.Thanks! Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a

Re: two window interaction

2006-03-01 Thread Dennis Byrne
In js from the child window. window.opener.parent.document.getElementById('to').value = document.getElementById('from'); window.close(); Dennis Byrne -Original Message- From: Dave [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 1, 2006 09:42 PM To: users@myfaces.apache.org Subject: