Re: Which components to use?

2007-08-29 Thread x y
I am so sorry for the late reply. Thank you so much. Your suggestion will be of 
great help.

Cheers!

- Original Message 
From: David Delbecq <[EMAIL PROTECTED]>
To: MyFaces Discussion 
Sent: Wednesday, August 22, 2007 11:19:02 PM
Subject: Re: Which components to use?

Situation here:

using here: Facelets + Myfaces + Tomahawk + Sandbox + Ajax4JSF +
RichFaces+ Custom components. Only limit we found is that one of our
really big forms (around 200+ components in it, with lots of Javascript
enabled components like t:calendar and lots of ui:include)take around 2
seconds to be first time generated to user. We still have to investigate
whever it comes from JSF tree or from the database backend which has a
few tables to explore :)

We are probably not the best example, as we use it for a reasonable
traffic intranet. But for component compatibility we did not notice
things that make them unusable. Of course each component has it's
limitations, but they are not that hard to cope with.

x y a écrit :
> Hello,
>
> I know this kind of question is sometimes annoying, but with so much
> components being created and enhancements on the existing ones, it is
> hard to make a decision, in a formal process, for the components to
> start an professional enteprise application.
>
> We are using Spring, then I think it could be a clue in which
> directions we could go. I am thinking in MyFaces with its variations:
> Trinidad, Tomahawk, etc. Another alternative would be to use Seam
> integrating with Myfaces and Spring, but I am not sure about how it
> has been working in production.
>
> The main aspect here, is that I would not like to start with a
> componet, and suddenly find that there are so many bugs to be
> corrected or there are limitation to integrate with other components
> to provide more features.
>
> You people, that have been working with those components in production
> (or at least close to it), would you mind to share you thought?
>
> Thank you very much.
>
> 
> Looking for a deal? Find great prices on flights and hotels
> 
> with Yahoo! FareChase.







   

Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

Re: Which components to use? - Seam?!

2007-08-29 Thread x y
Anybody with JSF/Seam experience to share your thoughts? Thank you in advance.

- Original Message 
From: x y <[EMAIL PROTECTED]>
To: MyFaces Discussion 
Sent: Wednesday, August 29, 2007 9:08:47 AM
Subject: Re: Which components to use?

I am so sorry for the late reply. Thank you so much. Your suggestion will be of 
great help.

Cheers!

- Original Message 
From: David Delbecq <[EMAIL PROTECTED]>
To: MyFaces Discussion 
Sent: Wednesday, August 22, 2007 11:19:02 PM
Subject: Re: Which components to use?

Situation here:

using here: Facelets + Myfaces + Tomahawk + Sandbox + Ajax4JSF +
RichFaces+ Custom components. Only limit we found is that one of our
really big forms (around 200+ components in it, with lots of Javascript
enabled components like t:calendar and lots of
 ui:include)take around 2
seconds to be first time generated to user. We still have to investigate
whever it comes from JSF tree or from the database backend which has a
few tables to explore :)

We are probably not the best example, as we use it for a reasonable
traffic intranet. But for component compatibility we did not notice
things that make them unusable. Of course each component has it's
limitations, but they are not that hard to cope with.

x y a écrit :
> Hello,
>
> I know this kind of question is sometimes annoying, but with so much
> components being created and enhancements on the existing ones, it is
> hard to make a decision, in a formal process, for the components to
> start an professional enteprise application.
>
> We are using Spring, then I think it could be a clue in which
> directions we could go. I am thinking in MyFaces with its variations:
>
 Trinidad, Tomahawk, etc. Another alternative would be to use Seam
> integrating with Myfaces and Spring, but I am not sure about how it
> has been working in production.
>
> The main aspect here, is that I would not like to start with a
> componet, and suddenly find that there are so many bugs to be
> corrected or there are limitation to integrate with other components
> to provide more features.
>
> You people, that have been working with those components in production
> (or at least close to it), would you mind to share you thought?
>
> Thank you very much.
>
> 
> Looking for a deal? Find great prices on flights and hotels
> 
> with Yahoo! FareChase.







  Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.





  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


Re: AW: AW: AW: AW: Search Highlighting

2007-08-29 Thread kewldude

Or I have no choice, but to code my own dataTable renderer given my
requirements below?


kewldude wrote:
> 
> Just a simple exact match for the meantime will do. 
> 
> 
> Sertic Mirko, Bedag wrote:
>> 
>> Are you using special characters for your search, a % or an *, AND or OR
>> matching,
>> or are you doing a simple exact match?
>> 
>> -Ursprüngliche Nachricht-
>> Von: kewldude [mailto:[EMAIL PROTECTED] 
>> Gesendet: Dienstag, 28. August 2007 10:05
>> An: users@myfaces.apache.org
>> Betreff: Re: AW: AW: AW: Search Highlighting
>> 
>> 
>> 
>> My concern is how do I do it using JSF. What would be the logic behind
>> highlighting specific text located in a column inside a datatable.
>> 
>> 
>> Sertic Mirko, Bedag wrote:
>>> 
>>> Maybe oracle text can help you
>>> 
>>> http://www.oracle.com/technology/products/text/index.html 
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: kewldude [mailto:[EMAIL PROTECTED] 
>>> Gesendet: Dienstag, 28. August 2007 09:48
>>> An: users@myfaces.apache.org
>>> Betreff: Re: AW: AW: Search Highlighting
>>> 
>>> 
>>> No im not using Hibernate, Im using plain DAOs via Oracle. 
>>> 
>>> 
>>> Sertic Mirko, Bedag wrote:
 
 Ok, are you using hibernate? Hibernate Search is beta, i know,
 but it can build a fulltext index across your object entities,
 and there is your search engine... There are also other possibilities
 to link hibernate with lucene...
 
 Regards
 Mirko
 
 -Ursprüngliche Nachricht-
 Von: kewldude [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 28. August 2007 09:09
 An: users@myfaces.apache.org
 Betreff: Re: AW: Search Highlighting
 
 
 Yeah I've come across that Lucene capability. Unfortunately, we are
 doing
 the
 search using database search. U have any more suggestions or ideas?
 Thanks
 for the reply.
 
 
 Sertic Mirko, Bedag wrote:
> 
> Hi
> 
> How are you doing the search? Is it a database search, or
> are u using lucene, for instance? With lucene, you can use
> she search result highlighter to generate html, and then
> output it in your jsp/jsf page...
> 
> Regards
> Mirko
> 
> -Ursprüngliche Nachricht-
> Von: kewldude [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 28. August 2007 07:13
> An: users@myfaces.apache.org
> Betreff: Search Highlighting
> 
> 
> I know this is a little bit off topic here, but I need to ask it here
> because
> I'm using MyFaces in this project, so here it goes...
> 
> I need to present a dataTable that represents search results coming
> from
> a
> search query (query of books, articles,documents etc. ). Lets say I
> have
> 4
> columns to display (KeyNumber,Author,Title,Subject), within those
> columns
> I
> need to highlight the exact words that the user used in
> querying/searching.
> Lets say the user searched for Bert Bates.
> 
> The dataTable will be presented somewhat like this:
> 
> KeyNumber Author  
> 
> Title Subject
> 1Eric Freeman, Bert Bates, Elisabeth Freeman Head
> First
> Design Pattern Certifications,Java
> 2Kathy Sierra, Bert Bates   
> Head First Java Java, OOP
> 
> As you can see, the column where the search query has a match is not
> highlighted completely. Only the 
> words that match up with the search string itself. Can this be done
> using
> MyFaces? I hope you can provide some ideas and suggestions as to what
> approach I can use or investigate. 
> -- 
> View this message in context:
> http://www.nabble.com/Search-Highlighting-tf4339753.html#a12362158
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
> 
 
 -- 
 View this message in context:
 http://www.nabble.com/Search-Highlighting-tf4339753.html#a12363190
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
>>> 
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Search-Highlighting-tf4339753.html#a12363589
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Search-Highlighting-tf4339753.html#a12363746
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Search-Highlighting-tf4339753.html#a12382200
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: TObago

2007-08-29 Thread Volker Weber
Hi Yazid,

which version of tobago?

this is UIPopup in trunk:

 69
 70   public boolean isRendered() {
 71 ValueBinding valueBinding = getValueBinding("rendered");
 72 if (valueBinding!= null) {
 73   return (Boolean) valueBinding.getValue(getFacesContext());
 74 } else {
 75   return isActivated() || isRedisplay();
 76 }
 77   }
 78

The only NPE in line 73 could be a autoboxing NPE when converting a
null returned by valueBinding to boolean return value.


Regards,
Volker

2007/8/29, yazid <[EMAIL PROTECTED]>:
>
> Hi all;
> I've a strange problem with tobago jsp;  happens sometimes and I can't
> reproduce
> -
> java.lang.NullPointerException
> at 
> org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
> at
> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
> at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
>   ..
> --
> I've 3 popup in the page; all off in page load time.
> Please help
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/TObago-tf4345120.html#a12379088
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


tomahawk radio button

2007-08-29 Thread Wolfgang

Hi,

how can I create a tomahawk radio button or a radio button group?
I can just find examples for the standard html tags, but if I try those 
examples

I always got nesting errors.

Cheers Wolfgang


Re: TObago

2007-08-29 Thread yazid

Hi Volker;
Two of  the popup have rendered="true" and the third have
rendered="#{ruleBrowserUI.deleteRuleMessage!=''}"; this method is a getter
of a String
public String getDeleteRuleMessage() {
return deleteRuleMessage;
}

The version of Tobago I'm using is 1.0.11
Regards;


yazid wrote:
> 
> Hi all;
> I've a strange problem with tobago jsp;  happens sometimes and I can't
> reproduce 
> -
> java.lang.NullPointerException
>   at
> org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
>   at
> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
>   at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
>   ..
> --
> I've 3 popup in the page; all off in page load time.
> Please help
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TObago-tf4345120.html#a12382919
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Tobago refresh

2007-08-29 Thread yazid

I'm using tobago for a big application.
All the tobago object are usefull; except the page refreshing. My
application is structure like  as Tobago demo (menu, dobody...); when I
click on any button or link in the page; the whole page is refreshed...
Is there any  to avoid this.
Regard;
-- 
View this message in context: 
http://www.nabble.com/Tobago-refresh-tf4346459.html#a12382957
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] Pie chart breaking with 7 items

2007-08-29 Thread Florian Reiser
Hello,

I want to draw a pie chart with a total of 15 data items in a series.
When I render the page the chart is not shown.

So I limited the number of data items in the chart and found out, that
the chart shows only with a maximum number of 5 data items.

So the following works:

public List> getYValues() {
  List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 
6.0});
  Vector> yValues = new Vector>();
  yValues.add(item);
  return yValues;
}

But this doesn't work:

the chart shows only with a maximum number of 5 data items.

So the following works:

public List> getYValues() {
  List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 
7.0});
  Vector> yValues = new Vector>();
  yValues.add(item);
  return yValues;
}

What can I do to draw all of my items?

With kind regards
Florian Reiser
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


Re: TObago

2007-08-29 Thread Volker Weber
Can you ensure that getDeleteRuleMessage() never returns null?
Only in this case the NPE can happen.

2007/8/29, yazid <[EMAIL PROTECTED]>:
>
> Hi Volker;
> Two of  the popup have rendered="true" and the third have
> rendered="#{ruleBrowserUI.deleteRuleMessage!=''}"; this method is a getter
> of a String
> public String getDeleteRuleMessage() {
> return deleteRuleMessage;
> }
>
> The version of Tobago I'm using is 1.0.11
> Regards;
>
>
> yazid wrote:
> >
> > Hi all;
> > I've a strange problem with tobago jsp;  happens sometimes and I can't
> > reproduce
> > -
> > java.lang.NullPointerException
> >   at
> > org.apache.myfaces.tobago.component.UIPopup.isRendered(UIPopup.java:73)
> >   at
> > org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:66)
> >   at
> > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:138)
> >   ..
> > --
> > I've 3 popup in the page; all off in page load time.
> > Please help
> >
> >
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/TObago-tf4345120.html#a12382919
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: HtmlResponseWriterImpl: HTML nesting warning on closing span

2007-08-29 Thread mraible

Adding the following to my log4j.xml fixed the problem:






Matt


mraible wrote:
> 
> I get a similar error in an application that has no customized components.
> 
> WARN - HtmlResponseWriterImpl.endElement(234) | HTML nesting warning on
> closing td: element input rendered by component : {Component-Path :
> [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
> /userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
> userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id:
> j_id5][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id13][Class:
> javax.faces.component.html.HtmlCommandButton,Id: cancel]} not explicitly
> closed
> 
> Since this is obviously an invalid warning (IDEA claims to markup errors),
> any idea how to suppress this message? Is it coming from Ajax4JSF or
> MyFaces? I tried adding the following to my log4j.xml, but no dice:
> 
>  name="org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl">
> 
> 
> 
> Thanks,
> 
> Matt
> 
> 
> mraible wrote:
>> 
>> I have a custom PanelGrid component and for some reason when I use
>> h:panelGroup, it spits out the following warning:
>> 
>> WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
>> warning on closing span: element input rendered by component :
>> {Component-Path : [Class:
>> org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /userForm.xhtml][Class:
>> javax.faces.component.html.HtmlForm,Id: userForm][Class:
>> javax.faces.component.html.HtmlPanelGrid,Id: j_id4][Class:
>> javax.faces.component.html.HtmlPanelGroup,Id: j_id5][Class:
>> javax.faces.component.html.HtmlCommandButton,Id: j_id7]} not explicitly
>> closed
>> WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
>> warning on closing span: element input rendered by component :
>> {Component-Path : [Class:
>> org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /userForm.xhtml][Class:
>> javax.faces.component.html.HtmlForm,Id: userForm][Class:
>> javax.faces.component.html.HtmlPanelGrid,Id: j_id4][Class:
>> javax.faces.component.html.HtmlPanelGroup,Id: j_id93][Class:
>> javax.faces.component.html.HtmlCommandButton,Id: j_id95]} not explicitly
>> closed
>> 
>> Any idea what's causing this? It looks like it's wrapping a span around
>> the buttons and thinks I don't have a closing panelGroup for some reason.
>> Here's what I have in my Facelets view:
>> 
>> 
>> 
>> 
>> > action="#{userForm.save}" styleClass="button"/>
>> 
>> > action="#{userForm.delete}"
>> styleClass="button" onclick="bCancel=true; return
>> confirmDelete('User')"/>
>> 
>> > action="#{userForm.cancel}" immediate="true"
>> styleClass="button" onclick="bCancel=true"/>
>> 
>> 
>> 
>> Here's my custom PanelGridRenderer:
>> 
>> http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/jsf/PanelGridRenderer.html
>> 
>> Thanks,
>> 
>> Matt
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HtmlResponseWriterImpl%3A-HTML-nesting-warning-on-closing-span-tf4338701.html#a12383564
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Tobago refresh

2007-08-29 Thread Volker Weber
Hi,

you can use partial rendering e.g.:


...

  

  



in this case only the box is updated on button click.

note: you may need to use absolute id in renderedPartially value, if
the button and the box are not inside the same namingContainer.


Regards,
Volker


2007/8/29, yazid <[EMAIL PROTECTED]>:
>
> I'm using tobago for a big application.
> All the tobago object are usefull; except the page refreshing. My
> application is structure like  as Tobago demo (menu, dobody...); when I
> click on any button or link in the page; the whole page is refreshed...
> Is there any  to avoid this.
> Regard;
> --
> View this message in context: 
> http://www.nabble.com/Tobago-refresh-tf4346459.html#a12382957
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: Tobago refresh

2007-08-29 Thread yazid

Hi Volker;
I've inserted the attribute in a link ; and point the attribute to container
box id; but I've an "error in page" when I click and nothing happens
Cheers


Volker Weber-5 wrote:
> 
> Hi,
> 
> you can use partial rendering e.g.:
> 
> 
> ...
> 
>   
> 
>   
> 
> 
> 
> in this case only the box is updated on button click.
> 
> note: you may need to use absolute id in renderedPartially value, if
> the button and the box are not inside the same namingContainer.
> 
> 
> Regards,
> Volker
> 
> 
> 2007/8/29, yazid <[EMAIL PROTECTED]>:
>>
>> I'm using tobago for a big application.
>> All the tobago object are usefull; except the page refreshing. My
>> application is structure like  as Tobago demo (menu, dobody...); when I
>> click on any button or link in the page; the whole page is refreshed...
>> Is there any  to avoid this.
>> Regard;
>> --
>> View this message in context:
>> http://www.nabble.com/Tobago-refresh-tf4346459.html#a12382957
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tobago-refresh-tf4346459.html#a12384249
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Avoid line break

2007-08-29 Thread Wolfgang

Hi,

is it possible to avoid a line break after e.g. value="#{home.datasetName}"/>e.g. myDatase?


Cheers,
Wolfgang


[Trinidad] tr:document

2007-08-29 Thread Darren McEntee
Hi Guys,

 

Quick Trinidad question here...

 

I am trying to use . This appears to work only in
conjunction with the  tag.

However, we also have an <%@ include file="xyz.jsp" %> tag, that is
incorporated in every page.

 

The   and <%@ include> tags do not appear to work well
together.

 

When we use the standard html/head/body values the included page does
work.

Is there any known issues with  component?

 

Thanks.
 
P Please consider the environment before printing this email
_ 
 
1. The information contained in this E-mail, including any files transmitted 
with it, is confidential and may be legally privileged. This E-mail is intended 
only for the personal attention of the stated addressee(s). Any access to this 
E-mail, including any files transmitted with it, by any other person is 
unauthorised. If you are not an addressee, you must not disclose, copy, 
circulate or in any other way use or rely on the information contained in this 
E-mail or any files transmitted with it. Such unauthorised use may be unlawful. 
If you have received this E-mail in error, please inform the sender immediately 
and delete it and all copies from your system. You may not forward this E-mail 
without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not 
necessarily represent the views of AMT-SYBEX. Internet communications are not 
secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the 
contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address 
The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address 
Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_


[Trinidad] Skinning tr:table lines on hover

2007-08-29 Thread Francisco Passos
Hello all!

I'm wondering if it is possible to change the css style for a tr:table line
when the mouse is hovering.
And if so, can one do it directly on the skin?

Thank you,

Francisco Passos


Re: [Trinidad] tr:document

2007-08-29 Thread Matthias Wessendorf
Hi,

the renderer for the  component uses internally the renderers for:
-
-
-

using these instead, should work as well.

See [1] for more on those components.

-M

[1] http://myfaces.apache.org/trinidad/trinidad-api/tagdoc.html

On 8/29/07, Darren McEntee <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Hi Guys,
>
>
>
> Quick Trinidad question here…
>
>
>
> I am trying to use . This appears to work only in
> conjunction with the  tag.
>
> However, we also have an <%@ include file="xyz.jsp" %> tag, that is
> incorporated in every page.
>
>
>
> The   and <%@ include> tags do not appear to work well
> together.
>
>
>
> When we use the standard html/head/body values the included page does work.
>
> Is there any known issues with  component?
>
>
>
> Thanks.
>
> P Please consider the environment before printing this email
>  _
>
> 1. The information contained in this E-mail, including any files transmitted
> with it, is confidential and may be legally privileged. This E-mail is
> intended only for the personal attention of the stated addressee(s). Any
> access to this E-mail, including any files transmitted with it, by any other
> person is unauthorised. If you are not an addressee, you must not disclose,
> copy, circulate or in any other way use or rely on the information contained
> in this E-mail or any files transmitted with it. Such unauthorised use may
> be unlawful. If you have received this E-mail in error, please inform the
> sender immediately and delete it and all copies from your system. You may
> not forward this E-mail without the permission of the sender.
>
> 2. The views expressed in this E-mail are those of the author, and do not
> necessarily represent the views of AMT-SYBEX. Internet communications are
> not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for
> the contents of this message nor for any damage caused by viruses.
>
>  AMT-SYBEX Limited is a UK company, registration number GB03036807 at
> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
>  AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at
> address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
> _
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


Re: AW: AW: AW: AW: Search Highlighting

2007-08-29 Thread Steffen

Hi,

you could use some javascript highlighter like this:

http://www.nsftools.com/misc/SearchAndHighlight.htm

Bye,

Steffen Hankiewicz

Or I have no choice, but to code my own dataTable renderer given my
requirements below?
  




expandPath problem

2007-08-29 Thread Sreemanth

I have treeData in session scope.
When ever a new treenode is added i am rebuilding the tree.
I want to remember the expanded nodes of tree. For this what i am doing is i
am storing the expanded node id' s in separate list. While sending the data
to browser that is in the getTreeModel() method i am 

rootNode.getTreeState().expandPath(s)

This s[] is string array .
This s is building based on the expandedNodesList.
if expandedNodes list contains {1,2 ,3} i.e my tree having three leaf nodes
with id 1 , 2, 3

s[] contains  i am generating is {"0:0","0:1", "0:2"}

That is all nodes are expanded.


when a new node is added to the tree This concept is not working
(remembering nodes state).

Can any one give how to remember the expanded nodes with in a session
Any help will be Great.


-- 
View this message in context: 
http://www.nabble.com/expandPath-problem-tf4347321.html#a12385634
Sent from the MyFaces - Users mailing list archive at Nabble.com.



How to register treeModel listener to tree2 component

2007-08-29 Thread Sreemanth

can one help me on how to register treeModelListener to tree2 component. 
Is it possible?
-- 
View this message in context: 
http://www.nabble.com/How-to-register-treeModel-listener-to-tree2-component-tf4347372.html#a12385771
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Avoid line break

2007-08-29 Thread Florian Reiser
Hello Wolfgang,

if your using trinidad, then use:


This will align the containing elements horizontally.
But I think it will wrap when it gets too large.

With kind regards
Florian Reiser

 Original-Nachricht 
> Datum: Wed, 29 Aug 2007 11:21:19 +0200
> Von: Wolfgang <[EMAIL PROTECTED]>
> An: users@myfaces.apache.org
> Betreff: Avoid line break

> Hi,
> 
> is it possible to avoid a line break after e.g.  value="#{home.datasetName}"/>e.g. myDatase?
> 
> Cheers,
> Wolfgang

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


trinidad outputFormat and f:param support

2007-08-29 Thread Paul Mander

I'm having trouble getting variable substitution to work with any of the
trinidad tags. Using standard faces I can do the following to substitute
parts of a message





However, I cannot get any of the trinidad output tags to work with the
f:param tag. The reason why I want to use a trinidad tag is so that I can
skin the text correctly.

-- 
View this message in context: 
http://www.nabble.com/trinidad-outputFormat-and-f%3Aparam-support-tf4347417.html#a12385896
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Tobago refresh

2007-08-29 Thread Volker Weber
What is the generated value of the onclick attribute of the link?

Can you turn on javascript debugging to see whats the problem at the
"error in page"?

Maybe try firefox to debug the javascript.



2007/8/29, yazid <[EMAIL PROTECTED]>:
>
> Hi Volker;
> I've inserted the attribute in a link ; and point the attribute to container
> box id; but I've an "error in page" when I click and nothing happens
> Cheers
>
>
> Volker Weber-5 wrote:
> >
> > Hi,
> >
> > you can use partial rendering e.g.:
> >
> > 
> > ...
> >
> >   
> > 
> >   
> >
> > 
> >
> > in this case only the box is updated on button click.
> >
> > note: you may need to use absolute id in renderedPartially value, if
> > the button and the box are not inside the same namingContainer.
> >
> >
> > Regards,
> > Volker
> >
> >
> > 2007/8/29, yazid <[EMAIL PROTECTED]>:
> >>
> >> I'm using tobago for a big application.
> >> All the tobago object are usefull; except the page refreshing. My
> >> application is structure like  as Tobago demo (menu, dobody...); when I
> >> click on any button or link in the page; the whole page is refreshed...
> >> Is there any  to avoid this.
> >> Regard;
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Tobago-refresh-tf4346459.html#a12382957
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Tobago-refresh-tf4346459.html#a12384249
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


[TRINIDAD] Proposal - fieldset/legend component

2007-08-29 Thread Danny Robinson
Would there be interest in a skinnable/ajaxified component that rendered
output using html fieldset/legend.  We'd like to include this in our
applications and I'm keen to keep our users away from introducing other
component libraries just for the odd extra component.

I'm struggling to think of a nice sounding tag name, other than
tr:panelBoxAndLegend but it could look something like:


...


Thanks,

Danny

-- 
Chordiant Software Inc.
www.chordiant.com


EL problem

2007-08-29 Thread Raphael Parree
Hi,

This problem might have been addressed already within the mailing list. I
went trough the archives but was unable to find anything (now is the search
string "EL problem" not the best search string)

I'm in the process of upgrading to Tomcat 6 (6.0.14) and MyFaces 1.2.0. I
have a major problem with the EL. My JSF pages are using EL but know they
all resolve to empty strings (all EL on JSF pages, on JSPs they work).

For example the following fails:

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>


  


...
  Test:${pageContext.request.contextPath}, ${param.foo}  
 
  Test:${pageContext.request.contextPath}, ${param.foo}  
...



On both locations the result of the EL is empty.

Is this a known bug, does it have to do with libraries that i have available
in the lib?

Any help is welcome,

Kind regards,

Raphael


custom outputText

2007-08-29 Thread kewldude


Okay, I have no experience whatsoever in creating a custom component, but I
just finished reading this 
http://www.jsftutorials.net/components/step1.html guide  on creating custom
components. 

What I want to achieve is to customize the outputText component wherein any
value of the outputText component will be compared to a string that is a
value of a new attribute called matchString. Lets say the value in your
outputText is "Mary had a little lamb." and the value of the matchString
attribute is "lamb" (or it can be value binding also), what I would like to
do is to change the color of the word "lamb" found in the "Mary had a little
lamb" kinda value of the outputText (so when it is displayed the lamb word
is hihglighted). 

My question is where do i place this code all together? I've read about
having a Tag Class and a Component class and Im still trying to digest the
idea. Where do you put the code(what method of the class) that takes care of
outputting the value of outputText? My idea is to get the value of the value
attribute then do some match and compare with the matchString vlaue, maybe
via regex, then specifically write the html that will produce the different
color for that match...I hope someone out there is generous enough to
produce just a pseudocode that could guide me in creating this custom
component...thanks...
-- 
View this message in context: 
http://www.nabble.com/custom-outputText-tf4348406.html#a12389254
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: custom outputText

2007-08-29 Thread Mike Kienenberger
Yes, I think you're on the right track.  You don't need to create a
custom OutputText component; you just need to create a custom
OutputText renderer.

If you're using facelets, you can probably do this by using a generic
attribute, so you really only need to create a new renderer.

If you're using jsp, you'll have to subclass OutputText and the
OutputTextTag to store the matchingValue attribute on your component,
and in that case, you might as well use a concrete attribute.   You'll
also want to probably do a saveState/restoreState on that attribute as
well so it's preserved.   I don't remember if generic attributes get
saveState/restoreState, so you might even want to do this with
facelets.

Once the component.getMatchingValue() method is available, then you
should simply be able to make use of it from your custom
OutputTextRenderer. To install your renderer, I think you simply
need to register it in a faces-config.xml file with a matching
component.

I'm not much help on the details as I haven't tried creating a custom
renderer recently.   I think it's all pretty straight-forward, though,
from what I remember.   You can always look at the MyFaces & Tomahawk
code as examples.

On 8/29/07, kewldude <[EMAIL PROTECTED]> wrote:
>
>
> Okay, I have no experience whatsoever in creating a custom component, but I
> just finished reading this
> http://www.jsftutorials.net/components/step1.html guide  on creating custom
> components.
>
> What I want to achieve is to customize the outputText component wherein any
> value of the outputText component will be compared to a string that is a
> value of a new attribute called matchString. Lets say the value in your
> outputText is "Mary had a little lamb." and the value of the matchString
> attribute is "lamb" (or it can be value binding also), what I would like to
> do is to change the color of the word "lamb" found in the "Mary had a little
> lamb" kinda value of the outputText (so when it is displayed the lamb word
> is hihglighted).
>
> My question is where do i place this code all together? I've read about
> having a Tag Class and a Component class and Im still trying to digest the
> idea. Where do you put the code(what method of the class) that takes care of
> outputting the value of outputText? My idea is to get the value of the value
> attribute then do some match and compare with the matchString vlaue, maybe
> via regex, then specifically write the html that will produce the different
> color for that match...I hope someone out there is generous enough to
> produce just a pseudocode that could guide me in creating this custom
> component...thanks...
> --
> View this message in context: 
> http://www.nabble.com/custom-outputText-tf4348406.html#a12389254
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: custom outputText

2007-08-29 Thread Mike Kienenberger
One other idea:   Consider outputting the highlighted string in a
span, and having a highlightedStyleClass (and/or highlightedStyle)
attribute that you'd add to the span.   That should allow a great deal
of flexibility to what can be done with this component.

On 8/29/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Since the most likely place for an error to occur is dealing with
> creating and populating the attribute on the component, I'd recommend
> writing the renderer first, and hardcoding the value for the
> matchingValue at first.  For example, in your custom renderer,
>
> public String getMatchingValue(UIComponent component) { return "lamb"; }
>
> Once you have the custom renderer working, then it's just a matter of
> doing the busywork and debugging to provide the matching value to the
> renderer by replacing "lamb" with "component.getMatchingValue()"
>
> On 8/29/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > Yes, I think you're on the right track.  You don't need to create a
> > custom OutputText component; you just need to create a custom
> > OutputText renderer.
> >
> > If you're using facelets, you can probably do this by using a generic
> > attribute, so you really only need to create a new renderer.
> >
> > If you're using jsp, you'll have to subclass OutputText and the
> > OutputTextTag to store the matchingValue attribute on your component,
> > and in that case, you might as well use a concrete attribute.   You'll
> > also want to probably do a saveState/restoreState on that attribute as
> > well so it's preserved.   I don't remember if generic attributes get
> > saveState/restoreState, so you might even want to do this with
> > facelets.
> >
> > Once the component.getMatchingValue() method is available, then you
> > should simply be able to make use of it from your custom
> > OutputTextRenderer. To install your renderer, I think you simply
> > need to register it in a faces-config.xml file with a matching
> > component.
> >
> > I'm not much help on the details as I haven't tried creating a custom
> > renderer recently.   I think it's all pretty straight-forward, though,
> > from what I remember.   You can always look at the MyFaces & Tomahawk
> > code as examples.
> >
> > On 8/29/07, kewldude <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Okay, I have no experience whatsoever in creating a custom component, but 
> > > I
> > > just finished reading this
> > > http://www.jsftutorials.net/components/step1.html guide  on creating 
> > > custom
> > > components.
> > >
> > > What I want to achieve is to customize the outputText component wherein 
> > > any
> > > value of the outputText component will be compared to a string that is a
> > > value of a new attribute called matchString. Lets say the value in your
> > > outputText is "Mary had a little lamb." and the value of the matchString
> > > attribute is "lamb" (or it can be value binding also), what I would like 
> > > to
> > > do is to change the color of the word "lamb" found in the "Mary had a 
> > > little
> > > lamb" kinda value of the outputText (so when it is displayed the lamb word
> > > is hihglighted).
> > >
> > > My question is where do i place this code all together? I've read about
> > > having a Tag Class and a Component class and Im still trying to digest the
> > > idea. Where do you put the code(what method of the class) that takes care 
> > > of
> > > outputting the value of outputText? My idea is to get the value of the 
> > > value
> > > attribute then do some match and compare with the matchString vlaue, maybe
> > > via regex, then specifically write the html that will produce the 
> > > different
> > > color for that match...I hope someone out there is generous enough to
> > > produce just a pseudocode that could guide me in creating this custom
> > > component...thanks...
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/custom-outputText-tf4348406.html#a12389254
> > > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> > >
> > >
> >
>


Re: tree2 row styles

2007-08-29 Thread Andrew Robinson
just put "display: block;" in the style of the element you render
inside each node

On 8/28/07, Dave <[EMAIL PROTECTED]> wrote:
> How to apply style class to the tree2 node rows?  Node rows, I mean that all
> rows have the same width from left to right of the tree2 display area.
>
> ABC-
> ---EFG--
> WXY
>
> Thanks,
> Dave
>
>  
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.
>
>


Re: [Trinidad] ppr: partialTriggers doesn't work if there are validation messages?

2007-08-29 Thread Andrew Robinson
Yes, I am just looking to be able to re-render items to reflect
server-side messages. This could be actual message and label
components, or other components (like for example, setting the style
class of an input text that has a message). So it really should not be
only message components, but all components should have the ability to
re-render if there are messages.

I am not using client side validation (I have it turned off) and am
planning on using the Hibernate validation framework with the Seam
validate and validateAll tags. I am doing this so that I can
centralize the validation of a model class to one location (so if 5
views all reference the same class, I only need to write the
validation code once).

Thank you,
Andrew

On 8/29/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> On 8/28/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> > If I understand it correctly, your concern here is basically that
> > we're not displaying validation errors correctly after an
> > event is submitted?
> >
> > (We do, or at least should, re-display tr:messages during PPR, but
> > not the messages next to the individual components.  If your
> > page doesn't have a tr:messages on it, I'd recommend adding
> > one.)
> >
> > If that's the issue, then we should tackle that, which is a
> > clear functionality gap that doesn't require architectural
> > changes, and shouldn't require any end developer code -
> > those messages should just get displayed on the client.
>
> ... and so there's no confusion, I mean that those
> *server-side* messages should get just displayed on
> the client.  As long as we have inline client-side validation
> in general, our Javascript is easily smart enough to
> deal with inserting error messages on the client,
> so we'd just need to update our rendering code to include
> a Javascript payload of all the per-component FacesMessages.
>
> -- Adam
>
>
> >
> > -- Adam
> >
> >
> > On 8/28/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > > Yes, I fully understand the JSF lifecycle, but that doesn't address my
> > > problem. The problem is that the partialTriggers functionality of the
> > > UIXCommand components depends on the broadcasting of the ActionEvent. This
> > > event's phase cannot be changed without drastically affecting the
> > > application.
> > >
> > > The question is this:
> > >
> > > How can an web application developer re-render a component as a result of 
> > > a
> > > validation or conversion error during a partial submission of a UIXCommand
> > > component without writing a custom component or custom renderer?
> > >
> > > -Andrew
> > >
> > >
> > > On 8/28/07, Gary VanMatre <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > > >From: "Andrew Robinson" <[EMAIL PROTECTED]>
> > > > >
> > > > > It is a simple case of showing the effects of the failed validation.
> > > > > Take the following use case as an example:
> > > > >
> > > > > User clicks on a register button to create a user account for a web
> > > site.
> > > > >
> > > > > The user enters a username that is already in use and hits the
> > > > > register/save button
> > > > >
> > > > > A unique validator on the username field fails its validation and adds
> > > > > a validation message to the faces context using the component. All
> > > > > message components that are for this component as well as any messages
> > > > > components that are not global have to be re-rendered to show the user
> > > > > the validation error.
> > > > >
> > > > > This is just one use case to illustrate the fact that at the very
> > > > > least, message and messages components need to be re-rendered when
> > > > > validation errors and conversion errors are thrown on the se rver. 
> > > > > This
> > > > > doesn't include any components that need to be re-rendered as a
> > > > > result. For example, the panelLabelAndMessage component renders an
> > > > > error icon in the label when there is an error message for the input
> > > > > component. It is also common for people to style components different
> > > > > (red border for example) when their validation fails.
> > > > >
> > > > > The way Trinidad components are written, there is no way out of the
> > > > > box to accomplish this. The commandLink and commandButton will only
> > > > > run the partial trigger functionality if the action event is
> > > > > broadcast. Therefore, there is a large gap in the PPR functionality to
> > > > > allow code to trigger rendering when the renderResponse method is
> > > > > called before the broadcasting of the event.
> > > > >
> > > >
> > > > My take on it is that Trinidad uses the JSF lifecycle to achieve PPR.
> > > > In the JSF Lifecycle, the UIViewRoot processes queued events for
> > > > each phase by calling the broadcast on the source component for
> > > > all phases except render  response.  The components queue events
> > > > in the decode (apply request values) and can specify the phase
> > > > they should be invoked in.  I believe the default phaseId for the
> > > 

Log each call to an JSF action method

2007-08-29 Thread Svilen Ivanov
For audit and debugging purposes I want to log the name of action
method that is being called. Is it possible to hook somewhere in JSF
lifecycle? Or should I use Aspect oriented approach?

Any ideas are appreciated?

-- 
Svilen Ivanov
http://svilen-online.blogspot.com

There is no dark side of the moon really.
Matter of fact it's all dark.


Re: Which components to use? - Seam?!

2007-08-29 Thread Andrew Robinson
Seam is an extremely helpful library, especially if you are going to
be using hibernate or EJB3 persistence. Its conversation scope is very
robust as well as its navigation handling extensions. Its security is
also fairly easy to work with (once you have it configured).

The only thing you may notice with Seam is that it is very integrated
into the JSF lifecycle and if you start doing some advanced coding
with your application you may run into areas where you have to
consider how you may affect Seam's functionality.

-Andrew

On 8/29/07, x y <[EMAIL PROTECTED]> wrote:
>
> Anybody with JSF/Seam experience to share your thoughts? Thank you in
> advance.
>
> - Original Message 
> From: x y <[EMAIL PROTECTED]>
> To: MyFaces Discussion 
> Sent: Wednesday, August 29, 2007 9:08:47 AM
> Subject: Re: Which components to use?
>
>
> I am so sorry for the late reply. Thank you so much. Your suggestion will be
> of great help.
>
> Cheers!
>
> - Original Message 
> From: David Delbecq <[EMAIL PROTECTED]>
> To: MyFaces Discussion 
> Sent: Wednesday, August 22, 2007 11:19:02 PM
> Subject: Re: Which components to use?
>
> Situation here:
>
> using here: Facelets + Myfaces + Tomahawk + Sandbox + Ajax4JSF +
> RichFaces+ Custom components. Only limit we found is that one of our
> really big forms (around 200+ components in it, with lots of Javascript
> enabled components like t:calendar and lots of ui:include)take around 2
> seconds to be first time generated to user. We still have to investigate
> whever it comes from JSF tree or from the database backend which has a
> few tables to explore :)
>
> We are probably not the best example, as we use it for a reasonable
> traffic intranet. But for component compatibility we did not notice
> things that make them unusable. Of course each component has it's
> limitations, but they are not that hard to cope with.
>
> x y a écrit :
> > Hello,
> >
> > I know this kind of question is sometimes annoying, but with so much
> > components being created and enhancements on the existing ones, it is
> > hard to make a decision, in a formal process, for the components to
> > start an professional enteprise application.
> >
> > We are using Spring, then I think it could be a clue in which
> > directions we could go. I am thinking in MyFaces with its variations:
> > Trinidad, Tomahawk, etc. Another alternative would be to use Seam
> > integrating with Myfaces and Spring, but I am not sure about how it
> > has been working in production.
> >
> > The main aspect here, is that I would not like to start with a
> > componet, and suddenly find that there are so many bugs to be
> > corrected or there are limitation to integrate with other components
> > to provide more features.
> >
> > You people, that have been working with those components in production
> > (or at least close to it), would you mind to share you thought?
> >
> > Thank you very much.
> >
> >
> 
> > Looking for a deal? Find great prices on flights and hotels
> >
> 
> > with Yahoo! FareChase.
>
>
>  
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now (it's updated for today's economy) at Yahoo!
> Games.
>
>  
> Got a little couch potato?
>  Check out fun summer activities for kids.


[Trinida] about managing table selection side-effects

2007-08-29 Thread Renzo Tomaselli
Hi, I'm looking for the least-dirty way to manage row selection 
client-side effects in tr:table.
E.i. updating a counter along multiple selections, enabling/disabling 
buttons upon selecting certain rows, and things like that.
I already performed similar actions by attaching js snippets to the 
selection column, I just wonder about any cleaner way.
AFAIK the selection column is totally hidden, but maybe there is a hook 
somewhere.




Re: [Trinidad] Skinning tr:table lines on hover

2007-08-29 Thread Andrew Robinson
It doesn't look like the table renderer adds any style classes onto
the TR elements. You could use CSS to do it. Have you tried:

af|table:content > TR:hover {
  background-color: yellow;
}

This should theoretically work in IE7 and the "good" browsers

On 8/29/07, Francisco Passos <[EMAIL PROTECTED]> wrote:
> Hello all!
>
> I'm wondering if it is possible to change the css style for a tr:table line
> when the mouse is hovering.
> And if so, can one do it directly on the skin?
>
> Thank you,
>
> Francisco Passos
>


Re: custom outputText

2007-08-29 Thread Mike Kienenberger
Since the most likely place for an error to occur is dealing with
creating and populating the attribute on the component, I'd recommend
writing the renderer first, and hardcoding the value for the
matchingValue at first.  For example, in your custom renderer,

public String getMatchingValue(UIComponent component) { return "lamb"; }

Once you have the custom renderer working, then it's just a matter of
doing the busywork and debugging to provide the matching value to the
renderer by replacing "lamb" with "component.getMatchingValue()"

On 8/29/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Yes, I think you're on the right track.  You don't need to create a
> custom OutputText component; you just need to create a custom
> OutputText renderer.
>
> If you're using facelets, you can probably do this by using a generic
> attribute, so you really only need to create a new renderer.
>
> If you're using jsp, you'll have to subclass OutputText and the
> OutputTextTag to store the matchingValue attribute on your component,
> and in that case, you might as well use a concrete attribute.   You'll
> also want to probably do a saveState/restoreState on that attribute as
> well so it's preserved.   I don't remember if generic attributes get
> saveState/restoreState, so you might even want to do this with
> facelets.
>
> Once the component.getMatchingValue() method is available, then you
> should simply be able to make use of it from your custom
> OutputTextRenderer. To install your renderer, I think you simply
> need to register it in a faces-config.xml file with a matching
> component.
>
> I'm not much help on the details as I haven't tried creating a custom
> renderer recently.   I think it's all pretty straight-forward, though,
> from what I remember.   You can always look at the MyFaces & Tomahawk
> code as examples.
>
> On 8/29/07, kewldude <[EMAIL PROTECTED]> wrote:
> >
> >
> > Okay, I have no experience whatsoever in creating a custom component, but I
> > just finished reading this
> > http://www.jsftutorials.net/components/step1.html guide  on creating custom
> > components.
> >
> > What I want to achieve is to customize the outputText component wherein any
> > value of the outputText component will be compared to a string that is a
> > value of a new attribute called matchString. Lets say the value in your
> > outputText is "Mary had a little lamb." and the value of the matchString
> > attribute is "lamb" (or it can be value binding also), what I would like to
> > do is to change the color of the word "lamb" found in the "Mary had a little
> > lamb" kinda value of the outputText (so when it is displayed the lamb word
> > is hihglighted).
> >
> > My question is where do i place this code all together? I've read about
> > having a Tag Class and a Component class and Im still trying to digest the
> > idea. Where do you put the code(what method of the class) that takes care of
> > outputting the value of outputText? My idea is to get the value of the value
> > attribute then do some match and compare with the matchString vlaue, maybe
> > via regex, then specifically write the html that will produce the different
> > color for that match...I hope someone out there is generous enough to
> > produce just a pseudocode that could guide me in creating this custom
> > component...thanks...
> > --
> > View this message in context: 
> > http://www.nabble.com/custom-outputText-tf4348406.html#a12389254
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>


Re: Avoid line break

2007-08-29 Thread Andrew Robinson
I believe  renders as a TABLE
with each component in on row, so it will never wrap.

 renders as a SPAN so, it would wrap.

On 8/29/07, Florian Reiser <[EMAIL PROTECTED]> wrote:
> Hello Wolfgang,
>
> if your using trinidad, then use:
>
> 
> This will align the containing elements horizontally.
> But I think it will wrap when it gets too large.
>
> With kind regards
> Florian Reiser
>
>  Original-Nachricht 
> > Datum: Wed, 29 Aug 2007 11:21:19 +0200
> > Von: Wolfgang <[EMAIL PROTECTED]>
> > An: users@myfaces.apache.org
> > Betreff: Avoid line break
>
> > Hi,
> >
> > is it possible to avoid a line break after e.g.  > value="#{home.datasetName}"/>e.g. myDatase?
> >
> > Cheers,
> > Wolfgang
>
> --
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>


Re: Log each call to an JSF action method

2007-08-29 Thread Andrew Robinson
If you can wait until after the action has been called, you can use
the ActionListener of the JSF Application or the NavigationHandler as
both have access to the action EL expression. BTW - the myfaces
NavigationHandlerImpl already logs each call at debug level.

-Andrew

On 8/29/07, Svilen Ivanov <[EMAIL PROTECTED]> wrote:
> For audit and debugging purposes I want to log the name of action
> method that is being called. Is it possible to hook somewhere in JSF
> lifecycle? Or should I use Aspect oriented approach?
>
> Any ideas are appreciated?
>
> --
> Svilen Ivanov
> http://svilen-online.blogspot.com
>
> There is no dark side of the moon really.
> Matter of fact it's all dark.
>


Re: [Trinidad] ppr: partialTriggers doesn't work if there are validation messages?

2007-08-29 Thread Andrew Robinson
I know this would be a major architectural change, but what if
components queued a partial trigger event in each of the listeners?
That way each listener would have the choice on the phase ID of the
event and the ability to act on it if desired.

Pseudo code using UIXCommand (component using ActionEvent as the
trigger) as an example:

queueEvent:
  if event is an ActionEvent:
loop through all components listening to this one
  queue new PartialTriggerEvent
end loop
  end if

The event could look something like:

public class PartialTriggerEvent extends FacesEvent {
  private FacesEvent cause;
  public PartialTriggerEvent(UIComponent component, FacesEvent cause) {
super(component);
this.cause = cause;
this.setPhaseId(cause.getPhaseId());
  }
  ... etc.
}

This could be in addition to the current code as not to break backward
compatibility.

Then some additional attribute could be used on components that
implement partialTriggers functionality like "partialTriggerPhase"
defaulting to null.

if not null, the component in the queueEvent method could set the
phase ID of the event. Then the component can add itself as a
partialTarget during the broadcasting of that event.

I know I am proposing a very large change, but it would provide a lot
more flexibility at the listener end of partial triggering to control
when a component should be re-rendered.

Just something to chew on

If no one likes this idea, another idea is to have UIXEditableValue
execute trigger logic in the validate function if the component is not
valid. Then conversion/validation/message-dependent components could
partially trigger off of the editable component instead of the
UIXCommand component.

-Andrew


On 8/29/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> Yes, I am just looking to be able to re-render items to reflect
> server-side messages. This could be actual message and label
> components, or other components (like for example, setting the style
> class of an input text that has a message). So it really should not be
> only message components, but all components should have the ability to
> re-render if there are messages.
>
> I am not using client side validation (I have it turned off) and am
> planning on using the Hibernate validation framework with the Seam
> validate and validateAll tags. I am doing this so that I can
> centralize the validation of a model class to one location (so if 5
> views all reference the same class, I only need to write the
> validation code once).
>
> Thank you,
> Andrew
>
> On 8/29/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> > On 8/28/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> > > If I understand it correctly, your concern here is basically that
> > > we're not displaying validation errors correctly after an
> > > event is submitted?
> > >
> > > (We do, or at least should, re-display tr:messages during PPR, but
> > > not the messages next to the individual components.  If your
> > > page doesn't have a tr:messages on it, I'd recommend adding
> > > one.)
> > >
> > > If that's the issue, then we should tackle that, which is a
> > > clear functionality gap that doesn't require architectural
> > > changes, and shouldn't require any end developer code -
> > > those messages should just get displayed on the client.
> >
> > ... and so there's no confusion, I mean that those
> > *server-side* messages should get just displayed on
> > the client.  As long as we have inline client-side validation
> > in general, our Javascript is easily smart enough to
> > deal with inserting error messages on the client,
> > so we'd just need to update our rendering code to include
> > a Javascript payload of all the per-component FacesMessages.
> >
> > -- Adam


[Trinidad] JSF 1.2/Facelets and el expression for f:attribute name

2007-08-29 Thread Justin Mckay
I am currently migrating our ADF project to Trinidad 1.2.1 and have a
question about the f:attribute.  In our project we were using el expressions
for the name value in our f:attribute.  This does not seem to be the same
for the Trinidad 1.2.1 /MyFaces 1.2/Facelets 1.1.6 combo.  If I use a el
expression for the name the attribute is never set.

 

For Example:

 





  



 

.. In someBean

 

public void indexClicked(final ActionEvent event) {

  String index = (String)
event.getComponent().getAttributes().get(getIndex());

  .

}

 

In this case index is null because it never gets added to the attributes.
We are basically doing this to try and store constants in Java.  That way if
they need to be changed it is just in one place.  Should this work, or was
it just a fluke that it worked in ADF?

 

Justin



Re: trinidad outputFormat and f:param support

2007-08-29 Thread Danny Robinson
Paul,

I'm confused as to what that would give you over using something like:

tr:outputFormatted value="Hello #{propsFile.world}"

Can you provide a more complex example.

Danny

On 8/29/07, Paul Mander <[EMAIL PROTECTED]> wrote:
>
>
> I'm having trouble getting variable substitution to work with any of the
> trinidad tags. Using standard faces I can do the following to substitute
> parts of a message
>
> 
> 
> 
>
> However, I cannot get any of the trinidad output tags to work with the
> f:param tag. The reason why I want to use a trinidad tag is so that I can
> skin the text correctly.
>
> --
> View this message in context:
> http://www.nabble.com/trinidad-outputFormat-and-f%3Aparam-support-tf4347417.html#a12385896
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Chordiant Software Inc.
www.chordiant.com


Re: Avoid line break

2007-08-29 Thread Bruno Aranda
Just nest them in the standard h:panelGroup (or use one of the more
solutions using Trinidad). Is, by any chance, your inputText nested in
a h:panelGrid (a panelGrid renders a table with the value of its
"columns" attribute as the number of cells per row).

Hope this helps,

Bruno


Re: tomahawk radio button

2007-08-29 Thread Bruno Aranda
What kind of errors? Can you show a snippet of your code?

Cheers,

Bruno

On 29/08/2007, Wolfgang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> how can I create a tomahawk radio button or a radio button group?
> I can just find examples for the standard html tags, but if I try those
> examples
> I always got nesting errors.
>
> Cheers Wolfgang
>


Re: JSF Newbie needs help with selectOneMenu and valueChangeListener

2007-08-29 Thread Bruno Aranda
Hi, do you have an h:message/s component in your page to see if there
is a validation error. Moreover, maybe the great information about the
immediate attribute in this page can help you:

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

Cheers,

Bruno

On 28/08/2007, tfuda <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm using MyFaces 1.1. I'm trying to update controls on a page when the user
> changes the selection in a dropdown list. I can't quite seem to get it to
> work as expected. Changes in the dropdown list do not seem to be firing the
> value change event. When my dropdown list is populated with simple strings,
> things seem to work just fine. I tried to simplify the problem by reducing
> it down to just a single control on the page. For example, I have the
> following JSP:
>
>  immediate="true" valueChangeListener="#{TestBean.processColorChange}"
> onchange="this.form.submit();">
>  />
> 
>
> My TestBean is a session scoped bean and the code is straightforward:
>
> import java.util.Date;
>
> import javax.faces.application.FacesMessage;
> import javax.faces.component.UIComponent;
> import javax.faces.component.UIInput;
> import javax.faces.context.FacesContext;
> import javax.faces.event.ValueChangeEvent;
> import javax.faces.model.SelectItem;
> import javax.faces.validator.ValidatorException;
>
> public class TestBean {
>
> public TestBean() { }
>
> private String colorValue = "Red";
>
> public String getColorValue() {
> return colorValue;
> }
>
> public void setColorValue(String value) {
> this.colorValue = value;
> }
>
> private SelectItem[] colorItems = null;
>
> public SelectItem[] getColorItems() {
> if (colorItems == null) {
> colorItems = new SelectItem[3];
> colorItems[0] = new SelectItem("Red");
> colorItems[1] = new SelectItem("Green");
> colorItems[2] = new SelectItem("Blue");
> }
> return colorItems;
> }
>
> public void setColorItems(SelectItem[] items) {
> this.colorItems = items;
> }
>
> public void processColorChange(ValueChangeEvent evt) {
> System.out.println("Event source: " + ((UIInput)
> evt.getSource()).getId());
> System.out.println("Old value: " + evt.getOldValue());
> System.out.println("New Value: " + evt.getNewValue());
> }
> }
>
> In this case, everything seems to work fine. The processColorChange method
> is invoked when the dropdown list is changed, and the TestBean.setColorValue
> method is invoked to update the model with the new value.
>
> Now comes the problem. I change my JSP as follows:
>
>  immediate="true" valueChangeListener="#{TestBean.processEmployeeChange}"
> onchange="this.form.submit();" converter="EmployeeConverter"
> validator="#{TestBean.validateEmployee}">
>  value="#{TestBean.employeeItems}" />
> 
>
> Note, that I am now using a converter and a validator. This is because my
> dropdown list is being populated with object instances of the Employee
> class, which looks like the following:
>
> public class Employee implements Serializable {
>
>   String name=null;
>   Integer id=null;
>   Date dateOfHire=null;
>
>   /** Creates a new instance of Employee */
>   public Employee() {
>   }
>
>   public Employee(String _name, Integer _id, Date _dateOfHire) {
> this.name=_name;
> this.id=_id;
> this.dateOfHire=_dateOfHire;
>   }
>
>   public String getName() {
> return name;
>   }
>
>   public void setName(String _name) {
> this.name=_name;
>   }
>
>   public Integer getId() {
> return id;
>   }
>
>   public void setId(Integer _id) {
> this.id=_id;
>   }
>
>   public Date getDateOfHire() {
> return dateOfHire;
>   }
>
>   public void setDateOfHire(Date _dateOfHire) {
> this.dateOfHire=_dateOfHire;
>   }
>
>   public String toString() {
> return new String(name + ";" + id + ";" + dateOfHire);
>   }
> }
>
>
> I have written a Converter that looks like the following:
>
> import java.util.Date;
> import javax.faces.component.UIComponent;
> import javax.faces.context.FacesContext;
> import javax.faces.convert.Converter;
>
> public class EmployeeConverter implements Converter {
>
>   /** Creates a new instance of EmployeeConverter */
>   public EmployeeConverter() {
>   }
>
>   public String getAsString(FacesContext context, UIComponent component,
> Object value) {
> String empString = null;
> if (value != null) {
> empString = value.toString();
> }
> return empString;
>   }
>
>   public Object getAsObject(FacesContext context, UIComponent component,
> String value) {
> Employee empObject = null;
> String[] fields = value.split(";");
> empObject = new Employee();
> empObject.set

Re: trinidad outputFormat and f:param support

2007-08-29 Thread Andrew Robinson
Well, that is not localizable

I think the use case that he means is more like:





messages.properties
str = Test {0} param

On 8/29/07, Danny Robinson <[EMAIL PROTECTED]> wrote:
> Paul,
>
> I'm confused as to what that would give you over using something like:
>
> tr:outputFormatted value="Hello #{propsFile.world}"
>
> Can you provide a more complex example.
>
> Danny
>
>
>
> On 8/29/07, Paul Mander <[EMAIL PROTECTED]> wrote:
> >
> > I'm having trouble getting variable substitution to work with any of the
> > trinidad tags. Using standard faces I can do the following to substitute
> > parts of a message
> >
> > 
> > 
> > 
> >
> > However, I cannot get any of the trinidad output tags to work with the
> > f:param tag. The reason why I want to use a trinidad tag is so that I can
> > skin the text correctly.
> >
> > --
> > View this message in context:
> http://www.nabble.com/trinidad-outputFormat-and-f%3Aparam-support-tf4347417.html#a12385896
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>
>
>
> --
> Chordiant Software Inc.
>  www.chordiant.com


Re: EL problem

2007-08-29 Thread Bruno Aranda
Hi, does it work if you use #{...} instead of ${...}? I seem to recall
a bug in myfaces 1.2.0 that has been fixed recently and it should be
fixed in the current snaphots (try myfaces-1.2.1-SNAPSHOT)...

Cheers,

Bruno

On 29/08/2007, Raphael Parree <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This problem might have been addressed already within the mailing list. I
> went trough the archives but was unable to find anything (now is the search
> string "EL problem" not the best search string)
>
> I'm in the process of upgrading to Tomcat 6 (6.0.14) and MyFaces 1.2.0. I
> have a major problem with the EL. My JSF pages are using EL but know they
> all resolve to empty strings (all EL on JSF pages, on JSPs they work).
>
> For example the following fails:
>
> <%@ taglib uri="http://java.sun.com/jsf/core " prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html " prefix="h" %>
> 
>  
>type="text/css"/>
> 
>  
> ...
>Test:${pageContext.request.contextPath}, ${param.foo}  
>  
>Test:${pageContext.request.contextPath}, ${param.foo}  
>  ...
> 
>
>
> On both locations the result of the EL is empty.
>
> Is this a known bug, does it have to do with libraries that i have available
> in the lib?
>
> Any help is welcome,
>
> Kind regards,
>
> Raphael
>
>
>


[Trinidad] - Javascript errors Integrating with JSF 1.2 RI / Facelets

2007-08-29 Thread Rich Schramm
Hi,

 

I would like to use the color picker and calendar components in
Trinidad.  I am currently running JSF 1.2 RI with facelets and
richfaces.  I have configured the installation as per the instructions.
When I display a page with the choosecolor component, it renders the
table, but the transparent image is shows an error (a box with a broken
image) and the javascript shows an error "TrColorConverter" is
undefined.  Additionally, when I use the requestContext palette, instead
of showing the colors, it causes an exception in the page showing that
the long list of AWT color elements is a string and not a list.

 

Thinking maybe it was interference with the RichFaces tags, I created a
very simple page using the demo chooseColor page in demo war.

 

It looks like:

 

http://java.sun.com/JSP/Page"; version="2.0"

  xmlns:f="http://java.sun.com/jsf/core";

  xmlns:h="http://java.sun.com/jsf/html";

  xmlns:trh="http://myfaces.apache.org/trinidad/html";

  xmlns:tr="http://myfaces.apache.org/trinidad"; >

  

  

   





  



  

  

  

  

  





  



 

Again, I get the same issues.  The javascript is broken and the
transparent image is broken.  I doubt if it is a collision with
RichFaces as no components from that library are used on this page, and
it seems to render all of my other facelets pages (with Trinidad comps)
in a useable way, so I am guessing that is configured properly (as per
the installation doc).

 

Any ideas?

 

Thanks,

 

Rich

 



Re: Log each call to an JSF action method

2007-08-29 Thread Svilen Ivanov
Andrew,

I think it is fine to wait for the action to end. However, if
NavigationHandlerImpl does it for me - all I have to do is to enable
the log. Thank you for your reply - I'll give it a shot.

Regards,
Svilen

2007/8/29, Andrew Robinson <[EMAIL PROTECTED]>:
> If you can wait until after the action has been called, you can use
> the ActionListener of the JSF Application or the NavigationHandler as
> both have access to the action EL expression. BTW - the myfaces
> NavigationHandlerImpl already logs each call at debug level.
>
> -Andrew
>
> On 8/29/07, Svilen Ivanov <[EMAIL PROTECTED]> wrote:
> > For audit and debugging purposes I want to log the name of action
> > method that is being called. Is it possible to hook somewhere in JSF
> > lifecycle? Or should I use Aspect oriented approach?
> >
> > Any ideas are appreciated?
> >
> > --
> > Svilen Ivanov
> > http://svilen-online.blogspot.com
> >
> > There is no dark side of the moon really.
> > Matter of fact it's all dark.
> >
>


-- 
Svilen Ivanov
http://svilen-online.blogspot.com

There is no dark side of the moon really.
Matter of fact it's all dark.


Re: [Trinidad] Pie chart breaking with 7 items

2007-08-29 Thread venkata guddanti
Can you please log a JIRA ticket? I will investigate and provide a patch.

Regards,
Venkata

On 8/29/07, Florian Reiser < [EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I want to draw a pie chart with a total of 15 data items in a series.
> When I render the page the chart is not shown.
>
> So I limited the number of data items in the chart and found out, that
> the chart shows only with a maximum number of 5 data items.
>
> So the following works:
>
> public List> getYValues() {
>   List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0, 5.0,
> 6.0});
>   Vector> yValues = new Vector>();
>   yValues.add(item);
>   return yValues;
> }
>
> But this doesn't work:
>
> the chart shows only with a maximum number of 5 data items.
>
> So the following works:
>
> public List> getYValues() {
>   List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0, 5.0,
> 6.0, 7.0});
>   Vector> yValues = new Vector>();
>   yValues.add(item);
>   return yValues;
> }
>
> What can I do to draw all of my items?
>
> With kind regards
> Florian Reiser
> --
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>


Configured jsf forwarding to jsp

2007-08-29 Thread Earnest Dyke
Greetings,

I have a simple JSF implementation (see below for faces-config) that has to jsf 
pages. When I go to http://localhost:8080/Sim/Sim.jsf it forwards to Sim.jsp 
and I can't figure out why. Should be pretty simple. I am running MyFaces 1.1.5 
in JBoss 4.0.5 GA. My web.xml is below also.

Thanks in advance for any and all help!

Earnie!


http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>


/Sim.jsf

success
/SimResponse.jsf




simBean

org.ebsinc.sim.bean.SimBean

session





http://java.sun.com/dtd/web-app_2_3.dtd";>



Sim Execution Web App


javax.faces.STATE_SAVING_METHOD
server

State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2




org.apache.myfaces.ALLOW_JAVASCRIPT
true

This parameter tells MyFaces if javascript code should be allowed in the
rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested 
parameters
will be added as url parameters.
Default: "true"




org.apache.myfaces.DETECT_JAVASCRIPT
false

This parameter tells MyFaces if javascript code should be allowed in the
rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested 
parameters
will be added as url parameters.
Default: "false"

Setting this param to true should be combined with STATE_SAVING_METHOD 
"server" for
best results.

This is an EXPERIMENTAL feature. You also have to enable the detector 
filter/filter mapping below to get JavaScript detection working.




org.apache.myfaces.PRETTY_HTML
true

If true, rendered HTML code will be formatted, so that it is "human 
readable".
i.e. additional line separators and whitespace will be written, that do 
not
influence the HTML code.
Default: "true"




org.apache.myfaces.AUTO_SCROLL
true

If true, a javascript function will be rendered that is able to restore 
the
former vertical scroll on every request. Convenient feature if you have 
pages
with long lists and you do not want the browser page to always jump to 
the top
if you trigger a link or button action that stays on the same page.
Default: "false"





org.apache.myfaces.webapp.StartupServletContextListener



Faces Servlet
javax.faces.webapp.FacesServlet
1



Faces Servlet
*.jsf






Re: [Trinidad] ppr: partialTriggers doesn't work if there are validation messages?

2007-08-29 Thread Andrew Robinson
After thinking it on some more and researching how Trinidad is
handling the PPR triggers more, I thought that maybe the best solution
is just a new component. I am already using such a component in my own
project for a site I own.

I just posted the code to JIRA so that you all can see it, comment on
it and decide if you would like to have it as a core component of
Trinidad.

The issue:

https://issues.apache.org/jira/browse/TRINIDAD-663

-Andrew


[Trinidad] trinidad 1.2.1 w/ ajax4jsf, richfaces and facelets possible?

2007-08-29 Thread Thai Dang Vu
Hi everybody,

I'd like to ask if it is possible to use trinidad 1.2.1 with richfaces
3.1.0 (which includes ajax4jsf) and facelets.

This is my 1st day learning trinidad so I haven't got time to try
different ways to configure the web.xml file to make trinidad and
ajax4jsf work togeter.

If you have an existing example using both richfaces 3.1.0 and trinidad,
could I have a copy of all your configuration files (web.xml,
faces-config.xml, trinidad-config.xml) and the name of all the jar files
in WEB-INF/lib?

Regards.



NOTICE: This message (including any attachments) from Momentum Systems, Inc. 
contains information that is PRIVILEGED and CONFIDENTIAL.  If you are not an 
intended recipient, you are hereby notified that any dissemination of this 
message is strictly prohibited.  If you have received this message in error, 
please do not read, copy or forward this message.  Please permanently delete 
all copies and any attachments and notify the sender immediately by reply email 
or by calling our Office at 703.740.9300.


Re: [Trinidad] trinidad 1.2.1 w/ ajax4jsf, richfaces and facelets possible?

2007-08-29 Thread Scott O'Bryan

Thai,

Theoretically they should work together but some people have reported 
problems.  That said, I don't think a4j gives you anything that Trinidad 
doesn't give you out of the box.  Is there some piece of functionality 
you're looking for in a4j that Trinidad does not give you?


Scott

Thai Dang Vu wrote:

Hi everybody,

I'd like to ask if it is possible to use trinidad 1.2.1 with richfaces
3.1.0 (which includes ajax4jsf) and facelets.

This is my 1st day learning trinidad so I haven't got time to try
different ways to configure the web.xml file to make trinidad and
ajax4jsf work togeter.

If you have an existing example using both richfaces 3.1.0 and trinidad,
could I have a copy of all your configuration files (web.xml,
faces-config.xml, trinidad-config.xml) and the name of all the jar files
in WEB-INF/lib?

Regards.



NOTICE: This message (including any attachments) from Momentum Systems, Inc. 
contains information that is PRIVILEGED and CONFIDENTIAL.  If you are not an 
intended recipient, you are hereby notified that any dissemination of this 
message is strictly prohibited.  If you have received this message in error, 
please do not read, copy or forward this message.  Please permanently delete 
all copies and any attachments and notify the sender immediately by reply email 
or by calling our Office at 703.740.9300.

  




Re: [Trinidad] - Javascript errors Integrating with JSF 1.2 RI / Facelets

2007-08-29 Thread Adam Winer
Could we see your web.xml?
-- Adam


On 8/29/07, Rich Schramm <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>
>
> I would like to use the color picker and calendar components in Trinidad.
> I am currently running JSF 1.2 RI with facelets and richfaces.  I have
> configured the installation as per the instructions.  When I display a page
> with the choosecolor component, it renders the table, but the transparent
> image is shows an error (a box with a broken image) and the javascript shows
> an error "TrColorConverter" is undefined.  Additionally, when I use the
> requestContext palette, instead of showing the colors, it causes an
> exception in the page showing that the long list of AWT color elements is a
> string and not a list.
>
>
>
> Thinking maybe it was interference with the RichFaces tags, I created a
> very simple page using the demo chooseColor page in demo war.
>
>
>
> It looks like:
>
>
>
> http://java.sun.com/JSP/Page"; version="2.0"
>
>   xmlns:f="http://java.sun.com/jsf/core";
>
>   xmlns:h="http://java.sun.com/jsf/html";
>
>   xmlns:trh="http://myfaces.apache.org/trinidad/html";
>
>   xmlns:tr="http://myfaces.apache.org/trinidad"; >
>
>   
>
>   
>
>
>
> 
>
> 
>
>   
>
> 
>
>   
>
>   
>
>   
> shortDesc="Select color from pallette"
>
> label="Enter or select color from palette below"/>
>
>   
>
>   
>
> 
>
> 
>
>   
>
> 
>
>
>
> Again, I get the same issues.  The javascript is broken and the
> transparent image is broken.  I doubt if it is a collision with RichFaces as
> no components from that library are used on this page, and it seems to
> render all of my other facelets pages (with Trinidad comps) in a useable
> way, so I am guessing that is configured properly (as per the installation
> doc).
>
>
>
> Any ideas?
>
>
>
> Thanks,
>
>
>
> *Rich*
>
>
>


RE: [Trinidad] - Javascript errors Integrating with JSF 1.2 RI / Facelets

2007-08-29 Thread Rich Schramm
Adam,

 

See below for my web.xml as per your request.  Any feedback appreciated.

 

Rich

 



http://java.sun.com/xml/ns/j2ee";

 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Facelets StarterKit

myapp



javax.faces.DEFAULT_SUFFIX

.jspx





facelets.REFRESH_PERIOD

2





facelets.DEVELOPMENT

true





javax.faces.STATE_SAVING_METHOD

server





com.sun.faces.validateXml

true





com.sun.faces.verifyObjects

true





org.ajax4jsf.SKIN

classic





com.exadel.vcp.trialKey

trial_key_goes_here



 





 
org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER

com.sun.facelets.FaceletViewHandler

  

 

  

facelets.VIEW_MAPPINGS

*.jspx

  

 



trinidad

 
org.apache.myfaces.trinidad.webapp.TrinidadFilter



 



trinidad

Faces Servlet

REQUEST

FORWARD

INCLUDE



 



resources

 
org.apache.myfaces.trinidad.webapp.ResourceServlet



 



resources

*.jsf



 



 



Ajax4jsf Filter

ajax4jsf

org.ajax4jsf.Filter





ajax4jsf

Faces Servlet

REQUEST

FORWARD

INCLUDE





Faces Servlet

javax.faces.webapp.FacesServlet

1







Faces Servlet

*.jsf



 



 

 

From: Adam Winer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 29, 2007 8:01 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] - Javascript errors Integrating with JSF 1.2 RI
/ Facelets

 

Could we see your web.xml?

 

-- Adam

 

On 8/29/07, Rich Schramm < [EMAIL PROTECTED]
 > wrote:

Hi,

 

I would like to use the color picker and calendar components in
Trinidad.  I am currently running JSF 1.2 RI with facelets and
richfaces.  I have configured the installation as per the instructions.
When I display a page with the choosecolor component, it renders the
table, but the transparent image is shows an error (a box with a broken
image) and the javascript shows an error "TrColorConverter" is
undefined.  Additionally, when I use the requestContext palette, instead
of showing the colors, it causes an exception in the page showing that
the long list of AWT color elements is a string and not a list.

 

Thinking maybe it was interference with the RichFaces tags, I created a
very simple page using the demo chooseColor page in demo war.

 

It looks like:

 

http://java.sun.com/JSP/Page"; version="2.0"

  xmlns:f="http://java.sun.com/jsf/core";

  xmlns:h="http://java.sun.com/jsf/html";

  xmlns:trh="http://myfaces.apache.org/trinidad/html";

  xmlns:tr="http://myfaces.apache.org/trinidad"; >

  

  

   





  



  

  

  

  

  





  



 

Again, I get the same issues.  The javascript is broken and the
transparent image is broken.  I doubt if it is a collision with
RichFaces as no components from that library are used on this page, and
it seems to render all of my other facelets pages (with Trinidad comps)
in a useable way, so I am guessing that is configured properly (as per
the installation doc).

 

Any ideas?

 

Thanks,

 

Rich

 


 



_
Scanned by IBM Email Security Management Services powered by
MessageLabs. For more information please visit http://www.ers.ibm.com

_



RE: [Trinidad] trinidad 1.2.1 w/ ajax4jsf, richfaces and facelets possible?

2007-08-29 Thread Rich Schramm
I am using richfaces 3.0.1 (I don't think 3.1.0 is out until the end of
this month, like a couple days) with facelets and JSF 1.2 RI on Tomcat
5.5.

I have been trying to get Trinidad to work in this environment and I got
it to the point that it will at least attempt to render the components,
but it is not doing it properly.  I am having display and javascript
issues. I have a separate thread going now about that issue you might
want to see.  If I do get it configured properly, I will let you know...

Good luck,
 
Rich

-Original Message-
From: Thai Dang Vu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 29, 2007 7:38 PM
To: MyFaces Discussion
Subject: [Trinidad] trinidad 1.2.1 w/ ajax4jsf, richfaces and facelets
possible?

Hi everybody,

I'd like to ask if it is possible to use trinidad 1.2.1 with richfaces
3.1.0 (which includes ajax4jsf) and facelets.

This is my 1st day learning trinidad so I haven't got time to try
different ways to configure the web.xml file to make trinidad and
ajax4jsf work togeter.

If you have an existing example using both richfaces 3.1.0 and trinidad,
could I have a copy of all your configuration files (web.xml,
faces-config.xml, trinidad-config.xml) and the name of all the jar files
in WEB-INF/lib?

Regards.



NOTICE: This message (including any attachments) from Momentum Systems,
Inc. contains information that is PRIVILEGED and CONFIDENTIAL.  If you
are not an intended recipient, you are hereby notified that any
dissemination of this message is strictly prohibited.  If you have
received this message in error, please do not read, copy or forward this
message.  Please permanently delete all copies and any attachments and
notify the sender immediately by reply email or by calling our Office at
703.740.9300.


_
Scanned by IBM Email Security Management Services powered by
MessageLabs. For more information please visit http://www.ers.ibm.com

_


[Trinidad] change appearance os tableselectmany

2007-08-29 Thread Christian Klocker
i'd like to hide the checkbox because selected state should be marked by 
drawing a border on selected rows ... so, i'm wondering how this can be done?

thanks
chistian


Re: [Trinidad] Pie chart breaking with 7 items

2007-08-29 Thread venkata guddanti
I looked at this issue a bit more. The problem is the chartModel base class
defines only six colors. You can  override:

public List getSeriesColors()

// The default implementation is as follows:
  public List getSeriesColors()
  {
return _defaultColors;
  }

  private static final List _defaultColors = new ArrayList();

  static
  {
_defaultColors.addAll(
  Arrays.asList(new Color[]{new Color(231,109,72,0),new
Color(110,166,243,0),new Color(157,206,110,0),new Color(252,196,111,0),new
Color(114,126,142,0),new Color(109,44,145,0)}));
  }

However I agree that the current implementation is not correct. If it cannot
find the colors it should throw an exception on the server or it should wrap
around and reuse the colors. So if you enter a JIRA ticket for it, I can
provide the patch for it.

Regards,
Venkata
On 8/29/07, venkata guddanti <[EMAIL PROTECTED]> wrote:
>
> Can you please log a JIRA ticket? I will investigate and provide a patch.
>
> Regards,
> Venkata
>
> On 8/29/07, Florian Reiser < [EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I want to draw a pie chart with a total of 15 data items in a series.
> > When I render the page the chart is not shown.
> >
> > So I limited the number of data items in the chart and found out, that
> > the chart shows only with a maximum number of 5 data items.
> >
> > So the following works:
> >
> > public List> getYValues() {
> >   List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0,
> > 5.0, 6.0});
> >   Vector> yValues = new Vector>();
> >   yValues.add(item);
> >   return yValues;
> > }
> >
> > But this doesn't work:
> >
> > the chart shows only with a maximum number of 5 data items.
> >
> > So the following works:
> >
> > public List> getYValues() {
> >   List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0,
> > 5.0, 6.0, 7.0});
> >   Vector> yValues = new Vector>();
> >   yValues.add(item);
> >   return yValues;
> > }
> >
> > What can I do to draw all of my items?
> >
> > With kind regards
> > Florian Reiser
> > --
> > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
> >
>
>


[Trinidad] Aaaaaargg - validateDoubleRange broken on JSF RI 1.2

2007-08-29 Thread Stephen Friedrich

Pheewww - spent a couple of hours chasing a bug - getting very late again ...

After upgrading from Trinidad 1.0.1/MyFaces to Trinidad 1.2.1/JSF RI 1.2.04
all my "validateDoubleRange" tags stopped working completely.
Probably other validators are also affected.

If I understand the problem correctly:
These methods
   
org.apache.myfaces.trinidad.validator.DoubleRangeValidator.saveState()/restoreState()
do not save the fields minimumSet/maximumSet of superclass 
javax.faces.validator.DoubleRangeValidator:

However the validate method of Trinidad's DoubleRangeValidator delegates to 
super() which
thinks that neither minimum or maximum is set, so validation always passes.

How to fix this?


BTW: I don't yet understand why client side validation does not kick in even 
before
the wrong value gets to the server.


Re: Log each call to an JSF action method

2007-08-29 Thread Ryan Wynn
I like to use spring's variable resolver + support for proxy beans to
do this.  I guess the aspect oriented approach you were referring to.


On 8/29/07, Svilen Ivanov <[EMAIL PROTECTED]> wrote:
> Andrew,
>
> I think it is fine to wait for the action to end. However, if
> NavigationHandlerImpl does it for me - all I have to do is to enable
> the log. Thank you for your reply - I'll give it a shot.
>
> Regards,
> Svilen
>
> 2007/8/29, Andrew Robinson <[EMAIL PROTECTED]>:
> > If you can wait until after the action has been called, you can use
> > the ActionListener of the JSF Application or the NavigationHandler as
> > both have access to the action EL expression. BTW - the myfaces
> > NavigationHandlerImpl already logs each call at debug level.
> >
> > -Andrew
> >
> > On 8/29/07, Svilen Ivanov <[EMAIL PROTECTED]> wrote:
> > > For audit and debugging purposes I want to log the name of action
> > > method that is being called. Is it possible to hook somewhere in JSF
> > > lifecycle? Or should I use Aspect oriented approach?
> > >
> > > Any ideas are appreciated?
> > >
> > > --
> > > Svilen Ivanov
> > > http://svilen-online.blogspot.com
> > >
> > > There is no dark side of the moon really.
> > > Matter of fact it's all dark.
> > >
> >
>
>
> --
> Svilen Ivanov
> http://svilen-online.blogspot.com
>
> There is no dark side of the moon really.
> Matter of fact it's all dark.
>


RE: EL problem

2007-08-29 Thread Raphael Parree
Bruno,

Thanks for your reply...

Yes I had tried that it gave me the following error:

#{..} is not allowed in template text

Which makes sense, as the EL is not inside JSF but in the regular JSP part
of the page.

Where can I find myfaces-1.2.1-SNAPSHOT? On the snapshot page
(http://people.apache.org/builds/myfaces/nightly/) I only find 1.1.6
releases.

This is used in a production environment, does this snapshot only contain
bugfixes since the stable release 1.2.0? (no major refactoring, new
functionality etc) 

Tx.,

Raphael

-Original Message-
From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
Sent: 29 August 2007 21:29
To: MyFaces Discussion
Subject: Re: EL problem

Hi, does it work if you use #{...} instead of ${...}? I seem to recall
a bug in myfaces 1.2.0 that has been fixed recently and it should be
fixed in the current snaphots (try myfaces-1.2.1-SNAPSHOT)...

Cheers,

Bruno

On 29/08/2007, Raphael Parree <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This problem might have been addressed already within the mailing list. I
> went trough the archives but was unable to find anything (now is the
search
> string "EL problem" not the best search string)
>
> I'm in the process of upgrading to Tomcat 6 (6.0.14) and MyFaces 1.2.0. I
> have a major problem with the EL. My JSF pages are using EL but know they
> all resolve to empty strings (all EL on JSF pages, on JSPs they work).
>
> For example the following fails:
>
> <%@ taglib uri="http://java.sun.com/jsf/core " prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html " prefix="h" %>
> 
>  
>type="text/css"/>
> 
>  
> ...
>Test:${pageContext.request.contextPath}, ${param.foo}  
>  
>Test:${pageContext.request.contextPath}, ${param.foo}  
>  ...
> 
>
>
> On both locations the result of the EL is empty.
>
> Is this a known bug, does it have to do with libraries that i have
available
> in the lib?
>
> Any help is welcome,
>
> Kind regards,
>
> Raphael
>
>
>



Re: [Trinidad] Pie chart breaking with 7 items

2007-08-29 Thread Florian Reiser
Thank you, Venkata.
The JIRA ticket is opened under the id TRINIDAD-665.

With kind regards
Florian Reiser

 Original-Nachricht 
> Datum: Wed, 29 Aug 2007 14:34:05 -0600
> Von: "venkata guddanti" <[EMAIL PROTECTED]>
> An: "MyFaces Discussion" 
> Betreff: Re: [Trinidad] Pie chart breaking with 7 items

> Can you please log a JIRA ticket? I will investigate and provide a patch.
> 
> Regards,
> Venkata
> 
> On 8/29/07, Florian Reiser < [EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I want to draw a pie chart with a total of 15 data items in a series.
> > When I render the page the chart is not shown.
> >
> > So I limited the number of data items in the chart and found out, that
> > the chart shows only with a maximum number of 5 data items.
> >
> > So the following works:
> >
> > public List> getYValues() {
> >   List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0,
> 5.0,
> > 6.0});
> >   Vector> yValues = new Vector>();
> >   yValues.add(item);
> >   return yValues;
> > }
> >
> > But this doesn't work:
> >
> > the chart shows only with a maximum number of 5 data items.
> >
> > So the following works:
> >
> > public List> getYValues() {
> >   List item = Arrays.asList(new Double[] {1.0, 2.0, 3.0, 4.0,
> 5.0,
> > 6.0, 7.0});
> >   Vector> yValues = new Vector>();
> >   yValues.add(item);
> >   return yValues;
> > }
> >
> > What can I do to draw all of my items?
> >
> > With kind regards
> > Florian Reiser
> > --
> > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
> >

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


Re: trinidad outputFormat and f:param support

2007-08-29 Thread Paul Mander



Andrew Robinson-5 wrote:
> 
> Well, that is not localizable
> 
> I think the use case that he means is more like:
> 
> 
> 
> 
> 
> messages.properties
> str = Test {0} param
> 
> 

That's a better example. 

-- 
View this message in context: 
http://www.nabble.com/trinidad-outputFormat-and-f%3Aparam-support-tf4347417.html#a12401317
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Trinidad] Aaaaaargg - validateDoubleRange broken on JSF RI 1.2

2007-08-29 Thread Matthias Wessendorf
Hi,

> If I understand the problem correctly:
> These methods
> 
> org.apache.myfaces.trinidad.validator.DoubleRangeValidator.saveState()/restoreState()
> do not save the fields minimumSet/maximumSet of superclass 
> javax.faces.validator.DoubleRangeValidator:

I don't see a minimumSet/maximumSet field in
javax.faces.validator.DoubleRangeValidator
(looking at the  MyFaces source). These fields aren't standard, no
need to save/restore them.

> How to fix this?

when it is in the RI, ask the sun guys.

>
>
> BTW: I don't yet understand why client side validation does not kick in even 
> before
> the wrong value gets to the server.

Interesting is, that I am also on JSF RI 1.2.x + Trinidad stack, works fine.

So, feel free to file an issue, with details (and a test-case ?)

-M


>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org