You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "B.S.Navin (JIRA)" <ta...@jakarta.apache.org> on 2006/04/05 06:48:55 UTC

[jira] Created: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
----------------------------------------------------------------------------------------------------------

         Key: TAPESTRY-906
         URL: http://issues.apache.org/jira/browse/TAPESTRY-906
     Project: Tapestry
        Type: Improvement

  Components: Framework  
    Versions: 4.0.1    
    Reporter: B.S.Navin
    Priority: Minor


I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.

OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.

Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.

It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Assigned: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-906?page=all ]

Andreas Andreou reassigned TAPESTRY-906:
----------------------------------------

    Assignee:     (was: Andreas Andreou)

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>            Priority: Minor
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-906?page=all ]

Andreas Andreou reassigned TAPESTRY-906:
----------------------------------------

    Assign To: Andreas Andreou

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-906
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-906
>      Project: Tapestry
>         Type: Improvement

>   Components: Framework
>     Versions: 4.0.1
>     Reporter: B.S.Navin
>     Assignee: Andreas Andreou
>     Priority: Minor

>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "B.S.Navin (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-906?page=comments#action_12438633 ] 
            
B.S.Navin commented on TAPESTRY-906:
------------------------------------

I have tried out a custom NullHandler. But the problem is that i can't get a context as to whether the actual operation is a "set" or a "get".

I need this so that I can decide whether to just return a new instance of the required type or to also set it back into the null property.

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>         Assigned To: Andreas Andreou
>            Priority: Minor
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-906?page=comments#action_12414777 ] 

Andreas Andreou commented on TAPESTRY-906:
------------------------------------------

Could a custom NullHandler ( see http://issues.apache.org/jira/browse/TAPESTRY-929 ) 
help in this case ?


> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-906
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-906
>      Project: Tapestry
>         Type: Improvement

>   Components: Framework
>     Versions: 4.0.1
>     Reporter: B.S.Navin
>     Assignee: Andreas Andreou
>     Priority: Minor

>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-906?page=all ]

Jesse Kuhnert updated TAPESTRY-906:
-----------------------------------

    Fix Version/s: 4.1.2

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-906:
-----------------------------------

    Fix Version/s:     (was: 4.1.5)
                   4.1.6

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>            Priority: Minor
>             Fix For: 4.1.6
>
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-906:
-----------------------------------

    Fix Version/s:     (was: 4.1.3)
                   4.1.4

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>            Priority: Minor
>             Fix For: 4.1.4
>
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-906:
------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>            Priority: Minor
>             Fix For: 4.1.7
>
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-906) Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-906:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

> Make the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method public/protected
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-906
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-906
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.0.1
>            Reporter: B.S.Navin
>            Priority: Minor
>             Fix For: 4.1.3
>
>
> I have my own OGNL property accessor to handle nulls in my object graph. But I have some logic in it, which needs to know if the root ognl operation was a set/get.
> OGNL provides a feature called "traceEvaluations" in which we call "setTraceEvaluations(true)" on the OgnlContext and the property accessor is provided with the evaluation. Using this evaaluation, it is possible to find if the root ognl operation was a set/get.
> Tapestry creates the OgnlContext in the org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.createContext() method. As it is currently private, I had no choice but to duplicate the class source in my own class, add the required line and replace it as the implementation of the ExpressionEvaluator service.
> It would be good if it is made protected/public. Then I can subclass it / intercept the createContext() method and do my stuff.

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org