Re: [Trinidad] Using skinning

2009-02-24 Thread Rafa Pérez
Try changing in you trinidad-config.xml

 skins/aqua/aqua.css

to

  /skins/aqua/aqua.css

HTH,

-- Rafa

On Tue, Feb 24, 2009 at 10:55 PM, Lars Vogel  wrote:
> Hi,
>
> my little example application does not pickup the skinning.  I followed:
> http://myfaces.apache.org/trinidad/devguide/skinning.html
>
> I have two file in WEB-INF: trinidad-skins.xml and  trinidad-config.xml. I
> believe for skinning no change in web.xml and faces-config.xml is necessary
>
> trinidad-skins.xml
>
> 
> http://myfaces.apache.org/trinidad/skin";>
>     
>         aqua.desktop
>         aqua
>         
>             org.apache.myfaces.trinidad.desktop
>         
>         skins/aqua/aqua.css
>         
>     
> 
>
>  trinidad-config.xml
>
> 
> http://myfaces.apache.org/trinidad/config";>
>     
>     true
>     default
>     aqua
> 
>
> aqua.css in directory WebContent /skins/aqua/
>
> body {
>     background-color: black;
>     font-size: 60px;
> }
>
>
> From Matts answer earlier I see that skin:minimal.desktop is used as a skin
> for the JSP.
>
> Any obvious mistake I'm making?
>
> Best regards, Lars
>
>
>
>
>


Re: [Trinidad] Using skinning

2009-02-24 Thread Lars Vogel
That is useful to know. Thank you.

2009/2/25 Steve Horne 

> No, it will not directly include your stylesheet file.  That is the purpose
> of the resources servlet.  The skin stylesheet is actually CSS3, which the
> resources servlet merges with internal trinidad stylesheets and converts to
> CSS2 for your browser.
>
> The resources servlet does all sorts of things to your styles, merging
> them, getting rid of dups, etc.  It is very sophisticated and also very hand
> to debug! :)  To that end, you can use this setting in web.xml:
> 
>
> org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
> true
> 
>
> It will make looking at your stylesheet less painful!
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 5:15 PM, Lars Vogel wrote:
>
>> Hi Steve,
>> yes the url is working and it looks like a style sheet.
>>
>> But I believe the URL looks incorrect, I would assume something which
>> contains "skins/aqua/aqua.css" as I have maintained
>> in trinidad-skins.xml.
>>
>> The rest of your suggestion seems also correct in my settings.
>>
>> Thank you again for your help, I'll continue to try.
>>
>> Best regards, Lars
>>
>> 2009/2/25 Steve Horne 
>>
>> Looks OK to me...
>>>
>>> A couple of points:
>>> Try Firefox Web Developer toolbar-- it will allow you to view the CSS
>>> attached to the doc, plus it has lots of cool things to play with. Can you
>>> use the URL shown (e.g.
>>> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F)
>>>  and if you do, does it look like a CSS?
>>>
>>> If you are using security, make sure your skin is not in a secured URL.
>>>
>>> Did you include the resources servlet in your web.xml?
>>>
>>> 
>>> 
>>> resources
>>>
>>> org.apache.myfaces.trinidad.webapp.ResourceServlet
>>> 
>>> 
>>> resources
>>> /adf/*
>>> 
>>>
>>> That's all I can think of for now-- hope that helps.
>>>
>>> -Steve
>>>
>>>
>>> “Many men go fishing all of their lives without knowing it is not fish
>>> they are after.”
>>> - Henry David Thoreau
>>>
>>>
>>> On Tue, Feb 24, 2009 at 5:01 PM, Lars Vogel 
>>> wrote:
>>>
 Thank you. Here it is:
   >>> http://www.w3.org/TR/html4/loose.dtd"; name="generator" content="Apache MyFaces Trinidad">http://localhost:8080/de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
 " type="text/javascript">var _AdfWindowOpenError='A popup window blocker
 has been detected in your browser. Popup blockers interfere with the
 operation of this application. Please disable your popup blocker or allow
 popups from this site.';http://localhost:8080/de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
 ">This page uses JavaScript and
 requires a JavaScript enabled browser.Your browser is not JavaScript
 enabled.>>> style="width: auto" cellpadding="0" cellspacing="0" border="0" width="100%" summary="">
 >>> class="x1u p_AFRequired">X>>> title="Required" class="xf">* Firstame
 >>> class="x9e" class="x1u">X
  Lastname>>> id="j_id_jsp_1242946078_5" name="j_id_jsp_1242946078_5" class="x25"
 size="30" type="text">
 >>> id="tr_j_id_jsp_1242946078_2_Postscript" type="text/javascript">function
 _j_id_jsp_1242946078_2Validator(f,s){return
 _validateInline(f,s);}_addValidators("j_id_jsp_1242946078_2",["j_id_jsp_1242946078_4",1,0,(void
 0),[]],[],{'j_id_jsp_1242946078_4':'Firstame'},['You must enter a
 value.']);var j_id_jsp_1242946078_2_SF={};>>> ="text/javascript">_submitFormCheck();

 2009/2/24 Steve Horne 

> After your page renders, in the browser, view the source and paste the
> entire HTML into your reply and let's see what is being generated...
>
> -Steve
>
> “Many men go fishing all of their lives without knowing it is not fish
> they are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel  > wrote:
>
>> Hi Steve,
>> thanks. I tried your version but without success. If I look at the
>> source I see that skin:minimal.desktop is used.
>>
>> 
>>
>> Best regards, Lars
>>
>> 2009/2/24 Steve Horne 
>>
>>> The  tag will automatically include ,  and
>>>  tags...  If you view source, do you see multiple  tags?  
>>> Just
>>> as a suggestion, try removing the  and  tags in your page.
>>> Try this:
>>>
>>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>>> <%@ taglib uri="http://myfac

Re: [Trinidad] Using skinning

2009-02-24 Thread Steve Horne
No, it will not directly include your stylesheet file.  That is the purpose
of the resources servlet.  The skin stylesheet is actually CSS3, which the
resources servlet merges with internal trinidad stylesheets and converts to
CSS2 for your browser.

The resources servlet does all sorts of things to your styles, merging them,
getting rid of dups, etc.  It is very sophisticated and also very hand to
debug! :)  To that end, you can use this setting in web.xml:


org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
true


It will make looking at your stylesheet less painful!

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Tue, Feb 24, 2009 at 5:15 PM, Lars Vogel wrote:

> Hi Steve,
> yes the url is working and it looks like a style sheet.
>
> But I believe the URL looks incorrect, I would assume something which
> contains "skins/aqua/aqua.css" as I have maintained in trinidad-skins.xml.
>
> The rest of your suggestion seems also correct in my settings.
>
> Thank you again for your help, I'll continue to try.
>
> Best regards, Lars
>
> 2009/2/25 Steve Horne 
>
> Looks OK to me...
>>
>> A couple of points:
>> Try Firefox Web Developer toolbar-- it will allow you to view the CSS
>> attached to the doc, plus it has lots of cool things to play with. Can you
>> use the URL shown (e.g.
>> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F)
>>  and if you do, does it look like a CSS?
>>
>> If you are using security, make sure your skin is not in a secured URL.
>>
>> Did you include the resources servlet in your web.xml?
>>
>> 
>> 
>> resources
>>
>> org.apache.myfaces.trinidad.webapp.ResourceServlet
>> 
>> 
>> resources
>> /adf/*
>> 
>>
>> That's all I can think of for now-- hope that helps.
>>
>> -Steve
>>
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>> On Tue, Feb 24, 2009 at 5:01 PM, Lars Vogel wrote:
>>
>>> Thank you. Here it is:
>>>   >> http://www.w3.org/TR/html4/loose.dtd";>>> name="generator" content="Apache MyFaces Trinidad">>> charset="UTF-8" type="text/css" href="
>>> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F
>>> ">>> type="text/javascript">var _AdfWindowOpenError='A popup window blocker
>>> has been detected in your browser. Popup blockers interfere with the
>>> operation of this application. Please disable your popup blocker or allow
>>> popups from this site.';http://localhost:8080/de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
>>> ">This page uses JavaScript and
>>> requires a JavaScript enabled browser.Your browser is not JavaScript
>>> enabled.>> style="width: auto">>> cellpadding="0" cellspacing="0" border="0" width="100%" summary="">
>>> >> class="x1u p_AFRequired">X>> title="Required" class="xf">* Firstame
>>> >> type="text">>> ="x9e">>> ="x1u">>> style="display:none;">X >> accesskey="L">Lastname
>>> >> name="org.apache.myfaces.trinidad.faces.FORM" value="
>>> j_id_jsp_1242946078_2">>> type="hidden" name="javax.faces.ViewState" value="!dfde805">>> ="text/javascript">function _j_id_jsp_1242946078_2Validator(f,s){return
>>> _validateInline(f,s);}_addValidators("j_id_jsp_1242946078_2",["j_id_jsp_1242946078_4",1,0,(void
>>> 0),[]],[],{'j_id_jsp_1242946078_4':'Firstame'},['You must enter a
>>> value.']);var j_id_jsp_1242946078_2_SF={};_submitFormCheck();
>>>
>>> 2009/2/24 Steve Horne 
>>>
 After your page renders, in the browser, view the source and paste the
 entire HTML into your reply and let's see what is being generated...

 -Steve

 “Many men go fishing all of their lives without knowing it is not fish
 they are after.”
 - Henry David Thoreau


 On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel 
 wrote:

> Hi Steve,
> thanks. I tried your version but without success. If I look at the
> source I see that skin:minimal.desktop is used.
>
> 
>
> Best regards, Lars
>
> 2009/2/24 Steve Horne 
>
>> The  tag will automatically include ,  and
>>  tags...  If you view source, do you see multiple  tags?  
>> Just
>> as a suggestion, try removing the  and  tags in your page.
>> Try this:
>>
>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix

Re: [Trinidad] Using skinning

2009-02-24 Thread Lars Vogel
Hi Steve,
yes the url is working and it looks like a style sheet.

But I believe the URL looks incorrect, I would assume something which
contains "skins/aqua/aqua.css" as I have maintained in trinidad-skins.xml.

The rest of your suggestion seems also correct in my settings.

Thank you again for your help, I'll continue to try.

Best regards, Lars

2009/2/25 Steve Horne 

> Looks OK to me...
>
> A couple of points:
> Try Firefox Web Developer toolbar-- it will allow you to view the CSS
> attached to the doc, plus it has lots of cool things to play with. Can you
> use the URL shown (e.g.
> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F)
>  and if you do, does it look like a CSS?
>
> If you are using security, make sure your skin is not in a secured URL.
>
> Did you include the resources servlet in your web.xml?
>
> 
> 
> resources
>
> org.apache.myfaces.trinidad.webapp.ResourceServlet
> 
> 
> resources
> /adf/*
> 
>
> That's all I can think of for now-- hope that helps.
>
> -Steve
>
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 5:01 PM, Lars Vogel wrote:
>
>> Thank you. Here it is:
>>   > http://www.w3.org/TR/html4/loose.dtd";>> name="generator" content="Apache MyFaces Trinidad">> charset="UTF-8" type="text/css" href="
>> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F
>> ">> type="text/javascript">var _AdfWindowOpenError='A popup window blocker
>> has been detected in your browser. Popup blockers interfere with the
>> operation of this application. Please disable your popup blocker or allow
>> popups from this site.';http://localhost:8080/de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
>> ">This page uses JavaScript and
>> requires a JavaScript enabled browser.Your browser is not JavaScript
>> enabled.> ="width: auto">> ="0" cellspacing="0" border="0" width="100%" summary="">
>> X> title="Required" class="xf">* Firstame
>> > type="text">> ="x9e">> style="display:none;">X > accesskey="L">Lastname
>> > name="org.apache.myfaces.trinidad.faces.FORM" value="
>> j_id_jsp_1242946078_2">> type="hidden" name="javax.faces.ViewState" value="!dfde805">> ="text/javascript">function _j_id_jsp_1242946078_2Validator(f,s){return
>> _validateInline(f,s);}_addValidators("j_id_jsp_1242946078_2",["j_id_jsp_1242946078_4",1,0,(void
>> 0),[]],[],{'j_id_jsp_1242946078_4':'Firstame'},['You must enter a
>> value.']);var j_id_jsp_1242946078_2_SF={};_submitFormCheck();
>>
>> 2009/2/24 Steve Horne 
>>
>>> After your page renders, in the browser, view the source and paste the
>>> entire HTML into your reply and let's see what is being generated...
>>>
>>> -Steve
>>>
>>> “Many men go fishing all of their lives without knowing it is not fish
>>> they are after.”
>>> - Henry David Thoreau
>>>
>>>
>>> On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel 
>>> wrote:
>>>
 Hi Steve,
 thanks. I tried your version but without success. If I look at the
 source I see that skin:minimal.desktop is used.

 

 Best regards, Lars

 2009/2/24 Steve Horne 

> The  tag will automatically include ,  and
>  tags...  If you view source, do you see multiple  tags?  Just
> as a suggestion, try removing the  and  tags in your page.
> Try this:
>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad/html";
> prefix="trh"%>
> 
>  
>  
> 
>   required="true">
> 
>  
> 
>
> 
> 
>
>
> “Many men go fishing all of their lives without knowing it is not fish
> they are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel  > wrote:
>
>> Hi Steve,
>> thank you. Attached my JSP file which I believe contains correctly the
>>  tag.
>>
>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html";
>> prefix="trh"%>
>> 
>> 
>>  
>>  
>> 
>> 
>>  > required="true">
>> 
>>  
>> 
>>
>> 

Re: [Trinidad] Using skinning

2009-02-24 Thread Steve Horne
Looks OK to me...

A couple of points:
Try Firefox Web Developer toolbar-- it will allow you to view the CSS
attached to the doc, plus it has lots of cool things to play with. Can you
use the URL shown (e.g.
/de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F)
and if you do, does it look like a CSS?

If you are using security, make sure your skin is not in a secured URL.

Did you include the resources servlet in your web.xml?



resources

org.apache.myfaces.trinidad.webapp.ResourceServlet


resources
/adf/*


That's all I can think of for now-- hope that helps.

-Steve


“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Tue, Feb 24, 2009 at 5:01 PM, Lars Vogel wrote:

> Thank you. Here it is:
>http://www.w3.org/TR/html4/loose.dtd";> name="generator" content="Apache MyFaces Trinidad"> charset="UTF-8" type="text/css" href="
> /de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F
> "> type="text/javascript">var _AdfWindowOpenError='A popup window blocker has
> been detected in your browser. Popup blockers interfere with the operation
> of this application. Please disable your popup blocker or allow popups from
> this site.';http://localhost:8080/de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
> ">This page uses JavaScript and
> requires a JavaScript enabled browser.Your browser is not JavaScript
> enabled. ="width: auto">
>  ="xc">X*  for="j_id_jsp_1242946078_4" accesskey="F">F
> irstame type="text"> ="xc">X  class="x9r">Lastname
>  id="tr_j_id_jsp_1242946078_2_Postscript"> type="text/javascript">function
> _j_id_jsp_1242946078_2Validator(f,s){return
> _validateInline(f,s);}_addValidators("j_id_jsp_1242946078_2",["j_id_jsp_1242946078_4",1,0,(void
> 0),[]],[],{'j_id_jsp_1242946078_4':'Firstame'},['You must enter a
> value.']);var j_id_jsp_1242946078_2_SF={};_submitFormCheck();
>
> 2009/2/24 Steve Horne 
>
>> After your page renders, in the browser, view the source and paste the
>> entire HTML into your reply and let's see what is being generated...
>>
>> -Steve
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>> On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel wrote:
>>
>>> Hi Steve,
>>> thanks. I tried your version but without success. If I look at the source
>>> I see that skin:minimal.desktop is used.
>>>
>>> 
>>>
>>> Best regards, Lars
>>>
>>> 2009/2/24 Steve Horne 
>>>
 The  tag will automatically include ,  and
  tags...  If you view source, do you see multiple  tags?  Just
 as a suggestion, try removing the  and  tags in your page.
 Try this:

 <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
 <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
 <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
 <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
 
  
  
 
  >>> required="true">
 
  
 

 
 


 “Many men go fishing all of their lives without knowing it is not fish
 they are after.”
 - Henry David Thoreau


 On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel 
 wrote:

> Hi Steve,
> thank you. Attached my JSP file which I believe contains correctly the
>  tag.
>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad/html";
> prefix="trh"%>
> 
> 
>  
>  
> 
> 
>   required="true">
> 
>  
> 
>
> 
>  
> 
> 
>
> Best regards, Lars
>
>
>
> 2009/2/24 Steve Horne 
>
> I'm guessing that you are using JSP and are NOT using the 
>> tag...
>>
>>  will include the proper meta tags in the head that will
>> get the correct skin.
>>
>> HTH
>>
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>>
>> On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel <
>> lars.vo...@googlemail.com> wrote:
>>
>>> Hi,
>>>
>>> my little example application does not pickup the skinning.  I
>>> followed: http://myfaces.apache.org/trinid

Re: [Trinidad] Using skinning

2009-02-24 Thread Lars Vogel
Thank you. Here it is:
  http://www.w3.org/TR/html4/loose.dtd";>http://localhost:8080/de.vogella.jsf.skins/adf/styles/cache/minimal-desktop-p8a3ko-en-ltr-webkit-cmp.css;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
">var _AdfWindowOpenError='A popup window blocker has
been detected in your browser. Popup blockers interfere with the operation
of this application. Please disable your popup blocker or allow popups from
this site.';http://localhost:8080/de.vogella.jsf.skins/adf/jsLibs/Common1_2_10.js;jsessionid=A947A821E4D42BD05767BA554DE19E8F>
">This page uses JavaScript and
requires a JavaScript enabled browser.Your browser is not JavaScript
enabled.

X* Firstame
X Lastnamefunction _j_id_jsp_1242946078_2Validator(f,s){return
_validateInline(f,s);}_addValidators("j_id_jsp_1242946078_2",["j_id_jsp_1242946078_4",1,0,(void
0),[]],[],{'j_id_jsp_1242946078_4':'Firstame'},['You must enter a
value.']);var j_id_jsp_1242946078_2_SF={};_submitFormCheck();
2009/2/24 Steve Horne 

> After your page renders, in the browser, view the source and paste the
> entire HTML into your reply and let's see what is being generated...
>
> -Steve
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel wrote:
>
>> Hi Steve,
>> thanks. I tried your version but without success. If I look at the source
>> I see that skin:minimal.desktop is used.
>>
>> 
>>
>> Best regards, Lars
>>
>> 2009/2/24 Steve Horne 
>>
>>> The  tag will automatically include ,  and
>>>  tags...  If you view source, do you see multiple  tags?  Just
>>> as a suggestion, try removing the  and  tags in your page.
>>> Try this:
>>>
>>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
>>> 
>>>  
>>>  
>>> 
>>>  >> required="true">
>>> 
>>>  
>>> 
>>>
>>> 
>>> 
>>>
>>>
>>> “Many men go fishing all of their lives without knowing it is not fish
>>> they are after.”
>>> - Henry David Thoreau
>>>
>>>
>>> On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel 
>>> wrote:
>>>
 Hi Steve,
 thank you. Attached my JSP file which I believe contains correctly the
  tag.

 <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
 <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
 <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
 <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
 
 
  
  
 
 
  >>> required="true">
 
  
 

 
  
 
 

 Best regards, Lars



 2009/2/24 Steve Horne 

 I'm guessing that you are using JSP and are NOT using the 
> tag...
>
>  will include the proper meta tags in the head that will
> get the correct skin.
>
> HTH
>
>
> “Many men go fishing all of their lives without knowing it is not fish
> they are after.”
> - Henry David Thoreau
>
>
>
> On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel  > wrote:
>
>> Hi,
>>
>> my little example application does not pickup the skinning.  I
>> followed: http://myfaces.apache.org/trinidad/devguide/skinning.html
>>
>> I have two file in WEB-INF: trinidad-skins.xml and
>> trinidad-config.xml. I believe for skinning no change in web.xml and
>> faces-config.xml is necessary
>>
>> trinidad-skins.xml
>>
>> 
>> http://myfaces.apache.org/trinidad/skin";>
>> 
>> aqua.desktop
>> aqua
>> 
>> org.apache.myfaces.trinidad.desktop
>> 
>> skins/aqua/aqua.css
>> 
>> 
>> 
>>
>>  trinidad-config.xml
>>
>> 
>> http://myfaces.apache.org/trinidad/config";>
>> 
>> true
>> default
>> aqua
>> 
>>
>> aqua.css in directory WebContent /skins/aqua/
>>
>> body {
>> background-color: black;
>> font-size: 60px;
>> }
>>
>>
>> From Matts answer earlier I see that skin:minimal.desktop is used as a
>> skin for the JSP.
>>
>> Any obvious mistake I'm making?
>>
>> Best regards, Lars
>>
>>
>>
>>
>>
>


 --
 Lars
 http://www.vogella.de - Tutorial about Java, Eclipse and Web
 programming

>>>
>>>
>>
>>
>> --
>> Lars
>> http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
>>
>
>


-- 
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming


Re: [Trinidad] Using skinning

2009-02-24 Thread Steve Horne
After your page renders, in the browser, view the source and paste the
entire HTML into your reply and let's see what is being generated...

-Steve

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Tue, Feb 24, 2009 at 4:52 PM, Lars Vogel wrote:

> Hi Steve,
> thanks. I tried your version but without success. If I look at the source I
> see that skin:minimal.desktop is used.
>
> 
>
> Best regards, Lars
>
> 2009/2/24 Steve Horne 
>
>> The  tag will automatically include ,  and 
>> tags...  If you view source, do you see multiple  tags?  Just as a
>> suggestion, try removing the  and  tags in your page.
>> Try this:
>>
>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
>> 
>>  
>>  
>> 
>>  > required="true">
>> 
>>  
>> 
>>
>> 
>> 
>>
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>> On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel wrote:
>>
>>> Hi Steve,
>>> thank you. Attached my JSP file which I believe contains correctly the
>>>  tag.
>>>
>>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
>>> 
>>> 
>>>  
>>>  
>>> 
>>> 
>>>  >> required="true">
>>> 
>>>  
>>> 
>>>
>>> 
>>>  
>>> 
>>> 
>>>
>>> Best regards, Lars
>>>
>>>
>>>
>>> 2009/2/24 Steve Horne 
>>>
>>> I'm guessing that you are using JSP and are NOT using the 
 tag...

  will include the proper meta tags in the head that will
 get the correct skin.

 HTH


 “Many men go fishing all of their lives without knowing it is not fish
 they are after.”
 - Henry David Thoreau



 On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel 
 wrote:

> Hi,
>
> my little example application does not pickup the skinning.  I
> followed: http://myfaces.apache.org/trinidad/devguide/skinning.html
>
> I have two file in WEB-INF: trinidad-skins.xml and
> trinidad-config.xml. I believe for skinning no change in web.xml and
> faces-config.xml is necessary
>
> trinidad-skins.xml
>
> 
> http://myfaces.apache.org/trinidad/skin";>
> 
> aqua.desktop
> aqua
> 
> org.apache.myfaces.trinidad.desktop
> 
> skins/aqua/aqua.css
> 
> 
> 
>
>  trinidad-config.xml
>
> 
> http://myfaces.apache.org/trinidad/config";>
> 
> true
> default
> aqua
> 
>
> aqua.css in directory WebContent /skins/aqua/
>
> body {
> background-color: black;
> font-size: 60px;
> }
>
>
> From Matts answer earlier I see that skin:minimal.desktop is used as a
> skin for the JSP.
>
> Any obvious mistake I'm making?
>
> Best regards, Lars
>
>
>
>
>

>>>
>>>
>>> --
>>> Lars
>>> http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
>>>
>>
>>
>
>
> --
> Lars
> http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
>


Re: [Trinidad] Using skinning

2009-02-24 Thread Lars Vogel
Hi Steve,
thanks. I tried your version but without success. If I look at the source I
see that skin:minimal.desktop is used.



Best regards, Lars

2009/2/24 Steve Horne 

> The  tag will automatically include ,  and 
> tags...  If you view source, do you see multiple  tags?  Just as a
> suggestion, try removing the  and  tags in your page.
> Try this:
>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
> 
> 
>  
> 
>   required="true">
> 
>  
> 
>
> 
> 
>
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
> On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel wrote:
>
>> Hi Steve,
>> thank you. Attached my JSP file which I believe contains correctly the
>>  tag.
>>
>> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
>> <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
>> 
>> 
>>  
>>  
>> 
>> 
>>  > required="true">
>> 
>>  
>> 
>>
>> 
>>  
>> 
>> 
>>
>> Best regards, Lars
>>
>>
>>
>> 2009/2/24 Steve Horne 
>>
>> I'm guessing that you are using JSP and are NOT using the 
>>> tag...
>>>
>>>  will include the proper meta tags in the head that will get
>>> the correct skin.
>>>
>>> HTH
>>>
>>>
>>> “Many men go fishing all of their lives without knowing it is not fish
>>> they are after.”
>>> - Henry David Thoreau
>>>
>>>
>>>
>>> On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel 
>>> wrote:
>>>
 Hi,

 my little example application does not pickup the skinning.  I followed:
 http://myfaces.apache.org/trinidad/devguide/skinning.html

 I have two file in WEB-INF: trinidad-skins.xml and  trinidad-config.xml.
 I believe for skinning no change in web.xml and faces-config.xml is
 necessary

 trinidad-skins.xml

 
 http://myfaces.apache.org/trinidad/skin";>
 
 aqua.desktop
 aqua
 
 org.apache.myfaces.trinidad.desktop
 
 skins/aqua/aqua.css
 
 
 

  trinidad-config.xml

 
 http://myfaces.apache.org/trinidad/config";>
 
 true
 default
 aqua
 

 aqua.css in directory WebContent /skins/aqua/

 body {
 background-color: black;
 font-size: 60px;
 }


 From Matts answer earlier I see that skin:minimal.desktop is used as a
 skin for the JSP.

 Any obvious mistake I'm making?

 Best regards, Lars





>>>
>>
>>
>> --
>> Lars
>> http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
>>
>
>


-- 
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming


Re: [Trinidad] Using skinning

2009-02-24 Thread Steve Horne
The  tag will automatically include ,  and 
tags...  If you view source, do you see multiple  tags?  Just as a
suggestion, try removing the  and  tags in your page.
Try this:

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>




 

 






“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Tue, Feb 24, 2009 at 4:43 PM, Lars Vogel wrote:

> Hi Steve,
> thank you. Attached my JSP file which I believe contains correctly the
>  tag.
>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
> <%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
> 
> 
> 
>  
> 
> 
>   required="true">
> 
>  
> 
>
> 
>  
> 
> 
>
> Best regards, Lars
>
>
>
> 2009/2/24 Steve Horne 
>
> I'm guessing that you are using JSP and are NOT using the 
>> tag...
>>
>>  will include the proper meta tags in the head that will get
>> the correct skin.
>>
>> HTH
>>
>>
>> “Many men go fishing all of their lives without knowing it is not fish
>> they are after.”
>> - Henry David Thoreau
>>
>>
>>
>> On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel wrote:
>>
>>> Hi,
>>>
>>> my little example application does not pickup the skinning.  I followed:
>>> http://myfaces.apache.org/trinidad/devguide/skinning.html
>>>
>>> I have two file in WEB-INF: trinidad-skins.xml and  trinidad-config.xml.
>>> I believe for skinning no change in web.xml and faces-config.xml is
>>> necessary
>>>
>>> trinidad-skins.xml
>>>
>>> 
>>> http://myfaces.apache.org/trinidad/skin";>
>>> 
>>> aqua.desktop
>>> aqua
>>> 
>>> org.apache.myfaces.trinidad.desktop
>>> 
>>> skins/aqua/aqua.css
>>> 
>>> 
>>> 
>>>
>>>  trinidad-config.xml
>>>
>>> 
>>> http://myfaces.apache.org/trinidad/config";>
>>> 
>>> true
>>> default
>>> aqua
>>> 
>>>
>>> aqua.css in directory WebContent /skins/aqua/
>>>
>>> body {
>>> background-color: black;
>>> font-size: 60px;
>>> }
>>>
>>>
>>> From Matts answer earlier I see that skin:minimal.desktop is used as a
>>> skin for the JSP.
>>>
>>> Any obvious mistake I'm making?
>>>
>>> Best regards, Lars
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> Lars
> http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
>


Re: [Trinidad] Using skinning

2009-02-24 Thread Lars Vogel
Hi Steve,
thank you. Attached my JSP file which I believe contains correctly the
 tag.

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad"; prefix="tr"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html"; prefix="trh"%>
















Best regards, Lars



2009/2/24 Steve Horne 

> I'm guessing that you are using JSP and are NOT using the 
> tag...
>
>  will include the proper meta tags in the head that will get
> the correct skin.
>
> HTH
>
>
> “Many men go fishing all of their lives without knowing it is not fish they
> are after.”
> - Henry David Thoreau
>
>
>
> On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel wrote:
>
>> Hi,
>>
>> my little example application does not pickup the skinning.  I followed:
>> http://myfaces.apache.org/trinidad/devguide/skinning.html
>>
>> I have two file in WEB-INF: trinidad-skins.xml and  trinidad-config.xml. I
>> believe for skinning no change in web.xml and faces-config.xml is necessary
>>
>> trinidad-skins.xml
>>
>> 
>> http://myfaces.apache.org/trinidad/skin";>
>> 
>> aqua.desktop
>> aqua
>> 
>> org.apache.myfaces.trinidad.desktop
>> 
>> skins/aqua/aqua.css
>> 
>> 
>> 
>>
>>  trinidad-config.xml
>>
>> 
>> http://myfaces.apache.org/trinidad/config";>
>> 
>> true
>> default
>> aqua
>> 
>>
>> aqua.css in directory WebContent /skins/aqua/
>>
>> body {
>> background-color: black;
>> font-size: 60px;
>> }
>>
>>
>> From Matts answer earlier I see that skin:minimal.desktop is used as a
>> skin for the JSP.
>>
>> Any obvious mistake I'm making?
>>
>> Best regards, Lars
>>
>>
>>
>>
>>
>


-- 
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming


Re: [Trinidad] Using skinning

2009-02-24 Thread Steve Horne
I'm guessing that you are using JSP and are NOT using the 
tag...

 will include the proper meta tags in the head that will get
the correct skin.

HTH


“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Tue, Feb 24, 2009 at 3:55 PM, Lars Vogel wrote:

> Hi,
>
> my little example application does not pickup the skinning.  I followed:
> http://myfaces.apache.org/trinidad/devguide/skinning.html
>
> I have two file in WEB-INF: trinidad-skins.xml and  trinidad-config.xml. I
> believe for skinning no change in web.xml and faces-config.xml is necessary
>
> trinidad-skins.xml
>
> 
> http://myfaces.apache.org/trinidad/skin";>
> 
> aqua.desktop
> aqua
> 
> org.apache.myfaces.trinidad.desktop
> 
> skins/aqua/aqua.css
> 
> 
> 
>
>  trinidad-config.xml
>
> 
> http://myfaces.apache.org/trinidad/config";>
> 
> true
> default
> aqua
> 
>
> aqua.css in directory WebContent /skins/aqua/
>
> body {
> background-color: black;
> font-size: 60px;
> }
>
>
> From Matts answer earlier I see that skin:minimal.desktop is used as a skin
> for the JSP.
>
> Any obvious mistake I'm making?
>
> Best regards, Lars
>
>
>
>
>


[Trinidad] Using skinning

2009-02-24 Thread Lars Vogel
Hi,

my little example application does not pickup the skinning.  I followed:
http://myfaces.apache.org/trinidad/devguide/skinning.html

I have two file in WEB-INF: trinidad-skins.xml and  trinidad-config.xml. I
believe for skinning no change in web.xml and faces-config.xml is necessary

trinidad-skins.xml


http://myfaces.apache.org/trinidad/skin";>

aqua.desktop
aqua

org.apache.myfaces.trinidad.desktop

skins/aqua/aqua.css




 trinidad-config.xml


http://myfaces.apache.org/trinidad/config";>

true
default
aqua


aqua.css in directory WebContent /skins/aqua/

body {
background-color: black;
font-size: 60px;
}


>From Matts answer earlier I see that skin:minimal.desktop is used as a skin
for the JSP.

Any obvious mistake I'm making?

Best regards, Lars


String value instead of Date

2009-02-24 Thread Markus Mehrwald

Hi all,

I have the following code:


	pattern="^([0-3]?\d)\.([0-1]?\d)\.((\d){2}|(\d){4})$" 			 
detailMessage="TT.MM. eingeben."/>





The problem is, that the regexpr validator does not work because it gets 
the String vom the Date's toString and this is not what is shown in the 
textfield. Do I have any possibility to get the text which is shown in 
the textfield for the validator?


Thanks,
Markus


Re: [trinidad] problem with PPR and multiple triggers

2009-02-24 Thread Steve Horne
Thanks for your reply, Andrew!  Moving the partialTriggers to the table did
indeed cause it to update properly.  This table is usually small (only 1-5
rows), so refreshing the entire table is not too much of a problem.

Thanks again!
-Steve

“Many men go fishing all of their lives without knowing it is not fish they
are after.”
- Henry David Thoreau


On Tue, Feb 24, 2009 at 11:07 AM, Andrew Robinson <
andrew.rw.robin...@gmail.com> wrote:

> You cannot PPR an item inside a stamped component from outside the stamped
> component without PPR'ing the entire stamped component. So in your case,
> calcAll should PPR the table, not the panel group layout. If you only really
> want to PPR just the panel group layouts in every row, you will have to do
> it yourself, by using the row indexes on UIData, and adding the component as
> a partial target for every visible row index in the table.
>
> -Andrew
>
>
> On Tue, Feb 24, 2009 at 9:57 AM, Steve Horne  wrote:
>
>> I have the following component hierarchy (leaving out parts that are not
>> important):
>>
>> > partialSubmit="true"/>
>> 
>> 
>> 
>> ... results of calculation...
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> So, when I click the "calc" link (in a table row), the other column
>> (containing the panelGroupLayout) refreshes properly.  When I click the
>> "calcAll" link, the action works properly, but the panelGroupLayout does not
>> refresh.  I have tried it with 1, 2, and 3 colons preceding the trigger
>> 'calcAll', but nothing seems to work.
>>
>> As far as I can tell, the only naming container here is the .
>> So, according to the docs, I should use 2 colons, e.g. "::calcAll":
>>
>> 
>> If you need to go up and out of a naming container to get the trigger
>> component, start with two colons. (e.g.,
>> partialTriggers="::someComponentOutsideNamingContainer") This includes the
>> current component if the component is a NamingContainer. (e.g., tr:table
>> partialTriggers="::mySiblingComponent" pops out of the table to get to the
>> sibling)
>> 
>>
>> I can hide then show the table and the information refreshes correctly...
>>
>> Any ideas why this isn't working?
>>
>
>


RE: JSF - display a collection in one line?

2009-02-24 Thread John Carlson

Can you use Google Collection's Join?

http://google-collections.googlecode.com/svn/trunk/javadoc/com/google/common
/base/Join.html

John
-Original Message-
From: kareda [mailto:k...@digiplace.ch] 
Sent: Tuesday, February 24, 2009 2:11 AM
To: users@myfaces.apache.org
Subject: JSF - display a collection in one line?



Hi, 
A collection of Strings, I just want to display them in one line. 
Is that possible? 


-- 
View this message in context: http:// www.
nabble.com/JSF---display-a-collection-in-one-line--tp22179299p22179299.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: [trinidad] problem with PPR and multiple triggers

2009-02-24 Thread Andrew Robinson
You cannot PPR an item inside a stamped component from outside the stamped
component without PPR'ing the entire stamped component. So in your case,
calcAll should PPR the table, not the panel group layout. If you only really
want to PPR just the panel group layouts in every row, you will have to do
it yourself, by using the row indexes on UIData, and adding the component as
a partial target for every visible row index in the table.

-Andrew

On Tue, Feb 24, 2009 at 9:57 AM, Steve Horne  wrote:

> I have the following component hierarchy (leaving out parts that are not
> important):
>
>  partialSubmit="true"/>
> 
> 
> 
> ... results of calculation...
> 
> 
> 
> 
> 
> 
>
> So, when I click the "calc" link (in a table row), the other column
> (containing the panelGroupLayout) refreshes properly.  When I click the
> "calcAll" link, the action works properly, but the panelGroupLayout does not
> refresh.  I have tried it with 1, 2, and 3 colons preceding the trigger
> 'calcAll', but nothing seems to work.
>
> As far as I can tell, the only naming container here is the .
> So, according to the docs, I should use 2 colons, e.g. "::calcAll":
>
> 
> If you need to go up and out of a naming container to get the trigger
> component, start with two colons. (e.g.,
> partialTriggers="::someComponentOutsideNamingContainer") This includes the
> current component if the component is a NamingContainer. (e.g., tr:table
> partialTriggers="::mySiblingComponent" pops out of the table to get to the
> sibling)
> 
>
> I can hide then show the table and the information refreshes correctly...
>
> Any ideas why this isn't working?
>


Re: [Trinidad] Can I see which skin should get / is selected?

2009-02-24 Thread Lars Vogel
Hi Matt,
cool, thank you.

Best regards, Lars

2009/2/24 Matt Cooper 

> In Java code, you can also use the 
> RenderingContextto
>  get the active
> Skinobject:
>
> RenderingContext.getCurrentInstance().getSkin();
>
> From that you can get the skin family or skin ID.
>
> Regards,
> Matt
>
>
> On Tue, Feb 24, 2009 at 9:22 AM, Matt Cooper  wrote:
> > Hi Lars,
> >
> > If you view the page source, you can see what the active skin is.
> >
> > For example if you go to:
> > http://www.irian.at/trinidad-demo/faces/index.jspx
> >
> > it shows the following at the bottom of the page's source:
> >
> > 
> >
> > Regards,
> > Matt
> >
> > On Tue, Feb 24, 2009 at 9:11 AM, Lars Vogel 
> wrote:
> >> Hi,
> >>
> >> I try to create a small example for skinning with JSF 1.2 Trinidad. I
> >> follow: http://myfaces.apache.org/trinidad/devguide/skinning.html and
> tried
> >> a few other resources.
> >>
> >> Details on my configuration below in case someone is interested. My
> question
> >> is: How can I see which skin should be selected and how can I see which
> skin
> >> is selected?
> >>
> >> I looked at the logfile during the Tomcat startup and cannot find a
> >> reference which skin should get selected. I believe this would help me
> in
> >> setting up the example because in this case I could narrow down my
> error.
> >>
> >> Best regards, Lars
> >>
> >>
> >> trinidad-config.xml
> >>
> >> 
> >> http://myfaces.apache.org/trinidad/config";>
> >> 
> >> true
> >> default
> >> aqua
> >> 
> >>
> >> trinidad-skins.xml
> >>
> >> 
> >> http://myfaces.apache.org/trinidad/skin";>
> >> 
> >> aqua.desktop
> >> aqua
> >> 
> >> org.apache.myfaces.trinidad.desktop
> >> 
> >> skins/aqua/aqua.css
> >> 
> >> 
> >> 
> >>
> >> My directory under WebContent
> >> skins/aqua/aqua.css
> >>
> >> body {
> >> background-color: aqua;
> >> }
> >>
> >> .AFDefaultFontFamily:alias {
> >> font-family: cursive;
> >> }
> >>
> >>
> >>
> >
>
>


-- 
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming


[trinidad] problem with PPR and multiple triggers

2009-02-24 Thread Steve Horne
I have the following component hierarchy (leaving out parts that are not
important):





... results of calculation...







So, when I click the "calc" link (in a table row), the other column
(containing the panelGroupLayout) refreshes properly.  When I click the
"calcAll" link, the action works properly, but the panelGroupLayout does not
refresh.  I have tried it with 1, 2, and 3 colons preceding the trigger
'calcAll', but nothing seems to work.

As far as I can tell, the only naming container here is the .  So,
according to the docs, I should use 2 colons, e.g. "::calcAll":


If you need to go up and out of a naming container to get the trigger
component, start with two colons. (e.g.,
partialTriggers="::someComponentOutsideNamingContainer") This includes the
current component if the component is a NamingContainer. (e.g., tr:table
partialTriggers="::mySiblingComponent" pops out of the table to get to the
sibling)


I can hide then show the table and the information refreshes correctly...

Any ideas why this isn't working?


Re: [Trinidad] Can I see which skin should get / is selected?

2009-02-24 Thread Matt Cooper
In Java code, you can also use the
RenderingContextto
get the active
Skinobject:

RenderingContext.getCurrentInstance().getSkin();

>From that you can get the skin family or skin ID.

Regards,
Matt

On Tue, Feb 24, 2009 at 9:22 AM, Matt Cooper  wrote:
> Hi Lars,
>
> If you view the page source, you can see what the active skin is.
>
> For example if you go to:
> http://www.irian.at/trinidad-demo/faces/index.jspx
>
> it shows the following at the bottom of the page's source:
>
> 
>
> Regards,
> Matt
>
> On Tue, Feb 24, 2009 at 9:11 AM, Lars Vogel 
wrote:
>> Hi,
>>
>> I try to create a small example for skinning with JSF 1.2 Trinidad. I
>> follow: http://myfaces.apache.org/trinidad/devguide/skinning.html and
tried
>> a few other resources.
>>
>> Details on my configuration below in case someone is interested. My
question
>> is: How can I see which skin should be selected and how can I see which
skin
>> is selected?
>>
>> I looked at the logfile during the Tomcat startup and cannot find a
>> reference which skin should get selected. I believe this would help me in
>> setting up the example because in this case I could narrow down my error.
>>
>> Best regards, Lars
>>
>>
>> trinidad-config.xml
>>
>> 
>> http://myfaces.apache.org/trinidad/config";>
>> 
>> true
>> default
>> aqua
>> 
>>
>> trinidad-skins.xml
>>
>> 
>> http://myfaces.apache.org/trinidad/skin";>
>> 
>> aqua.desktop
>> aqua
>> 
>> org.apache.myfaces.trinidad.desktop
>> 
>> skins/aqua/aqua.css
>> 
>> 
>> 
>>
>> My directory under WebContent
>> skins/aqua/aqua.css
>>
>> body {
>> background-color: aqua;
>> }
>>
>> .AFDefaultFontFamily:alias {
>> font-family: cursive;
>> }
>>
>>
>>
>


Re: [Trinidad] Can I see which skin should get / is selected?

2009-02-24 Thread Matt Cooper
Hi Lars,

If you view the page source, you can see what the active skin is.

For example if you go to:
http://www.irian.at/trinidad-demo/faces/index.jspx

it shows the following at the bottom of the page's source:



Regards,
Matt

On Tue, Feb 24, 2009 at 9:11 AM, Lars Vogel  wrote:
> Hi,
>
> I try to create a small example for skinning with JSF 1.2 Trinidad. I
> follow: http://myfaces.apache.org/trinidad/devguide/skinning.html and tried
> a few other resources.
>
> Details on my configuration below in case someone is interested. My question
> is: How can I see which skin should be selected and how can I see which skin
> is selected?
>
> I looked at the logfile during the Tomcat startup and cannot find a
> reference which skin should get selected. I believe this would help me in
> setting up the example because in this case I could narrow down my error.
>
> Best regards, Lars
>
>
> trinidad-config.xml
>
> 
> http://myfaces.apache.org/trinidad/config";>
>     
>     true
>     default
>     aqua
> 
>
> trinidad-skins.xml
>
> 
> http://myfaces.apache.org/trinidad/skin";>
>     
>         aqua.desktop
>         aqua
>         
>             org.apache.myfaces.trinidad.desktop
> 
>         skins/aqua/aqua.css
>         
>     
> 
>
> My directory under WebContent
> skins/aqua/aqua.css
>
> body {
>     background-color: aqua;
> }
>
> .AFDefaultFontFamily:alias {
>     font-family: cursive;
> }
>
>
>


[Trinidad] Can I see which skin should get / is selected?

2009-02-24 Thread Lars Vogel
Hi,

I try to create a small example for skinning with JSF 1.2 Trinidad. I
follow: http://myfaces.apache.org/trinidad/devguide/skinning.html and tried
a few other resources.

Details on my configuration below in case someone is interested. My question
is: How can I see which skin should be selected and how can I see which skin
is selected?

I looked at the logfile during the Tomcat startup and cannot find a
reference which skin should get selected. I believe this would help me in
setting up the example because in this case I could narrow down my error.

Best regards, Lars


trinidad-config.xml


http://myfaces.apache.org/trinidad/config";>

true
default
aqua


trinidad-skins.xml


http://myfaces.apache.org/trinidad/skin";>

aqua.desktop
aqua

org.apache.myfaces.trinidad.desktop

skins/aqua/aqua.css




My directory under WebContent
skins/aqua/aqua.css

body {
background-color: aqua;
}

.AFDefaultFontFamily:alias {
font-family: cursive;
}


Re: JSF - display a collection in one line?

2009-02-24 Thread Cagatay Civici

ui repeat, datalist or a similar thing would help too.
On Feb 24, 2009, at 2:25 PM, Mert Çalışkan wrote:


I did that with a converter while ago,

http://www.jroller.com/mert/entry/collectiontocommaseperatedtextconverter

Mert

On Tue, Feb 24, 2009 at 12:11 PM, kareda  wrote:


Hi,
A collection of Strings, I just want to display them in one line.
Is that possible?


--
View this message in context: 
http://www.nabble.com/JSF---display-a-collection-in-one-line--tp22179299p22179299.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: JSF - display a collection in one line?

2009-02-24 Thread Mert Çalışkan
I did that with a converter while ago,

http://www.jroller.com/mert/entry/collectiontocommaseperatedtextconverter

Mert

On Tue, Feb 24, 2009 at 12:11 PM, kareda  wrote:

>
>
> Hi,
> A collection of Strings, I just want to display them in one line.
> Is that possible?
>
>
> --
> View this message in context:
> http://www.nabble.com/JSF---display-a-collection-in-one-line--tp22179299p22179299.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


RE: JSF - display a collection in one line?

2009-02-24 Thread Matt.Rossner-prest
Sure, the tomahawk dataList component does just that.

Check out the docs here.

http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_dataList.html

use layout="simple" to display them on one line.

-Original Message-
From: kareda [mailto:k...@digiplace.ch] 
Sent: mardi 24 février 2009 11:11
To: users@myfaces.apache.org
Subject: JSF - display a collection in one line?



Hi, 
A collection of Strings, I just want to display them in one line. 
Is that possible? 


-- 
View this message in context: 
http://www.nabble.com/JSF---display-a-collection-in-one-line--tp22179299p22179299.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: JSF - display a collection in one line?

2009-02-24 Thread Ingmar Lötzsch

kareda schrieb:


Hi, 
A collection of Strings, I just want to display them in one line. 
Is that possible? 


What about using StaticText/Label/OutputText ... and Collection.toString()?


JSF - display a collection in one line?

2009-02-24 Thread kareda


Hi, 
A collection of Strings, I just want to display them in one line. 
Is that possible? 


-- 
View this message in context: 
http://www.nabble.com/JSF---display-a-collection-in-one-line--tp22179299p22179299.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.