Re: [shale] Possible Shale Enhancement

2005-08-09 Thread Craig McClanahan
On 8/9/05, Sean Schofield <[EMAIL PROTECTED]> wrote: > > Although access to the other components by navigating the component > > tree is guaranteed to work, I take your point that it makes the logic > > of this "check" type validator more fragile. Here's a technique to > > consider that might alle

Re: [shale] Possible Shale Enhancement

2005-08-09 Thread Sean Schofield
> Although access to the other components by navigating the component > tree is guaranteed to work, I take your point that it makes the logic > of this "check" type validator more fragile. Here's a technique to > consider that might alleviate the issue somewhat: Yes that was my point. Wouldn't y

Re: [shale] Possible Shale Enhancement

2005-08-08 Thread Craig McClanahan
On 8/8/05, Sean Schofield <[EMAIL PROTECTED]> wrote: > I have another possible solution for this validation problem. It > involves going back to your original answer where you suggested the > Process Validations phase as the logical place for this type of > activity to occur. > > My main problem

Re: [shale] Possible Shale Enhancement

2005-08-08 Thread Sean Schofield
I have another possible solution for this validation problem. It involves going back to your original answer where you suggested the Process Validations phase as the logical place for this type of activity to occur. My main problem was access to other components so I could see their submitted val

Re: [shale] Possible Shale Enhancement

2005-08-08 Thread Sean Schofield
> I'm sure this is obvious to you :-), but to help the rest of us out > ... can you provide a concise statement of what this method would be > used for? Let's assume we use the name check() or whatever you want > ... what would the Javadocs say? This method allows for the option to perform compl

Re: [shale] Possible Shale Enhancement

2005-08-08 Thread Craig McClanahan
On 8/8/05, Sean Schofield <[EMAIL PROTECTED]> wrote: > [Sorry I replied to the user's list by mistake. This is a repost to > the dev list.] > > Craig, > > I have been thinking about this issue some more and I have some > additional thoughts in response to your comments. > > I definitely like th

Re: [shale] Possible Shale Enhancement

2005-08-08 Thread Sean Schofield
[Sorry I replied to the user's list by mistake. This is a repost to the dev list.] Craig, I have been thinking about this issue some more and I have some additional thoughts in response to your comments. I definitely like the idea of a new method in ViewController. I wouldn't call it validate

Re: [shale] Possible Shale Enhancement

2005-08-02 Thread Sean Schofield
> With a bit of effort, you can gain access to the *submitted* values of > other components (because the validator receives a reference to the > component being validated and the FacesContext, so you can navigate > around the tree) ... but, your fundamental issue is that Process > Validations happe

Re: [shale] Possible Shale Enhancement

2005-08-02 Thread Craig McClanahan
On 8/2/05, Sean Schofield <[EMAIL PROTECTED]> wrote: > We're having some difficulties writing complex validators in JSF. In > many cases we have a field whose validation depends on the value of > another field. JSF doesn't really handle this situation very well in > the processValidations phase b

[shale] Possible Shale Enhancement

2005-08-02 Thread Sean Schofield
We're having some difficulties writing complex validators in JSF. In many cases we have a field whose validation depends on the value of another field. JSF doesn't really handle this situation very well in the processValidations phase because you don't have access to the other values. I've run i