Re: Bean definition question faces-config.xml

2005-12-07 Thread Martin Marinschek
If you use the jsf-spring integration library, you can use spring
beans from JSF. Maybe this solves your problems?

regards,

Martin

On 12/7/05, Kurt Edegger [EMAIL PROTECTED] wrote:
 Thank you for your fast response!


 on 12/6/2005 7:39 PM Simon Kitching stated:
  [...snip...]
  This is definitely not a feature of the JSF specification, and MyFaces
  can't add any new tags to the faces-config.xml file without violating
  the spec.
 Ok, short and precise answer ;)
  [...snip...]
  You can also do initialisation after all the properties have been set.
  See the FAQ entry How do I know when a managed bean's properties have
  all been set?.
 There's a method called initDao() in the class
 org.springframework.jdbc.core.support.JdbcDaoSupport which should be
 overwritten in a case you need to init a DAO (which is the case in my
 situation).
 But this one is not called by JSF right? So I'd need to use spring to
 construct the bean?

 Thank you for pointing to the FAQ - missed that one ..

 Take care, Kurt
 
  http://wiki.apache.org/myfaces/FAQ
 
  Or is possible to use/reference Spring beans in faces-config.xml?
 
 
  Any managed-property like:
managed-property
  namefoo/name
  value#{someValue}/value
/managed-property
  simply looks for a key someValue in the request, session and
  application scopes. So if your spring bean is stored in one of those
  maps then it will be passed to the managed bean on creation.
 
 
  Regards,
 
  Simon




--

http://www.irian.at

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

Professional Support for Apache MyFaces


Component Creation Listener

2005-12-07 Thread Michael Ageeb
Hello I got a problem with duplicate IDs somewhere in my code and I
cannot find it. (actually it is associated with DataScroller)
How can I detect the duplicate ID?
Is there some way (or workaround) to create a Component Creation Listener so I can monitor the creation of the components !!
--
Michael Ageeb FakhryTo know more about Egypt visit http://eternalegypt.org


AW: Execute method automatically after page has been loaded and shown to user

2005-12-07 Thread andreas.mitter
Hi Mike!

I like the idea with the Servlet Listener,but I see one problem:
The database connection is already openened when the Application Server is 
started
-So could there be a problem with database connection timeouts? What happens, 
when the database returns a timeout.
-If no timeout happens, isn't it a bad approach to let the connection open all 
the time, because database connection are expensive as long as I know?

What do you think about my thoughts?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Dezember 2005 17:22
An: MyFaces Discussion
Betreff: Re: Execute method automatically after page has been loaded and
shown to user


Andy,

There's many ways to do this.

Some ways you could do it:

1) Use the Shale ViewController stuff to define your backing bean to
be the controlling bean for your page.  It'd be able to receive events
like pre-render and post-render.

2) Create a phase listener that ran at pre-render and post-render phase.

3) Use a servlet filter -- this is how I manage my database
connections, but I have need for my database connection to be active
at all phases of JSF.

On 12/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi All!

 How can I execute a method from a backing bean AUTOMATICALLY after a page
 has been loaded and shown to the user?

 My exactly problem is the following:
 When the user opens the first page, this page should be shown normally (and
 quickly) to the user. In the background the connection to the database
 should be build (automatically, no button should be pressed) --I use
 Hibernate and the first connection (building of connection pool) takes some
 seconds, so this should be done in background, but the user should already
 see something in his browser (with an info, that the connection to the
 database is just built)

 Is there a possibility to do that?

 Thx

 Regards
 Andy
 __
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify your system manager.
 This footnote also confirms that this email message has been swept for the
 presence of computer viruses.
 __



__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__


RE: Execute method automatically after page has been loaded and shown to user

2005-12-07 Thread Jesse Alexander \(KBSA 21\)
Hi Andy

Have you thought about using the refresh-meta-tag?

You could render the page on first visit with a refresh header set to 1 second. 
The page would be rendered reading --- please wait --- and in the background 
initiate
a new request which then would build the connection, and render a new page...

A flag in the session could signal to your code whether the redirection is 
needed or not.

Advantages I see:
- standard request-processing
- the user would see the browser activity and could conclude: ok, something is 
being 
  processed

hth
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 10:29 AM
To: users@myfaces.apache.org
Subject: AW: Execute method automatically after page has been loaded and shown 
to user

Hi Mike!

I like the idea with the Servlet Listener,but I see one problem:
The database connection is already openened when the Application Server is 
started
-So could there be a problem with database connection timeouts? What happens, 
when the database returns a timeout.
-If no timeout happens, isn't it a bad approach to let the connection open all 
the time, because database connection are expensive as long as I know?

What do you think about my thoughts?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Dezember 2005 17:22
An: MyFaces Discussion
Betreff: Re: Execute method automatically after page has been loaded and
shown to user


Andy,

There's many ways to do this.

Some ways you could do it:

1) Use the Shale ViewController stuff to define your backing bean to
be the controlling bean for your page.  It'd be able to receive events
like pre-render and post-render.

2) Create a phase listener that ran at pre-render and post-render phase.

3) Use a servlet filter -- this is how I manage my database
connections, but I have need for my database connection to be active
at all phases of JSF.

On 12/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi All!

 How can I execute a method from a backing bean AUTOMATICALLY after a page
 has been loaded and shown to the user?

 My exactly problem is the following:
 When the user opens the first page, this page should be shown normally (and
 quickly) to the user. In the background the connection to the database
 should be build (automatically, no button should be pressed) --I use
 Hibernate and the first connection (building of connection pool) takes some
 seconds, so this should be done in background, but the user should already
 see something in his browser (with an info, that the connection to the
 database is just built)

 Is there a possibility to do that?

 Thx

 Regards
 Andy
 __
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify your system manager.
 This footnote also confirms that this email message has been swept for the
 presence of computer viruses.
 __



__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
__


AW: Execute method automatically after page has been loaded and shown to user

2005-12-07 Thread andreas.mitter
Hi Alexander!

I just don't exactly know what you mean.

In my JSF there should be a meta tag, that refreshes the page only one time 
depending on a session attribute?
I don't know how to do that the connection will be build at first, when the 
refresh starts (when the page will be rendered the second time) and not when 
the page will be rendered the first time?

Regards,
Andy



-Ursprüngliche Nachricht-
Von: Jesse Alexander (KBSA 21)
[mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Dezember 2005 10:38
An: MyFaces Discussion
Betreff: RE: Execute method automatically after page has been loaded and
shown to user


Hi Andy

Have you thought about using the refresh-meta-tag?

You could render the page on first visit with a refresh header set to 1 second. 
The page would be rendered reading --- please wait --- and in the background 
initiate
a new request which then would build the connection, and render a new page...

A flag in the session could signal to your code whether the redirection is 
needed or not.

Advantages I see:
- standard request-processing
- the user would see the browser activity and could conclude: ok, something is 
being 
  processed

hth
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 10:29 AM
To: users@myfaces.apache.org
Subject: AW: Execute method automatically after page has been loaded and shown 
to user

Hi Mike!

I like the idea with the Servlet Listener,but I see one problem:
The database connection is already openened when the Application Server is 
started
-So could there be a problem with database connection timeouts? What happens, 
when the database returns a timeout.
-If no timeout happens, isn't it a bad approach to let the connection open all 
the time, because database connection are expensive as long as I know?

What do you think about my thoughts?

Regards
Andy

-Ursprüngliche Nachricht-
Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 6. Dezember 2005 17:22
An: MyFaces Discussion
Betreff: Re: Execute method automatically after page has been loaded and
shown to user


Andy,

There's many ways to do this.

Some ways you could do it:

1) Use the Shale ViewController stuff to define your backing bean to
be the controlling bean for your page.  It'd be able to receive events
like pre-render and post-render.

2) Create a phase listener that ran at pre-render and post-render phase.

3) Use a servlet filter -- this is how I manage my database
connections, but I have need for my database connection to be active
at all phases of JSF.

On 12/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi All!

 How can I execute a method from a backing bean AUTOMATICALLY after a page
 has been loaded and shown to the user?

 My exactly problem is the following:
 When the user opens the first page, this page should be shown normally (and
 quickly) to the user. In the background the connection to the database
 should be build (automatically, no button should be pressed) --I use
 Hibernate and the first connection (building of connection pool) takes some
 seconds, so this should be done in background, but the user should already
 see something in his browser (with an info, that the connection to the
 database is just built)

 Is there a possibility to do that?

 Thx

 Regards
 Andy
 __
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify your system manager.
 This footnote also confirms that this email message has been swept for the
 presence of computer viruses.
 __



__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
__


__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__


RE: Error adding dataScroller before my UIData

2005-12-07 Thread Miller, John
Thank you Simon ... Apologies I was at work trying to multitask and
replied to the wrong thread

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 6:46 PM
To: MyFaces Discussion
Subject: Re: Error adding dataScroller before my UIData

Simon Kitching wrote:
 Miller, John wrote:
 I need to add a dataScroller to both the top and bottom of my 
 dataTable. However I get an exception when putting it before the 
 dataTable is defined (i.e. in the header) saying it cant find the 
 UIData element. Does anyone know the solution for this (other than 
 adding it after the datatable and using stylesheet positioning I 
 really am not interested in that solution)
 
 This is a fundamental issue with JSP/JSF: that components are both 
 created and rendered in a single pass through a JSP page.
 
 You could try enclosing the table  scroller components in some parent

 component which renders its children, eg an h:panelGroup. This
should 
 cause the child components to all be created first before any
rendering 
 (which does the id lookup) occurs. If this works, please reply to the 
 list to let us know.

Just for future searchers of this list, John Miller has reported (in 
another thread) that wrapping the 2 dataScrollers + 1 dataTable within 
another JSF component has resolved the issue with having forward 
references from the dataScroller component to the dataTable component. 
Presumably that other component is a panelGroup or similar component 
that renders its children.

Cheers,

Simon 
 
 
 
NOTICE:  This message, including all attachments transmitted with it, is for 
the use of the addressee only. It may contain proprietary, confidential and/or 
legally privileged information belonging to Litle  Co. No confidentiality or 
privilege is waived or lost by any mistransmission. If you are not the intended 
recipient, you must not, directly or indirectly, use, disclose, distribute, 
print or copy any part of this message.  If you believe you have received this 
message in error, please delete it and all copies of it from your system and 
notify the sender immediately by reply e-mail.  Thank you. 


Re: Subview in tiles throws Exception (duplicate id)

2005-12-07 Thread Paul Klaer

Hi,

I found the problem and attached a patch for this issue. Can someone check  
the code, test the application again and commit this? Or has anyone other  
suggestions for this bug?

We tested this on our application and it works for us.

http://issues.apache.org/jira/browse/MYFACES-857

Regards,

Paul

On Tue, 22 Nov 2005 17:41:51 +0100, Dennis Byrne [EMAIL PROTECTED] wrote:


There's a lot of noise in JIRAs ;-) I'm simply suggesting
that you may want to give an issue 24 hours on a mailling
list before you go and create an issue.

 Original message 

Date: Tue, 22 Nov 2005 08:09:04 +0100
From: Juergen Melzer [EMAIL PROTECTED]
Subject: Re: Subview in tiles throws Exception (duplicate

id)

To: users@myfaces.apache.org

I don't know what to discuss.
I have written a possible solution in the bug entry.

I tried now since 2 months to make a good architecture in my

new company. I

use Hibernate (works good), Spring (works great),  and

MyFaces :-( 




From: Dennis Byrne [EMAIL PROTECTED]
Reply-To: MyFaces Discussion users@myfaces.apache.org
To: MyFaces Discussion users@myfaces.apache.org,
[EMAIL PROTECTED]
Subject: Re: Subview in tiles throws Exception (duplicate

id)

Date: Mon, 21 Nov 2005 22:04:57 -0900

Hey, whoah ... ;)  Get a little discussion going first.

 Original message 
Date: Tue, 22 Nov 2005 08:02:20 +0100
From: Juergen Melzer [EMAIL PROTECTED]
Subject: Re: Subview in tiles throws Exception (duplicate
id)
To: users@myfaces.apache.org

Possible solution. But I think this is a bug in myFaces.

The

restoreview
doesn't restore the uniqueid counter.
I will create a bug entry


From: Dennis Byrne [EMAIL PROTECTED]
Reply-To: MyFaces Discussion users@myfaces.apache.org
To: MyFaces Discussion users@myfaces.apache.org,
[EMAIL PROTECTED]
Subject: Re: Subview in tiles throws Exception (duplicate
id)
Date: Mon, 21 Nov 2005 21:52:46 -0900

I noticed this when I started using lots of subviews.  It
only went away after explictly giving everything an id.

 Original message 
 Date: Tue, 22 Nov 2005 07:49:36 +0100
 From: Juergen Melzer [EMAIL PROTECTED]
 Subject: Subview in tiles throws Exception (duplicate

id)

 To: users@myfaces.apache.org
 
 Hi all,
 
 we use tiles and the myfaces integration. But we get an
exception:
 javax.faces.FacesException: cannot add component with
id '_id13' and path :
 {Component-Path : [Class:
javax.faces.component.html.HtmlPanelGrid,Id:
 _id13]} to its parent component. This might be a

problem

due
to duplicate
 ids.
at javax.faces.webapp.UIComponentTag.findComponent
(UIComponentTag.java:401)
at javax.faces.webapp.UIComponentTag.doStartTag
(UIComponentTag.java:219)
 
 
 I think the problem is that the id is generated after

the

 JspStateManagerImp.restoreTreeStructure is called. But
inside the view there
 is still the id above.
 
 Can anyone help?
 
 Juergen
 



_


 Haben Spinnen Ohren? Finden Sie es heraus – mit

dem MSN

Suche Superquiz via
 http://www.msn-superquiz.de  Jetzt mitmachen und

gewinnen!

 

Dennis Byrne



_


Die neue MSN Suche Toolbar mit Windows-Desktopsuche.

Suchen

Sie gleichzeitig
im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu!
http://desktop.msn.de/
Jetzt gratis downloaden!


Dennis Byrne


_



Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen

Sie gleichzeitig

im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu!

http://desktop.msn.de/

Jetzt gratis downloaden!



Dennis Byrne





Re: Drilldown type app. without session bean?

2005-12-07 Thread Yannick Le Teigner

ARGH!
Simon, you just pointed out my mistake!
I was using:

getRequestMap().put(#{User}, new User(id));
While I really should have bean using:
getRequestMap().put(User, new User(id));

Notice, the EL notation.. As you said, this last line is equivalent to 
below line when you use request beans:


ValueBinding binding = ctx.getApplication().createValueBinding(#{User});
binding.setValue(ctx, new User(id));


Thanks for the help!


Just FYI, using
 getRequestMap().put(User, new User(id));


 should be the same as the above code. The expression evaluator simply 
looks in request, session
 and application scopes for an entry of the specified name. If not 
found, then it looks for a
 managed bean declaration and instantiates as described earlier. 
However as long as you've got

 something working, that's the important bit :-).



Cheers,

Simon





downloading big files

2005-12-07 Thread Kelly Goedert
Hi all,

when I try to download a file that is bigger than 10Mb I get an OutOfMemory Exception. Why that happens? How can I fix it?

Thank you

Kelly


Re: Component Creation Listener

2005-12-07 Thread Paul Klaer

Hi,

I had the same problem with duplicate ids.

are you using bindings on some components? Can you check the erroneous  
DataScroller which has the duplicate id if it has a binding to a backing  
bean?
Is your backing bean session scope? For me there was no work around and I  
had to patch myfaces.


Or do you set a new viewRoot on the context using a custom navigation  
handler?


Please look at this bug:
http://issues.apache.org/jira/browse/MYFACES-857

Regards,

Paul

On Wed, 07 Dec 2005 09:47:42 +0100, Michael Ageeb [EMAIL PROTECTED]  
wrote:


Hello I got a problem with duplicate IDs somewhere in my code and I  
cannot

find it. (actually it is associated with DataScroller)
How can I detect the duplicate ID?
Is there some way (or workaround) to create a Component Creation  
Listener so

I can monitor the creation of the components !!
--
Michael Ageeb Fakhry
To know more about Egypt visit http://eternalegypt.org





Re: Component Creation Listener

2005-12-07 Thread Michael Ageeb
Yes it is the problem with datascroler component binding
On 12/7/05, Paul Klaer [EMAIL PROTECTED] wrote:
Hi,I had the same problem with duplicate ids.are you using bindings on some components? Can you check the erroneousDataScroller which has the duplicate id if it has a binding to a backingbean?Is your backing bean session scope? For me there was no work around and I
had to patch myfaces.Or do you set a new viewRoot on the context using a custom navigationhandler?Please look at this bug:http://issues.apache.org/jira/browse/MYFACES-857
Regards,PaulOn Wed, 07 Dec 2005 09:47:42 +0100, Michael Ageeb [EMAIL PROTECTED]wrote: Hello I got a problem with duplicate IDs somewhere in my code and I
 cannot find it. (actually it is associated with DataScroller) How can I detect the duplicate ID? Is there some way (or workaround) to create a Component Creation Listener so I can monitor the creation of the components !!
 -- Michael Ageeb Fakhry To know more about Egypt visit http://eternalegypt.org-- Michael Ageeb Fakhry
Software Developer OpenCraftTo know more about Egypt visit http://eternalegypt.org


MyFaces and IBM Portal

2005-12-07 Thread Kandasamy, Uma



All,

I am 
having problems when trying todeploy JSR 168 portlets (built using MyFaces 
Impl) on IBM Portal 5.1.
It 
could very well be a problem with IBM supporting the MyFaces JSF Implementation. 
As far as I know, the RAD tool used for creating portlets supports only SUN RI. 
The web.xml supplied by the RAD tool explicitly depends on the SUN's 
configureListener. When I tried changing that to the MyFaces listener, I had 
some class cast exception.

Has 
any one successfully used this combination ?

Thanks 
in advance,




Re: Component Creation Listener

2005-12-07 Thread Paul Klaer

Can you test my patch building your own myfaces version?

Or, we have to wait until someone of the commiters proves my patch and  
commits it for a daily build...


Regards,

Paul

On Wed, 07 Dec 2005 14:47:45 +0100, Michael Ageeb [EMAIL PROTECTED]  
wrote:



Yes it is the problem with datascroler component binding


On 12/7/05, Paul Klaer [EMAIL PROTECTED] wrote:


Hi,

I had the same problem with duplicate ids.

are you using bindings on some components? Can you check the erroneous
DataScroller which has the duplicate id if it has a binding to a backing
bean?
Is your backing bean session scope? For me there was no work around and  
I

had to patch myfaces.

Or do you set a new viewRoot on the context using a custom navigation
handler?

Please look at this bug:
http://issues.apache.org/jira/browse/MYFACES-857

Regards,

Paul

On Wed, 07 Dec 2005 09:47:42 +0100, Michael Ageeb [EMAIL PROTECTED]
wrote:

 Hello I got a problem with duplicate IDs somewhere in my code and I
 cannot
 find it. (actually it is associated with DataScroller)
 How can I detect the duplicate ID?
 Is there some way (or workaround) to create a Component Creation
 Listener so
 I can monitor the creation of the components !!
 --
 Michael Ageeb Fakhry
 To know more about Egypt visit http://eternalegypt.org






--
Michael Ageeb Fakhry
Software Developer OpenCraft
To know more about Egypt visit http://eternalegypt.org





RE: Tree2 Best Practices.

2005-12-07 Thread Matias Gomez Carabias
Simon, the div approach is working just fine.

Thanks a lot

Matias 

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 7:06 PM
To: MyFaces Discussion
Subject: Re: Tree2 Best Practices.

Hi,

I'm not sure that Tiles is relevant. It allows you to compose a page 
from different fragments, and easily rearrange the order in which the 
fragments are output in the response.

However if you want some large JSF components (eg a tree with many 
nodes) to be rendered inside a fixed-size box, with scrollbars to access

the bits of the component not currently visible then that's a different 
issue.

And if you want a split-pane type effect on the screen so that you can

adjust the amount of visible screen allocated to different parts of the 
page then that's also a different issue.

I'm not aware of any JSF components that provide either of these 
features. For the first one, you might like to try wrapping the target 
JSF component in a div with explicit size and overflow attributes:
   div style=width:400; height:400; overflow:scroll
 t:tree2 .../
   /div
I haven't tried this myself but it looks like it might work.

An IFrame also presents an embedded scrollable area. However an iframe 
always needs to pull its content from some other URL, so you'd need to 
write a separate page containing your tree component. And as this will 
act within the same session but JSF1.1 doesn't support the concept of 
separate windows within a single session I think this will lead to 
major headaches; I expect the iframe page access will effectively 
discard the original page's view when it sees the same session accessing

a different view-url.
   ...
 iframe src=/width=400 height=400 scrolling=auto
 /iframe
   ...


Having a t:splitPanel component for the second option would be very 
cool. However I suspect it would be quite a lot of complicated 
javascript to implement (if it's possible at all). I'm willing to try to

implement this if someone will fund the development :-). Or maybe 
there's some existing open-source code out there that can be used. I 
would suggest looking at available JSP tag libraries; I think a standard

JSP tag would work fine with JSF tags in this case (as long as there is 
no parent component with rendersChildren=true?).

Regards,

Simon

Sean Schofield wrote:
 You may want to look into Tiles.
 
 sean
 
 On 12/6/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote:


 Hi guys, I was just wondering which would be the best approach to use
the
 tree2 component.



 I've tried with frames, but I don't know if this would be the
smartest
 solution, is there any jsf or tomahawk component that allows me to
divide
 the page with scroll bars?

 I've been reading about frameset and panelLayout but I don't know
which
 would be the best approach to follow.



 Thanks in advance



 Regards



 Matias Gomez Carabias
 
 



AW: AW: Problem with selectBooleanCheckbox inside dataTable

2005-12-07 Thread Matthias Kahlau
Hi Simon,


thanks for your response. I use one UISelectBoolean component property in my
Backing-Bean, which is bound to the selectBooleanCheckbox used in the
dataTable. Because the dataTable has more than one row, that component or at
least the reference must be shared by all rows internally. Sharing seems to
be the source of the first problem, that all checkboxes are rendered as
selected when the page is redisplayed after a postback where only the last
checkbox was chosen.

It seems that the checkboxes are rerendered with the selected state of the
last checkbox processed (the checkbox of the last row), what can be
prevented by programmatically modifying the selected state of the
UISelectBoolean component in the postback.


And this solution also solved the second problem (runtime error), that
arised when I tried to delete all rows after the page had been redisplayed
with all checkboxes selected. The table used in the validation phase must
have become out of sync with the data rendered previously. But I can't
reproduce the error in the moment.


Regards,
Matthias

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Auftrag
 von Simon Kitching
 Gesendet: Dienstag, 6. Dezember 2005 23:19
 An: MyFaces Discussion
 Betreff: Re: AW: Problem with selectBooleanCheckbox inside dataTable


 Hi,

 When a table contains editable components, the value list is fetched
 at the following times:

 (initial page view occurs)
 * during the rendering phase
 (postback occurs)
 * during validation phase
 (navigate occurs, ie internal forward)
 * during the rendering phase
 

 The data is needed at the validation phase in order to determine whether
 ValueChangeEvent events should be queued. The same list is retained by
 the UIData and used during the update-model phase when the validated
 values are pushed to the backing objects from the value list. A new list
 must be fetched before rendering, however, as the list may change as a
 result of processing during update-model or invoke-application phases.

 When a table contains editable components, the table fetched during the
 validation phase must contain exactly the same elements (and in exactly
 the same order) as was present during the previous rendering phase. If
 this isn't true then all sorts of confusion can occur.

 Are your checkbox components bound to some backing list whose size has
 changed? I can't see why that would happen, but it would explain some of
 your symptoms. The table is iterating through all its rows, fetching the
 corresponding element from the value list for that row, and then trying
 to determine whether the submitted value is different from the value of
 the corresponding model object. If the list is too short, then of course
 an exception will occur while trying to fetch the matching model object.

 Regards,

 Simon

 Matthias Kahlau wrote:
  Hi!
 
  Ok, it seems that the rendering behavior of the
 selectBooleanCheckbox (with
  immediate = false) inside a dataTable is how to expect from an
  EditableValueHolder, and I have to call either
 setSubmittedValue(null) or
  setSelectedState(false) to prevent the checkboxes from beeing
 selected if
  the page is redisplayed, dependent on the immediate state of the
  commandButton:
 
  - setSubmittedValue(null) if commandButton is immediate = true
 - submitted
  value is rendered if not null
  - setSelectedState(false) if commandButton is immediate = false
 
 
  But what I don't really understand is, why the problem described (all
  checkboxes are selected when the page is redisplayed, and runtime error
  after deleting this selection) only happens when the checkbox
 of the last
  shown row has been selected, and not when any other checkbox had been
  selected. Any ideas?
 
 
  Regards,
  Matthias
 
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Auftrag
  von Matthias Kahlau
  Gesendet: Dienstag, 6. Dezember 2005 02:47
  An: Users MyFaces
  Betreff: Problem with selectBooleanCheckbox inside dataTable
 
 
  Hi!
 
 
  I encounter a strange behavior of selectBooleanCheckbox
 component-binding
  inside a dataTable. When I select the checkbox in the last row
 and call an
  action method to delete the selected row, the page is
 redisplayed with all
  the remaining checkboxes selected, that had been deselected before.
 
  This happens only if I select the last row/checkbox, not if I
  select another
  row and press delete. I don't modify any component state in the
  application.
  This behavior is independent of setting the
 selectBooleanCheckbox or the
  delete commandButton to false/true.
 
  The behavior described doesn't happen in any possible case, but
  always when
  the options are shown the first time and I select the last one
 and press
  delete.
 
  If this happens, and the checkboxes are all redisplayed in
 selected state,
  and I press delete, a runtime error is thrown because a row is
  unavailable:
 
  02:36:22,218 ERROR 

Re: Simplifying column expression

2005-12-07 Thread Mike Kienenberger
Unless you're using some sort of substitution technology like
facelets, it probably won't be trivial.   You'll need to subclass
UIColumn to create MyColumn, and then either read the
my:columnheader tag in as a header facet, or have the
my:columnheader component create a header facet on its parent
UIColumn on creation.  At least, that's my understanding of the
situation.

On 12/7/05, Juergen Melzer [EMAIL PROTECTED] wrote:
 Hi,

 I want to simplify the expression
   x:column 
   f:facet name=header
 h:outputText value=#{text.firstname} /
   /f:facet
   h:outputText value=#{auser.firstName} /
 /x:column

 with this one:

   my:column
 my:columnheader value=#{text.firstname} /
 h:outputText value=#{auser.firstName} /
   /my:column

 Does anyone know how to make it?

 Thanks,
 Juergen

 _
 Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig
 im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/
 Jetzt gratis downloaden!




Re: Value is not a valid option

2005-12-07 Thread Mike Kienenberger
Can you create a simple example and open a JIRA issue?

One thing you can do to investigate the error is set a breakpoint
wherever the Value is not a valid option message is generated.  This
appears to be in
api - javax.faces.component.UISelectOne.validateValue()
Line 54 in yesterday's svn.

On 12/7/05, Khurram Ahmed [EMAIL PROTECTED] wrote:
 I downloaded the latest myfaces nightly build  that of 6th December 2005 and
 the problem still persists. Any solutions or workarounds? Lack of any stack
 traces is making it infuriatingly difficult to even track the bug.


Re: Execute method automatically after page has been loaded and shown to user

2005-12-07 Thread Mike Kienenberger
First off, note that this is a filter, not a listener.   That means
you can open before the request and close after the request, for
whatever meaning open and close have to your database layer.

As for leaving connections open and dealing with timeouts, that's
going to depend on your database layer.

On 12/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi Mike!

 I like the idea with the Servlet Listener,but I see one problem:
 The database connection is already openened when the Application Server is 
 started
 -So could there be a problem with database connection timeouts? What happens, 
 when the database returns a timeout.
 -If no timeout happens, isn't it a bad approach to let the connection open 
 all the time, because database connection are expensive as long as I know?

 What do you think about my thoughts?

 Regards
 Andy

 -Ursprüngliche Nachricht-
 Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 6. Dezember 2005 17:22
 An: MyFaces Discussion
 Betreff: Re: Execute method automatically after page has been loaded and
 shown to user


 Andy,

 There's many ways to do this.

 Some ways you could do it:

 1) Use the Shale ViewController stuff to define your backing bean to
 be the controlling bean for your page.  It'd be able to receive events
 like pre-render and post-render.

 2) Create a phase listener that ran at pre-render and post-render phase.

 3) Use a servlet filter -- this is how I manage my database
 connections, but I have need for my database connection to be active
 at all phases of JSF.

 On 12/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
  Hi All!
 
  How can I execute a method from a backing bean AUTOMATICALLY after a page
  has been loaded and shown to the user?
 
  My exactly problem is the following:
  When the user opens the first page, this page should be shown normally (and
  quickly) to the user. In the background the connection to the database
  should be build (automatically, no button should be pressed) --I use
  Hibernate and the first connection (building of connection pool) takes some
  seconds, so this should be done in background, but the user should already
  see something in his browser (with an info, that the connection to the
  database is just built)
 
  Is there a possibility to do that?
 
  Thx
 
  Regards
  Andy
  __
  This email and any files transmitted with it are confidential and intended
  solely for the use of the individual or entity to whom they are addressed.
  If you have received this email in error please notify your system manager.
  This footnote also confirms that this email message has been swept for the
  presence of computer viruses.
  __
 


 __

 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 your system manager.

 This footnote also confirms that this email message has been swept
 for the presence of computer viruses.
 __



RE: Simplifying column expression

2005-12-07 Thread Jesse Alexander \(KBSA 21\)
Not really all necessary...
You would need to 
a) replace the datatable-renderer (he is responsible for the
column-header-rendering)
b) create the column-header-component...

regards
Alexander

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 4:30 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: Simplifying column expression

Unless you're using some sort of substitution technology like
facelets, it probably won't be trivial.   You'll need to subclass
UIColumn to create MyColumn, and then either read the
my:columnheader tag in as a header facet, or have the
my:columnheader component create a header facet on its parent
UIColumn on creation.  At least, that's my understanding of the
situation.

On 12/7/05, Juergen Melzer [EMAIL PROTECTED] wrote:
 Hi,

 I want to simplify the expression
   x:column 
   f:facet name=header
 h:outputText value=#{text.firstname} /
   /f:facet
   h:outputText value=#{auser.firstName} /
 /x:column

 with this one:

   my:column
 my:columnheader value=#{text.firstname} /
 h:outputText value=#{auser.firstName} /
   /my:column

 Does anyone know how to make it?

 Thanks,
 Juergen

 _
 Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie
gleichzeitig
 im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu!
http://desktop.msn.de/
 Jetzt gratis downloaden!




Re: t:dataTable, t:dataScroller and large datasets

2005-12-07 Thread Catalin Kormos
Hi there,Did any of you guys successfuly managed to use this approach also with  t:commandSortHeader to allow sorting the pages data by columns?It doesn't look trivial to me...just let me know if it is realy. If not i would realy appreciate a wiki page covering this also.Best regards,  Catalin  
		 Yahoo! DSL Something to write home about. Just $16.99/mo. or less

Re: MyFaces and IBM Portal

2005-12-07 Thread Ryan Wynn
On 12/7/05, Kandasamy, Uma [EMAIL PROTECTED] wrote:
 All,

 I am having problems when trying to deploy JSR 168 portlets (built using
 MyFaces Impl) on IBM Portal 5.1.
 It could very well be a problem with IBM supporting the MyFaces JSF
 Implementation. As far as I know, the RAD tool used for creating portlets
 supports only SUN RI. The web.xml supplied by the RAD tool explicitly
 depends on the SUN's configureListener. When I tried changing that to the
 MyFaces listener, I had some class cast exception.

 Has any one successfully used this combination ?

 Thanks in advance,



I have had success with this combination.  I am using myfaces with portal 5.1.
I started in RAD by creating an empty JSR-168 portlet (using the
wizard).  Then you won't get all the sun/ibm jsf stuff imported.  My
WEB-INF/lib directory looks like this

commons-digester
commons-codec
commons-fileupload
jarkarta-oro
commons-el
commons-beanutils
commons-validator
commons-collections
jsp-api.jar
commons-lang (I don't think you need this but I have it)
myfaces-impl
myfaces-api
tomahawk

my portlet.xml looks like this

?xml version=1.0 encoding=UTF-8?
portlet-app
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
id=FrameworkPortlet.fcd7edcb60

portlet
portlet-nameFrameworkPortlet/portlet-name
display-nameFrameworkPortlet/display-name

portlet-classorg.apache.myfaces.portlet.MyFacesGenericPortlet/portlet-class
init-param
namedefault-view/name
value/people.html/value
/init-param
init-param
nameViewPage/name
value/people.html/value
/init-param

supports
mime-typetext/html/mime-type
portlet-modeview/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleFramework Portlet/title
/portlet-info
/portlet

/portlet-app


web.xml looks like any web application.

Hope this helps.


RE: MyFaces and IBM Portal

2005-12-07 Thread Kandasamy, Uma
Thanks Ryan. I will try this one. Also, does your web.xml reference any of
the sun's classes (like ConfigureListener).
Do you mind posting your web.xml ?

-Original Message-
From: Ryan Wynn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 07, 2005 10:56 AM
To: MyFaces Discussion
Subject: Re: MyFaces and IBM Portal


On 12/7/05, Kandasamy, Uma [EMAIL PROTECTED] wrote:
 All,

 I am having problems when trying to deploy JSR 168 portlets (built using
 MyFaces Impl) on IBM Portal 5.1.
 It could very well be a problem with IBM supporting the MyFaces JSF
 Implementation. As far as I know, the RAD tool used for creating portlets
 supports only SUN RI. The web.xml supplied by the RAD tool explicitly
 depends on the SUN's configureListener. When I tried changing that to the
 MyFaces listener, I had some class cast exception.

 Has any one successfully used this combination ?

 Thanks in advance,



I have had success with this combination.  I am using myfaces with portal
5.1.
I started in RAD by creating an empty JSR-168 portlet (using the
wizard).  Then you won't get all the sun/ibm jsf stuff imported.  My
WEB-INF/lib directory looks like this

commons-digester
commons-codec
commons-fileupload
jarkarta-oro
commons-el
commons-beanutils
commons-validator
commons-collections
jsp-api.jar
commons-lang (I don't think you need this but I have it)
myfaces-impl
myfaces-api
tomahawk

my portlet.xml looks like this

?xml version=1.0 encoding=UTF-8?
portlet-app
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
id=FrameworkPortlet.fcd7edcb60

portlet
portlet-nameFrameworkPortlet/portlet-name
display-nameFrameworkPortlet/display-name

portlet-classorg.apache.myfaces.portlet.MyFacesGenericPortlet/portlet-cla
ss
init-param
namedefault-view/name
value/people.html/value
/init-param
init-param
nameViewPage/name
value/people.html/value
/init-param

supports
mime-typetext/html/mime-type
portlet-modeview/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleFramework Portlet/title
/portlet-info
/portlet

/portlet-app


web.xml looks like any web application.

Hope this helps.


[OT] myfaces, a portal, and ajax

2005-12-07 Thread Ryan Wynn
I have a working myfaces application working inside websphere portal
5.1.  I thought it would be cool if I ajaxized my portlet with dojo. 
This way I don't suffer from the entire page refresh which in a portal
can be expensive.

So I overwrote the myfaces renderer for forms.  My new form renderer
adds one thing, an onsubmit value of 'return dojoSubmit(this);'

what dojoSubmit does is this

function dojoSubmit(form) {
dojo.require(dojo.io.*);
dojo.io.bind({
url: form.action,
load: function(type, evaldObj)
{
marker = span id=\pageId\;
startI = evaldObj.indexOf(marker);
start = evaldObj.substring(startI + marker.length);
endI = start.indexOf(/span!--end--);
page = start.substring(0, endI);
document.getElementById(pageId).innerHTML=page;
   },
formNode: form,
mimetype: text/plain, // get plain text, don't eval()
transport: XMLHTTPTransport
});

return false;
}


So in a nutshell I am rerouting the form submission to use ajax and
updating the content of a predetermined span with encapsulates the
page.  Pardon the viscious hack of the portal response using indexOf
and substring.

Anyway, this works as intended.  The span gets updated with the
correct html and it looks far better than an entire page refresh.  My
problem is that setting the innerHtml does not seem to be
reinterpreting embedded javascript and stylesheet references. 
innerHtml was the easiest way to accomplish what I wanted, I don't
argue it may not be the best.  Can anyone help explain to me why if my
new html content has script src=x/script that script will not be
interpreted using innerHtml?

If the page is refreshed entirely everything (the javascript,
stylesheets) work fine.  It just seems to be a problem when I use
innerHtml.

Thanks,
Ryan


Re: Bean definition question faces-config.xml

2005-12-07 Thread Aleksei Valikov

Hi.

I wonder if it is possible to declare the constructor of a bean in 
faces-config.xml similar to using constructor-arg in spring's 
configuration files.
The idea behind this is, that I'd like to inject a bean into my 
application and use a referenced bean already in the constructor.
As far as I know and encountered, first the default constructor is 
called, then the referenced beans are injected by using the 
corresponding setters, and finally the bean is used in the application 
depending of the scope.

Or is possible to use/reference Spring beans in faces-config.xml?


Of course you can use/reference Spring beans in faces-config.xml. Just 
use Spring's variable resolver.


variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver/variable-resolver

If you want to declare your bean in Spring context but make it available 
as a managed bean (for instance, to define bean scoping), use proxies.


Bye.
/lexi


Re: MyFaces and IBM Portal

2005-12-07 Thread Ryan Wynn
On 12/7/05, Kandasamy, Uma [EMAIL PROTECTED] wrote:
 Thanks Ryan. I will try this one. Also, does your web.xml reference any of
 the sun's classes (like ConfigureListener).
 Do you mind posting your web.xml ?

 -Original Message-
 From: Ryan Wynn [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 07, 2005 10:56 AM
 To: MyFaces Discussion
 Subject: Re: MyFaces and IBM Portal


 On 12/7/05, Kandasamy, Uma [EMAIL PROTECTED] wrote:
  All,
 
  I am having problems when trying to deploy JSR 168 portlets (built using
  MyFaces Impl) on IBM Portal 5.1.
  It could very well be a problem with IBM supporting the MyFaces JSF
  Implementation. As far as I know, the RAD tool used for creating portlets
  supports only SUN RI. The web.xml supplied by the RAD tool explicitly
  depends on the SUN's configureListener. When I tried changing that to the
  MyFaces listener, I had some class cast exception.
 
  Has any one successfully used this combination ?
 
  Thanks in advance,
 
 

 I have had success with this combination.  I am using myfaces with portal
 5.1.
 I started in RAD by creating an empty JSR-168 portlet (using the
 wizard).  Then you won't get all the sun/ibm jsf stuff imported.  My
 WEB-INF/lib directory looks like this

 commons-digester
 commons-codec
 commons-fileupload
 jarkarta-oro
 commons-el
 commons-beanutils
 commons-validator
 commons-collections
 jsp-api.jar
 commons-lang (I don't think you need this but I have it)
 myfaces-impl
 myfaces-api
 tomahawk

 my portlet.xml looks like this

 ?xml version=1.0 encoding=UTF-8?
 portlet-app
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
id=FrameworkPortlet.fcd7edcb60

portlet
portlet-nameFrameworkPortlet/portlet-name
display-nameFrameworkPortlet/display-name

 portlet-classorg.apache.myfaces.portlet.MyFacesGenericPortlet/portlet-cla
 ss
init-param
namedefault-view/name
value/people.html/value
/init-param
init-param
nameViewPage/name
value/people.html/value
/init-param

supports
mime-typetext/html/mime-type
portlet-modeview/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleFramework Portlet/title
/portlet-info
/portlet

 /portlet-app


 web.xml looks like any web application.

 Hope this helps.


Here is my web.xml.  Some things may not apply to you as I am using
shale-clay, so my views are html.  I do not refer to any Sun classes.


?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app id=WebApp_ID
display-nameFrameworkPortlet/display-name

!-- Set JSF default suffix to .html for clay, usually .jsp --
context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.html/param-value
/context-param


!-- Faces config files --
context-param
param-namejavax.faces.CONFIG_FILES/param-name
param-value/WEB-INF/faces-config.xml/param-value
/context-param

!-- State saving method --
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
/context-param

!-- Allow javascript --
context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param

!-- Pretty HTML --
context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuefalse/param-value
/context-param

!-- Auto scroll --
context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuefalse/param-value
/context-param


!-- MyFaces Extensions Filter --
filter
filter-nameextensions/filter-name
filter-class
org.apache.myfaces.component.html.util.ExtensionsFilter
/filter-class
/filter

!-- Shale Application Controller Filter --
filter
filter-nameshale/filter-name
filter-class
org.apache.shale.faces.ShaleApplicationFilter
/filter-class
/filter

!-- MyFaces Extensions Filter Mapping --
filter-mapping

Re: Value is not a valid option

2005-12-07 Thread Khurram Ahmed
Ok i didnt open a jira issue yet but i found out a work around the hard
way, i read the discussion on the mailing list just prior to fixing
this particular bug and it turned out that it had something to do with
the behavior of converters which was buggy, so i removed all converters
from the project and the bug has disappeared however this cant be a
viable or an elegant solution in the long run, and this bug has already
been fixed in the source code 3 to 4 days ago and released at least
that is the impression i got from jira. The bug i am referring to is
Bug 669 in my faces and the discussion i am referring to can be found
here 
http://issues.apache.org/jira/browse/MYFACES-669


Opening New Window

2005-12-07 Thread Bobby Rosenberger
Hey All,I think I know the answer to this, but I'd like to get confirmation.I have a 'desktop-like' page with icons that users click on to open new windows. These windows are more than popup windows, they are full-blown pages with tabbed interfaces, etc. I'm currently under the impression that I have to handle opening a new window from my desktop page 'outside' the standard JSF navigation mechanism (using 
faces-config.xml) and so, am using _javascript_ to achieve this.I have no problem doing this, I just wanted to make sure that I hadn't missed something. I consider it a benefit to have all possible navigation branches in an xml file - making it easier to obtain a graphical representation of page flow.
Thanks,Bobby


Re: Opening New Window

2005-12-07 Thread Andrew Robinson
If you have a look at Jenia4Faces, there is a popup library that is
meant to integrate child windows into the JSF framework. You may want
to have a look to see if that fits your needs. If you are concerned
about multiple windows interfering with each other in a server saved
state you may also want to look at JBoss-Seam for their conversation
state support that allows windows to have their own state on the
server (it is not quite that simple, but it is the basic affect).

Jenia is located here: http://www.jenia.org/

-Andrew

On 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
 Hey All,

 I think I know the answer to this, but I'd like to get confirmation.

 I have a 'desktop-like' page with icons that users click on to open new
 windows. These windows are more than popup windows, they are full-blown
 pages with tabbed interfaces, etc. I'm currently under the impression that I
 have to handle opening a new window from my desktop page 'outside' the
 standard JSF navigation mechanism (using faces-config.xml) and so, am using
 javascript to achieve this.

 I have no problem doing this, I just wanted to make sure that I hadn't
 missed something. I consider it a benefit to have all possible navigation
 branches in an xml file - making it easier to obtain a graphical
 representation of page flow.

 Thanks,
 Bobby



Re: Simplifying column expression

2005-12-07 Thread Volker Weber
Hi,

i think there is non need of a my:column. It should suffice just to have
 a columnHeader tag, extending f:facet tag, and just create a UIOutput
component and add this as facet 'header' to the parent component.

Regards

  Volker

Mike Kienenberger wrote:
 Unless you're using some sort of substitution technology like
 facelets, it probably won't be trivial.   You'll need to subclass
 UIColumn to create MyColumn, and then either read the
 my:columnheader tag in as a header facet, or have the
 my:columnheader component create a header facet on its parent
 UIColumn on creation.  At least, that's my understanding of the
 situation.
 
 On 12/7/05, Juergen Melzer [EMAIL PROTECTED] wrote:
 
Hi,

I want to simplify the expression
  x:column 
  f:facet name=header
h:outputText value=#{text.firstname} /
  /f:facet
  h:outputText value=#{auser.firstName} /
/x:column

with this one:

  my:column
my:columnheader value=#{text.firstname} /
h:outputText value=#{auser.firstName} /
  /my:column

Does anyone know how to make it?

Thanks,
Juergen

_
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig
im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/
Jetzt gratis downloaden!


 
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Opening New Window

2005-12-07 Thread Bobby Rosenberger
Hey Andrew, Thanks for the response, (jenia looks interesting) but my current problem space is more basic. I'm mainly concerned with the mechanics of opening a 'new' browser window. Once the window is open it is largely independent - in the sense that it no longer needs to communicate with the 'desktop' page. Analogous to opening eclipse from a desktop.
BobbyOn 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:
If you have a look at Jenia4Faces, there is a popup library that ismeant to integrate child windows into the JSF framework. You may wantto have a look to see if that fits your needs. If you are concernedabout multiple windows interfering with each other in a server saved
state you may also want to look at JBoss-Seam for their conversationstate support that allows windows to have their own state on theserver (it is not quite that simple, but it is the basic affect).
Jenia is located here: http://www.jenia.org/-AndrewOn 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
 Hey All, I think I know the answer to this, but I'd like to get confirmation. I have a 'desktop-like' page with icons that users click on to open new windows. These windows are more than popup windows, they are full-blown
 pages with tabbed interfaces, etc. I'm currently under the impression that I have to handle opening a new window from my desktop page 'outside' the standard JSF navigation mechanism (using faces-config.xml
) and so, am using _javascript_ to achieve this. I have no problem doing this, I just wanted to make sure that I hadn't missed something. I consider it a benefit to have all possible navigation
 branches in an xml file - making it easier to obtain a graphical representation of page flow. Thanks, Bobby


Re: [OT] myfaces, a portal, and ajax

2005-12-07 Thread Volker Weber
Hi,

Ryan Wynn wrote:
 Anyway, this works as intended.  The span gets updated with the
 correct html and it looks far better than an entire page refresh.  My
 problem is that setting the innerHtml does not seem to be
 reinterpreting embedded javascript and stylesheet references. 
 innerHtml was the easiest way to accomplish what I wanted, I don't
 argue it may not be the best.  Can anyone help explain to me why if my
 new html content has script src=x/script that script will not be
 interpreted using innerHtml?

I can't explain :-).
But maybe i can help. I am using prototype [1] to refresh content via
ajax and there is the javascript part outfiltered before setting to
inner html and the javascript part is, (if via options enabled)
evaluated afterwards via javascripts 'eval()' command.

regards
  Volker
-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: Value is not a valid option

2005-12-07 Thread Mike Kienenberger
So when you use the latest nightly, is the problem fixed for you?

On 12/7/05, Khurram Ahmed [EMAIL PROTECTED] wrote:
 Ok i didnt open a jira issue yet but i found out a work around the hard way,
 i read the discussion on the mailing list just prior to fixing this
 particular bug and it turned out that it had something to do with the
 behavior of converters which was buggy, so i removed all converters from the
 project and the bug has disappeared however this cant be a viable or an
 elegant solution in the long run, and this bug has already been fixed in the
 source code 3 to 4 days ago and released at least that is the impression i
 got from jira. The bug i am referring to is Bug 669 in my faces and the
 discussion i am referring to can be found here
  http://issues.apache.org/jira/browse/MYFACES-669



tree2 and the icons

2005-12-07 Thread sri
Hi

 I am trying to use the folder icons for the tree2 component.

My tree is defined as below...


x:tree2 id=queryTree

_javascript_Location=/common/tree2

value=#{scheduleManagerFace.queryTree}

var=node varNodeToggler=t

f:facet name=Root

h:panelGroup

f:facet name=expand

x:graphicImage value=../../images/tree2/open.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

f:facet name=collapse

x:graphicImage value=../../images/tree2/folder.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

h:outputText value=#{node.description}
styleClass=nodeFolder/

/h:panelGroup

/f:facet






 /x:tree2

The images are not shown correctly... when looked at the source I see the following for tree image tag...
img id=frmScheduleEditor:queryTree:0:t2
src=""
border=0 height=18 width=19

'frmScheduleEditor:queryTree:0:t2',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif',
'', '../../images/tree2/open.gif', '../../images/tree2/folder.gif',
'queryTree', '0'); style=cursor:hand;cursor:pointer /

I have also tried to set the imageLocation for the tree2 tag, then I am
seeing the default + and - icons for the tree. I have looked at the
tree2.jsp in the examples area and followed the same but is not
working. I have verified my icons and they exist in ../../images/tree2
folder.

Am I doing something wrong here?

Thanks In Advance
Srikanth


RE: tree2 and the icons

2005-12-07 Thread Matias Gomez Carabias








Srikanth, 



You have to set the ImageLocation
attribute to the tree2 definition.



Regards



Matias



-Original Message-
From: sri
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005
2:57 PM
To: MyFaces Discussion
Subject: tree2 and the icons



Hi

 I am trying to use the folder icons for the tree2 component.

My tree is defined as below...


x:tree2 id=queryTree

_javascript_Location=/common/tree2

value=#{scheduleManagerFace.queryTree}

var=node varNodeToggler=t

f:facet name=Root

h:panelGroup

f:facet name=expand

x:graphicImage value=../../images/tree2/open.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

f:facet name=collapse

x:graphicImage value=../../images/tree2/folder.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

h:outputText value=#{node.description}
styleClass=nodeFolder/

/h:panelGroup

/f:facet







/x:tree2

The images are not shown correctly... when looked at the source I see the
following for tree image tag...
img id=frmScheduleEditor:queryTree:0:t2
src=""
border=0 height=18 width=19

'frmScheduleEditor:queryTree:0:t2',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif',
'', '../../images/tree2/open.gif', '../../images/tree2/folder.gif',
'queryTree', '0'); style=cursor:hand;cursor:pointer /

I have also tried to set the imageLocation for the tree2 tag, then I am seeing
the default + and - icons for the tree. I have looked at the tree2.jsp in the
examples area and followed the same but is not working. I have verified my
icons and they exist in ../../images/tree2 folder.

Am I doing something wrong here?

Thanks In Advance
Srikanth








disabled .vs readonly

2005-12-07 Thread Bobby Rosenberger
Hello,Can someone help me make a distinction between the disabled and readonly tags? After some testing I've come to the conclusion that the only real difference is that the 'readonly' attrib will disable an input field without affecting its visual properties, whereas the 'disabled' attrib (a pass-through attrib) WILL affect the visual props.
Interestingly, the 'readonly' attrib seems to have no affect on several of the tags I tested with (ie. selectBooleanCheckbox, selectOneMenu, etc)Any further clarification would be great. I'm trying to determine the appropriate place to use these tags.
Thanks,Bobby


Re: Opening New Window

2005-12-07 Thread Andrew Robinson
Any of these should work:

h:outputLink target=_new value=urlh:outputText
value=text/h:outputLink
h:commandLink target=_new value=link name/
h:commandButton target=_new value=button text type=submit/

I am not sure what output the target creates. If it uses target then
beware of XHTML strict as the target attribute is only to be found in
the transitional (or loose?). On a side note, any know why XHTML
strict is removing all frame, iframe, and window support? What is the
recommended way in XHTML for including sub-pages?

-Andrew

On 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
 Hey Andrew,

 Thanks for the response, (jenia looks interesting) but my current problem
 space is more basic. I'm mainly concerned with the mechanics of opening a
 'new' browser window. Once the window is open it is largely independent - in
 the sense that it no longer needs to communicate with the 'desktop' page.
 Analogous to opening eclipse from a desktop.

 Bobby


 On 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:
  If you have a look at Jenia4Faces, there is a popup library that is
  meant to integrate child windows into the JSF framework. You may want
  to have a look to see if that fits your needs. If you are concerned
  about multiple windows interfering with each other in a server saved
  state you may also want to look at JBoss-Seam for their conversation
  state support that allows windows to have their own state on the
  server (it is not quite that simple, but it is the basic affect).
 
  Jenia is located here: http://www.jenia.org/
 
  -Andrew
 
  On 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
   Hey All,
  
   I think I know the answer to this, but I'd like to get confirmation.
  
   I have a 'desktop-like' page with icons that users click on to open new
   windows. These windows are more than popup windows, they are full-blown
   pages with tabbed interfaces, etc. I'm currently under the impression
 that I
   have to handle opening a new window from my desktop page 'outside' the
   standard JSF navigation mechanism (using faces-config.xml ) and so, am
 using
   javascript to achieve this.
  
   I have no problem doing this, I just wanted to make sure that I hadn't
   missed something. I consider it a benefit to have all possible
 navigation
   branches in an xml file - making it easier to obtain a graphical
   representation of page flow.
  
   Thanks,
   Bobby
  
 




Re: tree2 and the icons

2005-12-07 Thread sri
As I mentioned I tried that but didn't worked.

After further trials, I am able to see my icons if I set
clientSideToggle=false. If it is not set, I am not seeing the icons
that I specify.

Even with setting it to false, the icons are correctly working. I have
defined one icon for expanded mode and one for the collapsed mode.
Initially I am seeing the collapsed icon correctly, when I expand the
tree node, I am seeing the expanded icon correctly. But when I collapse
the node again, I am still seeing the expanded icon.

SrikanthOn 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote:



















Srikanth, 



You have to set the ImageLocation
attribute to the tree2 definition.



Regards



Matias



-Original Message-
From: sri
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 07, 2005
2:57 PM
To: MyFaces Discussion
Subject: tree2 and the icons



Hi

 I am trying to use the folder icons for the tree2 component.

My tree is defined as below...


x:tree2 id=queryTree
_javascript_Location=/common/tree2

value=#{scheduleManagerFace.queryTree}

var=node varNodeToggler=t

f:facet name=Root

h:panelGroup

f:facet name=expand

x:graphicImage value=../../images/tree2/open.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

f:facet name=collapse

x:graphicImage value=../../images/tree2/folder.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

h:outputText value=#{node.description}
styleClass=nodeFolder/

/h:panelGroup

/f:facet







/x:tree2

The images are not shown correctly... when looked at the source I see the
following for tree image tag...
img id=frmScheduleEditor:queryTree:0:t2
src=""
border=0 height=18 width=19

'frmScheduleEditor:queryTree:0:t2',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif',
'', '../../images/tree2/open.gif', '../../images/tree2/folder.gif',
'queryTree', '0'); style=cursor:hand;cursor:pointer /

I have also tried to set the imageLocation for the tree2 tag, then I am seeing
the default + and - icons for the tree. I have looked at the tree2.jsp in the
examples area and followed the same but is not working. I have verified my
icons and they exist in ../../images/tree2 folder.

Am I doing something wrong here?

Thanks In Advance
Srikanth










Re: tree2 and the icons

2005-12-07 Thread sri
corrected a typo.On 12/7/05, sri [EMAIL PROTECTED] wrote:
As I mentioned I tried that but didn't worked.

After further trials, I am able to see my icons if I set
clientSideToggle=false. If it is not set, I am not seeing the icons
that I specify.

Even with setting it to false, the icons are NOT correctly working. I have
defined one icon for expanded mode and one for the collapsed mode.
Initially I am seeing the collapsed icon correctly, when I expand the
tree node, I am seeing the expanded icon correctly. But when I collapse
the node again, I am still seeing the expanded icon.

SrikanthOn 12/7/05, Matias Gomez Carabias 
[EMAIL PROTECTED] wrote:



















Srikanth, 



You have to set the ImageLocation
attribute to the tree2 definition.



Regards



Matias



-Original Message-
From: sri
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 07, 2005
2:57 PM
To: MyFaces Discussion
Subject: tree2 and the icons



Hi

 I am trying to use the folder icons for the tree2 component.

My tree is defined as below...


x:tree2 id=queryTree
_javascript_Location=/common/tree2

value=#{scheduleManagerFace.queryTree}

var=node varNodeToggler=t

f:facet name=Root

h:panelGroup

f:facet name=expand

x:graphicImage value=../../images/tree2/open.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

f:facet name=collapse

x:graphicImage value=../../images/tree2/folder.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

h:outputText value=#{node.description}
styleClass=nodeFolder/

/h:panelGroup

/f:facet







/x:tree2

The images are not shown correctly... when looked at the source I see the
following for tree image tag...
img id=frmScheduleEditor:queryTree:0:t2
src=""
border=0 height=18 width=19

'frmScheduleEditor:queryTree:0:t2',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif',
'', '../../images/tree2/open.gif', '../../images/tree2/folder.gif',
'queryTree', '0'); style=cursor:hand;cursor:pointer /

I have also tried to set the imageLocation for the tree2 tag, then I am seeing
the default + and - icons for the tree. I have looked at the tree2.jsp in the
examples area and followed the same but is not working. I have verified my
icons and they exist in ../../images/tree2 folder.

Am I doing something wrong here?

Thanks In Advance
Srikanth












Re: disabled .vs readonly

2005-12-07 Thread Andrew Robinson
Many thick client controls have the same properties. The usual
debate/answer that I find is this:

1) if the control should never be edited, mark it as read-only
2) if the control is temporarily disabled (i.e. you need to select a
radio button to enable the associated controls), then use disabled.

In general, a read-only controls is something to display data, not a
form control for submitting data. Since radio buttons and check boxes
are rarely ever used for display only, then it may make sense that
they do not support a read-only state.

My $0.02
-Andrew


On 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
 Hello,

 Can someone help me make a distinction between the disabled and readonly
 tags? After some testing I've come to the conclusion that the only real
 difference is that the 'readonly' attrib will disable an input field without
 affecting its visual properties, whereas the 'disabled' attrib (a
 pass-through attrib) WILL affect the visual props.

 Interestingly, the 'readonly' attrib seems to have no affect on several of
 the tags I tested with (ie. selectBooleanCheckbox, selectOneMenu, etc)

 Any further clarification would be great. I'm trying to determine the
 appropriate place to use these tags.

 Thanks,

 Bobby




RE: tree2 and the icons

2005-12-07 Thread Matias Gomez Carabias








Sorry Srikanth,
I didnt read all the mail. My mistake.

I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem.



Regards and sorry again.



Matias





-Original Message-
From: sri
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005
3:16 PM
To: MyFaces Discussion
Subject: Re: tree2 and the icons



As I mentioned I tried that but didn't worked.

After further trials, I am able to see my icons if I set
clientSideToggle=false. If it is not set, I am not seeing the icons
that I specify.

Even with setting it to false, the icons are correctly working. I have defined
one icon for expanded mode and one for the collapsed mode. Initially I am
seeing the collapsed icon correctly, when I expand the tree node, I am seeing
the expanded icon correctly. But when I collapse the node again, I am still
seeing the expanded icon.

Srikanth



On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED]
wrote:



Srikanth, 



You have to set the
ImageLocation attribute to the tree2 definition.



Regards



Matias





-Original Message-
From: sri [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, December 07, 2005
2:57 PM
To: MyFaces Discussion
Subject: tree2 and the icons



Hi

 I am trying to use the folder icons for the tree2 component.

My tree is defined as below...


x:tree2 id=queryTree

_javascript_Location=/common/tree2

value=#{scheduleManagerFace.queryTree}

var=node varNodeToggler=t

f:facet name=Root

h:panelGroup

f:facet name=expand

x:graphicImage value=../../images/tree2/open.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

f:facet name=collapse

x:graphicImage value=../../images/tree2/folder.gif
rendered=#{t.nodeExpanded} border=0/

/f:facet

h:outputText value=#{node.description}
styleClass=nodeFolder/

/h:panelGroup

/f:facet







/x:tree2

The images are not shown correctly... when looked at the source I see the
following for tree image tag...
img id=frmScheduleEditor:queryTree:0:t2
src=""
border=0 height=18 width=19

'frmScheduleEditor:queryTree:0:t2',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-plus-line-last.gif',
'/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11339775/tree2.HtmlTreeRenderer/images/nav-minus-line-last.gif',
'', '../../images/tree2/open.gif', '../../images/tree2/folder.gif',
'queryTree', '0'); style=cursor:hand;cursor:pointer /

I have also tried to set the imageLocation for the tree2 tag, then I am seeing
the default + and - icons for the tree. I have looked at the tree2.jsp in the
examples area and followed the same but is not working. I have verified my
icons and they exist in ../../images/tree2 folder.

Am I doing something wrong here?

Thanks In Advance
Srikanth


















Re: Opening New Window

2005-12-07 Thread Bobby Rosenberger
After reading your email, I checked the documentation and see no reference to a target attrib for the h:commandButton... but my question is specifically about using the jsf navigation mechanism (ie. faces-config.xml
). As I stated, I can open a new window using other methods.Here's a statement to which I'd like a true or false response:There is no way to open a new browser window using the 
default JSF navigation mechanism (ie. using the navigation-rule tag in the faces-config.xml file).I believe the answer is True. Am I correct?Thanks,Bobby
On 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:
Any of these should work:h:outputLink target=_new value=urlh:outputTextvalue=text/h:outputLinkh:commandLink target=_new value=link name/
h:commandButton target=_new value=button text type=submit/I am not sure what output the target creates. If it uses target thenbeware of XHTML strict as the target attribute is only to be found in
the transitional (or loose?). On a side note, any know why XHTMLstrict is removing all frame, iframe, and window support? What is therecommended way in XHTML for including sub-pages?-AndrewOn 12/7/05, Bobby Rosenberger 
[EMAIL PROTECTED] wrote: Hey Andrew, Thanks for the response, (jenia looks interesting) but my current problem space is more basic. I'm mainly concerned with the mechanics of opening a
 'new' browser window. Once the window is open it is largely independent - in the sense that it no longer needs to communicate with the 'desktop' page. Analogous to opening eclipse from a desktop.
 Bobby On 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:  If you have a look at Jenia4Faces, there is a popup library that is
  meant to integrate child windows into the JSF framework. You may want  to have a look to see if that fits your needs. If you are concerned  about multiple windows interfering with each other in a server saved
  state you may also want to look at JBoss-Seam for their conversation  state support that allows windows to have their own state on the  server (it is not quite that simple, but it is the basic affect).
   Jenia is located here: http://www.jenia.org/   -Andrew   On 12/7/05, Bobby Rosenberger 
[EMAIL PROTECTED] wrote:   Hey All, I think I know the answer to this, but I'd like to get confirmation. I have a 'desktop-like' page with icons that users click on to open new
   windows. These windows are more than popup windows, they are full-blown   pages with tabbed interfaces, etc. I'm currently under the impression that I   have to handle opening a new window from my desktop page 'outside' the
   standard JSF navigation mechanism (using faces-config.xml ) and so, am using   _javascript_ to achieve this. I have no problem doing this, I just wanted to make sure that I hadn't
   missed something. I consider it a benefit to have all possible navigation   branches in an xml file - making it easier to obtain a graphical   representation of page flow.
 Thanks,   Bobby   


Re: disabled .vs readonly

2005-12-07 Thread Bobby Rosenberger
Comments below:On 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:
Many thick client controls have the same properties. The usualdebate/answer that I find is this:1) if the control should never be edited, mark it as read-only
2) if the control is temporarily disabled (i.e. you need to select aradio button to enable the associated controls), then use disabled.In general, a read-only controls is something to display data, not aform control for submitting data. Since radio buttons and check boxes
are rarely ever used for display only, then it may make sense thatthey do not support a read-only state.Ah! But they do support it. According to the selectBooleanCheckbox documentation (found at 
http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/tlddocs/) the readonly attrib is a:
  
  Flag indicating that this component will prohibit
  changes by the user.  The element may receive focus
  unless it has also been disabled.I'm guessing this is a bug. The statement above indicates that the disabled attrib will also prevent focus on the component (in addition to modifying its visual props).
So maybe that's it... readonly allows focus and doesn't modify visual properties, disabled does not allow focus and does change visual props... Any further comments or clarifications are welcome.
My $0.02-AndrewBobby


Re: tree2 and the icons

2005-12-07 Thread sri
What do I need to do with the extensions filter ? Does it solve both
the issues I mentioned in my mail ? Please give me an example or tell
what to do in the filter.

Thanks a lot
SrikanthOn 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote:



















Sorry Srikanth,
I didn't read all the mail. My mistake.

I had the same problem a couple of days before, so I used the MyFacesExtensionsFilter to solve the problem.



Regards and sorry again.



Matias






Re: Opening New Window

2005-12-07 Thread Andrew Robinson
That is correct. The navigation just says where and if it should be a
redirect or not, it will output the content on the current stream.
There is no way that the server can target a new window for example
(without javascript in the onload). The browser must open a new
window, then load a given URL in that window. Since it is browser
controlled, the JSF navigation class has no control over this, the
control is handled by the JSF controls.

As for the target attribute, I found the reference at this site's
documentation, it may be incorrect:
http://www.horstmann.com/corejsf/jsf-tags.html

On 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
 After reading your email, I checked the documentation and see no reference
 to a target attrib for the h:commandButton... but my question is
 specifically about using the jsf navigation mechanism (ie. faces-config.xml
 ). As I stated, I can open a new window using other methods.

 Here's a statement to which I'd like a true or false response:

 There is no way to open a new browser window using the default JSF
 navigation mechanism (ie. using the navigation-rule tag in the
 faces-config.xml file).

 I believe the answer is True. Am I correct?

 Thanks,

 Bobby

  On 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:
  Any of these should work:
 
  h:outputLink target=_new value=urlh:outputText
  value=text/h:outputLink
  h:commandLink target=_new value=link name/
  h:commandButton target=_new value=button text type=submit/
 
  I am not sure what output the target creates. If it uses target then
  beware of XHTML strict as the target attribute is only to be found in
  the transitional (or loose?). On a side note, any know why XHTML
  strict is removing all frame, iframe, and window support? What is the
  recommended way in XHTML for including sub-pages?
 
  -Andrew
 
  On 12/7/05, Bobby Rosenberger  [EMAIL PROTECTED] wrote:
   Hey Andrew,
  
   Thanks for the response, (jenia looks interesting) but my current
 problem
   space is more basic. I'm mainly concerned with the mechanics of opening
 a
   'new' browser window. Once the window is open it is largely independent
 - in
   the sense that it no longer needs to communicate with the 'desktop'
 page.
   Analogous to opening eclipse from a desktop.
  
   Bobby
  
  
   On 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:
If you have a look at Jenia4Faces, there is a popup library that is
meant to integrate child windows into the JSF framework. You may want
to have a look to see if that fits your needs. If you are concerned
about multiple windows interfering with each other in a server saved
state you may also want to look at JBoss-Seam for their conversation
state support that allows windows to have their own state on the
server (it is not quite that simple, but it is the basic affect).
   
Jenia is located here: http://www.jenia.org/
   
-Andrew
   
On 12/7/05, Bobby Rosenberger  [EMAIL PROTECTED] wrote:
 Hey All,

 I think I know the answer to this, but I'd like to get confirmation.

 I have a 'desktop-like' page with icons that users click on to open
 new
 windows. These windows are more than popup windows, they are
 full-blown
 pages with tabbed interfaces, etc. I'm currently under the
 impression
   that I
 have to handle opening a new window from my desktop page 'outside'
 the
 standard JSF navigation mechanism (using faces-config.xml ) and so,
 am
   using
 javascript to achieve this.

 I have no problem doing this, I just wanted to make sure that I
 hadn't
 missed something. I consider it a benefit to have all possible
   navigation
 branches in an xml file - making it easier to obtain a graphical
 representation of page flow.

 Thanks,
 Bobby

   
  
  
 




RE: tree2 and the icons

2005-12-07 Thread Matias Gomez Carabias








Just add the extension filter and filterMappings in your web.xml




filter

 filter-nameMyFacesExtensionsFilter/filter-name

 filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class

/filter



filter-mapping

 filter-nameMyFacesExtensionsFilter/filter-name

 url-pattern*.jsf/url-pattern

/filter-mapping

filter-mapping

 filter-nameMyFacesExtensionsFilter/filter-name

 url-pattern/faces/*/url-pattern

/filter-mapping

filter-mapping

 filter-nameMyFacesExtensionsFilter/filter-name

 url-pattern*.faces/url-pattern

/filter-mapping





And remove the _javascript_Location
and imageLocation from the tree2 definition, so the
tree2 will use the images and _javascript_ from the
myfaces jar.





Regards



Matias





-Original Message-
From: sri
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005
4:04 PM
To: MyFaces Discussion
Subject: Re: tree2 and the icons



What do I need to do with the extensions filter ? Does
it solve both the issues I mentioned in my mail ? Please give me an example or
tell what to do in the filter.

Thanks a lot
Srikanth



On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED]
wrote:



Sorry Srikanth,
I didn't read all the mail. My mistake.

I had the same problem a couple of days before, so I
used the MyFacesExtensionsFilter to solve the problem.



Regards and sorry again.



Matias












Partial page refresh in JSF?

2005-12-07 Thread Jeremy Sager








Hi guys 



Thanks in advance for your answer to this question



My company is trying to put together a web client application
using JSF that has the look and feel of the Eclipse Rich Client Platform.



While weve had a good bit of success so far, Ive
run into an issue that Im hoping you guys can give me some advice on.



Basically, I need to do partial page refreshes. I have a
page with three subpages on it that I am controlling the layout of with tiles,
although I am not tied to tiles at this point if it isnt the right
answer.



I need to be able to click on a hyperlink on one of the
subpages and initiate a refresh action on another one of the subpages without
refreshing the parent page, because two of my subpages require significant
database action and hence take some time to load, and a user might typically
want to click on a decent number of links in quick succession. (For those of
you familiar with RCP, clicking a link in the view opens up a new editor in the
editor pane).



I was hoping that you guys could throw some advice my way on
how to refresh the pages in a subview or tile without refreshing the whole darn
thing.





Jeremy Sager

Data Communications
Product Manager

Chesapeake System Solutions

410.356.6805 x120

[EMAIL PROTECTED]










Re: tree2 and the icons

2005-12-07 Thread sri
Thanks again.

That works with the icons that are in the jar file. What if I want to
use my own icons which are not in the jar file but are in a folder ?

The other problem is that once a node is expanded and the expanded icon
is displayed it doesn't go back to the collapsed icon when the node is
collapsed.


Thanks

On 12/7/05, Matias Gomez Carabias [EMAIL PROTECTED] wrote:



















Just add the extension filter and filterMappings in your web.xml




filter

 filter-nameMyFacesExtensionsFilter/filter-name


 filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class


/filter



filter-mapping

 filter-nameMyFacesExtensionsFilter/filter-name


 url-pattern*.jsf/url-pattern


/filter-mapping

filter-mapping

 filter-nameMyFacesExtensionsFilter/filter-name


 url-pattern/faces/*/url-pattern


/filter-mapping

filter-mapping

 filter-nameMyFacesExtensionsFilter/filter-name


 url-pattern*.faces/url-pattern


/filter-mapping





And remove the _javascript_Location
and imageLocation from the tree2 definition, so the
tree2 will use the images and _javascript_ from the
myfaces jar.





Regards



Matias





-Original Message-
From: sri
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 07, 2005
4:04 PM
To: MyFaces Discussion
Subject: Re: tree2 and the icons



What do I need to do with the extensions filter ? Does
it solve both the issues I mentioned in my mail ? Please give me an example or
tell what to do in the filter.

Thanks a lot
Srikanth



On 12/7/05, Matias Gomez Carabias 
[EMAIL PROTECTED]
wrote:



Sorry Srikanth,
I didn't read all the mail. My mistake.

I had the same problem a couple of days before, so I
used the MyFacesExtensionsFilter to solve the problem.



Regards and sorry again.



Matias














f:verbatim problem

2005-12-07 Thread hilz

Hi all...
I have the following dataTable:


h:dataTable binding=#{CreateInstance.dataTable1}
id=dataTable1
   value=#{CreateInstance.dataTable1Model}
   var=currentRow 

   f:verbatim
 colgroup
   col width=200px/
   col width=200px/
   col width=200px/
   col width=500px/
 /colgroup
   /f:verbatim

 h:column .





the colgroup element does not show up in the rendered html at all... as 
it if is ignored...

i tried to remove the f:verbatim tags too, and it will still not work
does anyone know why is that? and how can i set he column widths?

thanks



Re: tree2 and the icons

2005-12-07 Thread Sean Schofield
  That works with the icons that are in the jar file. What if I want to use
 my own icons which are not in the jar file but are in a folder ?

Use the @imageLocation attribute.  You can also override the
javascript for the client side toggle using @javascriptLocation if you
really need to.

  The other problem is that once a node is expanded and the expanded icon is
 displayed it doesn't go back to the collapsed icon when the node is
 collapsed.

That doesn't sound right.  Did you try the simple examples first? 
That's my recommendation to people who have trouble.  If its working
in the simple example and not your own example then you know its not a
bug just a configuration issue.

  Thanks

sean


Re: Opening New Window

2005-12-07 Thread Bobby Rosenberger
Ok... thanks Andrew. Your response makes sense.BobbyP.S. The documentation that I was referring to can be found here:http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/tlddocs/
P.S.S. I checked the documentation that you were referencing and it actually states the following for the target attrib target (h:commandLink
only)... it wraps so it's not immediately apparent that the two lines go together. :)On 12/7/05, Andrew Robinson 
[EMAIL PROTECTED] wrote:That is correct. The navigation just says where and if it should be a
redirect or not, it will output the content on the current stream.There is no way that the server can target a new window for example(without _javascript_ in the onload). The browser must open a newwindow, then load a given URL in that window. Since it is browser
controlled, the JSF navigation class has no control over this, thecontrol is handled by the JSF controls.As for the target attribute, I found the reference at this site'sdocumentation, it may be incorrect:
http://www.horstmann.com/corejsf/jsf-tags.htmlOn 12/7/05, Bobby Rosenberger [EMAIL PROTECTED] wrote:
 After reading your email, I checked the documentation and see no reference to a target attrib for the h:commandButton... but my question is specifically about using the jsf navigation mechanism (ie. 
faces-config.xml ). As I stated, I can open a new window using other methods. Here's a statement to which I'd like a true or false response: There is no way to open a new browser window using the default JSF
 navigation mechanism (ie. using the navigation-rule tag in the faces-config.xml file). I believe the answer is True. Am I correct? Thanks,
 BobbyOn 12/7/05, Andrew Robinson [EMAIL PROTECTED] wrote:  Any of these should work:   h:outputLink target=_new value=urlh:outputText
  value=text/h:outputLink  h:commandLink target=_new value=link name/  h:commandButton target=_new value=button text type=submit/
   I am not sure what output the target creates. If it uses target then  beware of XHTML strict as the target attribute is only to be found in  the transitional (or loose?). On a side note, any know why XHTML
  strict is removing all frame, iframe, and window support? What is the  recommended way in XHTML for including sub-pages?   -Andrew   On 12/7/05, Bobby Rosenberger  
[EMAIL PROTECTED] wrote:   Hey Andrew, Thanks for the response, (jenia looks interesting) but my current problem
   space is more basic. I'm mainly concerned with the mechanics of opening a   'new' browser window. Once the window is open it is largely independent - in   the sense that it no longer needs to communicate with the 'desktop'
 page.   Analogous to opening eclipse from a desktop. Bobby   On 12/7/05, Andrew Robinson 
[EMAIL PROTECTED] wrote:If you have a look at Jenia4Faces, there is a popup library that ismeant to integrate child windows into the JSF framework. You may want
to have a look to see if that fits your needs. If you are concernedabout multiple windows interfering with each other in a server savedstate you may also want to look at JBoss-Seam for their conversation
state support that allows windows to have their own state on theserver (it is not quite that simple, but it is the basic affect).   Jenia is located here: 
http://www.jenia.org/   -Andrew   On 12/7/05, Bobby Rosenberger  
[EMAIL PROTECTED] wrote: Hey All, I think I know the answer to this, but I'd like to get confirmation.
 I have a 'desktop-like' page with icons that users click on to open new windows. These windows are more than popup windows, they are full-blown pages with tabbed interfaces, etc. I'm currently under the
 impression   that I have to handle opening a new window from my desktop page 'outside' the standard JSF navigation mechanism (using 
faces-config.xml ) and so, am   using _javascript_ to achieve this. I have no problem doing this, I just wanted to make sure that I
 hadn't missed something. I consider it a benefit to have all possible   navigation branches in an xml file - making it easier to obtain a graphical
 representation of page flow. Thanks, Bobby 
   


Re: t:dataTable, t:dataScroller and large datasets

2005-12-07 Thread Simon Kitching

Catalin Kormos wrote:

Hi there,

Did any of you guys successfuly managed to use this approach also with 
t:commandSortHeader to allow sorting the pages data by columns?


It doesn't look trivial to me...just let me know if it is realy. If not 
i would realy appreciate a wiki page covering this also.


It is trivial. Sorting with the paging approach suggested in the wiki 
works just like sorting with a complete in-memory list.


As long as the method that is invoked to return the specified dataset 
returns the requested data block in the requested order, it all just 
works.


Regards,

Simon



Re: f:verbatim problem

2005-12-07 Thread gramani

news [EMAIL PROTECTED] wrote on 12/07/2005
02:46:07 PM:

 Hi all...
 I have the following dataTable:
 
 
 h:dataTable binding=#{CreateInstance.dataTable1}
   id=dataTable1
   value=#{CreateInstance.dataTable1Model}
   var=currentRow 
 
   f:verbatim
colgroup
 col width=200px/
 col width=200px/
 col width=200px/
 col width=500px/
/colgroup
   /f:verbatim
 
  h:column .
 
 
 
 
 
 the colgroup element does not show up in the rendered html at all...
as 
 it if is ignored...
 i tried to remove the f:verbatim tags too, and it will still
not work
 does anyone know why is that? 

I think this will work: try putting stuff inside h:column
elements.. 

and how can i set he column widths?
 

Also, adding style class elements like 
h:dataTable
columnClasses=searchTable_Column
.. will get you the style you want..(make sure you declare the style sheet
up top).


 thanks
 

Regards,
Geeta


RE: Progress Bar in Myfaces

2005-12-07 Thread Thomas A Hurley
Hi,

Did you get this to work? I would like to know how you did it. Where did you
find the 'progressbar.jar' file? I searched the
'https://bpcatalog.dev.java.net/' site and could not find it. 

Thanks,

Tom.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 11:54 AM
To: users@myfaces.apache.org
Subject: AW: Progress Bar in Myfaces

Yes, that's what I mean.

Did you implement it within an Myfaces Application? I just get no error
stack, but nothing is displayed...

Here is my code which i used:

(in my jsf page:)


h:form id=content
table class=haupttabelle cellspacing=0
tr
td class=menu1 colspan=2
width=100%!--Header Fragment mit Titelleiste --
[EMAIL PROTECTED]
file=fragments/header.jspf%/td
/tr
tr
td class=menu2
d:progressBar id=progressBar 
   value=#{process.percentage} 
   interval=#{process.pollInterval} 
   action=complete /
/td
/tr
/table
/h:form



and this is the bean (which i just copied)


import java.util.Random;

public class ProcessBean
{

private int percentage;
private int increment;
private Random random;
private int pollInterval;

public ProcessBean()
{
percentage = 0;
increment = 10;
random = new Random();
pollInterval = 250;
}

public int getPercentage()
{
if(100  percentage)
percentage = 0 - increment;
return percentage += increment;
}

public int getRandomPercentage()
{
return random.nextInt(101);
}

public int getPollInterval()
{
return pollInterval;
}

public void setPollInterval(int i)
{
pollInterval = i;
}
}

And I have added the progressbar.jar to my LIB Folder

Have I done anything wrong?

Regards
Andy


-Ursprüngliche Nachricht-
Von: Stand Trooper [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Dezember 2005 17:47
An: MyFaces Discussion
Betreff: Re: Progress Bar in Myfaces


sure, let me get it zipped up and I'll post the link here

Just to make sure, we are talking about the bpcatalog at
https://bpcatalog.dev.java.net/, yes?

thx,

timo

On 12/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 I tried it, but it didn't work.

 Can you post your code?

 -Ursprüngliche Nachricht-
 Von: Stand Trooper [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 5. Dezember 2005 17:09
 An: MyFaces Discussion
 Betreff: Re: Progress Bar in Myfaces


 I was able to get the progress bar from the blueprints to work just
 fine.  I didn't have any issues at all

 On 12/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 
 
 
  Hi all!
 
  Has anybody experiences with Progress Bars and myfaces? I have found the
Sun
  Blueprint Progress Bar with googling but I have also read, that it
doesn't
  work with myfaces.
 
  Has anyone experieces with it, or are there other components that
delivers a
  progress bar functionality?
 
  Regards
  Andy
  __
  This email and any files transmitted with it are confidential and
intended
  solely for the use of the individual or entity to whom they are
addressed.
  If you have received this email in error please notify your system
manager.
  This footnote also confirms that this email message has been swept for
the
  presence of computer viruses.


 __

 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 your system manager.

 This footnote also confirms that this email message has been swept
 for the presence of computer viruses.


__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
__



Re: f:verbatim problem

2005-12-07 Thread hilz

[EMAIL PROTECTED] wrote:


news [EMAIL PROTECTED] wrote on 12/07/2005 02:46:07 PM:

  Hi all...
  I have the following dataTable:
 
 
  h:dataTable binding=#{CreateInstance.dataTable1}
   id=dataTable1
  value=#{CreateInstance.dataTable1Model}
  var=currentRow 
 
  f:verbatim
colgroup
  col width=200px/
  col width=200px/
  col width=200px/
  col width=500px/
/colgroup
  /f:verbatim
 
h:column .
  
 
 
 
 
  the colgroup element does not show up in the rendered html at all... as
  it if is ignored...
  i tried to remove the f:verbatim tags too, and it will still not work
  does anyone know why is that?

I think this will work: try putting stuff inside h:column elements..

and how can i set he column widths?
 

Also, adding style class elements like
h:dataTable columnClasses=searchTable_Column .. will get you the 
style you want..(make sure you declare the style sheet up top).



  thanks
 

Regards,
Geeta



Thanks for the answer Geeta
Adding them in the h:column will show up in the html file, but it 
won't give the results i want. the table looks weird if i do that...


I think the style suggestion is the way to go, but...now this turned 
into a style question!

I hope you can still help me with that!
so how do i specify the width of individual column in the style ?

thanks



Re: f:verbatim problem

2005-12-07 Thread gramani

news [EMAIL PROTECTED] wrote on 12/07/2005
03:39:11 PM:

 
 Thanks for the answer Geeta
 Adding them in the h:column will show up in the html file,
but it 
 won't give the results i want. the table looks weird if i do that...
 
 I think the style suggestion is the way to go, but...now this turned

 into a style question!
 I hope you can still help me with that!
 so how do i specify the width of individual column in the style ?

Here's an example from
my jsp:

t:dataTable
id=items
var=assignment

  
 value=#{assignmentList.assignments}
rowCountVar=rowsCount
  
 headerClass=searchTable_Header
footerClass=searchTable_Footer
  
 columnClasses=searchTable_Column,searchTable_Column_Centered

   h:column

   f:facet
name=header

   
   h:outputText
value=Patient
Name /

   /f:facet

   h:outputText
value=#{assignment.contactName}
/

   /h:column

   h:column

   f:facet
name=header

   
   h:outputText
value=Activity/Call
/

   /f:facet

   h:outputText
value=#{assignment.urlForDisplay}
/

   /h:column
/t:dataTable


My style sheet has:
.searchTable_Column_Centered
{
font-family
: Arial,
Helvetica, verdana, Geneva, sans-serif;
font-size:
12px;
background-color:
#FF;
  color:
#00;
  padding:
2;
  text-align:
center;
  border:
none;
}
.searchTable_Column {
font-family
: Arial,
Helvetica, verdana, Geneva, sans-serif;
font-size:
12px;
font-weight:
bold;
background-color:
#FF;
  color:
#00;
  padding:
2;
  text-align:
left;
  border:
none;
}

(You should be able to add something
like width:760px
above to get the width you want).

And up top in my layout.jsp (I use tiles):

link
rel=stylesheet
  
 href=h:outputText
value=#{facesContext.externalContext.requestContextPath}/style/basic.css
/
/


Hth,
Geeta


Re: Progress Bar in Myfaces

2005-12-07 Thread Dave Brondsema
[EMAIL PROTECTED] wrote:
 
 Hi all!
 
 Has anybody experiences with Progress Bars and myfaces? I have found the
 Sun Blueprint Progress Bar with googling but I have also read, that it
 doesn't work with myfaces.
 
 Has anyone experieces with it, or are there other components that
 delivers a progress bar functionality?
 
 Regards
 Andy
 
 

You can also try out the progress bar component at
http://software.topcoder.com/catalog/c_showroom.jsp?cat=15257626

I haven't tried any of those yet.

-- 
Dave Brondsema
Software Developer
Cornerstone University


signature.asc
Description: OpenPGP digital signature


weblets (serve web resources from within JAR)

2005-12-07 Thread Dave Brondsema

Developers of components (tomahawk, sandbox, and others) should look at
weblets for serving resources (CSS, JS, images, etc) out of a jar package.

http://java.sys-con.com/read/159161.htm

https://weblets.dev.java.net/


-- 
Dave Brondsema
Software Developer
Cornerstone University


signature.asc
Description: OpenPGP digital signature


RE: MyFaces and IBM Portal

2005-12-07 Thread Kandasamy, Uma
Ryan,
I tried as per your suggestion, but still I am getting the following
exception trace in the log file

 Attempt made to start the SampleMyFaces Portlet_PA_1_0_1L8 application.
[12/7/05 15:58:15:532 EST] 3266d9c6 ApplicationMg A WSVR0200I: Starting
application: SampleMyFaces Portlet_PA_1_0_1L8
[12/7/05 15:58:15:652 EST] 3266d9c6 WebContainer  A SRVE0169I: Loading Web
Module: SampleMyFaces Portlet.
[12/7/05 15:58:16:043 EST] 3266d9c6 WebAppE SRVE0015E: Failure to
initialize Web application SampleMyFaces Portlet
[12/7/05 15:58:16:073 EST] 3266d9c6 WebGroup  E SRVE0054E: An error
occurred while loading Web application
[12/7/05 15:58:16:083 EST] 3266d9c6 DeployedAppli W WSVR0206E: Module,
PA_1_0_1L8.war, of application, SampleMyFaces
Portlet_PA_1_0_1L8.ear/deployments/SampleMyFaces Portlet_PA_1_0_1L8, failed
to start
[12/7/05 15:58:16:083 EST] 3266d9c6 ApplicationMg W WSVR0101W: An error
occurred starting, SampleMyFaces Portlet_PA_1_0_1L8
[12/7/05 15:58:16:093 EST] 3266d9c6 ApplicationMg A WSVR0217I: Stopping
application: SampleMyFaces Portlet_PA_1_0_1L8
[12/7/05 15:58:16:123 EST] 3266d9c6 ApplicationMg A WSVR0220I: Application
stopped: SampleMyFaces Portlet_PA_1_0_1L8
[12/7/05 15:58:16:123 EST] 3266d9c6 TraceNLS  u No message text
associated with key
Unable.to.start:.SampleMyFaces.Portlet_PA_1_0_1L8.using:.WebSphere:platform=
common,cell=UKANDASAMY-LT-XP,version=5.0,name=ApplicationManager,mbeanIdenti
fier=ApplicationManager,type=ApplicationManager,node=UKANDASAMY-LT-XP,proces
s=WebSphere_Portal.exception.is:.javax.management.MBeanException in bundle
com.ibm.ws.management.resources.AppDeploymentMessages

Something is preventing the app to be started. 
Is there something else I am missing other than the web.xml and portlet.xml
?

Thanks,


-Original Message-
From: Ryan Wynn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 07, 2005 11:19 AM
To: MyFaces Discussion
Subject: Re: MyFaces and IBM Portal


On 12/7/05, Kandasamy, Uma [EMAIL PROTECTED] wrote:
 Thanks Ryan. I will try this one. Also, does your web.xml reference any of
 the sun's classes (like ConfigureListener).
 Do you mind posting your web.xml ?

 -Original Message-
 From: Ryan Wynn [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 07, 2005 10:56 AM
 To: MyFaces Discussion
 Subject: Re: MyFaces and IBM Portal


 On 12/7/05, Kandasamy, Uma [EMAIL PROTECTED] wrote:
  All,
 
  I am having problems when trying to deploy JSR 168 portlets (built using
  MyFaces Impl) on IBM Portal 5.1.
  It could very well be a problem with IBM supporting the MyFaces JSF
  Implementation. As far as I know, the RAD tool used for creating
portlets
  supports only SUN RI. The web.xml supplied by the RAD tool explicitly
  depends on the SUN's configureListener. When I tried changing that to
the
  MyFaces listener, I had some class cast exception.
 
  Has any one successfully used this combination ?
 
  Thanks in advance,
 
 

 I have had success with this combination.  I am using myfaces with portal
 5.1.
 I started in RAD by creating an empty JSR-168 portlet (using the
 wizard).  Then you won't get all the sun/ibm jsf stuff imported.  My
 WEB-INF/lib directory looks like this

 commons-digester
 commons-codec
 commons-fileupload
 jarkarta-oro
 commons-el
 commons-beanutils
 commons-validator
 commons-collections
 jsp-api.jar
 commons-lang (I don't think you need this but I have it)
 myfaces-impl
 myfaces-api
 tomahawk

 my portlet.xml looks like this

 ?xml version=1.0 encoding=UTF-8?
 portlet-app
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
version=1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
id=FrameworkPortlet.fcd7edcb60

portlet
portlet-nameFrameworkPortlet/portlet-name
display-nameFrameworkPortlet/display-name


portlet-classorg.apache.myfaces.portlet.MyFacesGenericPortlet/portlet-cla
 ss
init-param
namedefault-view/name
value/people.html/value
/init-param
init-param
nameViewPage/name
value/people.html/value
/init-param

supports
mime-typetext/html/mime-type
portlet-modeview/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleFramework Portlet/title
/portlet-info
/portlet

 /portlet-app


 web.xml looks like any web application.

 Hope this helps.


Here is my web.xml.  Some things may not apply to you as I am using
shale-clay, so my views are html.  I do not refer to any Sun classes.


?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, 

h:selectOneMenu question

2005-12-07 Thread Kurt Edegger
Hi everybody,

I'd like to use a dropdown menu in my jsp page, therefor I added 

h:selectOneMenu id=selectModifier value=#{bean.currentItem}
  f:selectItems value=#{bean.itemList} /
/h:selectOneMenu 

to my page. The bean provides getter and setters for both properties, whereby
currentItem is of type SelectItem and itemList is an ArrayList containing
SelectItems. 

Just a static example copied from jsftags-guide into my bean class:

private SelectItem currentItem;

private ArrayList itemList;


public SelectItem getCurrentItem() {
  return new SelectItem(4runner,Toyota 4Runner,Toyota 4Runner - suv);
}

public void setCurrentItem(SelectItem currentItem) {
  this.currentItem = currentItem;
}

public ArrayList getItemList() {
  this.itemList=new ArrayList();
  this.itemList.add(new SelectItem(accord,Honda Accord,Honda Accord -
sedan));
  this.itemList.add(new SelectItem(4runner,Toyota 4Runner,Toyota 4Runner -
suv));
  this.itemList.add(new SelectItem(nissan-z,Nissan Z350,Nissan Z350 -
sports));
  return itemList;
}

public void setItemList(ArrayList itemList) {
  this.itemList = itemList;
}

But whenever I try to render the page, I'll get an
'java.lang.IllegalArgumentException: Value is no String and component
treetestformdb:selectModifier does not have a Converter' Exception.
IMHO the returned SelectItem should be rendered as a String automatically
without the need to attach a custom converter.

What am I'm missing here? I'm banging my head for an hour now,

Kurt





Re: Partial page refresh in JSF?

2005-12-07 Thread Richard Wallace
Have you looked at AjaxAnywhere (http://ajaxanywhere.sourceforge.net/) 
yet? It works exactly this way, giving you zones on the page that get 
reloaded when certain actions occur.


Jeremy Sager wrote:


Hi guys –

Thanks in advance for your answer to this question…

My company is trying to put together a web client application using 
JSF that has the look and feel of the Eclipse Rich Client Platform.


While we’ve had a good bit of success so far, I’ve run into an issue 
that I’m hoping you guys can give me some advice on.


Basically, I need to do partial page refreshes. I have a page with 
three subpages on it that I am controlling the layout of with tiles, 
although I am not tied to tiles at this point if it isn’t the right 
answer.


I need to be able to click on a hyperlink on one of the subpages and 
initiate a refresh action on another one of the subpages without 
refreshing the parent page, because two of my subpages require 
significant database action and hence take some time to load, and a 
user might typically want to click on a decent number of links in 
quick succession. (For those of you familiar with RCP, clicking a link 
in the view opens up a new editor in the editor pane).


I was hoping that you guys could throw some advice my way on how to 
refresh the pages in a subview or tile without refreshing the whole 
darn thing.


Jeremy Sager

Data Communications Product Manager

Chesapeake System Solutions

410.356.6805 x120

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]





Re: h:selectOneMenu question

2005-12-07 Thread Simon Kitching

Kurt Edegger wrote:

Hi everybody,

I'd like to use a dropdown menu in my jsp page, therefor I added 


h:selectOneMenu id=selectModifier value=#{bean.currentItem}
  f:selectItems value=#{bean.itemList} /
/h:selectOneMenu 


to my page. The bean provides getter and setters for both properties, whereby
currentItem is of type SelectItem and itemList is an ArrayList containing
SelectItems. 


I believe #{bean.currentItem} has to return a string that matches 
SelectItem.getValue() of one of the SelectItems in the list.


And when an item in the list is selected, that property will be updated 
to contain the getValue() value of the chosen SelectItem, not a 
reference to the complete SelectItem object.


Regards,

Simon


RE: Partial page refresh in JSF?

2005-12-07 Thread Jeremy Sager
Thanks Richard.

This appears to be exactly what we are looking for.

Jeremy Sager
Data Communications Product Manager
Chesapeake System Solutions
410.356.6805 x120
[EMAIL PROTECTED]
-Original Message-
From: Richard Wallace [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 4:34 PM
To: MyFaces Discussion
Subject: Re: Partial page refresh in JSF?

Have you looked at AjaxAnywhere (http://ajaxanywhere.sourceforge.net/) 
yet? It works exactly this way, giving you zones on the page that get 
reloaded when certain actions occur.

Jeremy Sager wrote:

 Hi guys -

 Thanks in advance for your answer to this question.

 My company is trying to put together a web client application using 
 JSF that has the look and feel of the Eclipse Rich Client Platform.

 While we've had a good bit of success so far, I've run into an issue 
 that I'm hoping you guys can give me some advice on.

 Basically, I need to do partial page refreshes. I have a page with 
 three subpages on it that I am controlling the layout of with tiles, 
 although I am not tied to tiles at this point if it isn't the right 
 answer.

 I need to be able to click on a hyperlink on one of the subpages and 
 initiate a refresh action on another one of the subpages without 
 refreshing the parent page, because two of my subpages require 
 significant database action and hence take some time to load, and a 
 user might typically want to click on a decent number of links in 
 quick succession. (For those of you familiar with RCP, clicking a link 
 in the view opens up a new editor in the editor pane).

 I was hoping that you guys could throw some advice my way on how to 
 refresh the pages in a subview or tile without refreshing the whole 
 darn thing.

 Jeremy Sager

 Data Communications Product Manager

 Chesapeake System Solutions

 410.356.6805 x120

 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]





Simpler exprssions for i18n

2005-12-07 Thread Aleksei Valikov

Hi.

As I saw, everyone's writing something like #{myBundle['myi18n.key']}, 
which is quite awkward. Would't it be easier to have specialized syntax 
for that? Say, $myi18n.key or whatever. This would not only simplify 
page syntax but also allow optimize access to localized values - 
application could compile $key into ultra-high-performance value bindings.


Any comments on that?

Bye.
/lexi


Re: f:verbatim problem

2005-12-07 Thread hilz

[EMAIL PROTECTED] wrote:


news [EMAIL PROTECTED] wrote on 12/07/2005 03:39:11 PM:

 
  Thanks for the answer Geeta
  Adding them in the h:column will show up in the html file, but it
  won't give the results i want. the table looks weird if i do that...
 
  I think the style suggestion is the way to go, but...now this turned
  into a style question!
  I hope you can still help me with that!
  so how do i specify the width of individual column in the style ?

Here's an example from my jsp:

t:dataTable id=items var=assignment
value=#{assignmentList.assignments} 
rowCountVar=rowsCount
headerClass=searchTable_Header 
footerClass=searchTable_Footer

columnClasses=searchTable_Column,searchTable_Column_Centered

h:column
f:facet name=header
h:outputText value=Patient Name /
/f:facet
h:outputText value=#{assignment.contactName} /
/h:column
h:column
f:facet name=header
h:outputText value=Activity/Call /
/f:facet
h:outputText 
value=#{assignment.urlForDisplay} /

/h:column
/t:dataTable


My style sheet has:
.searchTable_Column_Centered {
font-family : Arial, Helvetica, verdana, Geneva, sans-serif;
font-size: 12px;
background-color: #FF;
color: #00;
padding: 2;
text-align: center;
border: none;
}
.searchTable_Column {
font-family : Arial, Helvetica, verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
background-color: #FF;
color: #00;
padding: 2;
text-align: left;
border: none;
}

(You should be able to add something like width:760px above to get the 
width you want).


And up top in my layout.jsp (I use tiles):

link rel=stylesheet
href=h:outputText 
value=#{facesContext.externalContext.requestContextPath}/style/basic.css 
/ /



Hth,
Geeta



Geeta... thank you for your input one more time...
After some investigation, it seems this is not acheivable using stylesheets.
see this:

http://www.notestips.com/80256B3A007F2692/1/TAIO5WFG7K

and more specifically the part where it says:

The problem is that this affects ALL cells, individual columns cannot 
be targeted. The solution is not inherently CSS based but HTML based, 
the way to solve this issue is by inserting the underused colgroup and 
col tags into the table markup.



So there is no way to control the column widths individually using the 
css style...

so we're back to square one... I have to do it using this approach:

colgroup
col width=xxx
col width=xxx
/colgroup

So now i need to figure out how to get this to appear in my html table.
Any solution or work around is appreciated.

thanks



StartupServletContextListener crashes Tomcat container

2005-12-07 Thread jeff . mullen
Greetings

I just joined this list tonight, as I have only started messing around
witth Java Server Faces and Tomcat.
I am working through some tutorials very slowly and I seem to be able to
work the JSP side of things
fairly well, but I cannot get Java Server Faces to work at all. I will skip
the tortuous details of how I got
to this point and simply say that I get the following error when I try to
add the StartupServletContextListener
to the web.xml file


Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/samples] startup failed due to previous errors



Relevant info:
  Apache/Tomcat version 5.5.12
  MyFaces 1.1.1

Included in common\lib
  commons-beanutils.jar
  commons-collections.jar
  commons-digester.jar
  commons-el.jar
  commons-logging.jar
  custom_jsf_lib_1_0_2.jar
  jasper-compiler-jdt.jar
  jasper-compiler.jar
  jasper-runtime.jar
  jsf-api.jar
  jsf-impl.jar
  jsp-api.jar
  jstl.jar
  naming-factory-dbcp.jar
  naming-factory.jar
  naming-resources.jar
  sample_app_1_0_2.jar
  servlet-api.jar
  standard.jar
  struts.jar



web.xml file
--
?xml version=1.0 ?

web-app xmlns=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;
version=2.4



context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueserver/param-value
  /context-param


!-- Startup of Tomcat works until I add this node --
listener

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
/listener



  servlet
servlet-nameFacesServlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
  /servlet

  servlet-mapping
servlet-nameFacesServlet/servlet-name
url-pattern*.faces/url-pattern
  /servlet-mapping






/web-app

---


As I point out above, starting Tomcat works until I add the listener
node. Without it, or so I gather from
googling this all day, the faces page won't work, but the server starts up
at least.

So, what exactly am I missing? (I hope this is enough info)

Thanks
Jeff






Re: StartupServletContextListener crashes Tomcat container

2005-12-07 Thread Kurt Edegger
Hi,

please make sure that you inluded the myfaces libraries to your webapp, since
they are not in your common\lib.
The following links explain how to get started with myfaces (which is just an
implementation of JSF):

http://wiki.apache.org/myfaces/Installation_and_Configuration
http://wiki.apache.org/myfaces/Getting_Started

Take care,

   Kurt

Quoting [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Greetings
 
 I just joined this list tonight, as I have only started messing around
 witth Java Server Faces and Tomcat.
 I am working through some tutorials very slowly and I seem to be able to
 work the JSP side of things
 fairly well, but I cannot get Java Server Faces to work at all. I will skip
 the tortuous details of how I got
 to this point and simply say that I get the following error when I try to
 add the StartupServletContextListener
 to the web.xml file
 
 
 Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Dec 7, 2005 4:48:43 PM org.apache.catalina.core.StandardContext start
 SEVERE: Context [/samples] startup failed due to previous errors
 
 
 
 Relevant info:
   Apache/Tomcat version 5.5.12
   MyFaces 1.1.1
 
 Included in common\lib
   commons-beanutils.jar
   commons-collections.jar
   commons-digester.jar
   commons-el.jar
   commons-logging.jar
   custom_jsf_lib_1_0_2.jar
   jasper-compiler-jdt.jar
   jasper-compiler.jar
   jasper-runtime.jar
   jsf-api.jar
   jsf-impl.jar
   jsp-api.jar
   jstl.jar
   naming-factory-dbcp.jar
   naming-factory.jar
   naming-resources.jar
   sample_app_1_0_2.jar
   servlet-api.jar
   standard.jar
   struts.jar
 
 
 
 web.xml file
 --
 ?xml version=1.0 ?
 
 web-app xmlns=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;
 version=2.4
 
 
 
 context-param
 param-namejavax.faces.STATE_SAVING_METHOD/param-name
 param-valueserver/param-value
   /context-param
 
 
 !-- Startup of Tomcat works until I add this node --
 listener
 

listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
 /listener
 
 
 
   servlet
 servlet-nameFacesServlet/servlet-name
 servlet-classjavax.faces.webapp.FacesServlet/servlet-class
 load-on-startup1/load-on-startup
   /servlet
 
   servlet-mapping
 servlet-nameFacesServlet/servlet-name
 url-pattern*.faces/url-pattern
   /servlet-mapping
 
 
 
 
 
 
 /web-app
 

---
 
 
 As I point out above, starting Tomcat works until I add the listener
 node. Without it, or so I gather from
 googling this all day, the faces page won't work, but the server starts up
 at least.
 
 So, what exactly am I missing? (I hope this is enough info)
 
 Thanks
 Jeff
 
 
 
 
 






panelTabbedPane with dynamic-tabs

2005-12-07 Thread Harald Müller
Hi!

I'd like to use the panelTabbedPane and create the tabs dynamically (reading 
from a xml-file).

I'm getting a list of objects from my bean and for each list-item a new tab 
should be
generated.

My jsf-code looks like this:

t:panelTabbedPane bgcolor=#CC 
c:forEach items=${homeBean.uiData} var=tabDataValue
  c:set var=tabData scope=request value=${tabDataValue}/
  t:panelTab id=tab1 label=#{tabData.tabName} 
h:outputText value=#{tabData.tabName} / 
  /t:panelTab
/c:forEach
/t:panelTabbedPane

I think it's not a good idea to mix jstl with jsf ... so i tried the dataList 
from tomahawk too.

Something like:

t:panelTabbedPane bgcolor=#CC 
t:dataList value=${homeBean.uiData} var=tabData
  t:panelTab id=tab1 label=#{tabData.tabName} rendered=true
h:outputText value=#{tabData.tabName} / 
  /t:panelTab
/t:dataList
/t:panelTabbedPane

But I'm just getting weird results ... and nothing seems to work.

What am I doing wrong? ... Thanks for advise!

Is a possible solution for my problem mentioned here:
http://www.mail-archive.com/users@myfaces.apache.org/msg11352.html
???

regards
Harry


Re: f:verbatim problem

2005-12-07 Thread Paul Klaer

Hi, see my comments at the bottom...

On Wed, 07 Dec 2005 23:46:42 +0100, hilz [EMAIL PROTECTED] wrote:


[EMAIL PROTECTED] wrote:

 news [EMAIL PROTECTED] wrote on 12/07/2005 03:39:11 PM:
  
  Thanks for the answer Geeta
  Adding them in the h:column will show up in the html file, but it
  won't give the results i want. the table looks weird if i do that...
 
  I think the style suggestion is the way to go, but...now this turned
  into a style question!
  I hope you can still help me with that!
  so how do i specify the width of individual column in the style ?
 Here's an example from my jsp:
 t:dataTable id=items var=assignment
value=#{assignmentList.assignments}  
rowCountVar=rowsCount
headerClass=searchTable_Header  
footerClass=searchTable_Footer
 
columnClasses=searchTable_Column,searchTable_Column_Centered

h:column
f:facet name=header
h:outputText value=Patient Name /
/f:facet
h:outputText value=#{assignment.contactName}  
/

/h:column
h:column
f:facet name=header
h:outputText value=Activity/Call /
/f:facet
h:outputText  
value=#{assignment.urlForDisplay} /

/h:column
/t:dataTable
  My style sheet has:
.searchTable_Column_Centered {
font-family : Arial, Helvetica, verdana, Geneva, sans-serif;
font-size: 12px;
background-color: #FF;
color: #00;
padding: 2;
text-align: center;
border: none;
}
.searchTable_Column {
font-family : Arial, Helvetica, verdana, Geneva, sans-serif;
font-size: 12px;
font-weight: bold;
background-color: #FF;
color: #00;
padding: 2;
text-align: left;
border: none;
}
 (You should be able to add something like width:760px above to get the  
width you want).

 And up top in my layout.jsp (I use tiles):
 link rel=stylesheet
href=h:outputText  
value=#{facesContext.externalContext.requestContextPath}/style/basic.css  
/ /

  Hth,
Geeta



Geeta... thank you for your input one more time...
After some investigation, it seems this is not acheivable using  
stylesheets.

see this:

http://www.notestips.com/80256B3A007F2692/1/TAIO5WFG7K

and more specifically the part where it says:

The problem is that this affects ALL cells, individual columns cannot  
be targeted. The solution is not inherently CSS based but HTML based,  
the way to solve this issue is by inserting the underused colgroup and  
col tags into the table markup.



So there is no way to control the column widths individually using the  
css style...

so we're back to square one... I have to do it using this approach:

 colgroup
 col width=xxx
 col width=xxx
 /colgroup

So now i need to figure out how to get this to appear in my html table.
Any solution or work around is appreciated.

thanks



I think he posted a good solution for your needs. As I understand you want  
to set the width for each column to a different size... right? I think the  
post before was correct:


columnClasses=searchTable_Column,searchTable_Column_Centered,  
,last_styleColumnPreviousHasNoStyle


and now you set on each stylesheet class a different size:

.searchTable_Column{
width: 10px;
etc...
}
.searchTable_Column_Centered {
width: 100px;
etc...
}
.last_styleColumnPreviousHasNoStyle{
width: 20px;
etc...
}

This stylesheet and attribute columnClasses will render a table with  
following behaviour:


first column has the width: 10px
second column has the width: 100px
third coulmn has no stylesheet defined
last column has the width 20px

I'm using this approach in my templates for each dataColumn... This works  
fine in myfaces.


The article to which you are referring repects the domino software needs  
and shows a workaround for domino what has nothing to do with myfaces  
because myfaces supports style sheet definitions for each column in a  
table...


-- snip ---
.tableformat3 td{
padding:15px;
width:100px;
}

The problem is that this affects ALL cells, individual columns cannot be  
targeted. The solution is not inherently CSS based but HTML based, the way  
to solve this issue is by inserting the underused colgroup and col  
tags into the table markup.

-- snip --

this is similar to the following myfaces column attribute definition:

columnClasses=searchTable_Column

now all columns are rendered by size 10px because each column uses this  
one style sheet defined.


I hope this will help you understanding the myfaces columns style  
attribute. All comma seperated style definitions will be rendered for each  
individual coulumn and not for all columns.


Thats the same like you would write:

colgroup
  col width=column1_Width_xxx
  

RE: Partial page refresh in JSF?

2005-12-07 Thread Dave
Amazing !! AJX brings JSF to life.Jeremy Sager [EMAIL PROTECTED] wrote:  Thanks Richard.This appears to be exactly what we are looking for.Jeremy SagerData Communications Product ManagerChesapeake System Solutions410.356.6805 x120[EMAIL PROTECTED]-Original Message-From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 4:34 PMTo: MyFaces DiscussionSubject: Re: Partial page refresh in JSF?Have you looked at AjaxAnywhere (http://ajaxanywhere.sourceforge.net/) yet? It works exactly this way, giving you "zones" on the page that get reloaded when certain actions occur.Jeremy Sager wrote: Hi guys - Thanks in advance for your answer to this question. My company is tr
 ying to
 put together a web client application using  JSF that has the look and feel of the Eclipse Rich Client Platform. While we've had a good bit of success so far, I've run into an issue  that I'm hoping you guys can give me some advice on. Basically, I need to do partial page refreshes. I have a page with  three subpages on it that I am controlling the layout of with tiles,  although I am not tied to tiles at this point if it isn't the right  answer. I need to be able to click on a hyperlink on one of the subpages and  initiate a refresh action on another one of the subpages without  refreshing the parent page, because two of my subpages require  significant database action and hence take some time to load, and a  user might typically want to click on a decent number of links in  quick succession. (For those of you familiar with RCP, clicking a link  in
 the view opens up a new editor in the editor pane). I was hoping that you guys could throw some advice my way on how to  refresh the pages in a subview or tile without refreshing the whole  darn thing. Jeremy Sager Data Communications Product Manager Chesapeake System Solutions 410.356.6805 x120 [EMAIL PROTECTED] 
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: Value is not a valid option

2005-12-07 Thread Khurram Ahmed
No the problem wasnt fixed i had to alter my code base to not use
converters in myfaces which are the root of the problem.


RE: disabled .vs readonly

2005-12-07 Thread Yee CN








I believe that the real issue is that HTML
check boxes and radio buttons dont know about the readonly
attribute. So you can only set the disabled attribute if you want
to prevent user input. That will grey out the check box, which I really hated.
This is a different behavior from text input, which can be both readonly and
disabled. 



I see that as a limitation of HTML, not
JSF. I have been wishing we could have a readonly checkbox in HTML for years!



Please correct me if I am wrong.



Regards,

Yee













From: Bobby
Rosenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 8 December 2005
3:01 AM
To: MyFaces
 Discussion
Subject: Re: disabled .vs readonly





Comments below:



On 12/7/05, Andrew
Robinson [EMAIL PROTECTED]
wrote:

Many thick client controls have the same properties. The usual
debate/answer that I find is this:

1) if the control should never be edited, mark it as read-only



2) if the control is temporarily disabled (i.e. you need to select a
radio button to enable the associated controls), then use disabled.

In general, a read-only controls is something to display data, not a
form control for submitting data. Since radio buttons and check boxes 
are rarely ever used for display only, then it may make sense that
they do not support a read-only state.






Ah! But they do support it. According to the selectBooleanCheckbox
documentation (found at http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/tlddocs/)
the readonly attrib is a:
 Flag indicating that this component will prohibit changes by the user.
The element may receive focus unless it has also been disabled.

I'm guessing this is a bug. 

The statement above indicates that the disabled attrib will also
prevent focus on the component (in addition to modifying its visual props). 

So maybe that's it... readonly allows focus and doesn't modify
visual properties, disabled does not allow focus and does change
visual props... 

Any further comments or clarifications are welcome. 







My $0.02
-Andrew







Bobby













Re: t:dataTable, t:dataScroller and large datasets

2005-12-07 Thread Catalin Kormos
Thanks Simon for your reply.It sounds trivial, but i can't get it to work. I can't seem to find the  place where to store the sorted column's name and the sorting type,  ascent/descent. Looks like every time the data is fetched out before  the sorting options are established, or the first sorting change  doesn't have any affect, like, I do click on a column, but the sorting  doesn't take place, then i use the data scroller to move to another  page to see that the sorting did happen I would greatly appreciate  an advice.Thanks,  CatalinSimon Kitching [EMAIL PROTECTED] wrote:  Catalin Kormos wrote: Hi there,  Did any of you guys successfuly managed to use this approach also with   to allow sorting the pages data by columns?&
 gt;
  It doesn't look trivial to me...just let me know if it is realy. If not  i would realy appreciate a wiki page covering this also.It is trivial. Sorting with the "paging" approach suggested in the wiki works just like sorting with a complete in-memory list.As long as the method that is invoked to return the specified dataset returns the requested data block in the requested order, it all "just works".Regards,Simon
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: panelTabbedPane with dynamic-tabs

2005-12-07 Thread Dennis Byrne
Try using the the binding attribute with 
t:panelTabbedPane .  This will allow you to 
programmatically add or substract each tab.

 Original message 
Date: Thu, 8 Dec 2005 00:39:28 +0100
From: Harald Müller [EMAIL PROTECTED]  
Subject: panelTabbedPane with dynamic-tabs  
To: users@myfaces.apache.org

Hi!

I'd like to use the panelTabbedPane and create the tabs 
dynamically (reading from a xml-file).

I'm getting a list of objects from my bean and for each 
list-item a new tab should be
generated.

My jsf-code looks like this:

t:panelTabbedPane bgcolor=#CC 
c:forEach items=${homeBean.uiData} var=tabDataValue
  c:set var=tabData scope=request 
value=${tabDataValue}/
  t:panelTab id=tab1 label=#{tabData.tabName} 
   h:outputText value=#{tabData.tabName} / 
  /t:panelTab
/c:forEach
/t:panelTabbedPane

I think it's not a good idea to mix jstl with jsf ... so i 
tried the dataList from tomahawk too.

Something like:

t:panelTabbedPane bgcolor=#CC 
t:dataList value=${homeBean.uiData} var=tabData
  t:panelTab id=tab1 label=#{tabData.tabName} 
rendered=true
   h:outputText value=#{tabData.tabName} / 
  /t:panelTab
/t:dataList
/t:panelTabbedPane

But I'm just getting weird results ... and nothing seems to 
work.

What am I doing wrong? ... Thanks for advise!

Is a possible solution for my problem mentioned here:
http://www.mail-
archive.com/users@myfaces.apache.org/msg11352.html
???

regards
Harry

Dennis Byrne


Re: h:selectOneMenu question

2005-12-07 Thread mail
Simon,

thank you for your answer, I modified the getter/setter to handle
SelectItem.getValue().toString() instead of the selectItem itself.
But had you ever the chance to take a look at the jsftags-guide examples
(http://www.exadel.com/tutorial/jsf/jsftags-guide.html)? 

They are using the SelectItems directly. 
Where's the difference?

Kurt

Quoting Simon Kitching [EMAIL PROTECTED]:

 Kurt Edegger wrote:
  Hi everybody,
  
  I'd like to use a dropdown menu in my jsp page, therefor I added 
  
  h:selectOneMenu id=selectModifier value=#{bean.currentItem}
f:selectItems value=#{bean.itemList} /
  /h:selectOneMenu 
  
  to my page. The bean provides getter and setters for both properties,
 whereby
  currentItem is of type SelectItem and itemList is an ArrayList containing
  SelectItems. 
 
 I believe #{bean.currentItem} has to return a string that matches 
 SelectItem.getValue() of one of the SelectItems in the list.
 
 And when an item in the list is selected, that property will be updated 
 to contain the getValue() value of the chosen SelectItem, not a 
 reference to the complete SelectItem object.
 
 Regards,
 
 Simon
 






Problem with two input fields in a custom textbox.

2005-12-07 Thread wasim bhatti
Greetings  i have developed a custom component with two input fields but it is not working properly. The problem isthat, in decode method when we use to call setSubmittedValue(), we can only pass one argument in it. Then it updates only one value in the manage bean. The question is how can i update two values in decode method.  is it a limitation of custom components that we can use only one input field in one custom component?Regards  Wasim Bhatti
	
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: f:verbatim problem

2005-12-07 Thread hilz

Paul and Geeta...

thank you s much
After Paul's explanation of Geeta's solution, i was able to get it to 
work using the columnClasses

Now i can control every column's width separately...



Thank you so much for the patience  it is all appreciated

 :)