myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Friedrich (JIRA)" <>
Subject [jira] Created: (TRINIDAD-753) Open TODOs in SimpleSelectOneRenderer are breaking my session/log-in handling
Date Thu, 04 Oct 2007 10:25:50 GMT
Open TODOs in SimpleSelectOneRenderer are breaking my session/log-in handling

                 Key: TRINIDAD-753
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.0.3-core
            Reporter: Stephen Friedrich

Currently __getIndex() throws an exception if the submittedValue is not in the list of select
items, or is not a number.
That code is annotated with "// TODO Don't throw exception: message!".
It would be great if that TODO could be DONE ;-)

In general the issue isn't really tragic, as the situation should not occur.

However I just came across a situation where it actually is a problem:
In my page there's a tr:selectOneChoice with autoSubmit="true". The nested selectItems tag
calls a method on the server which depending on the logged-in user returns different items.
Nothing exotic so far, right?

Now if the session time out (or the user already logged out from a different tab/window),
then that list is empty and that triggers the exception in the renderer, because the value
from the select isn't in the list.

Usually when the page is about to get redisplayed, the time-outed session would be detected
and a redirect to a login page occurs.
Only, I don't get that far because Trinidad throws an exception.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message