Portlet security-ref

2004-07-02 Thread cyaconi
Hi!
Is there any way to configure the portlet security-ref in the admin 
console??
I can configure the security-ref for panes only.

Thank you.

RE: Template question

2004-07-01 Thread cyaconi
Jeremy, I think I finally found the error!!!
To call the doAddLink event, I'm using a button with a javascript call on 
the onclick:

...

function updateLinks() { window.location = 
'$jslink.addQueryData("js_peid", 
$portlet.ID).addQueryData("eventSubmit_doAddlinks", "1")'; }

...

but this javascript code was embedded inside this form:


...


And I removed the getAction() from the "action" part of the form, and it 
finally works!

Very very thanks for your help, it was really helpful!!
 
Best Regards,
Carlos.





"Jeremy Ford" <[EMAIL PROTECTED]> 
01-07-2004 14:55
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Asunto
RE: Template question






Send the vms and the xreg first.  Also, if you could, sent the parent 
Portlets xreg fragment (if there is one).

Jeremy


>From: [EMAIL PROTECTED]
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Subject: RE: Template question
>Date: Thu, 1 Jul 2004 13:05:43 -0400
>
>Jeremy, first of all, thank you for the time expending in my problem.
>I did exactly what you say, and your example works perfect, but when I
>replicate your coding to my app, it still failed. It's a very strange
>problem;  I've been checked a lot of times my code, and can't find the
>problem.
>Can I send you my whole files to see if you find my mistake??
>
>Thank you very much!
>
>
>
>
>"Jeremy Ford" <[EMAIL PROTECTED]>
>30-06-2004 19:43
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>"'Jetspeed Users List'" <[EMAIL PROTECTED]>
>cc
><[EMAIL PROTECTED]>
>Asunto
>RE: Template question
>
>
>
>
>
>
>Here, try the following:
>
>Place the 2 vm files in your portlets/html directory.
>
>Use the following xreg entry:
>
>application="false"
>parent="Velocity">
> 
> MVC Test
> Test MVC
> 
> 
> 
> hidden="true"/>
> 
> search
> 
>
>Use this action:
>
>package org.apache.jetspeed.modules.actions.portlets;
>
>import org.apache.jetspeed.portal.portlets.VelocityPortlet;
>import org.apache.turbine.util.RunData;
>import org.apache.velocity.context.Context;
>
>public class TestMVCAction extends VelocityPortletAction {
>  protected void buildNormalContext(VelocityPortlet
>portlet, Context
>context,
>  RunData rundata) throws
>Exception {
>
>  context.put("bnc", "BNC: works");
>  }
>
>  public void doEdit(RunData rundata, Context context)
> {
>  this.setTemplate(rundata, "test2", 
true);
> }
>
>  public void doAddlinks(RunData rundata, Context 
context)
>{
>  context.put("links", "5");
>  }
>
>}
>
>Does this work for?  Does it work how you expected it too?
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 30, 2004 4:29 PM
>To: Jetspeed Users List
>Subject: Re: Template question
>
>I'm using Jetspeed 1.5.
>
>
>
>
>
>"Jeremy Ford" <[EMAIL PROTECTED]>
>30-06-2004 15:52
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>[EMAIL PROTECTED]
>cc
>[EMAIL PROTECTED]
>Asunto
>Re: Template question
>
>
>
>
>
>
>Sorry if you've answered this before, but what version of Jetspeed are 
you
>
>
>using?  If you are using 1.4b4 or earlier, then you need to explicitly
>call
>buildNormalContext.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
> >From: [EMAIL PROTECTED]
> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >Subject: Re: Template question
> >Date: Wed, 30 Jun 2004 11:55:50 -0400
> >
> >Jeremy, the URL doesn't specified the action, only the event...
> >
> >After a few tries, finally I could display the template as I wished. 
This
> >is what I did:
> >
> >In the doEdit event method, the line where I set the template, changes
> >from:
> >
> >setTemplate(rundata, "addArticle");
> >setTemplate(rundata, "addArticle", true);
> >
> >BUT
> >
> >when I call the doAddLinks event from the addArticle template, the data
> >putted in context isn't read in the next render of the addArticle
> >template.
> >
> >What could be wrong??
> >
> >Regards.
> >
> >
> >
> >
> >"Jeremy Ford" <[EMAIL PROTECTED]>
> >29-06-2004 13:31
> >Por favor, responda a
> >"Jetspeed Users List" <[EMAIL PROTECTED]>
> >
> >
> >Para
> >[EMAIL PROTECTED]
> >cc
> >
> >Asunto
> >Re: Template question
> >
> >
> >
> >
> >
> >
> >What does the url look like that executes the event?  If the action is
> >specified, try removing it.
> >
> >Jeremy Ford
> >[EMAIL PROTECTED]
> >
> >
> > >From: [EMAIL PROTECTED]
> > >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> > >To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> > >Subject: Re: Template question
> > >Dat

RE: Template question

2004-07-01 Thread cyaconi
Jeremy, first of all, thank you for the time expending in my problem.
I did exactly what you say, and your example works perfect, but when I 
replicate your coding to my app, it still failed. It's a very strange 
problem;  I've been checked a lot of times my code, and can't find the 
problem.
Can I send you my whole files to see if you find my mistake??

Thank you very much!




"Jeremy Ford" <[EMAIL PROTECTED]> 
30-06-2004 19:43
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
"'Jetspeed Users List'" <[EMAIL PROTECTED]>
cc
<[EMAIL PROTECTED]>
Asunto
RE: Template question






Here, try the following:

Place the 2 vm files in your portlets/html directory.

Use the following xreg entry:



MVC Test
Test MVC





search


Use this action:

package org.apache.jetspeed.modules.actions.portlets;

import org.apache.jetspeed.portal.portlets.VelocityPortlet;
import org.apache.turbine.util.RunData;
import org.apache.velocity.context.Context;

public class TestMVCAction extends VelocityPortletAction {
 protected void buildNormalContext(VelocityPortlet 
portlet, Context
context,
 RunData rundata) throws 
Exception {
 
 context.put("bnc", "BNC: works");
 }
 
 public void doEdit(RunData rundata, Context context)
{
 this.setTemplate(rundata, "test2", true);
}
 
 public void doAddlinks(RunData rundata, Context context) 
{
 context.put("links", "5");
 }

}

Does this work for?  Does it work how you expected it too?

Jeremy Ford
[EMAIL PROTECTED]




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 4:29 PM
To: Jetspeed Users List
Subject: Re: Template question

I'm using Jetspeed 1.5.





"Jeremy Ford" <[EMAIL PROTECTED]> 
30-06-2004 15:52
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Asunto
Re: Template question






Sorry if you've answered this before, but what version of Jetspeed are you 


using?  If you are using 1.4b4 or earlier, then you need to explicitly 
call 
buildNormalContext.

Jeremy Ford
[EMAIL PROTECTED]


>From: [EMAIL PROTECTED]
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Subject: Re: Template question
>Date: Wed, 30 Jun 2004 11:55:50 -0400
>
>Jeremy, the URL doesn't specified the action, only the event...
>
>After a few tries, finally I could display the template as I wished. This
>is what I did:
>
>In the doEdit event method, the line where I set the template, changes
>from:
>
>setTemplate(rundata, "addArticle");
>setTemplate(rundata, "addArticle", true);
>
>BUT
>
>when I call the doAddLinks event from the addArticle template, the data
>putted in context isn't read in the next render of the addArticle
>template.
>
>What could be wrong??
>
>Regards.
>
>
>
>
>"Jeremy Ford" <[EMAIL PROTECTED]>
>29-06-2004 13:31
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>[EMAIL PROTECTED]
>cc
>
>Asunto
>Re: Template question
>
>
>
>
>
>
>What does the url look like that executes the event?  If the action is
>specified, try removing it.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
> >From: [EMAIL PROTECTED]
> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >Subject: Re: Template question
> >Date: Tue, 29 Jun 2004 10:07:53 -0400
> >
> >Any ideas???
> >
> >
> >
> >
> >
> >[EMAIL PROTECTED]
> >25-06-2004 16:11
> >Por favor, responda a
> >"Jetspeed Users List" <[EMAIL PROTECTED]>
> >
> >
> >Para
> >[EMAIL PROTECTED]
> >cc
> >
> >Asunto
> >Template question
> >
> >
> >
> >
> >
> >
> >Hi.. I'll try to explain my problem... hope you can undertand it.
> >I've a VelocityPortlet with his default template. This template shows a
> >list of articles already stored in the db, and has a link to add a new
> >one: $jslink?eventSubmit_doEdit=
> >
> >This method (doEdit) only set a template wich has the input fields:
> >
> > public void doEdit(RunData rundata, Context context) throws
>Exception
> >{
> > String id = rundata.getParameters().getString(ID);
> > if (id!=null){
> > ArticlesManager mng = new ArticlesManager();
> > Article article = mng.getArticle(new
> >Long(id).longValue());
> > context.put("article", article);
> > }
> > context.put("totalLinks", new Integer(0));
> > setTemplate(rundata, "addArticle");
> > }
> >
> >Until here, everything goes fine...
> >
> >My problem is that I need to send some info from this template
>(addArticle
> >
> >- not the default) and come back to the same template, and always,
>despite
> >
> >

Re: Template question

2004-06-30 Thread cyaconi
I'm using Jetspeed 1.5.





"Jeremy Ford" <[EMAIL PROTECTED]> 
30-06-2004 15:52
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc
[EMAIL PROTECTED]
Asunto
Re: Template question






Sorry if you've answered this before, but what version of Jetspeed are you 

using?  If you are using 1.4b4 or earlier, then you need to explicitly 
call 
buildNormalContext.

Jeremy Ford
[EMAIL PROTECTED]


>From: [EMAIL PROTECTED]
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Subject: Re: Template question
>Date: Wed, 30 Jun 2004 11:55:50 -0400
>
>Jeremy, the URL doesn't specified the action, only the event...
>
>After a few tries, finally I could display the template as I wished. This
>is what I did:
>
>In the doEdit event method, the line where I set the template, changes
>from:
>
>setTemplate(rundata, "addArticle");
>setTemplate(rundata, "addArticle", true);
>
>BUT
>
>when I call the doAddLinks event from the addArticle template, the data
>putted in context isn't read in the next render of the addArticle
>template.
>
>What could be wrong??
>
>Regards.
>
>
>
>
>"Jeremy Ford" <[EMAIL PROTECTED]>
>29-06-2004 13:31
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>[EMAIL PROTECTED]
>cc
>
>Asunto
>Re: Template question
>
>
>
>
>
>
>What does the url look like that executes the event?  If the action is
>specified, try removing it.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
> >From: [EMAIL PROTECTED]
> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >Subject: Re: Template question
> >Date: Tue, 29 Jun 2004 10:07:53 -0400
> >
> >Any ideas???
> >
> >
> >
> >
> >
> >[EMAIL PROTECTED]
> >25-06-2004 16:11
> >Por favor, responda a
> >"Jetspeed Users List" <[EMAIL PROTECTED]>
> >
> >
> >Para
> >[EMAIL PROTECTED]
> >cc
> >
> >Asunto
> >Template question
> >
> >
> >
> >
> >
> >
> >Hi.. I'll try to explain my problem... hope you can undertand it.
> >I've a VelocityPortlet with his default template. This template shows a
> >list of articles already stored in the db, and has a link to add a new
> >one: $jslink?eventSubmit_doEdit=
> >
> >This method (doEdit) only set a template wich has the input fields:
> >
> > public void doEdit(RunData rundata, Context context) throws
>Exception
> >{
> > String id = rundata.getParameters().getString(ID);
> > if (id!=null){
> > ArticlesManager mng = new ArticlesManager();
> > Article article = mng.getArticle(new
> >Long(id).longValue());
> > context.put("article", article);
> > }
> > context.put("totalLinks", new Integer(0));
> > setTemplate(rundata, "addArticle");
> > }
> >
> >Until here, everything goes fine...
> >
> >My problem is that I need to send some info from this template
>(addArticle
> >
> >- not the default) and come back to the same template, and always,
>despite
> >
> >of explicity set the template in the event method, the flow of the
> >application goes to the default template.
> >
> >This is the event I'm calling:
> >
> > public void doAddlinks(RunData rundata, Context context) 
throws
> >Exception {
> > ...
> > int totalLinks =
>rundata.getParameters().getInt("totalLinks",
> >0);
> >
> > ...
> >
> > context.put("totalLinks", new Integer(totalLinks));
> > setTemplate(rundata, "addArticle");
> > }
> >
> >please, any help would be very appreciated.
> >
> >regards,
> >Carlos.
> >
> >
>
>_
>MSN Movies - Trailers, showtimes, DVD's, and the latest news from
>Hollywood!
>http://movies.msn.click-url.com/go/onm00200509ave/direct/01/
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

_
FREE pop-up blocking with the new MSN Toolbar ? get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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




Re: Template question

2004-06-30 Thread cyaconi
Jeremy, the URL doesn't specified the action, only the event... 

After a few tries, finally I could display the template as I wished. This 
is what I did:

In the doEdit event method, the line where I set the template, changes 
from:

setTemplate(rundata, "addArticle");
setTemplate(rundata, "addArticle", true);

BUT

when I call the doAddLinks event from the addArticle template, the data 
putted in context isn't read in the next render of the addArticle 
template.

What could be wrong??

Regards.




"Jeremy Ford" <[EMAIL PROTECTED]> 
29-06-2004 13:31
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Re: Template question






What does the url look like that executes the event?  If the action is 
specified, try removing it.

Jeremy Ford
[EMAIL PROTECTED]


>From: [EMAIL PROTECTED]
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Subject: Re: Template question
>Date: Tue, 29 Jun 2004 10:07:53 -0400
>
>Any ideas???
>
>
>
>
>
>[EMAIL PROTECTED]
>25-06-2004 16:11
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>[EMAIL PROTECTED]
>cc
>
>Asunto
>Template question
>
>
>
>
>
>
>Hi.. I'll try to explain my problem... hope you can undertand it.
>I've a VelocityPortlet with his default template. This template shows a
>list of articles already stored in the db, and has a link to add a new
>one: $jslink?eventSubmit_doEdit=
>
>This method (doEdit) only set a template wich has the input fields:
>
> public void doEdit(RunData rundata, Context context) throws 
Exception
>{
> String id = rundata.getParameters().getString(ID);
> if (id!=null){
> ArticlesManager mng = new ArticlesManager();
> Article article = mng.getArticle(new
>Long(id).longValue());
> context.put("article", article);
> }
> context.put("totalLinks", new Integer(0));
> setTemplate(rundata, "addArticle");
> }
>
>Until here, everything goes fine...
>
>My problem is that I need to send some info from this template 
(addArticle
>
>- not the default) and come back to the same template, and always, 
despite
>
>of explicity set the template in the event method, the flow of the
>application goes to the default template.
>
>This is the event I'm calling:
>
> public void doAddlinks(RunData rundata, Context context) throws
>Exception {
> ...
> int totalLinks = 
rundata.getParameters().getInt("totalLinks",
>0);
>
> ...
>
> context.put("totalLinks", new Integer(totalLinks));
> setTemplate(rundata, "addArticle");
> }
>
>please, any help would be very appreciated.
>
>regards,
>Carlos.
>
>

_
MSN Movies - Trailers, showtimes, DVD's, and the latest news from 
Hollywood! 
http://movies.msn.click-url.com/go/onm00200509ave/direct/01/


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




Re: Interportlet communication

2004-06-30 Thread cyaconi
I've implemented something similar, but the heading and the content of the 
news are presented in the same portlet. The VelocityPortlet has something 
like this:

#if ($list)
//Implement the list of news heading display
#else
//Implement the selected news detail

and the $list value is managed from your action class.

If you find a better (or pretty) way to do the same, please let me know.

Regards,
Carlos.




Maruthi <[EMAIL PROTECTED]> 
30-06-2004 06:08
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED], [EMAIL PROTECTED]
cc

Asunto
Interportlet communication







Hello Everybody,

I have a JSP which is displaying the News Titles from mysql database.

When i click(titles should have a link) on a particular title the 
corresponding description of news should be displayed(from datbase) in a 
separete(another) portlet.

My Datbase is like this ::Table name -News

These are the columns in the news table ::

Title of News-Description of news-Date(News will be sorted by date)

I could display the JSP with news titles.I dont know how to manage 
interportlet communication (one JSP to another JSP)..can anybody give 
guidelines who had idea in this regard?.

Thank you,

Maruthi.

 


 
-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!


Re: Template question

2004-06-29 Thread cyaconi
Any ideas???





[EMAIL PROTECTED] 
25-06-2004 16:11
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Template question






Hi.. I'll try to explain my problem... hope you can undertand it.
I've a VelocityPortlet with his default template. This template shows a 
list of articles already stored in the db, and has a link to add a new 
one: $jslink?eventSubmit_doEdit=

This method (doEdit) only set a template wich has the input fields:
 
public void doEdit(RunData rundata, Context context) throws Exception 
{
String id = rundata.getParameters().getString(ID);
if (id!=null){
ArticlesManager mng = new ArticlesManager();
Article article = mng.getArticle(new 
Long(id).longValue());
context.put("article", article);
}
context.put("totalLinks", new Integer(0));
setTemplate(rundata, "addArticle");
}

Until here, everything goes fine...

My problem is that I need to send some info from this template (addArticle 

- not the default) and come back to the same template, and always, despite 

of explicity set the template in the event method, the flow of the 
application goes to the default template.

This is the event I'm calling:

public void doAddlinks(RunData rundata, Context context) throws 
Exception {
...
int totalLinks = rundata.getParameters().getInt("totalLinks", 
0);

... 

context.put("totalLinks", new Integer(totalLinks));
setTemplate(rundata, "addArticle");
}

please, any help would be very appreciated.

regards,
Carlos.




Template question

2004-06-25 Thread cyaconi
Hi.. I'll try to explain my problem... hope you can undertand it.
I've a VelocityPortlet with his default template. This template shows a 
list of articles already stored in the db, and has a link to add a new 
one: $jslink?eventSubmit_doEdit=

This method (doEdit) only set a template wich has the input fields:
 
public void doEdit(RunData rundata, Context context) throws Exception 
{
String id = rundata.getParameters().getString(ID);
if (id!=null){
ArticlesManager mng = new ArticlesManager();
Article article = mng.getArticle(new 
Long(id).longValue());
context.put("article", article);
}
context.put("totalLinks", new Integer(0));
setTemplate(rundata, "addArticle");
}

Until here, everything goes fine...

My problem is that I need to send some info from this template (addArticle 
- not the default) and come back to the same template, and always, despite 
of explicity set the template in the event method, the flow of the 
application goes to the default template.

This is the event I'm calling:

public void doAddlinks(RunData rundata, Context context) throws 
Exception {
...
int totalLinks = rundata.getParameters().getInt("totalLinks", 
0);

... 

context.put("totalLinks", new Integer(totalLinks));
setTemplate(rundata, "addArticle");
}

please, any help would be very appreciated.

regards,
Carlos.



Re: How to invoke Maximize button.

2004-06-22 Thread cyaconi
Did you solve this???... How??

Thank you!





"Sunil Sheshadri" <[EMAIL PROTECTED]> 
14-06-2004 02:42
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
"'Jetspeed Users List'" <[EMAIL PROTECTED]>
cc

Asunto
How to invoke Maximize button.






Hi,
I have velocity portlet built. In my vm, I have a link (more). On click of
link, the portlet has to be shown in maximized mode. How to achieve it?
Any code snippets? In action class what needs to be done??

Regards,
Sunil.



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




Re: Tips with groups and roles please

2004-06-21 Thread cyaconi
please, help with this.
Thanks!




[EMAIL PROTECTED] 
21-06-2004 11:29
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
"Jetspeed Users List" <[EMAIL PROTECTED]>
cc
[EMAIL PROTECTED]
Asunto
Re: Tips with groups and roles please






Trying to solve the problem, I found this code on the 
JetspeedProfilerService.fallbackProfile(RunData data, CapabilityMap cm):

//  Is it a group, role, or user resource?
//  It can only be one
String param = rundata.getParameters().getString( Profiler.PARAM_GROUP );

For me, always the param is a user. How can I change this to have the 
group of the user instead??

Thank you!.





[EMAIL PROTECTED] 
21-06-2004 10:52
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Tips with groups and roles please






Hi.
I'm building a portal for a huge organization, where the user management 
could be a very very time consuming work. Luckily, there isn't the need to 


personalize the portal for each user, though the personalization must be 
do it at group level.
Well, until here, my first question is, 
How can I do configure the psml fallback localization, to find the group 
of the user first and not the user itself??

Other thing is that  I want to validate how to design the groups and roles 


creation. Let me explain what I did:

The requirement says, explicitly, "we need to personalize the content of 
the portal at position level, namely, we must need to create groups of 
position, not of users, and assign permission to these groups".
To solve this, I take the decision to assign only one role to each user, 
wich represents the position on the organization. And create groups of 
roles.
Using the design of jetspeed, each user has a list of "grouproles", where 
each grouprole has the same "role" object, but a different "group" object.

Second question. Is this a good solution to the problem?, Could anybody 
give me tips on the direction to follow, please??

To finish, the common content to whole users must need to be configured at 


group level, because each user must see, at least, the same basic content 
after the login.

Thank you very much!!!



Re: Tips with groups and roles please

2004-06-21 Thread cyaconi
Trying to solve the problem, I found this code on the 
JetspeedProfilerService.fallbackProfile(RunData data, CapabilityMap cm):

//  Is it a group, role, or user resource?
//  It can only be one
String param = rundata.getParameters().getString( Profiler.PARAM_GROUP );

For me, always the param is a user. How can I change this to have the 
group of the user instead??

Thank you!.





[EMAIL PROTECTED] 
21-06-2004 10:52
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Tips with groups and roles please






Hi.
I'm building a portal for a huge organization, where the user management 
could be a very very time consuming work. Luckily, there isn't the need to 

personalize the portal for each user, though the personalization must be 
do it at group level.
Well, until here, my first question is, 
How can I do configure the psml fallback localization, to find the group 
of the user first and not the user itself??

Other thing is that  I want to validate how to design the groups and roles 

creation. Let me explain what I did:

The requirement says, explicitly, "we need to personalize the content of 
the portal at position level, namely, we must need to create groups of 
position, not of users, and assign permission to these groups".
To solve this, I take the decision to assign only one role to each user, 
wich represents the position on the organization. And create groups of 
roles.
Using the design of jetspeed, each user has a list of "grouproles", where 
each grouprole has the same "role" object, but a different "group" object.

Second question. Is this a good solution to the problem?, Could anybody 
give me tips on the direction to follow, please??

To finish, the common content to whole users must need to be configured at 

group level, because each user must see, at least, the same basic content 
after the login.

Thank you very much!!!


Tips with groups and roles please

2004-06-21 Thread cyaconi
Hi.
I'm building a portal for a huge organization, where the user management 
could be a very very time consuming work. Luckily, there isn't the need to 
personalize the portal for each user, though the personalization must be 
do it at group level.
Well, until here, my first question is, 
How can I do configure the psml fallback localization, to find the group 
of the user first and not the user itself??

Other thing is that  I want to validate how to design the groups and roles 
creation. Let me explain what I did:

The requirement says, explicitly, "we need to personalize the content of 
the portal at position level, namely, we must need to create groups of 
position, not of users, and assign permission to these groups".
To solve this, I take the decision to assign only one role to each user, 
wich represents the position on the organization. And create groups of 
roles.
Using the design of jetspeed, each user has a list of "grouproles", where 
each grouprole has the same "role" object, but a different "group" object.

Second question. Is this a good solution to the problem?, Could anybody 
give me tips on the direction to follow, please??

To finish, the common content to whole users must need to be configured at 
group level, because each user must see, at least, the same basic content 
after the login.

Thank you very much!!!

Re: instead of

2004-06-21 Thread cyaconi
Hi Stijn, I solve something similar using this code:





You just need to change the img source, and the href of the link.
Hope this help.

Regards,
Carlos




"Stijn de Witt" <[EMAIL PROTECTED]> 
21-06-2004 04:37
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
"Jetspeed Users List" <[EMAIL PROTECTED]>
cc

Asunto
 instead of 






Hi,

I am working on an entry form. I have succesfully placed a button on my 
form
using  and then caught the event in my portletaction.doThing().

I was wondering if (and how) I could achieve the same effect using an 
image
instead of a button?

Thanks,

-Stijn


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




Re: Help with the layout

2004-06-21 Thread cyaconi
This solve my problem, thank you very much!!





"Stijn de Witt" <[EMAIL PROTECTED]> 
19-06-2004 05:39
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
"Jetspeed Users List" <[EMAIL PROTECTED]>
cc

Asunto
Re: Help with the layout






Am I right in saying that the middle and right column are on the same
'page'? In that case, use a MenuController and on the menu pane set the
Layout to TwoColumns. This is easy to do with the customizer. Add a
MenuController, click Add Screen, Enter a name for the screen, press OK 
(or
whatever). You now see your page in a list. Select it. You see a combobox
with Layout options. Select (a variation of) TwoColumns. You can now add
portlets and put them in any of the two columns. Try it out...

-Stijn

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 19, 2004 12:47 AM
Subject: Help with the layout


> Hi.
> I'm just building the layout of my portal, but one of the requirements 
is
> that the portal must have 3 columns. The first one is just an index of
> contents (index of portlets), the second one is the content itself (the
> portlet). Until here, with a Menu Pane the problem is solved. But, the
> third column is a "utility column", in wich I must display the weather
> portlet, a scrolling news portlet, and maybe others. I don't know how to
> put this third column of portlets.
>
> In this scenario, What could be the best way to accomplish the required
> layout??
>
> Thank you very much!
>
> Regards,
> Carlos.


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




Help with the layout

2004-06-18 Thread cyaconi
Hi.
I'm just building the layout of my portal, but one of the requirements is 
that the portal must have 3 columns. The first one is just an index of 
contents (index of portlets), the second one is the content itself (the 
portlet). Until here, with a Menu Pane the problem is solved. But, the 
third column is a "utility column", in wich I must display the weather 
portlet, a scrolling news portlet, and maybe others. I don't know how to 
put this third column of portlets.

In this scenario, What could be the best way to accomplish the required 
layout?? 

Thank you very much!

Regards,
Carlos.

RE: How do you debug action classes in Jetspeed

2004-05-18 Thread cyaconi
Here: http://www.sysdeo.com/eclipse/tomcatPlugin.html you can downloaad a 
Tomcat plugin, wich helps a lot the debbuging process.





"Roshan G" <[EMAIL PROTECTED]> 
18-05-2004 17:34
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
RE: How do you debug action classes in Jetspeed






[1]  Start the JVM in debug mode.

If you are using Tomcat its as simple as adding the following line at the 
top of your catalina.bat file

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

(all in the same line)

Now start tomcat as usual.


[2] Get eclipse to connect to the JVM running tomcat.

(a) Debug --> Debug...
(b) Click on "Remote Java Application" in the left.
(c) In the dialog box select the eclipse project you want to debug.
(d) By default it should have localhost as HOST and 8000 as port.  If your 

Tomcat is in a different machine change it accordingly.

(e) Press Debug.

You should now see the usual eclipse Debug window. If you now set some 
breakpoints in your project code, it should stop there and you can debug 
as 
usual.

HTH

Roshan


>From: "alex" <[EMAIL PROTECTED]>
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
>Subject: RE: How do you debug action classes in Jetspeed
>Date: Sat, 15 May 2004 07:56:56 -0400
>
>Yes please a step-by-step example would be greatly appreciated.
>
>-Original Message-
>From: Jonathan Hawkins [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 18, 2004 4:45 AM
>To: 'Jetspeed Users List'
>Subject: RE: How do you debug action classes in Jetspeed
>
>I have just started using Eclipse, would you mind describing the steps
>involved, many thanks.
>
>Jon Hawkins
>

_
Want to block unwanted pop-ups? Download the free MSN Toolbar now! 
http://toolbar.msn.co.uk/


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




Re: How do you debug action classes in Jetspeed

2004-05-17 Thread cyaconi
I use Eclipse and it works perfectly




Michael Rothrock <[EMAIL PROTECTED]> 
17-05-2004 16:19
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
Jetspeed Users List <[EMAIL PROTECTED]>
cc

Asunto
Re: How do you debug action classes in Jetspeed






This works for me on a Linux box:

/usr/bin/dtomcat4 jpda start

Then I can attach to it with my debugger (IDEA) and set breakpoints, etc.

-- Michael

On 5/14/04 12:02 PM, "alex" <[EMAIL PROTECTED]> wrote:

> I am new to Jetspeed and can't seem to find a way to JIT debug the 
action
> classes. Any ideas would be greatly appreciated...
> Alex
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.671 / Virus Database: 433 - Release Date: 4/28/2004
> 
> 
> 
> -
> 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: Display DB image

2004-05-10 Thread cyaconi
Thanks for your help. Finally this is what I did:

public class GetArticleImage extends RawScreen {

protected String getContentType(RunData data){
return "image/jpeg";
}

protected void doOutput(RunData rundata) throws Exception {
try
{
ArticlesManager mng = new ArticlesManager();
long id = rundata.getParameters().getLong("id");
Article article = mng.getArticle(id);
rundata.getResponse().setHeader("Content-Disposition","inline 
filename=" + "img_"+System.currentTimeMillis()+".jpg");

ServletOutputStream out = 
rundata.getResponse().getOutputStream();

byte[] picData = article.getImage();
out.write(picData);
out.flush();
}
catch (Exception e)
{
e.printStackTrace();
}
}

}

and on my .vm file, the reference to this screen is:


Hope this help future same problems!!




Michael Rothrock <[EMAIL PROTECTED]> 
10-05-2004 14:23
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
Jetspeed Users List <[EMAIL PROTECTED]>
cc

Asunto
Re: Display DB image






Actually, the content type has already been set long before the portlet 
gets
called.  You need to start at the beginning of the render pipeline,
specifically with the screen.

You have to create your own screen.  Do this by extending
org.apache.turbine.modules.screens.RawScreen, implementing getContentType
and doOutput.  In getContentType, return the appropriate MIME string for
your content, and in doOutput toss out the raw bytes using the output 
stream
returned by the following call:
ServletOutputStream output = rundata.getResponse().getOutputStream();

I use a parameter on the URL to indicate which image I want when I invoke
the screen, i.e.:
http://localhost:8080/jetspeed/portal/screen/DownloadImage?image=1234

Both of the aforementioned methods grab the "image" parameter and use the
value as the key to find the image in the DB.  This is the URL that I use 
in
my  tag.  My screen is called Download image, so I generate this
URL in my action code like so:
DynamicURI download = new DynamicURI(rundata, "DownloadImage");
download.addQueryData(ZbAppConstants.APP_IMAGE_TAG, imageID);

Oh, and just as an aside, you probably want read and cache the entire DB 
row
that contains the image in the call to getContentType as this will save 
you
a round trip to the DB.

I believe that you also have to do some stuff with your
TurbineResources.properties files, but I don't recall exactly what.  I'll
leave that as an exercise for the reader.

-- Michael

On 5/10/04 10:19 AM, "Stuart Belden" <[EMAIL PROTECTED]> wrote:

> Have a servlet that fetches the data from the db and streams it?  Set
> the content type in the response to image/jpeg or whatever and in your
> html do: 
> 
> hth,
> stu
> 
 [EMAIL PROTECTED] 05/07/04 04:37PM >>>
> Hi.
> Actually  I'm storing images on the DB. Until there, everything is OK.
> The 
> problem is displaying it again in the browser.
> In the mailing list I found something like implement a RawScreen from
> Turbine, but I didn't understand it...
> Does anybody knows how can I display a java byte[] data as a jpg on the
> 
> browser???
> 
> Thank you very much!!
> 
> Carlos.
> 
> 
> -
> 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]




Display DB image

2004-05-07 Thread cyaconi
Hi.
Actually  I'm storing images on the DB. Until there, everything is OK. The 
problem is displaying it again in the browser.
In the mailing list I found something like implement a RawScreen from 
Turbine, but I didn't understand it...
Does anybody knows how can I display a java byte[] data as a jpg on the 
browser???

Thank you very much!!

Carlos.

Re: VelocityPortlet Set to MAXIMIZE mode

2004-05-06 Thread cyaconi
Now it's working perfect.. THANK YOU VERY MUCH JEREMY!!

And just to know... when do I use the action parameter??




"Jeremy Ford" <[EMAIL PROTECTED]> 
06-05-2004 15:16
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Re: VelocityPortlet Set to MAXIMIZE mode






The link should look like:

http://127.0.0.1/intranet/portal/media-type/html/user/anon/page/default.psml?idArticulo=7&eventSubmit_doDetalle=


Do not pass the action parameter.

Jeremy Ford
[EMAIL PROTECTED]



>From: [EMAIL PROTECTED]
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Subject: Re: VelocityPortlet Set to MAXIMIZE mode
>Date: Thu, 6 May 2004 14:44:19 -0400
>
>What do you mean with "the link that you use to fire you action should 
not
>include the action in the url"?.
>If I not include the action, How can jetspeed know wich do method 
must
>execute?
>
>This is the URL I'm invoking:
>http://127.0.0.1/intranet/portal/media-type/html/user/anon/page/default.psml?action=ArticulosPortletsAction&idArticulo=7&eventSubmit_doDetalle=
>
>Thank you Jeremy.
>
>
>
>
>"Jeremy Ford" <[EMAIL PROTECTED]>
>06-05-2004 13:34
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>[EMAIL PROTECTED]
>cc
>
>Asunto
>Re: VelocityPortlet Set to MAXIMIZE mode
>
>
>
>
>
>
>If you are using then GenericMVC action/portlets, then the link that you
>use
>to fire you action should not include the action in the url.  Jetspeed
>will
>automatically run the action in your portlet.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
> >From: [EMAIL PROTECTED]
> >Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >To: "Jetspeed Users List" <[EMAIL PROTECTED]>
> >Subject: Re: VelocityPortlet Set to MAXIMIZE mode
> >Date: Thu, 6 May 2004 13:25:31 -0400
> >
> >Making a "dirty" play with session variables, I'm controling the flow,
>but
> >my problem now is that the object that was put in context in the doXXX
> >method, aren't there when the buildNormalContext() is called again, so
>the
> >template can't render it...
> >
> >What could be happening!??
> >
> >Please, any help is welcomed.
> >
> >Thank you.
> >
> >
> >
> >
> >"Stuart Belden" <[EMAIL PROTECTED]>
> >06-05-2004 08:02
> >Por favor, responda a
> >"Jetspeed Users List" <[EMAIL PROTECTED]>
> >
> >
> >Para
> >[EMAIL PROTECTED]
> >cc
> >
> >Asunto
> >Re: VelocityPortlet Set to MAXIMIZE mode
> >
> >
> >
> >
> >
> >
> >buildNormalContext() is always executed after any action is called.
> >
> >One way to avoid this is to loop through the req parameters and exit
> >rendering in BNC if you find a param that beings with (eventSubmit_)
> >
> >
> > >>> [EMAIL PROTECTED] 05/05/04 07:02PM >>>
> >Hi people...
> >I'm building a VelocityPortletAction with 2 methods:
> >buildNormalContext: Which put objects in context to render in the
> >default
> >mode. The object is a List, which has a lot of items, each of one
> >rendered
> >as a link, with the intention to see it detail when clicked.
> >
> >To see the clicked item detail, I implement a second method:
> >doViewDetail: which query the full information of the selected item.
> >Until
> >now, everything works fine. My problem is that ALWAYS the
> >buildNormalContextmethod is executed after the doViewDetail, so my item
> >
> >object get lost.
> >
> >Is this happenning because the buildNormalContext is ALWAYS executed
> >before a normal render??
> >
> >How can I avoid this behavior??... By the way, I wish to display the
> >item
> >detail in the portlet maximized mode.
> >
> >Any assistance woud be very appreciated
> >
> >Thank you.
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>_
>Getting married? Find tips, tools and the latest trends at MSN Life
>Events.
>http://lifeevents.msn.com/category.aspx?cid=married
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

_
Stop worrying about overloading your inbox - get MSN Hotmail Extra 
Storage! 
http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/



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




Re: VelocityPortlet Set to MAXIMIZE mode

2004-05-06 Thread cyaconi
What do you mean with "the link that you use to fire you action should not 
include the action in the url"?.
If I not include the action, How can jetspeed know wich do method must 
execute?

This is the URL I'm invoking:
http://127.0.0.1/intranet/portal/media-type/html/user/anon/page/default.psml?action=ArticulosPortletsAction&idArticulo=7&eventSubmit_doDetalle=

Thank you Jeremy.




"Jeremy Ford" <[EMAIL PROTECTED]> 
06-05-2004 13:34
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Re: VelocityPortlet Set to MAXIMIZE mode






If you are using then GenericMVC action/portlets, then the link that you 
use 
to fire you action should not include the action in the url.  Jetspeed 
will 
automatically run the action in your portlet.

Jeremy Ford
[EMAIL PROTECTED]


>From: [EMAIL PROTECTED]
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>Subject: Re: VelocityPortlet Set to MAXIMIZE mode
>Date: Thu, 6 May 2004 13:25:31 -0400
>
>Making a "dirty" play with session variables, I'm controling the flow, 
but
>my problem now is that the object that was put in context in the doXXX
>method, aren't there when the buildNormalContext() is called again, so 
the
>template can't render it...
>
>What could be happening!??
>
>Please, any help is welcomed.
>
>Thank you.
>
>
>
>
>"Stuart Belden" <[EMAIL PROTECTED]>
>06-05-2004 08:02
>Por favor, responda a
>"Jetspeed Users List" <[EMAIL PROTECTED]>
>
>
>Para
>[EMAIL PROTECTED]
>cc
>
>Asunto
>Re: VelocityPortlet Set to MAXIMIZE mode
>
>
>
>
>
>
>buildNormalContext() is always executed after any action is called.
>
>One way to avoid this is to loop through the req parameters and exit
>rendering in BNC if you find a param that beings with (eventSubmit_)
>
>
> >>> [EMAIL PROTECTED] 05/05/04 07:02PM >>>
>Hi people...
>I'm building a VelocityPortletAction with 2 methods:
>buildNormalContext: Which put objects in context to render in the
>default
>mode. The object is a List, which has a lot of items, each of one
>rendered
>as a link, with the intention to see it detail when clicked.
>
>To see the clicked item detail, I implement a second method:
>doViewDetail: which query the full information of the selected item.
>Until
>now, everything works fine. My problem is that ALWAYS the
>buildNormalContextmethod is executed after the doViewDetail, so my item
>
>object get lost.
>
>Is this happenning because the buildNormalContext is ALWAYS executed
>before a normal render??
>
>How can I avoid this behavior??... By the way, I wish to display the
>item
>detail in the portlet maximized mode.
>
>Any assistance woud be very appreciated
>
>Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

_
Getting married? Find tips, tools and the latest trends at MSN Life 
Events. 
http://lifeevents.msn.com/category.aspx?cid=married


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




Re: VelocityPortlet Set to MAXIMIZE mode

2004-05-06 Thread cyaconi
Making a "dirty" play with session variables, I'm controling the flow, but 
my problem now is that the object that was put in context in the doXXX 
method, aren't there when the buildNormalContext() is called again, so the 
template can't render it...

What could be happening!??

Please, any help is welcomed.

Thank you.




"Stuart Belden" <[EMAIL PROTECTED]> 
06-05-2004 08:02
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Re: VelocityPortlet Set to MAXIMIZE mode






buildNormalContext() is always executed after any action is called.

One way to avoid this is to loop through the req parameters and exit
rendering in BNC if you find a param that beings with (eventSubmit_)


>>> [EMAIL PROTECTED] 05/05/04 07:02PM >>>
Hi people... 
I'm building a VelocityPortletAction with 2 methods:
buildNormalContext: Which put objects in context to render in the
default 
mode. The object is a List, which has a lot of items, each of one
rendered 
as a link, with the intention to see it detail when clicked.

To see the clicked item detail, I implement a second method:
doViewDetail: which query the full information of the selected item.
Until 
now, everything works fine. My problem is that ALWAYS the 
buildNormalContextmethod is executed after the doViewDetail, so my item

object get lost.

Is this happenning because the buildNormalContext is ALWAYS executed 
before a normal render??

How can I avoid this behavior??... By the way, I wish to display the
item 
detail in the portlet maximized mode.

Any assistance woud be very appreciated

Thank you.


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




Re: VelocityPortlet Set to MAXIMIZE mode

2004-05-06 Thread cyaconi
Thank you Stuart, and given this behavior, is there any pattern or best 
practices implementing an action???
I don't want to re-invent the wheel, so ppl, please share your experience 
in this topic.

Thank you!!

PD: I come from the struts world, where the action methods is executed 
independently each other. 





"Stuart Belden" <[EMAIL PROTECTED]> 
06-05-2004 08:02
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
[EMAIL PROTECTED]
cc

Asunto
Re: VelocityPortlet Set to MAXIMIZE mode






buildNormalContext() is always executed after any action is called.

One way to avoid this is to loop through the req parameters and exit
rendering in BNC if you find a param that beings with (eventSubmit_)


>>> [EMAIL PROTECTED] 05/05/04 07:02PM >>>
Hi people... 
I'm building a VelocityPortletAction with 2 methods:
buildNormalContext: Which put objects in context to render in the
default 
mode. The object is a List, which has a lot of items, each of one
rendered 
as a link, with the intention to see it detail when clicked.

To see the clicked item detail, I implement a second method:
doViewDetail: which query the full information of the selected item.
Until 
now, everything works fine. My problem is that ALWAYS the 
buildNormalContextmethod is executed after the doViewDetail, so my item

object get lost.

Is this happenning because the buildNormalContext is ALWAYS executed 
before a normal render??

How can I avoid this behavior??... By the way, I wish to display the
item 
detail in the portlet maximized mode.

Any assistance woud be very appreciated

Thank you.


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




Help with VelocityPortletAction

2004-05-06 Thread cyaconi
Hi.
Please, I need help or at least, some kind of information.
How can avoid the call to buildNormalContext method??? I mean, I need to 
execute another method in the action (which is executed), but always, and 
after the call to my own method, the buildNormalContext is called again.

Please, help!!

Thank you!!

VelocityPortlet Set to MAXIMIZE mode

2004-05-05 Thread cyaconi
Hi people... 
I'm building a VelocityPortletAction with 2 methods:
buildNormalContext: Which put objects in context to render in the default 
mode. The object is a List, which has a lot of items, each of one rendered 
as a link, with the intention to see it detail when clicked.

To see the clicked item detail, I implement a second method:
doViewDetail: which query the full information of the selected item. Until 
now, everything works fine. My problem is that ALWAYS the 
buildNormalContextmethod is executed after the doViewDetail, so my item 
object get lost.

Is this happenning because the buildNormalContext is ALWAYS executed 
before a normal render??

How can I avoid this behavior??... By the way, I wish to display the item 
detail in the portlet maximized mode.

Any assistance woud be very appreciated

Thank you.

Re: Confused with security and Turbine

2004-05-05 Thread cyaconi
Thank you David!




David Sean Taylor <[EMAIL PROTECTED]> 
05-05-04 11:27
Por favor, responda a
"Jetspeed Users List" <[EMAIL PROTECTED]>


Para
"Jetspeed Users List" <[EMAIL PROTECTED]>
cc

Asunto
Re: Confused with security and Turbine







On May 5, 2004, at 6:51 AM, [EMAIL PROTECTED] wrote:

> Hi.
> In spite of having a recently support in the subject, I'm still not 
> really
> clear about where is the frontier between Turbine user management, and 
> a
> particular User Management implementation. Exactly, what I want to do, 
> is
> to implement my own persistent layer using hibernate (not Torque), 
> using a
> different (maybe) DB Schema. I understand that the first step is 
> implement
> the same classes within the 
> org.apache.jetspeed.services.security.turbine
> package, but,
> Is this the only implementation that I have to do??
> Can anybody tell me any other consideration that should I take??
>
You will need to replace the Jetspeed Security Services with your own 
Hibernate -based implementations.
You do not need to replace all of the security services, just the ones 
you need, since they are coupled only by the security interfaces 
described below:

Portal Authentication
Defines the contract between the portal and security provider required 
for authentication a Jetspeed User.

PortalAccessController
Defines the contract between the portal and security provider required 
for authorized access control for priveleged portal actions.

UserManagement
Defines the contract between the portal and security provider required 
for managing users.

RoleManagement
Defines the contract between the portal and security provider required 
for managing roles.

GroupManagement
Defines the contract between the portal and security provider required 
for managing groups.

PermissionManagement
Defines the contract between the portal and security provider required 
for managing permissions.

CredentialsManagement
Defines the contract between the portal and security provider required 
for managing credentials.

  Each of these component interfaces are pluggable. Jetspeed provides 
one or more default implementations.

The security service works with a set of interfaces to define the 
standard, base security object model in a portal server.
Depending on which security services you implement, you will need to 
replace the default implementations of these objects with your own.
These objects are:

  Interface
Description

JetspeedUser
Defines the minimal attributes of a user in the portal system.

Role
Defines the minimal attributes of a role in the portal system.

Group
Defines the minimal attributes of a group in the portal system.

Permission
Defines the minimal attributes of a permission in the portal system.

Finally, to "plugin" your services to Jetspeed, simply change the 
JetspeedSecurity property file to point to your implementation:



# Authentication Service#
#

services.PortalAuthentication.classname=org.apache.jetspeed.services.sec 
urity.turbine.TurbineAuthentication

#
# Authorization Service #
#

services.PortalAccessController.classname=org.apache.jetspeed.services.s 
ecurity.registry.RegistryAccessController
#services.PortalAccessController.classname=org.apache.jetspeed.services. 
security.turbine.TurbineAccessController
#services.PortalAccessController.classname=org.apache.jetspeed.services. 
security.nosecurity.NoSecurityAccessController

#
# User Management Service   #
#

services.UserManagement.classname=org.apache.jetspeed.services.security. 
turbine.TurbineUserManagement

#
# Role Management Service   #
#

services.RoleManagement.classname=org.apache.jetspeed.services.security. 
turbine.TurbineRoleManagement

#
# Group Management Service  #
#

services.GroupManagement.classname=org.apache.jetspeed.services.security 
.turbine.TurbineGroupManagement

#
# Security Cache Service#
#

services.SecurityCache.classname=org.apache.jetspeed.services.security.S 
ecurityCacheImpl



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




Confused with security and Turbine

2004-05-05 Thread cyaconi
Hi.
In spite of having a recently support in the subject, I'm still not really 
clear about where is the frontier between Turbine user management, and a 
particular User Management implementation. Exactly, what I want to do, is 
to implement my own persistent layer using hibernate (not Torque), using a 
different (maybe) DB Schema. I understand that the first step is implement 
the same classes within the org.apache.jetspeed.services.security.turbine 
package, but,
Is this the only implementation that I have to do??
Can anybody tell me any other consideration that should I take??

Thank you very much!!
PD. Sorry my english.

Confused with security and Turbine

2004-05-04 Thread cyaconi
Hi.
In spite of having a recently support in the subject, I'm still not really 
clear about where is the frontier between Turbine user management, and a 
particular User Management implementation. Exactly, what I want to do, is 
to implement my own persistent layer using hibernate (not Torque), using a 
different (maybe) DB Schema. I understand that the first step is implement 
the same classes within the org.apache.jetspeed.services.security.turbine 
package, but,
Is this the only implementation that I have to do??
Can anybody tell me any other consideration that should I take??

Thank you very much!!
PD. Sorry my english.

RE: jetspeed 1.5 - tomcat 1.5 - freeze

2004-04-27 Thread cyaconi

Thank you Jeremy, but the url you post tells that ISSUE DOES NOT EXIST. Do you have 
the correct one??

Thank you again!!


-- Original Message --
From: "Jeremy Ford" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Tue, 27 Apr 2004 21:17:43 +

>This issue has been reported and is found at
>http://nagoya.apache.org/jira/browse/JS1-405.
>
>Please try the attached registry service to see if this resolves your issue.
>
>Jeremy Ford
>[EMAIL PROTECTED]
>
>
>>From: "cyaconi" <[EMAIL PROTECTED]>
>>Reply-To: <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Subject: jetspeed 1.5 - tomcat 1.5 - freeze Date: Tue, 27 Apr 2004 17:16:11
>>-0400
>>
>>Hi!
>>I'm trying to test jetspeed 1.5 on tomcat 5.0.19, and the application
>>freeze before display the home page. The freeze occurs when waiting for a
>>service to start. This is the stack (no exceptions thrown):
>>
>>Thread [http80-Processor25] (Suspended)
>>  CastorRegistryService.init() line: 485
>>  TurbineServices(BaseServiceBroker).getService(String) line: 304
>>  Registry.getService() line: 65
>>  Registry.get(String) line: 81
>>  CapabilityMapFactory.getCapabilityMap(String) line: 85
>>  DefaultJetspeedParameterParser.setRequest(HttpServletRequest) line: 87
>>  DefaultJetspeedRunData(DefaultTurbineRunData).getParameters() line: 493
>>  Turbine.doGet(HttpServletRequest, HttpServletResponse) line: 472
>>  Turbine(HttpServlet).service(HttpServletRequest, HttpServletResponse)
>>line: 743
>>  Turbine(HttpServlet).service(ServletRequest, ServletResponse) line: 856
>>  ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
>>line: 284
>>  ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 204
>>  ApplicationDispatcher.invoke(ServletRequest, ServletResponse) line: 750
>>  ApplicationDispatcher.processRequest(ServletRequest, ServletResponse)
>>line: 510
>>  ApplicationDispatcher.doForward(ServletRequest, ServletResponse) line: 445
>>  ApplicationDispatcher.forward(ServletRequest, ServletResponse) line: 359
>>  PageContextImpl.doForward(String) line: 712
>>  PageContextImpl.forward(String) line: 682
>>  index_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 45
>>  index_jsp(HttpJspBase).service(HttpServletRequest, HttpServletResponse) 
>>line: 133
>>  index_jsp(HttpServlet).service(ServletRequest, ServletResponse) line: 856
>>  JspServletWrapper.service(HttpServletRequest, HttpServletResponse,
>>boolean) line: 311
>>  JspServlet.serviceJspFile(HttpServletRequest, HttpServletResponse, String,
>>Throwable, boolean) line: 301
>>  JspServlet.service(HttpServletRequest, HttpServletResponse) line: 248
>>  JspServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 856
>>  ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
>>line: 284
>>  ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 204
>>  StandardWrapperValve.invoke(Request, Response, ValveContext) line: 257
>>  StandardValveContext.invokeNext(Request, Response) line: 151
>>  StandardPipeline.invoke(Request, Response) line: 567
>>  StandardContextValve.invokeInternal(Wrapper, Request, Response) line: 245
>>  StandardContextValve.invoke(Request, Response, ValveContext) line: 199
>>  StandardValveContext.invokeNext(Request, Response) line: 151
>>  StandardPipeline.invoke(Request, Response) line: 567
>>  StandardHostValve.invoke(Request, Response, ValveContext) line: 184
>>  StandardValveContext.invokeNext(Request, Response) line: 151
>>  ErrorReportValve.invoke(Request, Response, ValveContext) line: 164
>>  StandardValveContext.invokeNext(Request, Response) line: 149
>>  StandardPipeline.invoke(Request, Response) line: 567
>>  StandardEngineValve.invoke(Request, Response, ValveContext) line: 156
>>  StandardValveContext.invokeNext(Request, Response) line: 151
>>  StandardPipeline.invoke(Request, Response) line: 567
>>  StandardEngine(ContainerBase).invoke(Request, Response) line: 972
>>  CoyoteAdapter.service(Request, Response) line: 206
>>  Http11Processor.process(InputStream, OutputStream) line: 833
>>  Http11Protocol$Http11ConnectionHandler.processConnection(TcpConnection, 
>>Object[]) line: 732
>>  TcpWorkerThread.runIt(Object[]) line: 619
>>  ThreadPool$ControlRunna

jetspeed 1.5 - tomcat 1.5 - freeze

2004-04-27 Thread cyaconi
Hi!
I'm trying to test jetspeed 1.5 on tomcat 5.0.19, and the application freeze before 
display the home page. The freeze occurs when waiting for a service to start. This is 
the stack (no exceptions thrown):

Thread [http80-Processor25] (Suspended)
CastorRegistryService.init() line: 485
TurbineServices(BaseServiceBroker).getService(String) line: 304
Registry.getService() line: 65
Registry.get(String) line: 81
CapabilityMapFactory.getCapabilityMap(String) line: 85
DefaultJetspeedParameterParser.setRequest(HttpServletRequest) line: 87
DefaultJetspeedRunData(DefaultTurbineRunData).getParameters() line: 493
Turbine.doGet(HttpServletRequest, HttpServletResponse) line: 472
Turbine(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 743
Turbine(HttpServlet).service(ServletRequest, ServletResponse) line: 856
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 
284
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 204
ApplicationDispatcher.invoke(ServletRequest, ServletResponse) line: 750
ApplicationDispatcher.processRequest(ServletRequest, ServletResponse) line: 510
ApplicationDispatcher.doForward(ServletRequest, ServletResponse) line: 445
ApplicationDispatcher.forward(ServletRequest, ServletResponse) line: 359
PageContextImpl.doForward(String) line: 712
PageContextImpl.forward(String) line: 682
index_jsp._jspService(HttpServletRequest, HttpServletResponse) line: 45
index_jsp(HttpJspBase).service(HttpServletRequest, HttpServletResponse) line: 
133
index_jsp(HttpServlet).service(ServletRequest, ServletResponse) line: 856
JspServletWrapper.service(HttpServletRequest, HttpServletResponse, boolean) 
line: 311
JspServlet.serviceJspFile(HttpServletRequest, HttpServletResponse, String, 
Throwable, boolean) line: 301
JspServlet.service(HttpServletRequest, HttpServletResponse) line: 248
JspServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 856
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 
284
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 204
StandardWrapperValve.invoke(Request, Response, ValveContext) line: 257
StandardValveContext.invokeNext(Request, Response) line: 151
StandardPipeline.invoke(Request, Response) line: 567
StandardContextValve.invokeInternal(Wrapper, Request, Response) line: 245
StandardContextValve.invoke(Request, Response, ValveContext) line: 199
StandardValveContext.invokeNext(Request, Response) line: 151
StandardPipeline.invoke(Request, Response) line: 567
StandardHostValve.invoke(Request, Response, ValveContext) line: 184
StandardValveContext.invokeNext(Request, Response) line: 151
ErrorReportValve.invoke(Request, Response, ValveContext) line: 164
StandardValveContext.invokeNext(Request, Response) line: 149
StandardPipeline.invoke(Request, Response) line: 567
StandardEngineValve.invoke(Request, Response, ValveContext) line: 156
StandardValveContext.invokeNext(Request, Response) line: 151
StandardPipeline.invoke(Request, Response) line: 567
StandardEngine(ContainerBase).invoke(Request, Response) line: 972
CoyoteAdapter.service(Request, Response) line: 206
Http11Processor.process(InputStream, OutputStream) line: 833
Http11Protocol$Http11ConnectionHandler.processConnection(TcpConnection, 
Object[]) line: 732
TcpWorkerThread.runIt(Object[]) line: 619
ThreadPool$ControlRunnable.run() line: 688
ThreadWithAttributes(Thread).run() line: not available [local variables 
unavailable]

It falls in the next loop in the CastorRegistryService.init() class:

 while (!getInit())
{
//Not yet...
try
{
Thread.sleep(500);
if (logger.isDebugEnabled())
{
logger.debug("RegistryService: Waiting for init of Registry...");
}
}
catch (InterruptedException ie)
{
logger.error("Exception", ie);
}
}

getInit() is false always!!!

plase, any help is welcomed!!
(jsdk 1.3.1)

Thank you!!

 

 

Sent via the KillerWebMail system at gtdmail.com


 
   

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