You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Perry Q Hertler <pe...@yahoo.com> on 2004/04/30 03:20:54 UTC

Palette Width

It looks to me like there is no way of setting the
width of the <select> inside the Palette component.

It seems that the render method in
org.apache.tapestry.contrib.palette.PaletteColumn
needs to allow for a class attribute.

Am I missing something or do I need to modify the
PaletteColum code?

Thanks,
Perry


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Palette Width

Posted by Perry Q Hertler <pe...@yahoo.com>.
I should have mentioned in my original post that I
have tried what is in the documentation with no
success.  However, I have tried what I suggested and
it does work.

--- "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>
wrote:
> This was taken from the Component Reference page
> about contrib:Palette:
> 
> [quote]
> A Palette requires some CSS entries to render
> correctly ... especially the
> middle column, which contains the two or four
> buttons for moving selections
> between the two columns. The width and alignment of
> this column must be set
> using CSS. Additionally, CSS is commonly used to
> give the Palette columns a
> fixed width, and to dress up the titles. Here is an
> example of some CSS you
> can use to format the palette component: 
> 
> TD.available-cell SELECT
> {
>   font-weight: normal;
>   background-color: #FFFFFF;
>   width: 200px;
> }
>  
> TD.selected-cell SELECT
> {
>   font-weight: normal;
>   background-color: #FFFFFF;
>   width: 200px;
> }
> [/quote]
> 
>
http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/contrib/palet
> te/Palette.html
> 
> -----Original Message-----
> From: Perry Q Hertler
> [mailto:perry_hertler@yahoo.com] 
> Sent: Friday, April 30, 2004 3:21 AM
> To: Tapestry users
> Subject: Palette Width
> 
> It looks to me like there is no way of setting the
> width of the <select> inside the Palette component.
> 
> It seems that the render method in
> org.apache.tapestry.contrib.palette.PaletteColumn
> needs to allow for a class attribute.
> 
> Am I missing something or do I need to modify the
> PaletteColum code?
> 
> Thanks,
> Perry
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs  
> http://hotjobs.sweepstakes.yahoo.com/careermakeover 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Palette Width

Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
This was taken from the Component Reference page about contrib:Palette:

[quote]
A Palette requires some CSS entries to render correctly ... especially the
middle column, which contains the two or four buttons for moving selections
between the two columns. The width and alignment of this column must be set
using CSS. Additionally, CSS is commonly used to give the Palette columns a
fixed width, and to dress up the titles. Here is an example of some CSS you
can use to format the palette component: 

TD.available-cell SELECT
{
  font-weight: normal;
  background-color: #FFFFFF;
  width: 200px;
}
 
TD.selected-cell SELECT
{
  font-weight: normal;
  background-color: #FFFFFF;
  width: 200px;
}
[/quote]

http://jakarta.apache.org/tapestry/doc/api/org/apache/tapestry/contrib/palet
te/Palette.html

-----Original Message-----
From: Perry Q Hertler [mailto:perry_hertler@yahoo.com] 
Sent: Friday, April 30, 2004 3:21 AM
To: Tapestry users
Subject: Palette Width

It looks to me like there is no way of setting the
width of the <select> inside the Palette component.

It seems that the render method in
org.apache.tapestry.contrib.palette.PaletteColumn
needs to allow for a class attribute.

Am I missing something or do I need to modify the
PaletteColum code?

Thanks,
Perry


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org