Re: [Trinidad] inputText special characters

2008-04-10 Thread Rafa Pérez
I had the same problem. I do not know why, but in the very first request,
the character encoding of the request is UTF-8 and if you have configured
your application to use ISO-8859-1, it gets ignored.
The only solution I found was to introduce a filter for setting the charset,
something like

((HttpServletRequest)request).getSession().setAttribute(ViewHandler.CHARACTER_ENCODING_KEY,
''ISO-8859-1')


HTH,

-- Rafa

On Thu, Apr 10, 2008 at 11:34 PM, Mathias Walter <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> > You may have ISO-8859-1 set to JSP response.
>
> I don't use JSP, I'm using Facelets. But I give it a try and changed the
> XML
> encoding. But it doesn't help.
>
> As soon as I submit the form, the characters will be converted.
>
> Why does this happens with IE and not with FF?
>
> Ah, I forgot to mention that form is partially submitted with a
> .
>
> --
> Regards,
> Mathias
>
> > Instead, please use UTF-8, like
> > 
> > Hope this helps
> > Kenneth
> >
> > Mathias Walter wrote:
> > > Hi,
> > >
> > > I've some trouble with special characters (i. e. german umlauts) and
> > > tr:inputText. With IE 6, the characters will be converted
> > to some unreadable
> > > two-byte codes, but with FF2 it works well.
> > >
> > > I'm using Trinidad 1.2.7, Sun JSF RI 1.2 and Facelets.
> > > The head of the rendered page is
> > >
> > > 
> > >  > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; >
> > >
> > > How can I fix this?
> > >
> > > --
> > > Kind regards,
> > > Mathias
> > >
> > >
>
>


Re: Can a JSF page be in database?

2008-04-10 Thread Jason King
Theoretically you could, but then you'd have to write it to the 
filesystem and recompile.  It would make for a very slow system.

Dave wrote:

Hi,
 
Normally JSF pages are package in a war file. Is it possbile to put a 
JSF page in database, and loaded dynamically and rendered?  What I 
like to achieve is layout design that can be dynamically added.
 
Thanks for any idea.

Dave

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





Can a JSF page be in database?

2008-04-10 Thread Dave
Hi,
   
  Normally JSF pages are package in a war file. Is it possbile to put a JSF 
page in database, and loaded dynamically and rendered?  What I like to achieve 
is layout design that can be dynamically added.
   
  Thanks for any idea.
  Dave

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Trinidad][Retroweaver]Still get "java.lang.NoClassDefFoundError"

2008-04-10 Thread liny

Hi, Sir: 
 
According to  http://wiki.apache.org/myfaces/Trinidad_and_JDK_1%2e4 
http://wiki.apache.org/myfaces/Trinidad_and_JDK_1%2e4  
I use Retroweaver 2.0.5 and weaved Trinidad 1.0.7 jar file for JDK 1.4
successfully. 
Then I put backport-util-concurrent.jar, retroweaver-rt-2.0.5.jar, and
ThreadLocal_ class to WEB-INF/lib in my war file, then deploy. 
 
But occurred following exception: 
 
Caused by: java.lang.NoClassDefFoundError:
java/util/concurrent/ConcurrentHashMap 
at
org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase.(RenderKitBase.java:47)
 
at
org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.(RenderKitDecorator.java:39)
 
at
org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.(CoreRenderKit.java:168)
 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 
at java.lang.reflect.Constructor.newInstance(Constructor.java:274) 
at java.lang.Class.newInstance0(Class.java:308) 
at java.lang.Class.newInstance(Class.java:261) 
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:277) 
... 42 more 
 
I use MyFaces 1.1.5 for my web application, too. 
Could you please help me how to solve it? 
 
Thanks and best regards, 
 
liny 
-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Retroweaver-Still-get-%22java.lang.NoClassDefFoundError%22-tp16624712p16624712.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



JSF Multiple Forms/Backing Beans doesnt support Value-Binding

2008-04-10 Thread bansi

I have following situation
JSF form1.xhtml has 

 has Value-Binding to pojo i.e. model object


Now i wanna access these pojo i.e. model object in Form1Bean.java. I tried
doing this in two ways
1)  retrieve the  Component from Tree Model
2) using FacesContext External Context

Both of these methods return pojo as empty object with value-binding
properties set to null

Please note their is no action method in 
 is mapped to Form1Bean.java
 is mapped to Form2Bean.java

Any pointers/suggestions will be highly appreciated

-- 
View this message in context: 
http://www.nabble.com/JSF-Multiple-Forms-Backing-Beans-doesnt-support-Value-Binding-tp16624389p16624389.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: How does t:saveState work?

2008-04-10 Thread jimmyau

So this is the advantage and disadvantage of open source is it?

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: How does t:saveState work?

2008-04-10 Thread Andrew Robinson
The source is open... :)

On 4/10/08, jimmyau <[EMAIL PROTECTED]> wrote:
> Can myfaces ppl come in and explain where it is store when the setting is in
> server?
>
> - Original Message -
> From: "Werner Punz" <[EMAIL PROTECTED]>
> To: 
> Sent: 2008/04/10 9:47 PM ii
> Subject: Re: How does t:saveState work?
>
>
> > Rogerio Pereira schrieb:
> >> saveState never save objects in session, this component is used to
> >> avoid session overload, saveState serializes all objects somewhere in
> >> you filesystem.
> >>
> >
> > This is not entirely true savestate uses the standard jsf save and restory
> > cycle to store the data. It simply serializes the referenced bean and
> > deserialises it.
> > It now depends on the save and restore settings of the jsf implementation
> > where the data is stored.
> > If you have client side state saving it will store the data into the
> > browser, if you have server side it depends on where the server side state
> > saving is stored to. Depending on the settings it stores it into the
> > session or somewhere else.
> >
> > Werner
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.11/1368 -
> > Release Date: 4/9/2008 4:20 PM
> >
> >
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>


Re: How does t:saveState work?

2008-04-10 Thread jimmyau
Can myfaces ppl come in and explain where it is store when the setting is in 
server?


- Original Message - 
From: "Werner Punz" <[EMAIL PROTECTED]>

To: 
Sent: 2008/04/10 9:47 PM ii
Subject: Re: How does t:saveState work?



Rogerio Pereira schrieb:

saveState never save objects in session, this component is used to
avoid session overload, saveState serializes all objects somewhere in
you filesystem.



This is not entirely true savestate uses the standard jsf save and restory 
cycle to store the data. It simply serializes the referenced bean and 
deserialises it.
It now depends on the save and restore settings of the jsf implementation 
where the data is stored.
If you have client side state saving it will store the data into the 
browser, if you have server side it depends on where the server side state 
saving is stored to. Depending on the settings it stores it into the 
session or somewhere else.


Werner


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




--
No virus found in this incoming message.
Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.11/1368 - 
Release Date: 4/9/2008 4:20 PM






--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Trinidad] Disable details-link

2008-04-10 Thread Cristi Toth
after you manage to disable the detail column
it's really easy to have a link that does the same thing the original one
does
if you look a bit in the generated code you'll notice a pattern on the
onclick event:

to show:
return _submitHideShow('_idJsp1',1,'show','_idJsp12','_idJsp12dd2','2')
'_idJsp1 - is the id of the form
'_idJsp12' - is the id of the table
'_idJsp12dd2' - is the id of the link itself (format:
tableId+'dd'+rowNumber)

to hide:
"return _submitHideShow('_idJsp1',1,'hide','_idJsp12','_idJsp12dd2','2')"
only 'show' is replaced with 'hide'

so you don't have to do it programatically
just use the trinidad js code ;)

On Thu, Apr 10, 2008 at 2:37 PM, Mathias Walter <[EMAIL PROTECTED]>
wrote:

> Henk,
>
> would you open a JIRA issue, please?
>
> --
> Kind regards,
> Mathias
>
> > -Original Message-
> > From: Henk Vanhoe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 10, 2008 1:55 PM
> > To: MyFaces Discussion
> > Subject: Re: [Trinidad] Disable details-link
> >
> >
> > Hi,
> >
> > It would help me a lot if  you would commit your code. But
> > even if you
> > don't want to commit it, I would be very glad if you could
> > post the code
> > here, so I could add it myself to my own copy of the trinidad source
> > code and recompile it...
> >
> > On the other hand, if other people are interested in this
> > functionality,
> > an extra attribute "detailsLinkEnabled" may be more flexible, because
> > then you could show all details by default when this
> > attribute is false
> > (with the skinning property I suppose you still need to expand all
> > detail rows yourself with the disclosedRowKeys attribute).
> >
> > Thanks a lot,
> > Henk
> >
> > Cristi Toth wrote:
> > > Hi,
> > >
> > > I did if for a client with an extra skinning property
> > something like:
> > > af|table {
> > >   -tr-show-detail-column:false;
> > > }
> > >
> > > I'm not 100% happy with my code, so I didn't hurry to commit it.
> > > But I might do it, if other people want it and like it.
> > >
> > > Regards,
> > >
> > > On Wed, Apr 9, 2008 at 9:28 AM, Henk Vanhoe <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > > Hi,
> > >
> > > I suppose it would not be particularly difficult to add an extra
> > > attribute to the trinidad table, something like a
> > > "detailsLinkEnabled" attribute with which it would be
> > possible to
> > > show/hide the extra "Details"-column. That would be
> > handy when the
> > > detailstamp should always be shown or when you want to show/hide
> > > the detailstamp with pure client-side javascript (which
> > is faster
> > > than PPR with small pages and with which you can avoid
> > some extra
> > > complexities related with PPR). But of course, if there
> > is another
> > > way to do that, I would prefer not to add an extra attribute...
> > >
> > > Regards,
> > > Henk
> > >
> > >
> > > Henk Vanhoe wrote:
> > >
> > > Hi,
> > >
> > > Another question I was having...
> > >
> > > In one of our tables we are using the detailStamp
> > facet. When
> > > I add a detailStamp there automatically appears an extra
> > > column with a "Details"-link in it. Does anybody
> > know a way to
> > > disable this column? (The details should always be
> > visible in
> > > the screen we are building.) I noticed there is an
> > > "allDetailsEnabled" attribute where I could
> > disable/enable the
> > > show/hide all links, but I don't find a similar
> > attribute for
> > > the regular show/hide links...
> > >
> > > Thanks,
> > > Henk
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Cristi Toth
> > >
> > > -
> > > Codebeat
> > > www.codebeat.ro 
>
>


-- 
Cristi Toth

-
Codebeat
www.codebeat.ro


Re: [Trinidad] skinning all input components

2008-04-10 Thread Zigc Junk
Use something like

.styleForSomeComponent {
  -tr-rule-ref: selector(".styleForMyInputText");
}

regard

Bill

On Thu, Apr 10, 2008 at 3:51 PM, Yee-wah Lee <[EMAIL PROTECTED]> wrote:
> Hi Markus,
>
>  Did you check the aliases to see if any of them could help?
>
> http://myfaces.apache.org/trinidad/devguide/skinning.html#Alias_skinning_keys
>  http://myfaces.apache.org/trinidad/skin-selectors.html
>
>  Thanks,
>  Yee-Wah
>
>  Döring Markus wrote:
>
> >
> > Hi all,
> >
> > I'm currently skinning some input components to have some nice style.
> >
> > I've completed it for the tr:inputText, but I don't want to copy-past the
> style to every input component (like selectOneChoice, selectManyChoice, ect.
> ect.)
> >
> > Is there an easy way (global skin selector) to skin the all of the input
> components at once (like af:input:content or something like this)
> >
> > Thanks for help
> >
> > Markus Döring
> >
> > TCC Products GmbH
> >
> >
> > 
> >
> >
>
>


RE: [Trinidad] inputText special characters

2008-04-10 Thread Mathias Walter
Hi,

> You may have ISO-8859-1 set to JSP response.

I don't use JSP, I'm using Facelets. But I give it a try and changed the XML
encoding. But it doesn't help.

As soon as I submit the form, the characters will be converted.

Why does this happens with IE and not with FF?

Ah, I forgot to mention that form is partially submitted with a
.

--
Regards,
Mathias

> Instead, please use UTF-8, like
> 
> Hope this helps
> Kenneth
> 
> Mathias Walter wrote:
> > Hi,
> >
> > I've some trouble with special characters (i. e. german umlauts) and
> > tr:inputText. With IE 6, the characters will be converted 
> to some unreadable
> > two-byte codes, but with FF2 it works well.
> >
> > I'm using Trinidad 1.2.7, Sun JSF RI 1.2 and Facelets.
> > The head of the rendered page is
> >
> > 
> >  > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; >
> >
> > How can I fix this?
> >
> > --
> > Kind regards,
> > Mathias
> >
> >   



Orchestra RequestParameterProviderManager.getInstance() NPE

2008-04-10 Thread Ben Neuman
Hello, 

I'm getting a NullPointerException when I add the MyFaces Extension
Filter to web.xml and navigate to a page with tomahawk tags that use the
filter.

java.lang.NullPointerException

org.apache.myfaces.orchestra.requestParameterProvider.RequestParameterProviderManager.getInstance(RequestParameterProviderManager.java:69)

org.apache.myfaces.orchestra.requestParameterProvider.RequestParameterResponseWrapper.encodeURL(RequestParameterResponseWrapper.java:42)

javax.servlet.http.HttpServletResponseWrapper.encodeURL(HttpServletResponseWrapper.java:76)

org.apache.myfaces.renderkit.html.util.DefaultAddResource$ScriptPositionedInfo.writePositionedInfo(DefaultAddResource.java:1040)

org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeWithFullHeader(DefaultAddResource.java:836)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:170)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
org.ajax4jsf.Filter.doFilter(Filter.java:175)

org.apache.myfaces.orchestra.requestParameterProvider.RequestParameterServletFilter.doFilter(RequestParameterServletFilter.java:63)

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

Anyone else seen issues with Orchestra and MyFacesExtensionFilter?
Any help would be greatly appreciated.

I can send more info if needed. 
Facelets 1.1.14
Orchestra 1.1
Tomahawk 1.1.6
Mojarra 1.2_07-b03-FCS
Tomcat 6.0.16
Richfaces 3.2.0

Thanks!
Ben



Re: [Trinidad] inputText special characters

2008-04-10 Thread Kenneth Tang

Hi Matthias,
You may have ISO-8859-1 set to JSP response.  Instead, please use UTF-8, 
like


Hope this helps
Kenneth

Mathias Walter wrote:

Hi,

I've some trouble with special characters (i. e. german umlauts) and
tr:inputText. With IE 6, the characters will be converted to some unreadable
two-byte codes, but with FF2 it works well.

I'm using Trinidad 1.2.7, Sun JSF RI 1.2 and Facelets.
The head of the rendered page is


http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; >

How can I fix this?

--
Kind regards,
Mathias

  


[Trinidad] inputText special characters

2008-04-10 Thread Mathias Walter
Hi,

I've some trouble with special characters (i. e. german umlauts) and
tr:inputText. With IE 6, the characters will be converted to some unreadable
two-byte codes, but with FF2 it works well.

I'm using Trinidad 1.2.7, Sun JSF RI 1.2 and Facelets.
The head of the rendered page is


http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; >

How can I fix this?

--
Kind regards,
Mathias



Re: [Trinidad] skinning all input components

2008-04-10 Thread Yee-wah Lee

Hi Markus,

Did you check the aliases to see if any of them could help?
http://myfaces.apache.org/trinidad/devguide/skinning.html#Alias_skinning_keys
http://myfaces.apache.org/trinidad/skin-selectors.html

Thanks,
Yee-Wah

Döring Markus wrote:


Hi all,

I’m currently skinning some input components to have some nice style.

I’ve completed it for the tr:inputText, but I don’t want to copy-past 
the style to every input component (like selectOneChoice, 
selectManyChoice, ect. ect.)


Is there an easy way (global skin selector) to skin the all of the 
input components at once (like af:input:content or something like this)


Thanks for help

Markus Döring

TCC Products GmbH








Re: Component rendering order issue?

2008-04-10 Thread wjones14

Sure, here's the jsp snippet containing the section I'm talking about:

**











Add a Role:








**

We are not using PPR.  We are using MyFaces 1.1.4. and JDK 1.5_04.


Thanks,

Bill



Richard Yee-3 wrote:
> 
> Can you send your jspx page? Are you using PPR at all?
> 
> -Richard
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Component-rendering-order-issue--tp16609078p16616240.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: h:outputLink with multiple f:param

2008-04-10 Thread Mirco Attocchi
Thanks Christoph,
now it's ok.

Note:
I've this problem only in jsf pages running with Trinidad. I've made same
page without Trinidad and I've no render problem.

Mirco


On Thu, Apr 10, 2008 at 7:48 PM, Christoph Ebner <[EMAIL PROTECTED]>
wrote:

> Hi Mirco,
>
> set context-param org.apache.myfaces.STRICT_XHTML_LINKS to false in your
> web.xml.
>
> regards
> christoph
>
> On Thu, Apr 10, 2008 at 7:18 PM, Mirco Attocchi <[EMAIL PROTECTED]> wrote:
>
> > With this code
> >
> >  > value="#{facesContext.externalContext.requestContextPath}/Print"
> > target="_blank" title="Print">
> >  > alt="Print"/>
> > 
> > 
> > 
> >
> > I've this uncorrect html output:
> >
> >  > title="Print"> > title="Print">
> >
> > Why?
> >
> > I'm using MyFaces 1.2.2
> >
> > Thanks in advance.
> >
> > --
> > Mirco Attocchi
>
>
>


-- 
Mirco Attocchi


Re: h:outputLink with multiple f:param

2008-04-10 Thread Andrew Robinson
Why would this be needed?

"&" is not valid xhtml, it should be "&" right?

On Thu, Apr 10, 2008 at 11:48 AM, Christoph Ebner
<[EMAIL PROTECTED]> wrote:
> Hi Mirco,
>
> set context-param org.apache.myfaces.STRICT_XHTML_LINKS to false in your
> web.xml.
>
> regards
> christoph
>
>
>  On Thu, Apr 10, 2008 at 7:18 PM, Mirco Attocchi <[EMAIL PROTECTED]> wrote:
> > With this code
> >
> >  value="#{facesContext.externalContext.requestContextPath}/Print"
> target="_blank" title="Print">
> >
> >  alt="Print"/>
> > 
> > 
> > 
> >
> > I've this uncorrect html output:
> >
> >  title="Print"> title="Print">
> >
> > Why?
> >
> > I'm using MyFaces 1.2.2
> >
> > Thanks in advance.
> >
> > --
> > Mirco Attocchi
>
>


Re: h:outputLink with multiple f:param

2008-04-10 Thread Christoph Ebner
Hi Mirco,

set context-param org.apache.myfaces.STRICT_XHTML_LINKS to false in your
web.xml.

regards
christoph

On Thu, Apr 10, 2008 at 7:18 PM, Mirco Attocchi <[EMAIL PROTECTED]> wrote:

> With this code
>
>  value="#{facesContext.externalContext.requestContextPath}/Print"
> target="_blank" title="Print">
>  alt="Print"/>
> 
> 
> 
>
> I've this uncorrect html output:
>
>  title="Print"> title="Print">
>
> Why?
>
> I'm using MyFaces 1.2.2
>
> Thanks in advance.
>
> --
> Mirco Attocchi


Re: [Trinidad] how PPR response is applied to DOM

2008-04-10 Thread Andrew Robinson
Should have been partialTriggers.

This is just to illustrate the usage. Simon's reply is correct.

On Thu, Apr 10, 2008 at 11:42 AM, Andrew Robinson
<[EMAIL PROTECTED]> wrote:
> Panel group layout is pretty simple, and will do what you need.
>
>  Example:
>
>  
>   
>  
>
>  
>   
>  
>
>
>
>  On Thu, Apr 10, 2008 at 10:23 AM, Simon Lessard
>  <[EMAIL PROTECTED]> wrote:
>  > Hi Renzo, yes a simple invisible div or even span with the right id is
>  > enough. PPR need that only to know where to place the refreshed item with
>  > the specified id.
>  >
>  > ~ Simon
>  >
>  >
>  >
>  > On Thu, Apr 10, 2008 at 12:17 PM, Renzo Tomaselli
>  > <[EMAIL PROTECTED]> wrote:
>  >
>  > > Hi, I wonder if anybody can enlight me about this topic.
>  > > Assume having to add something new to a page through PPR: this requires
>  > updating some enclosing container, since PPR is all about updating (e.g.
>  > replacing) DOM parts, not adding new stuff. For example, adding a new panel
>  > to a container already owning some of them.
>  > > Such a container might be lenghty to refresh - so an alternative solution
>  > might be achieved from having a placeholder to mark the future part to be
>  > added by means of addPartialTarget.
>  > > The question is whether all is needed is a proper id to match the 
> selected
>  > component to redraw. If yes, a simple empty and hidden div is enough.
>  > > Any comment is appreciated,
>  > >
>  > > -- Renzo
>  > >
>  > >
>  >
>  >
>


Re: [Trinidad] how PPR response is applied to DOM

2008-04-10 Thread Andrew Robinson
Panel group layout is pretty simple, and will do what you need.

Example:


  



  


On Thu, Apr 10, 2008 at 10:23 AM, Simon Lessard
<[EMAIL PROTECTED]> wrote:
> Hi Renzo, yes a simple invisible div or even span with the right id is
> enough. PPR need that only to know where to place the refreshed item with
> the specified id.
>
> ~ Simon
>
>
>
> On Thu, Apr 10, 2008 at 12:17 PM, Renzo Tomaselli
> <[EMAIL PROTECTED]> wrote:
>
> > Hi, I wonder if anybody can enlight me about this topic.
> > Assume having to add something new to a page through PPR: this requires
> updating some enclosing container, since PPR is all about updating (e.g.
> replacing) DOM parts, not adding new stuff. For example, adding a new panel
> to a container already owning some of them.
> > Such a container might be lenghty to refresh - so an alternative solution
> might be achieved from having a placeholder to mark the future part to be
> added by means of addPartialTarget.
> > The question is whether all is needed is a proper id to match the selected
> component to redraw. If yes, a simple empty and hidden div is enough.
> > Any comment is appreciated,
> >
> > -- Renzo
> >
> >
>
>


h:outputLink with multiple f:param

2008-04-10 Thread Mirco Attocchi
With this code







I've this uncorrect html output:



Why?

I'm using MyFaces 1.2.2

Thanks in advance.

-- 
Mirco Attocchi


Re: Using t:dataList with Ajax4JSF

2008-04-10 Thread Grant Smith
Please note that this issue has already been addressed in the current
Tomahawk snapshot.

On Thu, Apr 10, 2008 at 6:46 AM, <[EMAIL PROTECTED]>
wrote:

>  Fix if anyone's interested :
>
>
>
> *public* *class* HtmlDataList 
> *extends*org.apache.myfaces.custom.datalist.HtmlDataList {
>
> *public* Object saveState(FacesContext context) {
>
> Object [] values = *new* Object[2];
>
> values[0] = *super*.saveState(context);
>
> values[1] = getItemStyleClass();
>
> *return* values;
>
> }
>
>
>
> *public* *void* restoreState(FacesContext context, Object state) {
>
> Object [] values = (Object[])state;
>
> *super*.restoreState(context, values[0]);
>
> setItemStyleClass((String)values[1]);
>
> }
>
> }
>
>
>
> Then just override it in your config file :
>
>
>
> 
>
>   org.apache.myfaces.HtmlDataList
>
>
> com.sag.ibee.web.gui.component.datalist.HtmlDataList
>
>
> 
>
>
>
> Just tested and it works fine for me.
>  --
>
> *De :* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED]
> *Envoyé :* jeudi 10 avril 2008 15:35
> *À :* users@myfaces.apache.org
> *Objet :* RE: Using t:dataList with Ajax4JSF
>
>
>
> Ok I found the problem already, this would appear to be a bug with
> Tomahawk (as I have the source attached here). Looks like "itemStyleClass"
> was omitted from the saveState method. When I was debugging this I noticed
> the value for it was null.
>
>
>
> Listing from HtmlDataList.java
>
>
>
> public Object saveState(FacesContext context)
>
> {
>
> Object values[] = new Object[17];
>
> values[0] = super.saveState(context);
>
> values[1] = _layout;
>
> values[2] = _rowIndexVar;
>
> values[3] = _rowCountVar;
>
> values[4] = _onclick;
>
> values[5] = _ondblclick;
>
> values[6] = _onkeydown;
>
> values[7] = _onkeypress;
>
> values[8] = _onkeyup;
>
> values[9] = _onmousedown;
>
> values[10] = _onmousemove;
>
> values[11] = _onmouseout;
>
> values[12] = _onmouseover;
>
> values[13] = _onmouseup;
>
> values[14] = _style;
>
> values[15] = _styleClass;
>
> values[16] = _title;
>
> return values;
>
> }
>
>
>
> As you can see itemStyleClass is not there. I'm using MyFaces 1.1.5, not
> sure if this problem exists in 1.2 but we're not upgrading at this point. I
> guess for now I'll just override this component to make it work. I'll see
> about opening a proper bug maybe? I haven't done so before so I'm not sure
> what the process is for that.
>
>
>  --
>
> *De :* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED]
> *Envoyé :* jeudi 10 avril 2008 15:23
> *À :* users@myfaces.apache.org
> *Objet :* Using t:dataList with Ajax4JSF
>
>
>
> Hi,
>
>
>
> I have a small problem with t:dataList and Ajax4JSF. I'm going to step
> through this in the debugger soon but maybe someone's already encountered
> this.
>
>
>
> I have a t:dataList like so:
>
>
>
>  layout="unorderedList" styleClass="DataList" itemStyleClass="DataList">
>
>
>
> Elsewhere I'm doing some Ajax4JSF action and I pass "dataList" to be
> rerendered.
>
>
>
> For the most part it rerenders correctly except it seems to omit the
> 'itemStyleClass="DataList"' attribute. The data gets updated, but the
> formatting gets broken since the s don't have their class attribute
> anymore.
>
>
>
> Thanks,
>
> Matt
>



-- 
Grant Smith


Re: problems using required fields

2008-04-10 Thread Scott O'Bryan

Thiago,

I'm not exactly sure what you're asking. Are you saying that you can't 
switch tabs if you have not entered a proper value for a required field? 
If so, then this is working as designed.


Scott

Thiago Santos da Costa wrote:


Hello dear!

I’m starting to use Myfaces Trinidad and I’m with a problem when I try 
to use a required inputText inside a panelTabbed component.


When the validation is activated the browser stop, and just come back 
to work when you click with the mouse’s left bottom in the page. It 
just occurred when I use Internet explorer.


Somebody knows anything about this?

Best regards.

Thiago Santos da Costa

*/Tribunal de Justiça do Estado do Rio de Janeiro/**//*

*/Departamento de Desenvolvimento de Sistemas/**//*

*/Divisão de Portal Corporativo/**//*

*/(21) 3133-7580/*





Re: [Trinidad] how PPR response is applied to DOM

2008-04-10 Thread Simon Lessard
Hi Renzo, yes a simple invisible div or even span with the right id is
enough. PPR need that only to know where to place the refreshed item with
the specified id.

~ Simon

On Thu, Apr 10, 2008 at 12:17 PM, Renzo Tomaselli <
[EMAIL PROTECTED]> wrote:

> Hi, I wonder if anybody can enlight me about this topic.
> Assume having to add something new to a page through PPR: this requires
> updating some enclosing container, since PPR is all about updating (e.g.
> replacing) DOM parts, not adding new stuff. For example, adding a new panel
> to a container already owning some of them.
> Such a container might be lenghty to refresh - so an alternative solution
> might be achieved from having a placeholder to mark the future part to be
> added by means of addPartialTarget.
> The question is whether all is needed is a proper id to match the selected
> component to redraw. If yes, a simple empty and hidden div is enough.
> Any comment is appreciated,
>
> -- Renzo
>
>


[Trinidad] how PPR response is applied to DOM

2008-04-10 Thread Renzo Tomaselli

Hi, I wonder if anybody can enlight me about this topic.
Assume having to add something new to a page through PPR: this requires 
updating some enclosing container, since PPR is all about updating (e.g. 
replacing) DOM parts, not adding new stuff. For example, adding a new 
panel to a container already owning some of them.
Such a container might be lenghty to refresh - so an alternative 
solution might be achieved from having a placeholder to mark the future 
part to be added by means of addPartialTarget.
The question is whether all is needed is a proper id to match the 
selected component to redraw. If yes, a simple empty and hidden div is 
enough.

Any comment is appreciated,

-- Renzo



Re: [Trinidad] skining showDetails component

2008-04-10 Thread Cristi Toth
Hi,

Skinning the link itself is quite nasty, because all the links in trinidad
also have the OraLink styleClass
that's because you can't use :link :active :hover pseudo-classes on
skin-selectors

so what you could do is something like this:
af|showDetail::prompt-disclosed .OraLink:link,
af|showDetail::prompt-undisclosed .OraLink:link {
.. properties
}

and try add !important on the css properties you put in the selector
do so also for :active, :hover, ... if you need it

regards,

On Thu, Apr 10, 2008 at 4:35 PM, Döring Markus <
[EMAIL PROTECTED]> wrote:

>  Hi all,
>
> I'm trying to skin the link of the showDetails component (change the color
> of the link and the font size)
>
> I've managed to change the color by skinning .AFLinkForeground:alias but I
> don't want to change every link.
>
> af|showDetail:: prompt-link is not working for me at all.
>
> Can someone please give me the correct skinSelector for showDetails?`
>
>
>
> Thanks
>
> Greetings
>
>
>
> Markus Döring
>
> TCC Products GmbH
>



-- 
Cristi Toth

-
Codebeat
www.codebeat.ro


Re: Component rendering order issue?

2008-04-10 Thread Richard Yee
Can you send your jspx page? Are you using PPR at all?

-Richard




On 4/10/08, wjones14 <[EMAIL PROTECTED]> wrote:
>
>
> We have a screen with a datatable, a Command Button and a SelectOneMenu
> drop-down list.  The user chooses an item from the drop-down, presses the
> button to add this item to the datatable, and when the page re-displays
> the
> datatable should have one more item, and the drop-down list should have
> one
> less item.
>
> However, what is happening is that the drop-down list is not refreshing on
> the first button press, so the previously selected item is still there,
> while the datatable is refreshing, showing the added item.
>
> The command button action is datatable.addItem.
>
> So I ran this in a debugger with breakpoints in the addItem method, and in
> the drop-down list load method.  When the command button is pressed,
> instead
> of going right into the addItem method, the execution first goes to the
> drop-down list load method - so the same list is displayed again.  Then
> the
> execution goes into the datatable bean's addItem method, and the datatable
> is properly refreshed.
>
> Is there a way to get the addItem method to be invoked before the
> SelectOneMenu's load method?
>
>
> Thanks,
>
> Bill
> --
> View this message in context:
> http://www.nabble.com/Component-rendering-order-issue--tp16609078p16609078.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Component rendering order issue?

2008-04-10 Thread wjones14

We have a screen with a datatable, a Command Button and a SelectOneMenu
drop-down list.  The user chooses an item from the drop-down, presses the
button to add this item to the datatable, and when the page re-displays the
datatable should have one more item, and the drop-down list should have one
less item.

However, what is happening is that the drop-down list is not refreshing on
the first button press, so the previously selected item is still there,
while the datatable is refreshing, showing the added item.

The command button action is datatable.addItem.

So I ran this in a debugger with breakpoints in the addItem method, and in
the drop-down list load method.  When the command button is pressed, instead
of going right into the addItem method, the execution first goes to the
drop-down list load method - so the same list is displayed again.  Then the
execution goes into the datatable bean's addItem method, and the datatable
is properly refreshed.

Is there a way to get the addItem method to be invoked before the
SelectOneMenu's load method?


Thanks,

Bill
-- 
View this message in context: 
http://www.nabble.com/Component-rendering-order-issue--tp16609078p16609078.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: ErrorPageWriter causes Facelets/MyFaces confusion

2008-04-10 Thread Michael Heß
Hi Leonardo,

yes I found this, and as supposed before this actually helped. What
confused me, was the fact that myfaces uses the facelets error page.

Anyway, thank you for pointing this out.

bye, Michael


Leonardo Uribe schrieb:
> Have you seen this:
>
> http://wiki.apache.org/myfaces/Handling_Server_Errors
>
> for disable error handling do this:
>
>   
>   
> org.apache.myfaces.ERROR_HANDLING
> false
>   
>   
>   
> facelets.DEVELOPMENT
> false
>   
>
>
> regards
>
> Leonardo Uribe
>


-- 
Michael Heß
Senior Consultant

ORDIX AG
Westernmauer 12-16
33098 Paderborn

http://www.ordix.de
Tel.: 05251 / 10 63  0
Fax : 05251 / 10 63 99
Mob :  0163 /673 49 43

ORDIX AG - Aktiengesellschaft für Softwareentwicklung, Schulung, Beratung
und Systemintegration
Vorsitzender des Aufsichtsrates: Prof. Dr. Hermann Johannes
Vorstand: Wolfgang Kögler (Vorsitzender), Benedikt Georgi, Christoph
Lafeld, Axel Röber
Firmensitz: Westernmauer 12 - 16, 33098 Paderborn, Tel: 05251 / 1063-0,
Fax: 0180 / 1 67 34 90
Amtsgericht Paderborn, HRB 2941, Ust-IdNr.DE 126333767, Steuernummer:
339/5866/0142




[Trinidad] skining showDetails component

2008-04-10 Thread Döring Markus
Hi all,

I'm trying to skin the link of the showDetails component (change the color of 
the link and the font size)

I've managed to change the color by skinning .AFLinkForeground:alias but I 
don't want to change every link.

af|showDetail:: prompt-link is not working for me at all.

Can someone please give me the correct skinSelector for showDetails?`

 

Thanks

Greetings

 

Markus Döring

TCC Products GmbH



Re: How does t:saveState work?

2008-04-10 Thread Werner Punz

Rogerio Pereira schrieb:

saveState never save objects in session, this component is used to
avoid session overload, saveState serializes all objects somewhere in
you filesystem.



This is not entirely true savestate uses the standard jsf save and 
restory cycle to store the data. It simply serializes the referenced 
bean and deserialises it.
It now depends on the save and restore settings of the jsf 
implementation where the data is stored.
If you have client side state saving it will store the data into the 
browser, if you have server side it depends on where the server side 
state saving is stored to. Depending on the settings it stores it into 
the session or somewhere else.


Werner



to limit the length of the drop down list in selectOneMenu in JSF

2008-04-10 Thread Chenini, Mohamed
Hello,

 

Is there a way to limit the length of the drop down list in
selectOneMenu in JSF.  I added size="10" but it is not working. The
print screen is from the user (who want only 10 values to be displayed
when he clicks on the down arrow).

 

Thanks.

 



   



   #{bundle.searchpre_state_label}



 

Thanks,

Mohamed

 

 

 


This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.
<>

RE: Using t:dataList with Ajax4JSF

2008-04-10 Thread Matt.Rossner-prest
Fix if anyone's interested :

 

public class HtmlDataList extends 
org.apache.myfaces.custom.datalist.HtmlDataList {

public Object saveState(FacesContext context) {

Object [] values = new Object[2]; 

values[0] = super.saveState(context);

values[1] = getItemStyleClass();

return values;

}



public void restoreState(FacesContext context, Object state) {

Object [] values = (Object[])state;

super.restoreState(context, values[0]);

setItemStyleClass((String)values[1]); 

}

}

 

Then just override it in your config file :

 



  org.apache.myfaces.HtmlDataList

  
com.sag.ibee.web.gui.component.datalist.HtmlDataList




 

Just tested and it works fine for me.



De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 avril 2008 15:35
À : users@myfaces.apache.org
Objet : RE: Using t:dataList with Ajax4JSF

 

Ok I found the problem already, this would appear to be a bug with Tomahawk (as 
I have the source attached here). Looks like "itemStyleClass"  was omitted from 
the saveState method. When I was debugging this I noticed the value for it was 
null.

 

Listing from HtmlDataList.java

 

public Object saveState(FacesContext context)

{

Object values[] = new Object[17];

values[0] = super.saveState(context);

values[1] = _layout;

values[2] = _rowIndexVar;

values[3] = _rowCountVar;

values[4] = _onclick;

values[5] = _ondblclick;

values[6] = _onkeydown;

values[7] = _onkeypress;

values[8] = _onkeyup;

values[9] = _onmousedown;

values[10] = _onmousemove;

values[11] = _onmouseout;

values[12] = _onmouseover;

values[13] = _onmouseup;

values[14] = _style;

values[15] = _styleClass;

values[16] = _title;

return values;

}

 

As you can see itemStyleClass is not there. I'm using MyFaces 1.1.5, not sure 
if this problem exists in 1.2 but we're not upgrading at this point. I guess 
for now I'll just override this component to make it work. I'll see about 
opening a proper bug maybe? I haven't done so before so I'm not sure what the 
process is for that.

 



De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 avril 2008 15:23
À : users@myfaces.apache.org
Objet : Using t:dataList with Ajax4JSF

 

Hi,

 

I have a small problem with t:dataList and Ajax4JSF. I'm going to step through 
this in the debugger soon but maybe someone's already encountered this.

 

I have a t:dataList like so:

 



 

Elsewhere I'm doing some Ajax4JSF action and I pass "dataList" to be rerendered.

 

For the most part it rerenders correctly except it seems to omit the 
'itemStyleClass="DataList"' attribute. The data gets updated, but the 
formatting gets broken since the s don't have their class attribute anymore.

 

Thanks,

Matt



RE: OGNL with MyFaces - how to?

2008-04-10 Thread Sidhik, Rosmon
Thanks Kito for the information. I have moved ahead with using the myfaces
EL for now. In case we decide we need to use OGNL I'll take a look at the
facelets list.
Thanks anyways.

-Original Message-
From: Kito D. Mann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 12:35 PM
To: 'MyFaces Discussion'
Subject: RE: OGNL with MyFaces - how to?

You may want to check out the Facelets mailing list. There was a discussion
about this a while back, with the idea of integrating OGNL into the Unified
EL via its ability to add new contexts, etc.

~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
phone: +1 203-653-2989
fax: +1 203-653-2988


> -Original Message-
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 08, 2008 10:50 PM
> To: MyFaces Discussion
> Subject: Re: OGNL with MyFaces - how to?
> 
> MyFaces uses the unified EL - to my knowledge, nobody has ever tried
> to use it with the OGNL. It would certainly be worthwile trying to get
> it up and running, however, but there are quite a few locations in
> MyFaces where we refer to the unified EL API, so I am not sure if this
> is possible at all :(
> 
> regards,
> 
> Martin
> 
> On Wed, Mar 19, 2008 at 3:23 PM, Sidhik, Rosmon <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
> > Hi,
> >
> > Has anybody used OGNL with MyFaces?
> >
> > I would like to use OGNL with MyFaces and would like to get any help
> > available to setup my application to use it.
> >
> > I have tried googling but haven't found any resources on this topic.
> >
> > Any help is appreciated.
> >
> > Thanks
> >
> > Rosmon
> >
> >
> 
> 
> 
> --
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces


RE: Using t:dataList with Ajax4JSF

2008-04-10 Thread Matt.Rossner-prest
Ok I found the problem already, this would appear to be a bug with Tomahawk (as 
I have the source attached here). Looks like "itemStyleClass"  was omitted from 
the saveState method. When I was debugging this I noticed the value for it was 
null.

 

Listing from HtmlDataList.java

 

public Object saveState(FacesContext context)

{

Object values[] = new Object[17];

values[0] = super.saveState(context);

values[1] = _layout;

values[2] = _rowIndexVar;

values[3] = _rowCountVar;

values[4] = _onclick;

values[5] = _ondblclick;

values[6] = _onkeydown;

values[7] = _onkeypress;

values[8] = _onkeyup;

values[9] = _onmousedown;

values[10] = _onmousemove;

values[11] = _onmouseout;

values[12] = _onmouseover;

values[13] = _onmouseup;

values[14] = _style;

values[15] = _styleClass;

values[16] = _title;

return values;

}

 

As you can see itemStyleClass is not there. I'm using MyFaces 1.1.5, not sure 
if this problem exists in 1.2 but we're not upgrading at this point. I guess 
for now I'll just override this component to make it work. I'll see about 
opening a proper bug maybe? I haven't done so before so I'm not sure what the 
process is for that.

 



De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 avril 2008 15:23
À : users@myfaces.apache.org
Objet : Using t:dataList with Ajax4JSF

 

Hi,

 

I have a small problem with t:dataList and Ajax4JSF. I'm going to step through 
this in the debugger soon but maybe someone's already encountered this.

 

I have a t:dataList like so:

 



 

Elsewhere I'm doing some Ajax4JSF action and I pass "dataList" to be rerendered.

 

For the most part it rerenders correctly except it seems to omit the 
'itemStyleClass="DataList"' attribute. The data gets updated, but the 
formatting gets broken since the s don't have their class attribute anymore.

 

Thanks,

Matt



Using t:dataList with Ajax4JSF

2008-04-10 Thread Matt.Rossner-prest
Hi,

 

I have a small problem with t:dataList and Ajax4JSF. I'm going to step
through this in the debugger soon but maybe someone's already
encountered this.

 

I have a t:dataList like so:

 



 

Elsewhere I'm doing some Ajax4JSF action and I pass "dataList" to be
rerendered.

 

For the most part it rerenders correctly except it seems to omit the
'itemStyleClass="DataList"' attribute. The data gets updated, but the
formatting gets broken since the s don't have their class attribute
anymore.

 

Thanks,

Matt



Re: ErrorPageWriter causes Facelets/MyFaces confusion

2008-04-10 Thread Leonardo Uribe
Have you seen this:

http://wiki.apache.org/myfaces/Handling_Server_Errors

for disable error handling do this:

  
  
org.apache.myfaces.ERROR_HANDLING
false
  
  
  
facelets.DEVELOPMENT
false
  


regards

Leonardo Uribe


Re: ErrorPageWriter causes Facelets/MyFaces confusion

2008-04-10 Thread Martin Marinschek
Open a jira-issue.

regards,

Martin

On 4/9/08, Michael Heß <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> I just stumbled upon some weired problem. I have a rather basic myfaces
> 1.2.2 + facelets 1.1.3 setup. What I tried to achieve, is to NOT have
> either Facelets nor MyFaces handle any of the error 500 scenarios.
>
> Right now, in case of error 500 I have a facelets error page. "An Error
> Occured", and collapsable trees for the components etc. You know the
> drill.
>
> So I decided to disable debugging in facelets, by switching
> context-parameter facelets.DEVELOPMENT to false. This was the first moment
> I got confused, because devmode was already disabled.
>
> BUT: The error page definetly states "Generated by Facelets" in the lower
> right corner.
>
> I spent the last hour tracking this down. So far I have confirmed that the
> FaceletsViewHandler does not trigger the generation of said errorpage. So
> I searched some more, and found javax.faces.webapp._ErrorPageWriter to be
> the culprit. The problem is, that it seems to be a copy of the Facelets
> DevTools class. And furthermore the filename of the error-template has
> been copied as well. It's
>
> "META-INF/rsc/facelet-dev-error.xml"
>
> on both myfaces as well as facelets. I have checked the template included
> with myfaces and it is clearly different from the one included with
> facelets. So my best guess right now (I have not confirmed this any
> further) is, that MyFaces loads the template from facelets.jar due to some
> unlucky webapp classloader situation.
>
> Although the solution to my current problem is most likely to just disable
> debugging in myfaces as well, I would like to strongly advise to change
> the filename of the MyFaces error-template. This really confused me a lot.
> :-)
>
> Is this a known issue?
> Otherwise I will open a bug for this on jira, to document it properly.
>
> bye, Michael
>
>
> --
> Michael Heß
> Senior Consultant
>
> ORDIX AG
> Westernmauer 12-16
> 33098 Paderborn
>
> http://www.ordix.de
> Tel.: 05251 / 10 63  0
> Fax : 05251 / 10 63 99
> Mob :  0163 /673 49 43
>
> ORDIX AG - Aktiengesellschaft für Softwareentwicklung, Schulung, Beratung
> und Systemintegration
> Vorsitzender des Aufsichtsrates: Prof. Dr. Hermann Johannes
> Vorstand: Wolfgang Kögler (Vorsitzender), Benedikt Georgi, Christoph
> Lafeld, Axel Röber
> Firmensitz: Westernmauer 12 - 16, 33098 Paderborn, Tel: 05251 / 1063-0,
> Fax: 0180 / 1 67 34 90
> Amtsgericht Paderborn, HRB 2941, Ust-IdNr.DE 126333767, Steuernummer:
> 339/5866/0142
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: How does t:saveState work?

2008-04-10 Thread Rogerio Pereira
saveState never save objects in session, this component is used to
avoid session overload, saveState serializes all objects somewhere in
you filesystem.

2008/4/10, Nitin Deshmukh <[EMAIL PROTECTED]>:
> Hi,
>
>  I am trying to find out how saveState works? does it
>  save objects in the session or keeps it in a hidden
>  variable or what does it do?
>
>  any guidance or pointing in the right direction will
>  be helpful.
>
>  Thanks,
>
> Nitin
>
>
>  __
>  Do You Yahoo!?
>  Tired of spam?  Yahoo! Mail has the best spam protection around
>  http://mail.yahoo.com
>


-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

"Faça a diferença! Ajude o seu país a crescer, não retenha
conhecimento, distribua e aprenda mais." (http://faces.eti.br/?p=45)


How does t:saveState work?

2008-04-10 Thread Nitin Deshmukh
Hi,

I am trying to find out how saveState works? does it
save objects in the session or keeps it in a hidden
variable or what does it do?

any guidance or pointing in the right direction will
be helpful.

Thanks,
Nitin

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: [Trinidad] Disable details-link

2008-04-10 Thread Mathias Walter
Henk,

would you open a JIRA issue, please?

--
Kind regards,
Mathias

> -Original Message-
> From: Henk Vanhoe [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 10, 2008 1:55 PM
> To: MyFaces Discussion
> Subject: Re: [Trinidad] Disable details-link
> 
> 
> Hi,
> 
> It would help me a lot if  you would commit your code. But 
> even if you 
> don't want to commit it, I would be very glad if you could 
> post the code 
> here, so I could add it myself to my own copy of the trinidad source 
> code and recompile it...
> 
> On the other hand, if other people are interested in this 
> functionality, 
> an extra attribute "detailsLinkEnabled" may be more flexible, because 
> then you could show all details by default when this 
> attribute is false 
> (with the skinning property I suppose you still need to expand all 
> detail rows yourself with the disclosedRowKeys attribute).
> 
> Thanks a lot,
> Henk
> 
> Cristi Toth wrote:
> > Hi,
> >
> > I did if for a client with an extra skinning property 
> something like:
> > af|table {
> >   -tr-show-detail-column:false;
> > }
> >
> > I'm not 100% happy with my code, so I didn't hurry to commit it.
> > But I might do it, if other people want it and like it.
> >
> > Regards,
> >
> > On Wed, Apr 9, 2008 at 9:28 AM, Henk Vanhoe <[EMAIL PROTECTED] 
> > > wrote:
> >
> > Hi,
> >
> > I suppose it would not be particularly difficult to add an extra
> > attribute to the trinidad table, something like a
> > "detailsLinkEnabled" attribute with which it would be 
> possible to
> > show/hide the extra "Details"-column. That would be 
> handy when the
> > detailstamp should always be shown or when you want to show/hide
> > the detailstamp with pure client-side javascript (which 
> is faster
> > than PPR with small pages and with which you can avoid 
> some extra
> > complexities related with PPR). But of course, if there 
> is another
> > way to do that, I would prefer not to add an extra attribute...
> >
> > Regards,
> > Henk
> >
> >
> > Henk Vanhoe wrote:
> >
> > Hi,
> >
> > Another question I was having...
> >
> > In one of our tables we are using the detailStamp 
> facet. When
> > I add a detailStamp there automatically appears an extra
> > column with a "Details"-link in it. Does anybody 
> know a way to
> > disable this column? (The details should always be 
> visible in
> > the screen we are building.) I noticed there is an
> > "allDetailsEnabled" attribute where I could 
> disable/enable the
> > show/hide all links, but I don't find a similar 
> attribute for
> > the regular show/hide links...
> >
> > Thanks,
> > Henk
> >
> >  
> >
> >
> >
> >
> >
> > -- 
> > Cristi Toth
> >
> > -
> > Codebeat
> > www.codebeat.ro  



RE: [Trinidad] Disable details-link

2008-04-10 Thread Mathias Walter
Hi,

I'm also very interested in such an attribute.
In my case, I have an inline editable table with an extra 'action' column
(the right most column) which contains links (visibility depends on the
action itself) for editing, deleting, canceling and updating of rows.
It would be great to disable the details column. Than I can add a further
link into the action column to show the details programmatically.

--
Kind regards,
Mathias

> -Original Message-
> From: Henk Vanhoe [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 10, 2008 1:55 PM
> To: MyFaces Discussion
> Subject: Re: [Trinidad] Disable details-link
> 
> 
> Hi,
> 
> It would help me a lot if  you would commit your code. But 
> even if you 
> don't want to commit it, I would be very glad if you could 
> post the code 
> here, so I could add it myself to my own copy of the trinidad source 
> code and recompile it...
> 
> On the other hand, if other people are interested in this 
> functionality, 
> an extra attribute "detailsLinkEnabled" may be more flexible, because 
> then you could show all details by default when this 
> attribute is false 
> (with the skinning property I suppose you still need to expand all 
> detail rows yourself with the disclosedRowKeys attribute).
> 
> Thanks a lot,
> Henk
> 
> Cristi Toth wrote:
> > Hi,
> >
> > I did if for a client with an extra skinning property 
> something like:
> > af|table {
> >   -tr-show-detail-column:false;
> > }
> >
> > I'm not 100% happy with my code, so I didn't hurry to commit it.
> > But I might do it, if other people want it and like it.
> >
> > Regards,
> >
> > On Wed, Apr 9, 2008 at 9:28 AM, Henk Vanhoe <[EMAIL PROTECTED] 
> > > wrote:
> >
> > Hi,
> >
> > I suppose it would not be particularly difficult to add an extra
> > attribute to the trinidad table, something like a
> > "detailsLinkEnabled" attribute with which it would be 
> possible to
> > show/hide the extra "Details"-column. That would be 
> handy when the
> > detailstamp should always be shown or when you want to show/hide
> > the detailstamp with pure client-side javascript (which 
> is faster
> > than PPR with small pages and with which you can avoid 
> some extra
> > complexities related with PPR). But of course, if there 
> is another
> > way to do that, I would prefer not to add an extra attribute...
> >
> > Regards,
> > Henk
> >
> >
> > Henk Vanhoe wrote:
> >
> > Hi,
> >
> > Another question I was having...
> >
> > In one of our tables we are using the detailStamp 
> facet. When
> > I add a detailStamp there automatically appears an extra
> > column with a "Details"-link in it. Does anybody 
> know a way to
> > disable this column? (The details should always be 
> visible in
> > the screen we are building.) I noticed there is an
> > "allDetailsEnabled" attribute where I could 
> disable/enable the
> > show/hide all links, but I don't find a similar 
> attribute for
> > the regular show/hide links...
> >
> > Thanks,
> > Henk
> >
> >  
> >
> >
> >
> >
> >
> > -- 
> > Cristi Toth
> >
> > -
> > Codebeat
> > www.codebeat.ro  



Re: [Trinidad] Disable details-link

2008-04-10 Thread Henk Vanhoe

Hi,

It would help me a lot if  you would commit your code. But even if you 
don't want to commit it, I would be very glad if you could post the code 
here, so I could add it myself to my own copy of the trinidad source 
code and recompile it...


On the other hand, if other people are interested in this functionality, 
an extra attribute "detailsLinkEnabled" may be more flexible, because 
then you could show all details by default when this attribute is false 
(with the skinning property I suppose you still need to expand all 
detail rows yourself with the disclosedRowKeys attribute).


Thanks a lot,
Henk

Cristi Toth wrote:

Hi,

I did if for a client with an extra skinning property something like:
af|table {
  -tr-show-detail-column:false;
}

I'm not 100% happy with my code, so I didn't hurry to commit it.
But I might do it, if other people want it and like it.

Regards,

On Wed, Apr 9, 2008 at 9:28 AM, Henk Vanhoe <[EMAIL PROTECTED] 
> wrote:


Hi,

I suppose it would not be particularly difficult to add an extra
attribute to the trinidad table, something like a
"detailsLinkEnabled" attribute with which it would be possible to
show/hide the extra "Details"-column. That would be handy when the
detailstamp should always be shown or when you want to show/hide
the detailstamp with pure client-side javascript (which is faster
than PPR with small pages and with which you can avoid some extra
complexities related with PPR). But of course, if there is another
way to do that, I would prefer not to add an extra attribute...

Regards,
Henk


Henk Vanhoe wrote:

Hi,

Another question I was having...

In one of our tables we are using the detailStamp facet. When
I add a detailStamp there automatically appears an extra
column with a "Details"-link in it. Does anybody know a way to
disable this column? (The details should always be visible in
the screen we are building.) I noticed there is an
"allDetailsEnabled" attribute where I could disable/enable the
show/hide all links, but I don't find a similar attribute for
the regular show/hide links...

Thanks,
Henk

 






--
Cristi Toth

-
Codebeat
www.codebeat.ro  




FixedColumns, TreeTable, ColumnGrouping

2008-04-10 Thread Nuno Sousa
1 - Any JSF Implementation that allows all this 3 features in the same
table?

2- Or can i make a mix with any other JSF Component that allow me to do
this?

3- If not, can i develop JSF Components to do this without tons of work and
uber knowledges (I'm Java developer mainly)?

4 - If any of you know any JSF Implementation that allow TreeTable with
ColumnGrouping, please let me know.

Thanks!


-- 
Ping is just a number timming is everything


Re: [Trinidad] about using PPR everywhere on a panel-driven page

2008-04-10 Thread Renzo Tomaselli
Thanks Scott. I presume you are referring to addPartialTargets (or 
findRelativeComponent) - which I didn't know about so far.


-- Renzo

Scott O'Bryan wrote:
Renzo, just use the component's id (ie. in the "id" attribute).  
Trinidad will correctly resolve the "scope" if you use it right.  
There is some ":" mechanism that will even let you traverse naming 
containers, but Andrew could probably explain that better.  :)  I'm 
sure it's documented somewhere.


Scott

Renzo Tomaselli wrote:
Hi all, I'm working on an application which mimics the behavior of 
modern (non-web GUI) wizards.
Basically there is a single page containing side-by-side panels (like 
frames) plus a number of popup panels.
Users are allowed to move a panel between those tho sets, as well as 
to minimize, maximize, drag and resize panels.
Actual panel contents are runtime-defined after user actions on 
buttons and popup menus, thus there is a massive usage of Facelets 
composition components (but no templates) and ui:include. Heavy usage 
of js machinery is needed too.
Trinidad is very good for my purposes but - as a matter of efficiency 
- PPR should be used everywhere, so that single panels contents only 
should be refreshed upon any user action, not the entire page. 
Basically there is no reason to refresh the entire page, except for 
changing locale.
Here comes the point: this approach requires using 
partialSubmit="true" on *all* buttons/links, while addPartialTarget() 
defines later what to return as a PPR response.
I already use this way for panel refreshing in selected cases without 
problems but now I would generalize this approach.
But addPartialTarget() requires a component to be specified, and the 
only way I know of to get a component is through the binding 
attribute. This has some unpleasant side-effects with Facelets, and 
it cannot be used within iterating components (stamping) since inner 
components are defined at rendering time.
In general - it's from action processing (within beans) that I have 
to decide upon which component will be a partial target.
In many cases there is no need to return anything: e.i. while 
removing a panel, the DOM is updated by js and the concerned bean 
needs to know about the dropped panel. No PPR response is needed and 
the result is very fast.

Thanks for any comment,

-- Renzo






Re: [Trinidad]

2008-04-10 Thread Rafa Pérez
AFAIK it is not possible at the moment.

On Mon, Apr 7, 2008 at 6:24 PM, Leng, William <
[EMAIL PROTECTED]> wrote:

>  Does anyone know how to place the control bar of a tr:table at the bottom
> instead of the top?
>
>
>
> Thanks
>
>
>
> Bill
>
> CONFIDENTIALITY NOTICE:
> The information contained in this e-mail, including any attachment(s),
> is confidential information that may be privileged and exempt from
> disclosure under applicable law. If the reader of this message is not
> the intended recipient, or if you received this message in error, then
> any direct or indirect disclosure, distribution or copying of this
> message is strictly prohibited. If you have received this message in
> error, please notify the ServiceMaster Help Desk immediately by calling
> (866) 597-4321 and by sending a return e-mail; delete this message; and
> destroy all copies, including attachments.
>
> Thank you.
>
>


[Trinidad]

2008-04-10 Thread Leng, William
Does anyone know how to place the control bar of a tr:table at the bottom 
instead of the top?

Thanks

Bill
CONFIDENTIALITY NOTICE: 
The information contained in this e-mail, including any attachment(s),
is confidential information that may be privileged and exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, or if you received this message in error, then
any direct or indirect disclosure, distribution or copying of this
message is strictly prohibited. If you have received this message in
error, please notify the ServiceMaster Help Desk immediately by calling
(866) 597-4321 and by sending a return e-mail; delete this message; and
destroy all copies, including attachments. 

Thank you.


"Selection" table header in target jsp does not have a unique id like other headers. How to get unique?

2008-04-10 Thread Martin Piekorz
Hello,

here my jsp:

...

...


the default table header of the column where you can select the rows in, always 
have
this short id in the generated target jsp like:




problems using required fields

2008-04-10 Thread Thiago Santos da Costa
Hello dear! 

 

I'm starting to use Myfaces Trinidad and I'm with a problem when I try to use a 
required inputText inside a panelTabbed component. 

When the validation is activated the browser stop, and just come back to work 
when you click with the mouse's left bottom in the page. It just occurred when 
I use Internet explorer.

Somebody knows anything about this?

 

Best regards.

 

Thiago Santos da Costa

Tribunal de Justiça do Estado do Rio de Janeiro

Departamento de Desenvolvimento de Sistemas

Divisão de Portal Corporativo

(21) 3133-7580

 

BEGIN:VCARD
VERSION:2.1
N:Costa;Thiago Santos da
FN:Thiago Santos da Costa
ORG:;DGTEC-DESIS
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20070827T143137Z
END:VCARD