[jira] Commented: (OFBIZ-3271) Storing screenlet collapsed/expanded status as user preferences

2009-12-06 Thread Bruno Busco (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786722#action_12786722
 ] 

Bruno Busco commented on OFBIZ-3271:


Hi Bilgin,
many thanks for your review, hints and contribution.
I have moved forward on this and want to provide a new patch before committing.

1. That's fine.

2. I have followed your hint for not changing the screenlet id but rather 
change the userPrefTypeId field from type="id-ne" to type="id-long-ne" (since 
this change affects the data model I do not commit yet but show the patch 
before)

3., 4.  I have integrated your ModelScreenWidget.patch in the new version of 
the main patch. Many thanks for contributing.

5. I added a new screenlet attribute "store-collapsed". This defaults to true 
and controls whether the screenlet collapsible status should be saved or not.

If there are no issues I will commit.

Many thanks,
Bruno

> Storing screenlet collapsed/expanded status as user preferences
> ---
>
> Key: OFBIZ-3271
> URL: https://issues.apache.org/jira/browse/OFBIZ-3271
> Project: OFBiz
>  Issue Type: New Feature
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Bruno Busco
>Assignee: Bruno Busco
>Priority: Minor
> Attachments: ModelScreenWidget.patch, OFBIZ-3271 
> persistCollapsed.patch, OFBIZ-3271 persistCollapsed.patch
>
>
> Hi,
> actually the screenlet collapsed/expanded status is reset to the initial 
> value every time the page is refreshed.
> in the attached patch there is a solution to have the screenlet 
> collapsed/expanded status stored as user preferences so that they stay in the 
> collapsed or expanded status whenever the user refresh the page or 
> logout/loging again.
> I would like a review from you, before committing.
> Thank you,
> Bruno

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



[jira] Commented: (OFBIZ-3271) Storing screenlet collapsed/expanded status as user preferences

2009-12-03 Thread Bilgin Ibryam (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12785619#action_12785619
 ] 

Bilgin Ibryam commented on OFBIZ-3271:
--

Bruno, 

I checked your patch and this would be a good addition to the project.

1. I don't see any security issue in storing userPreference recores with 
javascript.

2. Do we need to introduce a new patter for the Ids, I mean the capital 
letters? I think we should continue to use camelCase but using shorter names 
that would fit in userPrefTypeId field, or even better change the field type 
from id-ne to id-long-ne in UserPreference entity, where all the ids would fit 
w/o any change.

3. Your changes in ModelScreenWidget.java , modify the current implementation 
of the screenlets collapsible status.

4. I think it would be better if this feature is automatically handled by the 
screenlet widget, w/o requiring any change on the screen definitions. This 
way,the feature will be available for all the screenlets. For that purpose I 
added the user preference check to ModelScreenWidget and removed the 
initiallyCollapsedExdr as it is not needed. Please take a look at it.

Bilgin


> Storing screenlet collapsed/expanded status as user preferences
> ---
>
> Key: OFBIZ-3271
> URL: https://issues.apache.org/jira/browse/OFBIZ-3271
> Project: OFBiz
>  Issue Type: New Feature
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Bruno Busco
>Priority: Minor
> Attachments: OFBIZ-3271 persistCollapsed.patch
>
>
> Hi,
> actually the screenlet collapsed/expanded status is reset to the initial 
> value every time the page is refreshed.
> in the attached patch there is a solution to have the screenlet 
> collapsed/expanded status stored as user preferences so that they stay in the 
> collapsed or expanded status whenever the user refresh the page or 
> logout/loging again.
> I would like a review from you, before committing.
> Thank you,
> Bruno

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



[jira] Commented: (OFBIZ-3271) Storing screenlet collapsed/expanded status as user preferences

2009-11-28 Thread Bruno Busco (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783232#action_12783232
 ] 

Bruno Busco commented on OFBIZ-3271:


I wonder if this solution does not create some security issue.
The javascript would be able to create as many userPreferences records as it 
likes.
Is this an issue?

Thank you for any feedback.

> Storing screenlet collapsed/expanded status as user preferences
> ---
>
> Key: OFBIZ-3271
> URL: https://issues.apache.org/jira/browse/OFBIZ-3271
> Project: OFBiz
>  Issue Type: New Feature
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Bruno Busco
>Priority: Minor
> Attachments: OFBIZ-3271 persistCollapsed.patch
>
>
> Hi,
> actually the screenlet collapsed/expanded status is reset to the initial 
> value every time the page is refreshed.
> in the attached patch there is a solution to have the screenlet 
> collapsed/expanded status stored as user preferences so that they stay in the 
> collapsed or expanded status whenever the user refresh the page or 
> logout/loging again.
> I would like a review from you, before committing.
> Thank you,
> Bruno

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