Re: Where can i find jar file for trinidad?

2007-01-19 Thread mathias °ö°

hi madhav

Trinidad (or formal ADF Faces) refers to an open source code donation
contributed by Oracle.
for a stabile build look here:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html

mathias °ö°


Madhav Bhargava wrote:
> 
> Hi All,
> 
> My workplace does not allow me to connect to external CVS/SVN repositories
> and therefore i will not be able to download the code and compile it using
> Maven.
> I tried looking for a trinidad build (jar file) but could not locate one?
> 
> Could anyone point me to the place where i can get this jar file?
> 
> Thanks,
> Madhav
> 
> -- 
> When I tell the truth, it is not for the sake of convincing those who do
> not
> know it, but for the sake of defending those that do
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Where-can-i-find-jar-file-for-trinidad--tf3038533.html#a8445462
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: Hibernate Object and JSF Bean Design

2007-01-19 Thread stormspire

Hi,
  That means action layer can't take advantage of lazy loading feature any
more if detach the hibernate object and view object.
   It's also troublesome to copy value from entity to view object one by
one, and it will decrease performance if using reflecting.
   Will this approach considered as proper way to do it?

Regards
Bruce



Beelen, Marco wrote:
> 
> Hi,
> 
> I would agree with your friend.
> 
> Although rendering pages does become easier when using the hibernate
> proxy object in your managed-beans directly, it could cause problems
> with being detached from the HibernateSession after the RestoreView
> phase. ( Even when using the HibernateSessionInView-filter. )
> 
> When we switched to 'proper' view-objects and also were able to increase
> the performance of the application by retrieve all needed properties of
> an object at once instead of loading them one-by-one.
> 
> I would never use hibernate proxies again in my managed-beans.
> 
> With kind regards,
>   Marco Beelen
> 
> 
> 
> 
> -Original Message-
> From: stormspire [mailto:[EMAIL PROTECTED] 
> Sent: donderdag 18 januari 2007 8:22
> To: users@myfaces.apache.org
> Subject: Hibernate Object and JSF Bean Design
> 
> 
> Now my JSF managed Bean contains some business object which is hiberante
> object.  
> My friend told me this design is wrong, he says the managed bean should
> contain only View Object, and contents of view object is translated from
> business object.
> 
> Am I really Wrong?
> 
> As I use lots of lazy loading from hibernate, so I can directly call
> object
> lazily loaded for master and detail example.  Any comments?
> -- 
> View this message in context:
> http://www.nabble.com/Hibernate-Object-and-JSF-Bean-Design-tf3032608.htm
> l#a8425940
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
> 
> 
> --
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu - direct contact information for affiliates is 
> available at http://www.merck.com/contact/contacts.html) that may be 
> confidential, proprietary copyrighted and/or legally privileged. It is 
> intended solely for the use of the individual or entity named on this 
> message. If you are not the intended recipient, and have received this 
> message in error, please notify us immediately by reply e-mail and then 
> delete it from your system.
> 
> --
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-Object-and-JSF-Bean-Design-tf3032608.html#a8445639
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: Hibernate Object and JSF Bean Design

2007-01-19 Thread stormspire

Hi,
  Right now we are using HibernateInView filter, normally won't have problem
for transactions.  However if we got some exception, the session may be lost
(haven't gone to the detail, dunno why).
  If my managed bean consists two actions, one action retrieves object,
another action update the object.  So if don't use independant view object
to store the value, the hibernate entity will still be available during
these requests, will it still held database connection for it?  If so, I
think it is not scalable.  How JBoss Seam solve it?

Regards
Bruce



Giampaolo Tomassoni-2 wrote:
> 
> From: stormspire [mailto:[EMAIL PROTECTED]
>> 
>> Now my JSF managed Bean contains some business object which is hiberante
>> object.  
>> My friend told me this design is wrong, he says the managed bean should
>> contain only View Object, and contents of view object is translated from
>> business object.
>> 
>> Am I really Wrong?
>> 
>> As I use lots of lazy loading from hibernate, so I can directly 
>> call object
>> lazily loaded for master and detail example.  Any comments?
> 
> JSF beans may need to be persisted into the session object, so you may get
> problems with transaction boundaries unless you're very careful in
> handling the (de)serialization process and the Hibernate's session and
> connection.
> 
> An out-of-the-shelf approach with similar results but more powerful and
> reliable for you would probably be JBoss Seam, which basicly allows direct
> visibility of business entities from JSF, while correctly handling a lot
> of the hinders which may arise with this.
> 
> You may find it here: http://labs.jboss.com/portal/jbossseam . They say
> it's production. I would say it is an advanced beta. Anyway, what is the
> difference today?
> 
> Cheers,
> 
> Giampaolo
> 
> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Hibernate-Object-and-JSF-Bean-Design-tf30326
> 08.html#a8425940
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-Object-and-JSF-Bean-Design-tf3032608.html#a8445701
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Where can i find jar file for trinidad?

2007-01-19 Thread Matthias Wessendorf

Hi,

check the wiki
http://wiki.apache.org/myfaces/Trinidad

that provides links to a maven repo (which contains nightly builds)

-M

On 1/19/07, Madhav Bhargava <[EMAIL PROTECTED]> wrote:

Hi All,

My workplace does not allow me to connect to external CVS/SVN repositories
and therefore i will not be able to download the code and compile it using
Maven.
I tried looking for a trinidad build (jar file) but could not locate one?

Could anyone point me to the place where i can get this jar file?

Thanks,
Madhav

--
When I tell the truth, it is not for the sake of convincing those who do not
know it, but for the sake of defending those that do



--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


Re: Hibernate Object and JSF Bean Design

2007-01-19 Thread David Delbecq
I don't think there is a problem with using hibernate as JSF bean.
However, the managed beans (those whose lifecycle is directly managed by
jsf) should only be beans whose role is to fetch hibernate POJOs. There
is no problem in having those hibernate objects referenced by JSF
components, as long as all your hibernate POJOs are serializable and you
use the long runing hibernate sessions (those that stays alive between
request). Just put a filter that store a disconnected hibernate session
in user session, reconnect it at each request and re-disconnect it at
end of each request.

This way, each time your hibernate POJOs are used by JSF, they are
linked to an active hibernate session.
En l'instant précis du 01/19/07 09:24, stormspire s'exprimait en ces
termes:
> Hi,
>   That means action layer can't take advantage of lazy loading feature any
> more if detach the hibernate object and view object.
>It's also troublesome to copy value from entity to view object one by
> one, and it will decrease performance if using reflecting.
>Will this approach considered as proper way to do it?
>
> Regards
> Bruce
>
>
>
> Beelen, Marco wrote:
>   
>> Hi,
>>
>> I would agree with your friend.
>>
>> Although rendering pages does become easier when using the hibernate
>> proxy object in your managed-beans directly, it could cause problems
>> with being detached from the HibernateSession after the RestoreView
>> phase. ( Even when using the HibernateSessionInView-filter. )
>>
>> When we switched to 'proper' view-objects and also were able to increase
>> the performance of the application by retrieve all needed properties of
>> an object at once instead of loading them one-by-one.
>>
>> I would never use hibernate proxies again in my managed-beans.
>>
>> With kind regards,
>>   Marco Beelen
>>
>>
>>
>>
>> -Original Message-
>> From: stormspire [mailto:[EMAIL PROTECTED] 
>> Sent: donderdag 18 januari 2007 8:22
>> To: users@myfaces.apache.org
>> Subject: Hibernate Object and JSF Bean Design
>>
>>
>> Now my JSF managed Bean contains some business object which is hiberante
>> object.  
>> My friend told me this design is wrong, he says the managed bean should
>> contain only View Object, and contents of view object is translated from
>> business object.
>>
>> Am I really Wrong?
>>
>> As I use lots of lazy loading from hibernate, so I can directly call
>> object
>> lazily loaded for master and detail example.  Any comments?
>> -- 
>> View this message in context:
>> http://www.nabble.com/Hibernate-Object-and-JSF-Bean-Design-tf3032608.htm
>> l#a8425940
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>>
>>
>> --
>> Notice:  This e-mail message, together with any attachments, contains
>> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
>> New Jersey, USA 08889), and/or its affiliates (which may be known
>> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
>> and in Japan, as Banyu - direct contact information for affiliates is 
>> available at http://www.merck.com/contact/contacts.html) that may be 
>> confidential, proprietary copyrighted and/or legally privileged. It is 
>> intended solely for the use of the individual or entity named on this 
>> message. If you are not the intended recipient, and have received this 
>> message in error, please notify us immediately by reply e-mail and then 
>> delete it from your system.
>>
>> --
>>
>>
>> 
>
>   



Re: Hibernate Object and JSF Bean Design

2007-01-19 Thread Mario Ivankovits
Hi!

Well, I work in an mid size project, approx 3000 java files and 300 jsps.
No need for load balancing or failover, which makes things easier ;-)


We moved (or currently move) from our own persistence to hibernate with
all its problems (Lazy loading, detached objects, ...) Exceptions all
around ;-)

Then, I developed the ConversationTag which you'll find in tomahawk
sandbox which introduce a new scope to JSF - the conversation scope.
Every hibernate object
 now lives in this conversation scope which is synchronized with the
hibernate session and can span multiple requests and pages.

JBoss Seam do alot more, but the main live-saver (IMHO) is its
conversation scope which we have with our tag too.


Some people do not like it do define such things in the view, so the
latest addition is a custom scope for Spring which allows you to more
naturally deal with conversation beans, you simply have to write
scope=conversation in your spring bean configuration.
Some thoughts have to be done how to synchronize such a scope with
hibernate - well, I've done something there too, but I am still not
fully happy with it.

Ciao,
Mario



Memory leak

2007-01-19 Thread phtan
Hi,

We have a memory leak problem when running MyFaces 1.1.3 on Websphere 6.1.  We
used a tool provided by IBM call Memory Dump Diagnostic to compare 2 heap dumps
or when we get a core dump due to out of memory.  The leak candidate shown by
the tool is almost always the BeanInfoManager in apache commons EL.

We googled and found similar reported cases albeit with different app server,
see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6390584. 

Have anyone else faced the same issue and any resolution?  Any help much
appreciated as our system will go production soon. :-(.

Thanks!

Regards,
ph tan



Re: HashMap and dataTable

2007-01-19 Thread mathias °ö°

hi maik
thanks for your answer

it works, but the jsf-page display this:

table:
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]

my jsf-page:







what is wrong?


Mike Kienenberger wrote:
> 
> UIData components operate on ordered lists.
> 
> So the easiest thing to do would be to use something like this:
> 
> 
> 
> public List getMyhmEntrySetList() {
> return new java.util.ArrayList(myhm.entrySet());
> }
> 
> 
> On 1/18/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>>
>> hi all
>>
>> how can i access my HashMap (backing bean) in the jsf-page:
>>
>> 
>>  
>>  
>> 
>>
>> backing bean:
>>
>> public class MyHashMap {
>>
>> public HashMap  myhm = new HashMap();
>>
>> public HashMap getMyhm() {
>>
>> myhm.put("Frage1", "Antwort1");
>> myhm.put("Frage2", "Antwort2");
>> myhm.put("Frage3", "Antwort3");
>> myhm.put("Frage4", "Antwort4");
>>
>> return myhm;
>>
>> }
>>
>> public void setMyhm(HashMap myhm) {
>> this.myhm = myhm;
>>
>> }
>>
>> }
>>
>> --
>> View this message in context:
>> http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8429583
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8446082
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Hibernate Object and JSF Bean Design

2007-01-19 Thread Mario Ivankovits
Hi!
> Well, I work in an mid size project, approx 3000 java files and 300 jsps.
> No need for load balancing or failover, which makes things easier ;-)
>   
Oh, I forget, we directly use Hibernate Objects in our view too.


Ciao,
Mario



RE: How to submit a form using javascript

2007-01-19 Thread Rønnevik , Eivind
Hi!

 

I can give you an example of how I use javascript to do a "click" on a button. 
:)

 

You must remember that if your form id is "myForm", and the button's id is 
"myButton", the correct name of the button (element) in javascript is 
"myForm:myButton"

(This changes is you use the tomahawk components and set the forceId to true)

 

An example of a "generic" function in javascript:

 

function clickButton(formName, elementId)

{

 

  

  var elementToGet = formName + ":" + elementId;

 

  var form = document.forms[formName];

  

  var button = form.elements[elementToGet];

 

  button.click();

}

 

Hope this leads you in the right direction at least :)

 

Regards,

 

Eivind



From: Romanowski, Tim [mailto:[EMAIL PROTECTED] 
Sent: 18. januar 2007 22:54
To: MyFaces Discussion
Subject: How to submit a form using javascript

 

I'm trying to integrate some components form Jack Slocum's yui-ext project [1], 
but have run into a problem in trying to submit a form or link in my JSF code 
from javascript.  The details are posted at [2].  The current information on 
MyFaces wiki at [3] has not helped (see the clickLink javascript function used 
with a hidden link at the bottom of the page); I'm not sure why, but I'm 
wondering if it has something to do with the scope of the function and the way 
it tries to access dom elements.  The first couple examples show how to call 
javascript from within a commandButton or commandLink, but I'm interested in 
doing the reverse-using javascript to execute a button or link.  If anyone 
could offer some insight, it would be greatly appreciated.  

 

Tim

 

[1] http://www.yui-ext.com/

[2] http://www.yui-ext.com/forum/viewtopic.php?t=2204

[3] http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces

 

 



Re: How to submit a form using javascript

2007-01-19 Thread Mario Ivankovits
Hi!
>
> I can give you an example of how I use javascript to do a “click” on a
> button. :)
>
Please have a look at our tomahawk-sandbox submitOnEvent [1] component.
Should already do what you want.


Ciao,
Mario


[1] http://wiki.apache.org/myfaces/SubmitOnEvent



Re: HashMap and dataTable

2007-01-19 Thread Volker Weber

Hi,

try:


 
   
 
 
   
 


Regards,
 Volker

2007/1/19, mathias °ö° <[EMAIL PROTECTED]>:


hi maik
thanks for your answer

it works, but the jsf-page display this:

table:
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
[Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]

my jsf-page:







what is wrong?


Mike Kienenberger wrote:
>
> UIData components operate on ordered lists.
>
> So the easiest thing to do would be to use something like this:
>
> 
>
> public List getMyhmEntrySetList() {
> return new java.util.ArrayList(myhm.entrySet());
> }
>
>
> On 1/18/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>>
>> hi all
>>
>> how can i access my HashMap (backing bean) in the jsf-page:
>>
>> 
>>  
>>  
>> 
>>
>> backing bean:
>>
>> public class MyHashMap {
>>
>> public HashMap  myhm = new HashMap();
>>
>> public HashMap getMyhm() {
>>
>> myhm.put("Frage1", "Antwort1");
>> myhm.put("Frage2", "Antwort2");
>> myhm.put("Frage3", "Antwort3");
>> myhm.put("Frage4", "Antwort4");
>>
>> return myhm;
>>
>> }
>>
>> public void setMyhm(HashMap myhm) {
>> this.myhm = myhm;
>>
>> }
>>
>> }
>>
>> --
>> View this message in context:
>> http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8429583
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context: 
http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8446082
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: HashMap and dataTable

2007-01-19 Thread mathias °ö°

hi volker

great! it works

thanks


Volker Weber-4 wrote:
> 
> Hi,
> 
> try:
> 
> 
>   
> 
>   
>   
> 
>   
> 
> 
> Regards,
>   Volker
> 
> 2007/1/19, mathias °ö° <[EMAIL PROTECTED]>:
>>
>> hi maik
>> thanks for your answer
>>
>> it works, but the jsf-page display this:
>>
>> table:
>> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
>> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
>> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
>> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]
>>
>> my jsf-page:
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> what is wrong?
>>
>>
>> Mike Kienenberger wrote:
>> >
>> > UIData components operate on ordered lists.
>> >
>> > So the easiest thing to do would be to use something like this:
>> >
>> > 
>> >
>> > public List getMyhmEntrySetList() {
>> > return new java.util.ArrayList(myhm.entrySet());
>> > }
>> >
>> >
>> > On 1/18/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>> >>
>> >> hi all
>> >>
>> >> how can i access my HashMap (backing bean) in the jsf-page:
>> >>
>> >> 
>> >>  
>> >>  
>> >> 
>> >>
>> >> backing bean:
>> >>
>> >> public class MyHashMap {
>> >>
>> >> public HashMap  myhm = new HashMap();
>> >>
>> >> public HashMap getMyhm() {
>> >>
>> >> myhm.put("Frage1", "Antwort1");
>> >> myhm.put("Frage2", "Antwort2");
>> >> myhm.put("Frage3", "Antwort3");
>> >> myhm.put("Frage4", "Antwort4");
>> >>
>> >> return myhm;
>> >>
>> >> }
>> >>
>> >> public void setMyhm(HashMap myhm) {
>> >> this.myhm = myhm;
>> >>
>> >> }
>> >>
>> >> }
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8429583
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8446082
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8447609
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: download file breaks lifecycle

2007-01-19 Thread CarlHowarth

Hello,

I posted a question previously relating to this that unfortunately has not
had any replies - I'm hoping to get this resolved I have the same
problem whereby the file's downloaded then any subsequent action on the page
causes the file to re-download. I have added the saveSerializedView method
but to no avail. 

The action is triggered via a command link - now if I replace the command
link with a command button this issue goes away; but I really don't want to
use a button if I can help it!

Can anybody help me with this please?

Many thanks in advance, Carl


Jeff Bischoff wrote:
> 
> David,
> 
> Thanks for the hint. Though I didn't ask the question, I have seen this 
> behavior on one or two of my pages. Now I'll have a chance to fix it 
> perhaps.
> 
> Hmm... I went to the link your code points to, but there was really no 
> mention of *why* this solution works. Do you know who originally figured 
> this out or why it is necessary? I assume it's because we are skipping 
> some necessary lifecycle phase when we write to the out and then call 
> responseComplete?
> 
> Regards,
> 
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
> 
> David Chandler wrote:
>> Simply add these two lines of code before the call to responseComplete():
>> 
>> // Save serialized view or else after clicking on the export 
>> button,
>> user will have to click TWICE to invoke another action
>> // See http://swforum.sun.com/jive/thread.jspa?threadID=63566
>> StateManager stateManager = (StateManager) facesContext
>> .getApplication().getStateManager();
>> stateManager.saveSerializedView(facesContext);
>> 
>> /dmc
>> 
>> On 12/29/06, ::SammyRulez:: <[EMAIL PROTECTED]> wrote:
>>> Hello and happy new year
>>>
>>> Im' using this action method to generate dynamicaly pdf file and send
>>> them to the browser
>>>
>>>   public String generaContratto(){
>>> FacesContext facesContext = FacesContext.getCurrentInstance();
>>> HttpServletResponse response = (HttpServletResponse)
>>> facesContext.getExternalContext().getResponse();
>>> response.setContentType("application/pdf");
>>> String fileName = "blabla.pdf";
>>> response.setHeader("Content-disposition", " attachment;
>>> filename=\"" + fileName + "\"");
>>> try {
>>> ServletOutputStream out;
>>> out = response.getOutputStream();
>>> ProxyDaoFactory daoFactory = new ProxyDaoFactory();
>>> DocumentBuilder builder = new
>>> DocumentBuilderWrapper(daoFactory,
>>> facesContext.getExternalContext().getInitParameter("fileValut"));
>>> builder.write(offerta,out);
>>>
>>> } catch (Exception e) {
>>> ...
>>> return "ERROR"
>>> }
>>> facesContext.responseComplete();
>>>
>>> return "OK";
>>> }
>>>
>>> Everithing works fine: the pdf is generated, downloaded etc.
>>>
>>> But if I trigger some other action on the same view it just render the
>>> page again.. I think it does render response phase. Model is not
>>> updated. It act as if navigation (the ugly back button!) button where
>>> used.
>>>
>>> Any ideas?
>>>
>>> -- 
>>> ::SammyRulez::
>>> http://www.kyub.com/blog/
>>> -
>>> La programmazione è per un terzo interpretazione e per due terzi 
>>> ispirazione.
>>>  E per un terzo mistificazione
>>>
>> 
>> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/download-file-breaks-lifecycle-tf2893828.html#a8447914
Sent from the MyFaces - Users mailing list archive at Nabble.com.



users@myfaces.apache.org

2007-01-19 Thread Alex . Trusler
Hello all,

Does anyone know if you can programatically change the value of a 
 field? I am trying to set the value of a  
component so that it displays the date on screen. I can only get it to 
display current date and time.

I have the followng backing bean :-

public class test {
private Date effectiveDateFrom; 

public Date getEffectiveDateFrom() 
{
return effectiveDateFrom;
}
 
public void setEffectiveDateFrom(Date effectiveDateFrom) 
{
this.effectiveDateFrom = effectiveDateFrom;
}
}

Here is the jsp code :-



This will happily display the current date and time when the screen is 
entered as the value of effectiveDateFrom is set to null but if I try and 
set it to another value it ignores the new value and still displays the 
current time e.g.

public void setTestDate {
effectiveDateFrom = new Date(11629202495000);
}

On screen I still get the current time on refresh.

Has anyone programatically changed the value of a ? If so 
could someone let me know what I am doing wrong.

Many Thanks in advance.

Alex...


-
This message (including any files transmitted with it) may contain
confidential and/or proprietary information, is the property of
Interactive Data Corporation and/or its subsidiaries, and is
directed only to the addressee(s). If you are not the designated
recipient or have reason to believe you received this message in
error, please delete this message from your system and notify the
sender immediately.   An unintended recipient's disclosure,
copying, distribution, or use of this message or any attachments is
prohibited and may be unlawful


[OT][ANN] JAVAWUG BOF 23 Video Available

2007-01-19 Thread Peter . Pilgrim
Hi

Just a quick announcement that JAVAWUG BOF 23 video is available from
Google Video.
This was an Open Space Technology discussion of Java Web and Enterprise
Futures.
http://video.google.com/videoplay?docid=-354206984911965249&hl=en


--
Peter Pilgrim, JUG Leader, 
JAVAWUG (The Java Web Users Group) [e] 2004 
:: http://jroller.com/page/javawug/ ::
 __ 
|__| ___  ___ __  _   __    
|  \__  \\  \/ /\__  \\ \/ \/ /  |  \/ ___\ 
|  |/ __ \\   /  / __ \\ /|  |  / /_/  >
/\__|  (  /\_/  (  /\/\_/ |/\___  / 
\__|\/   \//_/  

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.



I need you opinion (suggestion)...

2007-01-19 Thread mario.buonopane
I know this is not a question usually we must send in this mailing list
but i would like the opinion of someone of you for the following:

I need to access to the HttpRequest object in a POJO with no parameters
input. This POJO is executed in a servlet container because is a Front
End component. To do it, I'm going to configure a listener that put the
request object in TheadLocal.

What do you think? Is a godd idea? Is there some probability to have
problem in future or in some case?

 

Any suggestions are welcome..

 

Regards

Mario Buonopane



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re:

2007-01-19 Thread Volker Weber

Hi Alex,

where did you call setTestDate()?

2007/1/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


Hello all,

Does anyone know if you can programatically change the value of a
 field? I am trying to set the value of a 
component so that it displays the date on screen. I can only get it to
display current date and time.

I have the followng backing bean :-

public class test {
private Date effectiveDateFrom;

public Date getEffectiveDateFrom()
{
return effectiveDateFrom;
}

public void setEffectiveDateFrom(Date effectiveDateFrom)
{
this.effectiveDateFrom = effectiveDateFrom;
}
}

Here is the jsp code :-



This will happily display the current date and time when the screen is
entered as the value of effectiveDateFrom is set to null but if I try and
set it to another value it ignores the new value and still displays the
current time e.g.

public void setTestDate {
effectiveDateFrom = new Date(11629202495000);
}

On screen I still get the current time on refresh.

Has anyone programatically changed the value of a ? If so could
someone let me know what I am doing wrong.

Many Thanks in advance.

Alex...









 This message (including any files transmitted with it) may contain
 confidential and/or proprietary information, is the property of
 Interactive Data Corporation and/or its subsidiaries, and is
 directed only to the addressee(s). If you are not the designated
 recipient or have reason to believe you received this message in
 error, please delete this message from your system and notify the
 sender immediately. An unintended recipient's disclosure,
 copying, distribution, or use of this message or any attachments is
 prohibited and may be unlawful



Re: unsubscribe

2007-01-19 Thread Ali Sakebi

Sorry wrong receiver!

On 1/19/07, Ali Sakebi <[EMAIL PROTECTED]> wrote:





Re: rcfaces with myfaces

2007-01-19 Thread Mikael Andersson

Hi

any success which getting rcfaces to work with myfaces yet?

I've tried to create a simple webapp using myfaces (and facelets) myself,
but without success.

My stack trace:

SEVERE: Error Rendering View[/index.xhtml]
org.rcfaces.core.internal.renderkit.WriterException: RuntimeException
   at
org.rcfaces.core.internal.renderkit.AbstractCameliaRenderer.encodeEnd(
AbstractCameliaRenderer.java:138)
   at javax.faces.component.UIComponentBase.encodeEnd(
UIComponentBase.java:536)
   at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:242)
   at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:239)
   at com.sun.facelets.FaceletViewHandler.renderView(
FaceletViewHandler.java:580)
   at org.apache.myfaces.lifecycle.LifecycleImpl.render(
LifecycleImpl.java:384)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:445)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1049)
   at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
ExtensionsFilter.java:144)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1040)
   at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:352)
   at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:185)
   at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:230)
   at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:627)
   at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
ContextHandlerCollection.java:149)
   at org.mortbay.jetty.handler.HandlerCollection.handle(
HandlerCollection.java:123)
   at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:141)
   at org.mortbay.jetty.Server.handle(Server.java:286)
   at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java:444)
   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
HttpConnection.java:701)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:340)
   at org.mortbay.jetty.nio.HttpChannelEndPoint.run(
HttpChannelEndPoint.java:270)
   at org.mortbay.thread.BoundedThreadPool$PoolThread.run(
BoundedThreadPool.java:475)
Caused by: java.lang.NullPointerException: Unknown class 'f_ruler'.
   at
org.rcfaces.renderkit.html.internal.javascript.JavaScriptRepository.convertType
(JavaScriptRepository.java:94)
   at
org.rcfaces.core.internal.webapp.AbstractHierarchicalRepository.computeFiles
(AbstractHierarchicalRepository.java:297)
   at
org.rcfaces.renderkit.html.internal.JavaScriptRenderContext.isRequiresPending
(JavaScriptRenderContext.java:172)
   at
org.rcfaces.renderkit.html.internal.AbstractJavaScriptRenderer.encodeEndJavaScript
(AbstractJavaScriptRenderer.java:417)
   at
org.rcfaces.renderkit.html.internal.AbstractJavaScriptRenderer.encodeEnd(
AbstractJavaScriptRenderer.java:376)
   at
org.rcfaces.renderkit.html.internal.renderer.RulerRenderer.encodeEnd(
RulerRenderer.java:32)
   at
org.rcfaces.core.internal.renderkit.AbstractCameliaRenderer.encodeEnd(
AbstractCameliaRenderer.java:135)
   ... 25 more

- Mike

On 18/01/07, Madhav Bhargava <[EMAIL PROTECTED]> wrote:


Hi Veit,

Sorry the delay in response. Since rcfaces was not working so i shifted to
other alternatives as we had time constraints. I now want to make rcfaces
work as it seems to be a promising set of JSF components.

I have done the following set up for rcfaces:

1. Added rcfaces-htmlc.jar and rcfaces-core.jar to WEB-INF/lib
2. Made the following entries into web.xml:

 Rcfaces Framework Contents
 
  org.rcfaces.renderkit.html.internal.resource.ResourcesServlet
 
 
  
   org.rcfaces.renderkit.html.javascript.sets.CORE
  
  basicComponent,message,fieldSet,ajax,service,extraButton,log,
consoleLog
 
 4


 Rcfaces Application Contents
 
  org.rcfaces.core.internal.contentStorage.ContentStorageServlet
 
 5


 Just to test i included the following in the JSP:

<%@
taglib uri="http://rcfaces.org/core " prefix="v"%>
and

<
h:panelGroup>






When the ear file for the application is deployed then an exception is
thrown by rcfaces. Following is the exception:
 *x--  cut -- x*

179542 DEBUG [ScannerThread]
org.rcfaces.core.internal.util.URLContentProvider - URL
'jar:file:/D:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp10242ehr-
app.ear-contents/ehr-web-exp.war/WEB-INF/lib/rcfaces-htmlc_symbols.jar!/org/rcfaces/renderkit/html/internal/javascript/symbols'
does not exist !

java.util.zip.ZipException: The system cannot find the file specified

at java.util.zip.ZipFile.open(Native Method)
*x--  cut -- x*
**
*[[Madhav]] The file "

How to set the column with in dataTable?

2007-01-19 Thread Chen, Wei
 

Hi,

 

My codes looks as follow. But it doesn't work. Any Tipps?

 











  



...

...



 

Regards

 

Wei

 

 

-Ursprüngliche Nachricht-
Von: Volker Weber [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. Januar 2007 12:11
An: MyFaces Discussion
Betreff: Re: HashMap and dataTable

 

Hi,

 

try:

 



  



  

  



  



 

Regards,

  Volker

 

2007/1/19, mathias °ö° <[EMAIL PROTECTED]>:

> 

> hi maik

> thanks for your answer

> 

> it works, but the jsf-page display this:

> 

> table:

> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]

> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]

> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]

> [Frage1=Antwort1, Frage3=Antwort3, Frage2=Antwort2, Frage4=Antwort4]

> 

> my jsf-page:

> 

> 

> 

> 

> 

> 

> 

> what is wrong?

> 

> 

> Mike Kienenberger wrote:

> >

> > UIData components operate on ordered lists.

> >

> > So the easiest thing to do would be to use something like this:

> >

> > 

> >

> > public List getMyhmEntrySetList() {

> > return new java.util.ArrayList(myhm.entrySet());

> > }

> >

> >

> > On 1/18/07, mathias °ö° <[EMAIL PROTECTED]> wrote:

> >>

> >> hi all

> >>

> >> how can i access my HashMap (backing bean) in the jsf-page:

> >>

> >> 

> >>  

> >>  

> >> 

> >>

> >> backing bean:

> >>

> >> public class MyHashMap {

> >>

> >> public HashMap  myhm = new HashMap();

> >>

> >> public HashMap getMyhm() {

> >>

> >> myhm.put("Frage1", "Antwort1");

> >> myhm.put("Frage2", "Antwort2");

> >> myhm.put("Frage3", "Antwort3");

> >> myhm.put("Frage4", "Antwort4");

> >>

> >> return myhm;

> >>

> >> }

> >>

> >> public void setMyhm(HashMap myhm) {

> >> this.myhm = myhm;

> >>

> >> }

> >>

> >> }

> >>

> >> --

> >> View this message in context:

> >> http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8429583

> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.

> >>

> >>

> >

> >

> 

> --

> View this message in context: 
> http://www.nabble.com/HashMap-and-dataTable-tf3033822.html#a8446082

> Sent from the MyFaces - Users mailing list archive at Nabble.com.

> 

> 



Re:

2007-01-19 Thread Alex . Trusler
I have a Drop down list and a valueChangeListener on the drop down list 
which calls setTestDate :-

public void dropDownChanged(ValueChangeEvent event)
{
setTestDate();
}

This is code just to test the theory that is why it is pretty basic but I 
cannot change the date programatically.

Many Thanks...




"Volker Weber" <[EMAIL PROTECTED]> 
19/01/2007 12:21
Please respond to
"MyFaces Discussion" 


To
"MyFaces Discussion" 
cc

Subject
Re: 





Hi Alex,

where did you call setTestDate()?

2007/1/19, [EMAIL PROTECTED] 
<[EMAIL PROTECTED]>:
>
> Hello all,
>
> Does anyone know if you can programatically change the value of a
>  field? I am trying to set the value of a 
> component so that it displays the date on screen. I can only get it to
> display current date and time.
>
> I have the followng backing bean :-
>
> public class test {
> private Date effectiveDateFrom;
>
> public Date getEffectiveDateFrom()
> {
> return effectiveDateFrom;
> }
>
> public void setEffectiveDateFrom(Date effectiveDateFrom)
> {
> this.effectiveDateFrom = effectiveDateFrom;
> }
> }
>
> Here is the jsp code :-
>
>  popupCalendar="true" />
>
> This will happily display the current date and time when the screen is
> entered as the value of effectiveDateFrom is set to null but if I try 
and
> set it to another value it ignores the new value and still displays the
> current time e.g.
>
> public void setTestDate {
> effectiveDateFrom = new Date(11629202495000);
> }
>
> On screen I still get the current time on refresh.
>
> Has anyone programatically changed the value of a ? If so 
could
> someone let me know what I am doing wrong.
>
> Many Thanks in advance.
>
> Alex...
>
>
> 
>
>
>
>
>
>
>  This message (including any files transmitted with it) may contain
>  confidential and/or proprietary information, is the property of
>  Interactive Data Corporation and/or its subsidiaries, and is
>  directed only to the addressee(s). If you are not the designated
>  recipient or have reason to believe you received this message in
>  error, please delete this message from your system and notify the
>  sender immediately. An unintended recipient's disclosure,
>  copying, distribution, or use of this message or any attachments is
>  prohibited and may be unlawful
>


Re:

2007-01-19 Thread Mario Ivankovits
Hi Alex!
> I have a Drop down list and a valueChangeListener on the drop down
> list which calls setTestDate :-
>
> public void dropDownChanged(ValueChangeEvent event)
> {
> setTestDate();
A normal ValueChangeEvent will be sent BEFORE the model update. So your
changed date will be reset to the current displayed value.

Use the our sandbox component s:valueChangeNotifier instead. This
component uses the same method signature, but will fire after the model
update so you can do with your beans whatever your would like to and
have the changes reflected in the UI.

Ciao,
Mario



Re: rcfaces with myfaces

2007-01-19 Thread Madhav Bhargava

Unfortunately no. What is the configuration that you have used?

On 1/19/07, Mikael Andersson <[EMAIL PROTECTED]> wrote:


Hi

any success which getting rcfaces to work with myfaces yet?

I've tried to create a simple webapp using myfaces (and facelets) myself,
but without success.

My stack trace:

SEVERE: Error Rendering View[/index.xhtml]
org.rcfaces.core.internal.renderkit.WriterException: RuntimeException
at
org.rcfaces.core.internal.renderkit.AbstractCameliaRenderer.encodeEnd(
AbstractCameliaRenderer.java:138)
at javax.faces.component.UIComponentBase.encodeEnd (
UIComponentBase.java:536)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:242)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(
ComponentSupport.java:239)
at com.sun.facelets.FaceletViewHandler.renderView(
FaceletViewHandler.java:580)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(
LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service (FacesServlet.java:138)
at org.mortbay.jetty.servlet.ServletHolder.handle(
ServletHolder.java:445)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1049)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
ExtensionsFilter.java:144)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1040)
at org.mortbay.jetty.servlet.ServletHandler.handle (
ServletHandler.java:352)
at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:230)
at org.mortbay.jetty.handler.ContextHandler.handle (
ContextHandler.java:627)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
ContextHandlerCollection.java:149)
at org.mortbay.jetty.handler.HandlerCollection.handle(
HandlerCollection.java:123)
at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:141)
at org.mortbay.jetty.Server.handle(Server.java:286)
at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java :444)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
HttpConnection.java:701)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
at org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java
:203)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
:340)
at org.mortbay.jetty.nio.HttpChannelEndPoint.run(
HttpChannelEndPoint.java:270)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run (
BoundedThreadPool.java:475)
Caused by: java.lang.NullPointerException: Unknown class 'f_ruler'.
at
org.rcfaces.renderkit.html.internal.javascript.JavaScriptRepository.convertType
(JavaScriptRepository.java :94)
at
org.rcfaces.core.internal.webapp.AbstractHierarchicalRepository.computeFiles
(AbstractHierarchicalRepository.java:297)
at
org.rcfaces.renderkit.html.internal.JavaScriptRenderContext.isRequiresPending(
JavaScriptRenderContext.java:172)
at
org.rcfaces.renderkit.html.internal.AbstractJavaScriptRenderer.encodeEndJavaScript
(AbstractJavaScriptRenderer.java:417)
at
org.rcfaces.renderkit.html.internal.AbstractJavaScriptRenderer.encodeEnd (
AbstractJavaScriptRenderer.java:376)
at
org.rcfaces.renderkit.html.internal.renderer.RulerRenderer.encodeEnd(
RulerRenderer.java:32)
at
org.rcfaces.core.internal.renderkit.AbstractCameliaRenderer.encodeEnd (
AbstractCameliaRenderer.java:135)
... 25 more

- Mike

On 18/01/07, Madhav Bhargava <[EMAIL PROTECTED] > wrote:
>
> Hi Veit,
>
> Sorry the delay in response. Since rcfaces was not working so i shifted
> to other alternatives as we had time constraints. I now want to make rcfaces
> work as it seems to be a promising set of JSF components.
>
> I have done the following set up for rcfaces:
>
> 1. Added rcfaces-htmlc.jar and rcfaces-core.jar to WEB-INF/lib
> 2. Made the following entries into web.xml:
> 
>  Rcfaces Framework Contents
>  
>   org.rcfaces.renderkit.html.internal.resource.ResourcesServlet
>  
>  
>   
>org.rcfaces.renderkit.html.javascript.sets.CORE
>   
>   basicComponent,message,fieldSet,ajax,service,extraButton,log,
> consoleLog
>  
>  4
> 
> 
>  Rcfaces Application Contents
>  
>   org.rcfaces.core.internal.contentStorage.ContentStorageServlet
>  
>  5
> 
>
>  Just to test i included the following in the JSP:
>
> <%@
> taglib uri=" http://rcfaces.org/core " prefix="v"%>
> and
>
> <
> h:panelGroup>
>
> 
>
> 
>
> 
> When the ear file for the application is deployed then an exception is
> thrown by rcfaces. Following is the exception:
>  *x--  cut -- x*
>
> 179542 DEBUG [ScannerThread]
> org.rcfaces.core.internal.util.URLContentProvider - URL
> 'jar:file:/D:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp10242ehr-
> 
app.ear-contents/ehr-web-exp.war/

Calling

2007-01-19 Thread mario.buonopane
Is there a way to set NavigationMenuItem to call an url to another web
application? i have to use externalLink?

 

Thanks

Mario Buonopane



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Clear all messages

2007-01-19 Thread Madhav Bhargava



I need to clear all the components in a form. According to the wiki
http://wiki.apache.org/myfaces/ClearInputComponents there are many
methods that given. I tried the first method. It works well in a simple
JSF page. In my case I tried to use it in a page that has 2 tabs. Each
of the tabs has a JSP include. Now if I want to clear only components
that are present in one tab then this method will not work. It gives
weird results.



I do not want to go over all the components in the form as there are
many and as told in the wiki entry there can be complications based on
what type of control you are dealing with. Is there any better and
easier solution to clearing components in one form? I am wondering why
such a simple thing as clearing form fields has to have such a complex
solution.



One more thing - how do you clear all the messages in the message queue.
The problem is that if I have a command button with type = "reset" then
it will not work if there are validation error messages on the page. Is
there any way in which I can clear all the messages and then reset the
form?



I had a look at ServletFacesContextImpl (as my app runs in Servlet
container) class there is no method to only clear all the messages.



Thanks for any help.

~madhav







 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

Re: selectManyPicklist causes 'Validation Error'

2007-01-19 Thread rgarcia

I have a similar problem... Try using itemValue="#{product.id}''"  it will
force id to string. I beleive it's a conversion issue, not sure if the
component needs to implement the code to use the standard converters
explicitily.
Regars,
Renato


Beelen, Marco wrote:
> 
> Hello,
> 
> I'm running into some troubles using the selectManyPickList for the
> sandbox ( 1.1.5-SNAPSHOT )
> I use the component to let my users select the products they want for
> the set of available products. 
> 
>  id="productList" size="10">
>  value="#{backingBean.availableProducts}" 
>   var="product" 
>   itemLabel="#{product.description}" 
>   itemValue="#{product.id}" />
> 
> 
> The backingbean stores the selectedId's in a private Long[]
> selectedProductIds.
> 
> In order to improve the usability of the application I pre-populate the
> selectedIds based upon the user-profile.
> When a users adds or removes an item from the PickList the application
> continues perfectly, but when a user only want to use the values aready
> in the selectedIds and directly hits the 'next'-commandButton a
> Validation Error occures and the same page is being rerendered.
> 
> The execution of the program doesn't reach the action assigned to the
> commandButton.
> 
> The really weird thing is that when I remove an item from the
> pre-populated selected list and then add the same item again and hit the
> commandButton, the validation error doesn't occur.
> 
> 
> Can anybody think along about what might cause this strange behaviour
> and how I can get around this?
> 
> I'm using MyFaces 1.1.3 with tomahawk 1.15-SNAPSHOT running on Tomcat
> 5.5.9 and jdk 1.5.0_07.
> My managed-bean is being stored in session-scope and I'm using
> server-side state saving.
> 
> Any help or suggestions are greatly appreciated
> 
> With kind regards,
>Marco Beelen
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu - direct contact information for affiliates is 
> available at http://www.merck.com/contact/contacts.html) that may be 
> confidential, proprietary copyrighted and/or legally privileged. It is 
> intended solely for the use of the individual or entity named on this 
> message. If you are not the intended recipient, and have received this 
> message in error, please notify us immediately by reply e-mail and then 
> delete it from your system.
> 
> 
> --
> 

-- 
View this message in context: 
http://www.nabble.com/selectManyPicklist-causes-%27Validation-Error%27-tf2947269.html#a8449959
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re:

2007-01-19 Thread Alex . Trusler
Thanks for your help Mario, I now understand why my problem has occured.

Alex...




Mario Ivankovits <[EMAIL PROTECTED]> 
19/01/2007 13:44
Please respond to
"MyFaces Discussion" 


To
MyFaces Discussion 
cc

Subject
Re: 





Hi Alex!
> I have a Drop down list and a valueChangeListener on the drop down
> list which calls setTestDate :-
>
> public void dropDownChanged(ValueChangeEvent event)
> {
> setTestDate();
A normal ValueChangeEvent will be sent BEFORE the model update. So your
changed date will be reset to the current displayed value.

Use the our sandbox component s:valueChangeNotifier instead. This
component uses the same method signature, but will fire after the model
update so you can do with your beans whatever your would like to and
have the changes reflected in the UI.

Ciao,
Mario




-
This message (including any files transmitted with it) may contain
confidential and/or proprietary information, is the property of
Interactive Data Corporation and/or its subsidiaries, and is
directed only to the addressee(s). If you are not the designated
recipient or have reason to believe you received this message in
error, please delete this message from your system and notify the
sender immediately.   An unintended recipient's disclosure,
copying, distribution, or use of this message or any attachments is
prohibited and may be unlawful


Access to param

2007-01-19 Thread [EMAIL PROTECTED]

Hello

Can I set a request parameter in the action listener? Thanks for 
Your help.
I tried it with a request attribute, but I think this does not 
work

Urs









Show category
/overview.jsp

category
/category.jsp






Does facestraces give the memory used as well?

2007-01-19 Thread Madhav Bhargava

Hi All,



I have just started using facetraces to check the performance of the
application.

I am wondering if you can also get the memory footprint of the
application as well. Is that possible as it would be really useful?



If not then are there any other tools to check leaks or memory usage by
the app at any stage?



Rgds,

Madhav



 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

RE: How to submit a form using javascript

2007-01-19 Thread Romanowski, Tim
Thanks for the sample; I tried it, and it looks like it works fine, but
there is a snag…when I make the call to add a button to my dialog box, the
‘clickButton’ function is called immediately.  That means when I click my
“Search” button in my JSF page, instead of opening the dialog box, it
immediately submits the form.  Obviously, I want the dialog to open, and
then only submit the form when the “Submit” button on the dialog box is
clicked.  Why is the ‘clickButton’ function being called as soon as the
dialog box is created?  I two javascript books from O’Reilly yesterday and
am trying to figure this out, but I don’t understand why a reference to a
function is automatically executing that function.  Any suggestions?

 

// Example for using a popup taken directly from the yui-ext documentation. 

// It works before I try to add a reference to my own function in the last
“addButton” call, below.

var HelloWorld = function(){

// everything in this space is private and only accessible in the
HelloWorld block



// define some private variables

var dialog, showBtn;

 

// An early attempt at submitting the form directly.

var myTestFunction = function(){

getEl('searchForm').submit();

};

 

// clickLink uses code from the MyFaces wiki, but generates an error

// when fireOnThis is assigned...says it has no elements.

var clickLink = function(linkId)

{

  var fireOnThis = document.getElementById(linkId);

  if (document.createEvent)

  {

var evObj = document.createEvent('MouseEvents');

evObj.initEvent( 'click', true, false );

fireOnThis.dispatchEvent(evObj);

  }

  else if (document.createEventObject)

  {

fireOnThis.fireEvent('onclick');

  }

return false;

};



// Added this per Elvind's posting, but the function is run as

// soon as the button is added to the dialog (below)!

var clickButton = function(formName, elementId)

{

  var elementToGet = formName + ":" + elementId;

  var form = document.forms[formName];

  var button = form.elements[elementToGet];

  button.click();

};

var toggleTheme = function(){

getEl(document.body, true).toggleClass('ytheme-gray');

};

// return a public interface

return {

init : function(){

 showBtn = getEl('show-dialog-btn');

 // attach to click event

 showBtn.on('click', this.showDialog, this, true);

 

 getEl('theme-btn').on('click', toggleTheme);

},

   

showDialog : function(){

if(!dialog){ // lazy initialize the dialog and only create it
once

dialog = new YAHOO.ext.BasicDialog("hello-dlg", { 

modal:true,

autoTabs:true,

width:500,

height:300,

shadow:true,

minWidth:300,

minHeight:250,

proxyDrag: true

});

dialog.addKeyListener(27, dialog.hide, dialog);

dialog.addButton('Close', dialog.hide, dialog);

 

// This is where the magic is supposed to happen...I added
the id “searchForm” to my form 

// and “hiddenLink7” to my button… random names so I could
test this.

// The add button signature is:

// public function addButton(String/Object config, Function
handler, [Object scope])

dialog.addButton('Submit', clickButton('searchForm',
'hiddenLink7'), dialog);

 

// The line below is the original call to addButton, and it
works fine:

// dialog.addButton('Submit', dialog.hide, dialog);

}

//dialog.on("beforeHide", clickButton('searchForm',
'hiddenLink7'), dialog, true);

dialog.show(showBtn.dom); 

}

};

}();

 

// using onDocumentReady instead of window.onload initializes the
application

// when the DOM is ready, without waiting for images and other resources to
load

YAHOO.ext.EventManager.onDocumentReady(HelloWorld.init, HelloWorld, true);

 

  _  

From: Rønnevik, Eivind [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 4:50 AM
To: MyFaces Discussion
Subject: RE: How to submit a form using javascript

 

Hi!

 

I can give you an example of how I use javascript to do a “click” on a
button. :)

 

You must remember that if your form id is “myForm”, and the button’s id is
“myButton”, the correct name of the button (element) in javascript is
“myForm:myButton”

(This changes is you use the tomahawk components and set the forceId to
true)

 

An example of a “generic” function in javascript:

 

function clickButton(formName, elementId)

{

 

  

  var elementToGet = formName + ":" + 

Re: Does facestraces give the memory used as well?

2007-01-19 Thread yigit darcin

Hi,

Unfortunately FacesTrace does not show any data about performance.

Nowadays we are planning to work on and add new features to it. Maybe we can
add sth about performance issues.

Thanks and Regards

yigit.


On 1/19/07, Madhav Bhargava <[EMAIL PROTECTED]> wrote:


 Hi All,



I have just started using facetraces to check the performance of the
application.

I am wondering if you can also get the memory footprint of the application
as well. Is that possible as it would be really useful?



If not then are there any other tools to check leaks or memory usage by
the app at any stage?



Rgds,

Madhav
   CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this e-mail
or its contents to any other person and any such actions are unlawful. This
e-mail may contain viruses. Infosys has taken every reasonable precaution to
minimize this risk, but is not liable for any damage you may sustain as a
result of any virus in this e-mail. You should carry out your own virus
checks before opening the e-mail or attachment. Infosys reserves the right
to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored
on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



RE: How to submit a form using javascript

2007-01-19 Thread Romanowski, Tim
Mario - thanks for the heads up, that is a very useful component.  However,
I don't think it helps me just yet, as I am trying to figure out how to get
an event to take place when I click my dialog box's submit button--I just
put the details in a response back to Elvind.  If I could get the event to
fire on command, then I could use the submitOnEvent component, but I'm one
step away at the moment.

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 5:02 AM
To: MyFaces Discussion
Subject: Re: How to submit a form using javascript

Hi!
>
> I can give you an example of how I use javascript to do a "click" on a
> button. :)
>
Please have a look at our tomahawk-sandbox submitOnEvent [1] component.
Should already do what you want.


Ciao,
Mario


[1] http://wiki.apache.org/myfaces/SubmitOnEvent



smime.p7s
Description: S/MIME cryptographic signature


Re: Fisheye tomahawk-sandbox 1.1.4

2007-01-19 Thread Ajit.T

I have 2 sets of icons (for enabled & disabled options) which i selectively
render them (using rendered attribute )on say availability of documents
under each menu.  This worked fine when I was using version 1.1.4.  but on
switching to 1.1.5 many enabled icons were not rendered and for some
menuitems both the enabled and disabled were rendered at the same time.
Do let me know if u need any further information.

Thanks
Ajit

Werner Punz wrote:
> 
> Ajit.T schrieb:
>> Hi Werner,
>>   FYI, I did give a try to 1.1.5 version of myfaces/tomahawk/sandbox but
>> of
>> no 
>> use , on the contrary gave me some inconsistent behaviour pertaining to 
>> rendering of icons of menu item.
>> Thanks,
>> Ajit
>> 
> Can you explain the inconsistent behavior ?
> 
> Thanks a lot
> 
> Werner
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Fisheye--tomahawk-sandbox-1.1.4-tf3015049.html#a8451486
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Add to and remove from collection

2007-01-19 Thread lightbulb432

If it's not something that's possible (though I hope it is) could some of you
please describe how you deal with such common cases of Collection
manipulation from JSF form field values?



lightbulb432 wrote:
> 
> Can I add/remove an input field value to a collection using EL? e.g.
> "#{myBean.myCollection.add/remove}" or something like that? I'd hate to
> have to create a special backing bean method for this when it's such a
> simple and common thing that I'd have to do for so many collections.
> 
> I could create a special tag or component, but I wouldn't even know where
> to begin...that's why it'd be really great if somebody has created this
> functionality already (preferrably part of JSF).
> 

-- 
View this message in context: 
http://www.nabble.com/Add-to-and-remove-from-collection-tf3035146.html#a8451937
Sent from the MyFaces - Users mailing list archive at Nabble.com.



users@myfaces.apache.org

2007-01-19 Thread Wojtek Kusch

Hi All!
How can I change  the string ""Today ist 11/10/2006""   (at 
bottom of component) to an another language (locale).

Thanks!


AW: Access to param

2007-01-19 Thread [EMAIL PROTECTED]

The request attribute works fine. I made a mess. But I am still 
interested how I can set a
parameter und its value within a bean method.

Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 19.01.2007 15:51
An: 
Betreff: Access to param


Hello

Can I set a request parameter in the action listener? Thanks for 
Your help.
I tried it with a request attribute, but I think this does not 
work

Urs









Show category
/overview.jsp

category
/category.jsp









Re: AW: Access to param

2007-01-19 Thread Gary VanMatre
>From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
>
> 
> The request attribute works fine. I made a mess. But I am still 
> interested how I can set a 
> parameter und its value within a bean method. 
>

Consider:

public void actionListener(ActionEvent event) {
FacesContext context = FacesContext.getCurrentInstance();

Map params = context.getExternalContext().getRequestParameterMap();
params.put("myparam", "value");
   
// or
ValueBinding vb = 
context.getApplication().createValueBinding("#{param.myparam}");
vb.setValue(context, "value");

// or
params =  (Map) 
context.getApplication().getVariableResolver().resolveVariable(context, 
"param");
params.put("myparam", "value");
   }


 
Gary

> Ursprüngliche Nachricht 
> Von: [EMAIL PROTECTED] 
> Datum: 19.01.2007 15:51 
> An: 
> Betreff: Access to param 
> 
> 
> Hello 
> 
> Can I set a request parameter in the action listener? Thanks for 
> Your help. 
> I tried it with a request attribute, but I think this does not 
> work 
> 
> Urs 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Show category 
> /overview.jsp 
> 
> category 
> /category.jsp 
> 
> 
> 
> 
> 
> 
> 

[Tobago] How to initial focus

2007-01-19 Thread H. Swaczinna
Hi,

I want to set the initial focus when the page is loaded programmaticly,
determined by a bean property. I've found no way to do this.
The focusId attribute of tc:page doesn't allow value bindings (right?)
So I set the focus via javascript in the onload attribute of tc:script.
This sets the focus to the desired field, but afterwords, the focus
is reset to the first field on the page. Even when I set focusId to
the empty string. The doc says, setting focusId to the empty string
disables automatic focus setting. So this seems to be a bug to me.

Regards
Helmut


Re: [Tobago] How to initial focus

2007-01-19 Thread Volker Weber

Hi Helmut,

the focusId attribute supports valuebinding, but the value must be the
clientId of the component. This means the id prefixed by the ids of
namingContainers, at leas by the id of the page. This should be
improved to be handled like for attributes, ge do a findComponent() to
examine the clientId.

And yes there is a bug in the javascript, empty string or every
illegal value forces the default behavior. please add a jira entry.

Regards,
 volker



2007/1/19, H. Swaczinna <[EMAIL PROTECTED]>:

Hi,

I want to set the initial focus when the page is loaded programmaticly,
determined by a bean property. I've found no way to do this.
The focusId attribute of tc:page doesn't allow value bindings (right?)
So I set the focus via javascript in the onload attribute of tc:script.
This sets the focus to the desired field, but afterwords, the focus
is reset to the first field on the page. Even when I set focusId to
the empty string. The doc says, setting focusId to the empty string
disables automatic focus setting. So this seems to be a bug to me.

Regards
Helmut



Re: AW: Access to param

2007-01-19 Thread Craig McClanahan

On 1/19/07, Gary VanMatre <[EMAIL PROTECTED]> wrote:


>From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>
>
> The request attribute works fine. I made a mess. But I am still
> interested how I can set a
> parameter und its value within a bean method.
>

Consider:

public void actionListener(ActionEvent event) {
FacesContext context = FacesContext.getCurrentInstance();

Map params = context.getExternalContext
().getRequestParameterMap();
params.put("myparam", "value");



One minor problem ... this (or the solutions below) will not work, because
the map returned by getRequestParameterMap() is immutable -- it cannot be
changed.  In turn, this restriction comes from the fact that request
parameters are read only at the servlet API level ... you cannot change
them.

If you want to pass dynamically calculated information for this request to
some other part of the application, use request *attributes* instead.

Craig



   // or

ValueBinding vb = context.getApplication().createValueBinding("#{
param.myparam}");
vb.setValue(context, "value");

// or
params =  (Map) 
context.getApplication().getVariableResolver().resolveVariable(context,
"param");
& nbsp;& nbsp;  params.put("myparam", "value");
   }


Gary

> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 19.01.2007 15:51
> An:
> Betreff: Access to param
>
>
> Hello
>
> Can I set a request parameter in the action listener? Thanks for
> Your help.
> I tried it with a request attribute, but I think this does not
> work
>
> Urs
>
>
>
>
>
>
>
>
>
> Show category
> /overview.jsp
>
> category< /FROM- OUTCOME>
> /category.jsp
>
>
>
>
>
>
>



Re: Access to param

2007-01-19 Thread Volker Weber

Hi,

afaik and according to the specs [1], [2], the parameterMap is immutable.

so you can't do this.

[1] 
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/context/ExternalContext.html#getRequestParameterMap()
[2] 
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html#getParameterMap()

regards,
 Volker

2007/1/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


The request attribute works fine. I made a mess. But I am still
interested how I can set a
parameter und its value within a bean method.

Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 19.01.2007 15:51
An: 
Betreff: Access to param


Hello

Can I set a request parameter in the action listener? Thanks for
Your help.
I tried it with a request attribute, but I think this does not
work

Urs









Show category
/overview.jsp

category
/category.jsp










Re: AW: Access to param

2007-01-19 Thread Gary VanMatre
>From: "Craig McClanahan" [EMAIL PROTECTED] 
>
>One minor problem ... this (or the solutions below) will not work, because the 
>map returned by 
>getRequestParameterMap() is immutable -- it cannot be changed.  In turn, this 
>restriction comes from
> the fact that request parameters are read only at the servlet API level ... 
> you cannot change them. 
>
>If you want to pass dynamically calculated information for this request to 
>some other part of the 
>application, use request *attributes* instead.
>



Oh yeah, that's a major problem.. thanks for correcting me.  I see 8-)

http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/RequestParameterMap.java?view=markup


>
>Craig

Gary

users@myfaces.apache.org

2007-01-19 Thread Wojtek Kusch

Hi All!
I have a problem wirth  .
When I press the calendar icon (in Firefox or IE,) to *open* the 
calendar, *nothing* happens.
If I go to http://www.irian.at/myfaces/calendar.jsf ,  the calendar 
example works fine.

Thanks for help!
Wojtek


PhaseListener and saveSerializedView

2007-01-19 Thread Matt Tyson

I've got a phaseListener that handle my ajax requests.  I can successfully
recover the view and component by either manually using restoreView or by
waiting till the afterPhase() of the restoreView phase.

Once I have the component, I manually call its encode methods, followed by
the saveSerializedView method.

This works fine, except that the state on the component that has changed is
not preserved.  So, on the next request to the page, the updated state is
lost.

Using some trickery, I have discovered that the saveSerializedView call is
writing the correct state out, however, on the subsequent request, the old
state is what is restored.

So to summarize, I am trying to mimick the lifecycle by manually performing:
restoreView, encodeResponse, and saveState.  I am apparently missing some
part of this saveState process (something that the renderResponse phase
handles, the writeState method perhaps - it throws an NPE if I call it
manually at this stage).

Best Regards,
Matt
-- 
View this message in context: 
http://www.nabble.com/PhaseListener-and-saveSerializedView-tf3043069.html#a8458925
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Memory leak

2007-01-19 Thread Wayne Fay

Sounds like a bug for Apache Commons EL project... but it seems pretty
dead. 12 bugs posted since 2003 and only 2 fixed.

Realistically, it seems like you'll need to patch the EL code to
eliminate this bug, as discussed in that Sun.com bug report.

Wayne

On 1/19/07, phtan <[EMAIL PROTECTED]> wrote:

Hi,

We have a memory leak problem when running MyFaces 1.1.3 on Websphere 6.1.  We
used a tool provided by IBM call Memory Dump Diagnostic to compare 2 heap dumps
or when we get a core dump due to out of memory.  The leak candidate shown by
the tool is almost always the BeanInfoManager in apache commons EL.

We googled and found similar reported cases albeit with different app server,
see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6390584.

Have anyone else faced the same issue and any resolution?  Any help much
appreciated as our system will go production soon. :-(.

Thanks!

Regards,
ph tan




Re: Memory leak

2007-01-19 Thread Mick Knutson

What can you use instead of commons EL?

On 1/19/07, Wayne Fay <[EMAIL PROTECTED]> wrote:


Sounds like a bug for Apache Commons EL project... but it seems pretty
dead. 12 bugs posted since 2003 and only 2 fixed.

Realistically, it seems like you'll need to patch the EL code to
eliminate this bug, as discussed in that Sun.com bug report.

Wayne

On 1/19/07, phtan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We have a memory leak problem when running MyFaces 1.1.3 on Websphere
6.1.  We
> used a tool provided by IBM call Memory Dump Diagnostic to compare 2
heap dumps
> or when we get a core dump due to out of memory.  The leak candidate
shown by
> the tool is almost always the BeanInfoManager in apache commons EL.
>
> We googled and found similar reported cases albeit with different app
server,
> see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6390584.
>
> Have anyone else faced the same issue and any resolution?  Any help much
> appreciated as our system will go production soon. :-(.
>
> Thanks!
>
> Regards,
> ph tan
>
>





--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com


Help with included jsp file Illegal to flush within a custom tag

2007-01-19 Thread Todd Nine

Hi all,
 I am constantly receiving this error message. and I can't figure it out.
My parent page is index.jsp, my jsp include page is include/header.jsp.  My
index.jsp is as follows.

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


 
   
 


 
   
   

..other stuff...



Here is my header.jsp

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







   
   
   
   Home
   

   
   

   
   

   
   



I have tried the attribute flush="false" on the JSP include, and I still
receive this error.  I'm using myface-api 1.1.4, myfaces-impl 1.1.3 and
tomahawk 1.1.3.

Thanks,
Todd


action listener is not executed

2007-01-19 Thread [EMAIL PROTECTED]

The action listener is not executed. What could be the reason?
I already made an action in overview.jsp
I get the url
http://localhost:8080/troedel3/overview.jsf;
jsessionid=C53F2E019B32424FC35F7682D18F2C46

category.jsp content will be shown.

This link does not work.








Re: action listener is not executed

2007-01-19 Thread Gary VanMatre
>From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
>
> 
> The action listener is not executed. What could be the reason? 
> I already made an action in overview.jsp 
> I get the url 
> http://localhost:8080/troedel3/overview.jsf; 
> jsessionid=C53F2E019B32424FC35F7682D18F2C46 
> 
> category.jsp content will be shown. 
> 
> This link does not work. 
> 
>actionListener="#{category.subCategoryActionListener}">
>  
>  
>


Sounds like you have validation errors.  If there are validation errors in the 
form,
the lifecycle will stop short.  I'd try adding a h:messages component in the 
h:form just
to make sure you are not getting tripped up on a conversion error or something.

You could also make the command immediate if you wanted to bypass validation.