cancel
Showing results for 
Search instead for 
Did you mean: 

Dashlets

sgomes
Champ in-the-making
Champ in-the-making
Hi!

i put in my web-client-conf.xml this:

<dashlet id="tasks-todo" label-id="my_tasks_todo_title" description-id="my_tasks_todo_desc"
      jsp="/jsp/dashboards/dashlets/aniversarios.jsp" allow-narrow="false" />

in my aniversarios.jsp i have:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
   WELCOME
</body>
</html>




but when i click MyAlfresco….the dashlet is empty, does not appear the "WELCOME" message….

can you help me?

Thank
8 REPLIES 8

kevinr
Star Contributor
Star Contributor
Dashlets only output page "snippets" of HTML i.e. they already exist within an HTML page body (much like portlets) so your page only needs the following content to display the message:


WELCOME

Smiley Happy

Thanks,

Kevin

sgomes
Champ in-the-making
Champ in-the-making
I put only the code :

WELCOME

and the dashlet still empty… nothing appear…

kevinr
Star Contributor
Star Contributor
OK can you give any more information - are you putting the <dashlet> config in the web-client-config-custom.xml? or the original web-client-config.xml? I assume you've put the JSP in the correct location in the exploded WAR file?

Thanks,

Kevin

sgomes
Champ in-the-making
Champ in-the-making
i only edit web-client-conf.xml

<dashlet id="tasks-todo" label-id="my_tasks_todo_title" description-id="my_tasks_todo_desc"
jsp="/jsp/dashboards/dashlets/aniversarios.jsp" allow-narrow="false" />

my JSP is under jsp/dashboards/dashlets/…..

if i put this in code:

<f:verbatim>
   WELCOME
</f:verbatim>

the message appear…

kevinr
Star Contributor
Star Contributor
OK sounds like your config is correct. Yes my appologies I forgot to mention that the dashlet JSP page snippet must be JSF components only. So placing your HTML output within the f:verbatim is essential. It's annoying but an artifact of the JSF UI framework we use - appologies for not making that clearer! Smiley Happy You can use any combination of JSF components in the dashlet, such as hSmiley SurprisedutputText and so on.

Thanks,

kevin

sgomes
Champ in-the-making
Champ in-the-making
Thanks,

another question…. i try to add a middle name propertie to user when i create a new user….. but ContentModel.PROP_MIDDLENAME can not be revolve why??

thanks

sgomes
Champ in-the-making
Champ in-the-making
i have my problem solve Smiley Happy

zazation
Champ in-the-making
Champ in-the-making
hi,
I want to do same thing but I do not find the file Web-customer-conf.xml in my alfresco. Can i create it and where put it?
thank you