Re: AW: Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-12-09 Thread Bernd Bohmann

Hello Helmut,

I think it is a bug. Please add a jira issue.

Regards

Bernd

H. Swaczinna wrote:

Hello Bernd,

I've examined this problem once again and I can provide one more
detail to you: If you use your own package path to style.css, the
reference to style.css is always listed at first in the HTML page.

For example:
...

GENA/titlelink rel=stylesheet 
href=/gena/de/wlps/ndr/wf/webapp/gena/renderkit/html/gena/standard/style/style.css media=screen 
type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css 
media=screen type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css 
media=screen type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css media=screen 
type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/speyside/mozilla/style/style.css media=screen 
type=text/css
script 
src=/gena/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js 
type=text/javascript

..

But it should be listed at last, after the fallback theme. If you use
the standard package path /org/apache/myfaces/tobago/renderkit, the
sequence of the references is correct.

If you agree with me, that's a bug, I will add a jira issue for it.

Regards
Helmut



Hello Helmut,

I didn't see any reason why this should not work.

Can you add a jira issue for it.
Please add some example code.

http://issues.apache.org/jira/secure/BrowseProject.jspa?id=12310273



Regards


Bernd

H. Swaczinna wrote:

Hello,

I've defined my own theme and an additional markup. It works,
when I use the standard resource path 
org/apache/myfaces/tobago/renderkit.

But when I change the path to my own package de/wlps/ndr/tobago/renderkit,
it doesn't work. The class defintion in my style.css has no effect. 
I can see the reference to my own style.css in the html source. When I

enter this URL in my browser, I can see the style class defintion.
So the resource location seems to work properly. The defined class is 

referenced in the generated html code for the tc:in tag.

This is the tobago-theme.xml

tobago-theme
  namegena/name
  deprecated-namede.wlps.ndr.tobago.context.GenaTheme/deprecated-name
  resource-pathde/wlps/ndr/tobago/renderkit/resource-path
  fallbackspeyside/fallback
  renderers
renderer
  nameIn/name
  supported-markup
markupnumber/markup
markupmodified/markup
  /supported-markup
/renderer
  /renderers
/tobago-theme

In web.xml, I setup a ResourceServlet:

  servlet-mapping
servlet-nameResourceServlet/servlet-name
url-pattern/de/wlps/ndr/tobago/renderkit/*/url-pattern
  /servlet-mapping


This is the generated html code:

...
link rel=stylesheet 

href=/gena-demo/de/wlps/ndr/tobago/renderkit/html/gena/standard/style/style.cs
s media=screen type=text/css

...
input type=text name=gena:_idJsp108 id=gena:_idJsp108 value=566756 
style=width: 100px; height: 20px; class=tobago-in-default 
tobago-in-markup-modified 

...

And finally, this is my style.css:

.tobago-in-markup-modified {
  background-color: yellow;
}  


Is there something else, I have to setup?
Thanks for help
Helmut






AW: Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-12-08 Thread H. Swaczinna
Hello Bernd,

I've examined this problem once again and I can provide one more
detail to you: If you use your own package path to style.css, the
reference to style.css is always listed at first in the HTML page.

For example:
...
GENA/titlelink rel=stylesheet 
href=/gena/de/wlps/ndr/wf/webapp/gena/renderkit/html/gena/standard/style/style.css
 media=screen type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
 media=screen type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css
 media=screen type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
 media=screen type=text/css
link rel=stylesheet 
href=/gena/org/apache/myfaces/tobago/renderkit/html/speyside/mozilla/style/style.css
 media=screen type=text/css
script 
src=/gena/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js
 type=text/javascript
..

But it should be listed at last, after the fallback theme. If you use
the standard package path /org/apache/myfaces/tobago/renderkit, the
sequence of the references is correct.

If you agree with me, that's a bug, I will add a jira issue for it.

Regards
Helmut


Hello Helmut,

I didn't see any reason why this should not work.

Can you add a jira issue for it.
Please add some example code.

http://issues.apache.org/jira/secure/BrowseProject.jspa?id=12310273



Regards


Bernd

H. Swaczinna wrote:
 Hello,
 
 I've defined my own theme and an additional markup. It works,
 when I use the standard resource path 
 org/apache/myfaces/tobago/renderkit.
 But when I change the path to my own package de/wlps/ndr/tobago/renderkit,
 it doesn't work. The class defintion in my style.css has no effect. 
 I can see the reference to my own style.css in the html source. When I
 enter this URL in my browser, I can see the style class defintion.
 So the resource location seems to work properly. The defined class is 
referenced in the generated html code for the tc:in tag.
 
 This is the tobago-theme.xml
 
 tobago-theme
   namegena/name
   deprecated-namede.wlps.ndr.tobago.context.GenaTheme/deprecated-name
   resource-pathde/wlps/ndr/tobago/renderkit/resource-path
   fallbackspeyside/fallback
   renderers
 renderer
   nameIn/name
   supported-markup
 markupnumber/markup
 markupmodified/markup
   /supported-markup
 /renderer
   /renderers
 /tobago-theme
 
 In web.xml, I setup a ResourceServlet:
 
   servlet-mapping
 servlet-nameResourceServlet/servlet-name
 url-pattern/de/wlps/ndr/tobago/renderkit/*/url-pattern
   /servlet-mapping
 
 
 This is the generated html code:
 
 ...
 link rel=stylesheet 
href=/gena-demo/de/wlps/ndr/tobago/renderkit/html/gena/standard/style/style.cs
s media=screen type=text/css
 ...
 input type=text name=gena:_idJsp108 id=gena:_idJsp108 value=566756 
style=width: 100px; height: 20px; class=tobago-in-default 
tobago-in-markup-modified 
 ...
 
 And finally, this is my style.css:
 
 .tobago-in-markup-modified {
   background-color: yellow;
 }  
 
 Is there something else, I have to setup?
 Thanks for help
 Helmut
 
 



Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-11-28 Thread Bernd Bohmann

Hello Helmut,

I didn't see any reason why this should not work.

Can you add a jira issue for it.
Please add some example code.

http://issues.apache.org/jira/secure/BrowseProject.jspa?id=12310273



Regards


Bernd

H. Swaczinna wrote:

Hello,

I've defined my own theme and an additional markup. It works,
when I use the standard resource path 
org/apache/myfaces/tobago/renderkit.

But when I change the path to my own package de/wlps/ndr/tobago/renderkit,
it doesn't work. The class defintion in my style.css has no effect. 
I can see the reference to my own style.css in the html source. When I

enter this URL in my browser, I can see the style class defintion.
So the resource location seems to work properly. The defined class is 
referenced in the generated html code for the tc:in tag.

This is the tobago-theme.xml

tobago-theme
  namegena/name
  deprecated-namede.wlps.ndr.tobago.context.GenaTheme/deprecated-name
  resource-pathde/wlps/ndr/tobago/renderkit/resource-path
  fallbackspeyside/fallback
  renderers
renderer
  nameIn/name
  supported-markup
markupnumber/markup
markupmodified/markup
  /supported-markup
/renderer
  /renderers
/tobago-theme

In web.xml, I setup a ResourceServlet:

  servlet-mapping
servlet-nameResourceServlet/servlet-name
url-pattern/de/wlps/ndr/tobago/renderkit/*/url-pattern
  /servlet-mapping


This is the generated html code:

...
link rel=stylesheet 
href=/gena-demo/de/wlps/ndr/tobago/renderkit/html/gena/standard/style/style.css media=screen 
type=text/css
...
input type=text name=gena:_idJsp108 id=gena:_idJsp108 value=566756 style=width: 100px; 
height: 20px; class=tobago-in-default tobago-in-markup-modified 
...

And finally, this is my style.css:

.tobago-in-markup-modified {
  background-color: yellow;
}  


Is there something else, I have to setup?
Thanks for help
Helmut






Re: AW: Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-11-21 Thread Bernd Bohmann

Hello,

it is not possible to combine markup until now.
Maybe I will change this in few day, but I should ask the other 
developers what they think about this :-)


Regards

Bernd

H. Swaczinna wrote:

Hello Bernd,

thank you, it works. But one short followup question: Is it possible
to combine the markups in the markup attribute, for example
markup=number;strong;mymarkup? Or must I define for every combination
of simple markups a new combined markup, for example 
markupnumber/markup

markupstrong/markup
markupnumber-and-strong/markup
?

Regards
Helmut



Hello Helmut,

added a short description to the faq.

Regards

Bernd

[EMAIL PROTECTED] wrote:

Hello Bernd,

thank you for this information. This is what I needed. I'll wait for
your howto then. You don't need to hurry with the howto. Next week will be 

ok.

Regards
Helmut



Hello,

with a own theme you can define additonal markup for components that 
support the markup property. At this time out, in and box (trunk).


I will prepare a short howto for Own Theme and Custom Markup later.
Because lack of time this won't be finished until tonight :-(

Regards

Bernd

[EMAIL PROTECTED] wrote:
Hi! 

 

In HTML, I write for example: 

 

style #xyz { color: red; } /style 

... 

input type=text id=xyz value=/ 

 

In Tobago, I must write: 

 

tc:style #page1:xyz { color: red; } /tc:style 


...
tc:page label=Test id=page1
...

tc:in value=Test id=xyz

Because Tobago concatenates all hierarchical ids with a colon.
But in style denifitions colons are not allowed for ids. So the style 
definition 

has no effect.
Is there a workaround for this problem? Or is there any other way to set 
the 

style for
indiviual components?

Thanks for any help!
Regards
Helmut





AW: Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-11-21 Thread H. Swaczinna
Hello Bernd,

thank you, it works. But one short followup question: Is it possible
to combine the markups in the markup attribute, for example
markup=number;strong;mymarkup? Or must I define for every combination
of simple markups a new combined markup, for example 
markupnumber/markup
markupstrong/markup
markupnumber-and-strong/markup
?

Regards
Helmut


Hello Helmut,

added a short description to the faq.

Regards

Bernd

[EMAIL PROTECTED] wrote:
 Hello Bernd,
 
 thank you for this information. This is what I needed. I'll wait for
 your howto then. You don't need to hurry with the howto. Next week will be 
ok.
 
 Regards
 Helmut
 
 
 Hello,

 with a own theme you can define additonal markup for components that 
 support the markup property. At this time out, in and box (trunk).

 I will prepare a short howto for Own Theme and Custom Markup later.
 Because lack of time this won't be finished until tonight :-(

 Regards

 Bernd

 [EMAIL PROTECTED] wrote:
 Hi! 

  

 In HTML, I write for example: 

  

 style #xyz { color: red; } /style 

 ... 

 input type=text id=xyz value=/ 

  

 In Tobago, I must write: 

  

 tc:style #page1:xyz { color: red; } /tc:style 

 ...
 tc:page label=Test id=page1
 ...

 tc:in value=Test id=xyz

 Because Tobago concatenates all hierarchical ids with a colon.
 But in style denifitions colons are not allowed for ids. So the style 
 definition 
 has no effect.
 Is there a workaround for this problem? Or is there any other way to set 
the 
 style for
 indiviual components?

 Thanks for any help!
 Regards
 Helmut