Re: portlet object in doUpdate()

2003-01-28 Thread Wei Guan
Pierre:

I tested your workaround. I used velocity. I used POST. Here is the
behavior.
if I removed action, I could get portlet in doUpdate(), however,
buildNormalContext is never got called.
if I keep the action, the portlet is null in doUpdate(),
buildNormalContext is called after doUpdate().

Is it a bug?

Thanks.

- Original Message -
From: Pierre Henry [EMAIL PROTECTED]
To: Michael Rothrock [EMAIL PROTECTED]
Cc: Jetspeed User List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 2:26 AM
Subject: RE: portlet object in doUpdate()


 I got them to work with GET, but it only works with Internet Explorer, It
 doesn't work with Mozilla, the buildNormalContext action is called, not
the
 actions... (I tried MSIE 5 and 6 and Mozilla 1.2)

 Pierre

  -Original Message-
  From: Michael Rothrock [mailto:[EMAIL PROTECTED]]
  Sent: lundi, 27. janvier 2003 19:21
  To: Jetspeed Users List; Pierre Henry
  Subject: Re: portlet object in doUpdate()
 
 
  Since I'm about to be working on this, let me ask a related
  question: has
  anyone gotten JSP actions to work with GET?
 
  Thanks!
 
  -- Michael
 
  On 1/27/03 1:09 AM, Pierre Henry [EMAIL PROTECTED] wrote:
 
   Hi Wei,
  
   I had the same problem last week (see my mail with title
  Tricky behavior
   with JSP portlet and forms).
  
   what I found out :
  
   - the form in the JSP doesn't need any action attribute
  
   - the ony needed hidden field is js_peid which contains the
   portlet's ID.
  
  
   When I put a hidden field for the action :
   INPUT TYPE=hidden name=action
   value=CustomizableXsqlPortlet1Action
   the right method was called  but the portlet argument of the
   doUpdatefilter
   method was null, so the action class couldn't do much.
  
   So try to remove the action field...
  
   I hope it helps !
  
   Pierre
  
   -Original Message-
   From: Wei Guan [mailto:[EMAIL PROTECTED]]
   Sent: lundi, 27. janvier 2003 07:49
   To: [EMAIL PROTECTED]
   Subject: portlet object in doUpdate()
  
  
   I have a doUpdate in an VelocityAction class:
  
   VelocityPortlet portlet = (VelocityPortlet) context.get(portlet);
  
   the portlet is null.
  
   Is this a bug?
  
   Wei
  
  
 



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




JSP vs Velocity

2003-01-28 Thread Wei Guan
I like Velocity. However, there are lots of JSP tags, such as JSP output stream buffer 
cache tag I could use, I had hard time to find similiar Velocity library.

Which do you prefer? Any serious JetSpeed Velocity development and deployment?

How is the popularity of JetSpeed? 


Flow and State of a portlet

2003-01-26 Thread Wei Guan
First, I would like to say: Great job.

I am still puzzling on how to build highly-interactive portlet. Here is a user case:
1) the default template is page1.vm rendering default data prepared by 
buildNormalConent of Action1.java
2) on page1.vm, there are couple of links, each link will result an action, generate 
different data and need diifferent templates to render. For example, there is a link 
link1 on page1.vm:
page1.vm ---link1---method in action1page2.vm.

I think this is the sequence in JetSpeed
1) action1.buildNormalContent --- page1.vm
2) ---link1---method in action1 
--action1.buildNormalContent---action1.setTempate(page2.vm)---page2.vm.

I am looking for a solution like this.
1) action1.buildNormalContent --- page1.vm
2) ---link1---method in action2 
--action2.buildNormalContent---action2.setTempate(page2.vm)---page2.vm.

The reason I am looking for such solution is that for a highly-interactive portlet, 
there are many links, actions and templates. Using one action class to handle this 
might not be feasible.

I noticed that (Maybe I was wrong), Jetspeed lacks of flow control and state 
management inside a portlet. Any tips, solutions, workaround are highly appreciated.

Thanks

Wei


setTemp: where is it?

2003-01-26 Thread Wei Guan
Where does JetSpeed store objects in setTemp()? Are they in the session? If not, how 
does JetSpeed manage these objects?

Regards

Wei


portlet object in doUpdate()

2003-01-26 Thread Wei Guan
I have a doUpdate in an VelocityAction class:

VelocityPortlet portlet = (VelocityPortlet) context.get(portlet);

the portlet is null.

Is this a bug?

Wei


Tree Navigation design.

2003-01-20 Thread Wei Guan
The site I design has some roles. One role is admin.

I plan to have Admin type of pane for this role. Inside this pane, have a tree 
(either JavaScript or Java Applet) on the left, listing the administration tasks and 
on the right, a portlet to perform different administration tasks. 

How to design and implement? Any tips. 

Thanks.


How to control flow in portlet?

2003-01-18 Thread Wei Guan
Here is the case: I have a portlet, the starting page is page1.vm, click a link in 
page2.vm, the portlet should show page2.vm:

page1.vm ---action---page2.vm.

How to achieve this?

How to control flow in portlet?

Thanks.

Wei Guan