Hi David, Raphael,

what I did:

I copied the wml/default.psml file into the html directory and restarted jetspeed.
My new homesite displays the content of the portlets, defined in this psml file.
(The html source contains some wml tags like <card> but it doesn't matter)

When I try to customize the homepage using: 
http://localhost:8080/jetspeed/portal?action=controls.Customize&portlet=1 
I receive the customize layout screen, using the Columncontroller, which displays a 
list of all portlets (only bug: the last entry is displayed twice) so far so good - 
that's what I want.
I even can move the portlets up and down but I can not save the file.

Now lets load the wml/default.psml file using: 
http://localhost:8080/jetspeed/portal/action/controls.Customize?mtype=wml

How I load the wml profile (psml-file):

class Customize extends Action 
{
...

  public void doPerform (...)
  {
    if (mtype.equalsIgnoreCase("wml"))
    {
      Profiler myProfiler = new Profiler ();
      Profile myWML = myProfiler.getProfile (rundata, MimeType.WML);
      jdata.setProfile (myWML);    
    }
  }

...
}

When I load my psml file this way, the customizer displays the layout screen using the 
columncontroller (which is the default/only controller for mtype=wml - I changed the 
.psml file) but there's only an unnamed single pane and none of my portlets!

Did I miss something?


Btw: When I use Raphael's customize-URL: 
http://localhost.8080/jetspeed/portal/action/controls.Customize/media-type/wml I get 
the same none portlet output :(


Andreas




-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 19. Oktober 2001 20:58
To: [EMAIL PROTECTED]
Subject: RE: How to load and customize wml profiles - Raphael, David?


Hi Andreas,

> contains a 'mtype' attribute set to 'WML'.\

Look at the ProfileLocator interface for specifying the PSML parameters such
as mediatype

Im not really sure why the customizer cannot handle customizing WML PSML.
Raphael is the resident customizer expert :) .....

What happens when you try to customize a WML page?


btw - Im going out of town here shortly -- I will be disconnected all
weekend.

Have a great weekend,

David



> -----Original Message-----
> From: ICM S CP guest 5 [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 19, 2001 6:39 AM
> To: [EMAIL PROTECTED]
> Subject: How to load and customize wml profiles - Raphael, David?
>
>
> Hi,
>
> I want to load a wml profile and use the customizer to
> add/remove portlets and save the profile on disk.
>
> What I've done so far:
>
> I added a button 'edit wml profile' to the jetspeed navbar.
> Clicking on that button is sending a customize request which
> contains a 'mtype' attribute set to 'WML'.
>
> The Customizer class evaluates the mtype attribute and uses
> the Profile class to retrieve the profile for content-type
> wml. I modified the CustomizeSetAction class to adapt the
> customizer screen for wml (that means: no layout selection
> and skin change...).
> So far, everything is working fine.
>
> I expected that I can customize the wml profile like a html
> profile because profiles are saved using PSML, but it can't.
>
> Question is - why?
>
> I thought, that all profiles are handled in the same way
> (psml) and only the rendering methode is evaluating the
> browsertype (html/wap) to create the specific output...
>
> What is the difference between loading a wml or html profile?
> How can I load a wml profile on the webbrowser?
>
> I spent a lot of time in solving this problem so I appreciate
> any help.
>
> Andreas K.
>
> ---------------------------------------------------------------------
> 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]

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

Reply via email to