Re: T5 css problem

2008-08-04 Thread Argo Vilberg
Sorry,





This working


I myself made little bug


And thanks!


Argo


Re: T5 css problem

2008-08-04 Thread Argo Vilberg
No success.



Argo

2008/8/4 Angelo Chen <[EMAIL PROTECTED]>

>
> how about do it this way:
>
>  type="text/css"/>
>
> this presumes you have a css directory.
>
>
> Argo Vilberg wrote:
> >
> > hi
> >
> >
> > In Start page i use my own css file without @asset tapestry command.
> >
> > If i go directly to start page then css is working.
> >
> >
> > But if i go to start page from another page(becouse of login redirection)
> > then css file is not working.
> >
> > Generated HTML files are identical:)
> >
> >
> > Argo
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/T5-css-problem-tp18808562p18808609.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T5 css problem

2008-08-04 Thread Angelo Chen

how about do it this way:

 

this presumes you have a css directory.


Argo Vilberg wrote:
> 
> hi
> 
> 
> In Start page i use my own css file without @asset tapestry command.
> 
> If i go directly to start page then css is working.
> 
> 
> But if i go to start page from another page(becouse of login redirection)
> then css file is not working.
> 
> Generated HTML files are identical:)
> 
> 
> Argo
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-css-problem-tp18808562p18808609.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] CSS

2008-07-14 Thread Andreas Andreou
Yes, setting useFileMappedBuffer to false helps with jetty locking
files in windows

See the webdefault.xml from the TimeTracker app:
https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-examples/TimeTracker/src/config/webdefault.xml


On Mon, Jul 14, 2008 at 10:48 AM, Joe Trewin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We had this problem too - it's because Jetty by default using NIO, and
> there's a problem with that under windows. The solution we use is (in
> development) to configure Jetty to use just plain old io:
>
> So instead of using:
>
>  implementation="org.mortbay.jetty.nio.SelectChannelConnector">
>8081
> 
>
> Try:
>
> 
>8081
> 
>
> However, in writing this reply I've just found the following:
>
> http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows
>
> Which may be a more correct solution ...
>
>
>> -Original Message-
>> From: kace [mailto:[EMAIL PROTECTED]
>> Sent: 12 July 2008 22:00
>> To: users@tapestry.apache.org
>> Subject: Re: [T5] CSS
>>
>>
>> the jetty setup is nothing fancy :
>>
>> 
>> 
>> org.mortbay.jetty
>> maven-jetty-plugin
>> 6.1.9
>> 
>> /
>>
>> src/main/resources/webdefault.xml
>> 
>> > implementation="org.mortbay.jetty.NCSARequestLog">
>> 
>> true
>> 
>> 
>> > implementation="org.mortbay.jetty.nio.SelectChannelConnector">
>> 8081
>> 
>> 
>> 
>> 
>>
>> how do you have it setup?  I put the Layout.tml back under
>> /resources/org/example/myapp and now it works + now that the
>> css files are under webapp/ changes get picked up as I change
>> them - thanks.
>>
>> I haven't used annotation for css - use this > type="text/css" href="${asset:context:/styles/main.css}"/>
>>
>> Regards,
>>
>> ..kace
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-T5--tp18415269p18423614.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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



RE: [T5] CSS

2008-07-14 Thread Joe Trewin
Hi,

We had this problem too - it's because Jetty by default using NIO, and
there's a problem with that under windows. The solution we use is (in
development) to configure Jetty to use just plain old io:

So instead of using:


8081


Try:


8081


However, in writing this reply I've just found the following:

http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows

Which may be a more correct solution ...


> -Original Message-
> From: kace [mailto:[EMAIL PROTECTED] 
> Sent: 12 July 2008 22:00
> To: users@tapestry.apache.org
> Subject: Re: [T5] CSS
> 
> 
> the jetty setup is nothing fancy :
> 
> 
> 
> org.mortbay.jetty
> maven-jetty-plugin
> 6.1.9
> 
> /
>
> src/main/resources/webdefault.xml
> 
>  implementation="org.mortbay.jetty.NCSARequestLog">
> 
> true
> 
> 
>  implementation="org.mortbay.jetty.nio.SelectChannelConnector">
> 8081
> 
> 
> 
> 
> 
> how do you have it setup?  I put the Layout.tml back under 
> /resources/org/example/myapp and now it works + now that the 
> css files are under webapp/ changes get picked up as I change 
> them - thanks.
> 
> I haven't used annotation for css - use this  type="text/css" href="${asset:context:/styles/main.css}"/>
> 
> Regards,
> 
> ..kace
> 
> 
> --
> View this message in context: 
> http://www.nabble.com/-T5--tp18415269p18423614.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: [T5] CSS

2008-07-12 Thread kace

the jetty setup is nothing fancy :



org.mortbay.jetty
maven-jetty-plugin
6.1.9

/
   
src/main/resources/webdefault.xml



true



8081





how do you have it setup?  I put the Layout.tml back under
/resources/org/example/myapp and now it works + now that the css files are
under webapp/ changes get picked up as I change them - thanks.

I haven't used annotation for css - use this 

Regards,

..kace


-- 
View this message in context: 
http://www.nabble.com/-T5--tp18415269p18423614.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] CSS

2008-07-12 Thread Fernando Padilla
We keep all files under the /java/ directory.. *.java, *.tml, *.css, 
*.js etc, etc.  Just posing that as an option, because I'm not sure how 
you have your jetty setup.. the resources directory usually has to be 
copied over to the final location for things to work properly... but 
maybe it's running directly off of the main/webapp directory and/or the 
classpath is hot-loaded from target/classes ( hence anything under java 
directory can be hot-loaded )...


But I don't have a silver bullet for you, sorry.



How are you asking tapestry to bring in the css?  Through annotation?

@IncludeStylesheet( "context:/styles/main.css" )




kace wrote:

no I haven't, I moved everthing out of /resources and now have the following
layout:

/java/../components/
Layout.tml
Layout.java
/java/../pages/
   Index.java
/webapp/styles/
main.css
/webapp/
   Index.tml

find the contents of Index.tml below...

running the app now only shows me [refreshsss] - the other text is missing and
there is no css applied?  Any ideas...It worked when I had it under
/resources/org/example/myapp/


thanks

..kace

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; 
t:title="literal:My first use of layout component" >



 This is the start page for this application, a good place to
start your modifications.
Just to prove this is liv4e: 

 The current time is: ${currentTime}. ${kace}


[refreshsss]





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



Re: [T5] CSS

2008-07-12 Thread kace

no I haven't, I moved everthing out of /resources and now have the following
layout:

/java/../components/
Layout.tml
Layout.java
/java/../pages/
   Index.java
/webapp/styles/
main.css
/webapp/
   Index.tml

find the contents of Index.tml below...

running the app now only shows me [refreshsss] - the other text is missing and
there is no css applied?  Any ideas...It worked when I had it under
/resources/org/example/myapp/


thanks

..kace

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; 
t:title="literal:My first use of layout component" >


 This is the start page for this application, a good place to
start your modifications.
Just to prove this is liv4e: 

 The current time is: ${currentTime}. ${kace}


[refreshsss]



-- 
View this message in context: 
http://www.nabble.com/-T5--tp18415269p18423303.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] CSS

2008-07-12 Thread Fernando Padilla

did you try putting the css within the src/main/java/. directory?

kace wrote:
Hi, how can I get the jetty server to pick up the css changes I make 


I've added this
src/main/resources/webdefault.xml to the
jetty plugin in the pom.  Right now I need to run mvn clean then restart
jetty:run for it to pick up the changes.  The css file is located in
/resources/org/example/myapp/assets/

Thanks

..kace 


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



Re: [T5] CSS

2008-07-12 Thread kace

Hi, how can I get the jetty server to pick up the css changes I make 

I've added this
src/main/resources/webdefault.xml to the
jetty plugin in the pom.  Right now I need to run mvn clean then restart
jetty:run for it to pick up the changes.  The css file is located in
/resources/org/example/myapp/assets/

Thanks

..kace 
-- 
View this message in context: 
http://www.nabble.com/-T5--tp18415269p18421243.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5]: CSS question? But having to do with default.css (Tapestry CSS)

2008-04-05 Thread Andy Huhn
I think I solved my own question.

For the sake of anyone else facing this same issue, I added this to my
stylesheet:

DIV.t-beandisplay DIV.t-beandisplay-value {
display: block;
float: left;
clear: right;
}

Thanks,
Andy

On Sat, 2008-04-05 at 22:27 -0400, Andy Huhn wrote:
> All,
> 
> I hope this isn't too off-topic, but I'm posting here since default.css
> is generated by Tapestry, and I'm hoping that someone else on the list
> has solved the same problem.
> 
> I have a BeanDisplayForm.  I have something like this in my CSS:
> 
> div.t-beandisplay-label{
> width: 80px;
> }
> 
> (I don't want to give up too much horizontal space on the page for
> labels).  The problem comes when one of my labels is too long for one
> line, and it wraps...the labels get out of synch with the values.  The
> label takes two lines, but the corresponding value only seems to take
> one line.
> 
> Has anyone else faced this?  Any help?
> 
> I have tried using display: inline instead of display: block, I've tried
> setting 
> 
> div.t-beandisplay-value:after {
> clear:both;
> }
> 
> I've tried pretty much everything I can think of.  Help?
> 
> Thanks very much,
> Andy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: T5: CSS Injection and IE Conditional Comments

2008-02-17 Thread Kevin Menard
I think allowing them in comments would be nice.  It could be a good way
to format values inside comments (e.g., dynamic copyright statements)
and could be a nice way to debug values.  I think it would reduce
surprises marginally as well.

Of course, if it's at the cost performance I may reconsider it.

-- 
Kevin

-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 17, 2008 2:34 PM
To: Tapestry users
Subject: Re: T5: CSS Injection and IE Conditional Comments

I think these comments are right on the money.

Perhaps it would be easier if expansions were allowed inside comments?
 That's entirely doable.

On Feb 15, 2008 11:55 AM, Robert Zeigler <[EMAIL PROTECTED]> wrote:
> Expansions won't work (directly) for the asset, b/c expansions inside
> of comments are ignored, so trying to do something like:
> 
>
> Isn't going to work.
>
> What you /could/ do is to have the entire comment generated in java
> code, and then have all of the comment spit out as an expanded string
> in your template.
> Quick and dirty, but it'll work.
> Something like:
>
> .java:
>
> @Inject
> @Path("$path/to/css/default.css")
> private Asset _defaultStyle;
>
> public String getConditionalComment() {
> return "";
> }
>
> .tml:
>
> ${conditionalComment}
>
>
>
> Perhaps a nicer way of doing this would be to "componetize" the
> behavior.
> You could create a ConditionalComment component which would wrap it's
> body in the conditional comments, with a string parameter representing
> the condition.
> Something like:
>
> ConditionalComment.java:
>
> @Parameter(required=true,defaultPrefix="literal")
> private String _condition;
>
> private void beginRender(MarkupWriter writer) {
> writeRaw("");
> }
>
> Then your templates that need conditional comments could look like:
>
> 
>
> 
>
>
> The above code is, of course, untested, but should convey the general
> idea.
>
> Cheers,
>
> Robert
>
>
> On Feb 15, 2008, at 2/1512:57 PM , Kevin Menard wrote:
>
> > You could just use an expansion in your template for the asset.  Not
> > quite
> > the same, but it would accomplish the same goal.
> >
> > --
> > Kevin
> >
> >
> > On 2/15/08 12:28 PM, "lebenski" <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Hi guys,
> >>
> >> Does anyone know of a mechanism of utilizing IE Conditional
> >> Comments for
> >> importing browser-specific CSS, but using the standard tapestry
> >> method of
> >> css injection via the page class, i.e. something like:
> >>
> >> private PageRenderSupport _pageRenderSupport;
> >>
> >> @Inject
> >> @Path("$path/to/css/default.css")
> >> private Asset _defaultStyle;
> >>
> >> ...
> >>
> >> _pageRenderSupport.addStylesheetLink(_defaultStyle,null);
> >>
> >> Cheers,
> >> Ben.
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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


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



Re: T5: CSS Injection and IE Conditional Comments

2008-02-17 Thread Howard Lewis Ship
I think these comments are right on the money.

Perhaps it would be easier if expansions were allowed inside comments?
 That's entirely doable.

On Feb 15, 2008 11:55 AM, Robert Zeigler <[EMAIL PROTECTED]> wrote:
> Expansions won't work (directly) for the asset, b/c expansions inside
> of comments are ignored, so trying to do something like:
> 
>
> Isn't going to work.
>
> What you /could/ do is to have the entire comment generated in java
> code, and then have all of the comment spit out as an expanded string
> in your template.
> Quick and dirty, but it'll work.
> Something like:
>
> .java:
>
> @Inject
> @Path("$path/to/css/default.css")
> private Asset _defaultStyle;
>
> public String getConditionalComment() {
> return "";
> }
>
> .tml:
>
> ${conditionalComment}
>
>
>
> Perhaps a nicer way of doing this would be to "componetize" the
> behavior.
> You could create a ConditionalComment component which would wrap it's
> body in the conditional comments, with a string parameter representing
> the condition.
> Something like:
>
> ConditionalComment.java:
>
> @Parameter(required=true,defaultPrefix="literal")
> private String _condition;
>
> private void beginRender(MarkupWriter writer) {
> writeRaw("");
> }
>
> Then your templates that need conditional comments could look like:
>
> 
>
> 
>
>
> The above code is, of course, untested, but should convey the general
> idea.
>
> Cheers,
>
> Robert
>
>
> On Feb 15, 2008, at 2/1512:57 PM , Kevin Menard wrote:
>
> > You could just use an expansion in your template for the asset.  Not
> > quite
> > the same, but it would accomplish the same goal.
> >
> > --
> > Kevin
> >
> >
> > On 2/15/08 12:28 PM, "lebenski" <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Hi guys,
> >>
> >> Does anyone know of a mechanism of utilizing IE Conditional
> >> Comments for
> >> importing browser-specific CSS, but using the standard tapestry
> >> method of
> >> css injection via the page class, i.e. something like:
> >>
> >> private PageRenderSupport _pageRenderSupport;
> >>
> >> @Inject
> >> @Path("$path/to/css/default.css")
> >> private Asset _defaultStyle;
> >>
> >> ...
> >>
> >> _pageRenderSupport.addStylesheetLink(_defaultStyle,null);
> >>
> >> Cheers,
> >> Ben.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread Kevin Menard
Ahh, good to know.  It's nothing I've ever tried, but I just assumed would
work.  In that case, I'd go with Robert's suggestions (since they'll
actually work).

-- 
Kevin


On 2/15/08 2:55 PM, "Robert Zeigler" <[EMAIL PROTECTED]> wrote:

> Expansions won't work (directly) for the asset, b/c expansions inside
> of comments are ignored, so trying to do something like:
> 
> 
> Isn't going to work.
> 
> What you /could/ do is to have the entire comment generated in java
> code, and then have all of the comment spit out as an expanded string
> in your template.
> Quick and dirty, but it'll work.
> Something like:
> 
> .java:
> 
> @Inject
> @Path("$path/to/css/default.css")
> private Asset _defaultStyle;
> 
> public String getConditionalComment() {
> return "";
> }
> 
> .tml:
> 
> ${conditionalComment}
> 
> 
> 
> Perhaps a nicer way of doing this would be to "componetize" the
> behavior.
> You could create a ConditionalComment component which would wrap it's
> body in the conditional comments, with a string parameter representing
> the condition.
> Something like:
> 
> ConditionalComment.java:
> 
> @Parameter(required=true,defaultPrefix="literal")
> private String _condition;
> 
> private void beginRender(MarkupWriter writer) {
> writeRaw("");
> }
> 
> Then your templates that need conditional comments could look like:
> 
> 
>
> 
> 
> 
> The above code is, of course, untested, but should convey the general
> idea.
> 
> Cheers,
> 
> Robert
> 
> On Feb 15, 2008, at 2/1512:57 PM , Kevin Menard wrote:
> 
>> You could just use an expansion in your template for the asset.  Not
>> quite
>> the same, but it would accomplish the same goal.
>> 
>> -- 
>> Kevin
>> 
>> 
>> On 2/15/08 12:28 PM, "lebenski" <[EMAIL PROTECTED]> wrote:
>> 
>>> 
>>> Hi guys,
>>> 
>>> Does anyone know of a mechanism of utilizing IE Conditional
>>> Comments for
>>> importing browser-specific CSS, but using the standard tapestry
>>> method of
>>> css injection via the page class, i.e. something like:
>>> 
>>> private PageRenderSupport _pageRenderSupport;
>>> 
>>> @Inject
>>> @Path("$path/to/css/default.css")
>>> private Asset _defaultStyle;
>>> 
>>> ...
>>> 
>>> _pageRenderSupport.addStylesheetLink(_defaultStyle,null);
>>> 
>>> Cheers,
>>> Ben.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread Robert Zeigler
Expansions won't work (directly) for the asset, b/c expansions inside  
of comments are ignored, so trying to do something like:



Isn't going to work.

What you /could/ do is to have the entire comment generated in java  
code, and then have all of the comment spit out as an expanded string  
in your template.

Quick and dirty, but it'll work.
Something like:

.java:

@Inject
@Path("$path/to/css/default.css")
private Asset _defaultStyle;

public String getConditionalComment() {
	return "";

}

.tml:

${conditionalComment}



Perhaps a nicer way of doing this would be to "componetize" the  
behavior.
You could create a ConditionalComment component which would wrap it's  
body in the conditional comments, with a string parameter representing  
the condition.

Something like:

ConditionalComment.java:

@Parameter(required=true,defaultPrefix="literal")
private String _condition;

private void beginRender(MarkupWriter writer) {
writeRaw("");
}

Then your templates that need conditional comments could look like:


  



The above code is, of course, untested, but should convey the general  
idea.


Cheers,

Robert

On Feb 15, 2008, at 2/1512:57 PM , Kevin Menard wrote:

You could just use an expansion in your template for the asset.  Not  
quite

the same, but it would accomplish the same goal.

--
Kevin


On 2/15/08 12:28 PM, "lebenski" <[EMAIL PROTECTED]> wrote:



Hi guys,

Does anyone know of a mechanism of utilizing IE Conditional  
Comments for
importing browser-specific CSS, but using the standard tapestry  
method of

css injection via the page class, i.e. something like:

private PageRenderSupport _pageRenderSupport;

@Inject
@Path("$path/to/css/default.css")
private Asset _defaultStyle;

...

_pageRenderSupport.addStylesheetLink(_defaultStyle,null);

Cheers,
Ben.



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



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



Re: T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread Kevin Menard
You could just use an expansion in your template for the asset.  Not quite
the same, but it would accomplish the same goal.

-- 
Kevin


On 2/15/08 12:28 PM, "lebenski" <[EMAIL PROTECTED]> wrote:

> 
> Hi guys,
> 
> Does anyone know of a mechanism of utilizing IE Conditional Comments for
> importing browser-specific CSS, but using the standard tapestry method of
> css injection via the page class, i.e. something like:
> 
> private PageRenderSupport _pageRenderSupport;
> 
> @Inject
> @Path("$path/to/css/default.css")
> private Asset _defaultStyle;
> 
> ...
> 
> _pageRenderSupport.addStylesheetLink(_defaultStyle,null);
> 
> Cheers,
> Ben.


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



Re: T5 CSS positioning of errors.

2007-08-02 Thread Evan Rawson - Work

yeah i noticed that as well.

i used this css to fix the problem
/* Validation Decoration Overide */
div.t-error{
margin:6px 0 0 0;
padding:0px;
background-color:#FF;}
div.t-error ul{
margin:0px;
padding:1px 0 2px 20px;}
div.t-error li{
margin:0px;
padding:1px 0 1px 0;}




this turns off the X marks
=
img.t-error-icon{
border:0;
display: none;}


~evan


- Original Message - 
From: "Daniel Jue" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Wednesday, August 01, 2007 5:01 PM
Subject: T5 CSS positioning of errors.



Not sure why this is here in the default CSS:

div.t-error li {
margin-left: -20px;
}

For me (in Firefox) it makes my form validation errors appear outside
the pretty red box they come in.

I overrode it in my own CSS, to be

div.t-error li {
margin-left: 20px;
}

Now my disc (the solid bullet) and the error are nicely inside the box.

Inspecting the li in FireBug, it seems the only style affecting that
li were from default.css, not my own.

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



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



Re: T5 CSS

2007-05-09 Thread Marcus

Just another way,

Layout.html:






with mystyles.css under src/main/webapp/assets/css/

;)
Marcus


Re: T5 CSS

2007-03-29 Thread Adrian Bele

Thank you guys,

Having default.css configurable will be nice, but I think, as you say
Howard, it's a low priority. (better have hibernate archetype done first
:-).

One remark which I figure out :

common  place for .css files can be set in following way:

-webapp
-- ASSETS
   -- style.css
--WEB-INF

than in *.java class

@Inject ("context:assets/style.css")
...

Cheers,
Adrian



On 3/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:


Yes, that's the intention; Tapestry puts the default.css first, with
the expectation that any additional CSS links or 

Re: T5 CSS

2007-03-29 Thread Howard Lewis Ship

Yes, that's the intention; Tapestry puts the default.css first, with
the expectation that any additional CSS links or 

Re: T5 CSS

2007-03-29 Thread Bill Holloway

I'm not sure about shutting off the default.css, but the "C" in "CSS"
means cascading, which means you can override the styles set in
default.css.  For a particular page, put your CSS files in
src/main/resources/org/example/myapp/pages/mystyles.css, where
org/example/myapp is your project package path

In your page's java class put

@Inject ("mystyles.css")
private Asset _myStyleSheet;

public Asset getMyStyleSheet { return _myStyleSheet; }

Then in the page template, put



Cheers,
Bill

On 3/29/07, Adrian Bele <[EMAIL PROTECTED]> wrote:

Hi,

I'm new here.
Can anybody know how to replace


with my own stylesheet, and where it should be place?

Thanks

Adrian




--
"The future is here.  It's just not evenly distributed yet."

-- Traditional

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