Skip to main content

jMaki and Portals

5 replies [Last post]
jp2008
Offline
Joined: 2008-11-04
Points: 0

Hi there,

I'm using Eclipse 3.4.1 and jMaki 1.8.1. I've got Eclipse Portal Pack installed and I'm running OpenPortal Portlet Container 2.0 on Glassfish.

I've tried to implement the Calendar widget inside the view.jsp file, but it doesn't appear when I deploy the war file.

There aren't any errors or other messages in the log files - the calendar just doesn't appear.

Has anyone been able to get jMaki working inside a portlet? I'd really appreciate some advice.

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jp2008
Offline
Joined: 2008-11-04
Points: 0

Hi Greg,

Sorry if this appears twice - the first reply got cut off for some reason and the formatting gets screwed up (maybe because I'm adding code snippits...)

Yes, I'm using the calendar from the extras widgets.

When I drag & drop the calendar into my .jsp page, the following code appears:

At the top:

And at the cursor:

There is nowhere any "

Does this sound right to you?

Thanks,
JP

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi jp,

So you are using the jMaki widgets rendered in pure HTML

in this case the size used can be specified in the style attribute of the div tag itself like:

<div style="height:400;width:300" jmakiName="jmaki.calendar"></div>

If this still doesn't work we will have to look at other options.

-Greg

jp2008
Offline
Joined: 2008-11-04
Points: 0

Hi Greg,

I've managed to get it working! There there are a couple of things I had to do - in the correct order.

After creating the portlet project in Eclipse, I added JMaki Ajax as a project facet. After I had done that, the "" code appeared when I dragged the calendar into the jsp file. And then your advice about the div height and width became very useful!

Thanks for all your help.

Regards,
JP

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi jp2008,

Are you talking about the jmaki calendar from the extras widgets?

This widget like many others bases it's size (namely the height) on the container (div / table / span) that it lives in. If wrap it in

<div style="height:300px"></div>

You should see it.

-Greg

jp2008
Offline
Joined: 2008-11-04
Points: 0

Hi Greg,

Thanks for the response!

Yes, I'm using the calendar from the extras widgets.

When I drag & drop the calendar into my .jsp page, the following code appears:

At the top:
[i]

[/i]
[i]

[/i]

And at the cursor:
[i]

[/i]

There is nowhere any "

Does this sound right to you?

Thanks,
JP