You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jonathan Carlson <jo...@yahoo.com> on 2001/10/24 18:08:52 UTC

FluxTool.java

I am new to Pull Tools and am looking at the FluxTool.java class.  (TDK 2.1)

1) Why is this a request-scope tool?  Wouldn't it be better to keep it 
as a session-scope tool since it will be accessed a lot?  Maybe this is 
moot since request-scope instances are pooled, but I thought I'd ask 
anyways since there may be another good reason that I'm missing.

2) The /turbine-2/services/pull-service.html document says that the 
init() method for request-scope tools should set the instance fields to 
null since the tool instances are pooled for reuse.  Was it an oversite 
that this wasn't done in the FluxTool?

    private RunData data;
    private Group group = null;
    private Role role = null;
    private Permission permission = null;
    private User user = null;

    public void init(Object data)
    {
        this.data = (RunData)data;
    }

Thanks!

Jonathan
joncrlsn@users.sf.net


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Re: FluxTool.java not working?

Posted by Jason van Zyl <jv...@zenplex.com>.
On 10/29/01 10:36 AM, "Jonathan Carlson" <jo...@yahoo.com> wrote:

> Has anyone used the TDK 2.1 FluxTool in a velocity page?

I test it everytime I make the TDK which is everyday at some point.
I haven't seen any problems with it.
 
> After the initial login $flux.getUser() always returns an empty User
> instance for me instead of the logged in user.  Is this a bug or likely
> something I'm doing wrong?  Thanks in advance for any advice.

Where exactly are you seeing the problem, I'll try to track it down if you
send the specifics. I'm not sure what you mean by empty user, you mean an
anonymous user?

 
> Jonathan Carlson
> joncrlsn@users.sf.net
> 
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


FluxTool.java not working?

Posted by Jonathan Carlson <jo...@yahoo.com>.
Has anyone used the TDK 2.1 FluxTool in a velocity page?  

After the initial login $flux.getUser() always returns an empty User 
instance for me instead of the logged in user.  Is this a bug or likely 
something I'm doing wrong?  Thanks in advance for any advice.  

Jonathan Carlson
joncrlsn@users.sf.net



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>