Re: TAbbedPanel and CSS

2007-03-20 Thread Felipe Rodrigues

Hi,

I'm still having problems to take the templates images out of .jar.

I'm trying to take the images that compose the Tab in a TabbedPanel, and
thus, use my own images with my own colors. I got this replacing the images
inside the .jar, but it is not a good approach.

I got use my own css using templateCssPath, but I changed the url for get
images from /MyCTX/images/core/tab
Does anyone have any example about how take the images out of .jar?

The weird thing is that it was supposed to be a simple thing, isn't it?

regards...

Felipe Rodrigues


Musachy Barroso wrote:
 
 Look at TabContainer.html here:
 
 http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/templates/
 
 which is the template used by Dojo to build the widget.
 
 regards
 musachy
 
 On 3/16/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:


 But what exactly are the css's that I have to override?

 I mean, what properties does TabbedPanel allow to set from css?
 Is there any place to find it out?
 I'm asking this because I didn't found any place at
 TabConteiner.csssetting
 up the font of a Tab.

 Another question would be, where does dojo set the css classes for this
 file? Is that important to know or I just have to create a new css file
 with
 the same properties and my own values?


 Felipe



 Nate Drake wrote:
 
  Awesome!  I didn't realize that.  Thanks.
 
  Musachy Barroso musachy at gmail.com writes:
 
 
  You can use the templateCssPath property to point to your css.
 
  musachy
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9522435
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Hey you! Would you help me to carry the stone? Pink Floyd
 
 

-- 
View this message in context: 
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9574285
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TAbbedPanel and CSS

2007-03-20 Thread Musachy Barroso

Do you mean to extract the images or reference the images inside the jar?
Once you are using your css, you can use your own images like you usually do
(from a  subdir of your webroot for example)

musachy

On 3/20/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:



Hi,

I'm still having problems to take the templates images out of .jar.

I'm trying to take the images that compose the Tab in a TabbedPanel, and
thus, use my own images with my own colors. I got this replacing the
images
inside the .jar, but it is not a good approach.

I got use my own css using templateCssPath, but I changed the url for get
images from /MyCTX/images/core/tab
Does anyone have any example about how take the images out of .jar?

The weird thing is that it was supposed to be a simple thing, isn't it?

regards...

Felipe Rodrigues


Musachy Barroso wrote:

 Look at TabContainer.html here:


http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/templates/

 which is the template used by Dojo to build the widget.

 regards
 musachy

 On 3/16/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:


 But what exactly are the css's that I have to override?

 I mean, what properties does TabbedPanel allow to set from css?
 Is there any place to find it out?
 I'm asking this because I didn't found any place at
 TabConteiner.csssetting
 up the font of a Tab.

 Another question would be, where does dojo set the css classes for this
 file? Is that important to know or I just have to create a new css file
 with
 the same properties and my own values?


 Felipe



 Nate Drake wrote:
 
  Awesome!  I didn't realize that.  Thanks.
 
  Musachy Barroso musachy at gmail.com writes:
 
 
  You can use the templateCssPath property to point to your css.
 
  musachy
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9522435
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Hey you! Would you help me to carry the stone? Pink Floyd



--
View this message in context:
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9574285
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Hey you! Would you help me to carry the stone? Pink Floyd


Re: TAbbedPanel and CSS

2007-03-20 Thread Felipe Rodrigues

The problem is, even using the css pointing to my own images, dojo still keep
getting the images from inside the jar.

Here is a piece of my .css . The url is correct and the tab should be green.
(I changed the images to green)
But when I test the app, the Tab is still blue. I also deleted the images
from inside the jar, and now, I don't see any images.

.dojoTab div {
display : block;
padding : 4px 15px 4px 6px;
background : url(/core/images/tab_top_right.gif) no-repeat right top;
color : #333;
font-size : 85%;
font-family: tahoma, verdana, sans-serif;
}

I agree, should work just like you said, but it is not.
Any idea?


Musachy Barroso wrote:
 
 Do you mean to extract the images or reference the images inside the jar?
 Once you are using your css, you can use your own images like you usually
 do
 (from a  subdir of your webroot for example)
 
 musachy
 
 On 3/20/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:


 Hi,

 I'm still having problems to take the templates images out of .jar.

 I'm trying to take the images that compose the Tab in a TabbedPanel, and
 thus, use my own images with my own colors. I got this replacing the
 images
 inside the .jar, but it is not a good approach.

 I got use my own css using templateCssPath, but I changed the url for get
 images from /MyCTX/images/core/tab
 Does anyone have any example about how take the images out of .jar?

 The weird thing is that it was supposed to be a simple thing, isn't it?

 regards...

 Felipe Rodrigues


 Musachy Barroso wrote:
 
  Look at TabContainer.html here:
 
 
 http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/templates/
 
  which is the template used by Dojo to build the widget.
 
  regards
  musachy
 
  On 3/16/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:
 
 
  But what exactly are the css's that I have to override?
 
  I mean, what properties does TabbedPanel allow to set from css?
  Is there any place to find it out?
  I'm asking this because I didn't found any place at
  TabConteiner.csssetting
  up the font of a Tab.
 
  Another question would be, where does dojo set the css classes for
 this
  file? Is that important to know or I just have to create a new css
 file
  with
  the same properties and my own values?
 
 
  Felipe
 
 
 
  Nate Drake wrote:
  
   Awesome!  I didn't realize that.  Thanks.
  
   Musachy Barroso musachy at gmail.com writes:
  
  
   You can use the templateCssPath property to point to your css.
  
   musachy
  
  
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
  http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9522435
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Hey you! Would you help me to carry the stone? Pink Floyd
 
 

 --
 View this message in context:
 http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9574285
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Hey you! Would you help me to carry the stone? Pink Floyd
 
 

-- 
View this message in context: 
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9575709
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TAbbedPanel and CSS

2007-03-20 Thread Musachy Barroso

That should be it, I would try with Dojo first (download Dojo distribution),
specify the custom css in one of their examples and make sure that
everything works as expected and then try with S2.

musachy

On 3/20/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:



The problem is, even using the css pointing to my own images, dojo still
keep
getting the images from inside the jar.

Here is a piece of my .css . The url is correct and the tab should be
green.
(I changed the images to green)
But when I test the app, the Tab is still blue. I also deleted the images
from inside the jar, and now, I don't see any images.

.dojoTab div {
display : block;
padding : 4px 15px 4px 6px;
background : url(/core/images/tab_top_right.gif) no-repeat right
top;
color : #333;
font-size : 85%;
font-family: tahoma, verdana, sans-serif;
}

I agree, should work just like you said, but it is not.
Any idea?


Musachy Barroso wrote:

 Do you mean to extract the images or reference the images inside the
jar?
 Once you are using your css, you can use your own images like you
usually
 do
 (from a  subdir of your webroot for example)

 musachy

 On 3/20/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:


 Hi,

 I'm still having problems to take the templates images out of .jar.

 I'm trying to take the images that compose the Tab in a TabbedPanel,
and
 thus, use my own images with my own colors. I got this replacing the
 images
 inside the .jar, but it is not a good approach.

 I got use my own css using templateCssPath, but I changed the url for
get
 images from /MyCTX/images/core/tab
 Does anyone have any example about how take the images out of .jar?

 The weird thing is that it was supposed to be a simple thing, isn't it?

 regards...

 Felipe Rodrigues


 Musachy Barroso wrote:
 
  Look at TabContainer.html here:
 
 

http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/templates/
 
  which is the template used by Dojo to build the widget.
 
  regards
  musachy
 
  On 3/16/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:
 
 
  But what exactly are the css's that I have to override?
 
  I mean, what properties does TabbedPanel allow to set from css?
  Is there any place to find it out?
  I'm asking this because I didn't found any place at
  TabConteiner.csssetting
  up the font of a Tab.
 
  Another question would be, where does dojo set the css classes for
 this
  file? Is that important to know or I just have to create a new css
 file
  with
  the same properties and my own values?
 
 
  Felipe
 
 
 
  Nate Drake wrote:
  
   Awesome!  I didn't realize that.  Thanks.
  
   Musachy Barroso musachy at gmail.com writes:
  
  
   You can use the templateCssPath property to point to your css.
  
   musachy
  
  
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
  http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9522435
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Hey you! Would you help me to carry the stone? Pink Floyd
 
 

 --
 View this message in context:
 http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9574285
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Hey you! Would you help me to carry the stone? Pink Floyd



--
View this message in context:
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9575709
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Hey you! Would you help me to carry the stone? Pink Floyd


TAbbedPanel and CSS

2007-03-16 Thread Felipe Rodrigues

Hi,
Does anyone knows how to change the default .css for TabbedPanel without
change that inside the jar?
I need change the colors of Labe and the image of the tab.

regards,

Felipe
-- 
View this message in context: 
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9520481
Sent from the Struts - User mailing list archive at Nabble.com.


Re: TAbbedPanel and CSS

2007-03-16 Thread Musachy Barroso

You can use the templateCssPath property to point to your css.

musachy

On 3/16/07, Nate Drake [EMAIL PROTECTED] wrote:


Felipe Rodrigues feliperod777 at yahoo.com.br writes:



 Hi,
 Does anyone knows how to change the default .css for TabbedPanel without
 change that inside the jar?
 I need change the colors of Labe and the image of the tab.

 regards,

 Felipe

I was able to do this, but it is kinda ugly.  We used !important to
override the
CSS to use our own tab images.  Something like this:

.dojoTab {
background : url(/images/tab_left.gif) no-repeat left top !important;
}

.dojoTab div {
background : url(/images/tab_right.gif) no-repeat right top
!important;
}






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Hey you! Would you help me to carry the stone? Pink Floyd


Re: TAbbedPanel and CSS

2007-03-16 Thread Nate Drake
Awesome!  I didn't realize that.  Thanks.

Musachy Barroso musachy at gmail.com writes:

 
 You can use the templateCssPath property to point to your css.
 
 musachy
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TAbbedPanel and CSS

2007-03-16 Thread Nate Drake
Felipe Rodrigues feliperod777 at yahoo.com.br writes:

 
 
 Hi,
 Does anyone knows how to change the default .css for TabbedPanel without
 change that inside the jar?
 I need change the colors of Labe and the image of the tab.
 
 regards,
 
 Felipe

I was able to do this, but it is kinda ugly.  We used !important to override the
CSS to use our own tab images.  Something like this:

.dojoTab { 
background : url(/images/tab_left.gif) no-repeat left top !important;
} 

.dojoTab div { 
background : url(/images/tab_right.gif) no-repeat right top !important;
} 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TAbbedPanel and CSS

2007-03-16 Thread Felipe Rodrigues

But what exactly are the css's that I have to override?

I mean, what properties does TabbedPanel allow to set from css?
Is there any place to find it out?
I'm asking this because I didn't found any place at TabConteiner.css setting
up the font of a Tab.

Another question would be, where does dojo set the css classes for this
file? Is that important to know or I just have to create a new css file with
the same properties and my own values?


Felipe



Nate Drake wrote:
 
 Awesome!  I didn't realize that.  Thanks.
 
 Musachy Barroso musachy at gmail.com writes:
 
 
 You can use the templateCssPath property to point to your css.
 
 musachy
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9522435
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TAbbedPanel and CSS

2007-03-16 Thread Musachy Barroso

Look at TabContainer.html here:

http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/org/apache/struts2/static/dojo/src/widget/templates/

which is the template used by Dojo to build the widget.

regards
musachy

On 3/16/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:



But what exactly are the css's that I have to override?

I mean, what properties does TabbedPanel allow to set from css?
Is there any place to find it out?
I'm asking this because I didn't found any place at TabConteiner.csssetting
up the font of a Tab.

Another question would be, where does dojo set the css classes for this
file? Is that important to know or I just have to create a new css file
with
the same properties and my own values?


Felipe



Nate Drake wrote:

 Awesome!  I didn't realize that.  Thanks.

 Musachy Barroso musachy at gmail.com writes:


 You can use the templateCssPath property to point to your css.

 musachy




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
View this message in context:
http://www.nabble.com/TAbbedPanel-and-CSS-tf3416215.html#a9522435
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Hey you! Would you help me to carry the stone? Pink Floyd