[magnolia-dev] Re: How can integrate my Java code in Magnolia

2014-10-30 Thread michela dimastrochicco (via Magnolia Forums)
Thank you Federico,Gavan 
i will explain better the situation.
I have to built a web site that use the standard template of magnolia but i 
want to integrate with my code the standard template  for example adding 
servelet and web services write by me in Java.
How can i deploy my custom code?

I found this "guide":

1. Create a Java-Project

2. Add 2 Source-Folders: "src" and "resources"

3. In "src", put your module's java code

4. In "resources", put the module's resource dirs and files like 
"mgnl-resources", "mgnl-bootstrap" and "META-INF"

If you export the resulting project as a JAR, you will have a perfect magnolia 
module.

Getting hot-code-replace to work will be more tricky, I'm not sure it will be 
possible:

1. Set up a Tomcat 6 instance in Eclipse

2. Create a new "Dynamic Web Project", eg: 'magnoliaAuthor'

3. Copy all of magnolia into the web project. Basically, the contents of 
"magnoliaAuthor" go inside the "WebContent" directory.

4. Create a dependency on your module project in the web project. Go to 
"Properties" on your web project

a. add the module project to the 'java build path' in the tab 'projects'

b. add the module project in the 'java EE module dependencies'

At this point, if you start the tomcat server via eclipse, your module will be 
automatically added to the WEB-INF/lib folder as a jar.

However, in my experience hot-code-replace does not work in this scenario, as 
eclipse or tomcat will restart the web-app (magnolia) when the jar containing 
your module is changed.

In theory, I think you could get hot-code-replace to work in some situations 
with the following trick:

Temporarily move the java code from your module into the "src" folder of your 
dynamic web project. Changes made to the classes should now get 
hot-code-replaced (although that depends on the type of change you make).
Once you are happy that everything is working, move the java files back into 
your module project.


It is correct??

I try to do it but when i start the tomcat on the port 8180 if i write 
localhost:8180/myproject he show me a duplicate of standard tree of magnolia.

It is the best way? I'm perplexed because following this guide i have to copy " 
the contents of "magnoliaAuthor"  inside the "WebContent" directory"

so my question is, if something change in the folder magnoliaAuthor i have to 
copy everytime the content in my local folder WebContent?

is not a best way in my opinion.
If you know anothe way to do it please suggests to me..the documentation about 
magnolia is not adeguate .

thank you in advance
Michela

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=fef3652f-19f8-495c-bffe-dacb495b3d14



For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 




[magnolia-dev] [JIRA] (MGNLUI-3169) I18n'ize complex fields

2014-10-30 Thread on behalf of Mikaël Geljic














































Mikaël Geljic
 updated  MGNLUI-3169


I18n'ize complex fields
















Here's a little recap on the few isolated issues involved here:

1.  First, the provided definition is wrong. Setting i18n to true on a MultiField means that you want to store a whole different set of entries per locale. (hardly makes sense for the CompositeField either).
2.  Complex fields' default transformers are known not to work with i18n. We might as well deprecate them.
For i18n, use the "delegating" transformers instead:

	for CompositeField and SwitchableField:
	
		info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer
	
	
	for MultiField:
	
		info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueFieldTransformer
		info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueSubnodeTransformer
		
			 newly introduced here, same storage strategy as non-i18n-friendly MultiValueSubChildrenNodePropertiesTransformer
		
		
	
	



3.  The form would not show the language select, if no first-level field had i18n set to true (but only one "nested" TextField had). Now it looks up deeper to find potentially i18nized sub-fields.
4.  MultiField and CompositeField were not locale-aware, thus new entries were never i18nized, hence the missing (en) suffixes. Now they are.
5. Finally, I did some cleanup to get rid of unused i18nContentSupport in these complex fields — which they shouldn't use anyway — I18nAuthoringSupport was rather used instead.

Also attached the resulting correct dialog definition (transformers, i18n set only on one textfield).





Change By:


Mikaël Geljic
(30/Oct/14 5:06 PM)




Summary:


I18n'ize
 composite field
 complex fields





Attachment:


compositeDialog.mge.xml



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira








For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 





[magnolia-dev] Re: How can integrate my Java code in Magnolia

2014-10-30 Thread federico grilli (via Magnolia Forums)
Hi Michela,

Maven is just a convenient tool to manage dependencies and build your project. 
There are alternatives to it, Ivy and Ant for instance. Provided you layout 
your module as Magnolia expects it (see 
http://academy.magnolia-cms.com/display/MA/U2+Module+structure), you can use 
any tool to produce your jar, even your IDE (e.g.  see here how to do it with 
Eclipse 
http://stackoverflow.com/questions/423938/java-export-to-an-jar-file-in-eclipse).

HTH,

Federico

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=fef3652f-19f8-495c-bffe-dacb495b3d14



For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 




[magnolia-dev] Re: How can integrate my Java code in Magnolia

2014-10-30 Thread Gavan Stockdale (via Magnolia Forums)
Hey Michela. 

Thanks for this.

JAR would suggest a module. Provide some more context.. There are different 
ways of deploying modules (popping in the jar, module dependencies etc.). But 
you also say custom code. Are you perhaps talking about a config file? In which 
case you should read up on bootstrapping. 

Talk us through your precise scenario and I am certain someone will provide a 
clearer answer than mine. :) 

G.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=fef3652f-19f8-495c-bffe-dacb495b3d14



For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 




[magnolia-dev] [JIRA] (MGNLCACHE-78) Move store caching configuration into cachePolicy

2014-10-30 Thread on behalf of Grégory Joseph














































Grégory Joseph
 updated  MGNLCACHE-78


Move store caching configuration into cachePolicy
















Change By:


Grégory Joseph
(30/Oct/14 3:55 PM)




Summary:


Move
 store
 caching configuration into cachePolicy



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira








For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 





[magnolia-dev] How can integrate my Java code in Magnolia

2014-10-30 Thread michela dimastrochicco (via Magnolia Forums)
Hi all,
reading the documentation i see that for the deploy of my custom code(Java)i 
need to use Maven,
Is Maven mandatory? there is a way to add my jar without Maven?
Can you explain to me how?
Thank you
Michela

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=fef3652f-19f8-495c-bffe-dacb495b3d14



For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 




[magnolia-dev] I went to the American Diabetes

2014-10-30 Thread terry jhon (via Magnolia Forums)
I went to the American Diabetes Association 2007 stats are what they had on 
their website about 24 million adults and children 720preserve our population 
have diabetes this is almost amazing sixty million pre-diabetes so you see how 
this is going to really increase in our lifetime tremendously and it you know 
something that that each and every one of us has to be an agent of change with 
those that we touch in reach in our training 1.6 million new cases the diabetes 
diagnosed in people greater than 20 years of age so 
[url=http://www.optimalstackfacts.org/fb1-test/]fb1-test[/url] not Hispanic 
white about 6.6 per set Asians asian-american 7.5 percent at nine is panic 
blacks 11-play 8 per set but most did you know that with Hispanics when I R in 
the southwest Hispanics thatperset I love diabetes is the same as blacks pretty 
close that that is %eh wife that wipes out around 12 percent for those the view 
that are in populations where there are a lot of Hispanics just to be a very 
closely aware that one in three Americans born in 2000 or later will develop 
diabetes and I think I want to really bookmark this spot each and every one of 
us will be working more and more members diabetes and I told when my initial 
thrust into this area because many in.
http://www.optimalstackfacts.org/fb1-test/

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=d2597b3d-0b03-4872-a0c9-fb49154163f3



For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 




[magnolia-dev] [JIRA] (MGNLFORM-249) Issue in FormStateUtil when the path contains special char

2014-10-30 Thread JIRA (on behalf of Federico Grilli)














































Federico Grilli
 updated  MGNLFORM-249


Issue in FormStateUtil when the path contains special char
















Change By:


Federico Grilli
(30/Oct/14 10:47 AM)




Issue Type:


Task
Bug



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira








For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 





[magnolia-dev] [JIRA] (MGNLFORM-249) Issue in FormStateUtil when the path contains special char

2014-10-30 Thread JIRA (on behalf of Federico Grilli)














































Federico Grilli
 updated  MGNLFORM-249


Issue in FormStateUtil when the path contains special char
















Change By:


Federico Grilli
(30/Oct/14 10:47 AM)




Fix Version/s:


2.2.9



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira








For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: 





[magnolia-dev] [JIRA] (MGNLFORM-249) Issue in FormStateUtil when the path contains special char

2014-10-30 Thread JIRA (on behalf of Eric Hechinger)














































Eric Hechinger
 updated  MGNLFORM-249


Issue in FormStateUtil when the path contains special char
















Change By:


Eric Hechinger
(30/Oct/14 10:37 AM)




Summary:


Issue in FormStateUtil when the
 pass
 path
 contains special char



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira








For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: