Re: How to create a custom profiling rule?

2004-12-29 Thread David Sean Taylor
On Dec 29, 2004, at 9:25 AM, Marina wrote:
Randy, thanks a lot for your answer!
Do you know if there are plans to implement role-based
(and group-based) profiling in the future J2 releases?
I would think that role-based profiling is very
critical for real applications.
You can setup the default rule to use a role-based algorithm, or you 
can assigned users to use a specific role algorithm
So its not like there isn't role-based profiling in the system -- its 
pretty well supported, but not in the manner you are suggesting.


With the default global profiling, does it mean that
the profiling rule assigned to '*' users is used
UNLESS a different rule is assigned to specific users?
yes
take a look at the admin profiling portlet, and the user admin portlet
you can configure all profiling  (no need to edit the tables) via the 
admin portlets although I admit its a bit difficult without any 
documentation

Or does  it apply to all users regardless of other
assignments?
Thanks,
Marina
--- Randy Watler <[EMAIL PROTECTED]> wrote:
Marina,
David is the Profiler Master, so he is much more
qualified to explain its
configuration and inner workings. The source is in
components/profiler.
See comments below...
 It seems that profiling rules are assigned to the
users based on the user names.
Yes.
At least this is what I
see in the PRINCIPAL_RULE_ASSOC table - I created a
new user, 'dce_admin', and assigned a 'security'
profiling rule to it, and the ("dce_admin", "page",
"security") values got inserted into the
PRINCIPAL_RULE_ASSOC table.
Just FYI, the locator/rule name "security" has
special meaning in J2... you
might want to pick another name for your custom rule
to avoid confusion. The
"security" locator/rule is used when a user has an
expired password and must
select a new one. See details in the archives of the
dev list.
 Now my question: how could I assign a profiling
rule
to a rolename, not a username?
For example, I might want all users with the
'dce_admin_role'  role to use the 'security' rule.
We have discussed this, but it is not been
implemented yet. There is a
global default mechanism in place: if you specify a
PRINCIPAL_RULE_ASSOC
entry with a username of '*", it will be used for
all users. This feature
may not be implemented in this way in the future,
but there certainly will
be some other way to do the same thing.
Randy


__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please Help......Customize Portlet

2004-12-29 Thread Andy . Sun
I am assuming that you want to put different strings in the option part of
html select tag. Those strings will be retrieved from database.
In your action class, you can execute the query and get a result set. Store
the string from the result set in a Vector object. Then save the vector in
the session object. Before you run the query, you should check if this
vector is populated already so you only need to run the query once for each
session (for performance reason).
Then in your presentation layer(vm/jsp), retrieve the vector in the session
and iterate through the vector to create the option tags.
Check out the code for the DatabaseBrowser portlet in the jetspeed
distribution. You should be able to find a similar implementation.
Andy


-Original Message-
From: angeloimm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 2:10 AM
To: Jetspeed Jetspeed
Subject: Please Help..Customize Portlet
Importance: High


Hi all; i have a little problem. I have written a my GenericMVCAction that
works on a GenericMVCPortlet. Al works fine; now when i log in as admin i
can customize my portlet and i can set different parameters; now let's
imagine that i want to use a html tag http://www.libero.it




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Parameters

2004-12-29 Thread RaphaÃl Luta
Carlos Torres wrote:
I tried to change the encoder in the jsp, the JetspeedResources.properties
and the tomcat web.xml and i got the same problem. When I ahcnge it to UTF8
the value received change but it is so strange too. Do you know which
encoding support all characters? How to make it run...
 

Strange... JS1.5 supports localization pretty well so I guess you should 
check your custom code
and possibly DB setup for encoding issues.

Also chek your browser encoding settings when accessing the portal page, 
it should be automatically
set to UTF-8 (you can also get the encoding information of a web page 
through the Page Info or
Properties dialog of yoru browser.

--
RaphaÃl Luta - [EMAIL PROTECTED]
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Portelt Framework

2004-12-29 Thread Aleksandr Vushkan
 Hello, guru
> What framework for develope portlets we are use?
> How you are  check your portlets before deloployment?
> and validete for JSR168?
Can I use Eclipse for development?
(tomcat + JS2.0)


[EMAIL PROTECTED]
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to create a custom profiling rule?

2004-12-29 Thread Marina
Randy, thanks a lot for your answer!

Do you know if there are plans to implement role-based
(and group-based) profiling in the future J2 releases?
I would think that role-based profiling is very
critical for real applications. 

With the default global profiling, does it mean that
the profiling rule assigned to '*' users is used
UNLESS a different rule is assigned to specific users?
Or does  it apply to all users regardless of other
assignments?

Thanks,
Marina

--- Randy Watler <[EMAIL PROTECTED]> wrote:

> Marina,
> 
> David is the Profiler Master, so he is much more
> qualified to explain its
> configuration and inner workings. The source is in
> components/profiler.
> 
> See comments below... 
> 
> >  It seems that profiling rules are assigned to the
> >users based on the user names.
> 
> Yes.
> 
> > At least this is what I
> >see in the PRINCIPAL_RULE_ASSOC table - I created a
> >new user, 'dce_admin', and assigned a 'security'
> >profiling rule to it, and the ("dce_admin", "page",
> >"security") values got inserted into the
> >PRINCIPAL_RULE_ASSOC table.
> 
> Just FYI, the locator/rule name "security" has
> special meaning in J2... you
> might want to pick another name for your custom rule
> to avoid confusion. The
> "security" locator/rule is used when a user has an
> expired password and must
> select a new one. See details in the archives of the
> dev list.
>   
> >  Now my question: how could I assign a profiling
> rule
> >to a rolename, not a username? 
> >For example, I might want all users with the
> >'dce_admin_role'  role to use the 'security' rule.
> 
> We have discussed this, but it is not been
> implemented yet. There is a
> global default mechanism in place: if you specify a
> PRINCIPAL_RULE_ASSOC
> entry with a username of '*", it will be used for
> all users. This feature
> may not be implemented in this way in the future,
> but there certainly will
> be some other way to do the same thing.
> 
> Randy
> 



__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Portelt Framework

2004-12-29 Thread Boudewijn van Weert \(Valbosoft, S.L.\)

Acuse de recibo
   
SuAW: Portelt Framework
document   
o: 
   
Ha sido   Boudewijn van Weert/srvNotes 
recibido   
por:   
   
Con   29/12/2004 18.13.43  
fecha: 
   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Portelt Framework

2004-12-29 Thread apache
Hello, we use Jetspeed 1.4 to organize our stocks :)

-Ursprüngliche Nachricht-
Von: Aleksandr Vushkan [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 29. Dezember 2004 18:04
An: Jetspeed Users List
Betreff: Portelt Framework


Hello, guru
What framework for develope portlets we are use?
How you are  check your portlets before deloployment?
and validete for JSR168?

Thanks for questions.
--
Best wishes
Aleksandr
[EMAIL PROTECTED]
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Portelt Framework

2004-12-29 Thread Aleksandr Vushkan
Hello, guru
What framework for develope portlets we are use?
How you are  check your portlets before deloployment?
and validete for JSR168?

Thanks for questions.
--
Best wishes
Aleksandr
[EMAIL PROTECTED]
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Parameters

2004-12-29 Thread Carlos Torres
I tried to change the encoder in the jsp, the JetspeedResources.properties
and the tomcat web.xml and i got the same problem. When I ahcnge it to UTF8
the value received change but it is so strange too. Do you know which
encoding support all characters? How to make it run...

Thanks.

Carlos Torres.


- Original Message - 
From: "RaphaÃl Luta" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" 
Sent: Wednesday, December 29, 2004 9:02 AM
Subject: Re: Page Parameters


> Carlos Torres wrote:
>
> >Hi people,
> >
> >I have been problems in the parameters getted in my portlet classs. When
I pass a value with special caracters(Ã,Ã,Ã, etc) it is received with
problems.
> >For Example: When I send a parameter with the word 'alteraÃÃo', it is
received as 'AlteraâÂâÃo'
> >
> >
> >
> Jetspeed defaults to UTF8 encoding so the latter form you recieve is
normal.
> However, somewhere in your processing chain you assume the UTF8
> character is iso8859-1 and thus get an error.
> This can happen in the DB settings, Java string generation, etc...
>
> If you're sure *never* to mix iso8859 characters with non iso chars, you
> can modify the default Jetspeed properties
> (conf/JetspeedResources.properties) to set the default encoding to
> whatever fits your need.
>
> -- 
> RaphaÃl Luta - [EMAIL PROTECTED]
> Apache Portals - Enterprise Portal in Java
> http://portals.apache.org/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Parameters

2004-12-29 Thread RaphaÃl Luta
Carlos Torres wrote:
Hi people,
I have been problems in the parameters getted in my portlet classs. When I pass a value with special caracters(Ã,Ã,Ã, etc) it is received with problems. 
For Example: When I send a parameter with the word 'alteraÃÃo', it is received as 'AlteraâÂâÃo'

 

Jetspeed defaults to UTF8 encoding so the latter form you recieve is normal.
However, somewhere in your processing chain you assume the UTF8 
character is iso8859-1 and thus get an error.
This can happen in the DB settings, Java string generation, etc...

If you're sure *never* to mix iso8859 characters with non iso chars, you 
can modify the default Jetspeed properties
(conf/JetspeedResources.properties) to set the default encoding to 
whatever fits your need.

--
RaphaÃl Luta - [EMAIL PROTECTED]
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Page Parameters

2004-12-29 Thread Carlos Torres
Hi people,

I have been problems in the parameters getted in my portlet classs. When I pass 
a value with special caracters(Ã,Ã,Ã, etc) it is received with problems. 
For Example: When I send a parameter with the word 'alteraÃÃo', it is 
received as 'AlteraâÂâÃo'

If somebody already got this problem, please, help me.

Thanks

Regards,
 
   Carlos Alberto Torres
Web Solutions Consultant
MCN Technology & Consulting
  SÃo Paulo - SP - Brasil
  www.mcn.com.br


Please Help......Customize Portlet

2004-12-29 Thread angeloimm
Hi all; i have a little problem. I have written a my GenericMVCAction that 
works on a GenericMVCPortlet. Al works fine; now when i log in as admin i can 
customize my portlet and i can set different parameters; now let's imagine that 
i want to use a html tag http://www.libero.it




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jetspeed-api-2.0-M2-dev.jar

2004-12-29 Thread Christopher Lim
Just run maven again. It will be created the second time around.

-- 
Chris


On Thu, 23 Dec 2004 07:59:53 +0200, News Hunter <[EMAIL PROTECTED]> wrote:
> building process of j2 cvs tries to download jetspeed-api-2.0-M2-dev.jar but
> it is failed. where can i find this file?
> 
> ---
> -News Hunter-
> ---
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]