|
List Info
Thread: presets => palettes
|
|
| presets => palettes |
  Sweden |
2007-04-09 07:31:14 |
Hi,
Presets are now stored inside palettes (which are simply
collection of
presets).
so instead of registering presets directly as individual
NXRuntime
contributions like this:
<extension
target="org.nuxeo.theme.services.ThemeService"
point="presets">
<preset name="arial" value="12px
Arial" category="font" />
<preset name="verdana" value="12px
Verdana" category="font" />
<preset name="georgia" value="13px
Georgia" category="font" />
</extension>
create a palette instead:
<extension
target="org.nuxeo.theme.services.ThemeService"
point="presets">
<palette name="default fonts"
src="nxthemes/demo/palettes/fonts.properties"
category="font" />
</extension>
with 'nxthemes/demo/palettes/fonts.properties':
arial=12px Arial
verdana=12px Verdana
georgia=13px Georgia
- the "src" parameter can be a URL too (e.g.
http://server
/palettes/fonts.properties)
- the "name" parameter is added to the preset
name
- the "category" parameter is used in the style
editor to make it
possible to select items among 'font', 'color', 'image',
categories.
this will offer the possibility to manage presets inside the
theme
editor in the same way as themes are managed allowed
importing /
exporting / reloading
supported palette types are currently:
- *.properties files
- Gimp palettes (*.gpl)
note that the filename extension matters
I'm looking to see how to import Photoshop color palettes
(*.aco) the
file format is described at: http://www.du
o-creative.com/chrisb/aco/
and http://www.nomodes.co
m/aco.html
when the server starts the log file will read (see:
org.nuxeo.theme.demo):
14:15:18,384 INFO [TypeRegistry] Registered PALETTE: tango
14:15:18,393 INFO [TypeRegistry] Registered PRESET: Plum 2
(tango)
14:15:18,394 INFO [TypeRegistry] Registered PRESET:
Chameleon 1 (tango)
14:15:18,394 INFO [TypeRegistry] Registered PRESET: Plum 1
(tango)
14:15:18,394 INFO [TypeRegistry] Registered PRESET: Scarlet
Red 3 (tango)
14:15:18,394 INFO [TypeRegistry] Registered PRESET:
Chocolate 3 (tango)
14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Aluminium 5 (tango)
14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Aluminium 2 (tango)
14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Chocolate 2 (tango)
14:15:18,395 INFO [TypeRegistry] Registered PRESET: Orange
3 (tango)
14:15:18,395 INFO [TypeRegistry] Registered PRESET: Butter
2 (tango)
14:15:18,396 INFO [TypeRegistry] Registered PRESET:
Chameleon 3 (tango)
14:15:18,396 INFO [TypeRegistry] Registered PRESET:
Aluminium 3 (tango)
14:15:18,406 INFO [TypeRegistry] Registered PRESET: Butter
1 (tango)
14:15:18,406 INFO [TypeRegistry] Registered PRESET: Scarlet
Red 2 (tango)
14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Aluminium 1 (tango)
14:15:18,407 INFO [TypeRegistry] Registered PRESET: Orange
2 (tango)
14:15:18,407 INFO [TypeRegistry] Registered PRESET: Sky
Blue 1 (tango)
14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Aluminium 4 (tango)
14:15:18,407 INFO [TypeRegistry] Registered PRESET: Sky
Blue 2 (tango)
14:15:18,408 INFO [TypeRegistry] Registered PRESET: Butter
3 (tango)
14:15:18,408 INFO [TypeRegistry] Registered PRESET:
Chameleon 2 (tango)
14:15:18,408 INFO [TypeRegistry] Registered PRESET: Sky
Blue 3 (tango)
14:15:18,408 INFO [TypeRegistry] Registered PRESET:
Aluminium 6 (tango)
14:15:18,409 INFO [TypeRegistry] Registered PRESET: Plum 3
(tango)
14:15:18,409 INFO [TypeRegistry] Registered PRESET: Orange
1 (tango)
14:15:18,409 INFO [TypeRegistry] Registered PRESET:
Chocolate 1 (tango)
14:15:18,409 INFO [TypeRegistry] Registered PRESET: Scarlet
Red 1 (tango)
14:15:18,410 INFO [TypeRegistry] Registered PALETTE:
borders
14:15:18,411 INFO [TypeRegistry] Registered PRESET: dotted
(borders)
14:15:18,412 INFO [TypeRegistry] Registered PRESET: solid
(borders)
14:15:18,412 INFO [TypeRegistry] Registered PALETTE:
default fonts
14:15:18,412 INFO [TypeRegistry] Registered PRESET: arial
(default fonts)
14:15:18,413 INFO [TypeRegistry] Registered PRESET: verdana
(default fonts)
14:15:18,413 INFO [TypeRegistry] Registered PRESET: georgia
(default fonts)
/JM
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  France |
2007-04-09 10:33:40 |
Yo Jean-Marc,
sounds soooo cool!
i'll try that tomorrow, first thing!
++
Le Apr 9, 2007 à 2:31 PM, Jean-Marc Orliaguet a écrit :
> Hi,
>
> Presets are now stored inside palettes (which are
simply collection
> of presets).
>
> so instead of registering presets directly as
individual NXRuntime
> contributions like this:
>
> <extension
target="org.nuxeo.theme.services.ThemeService"
> point="presets">
> <preset name="arial" value="12px
Arial" category="font" />
> <preset name="verdana"
value="12px Verdana" category="font"
/>
> <preset name="georgia"
value="13px Georgia" category="font"
/>
> </extension>
>
> create a palette instead:
>
> <extension
target="org.nuxeo.theme.services.ThemeService"
> point="presets">
> <palette name="default fonts"
src="nxthemes/demo/palettes/
> fonts.properties" category="font" />
> </extension>
>
> with 'nxthemes/demo/palettes/fonts.properties':
> arial=12px Arial
> verdana=12px Verdana
> georgia=13px Georgia
>
> - the "src" parameter can be a URL too (e.g.
http://server/palettes/
> fonts.properties)
> - the "name" parameter is added to the preset
name
> - the "category" parameter is used in the
style editor to make it
> possible to select items among 'font', 'color',
'image', categories.
>
> this will offer the possibility to manage presets
inside the theme
> editor in the same way as themes are managed allowed
importing /
> exporting / reloading
>
> supported palette types are currently:
> - *.properties files
> - Gimp palettes (*.gpl)
>
> note that the filename extension matters
>
> I'm looking to see how to import Photoshop color
palettes (*.aco)
> the file format is described at: http://www.duo-cr
eative.com/chrisb/
> aco/ and http://www.nomodes.co
m/aco.html
>
> when the server starts the log file will read (see:
> org.nuxeo.theme.demo):
>
> 14:15:18,384 INFO [TypeRegistry] Registered PALETTE:
tango
> 14:15:18,393 INFO [TypeRegistry] Registered PRESET:
Plum 2 (tango)
> 14:15:18,394 INFO [TypeRegistry] Registered PRESET:
Chameleon 1
> (tango)
> 14:15:18,394 INFO [TypeRegistry] Registered PRESET:
Plum 1 (tango)
> 14:15:18,394 INFO [TypeRegistry] Registered PRESET:
Scarlet Red 3
> (tango)
> 14:15:18,394 INFO [TypeRegistry] Registered PRESET:
Chocolate 3
> (tango)
> 14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Aluminium 5
> (tango)
> 14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Aluminium 2
> (tango)
> 14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Chocolate 2
> (tango)
> 14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Orange 3 (tango)
> 14:15:18,395 INFO [TypeRegistry] Registered PRESET:
Butter 2 (tango)
> 14:15:18,396 INFO [TypeRegistry] Registered PRESET:
Chameleon 3
> (tango)
> 14:15:18,396 INFO [TypeRegistry] Registered PRESET:
Aluminium 3
> (tango)
> 14:15:18,406 INFO [TypeRegistry] Registered PRESET:
Butter 1 (tango)
> 14:15:18,406 INFO [TypeRegistry] Registered PRESET:
Scarlet Red 2
> (tango)
> 14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Aluminium 1
> (tango)
> 14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Orange 2 (tango)
> 14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Sky Blue 1
> (tango)
> 14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Aluminium 4
> (tango)
> 14:15:18,407 INFO [TypeRegistry] Registered PRESET:
Sky Blue 2
> (tango)
> 14:15:18,408 INFO [TypeRegistry] Registered PRESET:
Butter 3 (tango)
> 14:15:18,408 INFO [TypeRegistry] Registered PRESET:
Chameleon 2
> (tango)
> 14:15:18,408 INFO [TypeRegistry] Registered PRESET:
Sky Blue 3
> (tango)
> 14:15:18,408 INFO [TypeRegistry] Registered PRESET:
Aluminium 6
> (tango)
> 14:15:18,409 INFO [TypeRegistry] Registered PRESET:
Plum 3 (tango)
> 14:15:18,409 INFO [TypeRegistry] Registered PRESET:
Orange 1 (tango)
> 14:15:18,409 INFO [TypeRegistry] Registered PRESET:
Chocolate 1
> (tango)
> 14:15:18,409 INFO [TypeRegistry] Registered PRESET:
Scarlet Red 1
> (tango)
> 14:15:18,410 INFO [TypeRegistry] Registered PALETTE:
borders
> 14:15:18,411 INFO [TypeRegistry] Registered PRESET:
dotted (borders)
> 14:15:18,412 INFO [TypeRegistry] Registered PRESET:
solid (borders)
> 14:15:18,412 INFO [TypeRegistry] Registered PALETTE:
default fonts
> 14:15:18,412 INFO [TypeRegistry] Registered PRESET:
arial (default
> fonts)
> 14:15:18,413 INFO [TypeRegistry] Registered PRESET:
verdana
> (default fonts)
> 14:15:18,413 INFO [TypeRegistry] Registered PRESET:
georgia
> (default fonts)
>
> /JM
> _______________________________________________
> ECM mailing list
> ECM lists.nuxeo.com
> http://li
sts.nuxeo.com/mailman/listinfo/ecm
>
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  France |
2007-04-10 08:56:19 |
Hi,
> Presets are now stored inside palettes (which are
simply collection
> of presets).
>
> create a palette instead:
>
> <extension
target="org.nuxeo.theme.services.ThemeService"
> point="presets">
> <palette name="default fonts"
src="nxthemes/demo/palettes/
> fonts.properties" category="font" />
> </extension>
ok
where would it be wise to put the nuxeo-default palettes
according to
you ?
i was thinking of ...webapp/resources/WEB-INF/palettes, what
do you
think?
>
> with 'nxthemes/demo/palettes/fonts.properties':
> arial=12px Arial
> verdana=12px Verdana
> georgia=13px Georgia
ok
(by the way, can i put spaces in the name, before the = ? or
only .
and - ?)
>
> - the "src" parameter can be a URL too (e.g.
http://server/palettes/
> fonts.properties)
> - the "name" parameter is added to the preset
name
> - the "category" parameter is used in the
style editor to make it
> possible to select items among 'font', 'color',
'image', categories.
>
> this will offer the possibility to manage presets
inside the theme
> editor in the same way as themes are managed allowed
importing /
> exporting / reloading
how do i call the preset arial of default fonts in
nxthemes-setup ?
<font preset="..." /> ?
>
> when the server starts the log file will read
that i can't get!
i can't get either the presetted values through the style
picker in
the editor because when i click on the icon i get :
15:48:06,511 ERROR [[Faces Servlet]] Servlet.service() for
servlet
Faces Servlet threw exception
java.lang.NullPointerException
at org.nuxeo.theme.types.TypeRegistry.getTypes
(TypeRegistry.java:69)
at
org.nuxeo.theme.jsf.editor.managers.UiManager.getPresetsForC
urrentCatego
ry(UiManager.java:411)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:112)
at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed
(InvocationContextImpl.java:166)
at
org.jboss.seam.intercept.EJBInvocationContext.proceed
(EJBInvocationContext.java:37)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:55)
at
org.jboss.seam.interceptors.BijectionInterceptor.bijectNonre
entrantCompo
nent(BijectionInterceptor.java:79)
at
org.jboss.seam.interceptors.BijectionInterceptor.bijectCompo
nent
(BijectionInterceptor.java:58)
at
sun.reflect.GeneratedMethodAccessor128.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutc
ome
(OutcomeInterceptor.java:21)
at
sun.reflect.GeneratedMethodAccessor127.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeg
inLongRunnin
gConversation(ConversationInterceptor.java:52)
at
sun.reflect.GeneratedMethodAccessor125.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.interceptors.BusinessProcessInterceptor.manag
eBusinessPro
cessContext(BusinessProcessInterceptor.java:51)
at
sun.reflect.GeneratedMethodAccessor124.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.interceptors.MethodContextInterceptor.aroundI
nvoke
(MethodContextInterceptor.java:27)
at
sun.reflect.GeneratedMethodAccessor123.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.intercept.RootInterceptor.createSeamInvocatio
nContext
(RootInterceptor.java:144)
at
org.jboss.seam.intercept.RootInterceptor.invokeInContexts
(RootInterceptor.java:129)
at org.jboss.seam.intercept.RootInterceptor.invoke
(RootInterceptor.java:102)
at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke
(SessionBeanInterceptor.java:50)
at
sun.reflect.GeneratedMethodAccessor131.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed
(InvocationContextImpl.java:118)
at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invok
e
(EJB3InterceptorsInterceptor.java:63)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.ejb3.entity.TransactionScopedEntityManagerIntercep
tor.invoke
(TransactionScopedEntityManagerInterceptor.java:54)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke
(AllowedOperationsInterceptor.java:47)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:
79)
at
org.jboss.aspects.tx.TxInterceptor$Required.invoke
(TxInterceptor.java:197)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke
(TxPropagationInterceptor.java:76)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke
(StatelessInstanceInterceptor.java:62)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.aspects.security.AuthenticationInterceptor.invoke
(AuthenticationInterceptor.java:78)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke
(ENCPropagationInterceptor.java:47)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke
(AsynchronousInterceptor.java:106)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext
(MethodInvocation.java:101)
at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke
(StatelessContainer.java:181)
at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke
(StatelessLocalProxy.java:79)
at $Proxy245.getPresetsForCurrentCategory(Unknown
Source)
at
org.nuxeo.theme.jsf.editor.managers.UiManagerLocal$
$FastClassByCGLIB$$6021728c.invoke(<generated>)
at
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at
org.jboss.seam.intercept.RootInvocationContext.proceed
(RootInvocationContext.java:45)
at
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed
(ClientSideInterceptor.java:74)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:55)
at
org.jboss.seam.interceptors.ExceptionInterceptor.handleExcep
tions
(ExceptionInterceptor.java:39)
at
sun.reflect.GeneratedMethodAccessor122.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.interceptors.SynchronizationInterceptor.seria
lize
(SynchronizationInterceptor.java:31)
at
sun.reflect.GeneratedMethodAccessor126.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at
org.jboss.seam.intercept.Interceptor.aroundInvoke
(Interceptor.java:169)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed
(SeamInvocationContext.java:64)
at
org.jboss.seam.intercept.RootInterceptor.createSeamInvocatio
nContext
(RootInterceptor.java:144)
at
org.jboss.seam.intercept.RootInterceptor.invokeInContexts
(RootInterceptor.java:129)
at org.jboss.seam.intercept.RootInterceptor.invoke
(RootInterceptor.java:102)
at
org.jboss.seam.intercept.ClientSideInterceptor.interceptInvo
cation
(ClientSideInterceptor.java:83)
at
org.jboss.seam.intercept.ClientSideInterceptor.intercept
(ClientSideInterceptor.java:52)
at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$
$ada4a534.getPresetsForCurrentCategory(<generated>)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
javax.el.BeanELResolver.getValue(BeanELResolver.java:218)
at
org.nuxeo.ecm.platform.ui.web.resolver.DocumentModelResolver
.getValue
(DocumentModelResolver.java:67)
at javax.el.CompositeELResolver.getValue
(CompositeELResolver.java:135)
at
com.sun.faces.el.FacesCompositeELResolver.getValue
(FacesCompositeELResolver.java:64)
at
com.sun.el.parser.AstValue.getValue(AstValue.java:117)
at com.sun.el.ValueExpressionImpl.getValue
(ValueExpressionImpl.java:192)
at com.sun.facelets.el.TagValueExpression.getValue
(TagValueExpression.java:71)
at
javax.faces.component.ValueBindingValueExpressionAdapter.get
Value
(ValueBindingValueExpressionAdapter.java:102)
at com.sun.facelets.component.UIRepeat.getValue
(UIRepeat.java:143)
at com.sun.facelets.component.UIRepeat.getDataModel
(UIRepeat.java:121)
at com.sun.facelets.component.UIRepeat.setIndex
(UIRepeat.java:305)
at
com.sun.facelets.component.UIRepeat.process(UIRepeat.java:
333)
at
com.sun.facelets.component.UIRepeat.encodeChildren
(UIRepeat.java:617)
at javax.faces.component.UIComponent.encodeAll
(UIComponent.java:886)
at javax.faces.component.UIComponent.encodeAll
(UIComponent.java:892)
at com.sun.facelets.FaceletViewHandler.renderView
(FaceletViewHandler.java:578)
at
org.apache.myfaces.trinidadinternal.application.ViewHandlerI
mpl.renderVi
ew(ViewHandlerImpl.java:182)
at org.jboss.seam.jsf.SeamViewHandler.renderView
(SeamViewHandler.java:59)
at
org.ajax4jsf.framework.ViewHandlerWrapper.renderView
(ViewHandlerWrapper.java:101)
at
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView
(AjaxViewHandler.java:221)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute
(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase
(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render
(LifecycleImpl.java:144)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:
245)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
(ExtensionsFilter.java:100)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.nuxeo.ecm.webapp.shield.SessionExpirationFilter.doFilter
(SessionExpirationFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
(ExtensionsFilter.java:147)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.jboss.seam.servlet.SeamRedirectFilter.doFilter
(SeamRedirectFilter.java:32)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.jboss.seam.servlet.SeamExceptionFilter.doFilter
(SeamExceptionFilter.java:46)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImp
l._invokeDoF
ilter(TrinidadFilterImpl.java:210)
at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImp
l._doFilterI
mpl(TrinidadFilterImpl.java:167)
at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImp
l.doFilter
(TrinidadFilterImpl.java:140)
at
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter
(TrinidadFilter.java:93)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFil
ter
(BaseXMLFilter.java:75)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter
(BaseFilter.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter
(FancyURLFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter
(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invok
e
(SecurityAssociationValve.java:175)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase.java:524)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke
(JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtoco
l.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
++
t
--
Thibaut Soulcié – GraphicDesign – Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com
& http://www.nuxeo.org
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  Sweden |
2007-04-10 09:37:28 |
Thibaut Soulcié wrote:
> Hi,
>
>
>> Presets are now stored inside palettes (which are
simply collection
>> of presets).
>>
>> create a palette instead:
>>
>> <extension
target="org.nuxeo.theme.services.ThemeService"
>> point="presets">
>> <palette name="default fonts"
>>
src="nxthemes/demo/palettes/fonts.properties"
category="font" />
>> </extension>
> ok
> where would it be wise to put the nuxeo-default
palettes according to
> you ?
> i was thinking of ...webapp/resources/WEB-INF/palettes,
what do you
> think?
webapp/resources/themes/palettes
I would say
WEB-INF is somehow reserved for J2EE web files I guess
>>
>> with 'nxthemes/demo/palettes/fonts.properties':
>> arial=12px Arial
>> verdana=12px Verdana
>> georgia=13px Georgia
>
> ok
> (by the way, can i put spaces in the name, before the =
? or only .
> and - ?)
according to the spec you can, but they must be escaped:
http://java.sun.com/j2se/1.5.0/docs/api/java/ut
il/Properties.html
I haven't tested yet though ...
>
>>
>> - the "src" parameter can be a URL too
(e.g.
>> http://server
/palettes/fonts.properties)
>> - the "name" parameter is added to the
preset name
>> - the "category" parameter is used in the
style editor to make it
>> possible to select items among 'font', 'color',
'image', categories.
>>
>> this will offer the possibility to manage presets
inside the theme
>> editor in the same way as themes are managed
allowed importing /
>> exporting / reloading
>
> how do i call the preset arial of default fonts in
nxthemes-setup ?
> <font preset="..." /> ?
<font preset="preset name (palette name)"
/>
>
>>
>> when the server starts the log file will read
> that i can't get!
>
that was an example (unless you have org.nuxeo.theme.demo
installed you
won't get access to the palettes installed in it )
see
http://svn.nuxeo.org/nuxeo
/org.nuxeo.theme/trunk/demo/resources/nxthemes/demo/palettes
http://svn.nuxeo.org/nux
eo/org.nuxeo.theme/trunk/demo/OSGI-INF/nxthemes-demo-contrib
.xml
> i can't get either the presetted values through the
style picker in
> the editor because when i click on the icon i get :
>
> 15:48:06,511 ERROR [[Faces Servlet]] Servlet.service()
for servlet
> Faces Servlet threw exception
> java.lang.NullPointerException
> at
>
org.nuxeo.theme.types.TypeRegistry.getTypes(TypeRegistry.jav
a:69)
I know. it seems to be related to Ajax4Jsf, I don't get the
error in
org.nuxeo.theme.demo. I'll have to see what makes the
difference in the
setup.
By the way photoshop palettes are now supported
best
/JM
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  France |
2007-04-10 11:09:50 |
Le Apr 10, 2007 à 4:37 PM, Jean-Marc Orliaguet a écrit :
>> ok
>> where would it be wise to put the nuxeo-default
palettes according
>> to you ?
>> i was thinking of
...webapp/resources/WEB-INF/palettes, what do
>> you think?
> webapp/resources/themes/palettes
>
> I would say
>
> WEB-INF is somehow reserved for J2EE web files I guess
ok
>>>
>>> - the "src" parameter can be a URL
too (e.g. http://server/
>>> palettes/fonts.properties)
>>> - the "name" parameter is added to
the preset name
>>> - the "category" parameter is used in
the style editor to make it
>>> possible to select items among 'font', 'color',
'image', categories.
about that, to me colors are colors, so can i do something
like that :
<palette name="Nuxeo default colors"
src="themes/palettes/
nxcolors.aco" category="color,border-color,"
/>
? what should i use ? color, border-... or mayve
color|border... ?
>
> <font preset="preset name (palette name)"
/>
ok
>
>>
>>>
>>> when the server starts the log file will read
>> that i can't get!
>>
>
> that was an example (unless you have
org.nuxeo.theme.demo installed
> you won't get access to the palettes installed in it
)
> see http://svn.nuxeo.org/nuxeo/org.nuxeo.theme/trunk
/demo/resources/
> nxthemes/demo/palettes
> http://svn.nuxeo.org/nuxeo/org.nuxeo.theme/trunk/
demo/OSGI-INF/
> nxthemes-demo-contrib.xml
i can't get it, even if i put preset palettes in
theme-contrib.xml,
is what i meant.
Here is what is my theme-contrib :
<!-- Styles presets -->
<extension
target="org.nuxeo.theme.services.ThemeService"
point="presets">
<palette name="Nuxeo default fonts"
src="themes/palettes/
nxfonts.properties" category="font" />
<palette name="Nuxeo default font colors"
src="themes/palettes/
nxfontcolors.properties" category="color"
/>
<palette name="Nuxeo default border
colors" src="themes/palettes/
nxbordercolors.properties"
category="border-color" />
<palette name="Nuxeo default backgrounds"
src="themes/palettes/
nxbackgrounds.properties"
category="background" />
<palette name="Nuxeo default colors"
src="themes/palettes/
nxcolors.aco" category="color" />
</extension>
in my palettes i have things like that :
default=11px Verdana, Arial, sans-serif
small=9px Verdana, Arial, sans-serif
title1=bold 21px Verdana, Arial, sans-serif
title2=bold 16px Verdana, Arial, sans-serif
title3=bold 14px Verdana, Arial, sans-serif
title4+=bold 12px Verdana, Arial, sans-serif
and in my nxthemes-setup.xml i have :
<!-- Header -->
<!-- Banner -->
<style element="page[1]/section[1]">
<selector path="">
<background preset="banner (Nuxeo default
backgrounds)" />
<border-style>none none solid
none</border-style>
<border-color preset="dark (Nuxeo default
border colors)" />
<border-width>0 0 1px 0</border-width>
</selector>
</style>
<!-- user services -->
<style
element="page[1]/section[1]/cell[2]/fragment[1]"&g
t;
<selector path="div">
<color preset="light (Nuxeo default
colors)" />
<padding>2px 2px 0px 0px</padding>
<margin>0</margin>
<line-height>185%</line-height>
</selector>
... etc
yet i won't work.
In the log i don't have any "palette" or
"font", i just have that
line with "presets"
2007-04-10 17:32:49,772 INFO
[org.nuxeo.theme.types.TypeRegistry]
Registered NEGOTIATION: nuxeo5/engine
2007-04-10 17:32:49,773 INFO
[org.nuxeo.theme.types.TypeRegistry]
Registered NEGOTIATION: nuxeo5/mode
2007-04-10 17:32:49,773 INFO
[org.nuxeo.theme.types.TypeRegistry]
Registered NEGOTIATION: nuxeo5/theme
2007-04-10 17:32:49,774 INFO
[org.nuxeo.theme.types.TypeRegistry]
Registered NEGOTIATION: nuxeo5/perspective
2007-04-10 17:32:49,774 DEBUG
[org.nuxeo.runtime.model.ComponentManager] Dispatching
event:
UNKNOWN: service:org.nuxeo.theme.nuxeo.default
2007-04-10 17:32:49,774 DEBUG
[org.nuxeo.runtime.model.ComponentManager] Register
contributed
extension: ExtensionImpl {target:
service:org.nuxeo.theme.services.ThemeService,
point:presets}
2007-04-10 17:32:49,776 DEBUG
[org.nuxeo.runtime.model.ComponentManager] Dispatching
event:
UNKNOWN: service:org.nuxeo.theme.nuxeo.default
2007-04-10 17:32:49,776 DEBUG
[org.nuxeo.runtime.model.ComponentManager] Dispatching
event:
COMPONENT_ACTIVATED: service:org.nuxeo.theme.nuxeo.default
but i'm not even sure that's related
++
--
Thibaut Soulcié – GraphicDesign – Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com
& http://www.nuxeo.org
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  Sweden |
2007-04-10 11:20:06 |
Thibaut Soulcié wrote:
>
> about that, to me colors are colors, so can i do
something like that :
> <palette name="Nuxeo default colors"
> src="themes/palettes/nxcolors.aco"
category="color,border-color," />
> ? what should i use ? color, border-... or mayve
color|border... ?
just 'color', since the 'color' category includes 'color',
'border-color', 'background-color', ...
see
https://svn.nu
xeo.org/nuxeo/org.nuxeo.theme/trunk/jsf/resources/nxthemes/j
sf/styles/css.properties
the properties that apply to 'color' are marked as
=<color>
>>
>> <font preset="preset name (palette
name)" />
> ok
>>
>>>
>>>>
>>>> when the server starts the log file will
read
>>> that i can't get!
>>>
>>
>> that was an example (unless you have
org.nuxeo.theme.demo installed
>> you won't get access to the palettes installed in
it )
>> see
>> http://svn.nuxeo.org/nuxeo
/org.nuxeo.theme/trunk/demo/resources/nxthemes/demo/palettes
>>
>> http://svn.nuxeo.org/nux
eo/org.nuxeo.theme/trunk/demo/OSGI-INF/nxthemes-demo-contrib
.xml
>>
>
> i can't get it, even if i put preset palettes in
theme-contrib.xml, is
> what i meant.
> Here is what is my theme-contrib :
>
> <!-- Styles presets -->
>
> <extension
target="org.nuxeo.theme.services.ThemeService"
> point="presets">
>
> <palette name="Nuxeo default fonts"
> src="themes/palettes/nxfonts.properties"
category="font" />
> <palette name="Nuxeo default font
colors"
> src="themes/palettes/nxfontcolors.properties"
category="color" />
> <palette name="Nuxeo default border
colors"
>
src="themes/palettes/nxbordercolors.properties"
> category="border-color" />
> <palette name="Nuxeo default
backgrounds"
>
src="themes/palettes/nxbackgrounds.properties"
category="background" />
> <palette name="Nuxeo default colors"
> src="themes/palettes/nxcolors.aco"
category="color" />
>
> </extension>
>
> ...
>
> yet i won't work.
>
> In the log i don't have any "palette" or
"font", i just have that line
> with "presets"
>
I think you need to make sure that the palettes are really
getting
packaged inside the jar.
can you do a svn check-in?
/JM
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  France |
2007-04-10 11:58:18 |
Le Apr 10, 2007 à 6:20 PM, Jean-Marc Orliaguet a écrit :
> I think you need to make sure that the palettes are
really getting
> packaged inside the jar.
>
> can you do a svn check-in?
yep, they obviously are not.
theme-contrib & palettes are comitted.
thank you for having a look...
++
t
--
Thibaut Soulcié – GraphicDesign – Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com
& http://www.nuxeo.org
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
| Re: presets => palettes |
  Sweden |
2007-04-10 13:18:25 |
Thibaut Soulcié wrote:
>
> Le Apr 10, 2007 à 6:20 PM, Jean-Marc Orliaguet a écrit
:
>
>> I think you need to make sure that the palettes are
really getting
>> packaged inside the jar.
>>
>> can you do a svn check-in?
>
> yep, they obviously are not.
> theme-contrib & palettes are comitted.
>
> thank you for having a look...
>
> ++
>
> t
can you try now? the style picker works too (it seems that
it crashed
before because no presets were registered..)
/JM
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|
|
[1-8]
|
|