Re: NPE when doing a dispatch()

2006-06-08 Thread Richard Wallace
(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Richard Wallace wrote: Hey everyone

NPE when doing a dispatch()

2006-06-07 Thread Richard Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey everyone, I'm trying to use the ExternalContext.dispatch() method to direct a person to a page if they haven't done something they were supposed to yet. My code looks like this: if (hasTakenAssessment ()) { try {

Re: [shale] JSF AJAX components using Shale

2006-04-21 Thread Richard Wallace
Craig McClanahan wrote: On 4/21/06, *Werner Punz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Richard Wallace schrieb: Hey everyone, I hope you don't mind the cross post, but I just wanted to point this out to everyone. https://blueprints.dev.java.net

Re: [shale] JSF AJAX components using Shale

2006-04-21 Thread Richard Wallace
Craig McClanahan wrote: On 4/21/06, *Richard Wallace* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 4/21/06, *Werner Punz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Richard

Re: Using images for selectItem labels

2006-04-20 Thread Richard Wallace
Richard Wallace wrote: I'd like to use images as the labels for the selectItems in selectOneRadio component. Since itemLabel is an attribute of the selectItem component, I can't just use a graphicImage. Am I going to have to hack together some funky text label to do it? Something like

[shale] JSF AJAX components using Shale

2006-04-20 Thread Richard Wallace
Hey everyone, I hope you don't mind the cross post, but I just wanted to point this out to everyone. https://blueprints.dev.java.net/ajaxcomponents.html The AJAX components use Dojo for the client-side and build on Shale-remoting for the server-side. I had a similar idea and was even

Re: updateActionListener questions (re: Shale Clay mostly)

2006-04-19 Thread Richard Wallace
open to comments/criticisms. Rich regards, Martin On 4/19/06, Richard Wallace [EMAIL PROTECTED] wrote: I'm trying to make use of the Tomahawk updateActionListener action listener in a Shale Clay based app and was having problems getting it to work properly. After doing some debugging I

Re: updateActionListener questions (re: Shale Clay mostly)

2006-04-19 Thread Richard Wallace
Richard Wallace wrote: Martin Marinschek wrote: I was already wondering myself. It would fit better in the component, if there is one. Manfred? @Rich: Can you do a patch - would be great. On closer inspection I think I see why it is in the tag class rather than the component itself

Using images for selectItem labels

2006-04-19 Thread Richard Wallace
I'd like to use images as the labels for the selectItems in selectOneRadio component. Since itemLabel is an attribute of the selectItem component, I can't just use a graphicImage. Am I going to have to hack together some funky text label to do it? Something like f:selectItem itemValue=1

updateActionListener questions (re: Shale Clay mostly)

2006-04-18 Thread Richard Wallace
I'm trying to make use of the Tomahawk updateActionListener action listener in a Shale Clay based app and was having problems getting it to work properly. After doing some debugging I realized that the problem was that I was trying to map to the property property on the UpdateActionListener

Error with /META-INF/faces-config.xml

2006-04-05 Thread Richard Wallace
I've got a jar that has a custom converter. I'm trying to set it up so that there is a faces-config.xml in the jar file that will be used to make the converter available. When the webapp loads tho, I'm getting: Caused by: java.io.FileNotFoundException: JAR entry META-INF/faces-config.xml

Browser based component decisions

2006-04-04 Thread Richard Wallace
Hey all, I'm looking at trying to add some more advanced UI elements to a webapp I'm developing. One thing that I'm concerned about is that this is an app that will be used by the general public, not just in-house. That means I have no control over the OS or browser used to access the site.

Re: Browser based component decisions

2006-04-04 Thread Richard Wallace
Craig McClanahan wrote: On 4/4/06, *Richard Wallace* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey all, I'm looking at trying to add some more advanced UI elements to a webapp I'm developing. One thing that I'm concerned about is that this is an app

Validation questions

2006-04-04 Thread Richard Wallace
I've got 2 forms that I'm trying to do validation on. One form is an assessment form, where the user needs to answer each question. For the validation if a user doesn't enter a response, we want error messages at the top of the page that say: Questions 1, 3, and 7 have not been answered.

Re: Validation questions

2006-04-04 Thread Richard Wallace
Mike Kienenberger wrote: On 4/4/06, Richard Wallace [EMAIL PROTECTED] wrote: For the validation if a user doesn't enter a response, we want error messages at the top of the page that say: Questions 1, 3, and 7 have not been answered. So, I've been thinking about what the best way to do

Re: Validation questions

2006-04-04 Thread Richard Wallace
Mike Kienenberger wrote: Mike Kienenberger wrote: It is possible to simulate a custom required validator (see http://wiki.apache.org/myfaces/OptionalValidationFramework), but it isn't going to help you in any way On 4/4/06, Richard Wallace [EMAIL PROTECTED] wrote: How so

Re: Validation questions

2006-04-04 Thread Richard Wallace
Craig McClanahan wrote: On 4/4/06, *Richard Wallace* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Mike Kienenberger wrote: Mike Kienenberger wrote: It is possible to simulate a custom required validator (see http://wiki.apache.org/myfaces

Yahoo! User Interface Library

2006-04-03 Thread Richard Wallace
Hey everyone, A web designer at work just showed me the DHTML/Javascript libraries that Yahoo! released about a month ago at http://developer.yahoo.com/yui/index.html. They look pretty slick and are really well done. I'm just curious if anyone else here has seen them and done any work with

Re: Yahoo! User Interface Library

2006-04-03 Thread Richard Wallace
This is the first time I've seen Rico. It looks pretty cool. I definitely like some of the components there, like the LiveGrid data table and the accordion. And the drag and drop is definitely cool. But, at the moment the slider is what I'm most interested in. I agree it would be nice if all

Re: Simple progress bar

2006-02-23 Thread Richard Wallace
Arshad Ali wrote: You can use animated gif for that, just put animated gif in a DIV tag, and set visible true / false according to the action -- Syed Arshad Ali That's a little too simple for what I need. I still need the progress bar to be able to check the server to see when the

Simple progress bar

2006-02-22 Thread Richard Wallace
I'm trying to find a simple progress bar to use in a webapp that has to run a credit card transaction. The payment gateway could take up to 30 seconds to return a response, so I need to display something to the user while that is happening. I know there is an AJAX component in the Blueprints

Re: t:message and summaryFormat

2006-02-03 Thread Richard Wallace
So, am I way off base on what the summaryFormat attribute for t:message is supposed to be? Is there another way to have per input field error messages? Rich Richard Wallace wrote: Hello all, I'm trying to use the summaryFormat attribute of the tomahawk message component with the following

t:message and summaryFormat

2006-02-02 Thread Richard Wallace
Hello all, I'm trying to use the summaryFormat attribute of the tomahawk message component with the following: h:form id=form onsubmit=return validateForm(this); h:panelGroup h:outputLabel for=textInput value=Input / h:inputText id=textInput required=true /

Re: JSF Components For Acegi Security Framework

2006-01-19 Thread Richard Wallace
Very cool! What about a component for handling user logins? Or do you use a regular jsp/html page for submitting a form to the j_acegi_security_check url (or whatever your filter processing url might be)? Cagatay Civici wrote: Hi, I've implemented custom jsf components that can be used

Restore-view phase question

2006-01-15 Thread Richard Wallace
Hello all, I have a question regarding the restore-view phase. What I want to do is create a phase listener to try and process get parameters. The idea is that I'd have a phase listener which registers for the after restore-view event. So, my question is, if there is no view to restore,

Re: JSF Flaw: Comopnent not preserving it state

2006-01-13 Thread Richard Wallace
The biggest problem I can see with making the default value for this true for the dataTable component is that the DataModel could very well be backed by data loaded from an ORM tool such as Hibernate. In this case, it would be very easy to run into LazyInitializationExceptions or equivalent.

Re: Partial page refresh in JSF?

2005-12-07 Thread Richard Wallace
Have you looked at AjaxAnywhere (http://ajaxanywhere.sourceforge.net/) yet? It works exactly this way, giving you zones on the page that get reloaded when certain actions occur. Jeremy Sager wrote: Hi guys – Thanks in advance for your answer to this question… My company is trying to put

Re: [OT] Generic search in Hibernate

2005-10-08 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: How do you normally do search functionality like this? Do you expose the Hibernate query API to the JSF layer? No, that is why the BO-DAO Pattern existis, I usually and that works exceptionally well, split the application into three layers one

Re: Message Panel in JSF/MyFaces

2005-10-07 Thread Richard Wallace
Have you taken a look at AjaxAnywhere (http://ajaxanywhere.sourceforge.net/)? I haven't used it yet but I plan to for all my data tables that will be sortable and pageable etc. The basic principal is that you mark zones of the page as ajax reloadable and then you use javascript to reload

[OT] Generic search in Hibernate

2005-10-07 Thread Richard Wallace
Hey all, I'm just wondering how anyone has implemented like a generic search using Hibernate as a backend. More specifically, when the data access layer (Hibernate) is abstracted away from the presentation layer (JSF). I I'm trying to find some way of creating some kind of search ability

Re: [OT] Generic search in Hibernate

2005-10-07 Thread Richard Wallace
that the data layer is using Hibernate at the presentation layer by using the Hibernate criteria API. Werner Punz wrote: Richard Wallace wrote: Hey all, I'm just wondering how anyone has implemented like a generic search using Hibernate as a backend. More specifically, when the data access

Re: Hibernate and Datascroller

2005-09-29 Thread Richard Wallace
The problem is that the bean that holds the list of data for the table is session scoped. So, on the first request to the page the hibernate query is done and then you store the resulting List in the HTTP session. On a subsequent request to the page you try to access data in the List that

t:updateActionListener and Master-detail

2005-09-29 Thread Richard Wallace
Hey all, I'm running into a situation that's got me very confused. Basically I'm using the t:updateActionListener to do the master-detail pattern as in the examples. The problem I'm running into is that the value passed to the property doesn't seem to be correct all the time. I think the

Long[] and selectManyListbox

2005-09-26 Thread Richard Wallace
Hey all, I'm trying to use a selectManyListbox component on a page to allow the user to select multiple things. The SelectItems are created from a list returned from Hibernate so the value object is of type Long. In my backing bean I'm using the following methods: public Long[]

Re: Long[] and selectManyListbox

2005-09-26 Thread Richard Wallace
[]. But then I can just do a direct cast to a Long of elements of that array, so it is, in fact, a Long[]. I'm chalking this up to odd conversion issues that others seem to be reporting. Richard Wallace wrote: Hey all, I'm trying to use a selectManyListbox component on a page to allow the user to select

t:dataList and Sets

2005-09-26 Thread Richard Wallace
Hey all, I was just trying to get a Hibernate mapped collection, a Set, displayed on a page with a t:dataList component. Much to my chagrin I started to get exceptions like javax.servlet.ServletException: ServletException in '/admin/departmentType/list.jsp': javax/servlet/jsp/jstl/sql/Result

Re: t:dataList and Sets

2005-09-26 Thread Richard Wallace
2005/9/27, Richard Wallace [EMAIL PROTECTED]: Hey all, I was just trying to get a Hibernate mapped collection, a Set, displayed on a page with a t:dataList component. Much to my chagrin I started to get exceptions like javax.servlet.ServletException: ServletException in '/admin/departmentType

Re: t:updateActionListener help

2005-09-21 Thread Richard Wallace
no namespace with the t prefix was defined, but adding the taglib def to the page fixed the problem and all works as it should. Rich Richard Wallace wrote: Hello all, I'm trying to get t:updateActionListener working but am having some problems. I've got the following table on one page

t:updateActionListener help

2005-09-20 Thread Richard Wallace
Hello all, I'm trying to get t:updateActionListener working but am having some problems. I've got the following table on one page: h:dataTable value=#{institutionHandler.institutionsModel} var=institution styleClass=tableReport rowClasses=row,altrow h:column f:facet name=header

Re: Best way to use object properties from a List to create Select Items?

2005-09-09 Thread Richard Wallace
This is something I've been fighting with too. I've just been doing the backingBean.getDomainObjectAsSelectItems() kind of method that returns either a SelectItem[] or a List. The biggest thing I don't like about that is that the iteration over the collection is done twice, once to convert

Re: JSF + Spring + Hibernate

2005-09-01 Thread Richard Wallace
Joshua Davis wrote: Transfer Object is a design pattern frequently used with EJB: http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html . Your managed beans could copy the Hibernate-mapped objects (I call them Persistent Domain Objects) into simple POJOs that aren't

Re: Bypassing validation while still preserving values

2005-08-25 Thread Richard Wallace
put back in the model and the page looks just like when they left it except that now there's a new item in the drop-down. Rich Just my 2 cents ;-) 2005/8/24, Richard Wallace [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: James Reynolds wrote: Ooo! I know this one! I lean

Re: Bypassing validation while still preserving values

2005-08-25 Thread Richard Wallace
, not your model values. Ok, that's reasonable. How can I preserve the submitted values instead of trying to get the model values updated so I can preserve them? Thanks, Rich -Mike On 8/24/05, Richard Wallace [EMAIL PROTECTED] wrote: Hey everyone, I've got a form that has a couple

Bypassing validation while still preserving values

2005-08-24 Thread Richard Wallace
Hey everyone, I've got a form that has a couple of optional command links on it. They are basically quick add buttons so a user can quickly add things to drop downs if they aren't there. When these quick add buttons are clicked the user is sent to an add page, the user enters the new info

Re: Bypassing validation while still preserving values

2005-08-24 Thread Richard Wallace
Like I said, I tried that. The problem with that is that the model values don't get updated and so can't be preserved with the t:saveState component. Sean Schofield wrote: Use immediate=true on your command links. sean On 8/24/05, Richard Wallace [EMAIL PROTECTED] wrote: Hey everyone

Re: Bypassing validation while still preserving values

2005-08-24 Thread Richard Wallace
add page before validating the data or updating the model. So t:saveState will be preserving old information, not the latest info the user entered. JR -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 10:14 AM To: MyFaces Discussion

outputFormat and links

2005-08-15 Thread Richard Wallace
Hello, I would like to do something like the following: h:outputFormat value=To view your report click {0}. f:paramh:outputLink value=report.jsfh:outputText value=here //h:outputLink/f:param /h:outputFormat But this is not valid according to

outputFormat and links

2005-08-15 Thread Richard Wallace
Hello, I would like to do something like the following: h:outputFormat value=To view your report click {0}. f:paramh:outputLink value=report.jsfh:outputText value=here //h:outputLink/f:param /h:outputFormat But this is not valid according to

Re: Post login redirection

2005-08-14 Thread Richard Wallace
Just realized I forgot to attach the diff. Sorry, it was late =P Rich Richard Wallace wrote: Hello, I'm still having issues with the ExternalContext.redirect() method and I'm wondering if anyone has a workaround. The issue comes up when I'm trying to redirect a user to a page

Re: Changes over the last 3 months?

2005-08-11 Thread Richard Wallace
Many of the attributes that used to work on images don't anymore. This is for better compliance with the JSF tag lib spec. I had similar problems when I upgraded to a nightly snapshot. The attributes used to work but shouldn't have. The simple solution (and I believe the correct one) is to

Tracking down duplicate ids

2005-08-08 Thread Richard Wallace
Hey everybody, Got a nasty little problem that I'm not sure what the best way to go about solving it is. I've got a page with a couple of dataTables and a couple of forms on it. One form and dataTable is for one type of object and the other form and dataTable are for another type of object.

Re: Tracking down duplicate ids

2005-08-08 Thread Richard Wallace
Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 2:58 PM To: MyFaces Discussion Subject: Tracking down duplicate ids Hey everybody, Got a nasty little problem that I'm not sure what the best way to go about solving it is. I've got a page with a couple

Re: Tracking down duplicate ids

2005-08-08 Thread Richard Wallace
to be a top-level object - it does not have any parent object at all? regards, Martin On 8/8/05, *Richard Wallace* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ok, a bit of an update. The issue only comes up when I have both of the tables on the same page. If I comment one out

Re: Automatically retrying failed transactions

2005-08-08 Thread Richard Wallace
I think the point that he was trying to make was that this isn't something that JSF is meant to handle. The way I would handle something like this is to have my backing bean get a reference to some business logic object (living in Spring or some other container in the same JVM or on another

Re: Tracking down duplicate ids

2005-08-08 Thread Richard Wallace
. Was it a h:commandLink ?. CommandLink I know generates a form and does a submit on the click. -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, August 08, 2005 5:08 PM To: MyFaces Discussion Subject

Re: Tracking down duplicate ids

2005-08-08 Thread Richard Wallace
generates a form and does a submit on the click. -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 5:08 PM To: MyFaces Discussion Subject: Re: Tracking down duplicate ids After putting ids on all the elements in the tables (including h:column

Re: Messages and navigation rule redirects post

2005-08-05 Thread Richard Wallace
Yes, I'm still here but I'm in a different timezone than all of you. So all this was going on at 3am my time and I was getting some much needed sleep =P Anyways, this is an issue that I never quite solved either. I kind of put it on the sidelines because I had other more important things to

Re: Messages and navigation rule redirects post @ myfaces mailing list

2005-08-03 Thread Richard Wallace
I'm glad to know I'm not the only one running into this. I have yet to solve this. I had hoped that just putting a FacesContext.getCurrentInstance().responseComplete() right after my externalContext.redirect() call would solve the problem. But it looks like the NavigationHandler still tries

Re: Variable cell style classes in data table

2005-08-01 Thread Richard Wallace
in the next nightly. Regards, Mathias Mathias Broekelmann wrote: I will commit it into the tomahawk sources. Richard Wallace schrieb: Sounds awesome! Where will you be committing it to? Sandbox or Tomahawk? Thanks, Rich Broekelmann, Mathias wrote: I´ve create a special column component

ExternalContext.redirect() bug

2005-08-01 Thread Richard Wallace
Hey all, I think there's a bug in the servlet ExternalContext implementation of the redirect() method. In the api comments it says Redirect a request to the specified URL, and cause the |responseComplete()| method to be called on the |FacesContext|

Re: [XWALL HEURISTIC] Re: Variable cell style classes in data table

2005-07-29 Thread Richard Wallace
be the fastest, but if you have time, i would wait for the component to do the work for you ;) greetings jörg I will commit it into the tomahawk sources. Richard Wallace schrieb: Sounds awesome! Where will you be committing it to? Sandbox or Tomahawk

Re: [XWALL HEURISTIC] Re: Variable cell style classes in data table

2005-07-29 Thread Richard Wallace
. as for the style: use display:block; in your style description. regards, Martin On 7/29/05, *Richard Wallace* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm curious tho what this actually outputs. It seems your just setting the styleClass on the h:outputText element

Re: Variable cell style classes in data table

2005-07-28 Thread Richard Wallace
involve, but I'm more than willing to give it a shot if someone could maybe give me some advice. Thanks, Rich Richard Wallace wrote: Jesse Alexander (KBSA 21) wrote: I did something similar, but I just needed to render an image according the content of a field. I ended up writing a Lookup

Re: Variable cell style classes in data table

2005-07-28 Thread Richard Wallace
. Best Regards, Mathias -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 5:42 PM To: MyFaces Discussion Subject: Re: Variable cell style classes in data table Alright, well my back is sort of up against a wall now. I had thought I

Re: Calculating image height

2005-07-26 Thread Richard Wallace
and display. Rich -- Boris Klug Zitat von Richard Wallace [EMAIL PROTECTED]: Hello everyone, I'm working on a report that has a bar chart. I thought the easiest way to display it would be to use something like: h:graphicImage url=/images/visual_bar_1.gif width=46 height=#{reportHandler.score

Re: Calculating image height

2005-07-26 Thread Richard Wallace
a return this; which should be cheaper than a cast from an Object to a String. It also causes the value to be coerced into a String. Unless this is strictly forbidden by the standard, it can't see a reason not to implement it this way. Thanks, Rich Richard Wallace wrote: Klug, Boris wrote

Re: Calculating image height

2005-07-26 Thread Richard Wallace
object it will just do a return this; which should be cheaper than a cast from an Object to a String. It also causes the value to be coerced into a String. Unless this is strictly forbidden by the standard, it can't see a reason not to implement it this way. Thanks, Rich Richard Wallace wrote

Re: MyFaces 1.0.9: how old? how stable? what's next?

2005-07-26 Thread Richard Wallace
for the official release builds (starting with the 1.0.9 which has already been released.) Let see what James has to say ... sean On 7/26/05, Richard Wallace [EMAIL PROTECTED] wrote: Any chance of getting a nightly snapshot in some maven repo somewhere for those of us using maven in our

Re: Variable cell style classes in data table

2005-07-25 Thread Richard Wallace
a component that does this trick, if you can wait till then. Sounds good. I can probably figure something out until then. Thanks a ton. Rich -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Monday, July 25, 2005 7:52 PM To: MyFaces Discussion Subject

Calculating image height

2005-07-25 Thread Richard Wallace
Hello everyone, I'm working on a report that has a bar chart. I thought the easiest way to display it would be to use something like: h:graphicImage url=/images/visual_bar_1.gif width=46 height=#{reportHandler.score * 18} border=0 / But that horks with: java.lang.ClassCastException

Clearing a form after submission

2005-07-12 Thread Richard Wallace
Hello, I've got a couple of forms that after submission I don't want the values that were submitted to be redisplayed in the form. I tried clearing the data model in the action handling method when the form is submitted, but the form is still populated when it is displayed. Any ideas how I

Re: Clearing a form after submission

2005-07-12 Thread Richard Wallace
[EMAIL PROTECTED] wrote: Use a JSF EL expression in the rendered attributes of any elements that you would like to hide. x:elementThatIWantToShowOrHide rendered=#{some expression that eval.s to false or true} / I wasn't clear I guess. What I want is for the form to be cleared, so that

Re: dataList with radio buttons

2005-07-12 Thread Richard Wallace
meant to be used for? Thanks, Rich Richard Wallace wrote: Hello, I've got a dataList bound to a list of values in the backing bean as such: x:dataList id=questionList layout=simple value=#{assessmentHandler.currentPage.questions} var=question h:outputText

Re: dataList with radio buttons

2005-07-12 Thread Richard Wallace
[EMAIL PROTECTED] wrote: Can you please elaborate on The required=true attribute also seems to be ignored, because I can safely advance without any errors.? I simply meant that if I clicked on a command button, such as Next or Finish that MyFaces happily accepts the input as even if

NavigationHandler ignoring responseComplete()

2005-07-06 Thread Richard Wallace
Hey all, I'm working on redirecting a user to the page they requested after successfully authenticating. To do this I use the ExternalContext.redirect() method to redirect to a URL that is stored in the session when they try and access a page but aren't logged in and are redirected. As I

Acegi and JSF integration

2005-06-30 Thread Richard Wallace
Hey everyone, I'm progressing with our move to Java and JSF and am trying to integrate some security. I've decided on using Acegi Security because I need to be able to have domain object level ACLs and it's the most complete open source implementation I've seen. But, I'm having some

Re: Read this?: 'Oracle to release JDeveloper / Oracle will join MyFaces project as core contributor.

2005-06-24 Thread Richard Wallace
Christian Daszenies wrote: http://www.theserverside.com/news/thread.tss?thread_id=34781 Wow, this is really cool. I was also just looking through the ADF Faces components and they look really cool. I hope they contribute these to MyFaces or at least make them freely usable. Rich

Re: Dynamically adding form elements client-side

2005-06-21 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Actually, on reflection, I can't really think of a good way to get everything I want for free anyways. I think I will need to develop a custom component, probably something that is composed of other existing UI elements. The three primary use

Re: Dynamically adding form elements client-side

2005-06-20 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Hello again, I'm trying to figure out how, if it's possible to add form elements, like text fields, when a user clicks an add button without having to have the page resubmit. Only by using javascript, but without javascript no. That is a limit

Re: Dynamically adding form elements client-side

2005-06-20 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Werner Punz wrote: Richard Wallace wrote: Hello again, I'm trying to figure out how, if it's possible to add form elements, like text fields, when a user clicks an add button without having to have the page resubmit. Only by using

Re: Dynamically adding form elements client-side

2005-06-20 Thread Richard Wallace
Martin Marinschek wrote: You need to explicitly add these new elements, this is entirely your responsibility... I understand that, my question is How do I add the new elements? Rich regards, Martin On 6/20/05, Richard Wallace [EMAIL PROTECTED] wrote: Werner Punz wrote

Re: Dynamically adding form elements client-side

2005-06-20 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Ok, but how should I tinker with the element tree? I'm guessing AJAX will need to come into play. But how do I get access to the element tree? And exactly how should I manipulate it? I'm guessing there's no ready to go methods already in the JSF

Re: Dynamically adding form elements client-side

2005-06-20 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Martin Marinschek wrote: You need to explicitly add these new elements, this is entirely your responsibility... I understand that, my question is How do I add the new elements? If you can do a refresh, you simple do a binding to the backend

Re: Dynamically adding form elements client-side

2005-06-20 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Werner Punz wrote: Richard Wallace wrote: Ok, but how should I tinker with the element tree? I'm guessing AJAX will need to come into play. But how do I get access to the element tree? And exactly how should I manipulate it? I'm guessing

Dynamically adding form elements client-side

2005-06-18 Thread Richard Wallace
Hello again, I'm trying to figure out how, if it's possible to add form elements, like text fields, when a user clicks an add button without having to have the page resubmit. I'm not even sure it's 100% possible unless the STATE_SAVING_METHOD is client. And then the javascript would have to

Re: Dynamically adding form elements client-side

2005-06-18 Thread Richard Wallace
David G. Friedman wrote: Richard, Are you talking about hiding/showing the fields (such as using a CSS style) or completely adding to the page without a resubmit? Completely adding a new element to the form. Regards, David -Original Message- From: Richard Wallace [mailto:[EMAIL

Re: Dynamically adding form elements client-side

2005-06-18 Thread Richard Wallace
. Good luck! Regards, David -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Saturday, June 18, 2005 11:10 PM To: MyFaces Discussion Subject: Re: Dynamically adding form elements client-side David G. Friedman wrote: Richard, Are you talking about hiding/showing

Re: Messages and navigation rule redirects

2005-06-15 Thread Richard Wallace
Richard Wallace wrote: Matt Blum wrote: The Faces servlet does a forward by default, so all you need to do is take out the redirect tag from your navigation rule, and that's what will happen. Well, ok. But I guess I'm just not understanding where the code to put the messages

Messages and navigation rule redirects

2005-06-14 Thread Richard Wallace
Hello again, This should be a pretty simple problem. In the CRUD app that I'm using as a proof-of-concept for using JSF here at work I've got everything working and think I'm starting to understand some of the nuances of JSF. But one thing that is not working as I expected is the handling

Re: Filling in select lists

2005-06-13 Thread Richard Wallace
at some of the examples on its use and I'm still not sure exactly what it does. It's not very well documented from what I've been able to find. Care to fill me in on the details of how to use it and what it does? Thanks Rich Kalle -Original Message- From: Richard Wallace

Re: Filling in select lists

2005-06-13 Thread Richard Wallace
Korhonen, Kalle wrote: -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Subject: Re: Filling in select lists Korhonen, Kalle wrote: Looks to me that you should use x:saveState to extend the lifetime of the request scoped bean and/or to save

Errant event firing

2005-06-13 Thread Richard Wallace
Hello, I'm having another problem with my select list and the value changed event listener. I have the following tag: h:selectManyListbox id=organizations value=#{contactHandler.selectedOrganizations} valueChangeListener=#{contactHandler.handleOrganizationChanged} onchange=submit()

Re: Errant event firing

2005-06-13 Thread Richard Wallace
Richard Wallace wrote: Hello, I'm having another problem with my select list and the value changed event listener. I have the following tag: h:selectManyListbox id=organizations value=#{contactHandler.selectedOrganizations} valueChangeListener=#{contactHandler.handleOrganizationChanged

Re: Filling in select lists

2005-06-11 Thread Richard Wallace
Richard Wallace wrote: So what do I need to do to fix this? One idea is to try and find the value that JSF will use in the form and use that if there is one and then otherwise use the backing beans value when I'm generating the department choices. Seems kind of hacky since that's one

Re: Filling in select lists

2005-06-11 Thread Richard Wallace
read where the backing bean contains the current selected object and the JSF pages bind with value=#{contactHandler.currentContact.firstName} for example. Is it better to have this backing bean be session scoped or request scoped? Richard Wallace wrote: Richard Wallace wrote: So what do I

Filling in select lists

2005-06-10 Thread Richard Wallace
Hello, I'm working on writing my first webapp with JavaServer Faces and I'm using a compiled libraries that I checked out earlier today. I'm having a problem with filling in a bunch of select menu and select boxes dynamically. Here's the situation. I have a h:selectOneMenu element for a