I have made an example app and it works
https://github.com/lukaszlenart/struts2-theme-inherit
2015-05-05 8:12 GMT+02:00 Zoran Avtarovski :
> Hi Lucasz,
>
>>>I had copied all the missing simple templates into my mobile template
>>
>>don't do it, Struts will find them. Just override those templates
Hi Lucasz,
>>I had copied all the missing simple templates into my mobile template
>
>don't do it, Struts will find them. Just override those templates which
>you need
I don¹t think I was clear enough here. If I don¹t include the file the
error is thrown. The issue I have is struts doesn¹t find t
2015-05-05 7:19 GMT+02:00 Zoran Avtarovski :
> I spoke too soon.
>
> I just replaced all instances of parameters.theme with
> parameters.expandTheme.
>
> I had copied all the missing simple templates into my mobile template
don't do it, Struts will find them. Just override those templates which yo
gt;this?
>>
>> We are using struts 2.3.20 and freemarker 2.3.19 if it makes any
>>difference.
>
>Strange, the same mechanism is used by Struts itself. Can you show
>project's structure? Or prepare a small demo app to represent your
>case?
>
>Here you have some exa
9 if it makes any
>>difference.
>
>Strange, the same mechanism is used by Struts itself. Can you show
>project's structure? Or prepare a small demo app to represent your
>case?
>
>Here you have some examples:
>https://github.com/apache/struts-examples/tree/master/them
r prepare a small demo app to represent your
case?
Here you have some examples:
https://github.com/apache/struts-examples/tree/master/themes
https://github.com/apache/struts-examples/tree/master/themes_override
Regards
--
Łukasz
+ 48 606 323
We¹ve started a new project which required a custom theme which we call
mobile and we set it to extend the simple theme by creating a
theme.properties file and setting parent=simple.
Unfortunately this isn¹t working. It has in the past without any issues. Has
something changed in the latest versio
Hello,
The/struts2examples/themes is ok now, since a new updated at 2013-12-13.
Regards,
Chris
Chris yahoo.fr> writes:
>
> Hello,
>
> Problem since 2013-12-12 with the new version "themes" and Struts2.3.16
>
>
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/themes
>
> in Struts-2.3.16
> The new version
> A
I guess I know, now.
It's the 4's team :
Netbeans 7 - Tomcat 7 - Struts2.3.16 - DEBUG level in log4j.xml for
com.opensymphony
The Themes example is not the only one , with which I found thousand of lines
in view server output. On my own old PC , more than 10 mn for 340 000 line
ild and deploy the new war.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/12/15 Chris :
>> Hello,
>>
>> Sorry, I didn't find any solution.
>> Struts 2 Themes and Struts 2.3.16 are not working ( Netbeans 7 and Tomcat 7
&
deploy the new war.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/12/15 Chris :
> Hello,
>
> Sorry, I didn't find any solution.
> Struts 2 Themes and Struts 2.3.16 are not working ( Netbeans 7 and Tomcat 7
> )
> I believe I have to stop my tests.
>
>
122 http://www.lenart.org.pl/
2013/12/15 Chris :
> Hello,
>
> Sorry, I didn't find any solution.
> Struts 2 Themes and Struts 2.3.16 are not working ( Netbeans 7 and Tomcat 7
> )
> I believe I have to stop my tests.
>
> But old version ( Struts2 Themes before 2013-12-13 ) and Struts
Hello,
Sorry, I didn't find any solution.
Struts 2 Themes and Struts 2.3.16 are not working ( Netbeans 7 and Tomcat 7 )
I believe I have to stop my tests.
But old version ( Struts2 Themes before 2013-12-13 ) and Struts 2.3.15.3 only
are working.
The new files checkboxlist.ft
Hi,
I cannot reproduce the problem, everything works as expected with my
changes to the themes example - tried with Jetty and Tomcat 7 and
JBoss 7.1 - works like charm.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl
13-12-12 with the new version "themes" and Struts2.3.16
>
> https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/themes
>
> in Struts-2.3.16
> The new version
> A
> struts2examples\themes\src\main\webapp\template\KUTheme_simple\theme.properti
Hi,
I'm not sure if I get what you mean, but I have updated that example
few hours ago - please update and check again.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/12/13 Chris :
> Hello,
>
>
> Problem since 2013-12-12 with the new version "th
Hello,
Problem since 2013-12-12 with the new version "themes" and Struts2.3.16
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/themes
in Struts-2.3.16
The new version
A
struts2examples\themes\src\main\webapp\template\KUTheme_simple\theme.pr
Attachments don't appear to work through the mailing list.
(*Chris*)
On Tue, Sep 10, 2013 at 11:35 AM, Srineel Mazumdar wrote:
> Hi Chris,
>
> Attached the images.
>
> Thanks,
> Srineel
>
>
> On Tue, Sep 10, 2013 at 1:17 PM, Chris Pratt wrote:
>
>> Srineel, your images didn't come through the
Hi Chris,
Attached the images.
Thanks,
Srineel
On Tue, Sep 10, 2013 at 1:17 PM, Chris Pratt wrote:
> Srineel, your images didn't come through the mail list, any chance you
> could PasteBin them or put them somewhere else accessible?
> (*Chris*)
>
>
> On Tue, Sep 10, 2013 at 7:50 AM, Srineel
Srineel, your images didn't come through the mail list, any chance you
could PasteBin them or put them somewhere else accessible?
(*Chris*)
On Tue, Sep 10, 2013 at 7:50 AM, Srineel Mazumdar wrote:
> Hi Chris,
>
> Thanks for the help. But the change I need is bit different .
>
> What I need :
>
Hi Chris,
Thanks for the help. But the change I need is bit different .
What I need :
[image: Inline image 1]
What I am getting :
[image: Inline image 2]
Code for image 1 :
<%@ include file="IncludeTop.jsp" %>
<%@ taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html"; %>
Try cssStyle="background-color:yellow;"
(*Chris*)
On Sun, Sep 8, 2013 at 9:54 PM, Srineel Mazumdar wrote:
> Hi,
>
> I am using s:select to create a dropdown and then checked the html. I
> wanted to add bgcolor as yellow. I referred to the following link
>
> http://struts.apache.org/release/2.2
Hi,
I am using s:select to create a dropdown and then checked the html. I
wanted to add bgcolor as yellow. I referred to the following link
http://struts.apache.org/release/2.2.x/docs/struts-2-themes.html
but still not sure how to put the background clour as yellow. Can anyone
provide any pointe
Same answer as the first time, although you might want to consider
abstracting themes at a higher level instead of just hiding sections via
CSS. But this is pretty off-topic.
d
On Apr 25, 2011 8:05 AM, "rocklee" wrote:
> Hi Dave,
>
> Thanks for your reply. Different theme
e
> On Apr 25, 2011 3:29 AM, "rocklee" <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=4338026&i=0&by-user=t>>
> wrote:
> > I want to implement wordpress like themes, one application has different
> > themes, the template in each theme m
Use CSS and include a different one for each theme. See the CSS Zen garden
site for examples of what can be done with pure CSS.
Dave
On Apr 25, 2011 3:29 AM, "rocklee" wrote:
> I want to implement wordpress like themes, one application has different
> themes, the template in
I want to implement wordpress like themes, one application has different
themes, the template in each theme maybe have different layout and contains
different sections. User can select which theme to use. I thought there will
be a folder with different themes, like following:
web
- WEB-INF
http://www.packtpub.com/article/themes-and-templates-with-apache-struts2
From: spsarolkar
To: user@struts.apache.org
Sent: Friday, August 14, 2009 10:38:09 AM
Subject: Creating struts2 themes
I am learning struts2 and want to create custom themes. I am not
I am learning struts2 and want to create custom themes. I am not able to find
and documentation which tells how to create new themes. Can somebody tell me
the link to the documentation where theme creation is explained step by
step.
Thanks in advance..:-)
--
View this message in context:
http
I recently had to override the 'simple' template to remove the HTML list
formatting.
Try these links
http://struts.apache.org/2.0.14/docs/themes-and-templates.html
http://struts.apache.org/2.0.14/docs/template-loading.html
I found them extremely helpful.
HTH
On Tue, Mar 3, 2009
w the
> field?
>
>
>clientname
>
> --
> View this message in context:
> http://www.nabble.com/Struts-Themes-Problem---help-tp18054982p22306342.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> --
?
clientname
--
View this message in context:
http://www.nabble.com/Struts-Themes-Problem---help-tp18054982p22306342.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr
Thanks for your reply, you were right. Once freemarker has control
it's unaware of the parent theme. Pretty much all controls have
<#include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl"
/> in their template. Once I added my own controlheader.ftl it
worked. My other problem
Nick Scavelli wrote:
Here's what I've done:
/WEB-INF/classes/struts.properties:
struts.ui.theme=ccast2_0
struts.ui.templateDir=templates
/templates/ccast2_0/theme.properties
parent=css_xhtml
Please advise because this is so annoying.
I can't see anything wrong with that. I do the same th
I am struggling with the whole "extending theme" functionality in
struts2. Either I'm doing something incredibly stupid or there's an
issue with extending themes in struts2 (2.1.2 to be more clear). From
what I've gathered from the Struts 2.x documentation is that I shou
the tag you're using?
>
> http://struts.apache.org/2.x/docs/fielderror.html
>
> Did you look at the themes and templates documentation, the starting point
> of which is:
>
> http://struts.apache.org/2.x/do
e.org/2.x/docs/fielderror.html
Did you look at the themes and templates documentation, the starting point of
which is:
http://struts.apache.org/2.x/docs/themes-and-templates.html
Dave "Never wanted to be a dentist, but pulls a lot of teeth" Newton
---
in
xhtml theme with simple theme ?
On Fri, Jun 27, 2008 at 12:06 AM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> To repeat my previous question:
>
> >> How is it failing? Note that the 'simple' theme generates a lot less
> >> markup, and doesn't
To repeat my previous question:
>> How is it failing? Note that the 'simple' theme generates a lot less
>> markup, and doesn't generate everything the other themes do. Are I18N
>> resources failing to get resolved, or is the theme just not
generating the
&g
Hi Laurie / Dave,
can you please help on this?
-- Forwarded message --
From: Narayana S <[EMAIL PROTECTED]>
Date: Tue, Jun 24, 2008 at 3:12 PM
Subject: Re: Struts Themes Problem - help
To: Struts Users Mailing List , [EMAIL PROTECTED]
Hi
is
>> not getting any values from resource bundle..
>>
>
> How is it failing? Note that the 'simple' theme generates a lot less
> markup, and doesn't generate everything the other themes do. Are I18N
> resources failing to get resolved, or is the theme ju
Narayana S wrote:
Hi Dave,
thanks for your reply, but when i use simple theme, my application is
not getting any values from resource bundle..
How is it failing? Note that the 'simple' theme generates a lot less
markup, and doesn't generate everything the other them
Hi Dave,
thanks for your reply, but when i use simple theme, my application is
not getting any values from resource bundle..
will this problem be solved by extending theme ?
can you provide any best link to extend a theme if it is the solution... ?
On Sun, Jun 22, 2008 at 8:25 PM, Dave N
--- On Sun, 6/22/08, Narayana S <[EMAIL PROTECTED]> wrote:
> The problem is here struts 2 is applying it's own styles to
> my page, i want to give my own styles instead of using struts
> default styles,
The easiest answer is to just supply your own CSS styles. You can also extend
an existing,
Hi,
i am new to struts 2, developed sample application that is using
resource bundle, i could configure application and labels are perfectly
displayed with the values retrived from the resource bundle. The problem is
here struts 2 is applying it's own styles to my page, i want to give my
Thank you, Sami. That helps a lot.
Jane
-Original Message-
From: Sami Dalouche [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 1:55 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 Themes
Hi,
your best bet is to look at S2's source code. You can start by looki
; Sent: Tuesday, October 09, 2007 12:57 PM
> To: Struts Users Mailing List
> Subject: Struts 2 Themes
>
> I am trying to get a better understanding of S2 themes. I read the
> document and the create themes page in the cookbook.
>
> My question is how I can find the right
Message-
From: Jiang, Jane (NIH/NCI) [C]
Sent: Tuesday, October 09, 2007 12:57 PM
To: Struts Users Mailing List
Subject: Struts 2 Themes
I am trying to get a better understanding of S2 themes. I read the
document and the create themes page in the cookbook.
My question is how I can find the
I am trying to get a better understanding of S2 themes. I read the
document and the create themes page in the cookbook.
My question is how I can find the right template file for a tag. I
tried to change text.ftl and found that ties to s:textfield. I am now
trying to figure out what is the
Is something like this legal in a Struts 2 custom component:
Some text to be wrapped in my component.
In other words, can act like, for example, ...s.form>? I'd like to create a HTML fieldset component that plays well
with themes. But this doesn&
Juan Espinosa wrote:
Hi is there any theme repository ??? I want to change my theme, like putting
the field errors in red, in the right of the component (field) who cause the
error...
I'm not sure what you mean by a theme repository, but documentation on
customizing Struts 2 theme
Hi is there any theme repository ??? I want to change my theme, like putting
the field errors in red, in the right of the component (field) who cause the
error...
Regards
Juan Espinosa
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Dat
Thanks mark for your help, i will give a try to your advices
Regards Juan
-Mensaje original-
De: Mark Shifman [mailto:[EMAIL PROTECTED]
Enviado el: Martes, 28 de Noviembre de 2006 05:20 p.m.
Para: Struts Users Mailing List
Asunto: Re: Themes and templates
If you set
struts.ui.theme
On 11/28/06 4:06 PM, "Mark Menard" <[EMAIL PROTECTED]> wrote:
> On 11/28/06 4:04 PM, "Juan Espinosa" <[EMAIL PROTECTED]> wrote:
>
>> I want to know if render of buttons tables forms and other tags are based on
>> this templates..and how i could change it
>
> Hi Juan,
>
> The rendering of the bu
On 11/28/06 4:04 PM, "Juan Espinosa" <[EMAIL PROTECTED]> wrote:
> I want to know if render of buttons tables forms and other tags are based on
> this templates..and how i could change it
Hi Juan,
The rendering of the buttons is based on the theme template. The templates
can be found in the Strut
wer your question of how to make themes and
templates work for you :(.
Juan Espinosa wrote:
Hi to all, im building an struts2 based application and i dont understan the
concept of themes an templates. In the past i used struts 1, and in the view
i used jsp tags and struts tags like iterate and
Hi to all, im building an struts2 based application and i dont understan the
concept of themes an templates. In the past i used struts 1, and in the view
i used jsp tags and struts tags like iterate and others.
Now in the application that im buildin i use tags provided by struts like
s:action
My advice would be to look at the existing themes to see how they use
the parameters.
/Ian
--
From Down & Around, Inc.
Innovative IT Solutions
Software Architecture * Design * Development
~
web: www.fdar.com
email [EMAIL PROTE
Hi,
I'm currently evaluating Struts 2 for our next project. Our UI people
have laid out some standards for the markup generated by the application
pages, which the XHTML theme does not satisfy.
I started looking into the "Extending Themes" topic, but it seems that
there's n
Has anyone had any experiences with the Multi-Channels construct within
Tiles?
Any resources, experiences good or bad would be appreciated.
Regards
Marty
In looking into providing a Themes type functionality I've run across the
idea of setting up a new DefinitionsFactory class.
According to the section '8.4 Writing your own Definition Factory' of the
document http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf this
lo
ECTED]
Sent: Tuesday, June 14, 2005 11:48 AM
To: 'Struts Users Mailing List'
Subject: RE: Themes
Use CSS. Use one JSP/tile to get your content together, then based on the
company setting, choose a CSS style sheet to go with it. The style sheet
would contain your graphics, fonts, layout
-Original Message-
From: Martin Ravell [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 5:22 PM
To: Struts User Mailing List
Subject: Themes
I have a requirement to build a 'Themes' (think 'skins') capability into the
UI of my Struts app and would just like to poll t
Well, as promised here is some feedback.
I recommend the article :
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
Especially the section 7.4.3 Dynamic L & F.
Regards
Marty
Regards
Marty
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 14 June 2005 4:36 PM
To: Struts Users Mailing List
Subject: RE: Themes
Martin,
If you're using tiles already, be sure to check out a tiles controller. It
can insert pieces (putList) in
ROTECTED]
Sent: Tuesday, 14 June 2005 4:36 PM
To: Struts Users Mailing List
Subject: RE: Themes
Martin,
If you're using tiles already, be sure to check out a tiles controller. It
can insert pieces (putList) into your tile however you wish it, i.e. if the
path is /members, if you set a (sessi
ssage-
From: Martin Ravell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 14, 2005 2:09 AM
To: 'Struts Users Mailing List'
Subject: RE: Themes
Thanks for the links David.
The app is already using Tiles extensively and as a result I need something
that integrates well with this framework.
I
gards
Marty
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 14 June 2005 2:58 PM
To: Struts Users Mailing List
Subject: RE: Themes
Martin,
Have you looked at any of these?
a) Tiles
http://struts.apache.org
b) SiteMesh:
, June 13, 2005 8:22 PM
To: Struts User Mailing List
Subject: Themes
I have a requirement to build a 'Themes' (think 'skins') capability into the
UI of my Struts app and would just like to poll the list for ideas on the
best way to approach such a mechanism. Multiple customers use t
I have a requirement to build a 'Themes' (think 'skins') capability into the
UI of my Struts app and would just like to poll the list for ideas on the
best way to approach such a mechanism. Multiple customers use the same app
but they need to be presented with a view that
71 matches
Mail list logo