[template_list] Jahia 6 - Errors in tomcat console

2009-03-25 Thread MesDocs ParMail
Hi all,

I have installed a new version of Jahia 6 and deployed my templates.
When I create a container I have defined, I got the following error
messages in the console ?

Does anyone have an idea how to fix this ?

This is the console output :

2009-03-25 18:25:28,775: ERROR
[org.hibernate.util.JDBCExceptionReporter] - Wrong data type:
java.lang.NumberFormatException: For
input string: "ContentContainer" in statement [select distinct
jahiafield1_.id_jahia_fields_data as col_0_0_ from jahia_ctn_entrie
s jahiaconta0_, jahia_fields_data jahiafield1_, jahia_fields_def
jahiafield2_ where jahiaconta0_.listid_jahia_ctn_entries=? and ja
hiaconta0_.id_jahia_ctn_entries=jahiafield1_.id_jahia_obj and
jahiafield1_.type_jahia_fields_data='ContentContainer' and jahiafiel
d1_.fielddefid_jahia_fields_data=jahiafield2_.id_jahia_fields_def and
jahiafield2_.ctnname_jahia_fields_def=? and jahiafield1_.wor
kflow_state>1 and jahiafield1_.workflow_state>0 and
jahiafield1_.version_id>-1 and (jahiafield1_.language_code in
('shared' , 'fr'
 , 'shared'))]
2009-03-25 18:25:28,806: ERROR
[org.jahia.data.containers.ContainerSorterBean] - Exception occured
:could not execute query
org.hibernate.exception.SQLGrammarException: could not execute query



Regards,

Mesdocs.
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Jahia 6 community Edition : Adding a portlet in my page

2009-03-23 Thread MesDocs ParMail
Did you read the documentation at
http://www.jahia.org/cms/home/jahiapedia/Portlet_Integration ?

Maybe you didn't modify the web.xml file as described in the article.

Mesdocs.

2009/3/23 amine :
>
>
> MesDocs ParMail wrote:
>>
>> 3/ A new window appears with a list of available portlets. Select your
>> portlet and click next.
>>
>
> That's the problem. My portlet is not available in this list.
>
> KT pointed out the fact that I should have a list of portlets in the edit
> popup menu.
> I didn't notice that before but there is indeed a deployment problem since
> this list is empty!
>
> I'm trying to deploy again this portlet but it doesn't work any more.
> I placed it in the usual WEB-INF/var/new_webapps folder but it doesn't hot
> deploy. It doesn't deploy if I restart Jahia neither.
> There's no trace of deployment attempts in my console. I just have lots of
> lines with [Full GC...]
>
> This very same war works fine with Jahia 5.
>
>
> --
> View this message in context: 
> http://www.nabble.com/Jahia-6-community-Edition-%3A-Adding-a-portlet-in-my-page-tp22595661p22663331.html
> Sent from the Jahia - Template mailing list archive at Nabble.com.
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Jahia 6 community Edition : Adding a portlet in my page

2009-03-23 Thread MesDocs ParMail
You should be able to create a mashup following these steps :

1/ In Edit mode , in the Tools drop-down list, you should find the
Mashup Manager Tool
2/ With the current selected repository (your site), click on the new
mashup button
3/ A new window appears with a list of available portlets. Select your
portlet and click next.
4/ Give your mashup a title and click next.
5/ On the roles-permissions screen click next.
6/ On the modes-permissions screen select the views you want.
7/ Enter a text in the last screen and click finish. You mashup
definition  should appear in the mashup manager.

8/ Close the window.

9/ In a page based on the full template, in the portlet list, you
should now see your mashup in the list of available portlets under
your site folder. Select it and click ok.

Regards

Mesdocs.



2009/3/23 amine :
>
> Hello
>
> @KT
> No exception during the deployment. The deployment seems ok by the way.
> My portlet is visible from the admin ui.
> Thank you for the link. I'v already read that wiki article but it concerns
> only deployment and not the insertion of an instance.
>
> @Mesdocs
> I didn't succeed in creating a new mashup based on a "hello world" portlet
> with the mashup tool.
> Did you?
>
>
>
> ktlili wrote:
>>
>> Hi,
>>
>> Did you had any exception during the deployment step?
>>
>> You can find here more information about deploying portlet into Jahia 6:
>> http://www.jahia.org/cms/home/jahiapedia/Portlet_Integration
>>
>> Regards.
>> KT.
>>
>> MesDocs ParMail a écrit :
>>> Hi Amine,
>>>
>>> Did you succeed in creating a new mashup based on your portlet in the
>>> Mashup Manager Tool ?
>>>
>>> Regards,
>>>
>>> Mesdocs.
>>>
>>> 2009/3/19 amine :
>>>
>>>> Thanks
>>>>
>>>> I tried with "full" template, portlet container, add portlet...
>>>> I get a popup dialog but my portlet is still not in the list of
>>>> available
>>>> mashups.
>>>> I tried to browse, to search, to add a new mashup but I can't find it.
>>>> I can insert google mashups and rss but not my portlet.
>>>>
>>>> I had a similar problem with Jahia 5 before.
>>>> The hint was to add ... in
>>>> portlet.xml in order to make it available for my pages.
>>>>
>>>> But in Jahia 6 it doesn't work this way. Do you think it's a problem
>>>> like
>>>> this or am I misunderstanding the new ui ?
>>>>
>>>> regards
>>>>
>>>>
>>>> david-137 wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> You can use the template "full" wich have a portlet container inside
>>>>> or add jnt:portletsBox as box property in your definition.cnd file in
>>>>> any box you want to add portlet
>>>>>
>>>>> for example, if you want it in the main column of the home template you
>>>>> will have :
>>>>> containerList   columnA_box (jnt:box [addMixin="jmix:skinnable",
>>>>> availableTypes="jnt:IframeBox,jnt:portletsBox,web_templates:lastNewsBox,jnt:textsBox,web_templates:filesBox"])
>>>>>
>>>>>
>>>>> regards,
>>>>>
>>>>> David
>>>>>
>>>>> Amine Bousta a écrit :
>>>>>
>>>>>> Hello
>>>>>>
>>>>>> I installed Jahia 6 community Edition but I can't figure out how to
>>>>>> use portlets.
>>>>>> I made a very simple "hello world" portlet and deployed it in Jahia 5
>>>>>> and 6.
>>>>>> In Administration mode, it appears fine in the available portlets list
>>>>>> with the right name and description in both versions.
>>>>>> In Jahia 5 I can display this portlet on my page, using a box of type
>>>>>> "portlet".
>>>>>>
>>>>>> But in Jahia 6, ACME template, I can not call my portlet on any page.
>>>>>> There is no box of type "portlet".
>>>>>> I thought I had to use the mashups manager but my portlet is not in
>>>>>> the list of available mashups.
>>>>>>
>>>>>> Could you give me a hint ?
>>>>>> 
>>>>>>
>&

Re: [template_list] Jahia 6 community Edition : Adding a portlet in my page

2009-03-23 Thread MesDocs ParMail
Hi Amine,

Did you succeed in creating a new mashup based on your portlet in the
Mashup Manager Tool ?

Regards,

Mesdocs.

2009/3/19 amine :
>
> Thanks
>
> I tried with "full" template, portlet container, add portlet...
> I get a popup dialog but my portlet is still not in the list of available
> mashups.
> I tried to browse, to search, to add a new mashup but I can't find it.
> I can insert google mashups and rss but not my portlet.
>
> I had a similar problem with Jahia 5 before.
> The hint was to add ... in
> portlet.xml in order to make it available for my pages.
>
> But in Jahia 6 it doesn't work this way. Do you think it's a problem like
> this or am I misunderstanding the new ui ?
>
> regards
>
>
> david-137 wrote:
>>
>> Hello,
>>
>> You can use the template "full" wich have a portlet container inside
>> or add jnt:portletsBox as box property in your definition.cnd file in
>> any box you want to add portlet
>>
>> for example, if you want it in the main column of the home template you
>> will have :
>> containerList   columnA_box (jnt:box [addMixin="jmix:skinnable",
>> availableTypes="jnt:IframeBox,jnt:portletsBox,web_templates:lastNewsBox,jnt:textsBox,web_templates:filesBox"])
>>
>>
>> regards,
>>
>> David
>>
>> Amine Bousta a écrit :
>>> Hello
>>>
>>> I installed Jahia 6 community Edition but I can't figure out how to
>>> use portlets.
>>> I made a very simple "hello world" portlet and deployed it in Jahia 5
>>> and 6.
>>> In Administration mode, it appears fine in the available portlets list
>>> with the right name and description in both versions.
>>> In Jahia 5 I can display this portlet on my page, using a box of type
>>> "portlet".
>>>
>>> But in Jahia 6, ACME template, I can not call my portlet on any page.
>>> There is no box of type "portlet".
>>> I thought I had to use the mashups manager but my portlet is not in
>>> the list of available mashups.
>>>
>>> Could you give me a hint ?
>>> 
>>>
>>> ___
>>> template_list mailing list
>>> template_list@jahia.org
>>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>>
>>
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Jahia-6-community-Edition-%3A-Adding-a-portlet-in-my-page-tp22595661p22596977.html
> Sent from the Jahia - Template mailing list archive at Nabble.com.
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Template deployment problem and schema error

2009-03-16 Thread MesDocs ParMail
Hi all,

It seems my precedent message was too quickly sent.

I've downloaded the last nightly build (r25860) and tried to deploy my
templates in this version.

During the maven deployment, I noticed downloads from maven-jahia (I
suppose the updated files you were talking about).

My templates are deployed to Root/jsp/jahia/templates but the version
uses the Root/templates folder.

Is there a parameter to modify in order to deploy in the folder i want ?


Regards,

Mesdocs.



2009/3/13 MesDocs ParMail :
> Hi Benjamin,
>
> I've just tried again the deployment. It works well.
>
> I had to recode some files in my template as there was jahia tag and
> web_templates changes (utility:resourceBundle).
>
> Regards,
> Mesdocs
>
> 2009/3/13 Jahia papez :
>> Hello Mesdocs,
>>
>> there was a problem with the maven-jahia-plugin snapshot uploaded yesterday
>> as it was not compatible with the community edition. Due to your mail we
>> have uploaded a new version right now. So could you please try again?
>>
>> Regards,
>> Benjamin
>>
>> Am 13.03.2009 12:40, MesDocs ParMail schrieb:
>>
>> Thank you. I have modified my templates.xml file.
>>
>> Till now, I was using the community r25203 edition.
>>
>> The template deployment action from eclipse does not work anymore for
>> this edition since the templates are deployed under
>> webapps/ROOT/templates
>>
>> I will pick the last build version.
>>
>> Regards,
>>
>> Mesdocs.
>>
>>
>>
>> 2009/3/13 Sergiy Shyrkov :
>>
>>
>> Hello,
>>
>> due to our domain server reorganization, please, update the header of
>> you templates deployment descriptor (templates.xml) to reference schema
>> from the jahia.org Community site, i.e.:
>>
>> http://www.w3.org/2001/XMLSchema-instance";
>> xmlns="http://www.jahia.org/jahia/templates";
>> xsi:schemaLocation="http://www.jahia.org/jahia/templates
>> http://www.jahia.org/shemas/templates_2_0.xsd";>
>>
>>
>> The corresponding JahiaPedia page is already updated but is waiting for
>> approval to be published.
>>
>>
>> Kind regards
>> Sergiy
>>
>>
>>
>> MesDocs ParMail wrote:
>>
>>
>> Hi,
>>
>> I have tried to deploy my templates via the maven deploy action
>> (described in jahiapedia), but it does not work anymore.
>>
>> In the Eclipse console, there is this output :
>>
>> [WARNING] Attempting to build MavenProject instance for Artifact
>> (org.jahia.server:maven-jahia-plugin:1.0-20090312.152348-8) of type:
>> maven-plugin; constructing POM artifact instead.
>> [INFO] [jahia:deploy]
>> [INFO] Updated template war resources for tomcat v6 in directory
>> C:\jahia_v6_CommunityEdition_r25203\webapps\ROOT\templates\my_templates
>> [INFO] Copied 0 files.
>>
>>
>> I don't if my problem is link to this error in the template.xml file :
>>
>> Referenced file contains errors
>> (http://www.jahia.net/shemas/templates_2_0.xsd).
>> For more information, right click on the message and select "Show
>> Details..."
>>
>> templates.xml My_templates/src/main/webapp/WEB-INF    line 1  XML Problem
>>
>> TargetNamespace.1 : Expecting namespace
>> 'http://www.jahia.net/jahia/templates', but the target namespace of
>> the schema document is 'http://www.jahia.org/jahia/templates'.
>>
>>
>> Regards,
>>
>> Mesdocs.
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>>
>>
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>>
>>
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>>
>>
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>>
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Template deployment problem and schema error

2009-03-13 Thread MesDocs ParMail
Hi Benjamin,

I've just tried again the deployment. It works well.

I had to recode some files in my template as there was jahia tag and
web_templates changes (utility:resourceBundle).

Regards,
Mesdocs

2009/3/13 Jahia papez :
> Hello Mesdocs,
>
> there was a problem with the maven-jahia-plugin snapshot uploaded yesterday
> as it was not compatible with the community edition. Due to your mail we
> have uploaded a new version right now. So could you please try again?
>
> Regards,
> Benjamin
>
> Am 13.03.2009 12:40, MesDocs ParMail schrieb:
>
> Thank you. I have modified my templates.xml file.
>
> Till now, I was using the community r25203 edition.
>
> The template deployment action from eclipse does not work anymore for
> this edition since the templates are deployed under
> webapps/ROOT/templates
>
> I will pick the last build version.
>
> Regards,
>
> Mesdocs.
>
>
>
> 2009/3/13 Sergiy Shyrkov :
>
>
> Hello,
>
> due to our domain server reorganization, please, update the header of
> you templates deployment descriptor (templates.xml) to reference schema
> from the jahia.org Community site, i.e.:
>
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://www.jahia.org/jahia/templates";
> xsi:schemaLocation="http://www.jahia.org/jahia/templates
> http://www.jahia.org/shemas/templates_2_0.xsd";>
>
>
> The corresponding JahiaPedia page is already updated but is waiting for
> approval to be published.
>
>
> Kind regards
> Sergiy
>
>
>
> MesDocs ParMail wrote:
>
>
> Hi,
>
> I have tried to deploy my templates via the maven deploy action
> (described in jahiapedia), but it does not work anymore.
>
> In the Eclipse console, there is this output :
>
> [WARNING] Attempting to build MavenProject instance for Artifact
> (org.jahia.server:maven-jahia-plugin:1.0-20090312.152348-8) of type:
> maven-plugin; constructing POM artifact instead.
> [INFO] [jahia:deploy]
> [INFO] Updated template war resources for tomcat v6 in directory
> C:\jahia_v6_CommunityEdition_r25203\webapps\ROOT\templates\my_templates
> [INFO] Copied 0 files.
>
>
> I don't if my problem is link to this error in the template.xml file :
>
> Referenced file contains errors
> (http://www.jahia.net/shemas/templates_2_0.xsd).
> For more information, right click on the message and select "Show
> Details..."
>
> templates.xml My_templates/src/main/webapp/WEB-INF    line 1  XML Problem
>
> TargetNamespace.1 : Expecting namespace
> 'http://www.jahia.net/jahia/templates', but the target namespace of
> the schema document is 'http://www.jahia.org/jahia/templates'.
>
>
> Regards,
>
> Mesdocs.
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Template deployment problem and schema error

2009-03-13 Thread MesDocs ParMail
Thank you. I have modified my templates.xml file.

Till now, I was using the community r25203 edition.

The template deployment action from eclipse does not work anymore for
this edition since the templates are deployed under
webapps/ROOT/templates

I will pick the last build version.

Regards,

Mesdocs.



2009/3/13 Sergiy Shyrkov :
> Hello,
>
> due to our domain server reorganization, please, update the header of
> you templates deployment descriptor (templates.xml) to reference schema
> from the jahia.org Community site, i.e.:
>
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://www.jahia.org/jahia/templates";
> xsi:schemaLocation="http://www.jahia.org/jahia/templates
> http://www.jahia.org/shemas/templates_2_0.xsd";>
>
>
> The corresponding JahiaPedia page is already updated but is waiting for
> approval to be published.
>
>
> Kind regards
> Sergiy
>
>
>
> MesDocs ParMail wrote:
>> Hi,
>>
>> I have tried to deploy my templates via the maven deploy action
>> (described in jahiapedia), but it does not work anymore.
>>
>> In the Eclipse console, there is this output :
>>
>> [WARNING] Attempting to build MavenProject instance for Artifact
>> (org.jahia.server:maven-jahia-plugin:1.0-20090312.152348-8) of type:
>> maven-plugin; constructing POM artifact instead.
>> [INFO] [jahia:deploy]
>> [INFO] Updated template war resources for tomcat v6 in directory
>> C:\jahia_v6_CommunityEdition_r25203\webapps\ROOT\templates\my_templates
>> [INFO] Copied 0 files.
>>
>>
>> I don't if my problem is link to this error in the template.xml file :
>>
>> Referenced file contains errors 
>> (http://www.jahia.net/shemas/templates_2_0.xsd).
>> For more information, right click on the message and select "Show Details..."
>>
>> templates.xml My_templates/src/main/webapp/WEB-INF    line 1  XML Problem
>>
>> TargetNamespace.1 : Expecting namespace
>> 'http://www.jahia.net/jahia/templates', but the target namespace of
>> the schema document is 'http://www.jahia.org/jahia/templates'.
>>
>>
>> Regards,
>>
>> Mesdocs.
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Template deployment problem and schema error

2009-03-13 Thread MesDocs ParMail
Hi,

I have tried to deploy my templates via the maven deploy action
(described in jahiapedia), but it does not work anymore.

In the Eclipse console, there is this output :

[WARNING] Attempting to build MavenProject instance for Artifact
(org.jahia.server:maven-jahia-plugin:1.0-20090312.152348-8) of type:
maven-plugin; constructing POM artifact instead.
[INFO] [jahia:deploy]
[INFO] Updated template war resources for tomcat v6 in directory
C:\jahia_v6_CommunityEdition_r25203\webapps\ROOT\templates\my_templates
[INFO] Copied 0 files.


I don't if my problem is link to this error in the template.xml file :

Referenced file contains errors (http://www.jahia.net/shemas/templates_2_0.xsd).
For more information, right click on the message and select "Show Details..."   

templates.xml   My_templates/src/main/webapp/WEB-INFline 1  XML Problem

TargetNamespace.1 : Expecting namespace
'http://www.jahia.net/jahia/templates', but the target namespace of
the schema document is 'http://www.jahia.org/jahia/templates'.


Regards,

Mesdocs.
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Jahia 6 Community - Page Url

2009-03-11 Thread MesDocs ParMail
Hi,

I'm currently developping a template container which description is

[my_templates:TestContainer] > jnt:container
smallText   TestTitle
bigText TestDescription
page TestURL (page[type="internal,external"])
fileTestFile

In my page, I'd like to have the output

TestTitle

with theReference containing the TestFile downloadUrl or the  TestURL url

has anybody an idea how to get a page url ?

Regards,

Mesdocs
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Counter for user sessions

2009-02-17 Thread MesDocs ParMail
Hello,

does Jahia provide a way to get the number of connected users ?

Regards,
Mesdocs.
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Jahia 6 Community Edition - size of a containerList populated by a query

2009-02-17 Thread MesDocs ParMail
'That's it !

Adding the name attribute to the containerList solves the problem.

Thank you very much.

Mesdocs.

2009/2/17 Jahia papez :
> Hi Mesdocs,
>
> I think the problem in your code is that the name="actusContainer" attribute
> is missing in the  tag. I think that "name" should
> be set as a required attribute. Please try it and let me know, if it worked.
>
> Regards,
> Benjamin
>
> On 17.02.2009 22:08, MesDocs ParMail wrote:
>
> Hello,
>
> I code the template in the same manner as the web_templates.
>
> The taglib has been translated. I found this line of code in the
> resulting java file :
>
> _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean)
> org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${actusList.size
> == 0 }", java.lang.Boolean.class, (PageContext)_jspx_page_context,
> null, false)).booleanValue());
>
> If I do not use the  tag to display the containers, these are
> displayed correctly.
>
> Kind regards,
> Mesdocs.
>
>
> 2009/2/17 Sergiy Shyrkov :
>
>
> Hello,
>
> could you please ensure that your JSP has a tag library declaration for
> JSTL core:
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
>
> Can you check please the generated HTML code of the page? If if contains
>  untranslated JSTL tags, than something is wrong with the JSTL tag lib
> declaration.
> The check ${empty actusList.size} is not quite correct as the
> actusList.size is of type int. To check if the container list is empty
> use: ${actusList.size == 0}
>
> By the way, does the container list is getting displayed at all?
>
> Kind regards
> Sergiy
>
> MesDocs ParMail wrote:
>
>
> Hello,
>
> This the code i test. my_templates derives from web_templates.
>
>
> 
>
> 
>  selectorName="actusListSelector"/>
>  path="${currentSite.JCRPath}"/>
>  value="${maxActus}" />
>  order="${queryConstants.ORDER_DESCENDING}"/>
> 
>
> 
>   actusList is empty
> 
>
> SIZE : ${actusList.size}
>
> 
>   <%@ include
> file="../../../containers/actusContent/smallActusDisplay.jspf" %>
> 
> 
>   <%@ include
> file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>
> 
> 
>
> The ouptut :
>
> actusList is empty
> SIZE :
>
>
> Kind regards
> Medocs
>
> 2009/2/17 Sergiy Shyrkov :
>
>
> Hello,
>
>
> the following example shows how to get the size of a container list (no
> matter if it is populated by a query or not - the size property is
> available on  the ContainerListBean instance, exposed into its scope by
>  tag):
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
> ...
>  actionMenuNamePostFix="events"
>actionMenuNameLabelKey="events"
> sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
>
>  selectorName="eventsSelector"/>
> path="${eventsContainer.JCRPath}"/>
> datePattern="dd/MM/" valueID="today" hours="0"
>  minutes="0"
>  seconds="0"/>
> propertyName="startDate" value="${today.time}"/>
>
>
>...
>do display it
>...
>We have ${eventsContainer.size}events
>
>
>  we have multiple events
>
>
>  we have a single event
>
>
>  no events at all
>
> 
>
>
> Could you give us, please, the example of code, you are trying to use?
>
> Kind regards
> Sergiy
>
> MesDocs ParMail wrote:
>
>
> Hi,
>
> I'd like to retrieve the size of a containerList populated by a query.
> My page  will have different rendering if the result size is 1 or
> more.
>
> I have tested (and printed) the size attribute of the containerList
> tag but it seemed to be empty.
>
> How can I get this information ?
>
> Thanks.
>
> Mesdocs.
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Jahia 6 Community Edition - size of a containerList populated by a query

2009-02-17 Thread MesDocs ParMail
Hello,

I code the template in the same manner as the web_templates.

The taglib has been translated. I found this line of code in the
resulting java file :

_jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${actusList.size
== 0 }", java.lang.Boolean.class, (PageContext)_jspx_page_context,
null, false)).booleanValue());

If I do not use the  tag to display the containers, these are
displayed correctly.

Kind regards,
Mesdocs.


2009/2/17 Sergiy Shyrkov :
> Hello,
>
> could you please ensure that your JSP has a tag library declaration for
> JSTL core:
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
>
> Can you check please the generated HTML code of the page? If if contains
>  untranslated JSTL tags, than something is wrong with the JSTL tag lib
> declaration.
> The check ${empty actusList.size} is not quite correct as the
> actusList.size is of type int. To check if the container list is empty
> use: ${actusList.size == 0}
>
> By the way, does the container list is getting displayed at all?
>
> Kind regards
> Sergiy
>
> MesDocs ParMail wrote:
>> Hello,
>>
>> This the code i test. my_templates derives from web_templates.
>>
>>
>> 
>>
>> 
>> > selectorName="actusListSelector"/>
>> > path="${currentSite.JCRPath}"/>
>> > value="${maxActus}" />
>> > order="${queryConstants.ORDER_DESCENDING}"/>
>> 
>>
>> 
>>   actusList is empty
>> 
>>
>> SIZE : ${actusList.size}
>>
>> 
>>   <%@ include
>> file="../../../containers/actusContent/smallActusDisplay.jspf" %>
>> 
>> 
>>   <%@ include
>> file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>
>> 
>> 
>>
>> The ouptut :
>>
>> actusList is empty
>> SIZE :
>>
>>
>> Kind regards
>> Medocs
>>
>> 2009/2/17 Sergiy Shyrkov :
>>> Hello,
>>>
>>>
>>> the following example shows how to get the size of a container list (no
>>> matter if it is populated by a query or not - the size property is
>>> available on  the ContainerListBean instance, exposed into its scope by
>>>  tag):
>>>
>>> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
>>> ...
>>> >> actionMenuNamePostFix="events"
>>>actionMenuNameLabelKey="events"
>>> sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
>>>
>>> >> selectorName="eventsSelector"/>
>>>>> path="${eventsContainer.JCRPath}"/>
>>>>> datePattern="dd/MM/" valueID="today" hours="0"
>>>  minutes="0"
>>>  seconds="0"/>
>>>>> propertyName="startDate" value="${today.time}"/>
>>>
>>>
>>>...
>>>do display it
>>>...
>>>We have ${eventsContainer.size}events
>>>
>>>
>>>  we have multiple events
>>>
>>>
>>>  we have a single event
>>>
>>>
>>>  no events at all
>>>
>>> 
>>>
>>>
>>> Could you give us, please, the example of code, you are trying to use?
>>>
>>> Kind regards
>>> Sergiy
>>>
>>> MesDocs ParMail wrote:
>>>> Hi,
>>>>
>>>> I'd like to retrieve the size of a containerList populated by a query.
>>>> My page  will have different rendering if the result size is 1 or
>>>> more.
>>>>
>>>> I have tested (and printed) the size attribute of the containerList
>>>> tag but it seemed to be empty.
>>>>
>>>> How can I get this information ?
>>>>
>>>> Thanks.
>>>>
>>>> Mesdocs.
>>>> ___
>>>> template_list mailing list
>>>> template_list@jahia.org
>>>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>>>
>>> ___
>>> template_list mailing list
>>> template_list@jahia.org
>>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>>
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


Re: [template_list] Jahia 6 Community Edition - size of a containerList populated by a query

2009-02-17 Thread MesDocs ParMail
Hello,

This the code i test. my_templates derives from web_templates.












actusList is empty


SIZE : ${actusList.size}


<%@ include
file="../../../containers/actusContent/smallActusDisplay.jspf" %>


<%@ include
file="../../../containers/actusContent/smallOneActuDisplay.jspf" %>



The ouptut :

actusList is empty
SIZE :


Kind regards
Medocs

2009/2/17 Sergiy Shyrkov :
> Hello,
>
>
> the following example shows how to get the size of a container list (no
> matter if it is populated by a query or not - the size property is
> available on  the ContainerListBean instance, exposed into its scope by
>  tag):
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
> ...
>  actionMenuNamePostFix="events"
>actionMenuNameLabelKey="events"
> sortByField="${sortBy}" enforceDefinedSort="true" sortOrder="${order}">
>
>  selectorName="eventsSelector"/>
> path="${eventsContainer.JCRPath}"/>
> datePattern="dd/MM/" valueID="today" hours="0"
>  minutes="0"
>  seconds="0"/>
> propertyName="startDate" value="${today.time}"/>
>
>
>...
>do display it
>...
>    We have ${eventsContainer.size}events
>
>
>  we have multiple events
>
>
>  we have a single event
>
>
>  no events at all
>
> 
>
>
> Could you give us, please, the example of code, you are trying to use?
>
> Kind regards
> Sergiy
>
> MesDocs ParMail wrote:
>> Hi,
>>
>> I'd like to retrieve the size of a containerList populated by a query.
>> My page  will have different rendering if the result size is 1 or
>> more.
>>
>> I have tested (and printed) the size attribute of the containerList
>> tag but it seemed to be empty.
>>
>> How can I get this information ?
>>
>> Thanks.
>>
>> Mesdocs.
>> ___
>> template_list mailing list
>> template_list@jahia.org
>> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>>
>
> ___
> template_list mailing list
> template_list@jahia.org
> http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
>
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Jahia 6 Community Edition - size of a containerList populated by a query

2009-02-16 Thread MesDocs ParMail
Hi,

I'd like to retrieve the size of a containerList populated by a query.
My page  will have different rendering if the result size is 1 or
more.

I have tested (and printed) the size attribute of the containerList
tag but it seemed to be empty.

How can I get this information ?

Thanks.

Mesdocs.
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Jahia 6 - Length of a container field

2009-02-10 Thread MesDocs ParMail
Hi,

How can I test the length of a container field (BigText) ?

In version 5 of jahia I did the following  via scriptlet :

String MyFieldDesc = myContainer.getFieldValue("FieldDesc","");
String excerpt = removeTags(MyFieldDesc);
if ((excerpt.length()) > 0) {
.
}

In Jahia 6 I can access the field with the following statement :




Thanks
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Jahia 6 Community Edition : navigationmenu issue

2009-02-06 Thread MesDocs ParMail
Hi all,

Reading the documentation on the jahia site, I modified the nav.jspf
file in web_templates to see the navigationMenu behaviour with
kind="dropDownMenu"

As a result, the menu has disappeared.

In the tomcat console, I find this

WARN  [org.jahia.bin.errors.ErrorLoggingFilter] - Requested resource
is not available:
/jsp/jahia/gwt/org.jahia.ajax.gwt.navmenu.NavmenuManager/org.jahia.ajax.gwt.navmenu.NavmenuManager.nocache.js


it seems there are missing files during the installation process.

Regards,

Mesdocs
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list


[template_list] Jahia 6 Community Edition - ui:navigationMenu issue

2009-02-06 Thread MesDocs ParMail
Hi all,

Reading the documentation on the jahia site, I modified the nav.jspf
file in web_templates to see the navigationMenu behaviour with
kind="dropDownMenu"

As a result, the menu has disappeared.

In the tomcat console, I find this

WARN  [org.jahia.bin.errors.ErrorLoggingFilter] - Requested resource
is not available:
/jsp/jahia/gwt/org.jahia.ajax.gwt.navmenu.NavmenuManager/org.jahia.ajax.gwt.navmenu.NavmenuManager.nocache.js


it seems there are missing files during the installation process.

Regards,

Mesdocs
___
template_list mailing list
template_list@jahia.org
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list