Q: panelTabbedPane - how to specify server side tab switch action/event?

2007-01-12 Thread Yee CN
Hi,

 

Can someone please tell me how to specify an action/event for a server side
tab switch?

 

Sorry if this is trivial - but I have been looking up & down for a couple of
days and still could not figure it out.

 

Many thanks in advance

Yee



How to do server side panelTabbedPane switching?

2007-01-02 Thread Yee CN
Hi,

 

Can someone share or tell me where find or an example on how to do server
side panelTabbedPane tab switching?

Also on doing a submit is there a way to listen to which tab is currently
being shown?

 

Many thanks in advance.

 

Best regards,

Yee



RE: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work

2006-10-25 Thread Yee CN

***
Your mail has been scanned by InterScan MSS.
***










I think you would have better chance of
getting an answer by asking in the ajax4jsf column. 

 

Maybe you can try the following –
enclose the dataTable and the dataScroller under a panelGroup, and have the ajax refresh the
panelGroup, so that both the dataTable and the dataScroller got refreshed
together.

 

Please let me know how you go with this. I
am in the process of evaluating a4j myself.

 

Best regards,

Yee

 









From: Aneesha Govil
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 25, 2006
1:02 PM
To: MyFaces
 Discussion
Subject: Re: Tomahawk and ajax4jsf
- t:datascroller and sortheaders don't work



 

Nope, I have dumped
ajax4jsf because I could not resolve this problem and couldn't get any help on
it. I am going to write my own ajax
wherever required.

Let me know if you find any resolutions though. 

Regards, 
Aneesha



On 10/25/06, ndnguy
<[EMAIL PROTECTED]>
wrote:


Were you able to figure out the issue? I am getting into a similar situation
with Ajax4Jsf and datascrollers.

Thanks,
Praveen.
--
View this message in context: http://www.nabble.com/Tomahawk-and-ajax4jsf---t%3Adatascroller-and-sortheaders-don%27t-work-tf2414555.html#a6982861
Sent from the MyFaces - Users mailing list archive at Nabble.com.



 








RE: JSF and Java 5.0 Enums

2006-10-20 Thread Yee CN
***
Your mail has been scanned by InterScan MSS.
***


Hi Mario,

I thought SelectItem/converter is always used in conjunction with an input
component? Using it in conjunction with SelectOneMenu, SelectOneRadio etc
would not require this test. The following would be good enough:

public String getAsString(FacesContext context, UIComponent component,
Object value) {
if (value == null) return "";

Enum e = (Enum) value;
return e.getClass().getName() + "@" + e.ordinal();
}

Where else could the converter be used? Sorry if this is JSF 101.

Cheers,
Yee

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 20, 2006 1:58 PM
To: MyFaces Discussion
Subject: Re: JSF and Java 5.0 Enums

Hi Yee!
> Qestion - what is the purpose of th e following test?
>
>   if (component instanceof UIInput ||
> UIInput.COMPONENT_FAMILY.equals(component.getFamily()))   {
>   
The idea behind this converter is, that in case of an input component
the conversion has to be reversible (or symmetric), thus, the
[EMAIL PROTECTED] rendering, in any other case - usually output components
only - it uses enum.toString() to have a nice user-readable
representation (assumed that toString() has been overloaded)

Ciao,
Mario




RE: JSF and Java 5.0 Enums

2006-10-19 Thread Yee CN
***
Your mail has been scanned by InterScan MSS.
***


Qestion - what is the purpose of th e following test?

if (component instanceof UIInput ||
UIInput.COMPONENT_FAMILY.equals(component.getFamily())) {

Regards,
Yee

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 4:11 PM
To: MyFaces Discussion
Subject: Re: JSF and Java 5.0 Enums

Hi Yee!

> I found some useful hints on how to handle Enum in JSF. 
>
> http://brondsema.net/blog/index.php/2005/09/30/jsf_and_java_5_0_enums
>
> I think this is good material for Wiki, for the "Convertion and
> Validation" section.
>
I am not sure if we should add this blog entry as "official way" how to
handle enums.
I commented the blog, though, here my are my doubts again:


I think its better to use "name()" as "toString()" as toString might be
customized by the developer.

public enum MyEnum
{
ABC("myAbc"),
DEF("myDef"),
UIO("myAbc");

private final String description;
MyEnum(String description)
{
this.description = description;
}
public String toString()
{
return this.description;
}
}

Though, I'd even used ordinal() as you can see here:
http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/
java/org/apache/myfaces/custom/dynaForm/jsfext/EnumConverter.java?view=marku
p

As you can see, I render a special string with "[EMAIL PROTECTED]" that way
I avoid the use of valueBinding.getType() thing which can fail if it
e.g. points to a list or method with a simple Object as return type
(Though, not very likely I admit ;-) )
For sure, that way the user isn't really able to input the value of an
enum, though, I think the main use case of an enum in JSF is to show the
user a selection menu.

Just additional ideas ...

Ciao,
Mario




RE: JSF and Java 5.0 Enums

2006-10-18 Thread Yee CN
***
Your mail has been scanned by InterScan MSS.
***


Hi Mario,

Yes - name() is better than toString(). That's what I do myself.

What is appealing in Brodsema blog is really the following:

 Class enumType = comp.getValueBinding("value").getType(context);

This instantly eliminates the need for one converter per enum. It is a very
nice 'default' pattern.

I see your point that there are other variations. I actually have a couple
of Enums that I like to have a more user friendly display string. Your
Ordinal converter would render this nicely.

Also why use ordinal? I would think that using name() (i.e. [EMAIL PROTECTED])
would be easier to handle - i.e. instead of ordinalToEnum(), you could do:

int pos = value.indexOf('@');
String clazz = value.substring(0, pos);
String name = value.substring(pos+1);
Class enumType = Class.forName(clazz);
return Enum.valueOf(enumType, name);


I think these two patterns would make a very nice Wiki page. What do you
think?

Cheers,
Yee

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 4:11 PM
To: MyFaces Discussion
Subject: Re: JSF and Java 5.0 Enums

Hi Yee!

> I found some useful hints on how to handle Enum in JSF. 
>
> http://brondsema.net/blog/index.php/2005/09/30/jsf_and_java_5_0_enums
>
> I think this is good material for Wiki, for the "Convertion and
> Validation" section.
>
I am not sure if we should add this blog entry as "official way" how to
handle enums.
I commented the blog, though, here my are my doubts again:


I think its better to use "name()" as "toString()" as toString might be
customized by the developer.

public enum MyEnum
{
ABC("myAbc"),
DEF("myDef"),
UIO("myAbc");

private final String description;
MyEnum(String description)
{
this.description = description;
}
public String toString()
{
return this.description;
}
}

Though, I'd even used ordinal() as you can see here:
http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/
java/org/apache/myfaces/custom/dynaForm/jsfext/EnumConverter.java?view=marku
p

As you can see, I render a special string with "[EMAIL PROTECTED]" that way
I avoid the use of valueBinding.getType() thing which can fail if it
e.g. points to a list or method with a simple Object as return type
(Though, not very likely I admit ;-) )
For sure, that way the user isn't really able to input the value of an
enum, though, I think the main use case of an enum in JSF is to show the
user a selection menu.

Just additional ideas ...

Ciao,
Mario




JSF and Java 5.0 Enums

2006-10-17 Thread Yee CN

***
Your mail has been scanned by InterScan MSS.
***










Hi,

 

I found some useful hints on how to handle Enum in JSF.

 

http://brondsema.net/blog/index.php/2005/09/30/jsf_and_java_5_0_enums

 

I think this is good material for Wiki, for the
“Convertion and Validation” section. This page is
‘inmutable’ – if somebody can create a blank page for it I
will fill it the rest.

 

Cheers

 

Best regards,

Yee








RE: [announcement] dojo codebase now in Tomahawk

2006-10-15 Thread Yee CN
***
Your mail has been scanned by InterScan MSS.
***


Hurray. That's good news indeed. Which components are slated for promotions?
Hope TableSelectAjax is one of them.

Regards,
Yee

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz
Sent: Saturday, October 14, 2006 4:07 AM
To: users@myfaces.apache.org
Subject: [announcement] dojo codebase now in Tomahawk

As of now, the dojo codebase now resides in Tomahawk, not in the sandbox 
anymore.
For most people in here this wont make a huge difference, but for some, 
using the dojo initializer please, expect after Tomahawk 1.1.4 that you 
have to move your dojo initializer tag calls from the sandbox to the 
tomahawk namespace.

The dojo promotion from the sandbox to tomahawk was one of the major
blockers for a handful of sandbox components to be moved into Tomahawk, 
and for some outstanding Tomahawk bugs to be fixed.

So expect movement in this area soon as well. The sandbox has been 
gotten too big.

The currently affected version of Tomahawk is post 1.1.4 (which has been 
rebranched before this work)

So nothing will change for Tomahawk 1.1.4.




RE: tableSuggestAjax nightly gives error....

2006-09-08 Thread Yee CN
That's the textbox where the ajax table will appear underneath. I tested
with IE7 Beta 3 and Firefox.

With IE7 the error indicator appear the moment I click into the textbox.
When I started typing the error indicator disappeared, but no ajax table
appear. I checked the server log, the backend bean method is called as it
should, so the problem is with the javascripts.

The error messages says:
Line: 607
Char: 17
Error: 'value' is not null or not an object

Or
Line: 273
Char: 9
Error: 'null' is null or not an object

Line 607 definitely refers to the .js resources included by sandbox, as the
rendered page is shorter that this.


Firefox did not report any error, but no ajax table nevertheless.


I am using myfaces 1.1.4 and facelets 1.1.11

Regards,
Yee

-Original Message-
From: Gerald Müllan [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 08, 2006 12:42 AM
To: MyFaces Discussion
Subject: Re: tableSuggestAjax nightly gives error

Hi,

what do you exactly mean with "clicked on an ajax suggest textbox"?
Can you describe the problem a little bit further?

I have tried the latest nightly and the component seems to work to me.
In both browsers IE and firefox.

cheers,

Gerald

On 9/6/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> I am getting the following error while trying to migrate to the latest
> nightly build of myfaces-sandbox. The tableSuggestAjax now caused the
> following error in the browser:
>
>
>
> Error: 'tableSuggest.inputField.value' is null or not an object
>
>
>
> The error appear when I clicked on an ajax suggest textbox. It was working
> OK with the version downloaded around June. I also made sure that the
fields
> concerned are all initialized (i.e. not null).
>
>
>
> I am also upgrading to the myfaces 1.1.5 snapshot and tomahawk 1.5
snapshot
> (I was using 1.1.3). Is there any thing there that I should look out for?
>
>
>
> Any idea what could be the case?
>
>
>
> Thanks in advance.
>
> Yee
>
>
>
>
>
>


-- 
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]



Is there a stable release of Sandbox?

2006-09-07 Thread Yee CN








Hi,

 

Is there a stable release of Tomahawk sandbox? I am having
problems with the current nightly (tableSuggestAjax), and the version I have
was over 3 months old. I am looking for a more recent build that I can use.

 

Thanks!

 

Cheers,

Yee








tableSuggestAjax nightly gives error....

2006-09-05 Thread Yee CN








Hi,

 

I am getting the following error while trying to migrate to
the latest nightly build of myfaces-sandbox. The tableSuggestAjax now caused
the following error in the browser:

 

Error:
‘tableSuggest.inputField.value’ is null or not an object

 

The error appear when I clicked on an ajax suggest textbox. It was working OK with
the version downloaded around June. I also made sure that the fields concerned
are all initialized (i.e. not null).

 

I am also upgrading to the myfaces 1.1.5 snapshot and
tomahawk 1.5 snapshot (I was using 1.1.3). Is there any thing there that I
should look out for?

 

Any idea what could be the case?

 

Thanks in advance.

Yee

 

 

 








tableSuggestAjax error

2006-09-05 Thread Yee CN








Hi,

 

I am getting the following error while trying to migrate to
the latest nightly build of myfaces-sandbox. The tableSuggestAjax now caused
the following error in the browser:

 

Error: ‘tableSuggest.inputField.value’
is null or not an object

 

The error appear when I clicked on an ajax suggest textbox. It was working OK with the
version downloaded around June. I also made sure that the fields concerned are
all initialized (i.e. not null).

 

Any idea what could be the case?

 

Thanks in advance.

Yee

 

 








the biggest myfaces webapp

2006-08-20 Thread Yee CN








I am in the same boat – a
distributed application that I was building has to be converted to become
centralized, so the number of users suddenly becomes at least an order of
magnitude larger.

 

I am thinking memory might not be such a
big issue as a multi-CPU Intel boxes with 8GB of memory is getting rather common
place nowadays. But I am a bit concerned about view rendering time. A while
back somebody posted a benchmark which I recalled was showing that JSF pages took
about 4 times longer to render, and there were some non-linear issues as well. In
principle faster CPU plus cheaper boxes for clustering should handle the
problem, but I am dying for someone to share his/her experience on large scale
deployment of JSF. 

 

I have no regret so far – after the
initial learning curve the faster development/prototype time has been a great
advantage to our team.

 

Regards

Yee









From: Rogerio Pereira
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 20, 2006 7:31
AM
To: MyFaces
 Discussion
Subject: Re: the biggest myfaces
webapp



 

Thanks guys, this kind of
discussion is very useful.



2006/8/19, Kevin Galligan <[EMAIL PROTECTED]>:



If memory is the major concern, I think the real unknown is the view
state storage.  To be honest, this is an unknown for me also. 
Currently I'm keeping that stuff on the client.  If the page download size
isn't too big, I think this is the direction I'd stick with even in production,
as I don't have to worry about old views getting dumped from the session in
case the user really digs the back button. 

But, in general, I'm not sure what the memory issue would be beyond the view
storage.  I'm anti-session for most things anyway, besides carrying around
some standard user info.  I'm planning to rely on smart coding, tuning
hibernate settings (which, obvisouly, requires the use of hibernate) and,
possibly, turning on the hibernate cache for certain parts of the data. 

However, I do understand your concern.  I'm sort of in the same
boat.  I'm implementing an app and I'm not sure how many people will be
logging into it.  I don't know what the performance will really be
like.  I still think there is some technical understanding of the JSF view
that I've ignored until now that would probably help.  If anybody happens
to have a good page to point to that discusses the view, please forward that
along. 

What kind of box will this be running on?  I assume if this is a
production app that you might have a few hundred megs of memory available for
the application to play in?  Making that assumption, you've got about a
meg per user.  Right?  While compared to some other technologies, a
meg per user is a lot, but at the same time, hardware is cheap compared to
developer time.  Again, the big question mark in my mind is the view
storage.  If it were stored on the client, in theory you wouldn't need
much session space besides authentication, if any.  Right? 





 



On 8/19/06, Eurig
Jones <
[EMAIL PROTECTED]> wrote:

As far as I'm aware after
the research I've done I haven't seen any
large websites done in JSF.

I'm in the same boat as you. I'm developing an application which
potentially could have 200/300 users concurrently logged on and this is 
a worry for me too. I'm trying to code the application as carefully as I
possibly can with the fact that "LOTS of users will be logged on at the
same time", always in the back of my mind. Like with any web framework, 
you need to code the application in best possible practices and as
efficiently as possible (avoid using session beans as much as you
possibly can. etc.)

My concerns are memory usage more than anything. But this is a concern 
not with JSF but with developing my site with Tomcat and J2EE in
general. As for performance, to be honest with you, I feel like I'm
sailing into unchartered waters, because I really don't know! I can't
help looking at PHP/Apache and thinking how efficient and proven it is 
under heavy load (And that wasn't a call for a start on a PHP/Java debate).

Regards,
Eurig

Rogerio Pereira wrote:
> Somebody has myfaces webapps with more than 50/100 concurrent users?
>
> --
> Yours truly (Atenciosamente),
>
> Rogério (_rogerio_)
















-- 
Yours truly (Atenciosamente),

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








How to disable back button

2006-08-13 Thread Yee CN








Hi,

 

I am trying out a technique to disable the browser back
button as given in http://www.irt.org/script/311.htm;
 by adding the following under :

 

    

    window.history.forward(1);

      I verified that the techniques works for non jsf pages, but it seems to have no effects for jsf. I checked the rendered page, and saw that the script is still there, but intermingled with loads of other scripts generated by jsf.   Is there a way to get something similar to work in jsf?     Many thanks in advance.   Yee    


How to disable back button









Hi,

 

I am trying out a technique to disable the browser back
button as given in http://www.irt.org/script/311.htm;
 by adding the following under :

 

    

    window.history.forward(1);

      I verified that the techniques works for non jsf pages, but it seems to have no effects for jsf. I checked the rendered page, and saw that the script is still there, but intermingled with loads of other scripts generated by jsf.   Is there a way to get something similar to work in jsf?     Many thanks in advance.   Yee    


RE: JSF Performance Problems









Is the result with Myfaces/JSP?  Can
somebody provide performance comparison with Myfaces/Facelets?

 

JSF is still a new technology, and there
are still plenty of rooms for improvements. Furthermore the performance
differential won’t be as drastic once we factor in business logic, persistence,
AJAX etc.

 

IMHO reduce development time is still the
most important factor to consider.

 

Regards,

Yee

 









From: jfaronson
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 09, 2006 8:11
AM
To: users@myfaces.apache.org
Subject: JSF Performance Problems



 

I grabbed the attachments from the original performance bug
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=3 and ran some
JMeter tests against the "JSP only" and the JSF versions. The pages
are really simple, the JSP version outputs a page which is visually identical
to the JSF page. The table in question had 10 columns and 50 - 200 rows. Not a huge
amount of data. I used MyFaces 1.1.3 as the JSF implementation and ran the test
in JBoss 4.0.4 GA running on JDK 1.4.2. Here's the results: 

    Table Rows   Average [ms]  Median [ms]   Hits / Min   SamplesJSF Testcase    50   36    30    1300 5007JSP Testcase    50   14    10    4030 5001JSF Testcase    100  56    60    1050 5001JSP Testcase    100  21    20    2700 5001JSF Testcase    200  100   100   590  5001JSP Testcase    200  26    30    2170 5001

This data confirms the discussion in the sun forum. The JSF version
started out nearly three times slower than the JSP page. The relative
performance of the JSF version degraded to nearly four times slower as table
rows were added. So if you are thinking about adopting JSF you should be aware
of the performance hit and make sure that you can architect around the problem
or get the performance benchmarks adjusted. Perceived performance is important
in real life projects so it's more than a theoretical problem. I'd also like to
know if anybody has ideas or code samples that make JSF perform better? 







View this message in context: JSF
Performance Problems
Sent from the MyFaces
- Users forum at Nabble.com.








RE: EJB3.0 and Backing Beans Design

The weight and complexities of SEAM sacred me 9 months ago - it still does.
Moreover with near 100 jsf/BIRT pages at present it is becoming almost
impossible to slot in SEAM or Shale.

I am definitely biased - with the weight of 9 months of 'legacy' behind me.
But I do think the conversation tag is the right way to go.

Eagerly awaiting the WIKI...

Thanks for the great work guys!

Best regards,
Yee

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 06, 2006 10:48 PM
To: Thomas Heute
Cc: users@myfaces.apache.org
Subject: Re: EJB3.0 and Backing Beans Design

Hi!
> If we could measure the complexity of a framework by the number of pages
of 
> the documentation, the worse documented framework would be the simplest...
>   
It wasn't the number of pages, but the number of different topics.

I was asked about my opinion and so I answered AND I stated that I am
biased, so I hoped that made it clear that my opinion on this topic is
not the only one - and maybe not the right one.

Sorry if I didn't manage to use the right words here.


Ciao,
Mario



Feature request: tableSuggestAjax component









Hi,

 

First of all – thanks for this superb component. Can’t
wait to see it promoted to the Tomahawk distribution.

 

Now back to the subject matter. At present the component
will do an automatic selection whenever the suggest list is down to one entry. I
like to request to have a attribute to disable this behavior. This effectively
prevents the user from keying in values that is not in the suggest list.

 

My colleague managed to tweak the _javascript_ to get it to
work the way we want it to. But it would be much better to have the feature in
the component itself.

 

I am not sure whether this is the right forum for this. Please
point me to the right direction if I am wrong.

 

Best regards,

Yee








RE: Load Testing JSF?









I am still having problem recording with
JMeter, apparently the Cookies controller is not registering any cookies.

 

I switched to OpenSTA and everything seems
to record and play back properly, including ajax stuff (tableSuggestAjax). 

 

Will do a bit more digging and post my
findings later.

 

Thanks for all your help.

 

Regards,

Yee

 









From: Yee CN [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 07, 2006
1:00 AM
To: 'MyFaces
 Discussion'
Subject: RE: Load Testing JSF?



 

JMeter actually comes with a proxy server
that can sniff and record request parameters including cookies. I recorded a
simple session and tried playing back – but could not even get pass
through the login page yet. I will do a bit more digging tomorrow.

 

Regards,

Yee

 









From: Mert Çalışkan
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006
12:31 AM
To: MyFaces
 Discussion
Subject: Re: Load Testing JSF?



 



You can check out OpenSTA. It records the usage of a web app. and then you
can ramp up the virtual users for the load test.





 





Here are the first things that came up to my mind..





It has a scripting language. If you want to read username-password for
ex. from a file, you have to do some scripting.





It has nice graphical outputs.





It can do https..





Both the openSTA and jMeter doesn't support the simulation of
fileupload.





 





Regards,





 





Mert





 





 





On 6/6/06, Dennis
Byrne <[EMAIL PROTECTED]>
wrote: 

What part are you having
trouble with? JMeter or JSF ;)

I would suggest using tcpmon to sniff the request parameters off the
wire.  You can obtain this from the apache axis
project.  Then take the request parameters and plug them in to
JMeter.  You'll also want to configure JMeter for POST - this seems
to have troubled me several times before. 

Dennis Byrne

>-Original Message-
>From: Yee CN [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, June 6, 2006 10:49 AM
>To: ''MyFaces Discussion'' 
>Subject: Load Testing JSF?
>
>Hi,
>
>
>
>I am trying out jMeter with JSF - but not having much success so far. I
>would appreciate if anybody could share your experience regarding load 
>testing JSF applications so I don't have sweet blood to reinvent the wheel.
>I promise I will compile a Wiki on this.
>
>
>
>Many thanks in advance.
>
>
>
>Regards, 
>
>Yee
>
>



 








RE: Load Testing JSF?










JMeter actually comes with a proxy server
that can sniff and record request parameters including cookies. I recorded a
simple session and tried playing back – but could not even get pass
through the login page yet. I will do a bit more digging tomorrow.

 

Regards,

Yee

 









From: Mert
Çalışkan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006
12:31 AM
To: MyFaces Discussion
Subject: Re: Load Testing JSF?



 



You can check out OpenSTA. It records the usage of a web app. and then
you can ramp up the virtual users for the load test.





 





Here are the first things that came up to my mind..





It has a scripting language. If you want to read username-password for
ex. from a file, you have to do some scripting.





It has nice graphical outputs.





It can do https..





Both the openSTA and jMeter doesn't support the simulation of
fileupload.





 





Regards,





 





Mert





 





 





On 6/6/06, Dennis
Byrne <[EMAIL PROTECTED]>
wrote: 

What part are you having
trouble with? JMeter or JSF ;)

I would suggest using tcpmon to sniff the request parameters off the
wire.  You can obtain this from the apache axis
project.  Then take the request parameters and plug them in to
JMeter.  You'll also want to configure JMeter for POST - this seems
to have troubled me several times before. 

Dennis Byrne

>-Original Message-
>From: Yee CN [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, June 6, 2006 10:49 AM
>To: ''MyFaces Discussion'' 
>Subject: Load Testing JSF?
>
>Hi,
>
>
>
>I am trying out jMeter with JSF - but not having much success so far. I
>would appreciate if anybody could share your experience regarding load 
>testing JSF applications so I don't have sweet blood to reinvent the wheel.
>I promise I will compile a Wiki on this.
>
>
>
>Many thanks in advance.
>
>
>
>Regards, 
>
>Yee
>
>





 








Load Testing JSF?









Hi,

 

I am trying out jMeter with JSF – but not having much
success so far. I would appreciate if anybody could share your experience
regarding load testing JSF applications so I don’t have sweet blood to
reinvent the wheel. I promise I will compile a Wiki on this.

 

Many thanks in advance.

 

Regards,

Yee








newspaperColumns NOT available in ?









Hi, 

 

According to the documentation: http://myfaces.apache.org/tomahawk/extDataTable.html,
the newspaperColumns attribute/functionality is meant to be incorporated in
, and the  is meant to be phased
out. I tried using it but get the following warning instead:

 

WARNING: /Admin/role.xhtml @71,59
newspaperColumns="2" Property 'newspaperColumns' is not on type:
org.apache.myfaces.component.html.ext.HtmlDataTable.

 

I am using Tomahawk 1.1.2.

 

I also looked at the source code that I checked out a couple of days
ago, and I could not see newspaperColumns being implemented in the HtmlDataTable
class.

 

So – is the documentation wrong?

 

Regards,

Yee

 

 

 

 








RE: Help: need to get tableSuggestAjax to work for facelets










This tag is really top class. Thanks Gerald
Müllan and the whole myfaces team for your hard work.

 

Regards,

Yee








RE: Help: need to get tableSuggestAjax to work for facelets









Finally managed to get it to work:

 

    <tag>

    <tag-name>tableSuggestAjaxtag-name>

    <component>

   
<component-type>org.apache.myfaces.TableSuggestAjaxcomponent-type>

   
<renderer-type>org.apache.myfaces.TableSuggestAjaxrenderer-type>

  <handler-class>InputSuggestAjaxComponentHandlerhandler-class>

  component>

    tag>

    <tag>

    <tag-name>outputTexttag-name>

    <component>

   
<component-type>org.apache.myfaces.HtmlOutputTextForcomponent-type>

    component>

    tag>  

 

The handler class is as per:

http://wiki.java.net/bin/view/Projects/InputSuggestAjaxComponentHandler

 

I have committed this to wiki (http://wiki.java.net/bin/view/Projects/FaceletsTaglibsMyfacesSandbox).
I don’t understand most of these stuff – please let me know if I
got it wrong.

 

Cheers,

Yee

 









From: Yee CN
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 11:28
AM
To: 'MyFaces
 Discussion'
Subject: Help: need to get
tableSuggestAjax to work for facelets



 

Hi,

 

I need to get tableSuggestAjax to work for facelets. Can
someone please kindly post the taglib entry and/or TagHandler class? Or point
me to some resources on how to create the TagHandler class etc?

 

Many thanks in advance.

 

Regards,

Yee

 








Help: need to get tableSuggestAjax to work for Facelets









Hi,

 

I need to get tableSuggestAjax to work for facelets. Can
someone please kindly post the taglib entry and/or TagHandler class? Or point
me to some resources on how to create the TagHandler class etc?

 

Many thanks in advance.

 

Regards,

Yee








Help: need to get tableSuggestAjax to work for facelets









Hi,

 

I need to get tableSuggestAjax to work for facelets. Can
someone please kindly post the taglib entry and/or TagHandler class? Or point
me to some resources on how to create the TagHandler class etc?

 

Many thanks in advance.

 

Regards,

Yee

 








RE: [SPAM] Sandbox Binaries Download

Not that I know of.

You will need to svn checkout the project, then do a mavern build. It does
take quite a bit of fiddling if you are not using either of these. Download
takes quite a while as well.

I can email you the sandbox.jar file - let me know.

Regards,
Yee

-Original Message-
From: Patrick Dalla Bernardina [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 3:17 AM
To: MyFaces Discussion
Subject: [SPAM] Sandbox Binaries Download
Importance: Low

There isn't a binary release of snadbox components?



addMessage(...SEVERITY_ERROR...) cause hibernate lazy initialization error???









Hi,

 

I have a jsf page that with a simple action as follows:

 

public String myAction() {

    try
{

    myService.doSomething();

    }
catch (Exception e) {

        String
msg = e.getMessage();

FacesContext.getCurrentInstance().addMessage(null,
new FacesMessage(FacesMessage.SEVERITY_ERROR, msg,msg));

    }

    Return
ResultPage;

 }

 

 

I find that when an exception did actually occurs, the
ResultPage will raise an hibernate initialization error.

However if I change FacesMessage.SEVERITY_ERROR to
FacesMessages.SEVERITY_WARN, the page will display OK.

 

I am using last night’s build of MyFaces 1.1.3
snapshot plus Tomahawk 1.1.2 Snapshot.

 

I only noticed this problem after changing to Facelets, so I
do not rule out Facelets as a culprit.

 

Does anybody noticed this behaviour? What is the explanation
for the difference in behavior? 

This is something that is bugging me big time, so I would
appreciate any help.

 

Many thanks in advance.

 

Yee








[SPAM] Re: readonly entities no longer pass value back to backing bean?

Sorry Martin - been overwhelmed with project deadline, so won't have time to
contribute anything in the near future. Hope somebody get this sorted out
soon.

I am thinking - there is a disabled property, and that is actually being
used in our usual 'readonly' sense. Then there is the readonly property,
which to me is meaningless and downright wrong in the context of
t:inputCalendar.

The situation is quite confusing really, and the crux of the matter being
that the behavior of html elements got mixed up with the behavior of JSF
components. It also affect other components like t:selectOneMenu and
t:selectBooleanCheckBox, although not as severely as t:inputCalendar

Does anybody has any suggestions on how to sort this out once and for all?

Regards,
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 29 March 2006 2:04 AM
To: MyFaces Discussion
Subject: [SPAM] Re: readonly entities no longer pass value back to backing
bean?
Importance: Low

I'd add a new option to the inputCalendar.

Allow direct entry or so?

If you program that, Yee, I'll commit it. promised.

regards,

Martin

On 3/28/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> On the other way, you can do a quickfix in case of this inputCalendar use
case;
>
> As Yura said, you can take a inputHidden and with some js coding on
> every onchange event (to the readonly inputCalendar) push the date
> value to the hidden element.
>
> Maybe a hidden inputCalender too, instead of the "normal" inputHidden,
> and of course the value must be bound to the same model value (sure :)
> )
>
> As mentioned, the hidden value will be posted to server.
>
> regards,
>
> Gerald
>
> On 3/7/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi,
> >
> >
> >
> > I discovered the recent nightly builds has stop sending values back to
the
> > backing bean when readonly attribute is set to true. For example:
> >
> >
> >
> > 
> >
> >
> >
> > The totalAmount is meant to be a readonly textbox, whose value is
calculated
> > via javascript.
> >
> >
> >
> > Another example is inputCalendar, where the date should only be selected
> > from the popup window, and now key in directly:
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> > I find that all of these entities will no longer pass the input box
value to
> > the backing bean. I tested it with the build downloaded today and find
it to
> > be so. I have a version downloaded around 10 Feb and that one was
working
> > OK.
> >
> >
> >
> > Is this a bug? Or is this a design change?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Yee
> >
> >
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> [EMAIL PROTECTED]
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces



[SPAM] Re: readonly entities no longer pass value back to backing bean?

That's makes a lot of sense. But it is ARRAGH nevertheless - as I have quite
a lot of readonly textboxes that are passing back values. t:inputCalender is
one single major offender, there are also some javascirpt calculated values.

Is there an elegant solution for inputCalendar? I really what to force users
to select from the popup calendar. Maybe make inputCalendar a special case?

Thanks
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 28 March 2006 10:42 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: [SPAM] Re: readonly entities no longer pass value back to backing
bean?
Importance: Low

Well, we're not supposed to take back the value when readonly=true.

That's as such in the spec.

regards,

Martin

On 3/28/06, Yee CN <[EMAIL PROTECTED]> wrote:
> I tried the build from yesterday and still find the bug there - so I am
> still stuck with the build from early Feb. Is this bug meant to be fixed?
>
> Regards,
> Yee
>
> -Original Message-
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 8 March 2006 4:09 PM
> To: MyFaces Discussion; [EMAIL PROTECTED]
> Subject: Re: readonly entities no longer pass value back to backing bean?
>
> Hmm
>
> there was a fix in MyFaces were the bug was that we wrongly used
> "readOnly" to check if the readonly attribute was set.
>
> for security considerations, the JSF engine doesn't take over disabled
> or readOnly attributes to the server, it was a bug that we did.
>
> regards,
>
> Martin
>
> On 3/8/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Is that me only? Did anybody else observed this problem?
> >
> >
> >
> > For me nightly build around Feb 12 is OK, nightly around feb 25 not OK,
> > currently nightly not OK.
> >
> >
> >
> > Can someone please indicate one way or another so I can know whether it
is
> > the combination of stuffs I used that caused the problem?
> >
> >
> >
> > Many thanks in advance.
> >
> > Yee
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: Yee CN [mailto:[EMAIL PROTECTED]
> >  Sent: Tuesday, 7 March 2006 5:32 PM
> >  To: 'MyFaces Discussion'
> >  Subject: readonly entities no longer pass value back to backing bean?
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I discovered the recent nightly builds has stop sending values back to
the
> > backing bean when readonly attribute is set to true. For example:
> >
> >
> >
> >  />
> >
> >
> >
> > The totalAmount is meant to be a readonly textbox, whose value is
> calculated
> > via javascript.
> >
> >
> >
> > Another example is inputCalendar, where the date should only be selected
> > from the popup window, and now key in directly:
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> > I find that all of these entities will no longer pass the input box
value
> to
> > the backing bean. I tested it with the build downloaded today and find
it
> to
> > be so. I have a version downloaded around 10 Feb and that one was
working
> > OK.
> >
> >
> >
> > Is this a bug? Or is this a design change?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Yee
> >
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces



RE: readonly entities no longer pass value back to backing bean?

I tried the build from yesterday and still find the bug there - so I am
still stuck with the build from early Feb. Is this bug meant to be fixed?

Regards,
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 8 March 2006 4:09 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: readonly entities no longer pass value back to backing bean?

Hmm

there was a fix in MyFaces were the bug was that we wrongly used
"readOnly" to check if the readonly attribute was set.

for security considerations, the JSF engine doesn't take over disabled
or readOnly attributes to the server, it was a bug that we did.

regards,

Martin

On 3/8/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
> Is that me only? Did anybody else observed this problem?
>
>
>
> For me nightly build around Feb 12 is OK, nightly around feb 25 not OK,
> currently nightly not OK.
>
>
>
> Can someone please indicate one way or another so I can know whether it is
> the combination of stuffs I used that caused the problem?
>
>
>
> Many thanks in advance.
>
> Yee
>
>
>
>
>
>  
>
>
> From: Yee CN [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, 7 March 2006 5:32 PM
>  To: 'MyFaces Discussion'
>  Subject: readonly entities no longer pass value back to backing bean?
>
>
>
>
> Hi,
>
>
>
> I discovered the recent nightly builds has stop sending values back to the
> backing bean when readonly attribute is set to true. For example:
>
>
>
> 
>
>
>
> The totalAmount is meant to be a readonly textbox, whose value is
calculated
> via javascript.
>
>
>
> Another example is inputCalendar, where the date should only be selected
> from the popup window, and now key in directly:
>
>
>
> 
>
>
>
>
>
> I find that all of these entities will no longer pass the input box value
to
> the backing bean. I tested it with the build downloaded today and find it
to
> be so. I have a version downloaded around 10 Feb and that one was working
> OK.
>
>
>
> Is this a bug? Or is this a design change?
>
>
>
> Thanks
>
>
>
> Yee
>
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces



RE: JSF application









You can create a property called setInit()
in your bean, then

 

    public
void setInit(boolean dummy) {

    //
your initialization code

    }

 

Then in your faces-config.xml you provide
a dummy “true” to this property. This should appear last, as you
would probably want to have all other properties set before you do your initialization
stuff. JSF guarantees that the properties will be set in the order in which
they appear in faces-config.xml

 

Regards,

Yee









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, 27 March 2006 9:01
PM
To: users@myfaces.apache.org
Subject: JSF application



 

Hi, All

 

I have a problem and want to know your advises about this. 

I have a page with request managed bean and this bean have
property which referenced to session scope bean. When I need to initialize my
page with default values with session scope beans I always do this in default
constructor of my managed bean, but with request scope bean this property to
session bean will be null. I suppose that this property initialize by
FacesContext after instance of request scope bean have been created.

 

So how I can implement initialization of my page with
request scope bean?

 

Thanks for any of your help,

Yura.








RE: [SPAM] Re: How to speed up JSF


Thanks Martin. It will be great news if browse back button works. Do I have
to use  in JSF navigation for this to work properly?

Regards,
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Monday, 27 March 2006 3:56 PM
To: [EMAIL PROTECTED]
Cc: MyFaces Discussion
Subject: Re: [SPAM] Re: How to speed up JSF

Hi Yee,

yes, the number of views in session tells you how many rendered
component-view-trees will be stored - so that you can properly use the
back button with server side state saving.

That's actually no performance issue - it was just in the middle of
the performance tuning stuff ;).

We recommend not to use session beans - rather use request-scoped
beans and something like t:saveState to make sure the beans will be
there for the dialog you want to handle. Then you can use the
back-button out of the box, and don't have any special needs.

If you do want to use session beans - well, then you're having a hard
time with the back button ;).

regards,

Martin

On 3/27/06, Yee CN <[EMAIL PROTECTED]> wrote:
> Martin,
>
> What is the meaning of NUMBER_OF_VIEWS_IN_SESSION=20? Is it the last 20
> views rendered? If I set all my beans to be of SESSION scope, will it
limit
> the size of my session?
>
> Can I make use of it to implement 'back' functionality - maybe with a
phase
> listener that logs the pages being visited in a circular stack, and a util
> bean with a backAction() that pops the stack?
>
> Do you think something of this nature will work?
>
> Thanks
> Regards,
> Yee
>
> -Original Message-
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Monday, 27 March 2006 3:13 PM
> To: MyFaces Discussion
> Subject: [SPAM] Re: How to speed up JSF
> Importance: Low
>
> use the following settings, and you should have much better
> user-interaction:
>
> 
> javax.faces.STATE_SAVING_METHOD
> server
> 
> State saving method: "client" or "server" (= default)
> See JSF Specification 2.5.2
> 
> 
>
> 
>
> org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
> 20
> 
> Only applicable if state saving method is "server" (=
default).
> Defines the amount (default = 20) of the latest views are
> stored in session.
> 
> 
>
> 
>
> org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
> false
> 
> Only applicable if state saving method is "server" (=
default).
> If true (default) the state will be serialized to a byte
> stream before it
> is written to the session.
> If false the state will not be serialized to a byte stream.
> 
> 
>
> 
>
> org.apache.myfaces.COMPRESS_STATE_IN_SESSION
> false
> 
> Only applicable if state saving method is "server" (=
> default) and if
> org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (=
> default)
> If true (default) the serialized state will be compressed
before
> it
> is written to the session. If false the state will not be
> compressed.
> 
> 
>
> Apart from that, using facelets over JSPs is supposed to increase your
> app speed by 14% (these are unofficial numbers I've heard on these
> lists ;)
>
> regards,
>
> Martin
>
>
> On 3/27/06, Guillaume Doumenc <[EMAIL PROTECTED]> wrote:
> >  Hi Yura,
> >
> >  I'm also using MyFaces without JSP and think that JSF rendering is
slow..
> > So if someone can complete this info, I will be interested..
> >
> >  Regards
> >
> >
> >  Yura.Tkachenko wrote:
> >
> >
> >
> > Hi,
> >
> > I just finding some ways to speed up JSF. I'm using MyFaces
implementation
> > and actually I don't like how JSF is rendering it's very slow. I've
never
> > tried Facelets with MyFaces is it really can speed up work of my
> > application? Because I have only little theoretical knowledge about
> > Facelets. But on all my JSF pages I actually doesn't use JSP as it, so I
> > suppose I have always some time to: compile JSP(only 1 time) + execute
jsp
> > compiled class. So I think if Facelets miss this step then my
application
> > will work much faster, am I right?
> >
> > + Another approach to use AjaxAnywhere with this library server response
> > executes much faster, because user requests not all page, only part of
it.
> >
> > Anyone use Facelets+MyFaces+AjaxAnyWhere – is it faster for user then
only
> > MyFaces?
> &

RE: [SPAM] Re: How to speed up JSF

Martin,

What is the meaning of NUMBER_OF_VIEWS_IN_SESSION=20? Is it the last 20
views rendered? If I set all my beans to be of SESSION scope, will it limit
the size of my session?

Can I make use of it to implement 'back' functionality - maybe with a phase
listener that logs the pages being visited in a circular stack, and a util
bean with a backAction() that pops the stack?

Do you think something of this nature will work?

Thanks
Regards,
Yee 

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Monday, 27 March 2006 3:13 PM
To: MyFaces Discussion
Subject: [SPAM] Re: How to speed up JSF
Importance: Low

use the following settings, and you should have much better
user-interaction:


javax.faces.STATE_SAVING_METHOD
server

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




 
org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
20

Only applicable if state saving method is "server" (= default).
Defines the amount (default = 20) of the latest views are
stored in session.




 
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
false

Only applicable if state saving method is "server" (= default).
If true (default) the state will be serialized to a byte
stream before it
is written to the session.
If false the state will not be serialized to a byte stream.




 
org.apache.myfaces.COMPRESS_STATE_IN_SESSION
false

Only applicable if state saving method is "server" (=
default) and if
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (=
default)
If true (default) the serialized state will be compressed before
it
is written to the session. If false the state will not be
compressed.



Apart from that, using facelets over JSPs is supposed to increase your
app speed by 14% (these are unofficial numbers I've heard on these
lists ;)

regards,

Martin


On 3/27/06, Guillaume Doumenc <[EMAIL PROTECTED]> wrote:
>  Hi Yura,
>
>  I'm also using MyFaces without JSP and think that JSF rendering is slow..
> So if someone can complete this info, I will be interested..
>
>  Regards
>
>
>  Yura.Tkachenko wrote:
>
>
>
> Hi,
>
> I just finding some ways to speed up JSF. I'm using MyFaces implementation
> and actually I don't like how JSF is rendering it's very slow. I've never
> tried Facelets with MyFaces is it really can speed up work of my
> application? Because I have only little theoretical knowledge about
> Facelets. But on all my JSF pages I actually doesn't use JSP as it, so I
> suppose I have always some time to: compile JSP(only 1 time) + execute jsp
> compiled class. So I think if Facelets miss this step then my application
> will work much faster, am I right?
>
> + Another approach to use AjaxAnywhere with this library server response
> executes much faster, because user requests not all page, only part of it.
>
> Anyone use Facelets+MyFaces+AjaxAnyWhere – is it faster for user then only
> MyFaces?
>
>
>
> Thanks,
>
> Yura Tkachenko
>
> Murano Software Kharkov, Ukraine
>
> mailto: [EMAIL PROTECTED]
>
> http://www.muranosoft.com
>
>
>
>
>
>
> --
>  Guillaume Doumenc
>  StudioGdo : Maîtrisez votre communication...
>  Tél : +33 (0)6 11 95 24 78
>  Courriel : [EMAIL PROTECTED]


--

http://www.irian.at

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

Professional Support for Apache MyFaces



RE: Facelets1.1.1 - &nbsp; appears as   - not whitespace









Sorry – got sent to the wrong
mailing list.

 









From: Yee CN
[mailto:[EMAIL PROTECTED] 
Sent: Monday, 27 March 2006 11:09
AM
To: 'MyFaces Discussion'
Subject: Facelets1.1.1 -
&nbsp; appears as   - not whitespace



 

I took a look at the rendered html. It
seems that &  is pass straight to the browser as
& .

So &  can no longer be
used?

 

Thanks

Yee

 








Facelets1.1.1 - &nbsp; appears as   - not whitespace









I took a look at the rendered html. It
seems that &  is pass straight to the browser as
& .

So &  can no longer be
used?

 

Thanks

Yee

 









From: Yee CN
[mailto:[EMAIL PROTECTED] 
Sent: Monday, 27 March 2006 10:22
AM
To: [EMAIL PROTECTED]
Subject: Facelets1.1.1 -
&nbsp; appears as   - not whitespace



 

Hi,

 

I put in the facelets1.1.1 library from last night –
and all my “& ” not got rendered as
“ ” – not white space anymore.

 

What is the official word on how to do whitespace properly?

 

Regards,

Yee








RE: Problem with: inputCalender, facelets and

But it definitely has something to do with facelets - inputCalendar was
working perfectly before I moved to facelets.

Best Regards,
Yee




RE: Problem with: inputCalender, facelets and

It definitely has nothing to do with portlets - because I am not using it.

I am quite sure that it is caused by the path rendering in javascript
associated with inputCalendar in conjunction with the  tag.

Regards,
Yee

-Original Message-
From: Paul Klaer [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 11 March 2006 12:53 AM
To: 'MyFaces Discussion'
Subject: Re: Problem with: inputCalender, facelets and 

Hi,

I have the same problem. I updated to the 1.1.3 nightly build and I am  
using the  tag, too.

I'm currently looking at this problem. I don't think it has something to  
do with portlets... Does anyone else have the same problem or a solution  
for this?

Best Regards,

Paul

On Sat, 04 Mar 2006 04:03:37 +0100, Yee CN <[EMAIL PROTECTED]> wrote:

> Hi,
>
>
> I am having problem with combinations of inputCalender, facelets and the
> following:
>
>
> 
>
>   http://localhost/MyWebApp/"; />
>
>   .
>
> 
>
>
> The symptoms are as follows:
>
> -  the calendar popups OK, and I can select a date
>
> -  but as I make a selection, the browser apparently does a form
> post and tries to redirect me to a null page: http://localhost/MyWebApp/#
> <http://localhost/MyWebApp/>
>
>
> Everything was working OK before I moved to facelets. I tested that with
> facelets the inputCalendar works OK without the   
> directive.
>
>
> I am wondering whether I am the only one facing the problem and whether
> there is a way around this.
>
>
> Thanks in advance.
>
>
> Regards,
>
> Yee
>
>




RE: readonly entities no longer pass value back to backing bean?









Is that me only? Did anybody else observed
this problem?

 

For me nightly build around Feb 12 is OK,
nightly around feb 25 not OK, currently nightly not OK.

 

Can someone please indicate one way or another
so I can know whether it is the combination of stuffs I used that caused the
problem?

 

Many thanks in advance.

Yee



 

 







From: Yee CN
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 7 March 2006 5:32
PM
To: 'MyFaces
 Discussion'
Subject: readonly entities no
longer pass value back to backing bean?



 

Hi,

 

I discovered the recent nightly builds has stop
sending values back to the backing bean when readonly attribute is set to true.
For example:

 



 

The totalAmount is meant to be a readonly textbox,
whose value is calculated via _javascript_. 

 

Another example is inputCalendar, where the date
should only be selected from the popup window, and now key in directly:

 

<t:inputCalendar id="dateFrom" … readonly="true" />

 

 

I find that all of these entities will no longer pass the input box
value to the backing bean. I tested it with the build downloaded today and find
it to be so. I have a version downloaded around 10 Feb and that one was working
OK.

 

Is this a bug? Or is this a design change?

 

Thanks

 

Yee

 








RE: Problem using preserveDataModel="true"

I have been puzzling over preserveDataModel attribute as well. 

Below is my current understanding:

If preserveDataModel="false"
- Tomahawk will call getDataModel() during the APPLY_REQUEST_VALUES phase.
This will create a fresh copy of the dataModel (assuming your bean is in
request scope).
- It will call getDataModel() again during the RENDER_RESPONSE phase. This
will reuse the dataModel created above.

If preserveDataModel="true"
- Tomahawk will NOT call getDataModel() during the APPLY_REQUEST_VALUES
phase. However it will NOT call setDataModel() as well. It seems to work
with an internally saved copy of the dataModel.
- Therefore your program code will NOT receive a 'saved' version of the
dataModel.
- Tomahawk will call getDataModel() during RENDER_RESPONSE phase. This will
cause your program to generate a fresh copy of the dataModel.

I have to say - I spend many hours on and off trying to understand this
beast. Such is my understanding at present. I hope it will help you to track
down your problem.

Regards,
Yee

-Original Message-
From: Randy Simon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 8 March 2006 3:18 AM
To: users@myfaces.apache.org
Subject: Problem using preserveDataModel="true"

I'm sure I am doing something wrong, but I can't figure out what it is.  I 
have the following:















My dataSourceEditor bean is in request scope and has the following methods.

public DataModel getDataModel() {
if (dataModel == null) {
dataModel = new ListDataModel();
}

dataModel.setWrappedData(properties);

return dataModel;
}


public void setDataModel(DataModel dm) {
dataModel = dm;
}

public String newProperty() {
DSProperty property = new DSProperty();
property.setName("new property");
property.setType(Property.LONG);

if (dataModel != null) {
properties = (List) dataModel.getWrappedData();
}

if (properties == null) {
properties = new ArrayList();
}

properties.add(property);

return null;
}

When I click the "new property" button I would expect my "setDataModel" 
method to be called then the "newProperty" method to be called where I add a

new property to the list.   However, when I click on the "new property" 
button I get the following class cast exception.

java.lang.ClassCastException: javax.faces.model.ListDataModel
at 
org.apache.myfaces.component.html.ext.HtmlDataTable.updateModelFromPreserved
DataModel(HtmlDataTable.java:254)
at 
org.apache.myfaces.component.html.ext.HtmlDataTable.processUpdates(HtmlDataT
able.java:240)
at javax.faces.component.UIForm.processUpdates(UIForm.java:196)
at 
javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:92
7)
at
javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:363)
at 
com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhas
e.java:81)
at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSe
curityHelper.java:225)
at 
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelpe
r.java:127)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFil
ter.java:299)
at 
org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFi
lter.java:214)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte
r.java:285)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
329)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:3192)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:321)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletC
ontext.java:1984)
at 
weblogic.servlet.internal.WebAppServletContext.ex

readonly entities no longer pass value back to backing bean?









Hi,

 

I discovered the recent nightly builds has stop
sending values back to the backing bean when readonly attribute is set to true.
For example:

 



 

The totalAmount is meant to be a readonly textbox,
whose value is calculated via _javascript_. 

 

Another example is inputCalendar, where the date
should only be selected from the popup window, and now key in directly:

 



 

 

I find that all of these entities will no longer pass the input box
value to the backing bean. I tested it with the build downloaded today and find
it to be so. I have a version downloaded around 10 Feb and that one was working
OK.

 

Is this a bug? Or is this a design change?

 

Thanks

 

Yee

 








RE: 1.1.3 and 1.1.2 SNAPSHOT which one to use?









I found the answer. Sorry for the trouble.

 

Regards,

Yee

 









From: Yee CN
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 7 March 2006 1:13
PM
To: 'MyFaces
 Discussion'
Subject: 1.1.3 and 1.1.2 SNAPSHOT
which one to use?



 

Hi,

 

I see myfaces-core 1.1.2SNAPSHOT and myfaces-core
1.1.3SNAPSHOT in nightly.

What are the differences? Which one should I use?

 

Many thanks in advance.

 

Regards,

Yee

 








1.1.3 and 1.1.2 SNAPSHOT which one to use?









Hi,

 

I see myfaces-core 1.1.2SNAPSHOT and myfaces-core
1.1.3SNAPSHOT in nightly.

What are the differences? Which one should I use?

 

Many thanks in advance.

 

Regards,

Yee

 








RE: How Does JDeveloper Compare with Java Studio Creator

Eclipse + myEclipseIDE is performing OK. For one thing eclipse is not
opening every file you have - only the ones you left opened in your last
session. For that matter starting up time is rather independent of the size
of the project.

In my 3yr old notebook eclipse + myeclipse + BIRT starts up in around 20
seconds.

Full recompilation takes forever. JSP/JSF validation is the culprit. I have
50+ xhtmls - and it takes the order of 10min to compile.

Regards,
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 4 March 2006 6:35 PM
To: MyFaces Discussion
Subject: Re: How Does JDeveloper Compare with Java Studio Creator

Can you guys tell how well your IDEs would perform with large apps?

I was trying to get an app with 200 jspx files (admittedly, rather
large) up and running in JDeveloper, and the thing didn't start up
until after 10min.

Is work being done on making this situation better?

Maybe I'm doing something wrong here, too.

regards,

Martin

On 3/4/06, Adam Winer <[EMAIL PROTECTED]> wrote:
> On 3/3/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Is there any supports for Facelets in JDeveloper or JSC? I am using
> > MyEclipse - and I am seriously looking for an alternative.
>
> Unfortunately not.  Facelets has come on strong basically at
> exactly the wrong point in the development cycle for JDeveloper
> (and JSC too, I'd imagine).  I'm certainly pushing Facelets
> to anyone in earshot. :)
>
> -- Adam
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces



Problem with: inputCalender, facelets and









Hi,

 

I am having problem with combinations of inputCalender,
facelets and the following:

 



 


 
…



 

The symptoms are as follows:

- 
the calendar popups OK, and I can
select a date

- 
but as I make a selection, the
browser apparently does a form post and tries to redirect me to a null page: http://localhost/MyWebApp/#

 

Everything was working OK before I moved to facelets. I tested
that with facelets the inputCalendar works OK without the 

 

I am wondering whether I am the only one facing the problem
and whether there is a way around this.

 

Thanks in advance.

 

Regards,

Yee

 








RE: How Does JDeveloper Compare with Java Studio Creator









Is there any supports for Facelets in
JDeveloper or JSC? I am using MyEclipse – and I am seriously looking for
an alternative.

 

Regards,

Yee

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan
Sent: Saturday, 4 March 2006 7:44
AM
To: MyFaces Discussion
Subject: Re: How Does JDeveloper
Compare with Java Studio Creator



 

 



On 3/3/06, Adam
Winer <[EMAIL PROTECTED]>
wrote:

Why can't JSC just run the component and actually let it render
itself by default?  I know that's what JDeveloper does, and
it works well.




Creator does that too, and it definitely works well ... the only *required*
additional code is a BeanInfo class (see the JavaBeans API) that lets the
component developer describe the component to the tool (for example, declaring
that for the "style" property, use the nice CSS Style editor instead
of just a string editor on the property sheet).





 

As a component developer (I've never worked on JDeveloper itself
at all, to be explicit), I really dislike the idea of writing a bunch of 
extra Java code for all my components.  Supporting optional Java
code when renderers can't render in design time (graphs, etc.) is
a great feature, but you shouldn't force component developers to
write anything for the common case. 






Writing dynamic behavior is possible, but not required.  It's up to the
component developer to decide if you want to make your component behave in
interesting ways at design time or not.  Examples we have implemented in
the Creator components include:

* When you drop a Drop Down List component onto the page,
  also create a helper bean for the options and bind the component
  to it.

* When you have a Label component bound to an input component
  via the "for" property, and you change the "id" of
the input component,
  respond to a property change event and change the "for"
attribute
  on the Label component as well so that it stays in sync.

* Do not allow a parameter () to be dropped except
  in a context where it is relevant (such as inside an output link).

All of this stuff is optional, but provides you a way to improve the life of
the users of your compoinents at design time, without messing up how they
operate at run time.

By the way, the API we provide to component developers to make this possible
has also been submitted to the JCP process (http://jcp.org/en/jsr/detail?id=273),
so hopefully we can see a future world where a component developer can write
design time behavior like this for more than one tool, instead of having to
deal with each tool's individual APIs.





 

-- Adam






Craig





 








Help: not working









Hi,

 

I tried to follow create a Composition Components as follows:

 

--

 



    

  

  

   …

 

--

 

 

The line  throws
the following exception if label attributes is not specified. Is this meant to
be working for Facelets? I was trying to following an article in the web…

 

 

com.sun.facelets.tag.TagAttributeException:
/tags/sortColumn.xhtml @16,30 test="${empty label}"
/tags/sortColumn.xhtml @16,30 test="${empty label}": Variable for
name : 'label' could not be retrieved.

 

  at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)…

 

 

Thanks

 

Regards,

 

Yee

 








Shale Clay vs. Facelets templating









Hi,

 

I am in the middle of migrating to facelets and at the same
time planning for Shale. It seems to me that Shale Clay and Facelets templating
overlaps to a large degree. Is there any guideline on whether the two
should/can coexist and which one should be use for any particular circumstances?

 

Many thanks in advance.

 

Regards,

Yee

 

 








Question on ADF Faces









Hi,

 

Are there any differences between adf-faces-10_1_3_0_4 (the current
version from Oracle) and the drop in Myfaces? 

 

I was just browsing through the developer manual from Oracle - it seems
like ADF faces is a whole framework build on top of JSF, with its data control
framework, page life cycle management etc. Can it co-exist with Shale?

 

Thanks

 

Best regards,

Ye

 








RE: [SPAM] Re: Problem with Tomcat 5.5.15 and MyFaces

We are using Tomcat 5.5.15 as well. We are using facelets, debugging with
MyEclipse, no problems so far.

-Original Message-
From: Francesco Consumi [mailto:[EMAIL PROTECTED] 
Sent: Friday, 17 February 2006 4:23 PM
To: users@myfaces.apache.org
Subject: [SPAM] Re: Problem with Tomcat 5.5.15 and MyFaces
Importance: Low

Quoting Matthias Wessendorf <[EMAIL PROTECTED]>:

> this class comes from servlet-api ...
> javax/servlet/ServletContextListener
>
> so maybe that is a tomcat issue ?
>
> try an older version ,  please ;-)
>
We're currently use Tomcat 5.5.15 not only on our servers, but even  
for debugging in NetBeans 5.0 and it works...


-- 
Francesco Consumi
Ufficio Sistemi informativi
Istituto degli Innocenti
Piazza SS.Annunziata, 12
50122 Firenze
consumi at istitutodeglinnocenti.it
Tel. +39 055 2037320
ICQ# 12516133




RE: Is there a Path component in JSF

Thanks Mike. That does the trick.

I also found out that it is much more convenient to have the following:





After that all path will be resolved relative to the basePath, saving quite
a bit of typing. For example:



Best regards,
Yee

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 14 February 2006 6:20 AM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: Is there a Path component in JSF

#{facesContext.externalContext.requestContextPath} for
request.getContextPath().

You could probably get the rest using
#{facesContext.externalContext.request.scheme} and so on.

However, you're probably better off writing a backing bean to do all
of this for you so you keep all of the logic out of your pages.

#{basePathBackingBean.basePath} which computes and returns the value of

String basePath = request.getScheme() + "://" +
request.getServerName() +  ":" + request.getServerPort() +
request.getContextPath() + "/";

You could also do it by defining a facelets function.

Or you could create a custom component that does all of this, and
that'd work for facelets or jsp.

-Mike




On 2/13/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
> Is there a JSF component for base path? I like to achieve the equivalence
of
> the following:
>
>
>
> <% String basePath = request.getScheme() + "://" + request.getServerName()
+
>
> ":" + request.getServerPort() + request.getContextPath() + "/";%>
>
>
>
>type="text/css" />
>
>
>
> I am migrating to facelets and I need to find an equivalent to the above
as
> relative path won't work because JSF navigation leaves the URL one step
> behind the actual URL.
>
>
>
> Or is there an alternate to this?
>
>
>
>
>
> Many thanks in advance,
>
>
>
> Best Regards,
>
> Yee



RE: Is there a Path component in JSF

Thanks. That does the trick.

I also found out that it is much more convenient to have the following:





After that all path will be resolved relative to the basePath, saving quite
a bit of typing. For example:



Best regards,
Yee



-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 14 February 2006 6:20 AM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: Is there a Path component in JSF

#{facesContext.externalContext.requestContextPath} for
request.getContextPath().

You could probably get the rest using
#{facesContext.externalContext.request.scheme} and so on.

However, you're probably better off writing a backing bean to do all
of this for you so you keep all of the logic out of your pages.

#{basePathBackingBean.basePath} which computes and returns the value of

String basePath = request.getScheme() + "://" +
request.getServerName() +  ":" + request.getServerPort() +
request.getContextPath() + "/";

You could also do it by defining a facelets function.

Or you could create a custom component that does all of this, and
that'd work for facelets or jsp.

-Mike




On 2/13/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
> Is there a JSF component for base path? I like to achieve the equivalence
of
> the following:
>
>
>
> <% String basePath = request.getScheme() + "://" + request.getServerName()
+
>
> ":" + request.getServerPort() + request.getContextPath() + "/";%>
>
>
>
>type="text/css" />
>
>
>
> I am migrating to facelets and I need to find an equivalent to the above
as
> relative path won't work because JSF navigation leaves the URL one step
> behind the actual URL.
>
>
>
> Or is there an alternate to this?
>
>
>
>
>
> Many thanks in advance,
>
>
>
> Best Regards,
>
> Yee



Is there a Path component in JSF









Hi, 

 

Is there a JSF component for base path? I like
to achieve the equivalence of the following:

 

<% String basePath = request.getScheme() + "://" + request.getServerName() + 

":" + request.getServerPort() + request.getContextPath()
+ "/";%>

 

  

 

I am migrating to facelets and I need to find an equivalent to
the above as relative path won’t work because JSF navigation leaves the
URL one step behind the actual URL.

 

Or is there an alternate to this?

 

 

Many thanks in advance,

 

Best Regards,

Yee








Problems with javascript and facelets









Hi,

 

I am trying to include the following javacript in
facelets pages: