portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya A. Izergin (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Updated: (JS2-921) Portal Site Manager portlet not save "unhidden" state for PSML
Date Sun, 04 Jan 2009 12:08:44 GMT

     [ https://issues.apache.org/jira/browse/JS2-921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ilya A. Izergin updated JS2-921:
--------------------------------

    Description: 
Portal Site Manager / PSML / Information if "hidden" checkbox checked - uncheck state not
save after click "save" button. 



  was:
Portal Site Manager / PSML / Information if "hidden" checkbox checked - uncheck state not
save after click "save" button. 

components/portal/src/java/org.apache.jetspeed.layout.impl.UpdatePageAction.java (updateInformation
line 380)

            String hidden = getActionParameter(requestContext, "hidden");
            if (hidden != null && isBooleanModified(hidden, page.isHidden()))
                page.setHidden(!page.isHidden());                                    

any browsers return null for "unchecked" checkbox. I think replace it to

            boolean hidden = "true".equalsIgnoreCase(getActionParameter(requestContext, "hidden"));
            if( page.isHidden() != hidden)
            	page.setHidden( hidden );




components/portal/src/java/org.apache.jetspeed.layout.impl.UpdatePageAction.java (updateInformation
line 380)

            String hidden = getActionParameter(requestContext, "hidden");
            if (hidden != null && isBooleanModified(hidden, page.isHidden()))
                page.setHidden(!page.isHidden());

any browsers return null for "unchecked" checkbox. I think replace it to

            boolean hidden = "true".equalsIgnoreCase(getActionParameter(requestContext, "hidden"));
            if( page.isHidden() != hidden)
             page.setHidden( hidden ); 

> Portal Site Manager portlet not save "unhidden" state for PSML
> --------------------------------------------------------------
>
>                 Key: JS2-921
>                 URL: https://issues.apache.org/jira/browse/JS2-921
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Admin Portlets
>    Affects Versions: 2.1.3
>         Environment: Jetspeed 2.1.3, Tomcat 5.5.27, Mozilla Fierfox 3.0.5 or IE 7.0.5730.13,
Windows XP
>            Reporter: Ilya A. Izergin
>
> Portal Site Manager / PSML / Information if "hidden" checkbox checked - uncheck state
not save after click "save" button. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message