[ 
https://issues.apache.org/jira/browse/PB-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526425
 ] 

Woonsan Ko commented on PB-70:
------------------------------

I stupidly commented on "GroovyReflector" problems associating with Java 1.5 
jetspeed-api classes.
The problem is not related to Java 1.5 classes. There's no problem with Java 
1.5 both at compile-time and at runtime.

The "GroovyReflector" problem is related to multiple class loaders, each of 
which contains groovy-1.x.jar.
This problem was fixed for groovy-1.1-beta2. ( See 
http://jira.codehaus.org/browse/GROOVY-1867 )
Therefore, we need to just upgrade the version of the following library jars 
for Portals Bridge and Jetspeed-2:
  - groovy-1.0.jar --> groovy-1.1-beta-2.jar
  - antlr-2.7.5.jar --> antlr-2.7.6.jar

By the way, there's no groovy-1.1-beta-2.jar in ibiblio maven repository.
So, I'm going to make a request to some other repository (e.g. 
http://www.bluesunrise.com/maven/) and to change the version information.

> Groovy Bridge needs to support groovy script preferences validator and groovy 
> script pre-286 portlet.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: PB-70
>                 URL: https://issues.apache.org/jira/browse/PB-70
>             Project: Portals Bridges
>          Issue Type: Improvement
>          Components: groovy
>    Affects Versions: 1.0.3
>            Reporter: Woonsan Ko
>            Assignee: Ate Douma
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: groovy-improve-diff.zip
>
>
> We can use Groovy script to write a portlet now, but we need more.
> We should be able to write a groovy preferences validator. Also we should be 
> able to write a groovy script portlet which supports pre-286 header phase.
> In summary, the followings are expected:
>  - One can add a portlet preferences validator class into the portlet.xml. 
> The class is a wrapper class for groovy script.
>  - The wrapper class reads (read-only) preferences to find the script file 
> and auto-refresh mode.
>  - When auto-refresh mode is true, the modification of the validator script 
> should be applied instantly.
>  - Also, one can write a groovy portlet to support pre-286 header phase. 
> Currently Jetspeed-2 API provides this interface. So the script developer 
> implements SupportsHeaderPhase interface of Jetspeed-2 to provide header 
> phase.
>  - In such case, the developer can set the portlet-class to another wrapper 
> class.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to