You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Miroslav Mocek <mm...@seznam.cz> on 2005/09/29 02:29:12 UTC
leather-dev skins and view/viewHelper plugins
Hello,
I've just downloaded forrest 0.7. I've tried to create my own site. I've
tried to change skin in forrest.properties.
I saw screenshots in documentation, the leather-dev skin is what I want
(http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png)
but I'm not able to get it.
If I edit forrest.properties like this:
project.skin=leather-dev
start forrest run and use browser to view localhost:8888, i get Internal
Server Error :
<>Message: null
Description: No details available.
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI index.html
cause Chyba funkce ElemTemplateElement: getHead
request-uri /index.html
I've tried to edit this line:
project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.internal.view
the plugin was downloaded and installed. But I get the same Internal
Server Error.
There is written in documentation, that I need also viewHelper plugin,
but I haven't found it.
What's wrong? How can I get the leather-dev skin on my site?
Thank You
Mirek
Re: leather-dev skins and view/viewHelper plugins
Posted by Thorsten Scherler <th...@apache.org>.
El vie, 30-09-2005 a las 14:28 +0200, Miroslav Mocek escribió:
> Great! It works! Thank You very much.
:)
You are welcome and welcome to views. ;-)
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: leather-dev skins and view/viewHelper plugins
Posted by Miroslav Mocek <mm...@seznam.cz>.
Great! It works! Thank You very much.
Thanks also for the description of fallback mechanism. I think, I will
now be able to play with the views.
just for the record:
delete jxpath1.2.jar
svn update (292712)
cd main; build clean; build
again ant local-deploy all three whiteboard plugins (view,
viewHelper.xhtml and viewHelper.xhtml.ls)
and then it works. without any error.
Mirek
>No, the problem is that the howto assumes the old design of views, if
>you used views before todays HEAD means that the howto is not working
>anymore. I did a roll back of views today.
>
>In the HEAD prior of today I changed the presentation model. All
>contracts have to request it and cannot take it for granted.
>
>If you update to svn again make sure you delete common-jxpath-1.2.jar!
>
>
>
>
>
Re: leather-dev skins and view/viewHelper plugins
Posted by Thorsten Scherler <th...@apache.org>.
El vie, 30-09-2005 a las 03:07 +0200, Miroslav Mocek escribió:
> >Please read
> http://forrest.apache.org/docs_0_80/howto/howto-view-dsl.html for a kick
> start.
>
>
> Thanks very much for such nice info. It was an interesting reading.
> I tried to follow the instructions. When I created index.fv in
> project\src\documentation\content\xdocs directory, the Internal Server
> Error with cause: org.apache.xpath.objects.XString happened.
>
> My guess
> 1. - classpath problem (could be with the jxpath1.2.jar? xalan2.7.0 is
> in forrest/lib/endorsed and contains the specified class)
> 2. - I put index.fv in wrong place, or should I mention it somewhere?
> 3. - some other reason :)
No, the problem is that the howto assumes the old design of views, if
you used views before todays HEAD means that the howto is not working
anymore. I did a roll back of views today.
In the HEAD prior of today I changed the presentation model. All
contracts have to request it and cannot take it for granted.
If you update to svn again make sure you delete common-jxpath-1.2.jar!
> >You need to write a scale.fv. That is a structure file that you can use
> to hook up the css of scale.
>
>
> If it's for my project, where it should be? If it's global - for all
> projects, where it should be?
We have a fallback mechanism:
/**
* @param resolver
* @param uri
* *viewSelector* project-xdocs will return which view is
* responsible for the requested path. If no view
* (choice|fallback) could be found the template will return the
* viewFallback (resources/views/default.fv).
*
* ex.: 1.request: index First choice: index.fv First/last fallback:
* default.fv
*
* 2.request: sample/index First choice: sample/index.fv First fallback:
* sample/default.fv Last fallback: default.fv
*
* 3.request: sample/subdir/index First choice: sample/subdir/index.fv First
* fallback: sample/subdir/default.fv Second fallback: sample/default.fv
* Last fallback: default.fv
*
* ...
*
* des.: The parent view (root-view) inherits to its children until a child
* is overriding this view. This override can be used for directories
* (default.fv) and/or files (*.fv). That means that the root view is the
* default view as long no other view can be found in the requested child.
* @throws IOException
* @throws MalformedURLException
*
*/
The fallback file is defined by:
project.theme-extension=.fv
project.theme=default
If you want to rename the name of the fallback file:
project.theme=defaultOtherName
>
> As I understood - index.fv is only for index.html.
See above, yes you are right.
> what about the other
> files? how they will be processed?
> I'm sorry, but it's not clear to me.
>
placing the default.fv (or the name you specified in
project.theme-extension=.fv
project.theme=default)
in the xdocs dir will use this fallback. You can override subdirs by
placing default.fv in there.
HTH
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: leather-dev skins and view/viewHelper plugins
Posted by Miroslav Mocek <mm...@seznam.cz>.
>Please read
http://forrest.apache.org/docs_0_80/howto/howto-view-dsl.html for a kick
start.
Thanks very much for such nice info. It was an interesting reading.
I tried to follow the instructions. When I created index.fv in
project\src\documentation\content\xdocs directory, the Internal Server
Error with cause: org.apache.xpath.objects.XString happened.
My guess
1. - classpath problem (could be with the jxpath1.2.jar? xalan2.7.0 is
in forrest/lib/endorsed and contains the specified class)
2. - I put index.fv in wrong place, or should I mention it somewhere?
3. - some other reason :)
>You need to write a scale.fv. That is a structure file that you can use
to hook up the css of scale.
If it's for my project, where it should be? If it's global - for all
projects, where it should be?
As I understood - index.fv is only for index.html. what about the other
files? how they will be processed?
I'm sorry, but it's not clear to me.
Mirek
Re: leather-dev skins and view/viewHelper plugins
Posted by Thorsten Scherler <th...@apache.org>.
El jue, 29-09-2005 a las 15:30 +0200, Miroslav Mocek escribió:
> I've downloaded 0.8-dev from svn, followed views installation
> instructions
> http://forrest.apache.org/docs_0_80/howto/howto-view-install.html, then
> replaced lib/core/commons-jxpath-20030909.jar with
> commons-jxpath-1.2.jar, and it works!
Actually you have not run into the linkrewritter problem. ;-)
> However, the resulting style is totally different from
> http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png.
> argh. ;)
Yeah, the design of this screenshot is based on scale-dev. This style
was submitted from some user and we started developing views with it.
Since I needed to get views running as a proof of concept I was not able
to tweak the scale-dev css in the same time as I enhanced the underlying
implementation. Sadly the user did not deliver any enhancement
either. :(
...but it is really easy to activate it again.
> my forrest.properties file is now configured this way:
> project.skin=leather-dev
> project.theme-extension=.fv
> project.theme=leather-dev
> project.required.plugins=org.apache.forrest.plugin.output.viewHelper.xhtml,org.apache.forrest.plugin.internal.view
There is no leather-dev.fv in the default plugins. That means if you not
added it to your project you will see the default.fv.
I strongly recommend following as well:
http://forrest.apache.org/docs_0_80/howto/howto-view-install.html#availableContracts and add org.apache.forrest.plugin.input.viewHelper.xhtml.ls to the required plugins.
> How can I get the style from the picture?
You need to write a scale.fv. That is a structure file that you can use
to hook up the css of scale.
The basic css can be found:
http://svn.apache.org/viewcvs.cgi/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/skin/css/default.scale-dev.css?view=markup
The basic view:
http://svn.apache.org/viewcvs.cgi/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/views/default.scale-dev.fv?view=markup
Actually the above default.scale-dev.fv is way outdated and it is not
working anymore, but it shows you the basic forrest:hooks you will need.
Please read
http://forrest.apache.org/docs_0_80/howto/howto-view-dsl.html for a kick
start.
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: leather-dev skins and view/viewHelper plugins
Posted by David Crossley <cr...@apache.org>.
Miroslav Mocek wrote:
> I've downloaded 0.8-dev from svn, followed views installation
> instructions
> http://forrest.apache.org/docs_0_80/howto/howto-view-install.html, then
Great, but ...
Please talk about development topics on the "dev"
mailing list. This "user" mailing list is intended
to be a haven from development gobbledegook.
Users will run away if this continues to happen.
-David
Re: leather-dev skins and view/viewHelper plugins
Posted by Miroslav Mocek <mm...@seznam.cz>.
I've downloaded 0.8-dev from svn, followed views installation
instructions
http://forrest.apache.org/docs_0_80/howto/howto-view-install.html, then
replaced lib/core/commons-jxpath-20030909.jar with
commons-jxpath-1.2.jar, and it works!
However, the resulting style is totally different from
http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png.
argh. ;)
my forrest.properties file is now configured this way:
project.skin=leather-dev
project.theme-extension=.fv
project.theme=leather-dev
project.required.plugins=org.apache.forrest.plugin.output.viewHelper.xhtml,org.apache.forrest.plugin.internal.view
How can I get the style from the picture?
Thanks,
Mirek
>>>
>>>
>>> As you are a new user, it would be better to remain with
>>> the default skin "pelt".
>>>
>>> The "leather-dev" is just what it says "development".
>>> If you do want to get involved in development, then
>>> use the current head of Subversion (i.e. 0.8-dev rather
>>> than the 0.7 release).
>>>
>>> Even so, be warned that current development (codename "views")
>>> is undergoing rapid change. You are welcome to help.
>>>
>>> -David
>>>
>>>
>>>
>>>> I saw screenshots in documentation, the leather-dev skin is what I
>>>> want
>>>> (http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png)
>>>> but I'm not able to get it.
>>>>
>>>> If I edit forrest.properties like this:
>>>> project.skin=leather-dev
>>>>
>>>> start forrest run and use browser to view localhost:8888, i get
>>>> Internal Server Error :
>>>> <>Message: null
>>>> Description: No details available.
>>>> Sender: org.apache.cocoon.servlet.CocoonServlet
>>>> Source: Cocoon Servlet
>>>> Request URI index.html
>>>> cause Chyba funkce ElemTemplateElement: getHead
>>>> request-uri /index.html
>>>>
>>>> I've tried to edit this line:
>>>> project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.internal.view
>>>>
>>>>
>>>> the plugin was downloaded and installed. But I get the same
>>>> Internal Server Error.
>>>>
>>>> There is written in documentation, that I need also viewHelper
>>>> plugin, but I haven't found it.
>>>>
>>>> What's wrong? How can I get the leather-dev skin on my site?
>>>> Thank You
>>>> Mirek
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
Re: leather-dev skins and view/viewHelper plugins
Posted by Miroslav Mocek <mm...@seznam.cz>.
Sorry for misconfusing. I've already found tabs.xml... My fault.
Mirek
Miroslav Mocek wrote:
> The "pelt" skin seems to me a little too complicated. Too many tabs
> and so on. And I don't know, how to simplify it.
> On the other hand the "leather-dev" skin seems to fit my needs
> exactly. That's why I tried it.
> Thanks for answer, I'll try to play with the 0.8-dev.
> Mirek
>
> David Crossley wrote:
>
>> Miroslav Mocek wrote:
>>
>>
>>> Hello,
>>>
>>> I've just downloaded forrest 0.7. I've tried to create my own site.
>>> I've tried to change skin in forrest.properties.
>>>
>>
>>
>> As you are a new user, it would be better to remain with
>> the default skin "pelt".
>>
>> The "leather-dev" is just what it says "development".
>> If you do want to get involved in development, then
>> use the current head of Subversion (i.e. 0.8-dev rather
>> than the 0.7 release).
>>
>> Even so, be warned that current development (codename "views")
>> is undergoing rapid change. You are welcome to help.
>>
>> -David
>>
>>
>>
>>> I saw screenshots in documentation, the leather-dev skin is what I
>>> want
>>> (http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png)
>>> but I'm not able to get it.
>>>
>>> If I edit forrest.properties like this:
>>> project.skin=leather-dev
>>>
>>> start forrest run and use browser to view localhost:8888, i get
>>> Internal Server Error :
>>> <>Message: null
>>> Description: No details available.
>>> Sender: org.apache.cocoon.servlet.CocoonServlet
>>> Source: Cocoon Servlet
>>> Request URI index.html
>>> cause Chyba funkce ElemTemplateElement: getHead
>>> request-uri /index.html
>>>
>>> I've tried to edit this line:
>>> project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.internal.view
>>>
>>>
>>> the plugin was downloaded and installed. But I get the same Internal
>>> Server Error.
>>>
>>> There is written in documentation, that I need also viewHelper
>>> plugin, but I haven't found it.
>>>
>>> What's wrong? How can I get the leather-dev skin on my site?
>>> Thank You
>>> Mirek
>>>
>>
>>
>>
>>
>
>
Re: leather-dev skins and view/viewHelper plugins
Posted by Miroslav Mocek <mm...@seznam.cz>.
The "pelt" skin seems to me a little too complicated. Too many tabs and
so on. And I don't know, how to simplify it.
On the other hand the "leather-dev" skin seems to fit my needs exactly.
That's why I tried it.
Thanks for answer, I'll try to play with the 0.8-dev.
Mirek
David Crossley wrote:
>Miroslav Mocek wrote:
>
>
>>Hello,
>>
>>I've just downloaded forrest 0.7. I've tried to create my own site. I've
>>tried to change skin in forrest.properties.
>>
>>
>
>As you are a new user, it would be better to remain with
>the default skin "pelt".
>
>The "leather-dev" is just what it says "development".
>If you do want to get involved in development, then
>use the current head of Subversion (i.e. 0.8-dev rather
>than the 0.7 release).
>
>Even so, be warned that current development (codename "views")
>is undergoing rapid change. You are welcome to help.
>
>-David
>
>
>
>>I saw screenshots in documentation, the leather-dev skin is what I want
>>(http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png)
>>but I'm not able to get it.
>>
>>If I edit forrest.properties like this:
>>project.skin=leather-dev
>>
>>start forrest run and use browser to view localhost:8888, i get Internal
>>Server Error :
>><>Message: null
>>Description: No details available.
>>Sender: org.apache.cocoon.servlet.CocoonServlet
>>Source: Cocoon Servlet
>>Request URI index.html
>>cause Chyba funkce ElemTemplateElement: getHead
>>request-uri /index.html
>>
>>I've tried to edit this line:
>>project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.internal.view
>>
>>the plugin was downloaded and installed. But I get the same Internal
>>Server Error.
>>
>>There is written in documentation, that I need also viewHelper plugin,
>>but I haven't found it.
>>
>>What's wrong? How can I get the leather-dev skin on my site?
>>Thank You
>>Mirek
>>
>>
>
>
>
Re: leather-dev skins and view/viewHelper plugins
Posted by David Crossley <cr...@apache.org>.
Miroslav Mocek wrote:
> Hello,
>
> I've just downloaded forrest 0.7. I've tried to create my own site. I've
> tried to change skin in forrest.properties.
As you are a new user, it would be better to remain with
the default skin "pelt".
The "leather-dev" is just what it says "development".
If you do want to get involved in development, then
use the current head of Subversion (i.e. 0.8-dev rather
than the 0.7 release).
Even so, be warned that current development (codename "views")
is undergoing rapid change. You are welcome to help.
-David
> I saw screenshots in documentation, the leather-dev skin is what I want
> (http://forrest.apache.org/docs_0_70/images/snapshot-view-viewHelper.png)
> but I'm not able to get it.
>
> If I edit forrest.properties like this:
> project.skin=leather-dev
>
> start forrest run and use browser to view localhost:8888, i get Internal
> Server Error :
> <>Message: null
> Description: No details available.
> Sender: org.apache.cocoon.servlet.CocoonServlet
> Source: Cocoon Servlet
> Request URI index.html
> cause Chyba funkce ElemTemplateElement: getHead
> request-uri /index.html
>
> I've tried to edit this line:
> project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.internal.view
>
> the plugin was downloaded and installed. But I get the same Internal
> Server Error.
>
> There is written in documentation, that I need also viewHelper plugin,
> but I haven't found it.
>
> What's wrong? How can I get the leather-dev skin on my site?
> Thank You
> Mirek