[
https://issues.apache.org/jira/browse/TOMAHAWK-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637848#action_12637848
]
Paul Rivera commented on TOMAHAWK-1182:
---------------------------------------
Hi!
I was able to replicate your issue.
In addition, if your inputCalendar is rendered as inline, the links are
rendered as active as well. The user should not be able to click them anymore
since the user's role is not equal to the one specified in enableOnUserRole.
The same situation applies for the readonly attribute. I've created
TOMAHAWK-1345 and linked it to this issue for tracking purposes.
The fix for both TOMAHAWK-1182 and TOMAHAWK-1345 has been attached above as
HtmlCalendarRenderer.patch. I did not create two separate patches anymore
since they will be in conflict when merging in svn and the fix is pretty
straightforward.
The fix basically does not render the popupCalendar button if the role is not
in enabledOnUserRole or is readonly for inputCalendar to be consistent with the
behavior of inputDate.
The patch works fine for both tomahawk11 and tomahawk12.
> Input calendar does not respect the enabledOnUserRole property when rendering
> as a popup
> ----------------------------------------------------------------------------------------
>
> Key: TOMAHAWK-1182
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1182
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Calendar
> Affects Versions: 1.1.6
> Environment: Windows XP, WebSphere 5.1
> Reporter: Steve Rees
> Priority: Minor
> Attachments: HtmlCalendarRenderer.patch, test.jsp
>
>
> When rendering the input calendar the HtmlCalendarRenderer does not respect
> the enableOnUserRole property for the popup button. This has the effect that
> if the user is not in a role where the calendar should be enabled the button
> still allows them to set a date for the calendar.
> When accessing the attached page as a user that is not in role 'Role' the
> input field is disabled, but the popup button is enabled. Pressing the button
> and selecting a date from the popup calendar modifies the date in the input
> field.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.