[
https://issues.apache.org/jira/browse/PB-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Woonsan Ko updated PB-70:
-------------------------
Attachment: groovy-improve-diff.zip
I wrote a patch to cover the expectations. See the xdoc documentation for
details.
By the way, let me point out one thing related to Groovy:
- Currently, Groovy has some problems on dealing with library classes built
by Java 1.5 or later. There are many bug reports related to this problem.
("GroovyReflector" problems)
For example, if jetspeed-api-2.x.jar is compiled with Java 1.5 or later,
then Groovy script portlet with header phase fails to invoke
response.getHeaderResource(). Groovy throws a ClassCastException here.
However, this problem is not related to the JVM 1.5 or later runtime.
(Probably, it is a Groovy issue related to Java class target version.)
So, if jetspeed-api-2.x jar is compiled with Java 1.4 or earlier, then
there's no problem.
Anyway, I believe this problem will be fixed sooner or later.
> 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
> Reporter: Woonsan Ko
> Priority: Minor
> 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]