No, that wouldn't seem to me to be the expected behavior.  Sean coded that piece, so I can't be 100% sure, but I'd think the expected behavior should be that, if the user doesn't enter anything (either by picking from the list of suggestions or typing in something not on the list), a null value would be submitted to the model, just as it would be for a normal text box left blank.

So, to my mind, that would also be a bug.  Sean, any comments?

-Matt

On 8/25/05, Clément Maignien <[EMAIL PROTECTED]> wrote:
What about the #3 problem ? Is it really the expected behaviour of this component ?
 
Thanks
Clément
-----Message d'origine-----
De : Clément Maignien
Envoyé : mercredi 24 août 2005 11:34
À : MyFaces Discussion
Objet : RE : inputSuggest : some others improvement to do

Hummm, sorry, the #2 issue is a mistake : I have another page with an inputSuggest with many items into and  the white space isn't there. So I'm asking why it is displayed on my other page and disappier when I don't add the inputSuggest in the page ... wierd ...
 
Bye,
Clément.
-----Message d'origine-----
De : Clément Maignien
Envoyé : mercredi 24 août 2005 10:37
À : MyFaces Discussion
Objet : s:inputSuggest : some others improvement to do

I've noticed some more improvements to make on this sandbox component.
I don't know if they really comes from the component itself but I here they are :
 
1- I have a small JSF page with an s:inputSuggest component and an t:inputDate component under it. 
When clicking inside the inputSuggest a dropdown box open and displays firsts suggests. The problem is that under IE (not Firefox) the dropdown-box is displayed behind the inputDate, hiding some suggests.
 
2- It also seems that under Firefox (not IE), the page vertical lenght is increased depending on the number of items in the inputSuggest. A white space is displayed under the last element of the page. In my case I try to avoid the use of the page scroller in my webapp pages, and now there is a scroller displayed because of this big white space.
 
Are those problems come from the browsers or the component implementation ?
 
3- When you click inside the inputSuggest and then click outside without typing anything or choosing an item, I get a value of "-1" in the model. In fact, a new suggest is added to the component with an empty string as label and -1 as value. Is this the expected behaviour of the inputSuggest component ?
 
Thx,
Clément.

Reply via email to