Re: RE : Input Suggest - Ajax Suggest

2005-09-13 Thread Martin Marinschek
Well, I am using ajaxInputSuggest in my current development efforts ;)

regards,

Martin

On 9/12/05, Clément Maignien <[EMAIL PROTECTED]> wrote:
> I did try the inputSuggest. It works globally well except some small issues 
> (its in sandbox ...). Theres somes JIRA issues opened on it.
> 
> Did someone try the ajaxInputSuggest ?
> 
> -Message d'origine-
> De : Martin Marinschek [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 9 septembre 2005 17:14
> À : MyFaces Discussion; [EMAIL PROTECTED]
> Objet : Re: Input Suggest - Ajax Suggest
> 
> 
> Input suggest is pure client side - ajax suggest goes back to the server to 
> fetch its data.
> 
> Choose the one you need!
> 
> Currently, there are some known issues with inputSuggest afaik.
> 
> As to ajaxInputSuggest, there seem to be no open issues right now, doesn't 
> mean that there are none ;)
> 
> regards,
> 
> Martin
> 
> On 9/9/05, Vladimir Coutinho <[EMAIL PROTECTED]> wrote:
> > What is better  Input Suggest or Ajax Suggest (sandbox)?
> >
> >
> > They work fine?
> >
> > --
> > Vladimir M Coutinho
> 
> 
> --
> 
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
> 


-- 

http://www.irian.at
Your JSF powerhouse - 
JSF Trainings in English and German


Re: Tree2 state problem

2005-09-13 Thread Atree Blu
Hi,
for using the same tree you put it in session?
My back-bean, that return the treeModel, is in request-scope and I'd like to maintain it.
 
Any other solution?
Thanks
 
Nicola 
On 9/13/05, Guilherme Gomes <[EMAIL PROTECTED]> wrote:
I had the same problem as you.I "fixed" the problem by not discarding the previoustree.
Instead of building a new one, just "clean" the oneyou have, i.e. , get rid of all children - don'tforget to set the expanded nodes as not expanded too.It seems that if you create a new tree, myfaces will
try to use the previous tree state. If you use thesame one, no problem arises.Hope this helps.Guilherme Gomes__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Re: duplicated messages useing addMessage and aliasBean

2005-09-13 Thread Rashmi Kumari

Hi,

Instead of  MessageFactory.getMessage(context,"myMessageID")

you can use  new FacesMessage("Message to print", "")

Thanx and Regards

Rashmi





 
Michael Jenik   
 
<[EMAIL PROTECTED]   To: users@myfaces.apache.org   
 
ahoo.com>cc:
 
 Subject: duplicated messages 
useing addMessage and aliasBean
09/13/2005  
 
01:09 AM
 
Please respond  
 
to "MyFaces 
 
Discussion" 
 

 




hello,

I have a problem.

I have a bean "SmallBean" which performs this:

FacesContext context =
FacesContext.getCurrentInstance();
context.addMessage(null,MessageFactory.getMessage(context,"myMessageID"));



The bean is used into a Tagfile called in this way.



   
 
   
 
   

   
 
   
 
   




Note that BigBean has two properties : desde and hasta
of type SmallBean.
And the file untag.tag has a  tag in
somewhere.


The problem Is that the messages generated by both
SmallBean are rendered together and duplicated in the
"desde" rendered part and in the "hasta" rendered
part.


Is the first parameter of addMessage useful to aboid
this behaviour ? How can I workarround this problem?

Thanks in Advance.

Michael



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





Re: changing the rendering behavior of HtmlSelectManyCheckbox

2005-09-13 Thread Jan Bols

It's similar but not quite the same.

The added columns attributes defines the number of columns the renderer is  
going to use. So this is fixed while the number of rows depends on the  
number of selectItem objects inside.


Setting layout=pageDirection and columns=3 gives:

[A] [E] [I]
[B] [F] [J]
[C] [G]
[D] [H]

Setting the layout=lineDirection with columns=3 gives:

[A] [B] [C]
[D] [E] [F]
[G] [H] [I]
[J]

Ignoring the columns attribute or setting it to 0 produces the default  
behaviour.


Greetings
Jan

On Fri, 09 Sep 2005 17:37:39 +0200, Ken Weiner <[EMAIL PROTECTED]> wrote:


Thanks. Does your columns attribute work with page direction and line
direction? I ended up extending the component as well to handle a  
"width" of

checkboxes in both directions. I'll take a look at your code next week to
see if it is similar and if I can enhance it with both drawing  
directions if

it isn't already done.

On 9/7/05, Jan Bols <[EMAIL PROTECTED]> wrote:


I had the same problem and ended up extending the HtmlSelectManyCheckbox
component. I added a "columns" attribute where you can specify the  
number

of columns you want the selectManyCheckbox to use. Like this:





You can find the sourcecode on http://sourceforge.net/projects/jsf-comp
but there's also a jar that you can add to WEB-INF/lib directory. The  
jar
file is found on http://www.ivpv.ugent.be/~jan/myfacessandbox.jar. The  
jar

file is for use with the nightly version (so not the 1.0.9 version) of
myfaces dating from 2005-08-15 but with a bit of luck it should also  
work

with the current nightly version of myfaces.

You can find a working example of this on
https://www.ivpv.ugent.be/contact/new.faces?lang=en . Also on
http://www.ivpv.ugent.be/~jan/selectTest.jsp you can find a jsf file to
get you started...

Hope this helps.

Jan


On Thu, 01 Sep 2005 22:19:36 +0200, Ken Weiner <[EMAIL PROTECTED]>  
wrote:


> I need to find a way to render the checkboxes in  
HtmlSelectManyCheckbox

> in a
> format other than a single horizontal or vertical row. My first  
thought

> was
> to extend HtmlSelectManyCheckbox and make a new attribute called  
"width"

> and
> use this in conjunction with the "layout" attribute as follows:
>
>  layout="pageDirection" width="3">
> 
> 
>
> would produce
>
> [x] [x] [x]
> [x] [x] [x]
> [x] [x] [x]
> [x] [x] [x]
> [x] [x] [x]
> [x] [x] [x]
> etc.
>
> and
>
>  layout="lineDirection" width="3">
> 
> 
>
> would produce
>
> [x] [x] [x] [x] [x] [x] etc.
> [x] [x] [x] [x] [x] [x]
> [x] [x] [x] [x] [x] [x]
>
> Is there better way to accomplish this? Should I be thinking about  
using

> SelectItemGroups? I'm ultimately trying to create a 2 X 2 set of
> checkboxes.
> Thanks!
>
> -Ken







faces-config.xml to site-map.svg

2005-09-13 Thread ::SammyRulez::
Hi all

doe's anybody knows a convinient method (I think a xslt
transformation) to get a map of the application (svg format?) from the
navigation elements of the faces-config.xml file?

I think it would be a very cool task but I don't want to reinvent the wheel!


-- 
::SammyRulez::
http://sammyprojectz.blogspot.com


[newbie] Navigation does not work

2005-09-13 Thread Matthias Klein
I have started to create a simple MyFaces-App and encountered a problem with
the navigation:
Pressing a button does not do anything.

Some code sniplets:

-
Page1:

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










[..]




[..]





---
Excerpt from faces-config:


/LODetails.jsf

/LORatings.jsf



-
Part of LODetailsBackingBean.java:

public String viewUserRatings() {
return "viewuserratings";
}


I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE 4.
I see the page1 but when I press the button, nothing happens.

Why?

Thanks a lot

Matt



Re: [newbie] Navigation does not work

2005-09-13 Thread hicham abassi
1/ it seems that yo don't declared your bean LODetailsBackingBean into
faces-config.xml
2/ you don't declared a string outcome viewuserratings for view-id LODetails.jsf



2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:
> I have started to create a simple MyFaces-App and encountered a problem with
> the navigation:
> Pressing a button does not do anything.
> 
> Some code sniplets:
> 
> -
> Page1:
> 
> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
>  var="MessageBundle"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> [..]
> 
> 
>  action="#{LODetailsBackingBean.viewUserRatings}"
> value="#{MessageBundle.viewratingsbuttonlabel}" />
> 
> [..]
> 
> 
> 
> 
> 
> ---
> Excerpt from faces-config:
> 
> 
> /LODetails.jsf
> 
> /LORatings.jsf
> 
> 
> 
> -
> Part of LODetailsBackingBean.java:
> 
> public String viewUserRatings() {
> return "viewuserratings";
> }
> 
> 
> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE 4.
> I see the page1 but when I press the button, nothing happens.
> 
> Why?
> 
> Thanks a lot
> 
> Matt
> 
> 


-- 

hicham ABASSI
[EMAIL PROTECTED]


RE: [newbie] Navigation does not work

2005-09-13 Thread Matthias Klein
Actually, I did both but it did not change anything.

Here the more complete excerpts from faces-config:


/LODetails.jsf

viewuserratings
/LORatings.jsf

 

 
Backing-Bean for LODetails.
LODetailsBackingBean
 
ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
session


Something like that I did.
But still - pressing the button does not do anything at all

So I am wondering if I did something wrong or if that is a
JSF/MyFaces-issue.

Thanks

Matt


-Original Message-
From: hicham abassi [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 13. September 2005 12:59
To: MyFaces Discussion
Subject: Re: [newbie] Navigation does not work

1/ it seems that yo don't declared your bean LODetailsBackingBean into
faces-config.xml 2/ you don't declared a string outcome viewuserratings for
view-id LODetails.jsf



2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:
> I have started to create a simple MyFaces-App and encountered a 
> problem with the navigation:
> Pressing a button does not do anything.
> 
> Some code sniplets:
> 
> -
> Page1:
> 
> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib 
> uri="http://java.sun.com/jsf/core"; prefix="f" %>  basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
> var="MessageBundle"/>
> 
>  
> 
> 
> 
> 
> 
> 
> [..]
> 
> 
>  action="#{LODetailsBackingBean.viewUserRatings}"
> value="#{MessageBundle.viewratingsbuttonlabel}" />
> 
> [..]
> 
> 
> 
> 
> 
> ---
> Excerpt from faces-config:
> 
> 
> /LODetails.jsf
> 
> /LORatings.jsf
> 
> 
> 
> -
> Part of LODetailsBackingBean.java:
> 
> public String viewUserRatings() {
> return "viewuserratings";
> }
> 
> 
> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE
4.
> I see the page1 but when I press the button, nothing happens.
> 
> Why?
> 
> Thanks a lot
> 
> Matt
> 
> 


-- 

hicham ABASSI
[EMAIL PROTECTED]



PhaseListener

2005-09-13 Thread shed
Hello!

I have created a own custom component and made jar file. But if I use it in 
another project, my java files could not find the images and javascripts.

I heard from the PhaseLIstener. But I don't know how to use and whether I 
should use it or not.

Does someone know a good example or can me tell what I have to do?

Thanks
shed

--
Ein Service von http://www.sms.at



RE: [newbie] Navigation does not work

2005-09-13 Thread David G. Friedman
Why do you have the *.jsf in your navigation-case?
Shouldn't you be using *.jsp or are you not mapping
to *.jsf as is common?

Regards,
David

-Original Message-
From: Matthias Klein [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 7:11 AM
To: 'MyFaces Discussion'; [EMAIL PROTECTED]
Subject: RE: [newbie] Navigation does not work


Actually, I did both but it did not change anything.

Here the more complete excerpts from faces-config:


/LODetails.jsf

viewuserratings
/LORatings.jsf



 
Backing-Bean for LODetails.
LODetailsBackingBean

ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
session


Something like that I did.
But still - pressing the button does not do anything at all

So I am wondering if I did something wrong or if that is a
JSF/MyFaces-issue.

Thanks

Matt


-Original Message-
From: hicham abassi [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 13. September 2005 12:59
To: MyFaces Discussion
Subject: Re: [newbie] Navigation does not work

1/ it seems that yo don't declared your bean LODetailsBackingBean into
faces-config.xml 2/ you don't declared a string outcome viewuserratings for
view-id LODetails.jsf



2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:
> I have started to create a simple MyFaces-App and encountered a
> problem with the navigation:
> Pressing a button does not do anything.
>
> Some code sniplets:
>
> -
> Page1:
>
> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib
> uri="http://java.sun.com/jsf/core"; prefix="f" %>  basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
> var="MessageBundle"/>
>
>  
> 
> 
> 
>
> 
> 
> [..]
>
> 
>  action="#{LODetailsBackingBean.viewUserRatings}"
> value="#{MessageBundle.viewratingsbuttonlabel}" />
> 
> [..]
> 
> 
> 
> 
>
> ---
> Excerpt from faces-config:
>
> 
> /LODetails.jsf
> 
> /LORatings.jsf
> 
> 
>
> -
> Part of LODetailsBackingBean.java:
>
> public String viewUserRatings() {
> return "viewuserratings";
> }
>
>
> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE
4.
> I see the page1 but when I press the button, nothing happens.
>
> Why?
>
> Thanks a lot
>
> Matt
>
>


--

hicham ABASSI
[EMAIL PROTECTED]



Re: PhaseListener

2005-09-13 Thread Matthias Wessendorf
Inside of MyFaces' sandbox stuff there are some ajax components.
For these components there is a PhaseListener to handle the AJAX Request inside of the "JSF Engine"

Also it is possible to use a PhaseListener for providing JS files or images of your custom components

And even for debugin (or learning the JSF lifecycle ;)
intersting blog entrie for PhaseListeners: --> 
http://jroller.com/page/cschalk?entry=getting_familiar_with_the_jsf

-MatthiasOn 9/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello!I
have created a own custom component and made jar file. But if I use it
in another project, my java files could not find the images and
_javascript_s.I heard from the PhaseLIstener. But I don't know how to use and whether I should use it or not.Does someone know a good example or can me tell what I have to do?Thanksshed--
Ein Service von http://www.sms.at-- Matthias WessendorfZülpicher Wall 12, 23950674 Köln


Re: [newbie] Navigation does not work

2005-09-13 Thread Matthias Wessendorf
*.jsf is only the mapping
*.jsp is the *real* name of your physical existing file

btw. *.faces might be a better mapping, since *.jsf is a reserved word
in JSF/JSP spec

-Matthias

On 9/13/05, David G. Friedman <[EMAIL PROTECTED]> wrote:
> Why do you have the *.jsf in your navigation-case?
> Shouldn't you be using *.jsp or are you not mapping
> to *.jsf as is common?
> 
> Regards,
> David
> 
> -Original Message-
> From: Matthias Klein [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 13, 2005 7:11 AM
> To: 'MyFaces Discussion'; [EMAIL PROTECTED]
> Subject: RE: [newbie] Navigation does not work
> 
> 
> Actually, I did both but it did not change anything.
> 
> Here the more complete excerpts from faces-config:
> 
> 
> /LODetails.jsf
> 
> viewuserratings
> /LORatings.jsf
> 
> 
> 
>  
> Backing-Bean for LODetails.
> LODetailsBackingBean
> 
> ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean d-bean-class>
> session
> 
> 
> Something like that I did.
> But still - pressing the button does not do anything at all
> 
> So I am wondering if I did something wrong or if that is a
> JSF/MyFaces-issue.
> 
> Thanks
> 
> Matt
> 
> 
> -Original Message-
> From: hicham abassi [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 13. September 2005 12:59
> To: MyFaces Discussion
> Subject: Re: [newbie] Navigation does not work
> 
> 1/ it seems that yo don't declared your bean LODetailsBackingBean into
> faces-config.xml 2/ you don't declared a string outcome viewuserratings for
> view-id LODetails.jsf
> 
> 
> 
> 2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:
> > I have started to create a simple MyFaces-App and encountered a
> > problem with the navigation:
> > Pressing a button does not do anything.
> >
> > Some code sniplets:
> >
> > -
> > Page1:
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib
> > uri="http://java.sun.com/jsf/core"; prefix="f" %>  > basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
> > var="MessageBundle"/>
> >
> >  
> > 
> > 
> > 
> >
> > 
> > 
> > [..]
> >
> > 
> >  > action="#{LODetailsBackingBean.viewUserRatings}"
> > value="#{MessageBundle.viewratingsbuttonlabel}" />
> > 
> > [..]
> > 
> > 
> > 
> > 
> >
> > ---
> > Excerpt from faces-config:
> >
> > 
> > /LODetails.jsf
> > 
> > /LORatings.jsf
> > 
> > 
> >
> > -
> > Part of LODetailsBackingBean.java:
> >
> > public String viewUserRatings() {
> > return "viewuserratings";
> > }
> >
> >
> > I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE
> 4.
> > I see the page1 but when I press the button, nothing happens.
> >
> > Why?
> >
> > Thanks a lot
> >
> > Matt
> >
> >
> 
> 
> --
> 
> hicham ABASSI
> [EMAIL PROTECTED]
> 
> 



-- 
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln


RE: [newbie] Navigation does not work

2005-09-13 Thread Matthias Klein
That was only a try.
I have used *.jsp before and it did not change a thing.
I can easily run the example (e.g. the simple myfaces blank example) which
works fine
Then I took over the config they used and incorporated that in mine but it
does not work.
I really have NO idea what I did wrong.
Matt
 

-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 13. September 2005 13:55
To: MyFaces Discussion
Subject: RE: [newbie] Navigation does not work

Why do you have the *.jsf in your navigation-case?
Shouldn't you be using *.jsp or are you not mapping to *.jsf as is common?

Regards,
David

-Original Message-
From: Matthias Klein [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 7:11 AM
To: 'MyFaces Discussion'; [EMAIL PROTECTED]
Subject: RE: [newbie] Navigation does not work


Actually, I did both but it did not change anything.

Here the more complete excerpts from faces-config:


/LODetails.jsf

viewuserratings
/LORatings.jsf



 
Backing-Bean for LODetails.
LODetailsBackingBean

ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
session


Something like that I did.
But still - pressing the button does not do anything at all

So I am wondering if I did something wrong or if that is a
JSF/MyFaces-issue.

Thanks

Matt


-Original Message-
From: hicham abassi [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 13. September 2005 12:59
To: MyFaces Discussion
Subject: Re: [newbie] Navigation does not work

1/ it seems that yo don't declared your bean LODetailsBackingBean into
faces-config.xml 2/ you don't declared a string outcome viewuserratings for
view-id LODetails.jsf



2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:
> I have started to create a simple MyFaces-App and encountered a 
> problem with the navigation:
> Pressing a button does not do anything.
>
> Some code sniplets:
>
> -
> Page1:
>
> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib 
> uri="http://java.sun.com/jsf/core"; prefix="f" %>  basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
> var="MessageBundle"/>
>
>  
> 
> 
> 
>
> 
> 
> [..]
>
> 
>  action="#{LODetailsBackingBean.viewUserRatings}"
> value="#{MessageBundle.viewratingsbuttonlabel}" />
> 
> [..]
> 
> 
> 
> 
>
> ---
> Excerpt from faces-config:
>
> 
> /LODetails.jsf
> 
> /LORatings.jsf
> 
> 
>
> -
> Part of LODetailsBackingBean.java:
>
> public String viewUserRatings() {
> return "viewuserratings";
> }
>
>
> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse 
> IDE
4.
> I see the page1 but when I press the button, nothing happens.
>
> Why?
>
> Thanks a lot
>
> Matt
>
>


--

hicham ABASSI
[EMAIL PROTECTED]




Re: [newbie] Navigation does not work

2005-09-13 Thread Dexter Wong
Hi,
your sample worked for me. I am using 
jboss 4.0.2
java 1.5.004
windows xp

I make some changes
0. changed files from *.jsf to *.jsp
1. my config files looks like

    
   /LODetails.jsp
   
  
viewuserratings
   /LORatings.jsp
   
       

2. The LODetails.jsp is not using a resource file

On 9/13/05, Matthias Klein <[EMAIL PROTECTED]> wrote:
Actually, I did both but it did not change anything.Here the more complete excerpts from faces-config:/LODetails.jsf
viewuserratings/LORatings.jsf 
Backing-Bean for LODetails.LODetailsBackingBeanca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
d-bean-class>sessionSomething like that I did.But still - pressing the button does not do anything at all
So I am wondering if I did something wrong or if that is aJSF/MyFaces-issue.ThanksMatt-Original Message-From: hicham abassi [mailto:[EMAIL PROTECTED]
]Sent: Dienstag, 13. September 2005 12:59To: MyFaces DiscussionSubject: Re: [newbie] Navigation does not work1/ it seems that yo don't declared your bean LODetailsBackingBean intofaces-config.xml
 2/ you don't declared a string outcome viewuserratings forview-id LODetails.jsf2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:> I have started to create a simple MyFaces-App and encountered a
> problem with the navigation:> Pressing a button does not do anything.>> Some code sniplets:>> -> Page1:>> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib> uri="http://java.sun.com/jsf/core
" prefix="f" %> > basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"> var="MessageBundle"/>>>  > > >
>>
>
>
[..]>>
>
> action="">> value="#{MessageBundle.viewratingsbuttonlabel}" />>
>
[..]> > > > >> ---> Excerpt from faces-config:
>> > /LODetails.jsf> > /LORatings.jsf
> > >> -> Part of LODetailsBackingBean.java:>> public String viewUserRatings() {
> return "viewuserratings";> }>>> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE4.> I see the page1 but when I press the button, nothing happens.
>> Why?>> Thanks a lot>> Matt>>--hicham ABASSI[EMAIL PROTECTED]


Re: [newbie] Navigation does not work

2005-09-13 Thread Udo Schnurpfeil

Hi,

your may try for debugging:

1. remove "/LODetails.jsp" (is not needed 
for this test)


2. set action="viewuserratings" directly, instead of the bean method

3. check if the container really update your modified web-application 
(how do you deploy?)


Udo

Dexter Wong wrote:


Hi,
your sample worked for me. I am using
jboss 4.0.2
java 1.5.004
windows xp

I make some changes
0. changed files from *.jsf to *.jsp
1. my config files looks like


   /LODetails.jsp
   
   viewuserratings
   /LORatings.jsp
   
  


2. The LODetails.jsp is not using a resource file



On 9/13/05, *Matthias Klein* <[EMAIL PROTECTED] 
> wrote:


Actually, I did both but it did not change anything.

Here the more complete excerpts from faces-config:


/LODetails.jsf

viewuserratings
/LORatings.jsf




Backing-Bean for LODetails.
LODetailsBackingBean

ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean

session


Something like that I did.
But still - pressing the button does not do anything at all

So I am wondering if I did something wrong or if that is a
JSF/MyFaces-issue.

Thanks

Matt


-Original Message-
From: hicham abassi [mailto:[EMAIL PROTECTED]
]
Sent: Dienstag, 13. September 2005 12:59
To: MyFaces Discussion
Subject: Re: [newbie] Navigation does not work

1/ it seems that yo don't declared your bean LODetailsBackingBean into
faces-config.xml 2/ you don't declared a string outcome
viewuserratings for
view-id LODetails.jsf



2005/9/13, Matthias Klein <[EMAIL PROTECTED]
>:
 > I have started to create a simple MyFaces-App and encountered a
 > problem with the navigation:
 > Pressing a button does not do anything.
 >
 > Some code sniplets:
 >
 > -
 > Page1:
 >
 > <%@ page language="java" %>
 > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@
taglib
 > uri="http://java.sun.com/jsf/core "
prefix="f" %>  basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
 > var="MessageBundle"/>
 >
 > 

 > 
 > 
 > 
 >
 > 
 > 
 > [..]
 >
 > 
 >  action="#{LODetailsBackingBean.viewUserRatings}"
 > value="#{MessageBundle.viewratingsbuttonlabel}" />
 > 
 > [..]
 > 
 > 
 > 
 > 
 >
 > ---
 > Excerpt from faces-config:
 >
 > 
 > /LODetails.jsf
 > 
 > /LORatings.jsf
 > 
 > 
 >
 > -
 > Part of LODetailsBackingBean.java:
 >
 > public String viewUserRatings() {
 > return "viewuserratings";
 > }
 >
 >
 > I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through
MyEclipse IDE
4.
 > I see the page1 but when I press the button, nothing happens.
 >
 > Why?
 >
 > Thanks a lot
 >
 > Matt
 >
 >


--

hicham ABASSI
[EMAIL PROTECTED] 




--
Dipl.-Math. Udo Schnurpfeil - Executive Officer - Atanion GmbH
Software Development - Bismarckstraße 13 - 26122 Oldenburg - Germany
phone +49 441 4082310 - mobile +49 174 9784746 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com


RE: [newbie] Navigation does not work

2005-09-13 Thread Matthias Klein



What does "LODetails.jsp is not using a resource file" 
mean?
 
I changed jsf to jsp, too, but it still does not work. I 
assume there must be some tiny, little "stupid" mistake but I can't seem to find 
it.
 
Matt
 


From: Dexter Wong 
[mailto:[EMAIL PROTECTED] Sent: Dienstag, 13. September 2005 
14:07To: MyFaces DiscussionCc: 
[EMAIL PROTECTED]Subject: Re: [newbie] Navigation does not 
work
Hi,your sample worked for me. I am using jboss 4.0.2java 
1.5.004windows xpI make some changes0. changed files from *.jsf 
to *.jsp1. my config files looks 
like    
   
/LODetails.jsp   
   
viewuserratings   
/LORatings.jsp   
   
    2. The LODetails.jsp is not 
using a resource file
On 9/13/05, Matthias 
Klein <[EMAIL PROTECTED]> 
wrote:
Actually, 
  I did both but it did not change anything.Here the more complete 
  excerpts from 
  faces-config:/LODetails.jsf 
  viewuserratings/LORatings.jsf 
  Backing-Bean 
  for 
  LODetails.LODetailsBackingBeanca.gc.nrc.iit.toml.frontend.LODetailsBackingBean 
  d-bean-class>sessionSomething 
  like that I did.But still - pressing the button does not do anything at 
  all So I am wondering if I did something wrong or if that is 
  aJSF/MyFaces-issue.ThanksMatt-Original 
  Message-From: hicham abassi [mailto:[EMAIL PROTECTED] ]Sent: Dienstag, 13. 
  September 2005 12:59To: MyFaces DiscussionSubject: Re: [newbie] 
  Navigation does not work1/ it seems that yo don't declared your bean 
  LODetailsBackingBean intofaces-config.xml 2/ you don't declared a string 
  outcome viewuserratings forview-id LODetails.jsf2005/9/13, 
  Matthias Klein <[EMAIL PROTECTED]>:> I have 
  started to create a simple MyFaces-App and encountered a > problem with 
  the navigation:> Pressing a button does not do 
  anything.>> Some code sniplets:>> 
  -> Page1:>> <%@ page 
  language="java" %> > <%@ taglib uri="http://java.sun.com/jsf/html" 
  prefix="h" %> <%@ taglib> uri="http://java.sun.com/jsf/core " 
  prefix="f" %> > 
  basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"> 
  var="MessageBundle"/>>>  
  > 
  > 
  > 
  >> 
  > 
  > 
  [..]>> 
  > 
  > 
  action=""> 
  value="#{MessageBundle.viewratingsbuttonlabel}" 
  />> 
  > 
  [..]> 
  > 
  > 
  > >> 
  ---> Excerpt from 
  faces-config:>> 
  > 
  /LODetails.jsf> 
  > 
  /LORatings.jsf 
  > 
  > 
  >> 
  -> Part of 
  LODetailsBackingBean.java:>> public String viewUserRatings() { 
  > 
  return 
  "viewuserratings";> 
  }>>> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 
  through MyEclipse IDE4.> I see the page1 but when I press the 
  button, nothing happens. >> Why?>> Thanks a 
  lot>> Matt>>--hicham 
  ABASSI[EMAIL PROTECTED]


RE: [newbie] Navigation does not work

2005-09-13 Thread Matthias Klein
>1. remove "/LODetails.jsp" (is not needed for
this test)

I did that

> 2. set action="viewuserratings" directly, instead of the bean method

I did that

> 3. check if the container really update your modified web-application (how
do you deploy?)

I deploy out of MyEclipse IDE 4. The console says that it does deploy the
.war 

Unfortunately, none of the changes helped.
Pressing the button does not help at all.

Matt




Udo

Dexter Wong wrote:

> Hi,
> your sample worked for me. I am using
> jboss 4.0.2
> java 1.5.004
> windows xp
> 
> I make some changes
> 0. changed files from *.jsf to *.jsp
> 1. my config files looks like
> 
> 
>/LODetails.jsp
>
>viewuserratings
>/LORatings.jsp
>
>   
> 
> 2. The LODetails.jsp is not using a resource file
> 
> 
> 
> On 9/13/05, *Matthias Klein* <[EMAIL PROTECTED] 
> > wrote:
> 
> Actually, I did both but it did not change anything.
> 
> Here the more complete excerpts from faces-config:
> 
> 
> /LODetails.jsf
> 
> viewuserratings
> /LORatings.jsf
> 
> 
> 
> 
> Backing-Bean for LODetails.
> 
> LODetailsBackingBean
> 
> ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
>  d-bean-class>
> session
> 
> 
> Something like that I did.
> But still - pressing the button does not do anything at all
> 
> So I am wondering if I did something wrong or if that is a
> JSF/MyFaces-issue.
> 
> Thanks
> 
> Matt
> 
> 
> -Original Message-
> From: hicham abassi [mailto:[EMAIL PROTECTED]
> ]
> Sent: Dienstag, 13. September 2005 12:59
> To: MyFaces Discussion
> Subject: Re: [newbie] Navigation does not work
> 
> 1/ it seems that yo don't declared your bean LODetailsBackingBean into
> faces-config.xml 2/ you don't declared a string outcome
> viewuserratings for
> view-id LODetails.jsf
> 
> 
> 
> 2005/9/13, Matthias Klein <[EMAIL PROTECTED]
> >:
>  > I have started to create a simple MyFaces-App and encountered a
>  > problem with the navigation:
>  > Pressing a button does not do anything.
>  >
>  > Some code sniplets:
>  >
>  > -
>  > Page1:
>  >
>  > <%@ page language="java" %>
>  > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@
> taglib
>  > uri="http://java.sun.com/jsf/core "
> prefix="f" %>   > basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
>  > var="MessageBundle"/>
>  >
>  > 
> 
>  > 
>  > 
>  > 
>  >
>  > 
>  > 
>  > [..]
>  >
>  > 
>  >   > action="#{LODetailsBackingBean.viewUserRatings}"
>  > value="#{MessageBundle.viewratingsbuttonlabel}" />
>  > 
>  > [..]
>  > 
>  > 
>  > 
>  > 
>  >
>  > ---
>  > Excerpt from faces-config:
>  >
>  > 
>  > /LODetails.jsf
>  > 
>  > /LORatings.jsf
>  > 
>  > 
>  >
>  > -
>  > Part of LODetailsBackingBean.java:
>  >
>  > public String viewUserRatings() {
>  > return "viewuserratings";
>  > }
>  >
>  >
>  > I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through
> MyEclipse IDE
> 4.
>  > I see the page1 but when I press the button, nothing happens.
>  >
>  > Why?
>  >
>  > Thanks a lot
>  >
>  > Matt
>  >
>  >
> 
> 
> --
> 
> hicham ABASSI
> [EMAIL PROTECTED] 
> 
> 

--
Dipl.-Math. Udo Schnurpfeil - Executive Officer - Atanion GmbH Software
Development - Bismarckstraße 13 - 26122 Oldenburg - Germany phone +49 441
4082310 - mobile +49 174 9784746 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com



Re: [newbie] Navigation does not work

2005-09-13 Thread Udo Schnurpfeil

and you reload every time the 1st page before pressing the button?

Matthias Klein wrote:


1. remove "/LODetails.jsp" (is not needed for


this test)

I did that



2. set action="viewuserratings" directly, instead of the bean method



I did that



3. check if the container really update your modified web-application (how


do you deploy?)

I deploy out of MyEclipse IDE 4. The console says that it does deploy the
.war 


Unfortunately, none of the changes helped.
Pressing the button does not help at all.

Matt




Udo

Dexter Wong wrote:



Hi,
your sample worked for me. I am using
jboss 4.0.2
java 1.5.004
windows xp

I make some changes
0. changed files from *.jsf to *.jsp
1. my config files looks like

   
  /LODetails.jsp
  
  viewuserratings
  /LORatings.jsp
  
 


2. The LODetails.jsp is not using a resource file



On 9/13/05, *Matthias Klein* <[EMAIL PROTECTED] 
> wrote:


   Actually, I did both but it did not change anything.

   Here the more complete excerpts from faces-config:

   
   /LODetails.jsf
   
   viewuserratings
   /LORatings.jsf
   
   

   
   Backing-Bean for LODetails.
   
LODetailsBackingBean


   ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
   
   session
   

   Something like that I did.
   But still - pressing the button does not do anything at all

   So I am wondering if I did something wrong or if that is a
   JSF/MyFaces-issue.

   Thanks

   Matt


   -Original Message-
   From: hicham abassi [mailto:[EMAIL PROTECTED]
   ]
   Sent: Dienstag, 13. September 2005 12:59
   To: MyFaces Discussion
   Subject: Re: [newbie] Navigation does not work

   1/ it seems that yo don't declared your bean LODetailsBackingBean into
   faces-config.xml 2/ you don't declared a string outcome
   viewuserratings for
   view-id LODetails.jsf



   2005/9/13, Matthias Klein <[EMAIL PROTECTED]
   >:
> I have started to create a simple MyFaces-App and encountered a
> problem with the navigation:
> Pressing a button does not do anything.
>
> Some code sniplets:
>
> -
> Page1:
>
> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@
   taglib
> uri="http://java.sun.com/jsf/core "
   prefix="f" %>  basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
> var="MessageBundle"/>
>
> 
   
> 
> 
> 
>
> 
> 
> [..]
>
> 
> 

id="viewuserratings"


> action="#{LODetailsBackingBean.viewUserRatings}"
> value="#{MessageBundle.viewratingsbuttonlabel}" />
> 
> [..]
> 
> 
> 
> 
>
> ---
> Excerpt from faces-config:
>
> 
> /LODetails.jsf
> 
> /LORatings.jsf
> 
> 
>
> -
> Part of LODetailsBackingBean.java:
>
> public String viewUserRatings() {
> return "viewuserratings";
> }
>
>
> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through
   MyEclipse IDE
   4.
> I see the page1 but when I press the button, nothing happens.
>
> Why?
>
> Thanks a lot
>
> Matt
>
>


   --

   hicham ABASSI
   [EMAIL PROTECTED] 




--
Dipl.-Math. Udo Schnurpfeil - Executive Officer - Atanion GmbH Software
Development - Bismarckstraße 13 - 26122 Oldenburg - Germany phone +49 441
4082310 - mobile +49 174 9784746 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com




--
Dipl.-Math. Udo Schnurpfeil - Executive Officer - Atanion GmbH
Software Development - Bismarckstraße 13 - 26122 Oldenburg - Germany
phone +49 441 4082310 - mobile +49 174 9784746 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com


RE: [newbie] Navigation does not work

2005-09-13 Thread Matthias Klein
Yes.

For some reason I get the feeling that the Backing Bean is never called and
I have no idea why. For instance, if I implement a simple
System.out.println("test"); in the Backing Bean method, it SHOULD produce
some console output but it doesnt.
But I can't find the problem.

I assume it is one of those tiny yet "stupid" newbie problems but I can't
wrap my brain around it...

Matt

Should I attach the entire .war to one of these mails so you can take a
closer look?


-Original Message-
From: Udo Schnurpfeil [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 13. September 2005 14:30
To: MyFaces Discussion
Subject: Re: [newbie] Navigation does not work

and you reload every time the 1st page before pressing the button?

Matthias Klein wrote:

>>1. remove "/LODetails.jsp" (is not needed 
>>for
> 
> this test)
> 
> I did that
> 
> 
>>2. set action="viewuserratings" directly, instead of the bean method
> 
> 
> I did that
> 
> 
>>3. check if the container really update your modified web-application 
>>(how
> 
> do you deploy?)
> 
> I deploy out of MyEclipse IDE 4. The console says that it does deploy 
> the .war
> 
> Unfortunately, none of the changes helped.
> Pressing the button does not help at all.
> 
> Matt
> 
> 
> 
> 
> Udo
> 
> Dexter Wong wrote:
> 
> 
>>Hi,
>>your sample worked for me. I am using
>>jboss 4.0.2
>>java 1.5.004
>>windows xp
>>
>>I make some changes
>>0. changed files from *.jsf to *.jsp
>>1. my config files looks like
>>
>>
>>   /LODetails.jsp
>>   
>>   viewuserratings
>>   /LORatings.jsp
>>   
>>  
>>
>>2. The LODetails.jsp is not using a resource file
>>
>>
>>
>>On 9/13/05, *Matthias Klein* <[EMAIL PROTECTED] 
>>> wrote:
>>
>>Actually, I did both but it did not change anything.
>>
>>Here the more complete excerpts from faces-config:
>>
>>
>>/LODetails.jsf
>>
>>viewuserratings
>>/LORatings.jsf
>>
>>
>>
>>
>>Backing-Bean for LODetails.
>>
>>LODetailsBackingBean
>>
>>ca.gc.nrc.iit.toml.frontend.LODetailsBackingBean
>>>d-bean-class>
>>session
>>
>>
>>Something like that I did.
>>But still - pressing the button does not do anything at all
>>
>>So I am wondering if I did something wrong or if that is a
>>JSF/MyFaces-issue.
>>
>>Thanks
>>
>>Matt
>>
>>
>>-Original Message-
>>From: hicham abassi [mailto:[EMAIL PROTECTED]
>>]
>>Sent: Dienstag, 13. September 2005 12:59
>>To: MyFaces Discussion
>>Subject: Re: [newbie] Navigation does not work
>>
>>1/ it seems that yo don't declared your bean LODetailsBackingBean into
>>faces-config.xml 2/ you don't declared a string outcome
>>viewuserratings for
>>view-id LODetails.jsf
>>
>>
>>
>>2005/9/13, Matthias Klein <[EMAIL PROTECTED]
>>>:
>> > I have started to create a simple MyFaces-App and encountered a
>> > problem with the navigation:
>> > Pressing a button does not do anything.
>> >
>> > Some code sniplets:
>> >
>> > -
>> > Page1:
>> >
>> > <%@ page language="java" %>
>> > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@
>>taglib
>> > uri="http://java.sun.com/jsf/core "
>>prefix="f" %> > > basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
>> > var="MessageBundle"/>
>> >
>> > 
>>
>> > 
>> > 
>> > 
>> >
>> > 
>> > 
>> > [..]
>> >
>> > 
>> >  
> id="viewuserratings"
> 
>> > action="#{LODetailsBackingBean.viewUserRatings}"
>> > value="#{MessageBundle.viewratingsbuttonlabel}" />
>> > 
>> > [..]
>> > 
>> > 
>> > 
>> > 
>> >
>> > ---
>> > Excerpt from faces-config:
>> >
>> > 
>> > /LODetails.jsf
>> > 
>> > /LORatings.jsf
>> > 
>> > 
>> >
>> > -
>> > Part of LODetailsBackingBean.java:
>> >
>> > public String viewUserRatings() {
>> > return "viewuserratings";
>> > }
>> >
>> >
>> > I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through
>>MyEclipse IDE
>>4.
>> > I see the page1 but when I press the button, nothing happens.
>> >
>> > Why?
>> >
>> > Thanks a lot

Re: [newbie] Navigation does not work

2005-09-13 Thread Udo Schnurpfeil

For some reason I get the feeling that the Backing Bean is never called and
I have no idea why. For instance, if I implement a simple
System.out.println("test"); in the Backing Bean method, it SHOULD produce
some console output but it doesnt.

that is the reason, why I've told you to try set action="viewuserratings"


Should I attach the entire .war to one of these mails so you can take a
closer look?

Why not.  But add the source *.java file.


Re: PhaseListener

2005-09-13 Thread Werner Punz

[EMAIL PROTECTED] wrote:

Hello!

I have created a own custom component and made jar file. But if I use it in 
another project, my java files could not find the images and javascripts.

I heard from the PhaseLIstener. But I don't know how to use and whether I 
should use it or not.

Does someone know a good example or can me tell what I have to do?

Thanks
shed

--
Ein Service von http://www.sms.at


Phase listeners are classes which are event listeners on the different 
phases.
They are called centrally and have to filter their trigger criterion 
themselves.


You sort of can see them as central event listeners on the JSF Rendering 
cycle.


Phase listeners are very helpful if you want to add some servlet like
functionality without having to define a servlet.
For instance you can use them to trigger a javascript rendering and 
serve the javascript from inside a jar that way.


public class RenderScriptPhaseListener implements PhaseListener {


public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
}
public void renderScript(PhaseEvent event, String resourceLocation) {

InputStream stream = null;
BufferedReader bufReader = null;
		HttpServletResponse response = (HttpServletResponse) 
event.getFacesContext().getExternalContext().getResponse();

OutputStreamWriter outWriter = null;
String curLine = null;

try {
			outWriter = new OutputStreamWriter(response.getOutputStream(), 
response.getCharacterEncoding());
			stream = new 
BufferedInputStream(RenderScriptPhaseListener.class.getResourceAsStream(resourceLocation));

bufReader = new BufferedReader(new 
InputStreamReader(stream));  
while (null != (curLine = bufReader.readLine())) {
outWriter.write(curLine + "\n");
}
outWriter.flush();

outWriter.close();
event.getFacesContext().responseComplete();
} catch (Exception e) {
String message = "Can't load script file:" + 
resourceLocation;
System.err.println(message);
e.printStackTrace();
}
}


public void afterPhase(PhaseEvent event) {
String rootId = 
event.getFacesContext().getViewRoot().getViewId();

if (rootId.endsWith(ScriptController.FAT_VIEW_ID)) {
handleFatEvent(event);

}
}

void handleFatEvent(PhaseEvent event) {
renderScript(event, ScriptController.SCRIPT_RESOURCE_FAT);
}

}

ublic class ScriptController {
public static final String  SCRIPT_RESOURCE_FAT = 
"/somepath/fat.js";

...


This should give you the idea the main points are:

the main point is


public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
}

this one tells the that the listener is only allowed to trigger at the 
restore view phase


ublic void afterPhase(PhaseEvent event) {
String rootId = 
event.getFacesContext().getViewRoot().getViewId();

if (rootId.endsWith(ScriptController.FAT_VIEW_ID)) {
handleFatEvent(event);

}
}

and that one is called after the phase... there the script is rendered 
with standard java and httprequest mechanisms




Re: duplicated messages useing addMessage and aliasBean

2005-09-13 Thread Michael Jenik
thanks Rashmi,

But the problem is not so basic like that.
MessageFactory.getMessage(context,"myMessageID")
gets a FacesMessage from a bundle. It's just that.
The duplicated behaviour is the same if I use "new
FacesMessage".

The problema seams to be that when each bean ask for
the FacesContext to addMessages, thay get the same
faces context each other.
Like each bean is related with a tagfile which
renderes a table, the messages of boths beans apears
duplicated inside each of those tables.




I think it's an aliasBean problem related.

Can anybody help me with this?
I just used aliasBean to pack repeated code units in
tagfiles. I could try portlets, but I still havn't
learned how to use them. Do they work fine for this?

Regards

Michael






--- Rashmi Kumari <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
> Instead of 
> MessageFactory.getMessage(context,"myMessageID")
> 
> you can use  new FacesMessage("Message to print",
> "")
> 
> Thanx and Regards
> 
> Rashmi
> 
> 
> 
> 
> 
> 
>
> Michael Jenik   
> 
>
> <[EMAIL PROTECTED]   To:
> users@myfaces.apache.org
>
> ahoo.com>cc:
> 
>
>  Subject:   
>  duplicated messages useing addMessage and aliasBean
>
> 09/13/2005  
> 
>
> 01:09 AM
> 
>
> Please respond  
> 
>
> to "MyFaces 
> 
>
> Discussion" 
> 
>
> 
> 
>
> 
> 
> 
> 
> hello,
> 
> I have a problem.
> 
> I have a bean "SmallBean" which performs this:
> 
> FacesContext context =
> FacesContext.getCurrentInstance();
>
context.addMessage(null,MessageFactory.getMessage(context,"myMessageID"));
> 
> 
> 
> The bean is used into a Tagfile called in this way.
> 
> 
> 
> alias="#{laBean}"
> value="#{BigBean.desde}">
>  
>
>  
>
> 
> alias="#{laBean}"
> value="#{BigBean.hasta}">
>  
>
>  
>
> 
> 
> 
> 
> Note that BigBean has two properties : desde and
> hasta
> of type SmallBean.
> And the file untag.tag has a  id="menssageLabel" style="color: red"/> tag in
> somewhere.
> 
> 
> The problem Is that the messages generated by both
> SmallBean are rendered together and duplicated in
> the
> "desde" rendered part and in the "hasta" rendered
> part.
> 
> 
> Is the first parameter of addMessage useful to aboid
> this behaviour ? How can I workarround this problem?
> 
> Thanks in Advance.
> 
> Michael
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> 
> 
> 
> 


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


Re: duplicated messages useing addMessage and aliasBean

2005-09-13 Thread Mike Kienenberger
Oops.   I just posted the answer to this on dev.   Please don't
cross-post your questions, and don't post questions about using
MyFaces on the dev list.   The dev list is for discussing changes to
the MyFaces project, not for discussion on how to use it in your own
projects.

Thanks,

-Mike

On 9/12/05, Michael Jenik <[EMAIL PROTECTED]> wrote:
> hello,
> 
> I have a problem.
> 
> I have a bean "SmallBean" which performs this:
> 
> FacesContext context =
> FacesContext.getCurrentInstance();
> context.addMessage(null,MessageFactory.getMessage(context,"myMessageID"));
> 
> 
> 
> The bean is used into a Tagfile called in this way.
> 
> 
> 
>  value="#{BigBean.desde}">
> 
> 
> 
> 
> 
>  value="#{BigBean.hasta}">
> 
> 
> 
> 
> 
> 
> 
> 
> Note that BigBean has two properties : desde and hasta
> of type SmallBean.
> And the file untag.tag has a  id="menssageLabel" style="color: red"/> tag in
> somewhere.
> 
> 
> The problem Is that the messages generated by both
> SmallBean are rendered together and duplicated in the
> "desde" rendered part and in the "hasta" rendered
> part.
> 
> 
> Is the first parameter of addMessage useful to aboid
> this behaviour ? How can I workarround this problem?
> 
> Thanks in Advance.
> 
> Michael
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


Re: [newbie] Navigation does not work

2005-09-13 Thread Udo Schnurpfeil

I assume it is one of those tiny yet "stupid" newbie problems but I can't
wrap my brain around it...


Okay, I've found it ;-)
Your have used the f:view tag 2 times on one page.
That is not allowed and will evidently confusing the framework.


Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
I currently have a DataTable built from a ListDataModel that takes my 
List. I want to implement column sorting, so I'm just beginning to look 
at the Car sort example of MyFaces.


Will the sort work on the front end if you use a ListDataModel vs a 
direct List in your DataTable?


--
Rick


Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Mathias Brökelmann
Yes it should work.

2005/9/13, Rick Reumann <[EMAIL PROTECTED]>:
> I currently have a DataTable built from a ListDataModel that takes my
> List. I want to implement column sorting, so I'm just beginning to look
> at the Car sort example of MyFaces.
> 
> Will the sort work on the front end if you use a ListDataModel vs a
> direct List in your DataTable?
> 
> --
> Rick
> 


-- 
Mathias


[ANN] [STRUTS/JSF] BOF XII / Belgo Central / Tuesday 20th Sept 2005 / 18:45

2005-09-13 Thread Pilgrim, Peter
Greetings

I am very pleased to announce that the ``Struts / JSF London Network''
is meeting for the twelfth bird-of-feather discussions 

This event will be taking place at the

``Belgo Central Restaurant'' at 6:45PM on Tuesday, 20th September, 2005.


50 Earlham Street, 
Covent Garden, 
London, 
United Kingdom
WC2H 9HP
  

Nearest Tube: Covent Garden
Cuisine: Belgian
Telephone: 020 7813 2233 

For an ajax Google Map click here
http://www.london-eating.co.uk/maps/248.asp

For the more traditional street map try this
http://www.streetmap.co.uk/newmap.srf?x=530189&y=181082&z=0&sv=WC2H+9HP&st=2&pc=WC2H+9HP&mapp=newmap.srf&searchp=newsearch.srf


(1) It's ok to bring a friend or colleague.
(2) My choice would have been china town.


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==



t:column width issue, was: Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann

Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM:

Yes it should work.


This is odd. I'm using the nightly build of myfaces-all, but when the 
table resorts it doesn't produce the 'width' attribute on the td:




Before clicking on a column to sort, the table correctly generates a width="280", after clicking on a column to sort, the width is no longer 
present in the generated source.


Any ideas what could be going wrong?

--
Rick


Re: Hibernate: 1-to-many --> struggling

2005-09-13 Thread Dave
when i changed it to List from Collection, but it did not solve the problem. I appreiciate it if you could show me a little bit psuedo code for manage collection of One-To-Many mapping.Rafael Nami <[EMAIL PROTECTED]> wrote:
I'm not an expert in this, but I think if you use another type ofcollection, like a Set or a List, this behavior won't occur. I usuallyuse Sets to many to many and Lists to bidirecional relations.Hope that it helpsRafael Mauricio Nami2005/9/12, Dave <[EMAIL PROTECTED]>:> I am struggling with Hibernate 1-to-many mapping(collection). > Could someone tell me how to manage the collection of one-to-many mapping? a> little code will be very helpful.> > I have a very simple one-to-many relationship: an Item has many Picture(s). > > ENTITY -- Item > @... > public class item { > private Collection pictures; > private Integer id; > > // getter/setter for id and @Id(...) > > > @OneToMany(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER,>
 mappedBy="item") > public Collection getPictures() { > return pictures; > } > > public void setPictures(Collection pictures) { > this.pictures = pictures; > } > > public void addPicture(Picture p) { > > if (pictures == null) > pictures = new ArrayList(); > pictures.add(p); > > } > } > > ENTITY Picture -- > @  > public class Picture { > private Item item; > private Integer id; > > // constructor > public Picture(Item item, ) { > this.item = item; >  > } > // getter/setter for id and @Id(...) > > @ManyToOne > @JoinColumn(name="itemId") > public Item getItem() { > return item; > } > > public void setItem(Item item) { > this.item = item; > } > } > > I create an Item in persisten
 ce
 without any pictures. Then use a session> bean to add pictures to the item. > > Session Bean -- > > @Stateless > public class ItemManagerBean implements ItemManager { > > public void addPictureToItem(Item item, Picture p) { > item.addPicture(p); > em.merge(item); > } > > } > > The merge() ignores those pictures that are already in persistence. > Add picture P1: ---> persistence: P1, ( great!) > Add picture P2 ---> persistence: P1, P1, P2 (P1 duplicated) > Add picture P3 ---> persistence: P1, P1, P2, P1, P2, P3 > > Obviously, the merge() ignored what are already in persistence. All pictures> has Id. EM.merge() should be able to know P1 is already in persistence when> adding P2. > > I f I do not call merge(), nothing will be persisted. > > I do this from Web GUI. Transaction is
 thread-based.(default) > > Do I miss anything? or Is this a Hibernate bug ? > > > - > > I tried one thing: Create a picture in persistence using another session> bean. Then use em.refresh(item). First time it works, and I can see the> picture from item.getPictures(). > Then I create another picture the same way, and call em.refresh(item) again,> but this time item.getPictures() does not have the second picture. > Not that I have changed the Cascade type to REFRESH. > > Basically what is the way to manage the collection in one-to-many mapping? > > I am using JBoss 4.0.3RC1 on XP. > > Please help! Thank you. > > Dave > > > > __> Do You Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.co
 m
 -- Java - Assim no Server como no PalmJava - thus in the Server as it is in Palm
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 


OT: Re: Hibernate: 1-to-many --> struggling

2005-09-13 Thread Dave
Thanks for help. I am using Hibernate with J2EE, not standalone. I do not have access to hibernate configuration file. Everything is annotation. Duncan Krebs <[EMAIL PROTECTED]> wrote:
Hey,Here are my two cents. The biggest obstacle with Hibernate is figuring outhow to correctly map the stupid collections and relationships that aremodeled in your object model. I did not take the time to look at all yourcode but maybe this will help you out:Simple situation. You have a class say CarItem and it has an ArrayList ofCarPictures.Hibernate requirements for mapping collections:The collection must be an interface. The two most common ones you will useis either a list or a set. A set garunetess that objects in its collectionare unique, however and kind of annoyinng a set does not gaurnetee orpreserve the order of objects that you add to it. A list does.Back to the example, writing the java objects is the easy part.CarItem() {List carPictures = new ArrayList();etc...}now we
 want to create a hibernate mapping file for this...its a list so we use the list element off the of the root .hbm configelement.Create a list with the name attribute equal to the collection interfaceproperty name.Wow the more I think about this the more I realize I'm rewriting whats inthe doucmentation. I was just there yesterday go tohttp://www.hibernate.org/hib_docs/v3/reference/en/html/collections.html and<
 BR>setup
 the examples in your dev environment, its not rocket science once youget it you'll feel on top of your world. - Duncan- Original Message - From: "Rafael Nami" <[EMAIL PROTECTED]>To: "MyFaces Discussion" Sent: Monday, September 12, 2005 8:31 PMSubject: Re: Hibernate: 1-to-many --> strugglingI'm not an expert in this, but I think if you use another type ofcollection, like a Set or a List, this behavior won't occur. I usuallyuse Sets to many to many and Lists to bidirecional relations.Hope that it helpsRafael Mauricio Nami2005/9/12, Dave <[EMAIL PROTECTED]>:> I am struggling with Hibernate 1-to-many mapping(collection).> Could someone tell me how to manage the collection of one-to-many mapping?a> little code will be very helpful.>> I have a ver
 y simple
 one-to-many relationship: an Item has manyPicture(s).>> ENTITY -- Item> @...> public class item {> private Collection pictures;> private Integer id;>> // getter/setter for id and @Id(...)>>> @OneToMany(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER,> mappedBy="item")> public Collection getPictures() {> return pictures;> }>> public void setPictures(Collection pictures) {> this.pictures = pictures;> }>> public void addPicture(Picture p) {>> if (pictures == null)> pictures = new ArrayList();> pictures.add(p);>> }> }>> ENTITY Picture -- > @ > public class Picture {> private Item item;> private Integer id;>> // constructor> public Picture(Item item, ) {> this.item = item;> > }&
 gt; //
 getter/setter for id and @Id(...)>> @ManyToOne> @JoinColumn(name="itemId")> public Item getItem() {> return item;> }>> public void setItem(Item item) {> this.item = item;> }> }>> I create an Item in persistence without any pictures. Then use a session> bean to add pictures to the item.>> Session Bean -- >> @Stateless> public class ItemManagerBean implements ItemManager {>> public void addPictureToItem(Item item, Picture p) {> item.addPicture(p);> em.merge(item);> }>> }>> The merge() ignores those pictures that are already in persistence.> Add picture P1: ---> persistence: P1, ( great!)> Add picture P2 ---> persistence: P1, P1, P2 (P1 duplicated)> Add picture P3 ---> persistence: P1, P1, P2, P1, P2, P3>> Obviously, the merge() ignored what 
 are
 already in persistence. Allpictures> has Id. EM.merge() should be able to know P1 is already in persistencewhen> adding P2.>> I f I do not call merge(), nothing will be persisted.>> I do this from Web GUI. Transaction is thread-based.(default)>> Do I miss anything? or Is this a Hibernate bug ?>>> - >> I tried one thing: Create a picture in persistence using another session> bean. Then use em.refresh(item). First time it works, and I can see the> picture from item.getPictures().> Then I create another picture the same way, and call em.refresh(item)again,> but this time item.getPictures() does not have the second picture.> Not that I have changed the Cascade type to REFRESH.>> Basically what is the way to manage the collection in one-to-many mapping?>> I am using JBoss 4.0.3RC1 on XP.>&g
 t;
 Please help! Thank you.>> Dave __> Do You Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around> http://mail.yahoo.com-- Java - Assim no Server como no PalmJava - thus in the Server as it is in Palm
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 


OT: RE: Hibernate: 1-to-many --> struggling

2005-09-13 Thread Dave
Thanks for pointing me to the right place. I had tried other forums such as jboss before asking for help here. Sorry."David G. Friedman" <[EMAIL PROTECTED]> wrote:
+1 And in the beginning G-d (okay, not G-d but some human)created http://forums.hibernate.org.How do I know? I've used it before both to ask AND answerhibernate questions. Go forth, and hibernate-ify!Regards,David (witty after the Sun goes down, eh?)-Original Message-From: Dennis Byrne [mailto:[EMAIL PROTECTED]Sent: Monday, September 12, 2005 10:18 PMTo: MyFaces DiscussionSubject: Re: Hibernate: 1-to-many --> struggling> I am struggling with Hibernate 1-to-manyAnd I am struggling to see what's so difficult about posting this on the Hibernate forum.Dennis Byrne
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 


Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann

Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM:

Yes it should work.


Things are also getting really screwed up after a sort takes place and 
then I try to get a handle the row selected by doing...


this.employee = 
(EmployeeVO)getEmployeesListBean().getEmployeesModel().getRowData();


After a sort takes place, I am no longer able to get the correct row 
that is selected.


I am even using two methos now in my EmployeesListBean:

public ListDataModel getEmployeesModelSorted()  {
log.debug("getEmployeesModelSorted");
sort(getSort(), isAscending());
return model;
}

 public ListDataModel getEmployeesModel()  {
log.debug("getEmployeesModelUnsorted");
 //don't sort here since this method gets called from EmployeeAction
return model;
}

The JSP is using:

the sort method, sorts just like it does in the car example, but I also 
am reinitializing the Model...


Collections.sort(employees, comparator);
 //repopulate DataModel, since we just sorted
 model = new ListDataModel( employees );

The regular getEmployeesModel() method doesn't call the sort method so I 
thought that would mean I'd be able to get a handle to the correct row 
selected by the user, but something isn't working correctly.



--
Rick


Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann

Rick Reumann wrote the following on 9/13/2005 2:57 PM:

Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM:


Yes it should work.



Things are also getting really screwed up after a sort takes place and 
then I try to get a handle the row selected by doing...


this.employee = 
(EmployeeVO)getEmployeesListBean().getEmployeesModel().getRowData();



Narrowing this down a bit more. I notice the above is always grabbing 
the 'last row' in the DataModel, regardless of which one is selected. So 
after a sort and you click on the "edit" button on the row, it will 
bring back the last row regardless of which one is clicked on from...


action="#{employeeAction.prepareForEdit}"/>


prepareForEdit() has the
this.employee = 
(EmployeeVO)getEmployeesListBean().getEmployeesModel().getRowData();



After a sort takes place, I am no longer able to get the correct row 
that is selected.


I am even using two methos now in my EmployeesListBean:

public ListDataModel getEmployeesModelSorted()  {
log.debug("getEmployeesModelSorted");
sort(getSort(), isAscending());
return model;
}

 public ListDataModel getEmployeesModel()  {
log.debug("getEmployeesModelUnsorted");
 //don't sort here since this method gets called from EmployeeAction
return model;
}

The JSP is using:

the sort method, sorts just like it does in the car example, but I also 
am reinitializing the Model...


Collections.sort(employees, comparator);
 //repopulate DataModel, since we just sorted
 model = new ListDataModel( employees );

The regular getEmployeesModel() method doesn't call the sort method so I 
thought that would mean I'd be able to get a handle to the correct row 
selected by the user, but something isn't working correctly.






--
Rick


Fwd: duplicated messages useing addMessage and aliasBean

2005-09-13 Thread Mike Kienenberger
Answers inline.

On 9/13/05, Michael Jenik <[EMAIL PROTECTED]> wrote:
> 2)I gess it is in this way but, are boths page and
> dataModel are managed beans delcared in a
> faces-config.xml file?

Yes, they're just placeholders for whatever backing beans you want to use.

> 3)Is there any way of get the reference to UIcomponent
> (or the value of
> .getClientId(facesContext)
> ) without using a "binding to page-bean objects" way?

There's a UIComponent.findComponent method, but why would you not want
to use the binding attribute?   That's what it's there for.
findComponent() is generally used to find find one component relative
to another one.   findComponent will also require that you hardcode
your form ids into your java code.

> 4)
> Does this returns the id of the UIcomponent tag
> :.getClientId(facesContext)
> ??

It returns the client Id which isn't quite the same thing as the id.
I believe the clientId is the fully-qualified version of the id that
takes into account all NamingContainers above it.  (For example,
"myForm:myId."  However, this is guesswork on my part -- you'll have
to research it yourself if it's important to you.


HTML Editor in 1.0.9.zip

2005-09-13 Thread Deepinder Singh
Title: HTML Editor in 1.0.9.zip






Hello,

 Is there a problem with showTableToolBox option in HTML Editor in 1.0.9. I am unable to hide it.  Also, the editor itslef is always read only.   Is anyone else facing this problem?

Thanks,

deepinder



___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.



RE: [newbie] Navigation does not work

2005-09-13 Thread Matthias Klein
Thank you so much for your help today.
Indeed, that was the problem. Now everything is working fine.
Thanks!
Matt


-Original Message-
From: Udo Schnurpfeil [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 13. September 2005 16:37
To: MyFaces Discussion
Subject: Re: [newbie] Navigation does not work

> I assume it is one of those tiny yet "stupid" newbie problems but I 
> can't wrap my brain around it...

Okay, I've found it ;-)
Your have used the f:view tag 2 times on one page.
That is not allowed and will evidently confusing the framework.



inputSuggestAjax support in JSF-RI?

2005-09-13 Thread Michael Youngstrom
Is inputSuggestAjax supposed to work in JSF-RI?  If not is it on
the horizon?  In Mozilla when I attempt to use it with the JSF-RI
I get the _javascript_ error:

Error: document.getElementById("jsf_tree_64") has no properties

Thanks,
Mike



Re: inputSuggestAjax support in JSF-RI?

2005-09-13 Thread Matthias Wessendorf
yes, that is write

currently this component is only working w/ MyFaces

The reason is that in JSF 1.1 the it belongs to the implementation to
care about hidden field for client side state saving. JSF 1.2 has
fixed that. There will be a specified parameter for that
(javax.faces.ViewState). See also [1]

Sun uses currently "com.sun.faces.View". This case is not addressed w/
inputSuggestAjax of [sandbox].

In [2] there are ideas for solving that issue w/ RI. I mean the
progress bar component.

I hope that will give you an idea ;)

-Matthias

[1] http://weblogs.java.net/blog/edburns/archive/2005/08/javaserver_face_3.html
[2] https://bpcatalog.dev.java.net/nonav/ajax/progress-bar-jsf/frames.html



On 9/13/05, Michael Youngstrom <[EMAIL PROTECTED]> wrote:
> Is inputSuggestAjax supposed to work in JSF-RI?  If not is it on the
> horizon?  In Mozilla when I attempt to use it with the JSF-RI I get the
> javascript error:
>  
>  Error: document.getElementById("jsf_tree_64") has no properties
>  
>  Thanks,
>  Mike
>  
>  


-- 
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln


Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
Removing "preserveState='true'" from the DataTable seemed to fix the 
problem.


Rick Reumann wrote the following on 9/13/2005 3:08 PM:

Rick Reumann wrote the following on 9/13/2005 2:57 PM:


Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM:


Yes it should work.




Things are also getting really screwed up after a sort takes place and 
then I try to get a handle the row selected by doing...


this.employee = 
(EmployeeVO)getEmployeesListBean().getEmployeesModel().getRowData();




Narrowing this down a bit more. I notice the above is always grabbing 
the 'last row' in the DataModel, regardless of which one is selected. So 
after a sort and you click on the "edit" button on the row, it will 
bring back the last row regardless of which one is clicked on from...


action="#{employeeAction.prepareForEdit}"/>


prepareForEdit() has the
this.employee = 
(EmployeeVO)getEmployeesListBean().getEmployeesModel().getRowData();



After a sort takes place, I am no longer able to get the correct row 
that is selected.


I am even using two methos now in my EmployeesListBean:

public ListDataModel getEmployeesModelSorted()  {
log.debug("getEmployeesModelSorted");
sort(getSort(), isAscending());
return model;
}

 public ListDataModel getEmployeesModel()  {
log.debug("getEmployeesModelUnsorted");
 //don't sort here since this method gets called from EmployeeAction
return model;
}

The JSP is using:

the sort method, sorts just like it does in the car example, but I 
also am reinitializing the Model...


Collections.sort(employees, comparator);
 //repopulate DataModel, since we just sorted
 model = new ListDataModel( employees );

The regular getEmployeesModel() method doesn't call the sort method so 
I thought that would mean I'd be able to get a handle to the correct 
row selected by the user, but something isn't working correctly.









--
Rick


Re: inputSuggestAjax support in JSF-RI?

2005-09-13 Thread Matthias Wessendorf
> yes, that is write
I had to write right ... :)


Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann

Rick Reumann wrote the following on 9/13/2005 3:47 PM:
Removing "preserveState='true'" from the DataTable seemed to fix the 
problem.


However I'm still having the problem where

 is not being preserved after the resort 
(attribute width not shoing up in source code)


--
Rick


Faces Application State

2005-09-13 Thread Patrick Dalla Bernardina

How do I reset the state of a faces application?

I'm developing portlets with myfaces and when I navigate in my portlet 
and goes to EDIT mode I call nonFacesRender to render a page different 
from the faces-config.xml specification. This is functioning well. But, 
just after that, when I maximize the portlet, the page before I enter 
edit mode is displayed.


I want to keep the default edit page when changing window state.

Does anybody solved this problem?


Possible Bug in nightly build - t:column width attribute?

2005-09-13 Thread Rick Reumann

Not sure if this is a bug or something odd with my code..

Using the nightly myfaces-all build from 9/11, if I have:



and



Both will render correctly on the first display of the page.

However, I've impelemented some column sorting, similar to the MyFaces 
Car sort example, and when the page reloads after clicking on a column 
heading, the "style" attribute is generated just fine, but the "width" 
attribute is not generated at all.


Seems odd that the style attribute works but the width does not. This 
seems like a bug, doesn't it?


--
Rick


View serialization behavior after direct write stream to HttpServletResponse

2005-09-13 Thread Zhu, Da-Zhi (TSG-GDCC-DL)
My situation is as following:
STATE_SAVING_METHOD is server.
The jsp uses x:panelTabbedPane and contains three x:panelTab, one of 
three panelTabs contains a x:dataTable with a x:commandSortHeader and an 
attached x:dataScroller , we have used x:saveState to achieve state saving of 
this view.
The problem is there is a "Export XML" button here to  export data in 
dataTable to user, When user click this button, data will be transferred to 
client and user will be asked to provide a path to store the data as a file, 
And after that, user will still be at this page. To achieve that, we get 
HttpServletResponse instance and write stream to it and set 
"Content-disposition" header ,call responseComplete, then return null in 
"Export XML" action.And I found I must add following code to save 
SerializedView to stateManager myself.If not, The next request will be 
recognized as a "not postback" request which is incorrect.

StateManager stateManager = 
FacesContext.getCurrentInstance().getApplication().getStateManager();
//save state in server
stateManager.saveSerializedView(FacesContext.getCurrentInstance());

The point is state of SerializedView will be removed if myfaces found 
the request is a postback request at Restore View phase, And the action of 
saveSerializedView is called when myfaces renders jsp file at Render Response 
phase which is skipped by responseComplete at our situation.

My question is Am I doing the thing right? Is my solution the guys who 
designs JSF expected? Or any other solution more clean and comfortable?

By the way, we are not allowed to use AJAX or any other javascript to 
achieve this.

 **
 Zhu Da Zhi
 Japan DDC Section
 Global Delivery China Center (GDCC)
 Hewlett-Packard co, Ltd.
 Tel: +86-411-8880-5034
 **


Re: [ANNOUNCE] MyFaces passed the JSF TCK 1.1

2005-09-13 Thread Sean Schofield
Release should be available soon.  Don't go posting any announcements
anywhere until we are official.  The committers are retesting the
official release as we speak.  An official release takes a few days to
go through the ASF process (including mirroring.)  So we're probably
looking at Sunday or Monday.

Thanks to everyone who helped make this possible.  The community is
getting very active and we can expect a flood of new people to our
little community once the release is official.

sean


On 9/13/05, Korhonen, Kalle <[EMAIL PROTECTED]> wrote:
> Congrats! Very very good news, and thanks for saving my ass as well (you
> know the typical - it's a beta?!! Why are we even discussing using beta
> software? I've been saying MyFaces will be "ready" i.e. blessed before
> our stuff is and this came just in time).
> 
> Kalle
> 
> > -Original Message-
> > From: Manfred Geiler [mailto:[EMAIL PROTECTED]
> > Sent: Monday, September 12, 2005 6:12 AM
> > To: MyFaces Development; MyFaces Discussion
> > Subject: [ANNOUNCE] MyFaces passed the JSF TCK 1.1
> >
> > The MyFaces team is very proud to announce the fact, that the
> > current codebase has just passed *all* JSF TCK 1.1 tests!
> >
> > This is a great milestone (actually the greatest since
> > MyFaces has started in 2003) and we are all looking forward
> > to releasing the first official certified free open source
> > JSF implementation "Apache MyFaces 1.1.0" soon (after
> > clarifying some legal and technical stuff).
> >
> > Thanks to every single contributor, who helped making MyFaces
> > another open source success story.
> >
> > 
> > ...
> > ...
> > ...
> >  Thank you very much!
> > 
> >
> > Let's head for the next challenges: beat ALL bugs :), JSF
> > 1.2, JSF 2.0, ...
> >
> > Manfred Geiler
> >
>