JBOSS thread handling (JBoss stability)

2007-10-01 Thread Arvind Pandey
Hi all !

  we are using myfaces 1.1.5, spring and hibernate in JBoss-4.0.4.GA. we
have deployed the application
in JBoss for performance and stability. We read the below site for
performance

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

and changed the web.xml accordingly.
now the performance is ok...

but we are facing problem with stability.  We saw the web console of JBoss,
it shows the number of threads.
Initially when we start the application with 25 different users on different
m/c, it starts with 120 threads. Everyday the number of threads gets
increased by almost 100 to 150 threads.

Can anyone tell me how many threads JBoss can handle at the most? How to
stop this increment in threads count? Because I feel if it will keep on
increasing then after some days JBoss will crash and stability will be lost.
Please suggest some solution so that we can overcome this issue..

thanks and regards
Arvind Pandey

Disclaimer: The information contained in this e-mail and attachments if any are 
privileged and confidential and are intended for the individual(s) or 
entity(ies) named in this e-mail. If the reader or recipient is not the 
intended recipient, or employee or agent responsible for delivering to the 
intended recipient, you are hereby notified that dissemination, distribution or 
copying of this communication or attachments thereof is strictly prohibited. IF 
YOU RECEIVE this communication in error, please immediately notify the sender 
and return the original message.


[MyFaces 1.2.0] UnknownHostException: java.sun.com

2007-10-01 Thread Michael Obster

Hi,

getting here an UnknownHostException: java.sun.com after migrating my 
installation from MyFaces 1.1.5 (tomahawk 1.1.5, trinidad 1.0.3) and 
JBoss 4.0.5.GA to MyFaces 1.2.0 (Tomahawk 1.1.6, Trinidad 1.2.2).


The also somehow clear for me, that i get this exception here, because 
java.sun.com is blocked ony the firewall (access only over proxy). But 
why wants the FacesConfigurator (method feedClassLoaderConfigurations 
line 425) connect to the sun server and how can I disable this?


Cheers,
Michael


Re: [MyFaces 1.2.0] UnknownHostException: java.sun.com

2007-10-01 Thread Ognjen Blagojevic

Hi Michael,

Michael Obster wrote:
The also somehow clear for me, that i get this exception here, because 
java.sun.com is blocked ony the firewall (access only over proxy). But 
why wants the FacesConfigurator (method feedClassLoaderConfigurations 
line 425) connect to the sun server and how can I disable this?


I had the same problem just a couple days ago. It's tomahawk issue. It 
tries to validate default faces-config.xml against DTD that is not in 
the tomahawk.jar file, but resides on java.sun.com server. You can, 
however pack it in the .jar file. For more details, read this:


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

section

  Using Tomahawk without an Internet connection (and with the Sun RI).

Regards,
Ognjen


[Trinidad] JIRA issue 144

2007-10-01 Thread Darren McEntee
Hi, we are in need of a fix for JIRA issue 144, which we were hoping
would have been resolved in the MyFaces Trinidad 1.0.3 release.

But unfortunately it is not. 

 

I'm wondering if anyone would have the time to look at the issue:
details here. https://issues.apache.org/jira/browse/TRINIDAD-144 

We need this resolved soon as the client is only using IE.

 

If this fix can be prioritised higher, we'd appreciate it a lot.

 

Best regards,

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


dhtml with Trinidad

2007-10-01 Thread Alonso Isidoro Roman
Good days people,
i wanna know your opinion on how Trinidad generates DHTML,  does it really
well, the pages that it generates are seen well in firefox, IE?

Departing from the fact that the backend returns the result in format xml,
how it should be done in order that the xml was rendered in any browser?

thx in advanced!
-- 
Alonso Isidoro Roman.


Behaviour of JSF related to renderer instances

2007-10-01 Thread David Delbecq
Hello,

I have a quite technical question related to Renderers in JSF. When
several components references the same Renderers, what's the expected
behaviour?

1) One and only one renderer is instanciated and used for the whole life
of application, his methods being called concurrently
2) One and only one renderer is instanciated for each component type,
his methods being called concurrently
3) For each component in tree, a renderer in instanciated called during
lifecycle and freed when respnse is send
4) Behaviour is not explicited by JSF specs and application should
consider Renderers could shared, but are not forced to be.

Regards,
David Delbecq

-- 
http://www.devlog.be (a belgian developer's logs)




Re: How to create backing bean like bundle

2007-10-01 Thread Ron Smits
you should look at
http://wiki.apache.org/myfaces/Parameters_In_EL_Functions?highlight=%28map%29we
had to work with 2500 different codes, this worked like a charm.

Ron

On 9/29/07, simon [EMAIL PROTECTED] wrote:

 You might find this page useful:

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

 On Sat, 2007-09-29 at 12:26 +0300, Cagatay Civici wrote:
  Hi Dave,
 
  Instead of defining getters for each field, you can make your backing
  bean implement the Map interface.
 
  So override the get method of the managed bean and return the
  corresponding value in your own map.
 
  Cagatay
 
  On 9/29/07, Dave [EMAIL PROTECTED] wrote:
  I have a Map (name -- value), and prefer to access values
  (from JSF page) using #{myMap.Foo}  where Foo is the key,
  which is the same as how to access resource bundle
  #{bundle.Foo}.
 
  There are 100+ values in the map, and I do not like to write
  100+ getter methods. Please help. Thanks!
 
  David
 
  __
  Check out the hottest 2008 models today at Yahoo! Autos.
 
 




-- 
I reject your reality and substitute my own
   --- Adam Savage, the mythbusters


Re: [MyFaces 1.2.0] UnknownHostException: java.sun.com

2007-10-01 Thread Michael Obster

Thank you. Got it working!

Cheers,
Michael

Ognjen Blagojevic schrieb:

Hi Michael,

Michael Obster wrote:
The also somehow clear for me, that i get this exception here, because 
java.sun.com is blocked ony the firewall (access only over proxy). But 
why wants the FacesConfigurator (method feedClassLoaderConfigurations 
line 425) connect to the sun server and how can I disable this?


I had the same problem just a couple days ago. It's tomahawk issue. It 
tries to validate default faces-config.xml against DTD that is not in 
the tomahawk.jar file, but resides on java.sun.com server. You can, 
however pack it in the .jar file. For more details, read this:


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

section

  Using Tomahawk without an Internet connection (and with the Sun RI).

Regards,
Ognjen




[Tomahawk] t:dataTable

2007-10-01 Thread Wolfgang

Hi,

I create a t:dataTable from a List, but if the list is empty the table 
inclusive all headers
won't be shown. Is there a possibility to show all headers while the 
list is empty?


Cheers Wolfgang


RE: [Announce] Release of Apache MyFaces Trinidad 1.0.3

2007-10-01 Thread Stephen Friedrich
I just spent an unproductive hour because after upgrading, my app did no longer 
work, but was throwing javascript errors everywhere.

Lesson learned: Clear your browser cache after update.

Is there anything we can do about this? Setting some header meta info to make 
javascript files caching expire every day or so?


JSF page layout/design features

2007-10-01 Thread vogeljo

Hi, can anybody tell me what library is most suitable to develop an complex
multilayer layout/design in JSF. I have tried trinidad because of its
skinning feature but there seems to be downsides and before experimenting
with core JSF components i would like to ask for somebody's else view.
I have added two screenshots to give an impression of how the application is
supposed to look like. 
Any hint would be appreciated!

http://www.nabble.com/file/p12978667/a_mainscreen_neutral%2B01.jpeg 
http://www.nabble.com/file/p12978667/a_overlay_neutral%2B01.jpeg 
-- 
View this message in context: 
http://www.nabble.com/JSF-page-layout-design-features-tf4548169.html#a12978667
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[MyFaces 1.2.0 and Tomahawak 1.1.6] Issue when loading page

2007-10-01 Thread Michael Obster

Hi,

again a problem after migration to 1.2.0 which I cannot solve :-(.

My application (MyFaces 1.2.0 Tomahawk 1.1.6 Trinidad 1.2.2) get started 
correctly by JBoss 4.2.1 but when I'm lodaing a JSF page I got the 
attached error.


Also I've searched already in the MyFaces wiki and Google but don't find 
a solution :-(. The only anomaly is that I'm using Tiles in the application.


If you need the configs, please let me know, because I don't want to 
send them on the list.


Cheers,
Michael
14:59:35,359 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
java.lang.NoClassDefFoundError
at 
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig.clinit(MyfacesConfig.java:94)
at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener
.java:129)
at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.j
ava:104)
at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getJavaScriptCodeAndStoreInRequest(ExtensionsP
haseListener.java:94)
at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:70)
at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:92)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:134)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
14:59:35,421 WARN  [FormAuthenticator] Unexpected error forwarding to login page
javax.servlet.ServletException: java.lang.NoClassDefFoundError
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:156)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 

RE: MyFaces on Glassfish

2007-10-01 Thread Hendrik Beck \(camunda\)
Hi Bjoern,

First sorry for the delay, I was out of office.

But thanks a lot for your informations. I hoped to get a little more
feedback on how to get it running on Glassfish. The problem is, that my web
application should be shared (it's open-source) and thus I think it's kinda
unpractical having the need to actually prepare the different application
servers first, especially in existing production environments. My goal was
to provide one WAR file that just has to be dropped in.

But maybe that isn't a very realistic goal to reach, so I might be trying to
make friends with a solutions like the one you described... :-)


Best regards
Hendrik


 -Original Message-
 From: Björn Thalheim [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 26, 2007 2:59 PM
 To: MyFaces Discussion
 Subject: Re: MyFaces on Glassfish
 
 Hi,
 
 Hendrik Beck schrieb:
  What I could find out (if I understood it right) is, that Glassfish
 bundles
  the JSF Sun-RI with Glassfish and prefers that impl over the one bundled
  with the web app (which would be MyFaces in my case). Uhm. Are there any
  people out there doing that (I assumed, there must be a lot of people
 doing
  that)? Can anyone give a definitive yes or no?
 
 Well it should work, but it is not trivial. In my case I try to run
 Glassfish with the builtin JSF RI plus Trinidad (which turns out to also
 not run immediately, because Trinidad is an extension of MyFaces).
 Somebody else made it run, it works now for me because I copied an extra
 folder with a few jars into the lib directory of the Glassfish
 installation. Sorry I can't tell you more about it, my knowledge about
 why that works now is quite limited.
 
  Maybe another note: I am using the MyFaces impl as well as Tomahawk. Am
 I
  right that these problems are mostly related to MyFaces and not to
 Tomahawk
  because MyFaces and the Sun-RI are kinda competing impls and Tomahawk is
  just an additional package?
 
 I would support this opinion. Tomahawk neved caused me any trouble.
 
 Björn



Re: [Announce] Release of Apache MyFaces Trinidad 1.0.3

2007-10-01 Thread Danny Robinson
If you used daily builds of 1.0.3 prior to the release, then you have
to clear your browser cache.  For others who are moving from earlier
releases 1.0.1/1.0.2, then they won't have a problem as the .js filename
changes with each release.

On 10/1/07, Stephen Friedrich [EMAIL PROTECTED] wrote:

 I just spent an unproductive hour because after upgrading, my app did no
 longer work, but was throwing javascript errors everywhere.

 Lesson learned: Clear your browser cache after update.

 Is there anything we can do about this? Setting some header meta info to
 make javascript files caching expire every day or so?




-- 
Chordiant Software Inc.
www.chordiant.com


css-classes sequence with Trinidad skinning

2007-10-01 Thread vogeljo

Hi, i happen to notice that with trinidad skinning my own css-classes are
listed in the first place and therefore were overwritten by the following
default trinidad css-classes: div class=myClass af_navigationPane_bar
To ensure that a navigationPane-link will be rendere in my css-style i have
to write 

.myClass af|navigationPane::bar-active-enabled
af|navigationPane::bar-content A {
color: #000;
}

I would like to know if i got that right or if there are easier ways to get
that result? 
-- 
View this message in context: 
http://www.nabble.com/css-classes-sequence-with-Trinidad-skinning-tf4548515.html#a12979721
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Behaviour of JSF related to renderer instances

2007-10-01 Thread Simon Kitching
 David Delbecq [EMAIL PROTECTED] schrieb:
 Hello,
 
 I have a quite technical question related to Renderers in JSF. When
 several components references the same Renderers, what's the expected
 behaviour?
 
 1) One and only one renderer is instanciated and used for the whole life
 of application, his methods being called concurrently
 2) One and only one renderer is instanciated for each component type,
 his methods being called concurrently
 3) For each component in tree, a renderer in instanciated called during
 lifecycle and freed when respnse is send
 4) Behaviour is not explicited by JSF specs and application should
 consider Renderers could shared, but are not forced to be.

From the Sun javadoc for the renderer class:
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/render/Renderer.html
quote
Individual Renderer instances will be instantiated as requested during the 
rendering process, and will remain in existence for the remainder of the 
lifetime of a web application. Because each instance may be invoked from more 
than one request processing thread simultaneously, they MUST be programmed in a 
thread-safe manner.
/quote

So it seems that (1) is what is required by the spec.


Regards,

Simon


[Trinidad] tr:inputDate PPR problem

2007-10-01 Thread Stephen Booth
Hello,

I'm trying to use the Trinidad inputDate component to fire a PPR event
and I'm getting an error whenever I use the date picker.

If I just enter the date in the textbox part, the PPR fires correctly
and the page updates as expected.

However, if I use the date picker, I get the following exception:

01-Oct-2007 15:25:39
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRoo
tRenderer encodeAll
SEVERE: Error during partial-page rendering
java.lang.IndexOutOfBoundsException
at
com.evermind.io.ChunkedOutputStream.write(ChunkedOutputStream.java:64)
at
com.evermind.server.http.EvermindServletOutputStream.flushBuffer(Evermin
dServletOutputStream.java:88)
at
com.evermind.server.http.EvermindServletOutputStream.write(EvermindServl
etOutputStream.java:181)
at
com.evermind.server.http.ServletWriter.convertAndWriteChars(ServletWrite
r.java:284)
at
com.evermind.server.http.ServletWriter.flushBuffer(ServletWriter.java:30
9)
at
com.evermind.server.http.ServletWriter.getWrittenByteCount(ServletWriter
.java:195)
at
com.evermind.server.http.ServletWriter.checkWriteLength(ServletWriter.ja
va:421)
at
com.evermind.server.http.ServletWriter.write(ServletWriter.java:486)
at
org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlOutput$2.write(Xml
Output.java:109)
at java.io.Writer.write(Writer.java:92)
at java.io.PrintWriter.write(PrintWriter.java:333)
at
org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter.write(HtmlResp
onseWriter.java:347)
at
org.apache.myfaces.trinidadinternal.io.ResponseWriterDecorator.write(Res
ponseWriterDecorator.java:159)
at
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.ScriptBufferingRe
sponseWriter.write(ScriptBufferingResponseWriter.java:158)
at
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter
.write(PPRResponseWriter.java:200)
at com.sun.facelets.StateWriter.write(StateWriter.java:108)
at
org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter.writeAttribute
(HtmlResponseWriter.java:229)
at
org.apache.myfaces.trinidadinternal.io.ResponseWriterDecorator.writeAttr
ibute(ResponseWriterDecorator.java:110)

[rest snipped for brevity]

I'm using Trinidad 1.0.3 with MyFaces 1.1.5 and Facelets 1.1.12. My
servlet container is OC4J - hence the com.evermind stuff.

Any ideas gratefully received!

Thanks,

Stephen
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.


[Trinidad] Redirect Logging to log4j

2007-10-01 Thread Kuhn, Harald
Hi,

as we are using log4j as logging framework (tomcat internal and webapps), I 
tried to redirect the log output of Trinindad to log4j.
I used the code provided by
http://wiki.apache.org/myfaces/Trinidad_and_Common_Logging

The output is actually redirected from JDK-Logging -- commons-logging -- 
log4j. 
But there is a little difference:

Output from JDK-Logging:
01.10.2007 16:23:17 org.apache.myfaces.trinidadinternal.config.ConfigParser 
parseConfigFile
INFO: Trinidad is running in debug mode. Do not use in a production 
environment. See:/WEB-INF/trinidad-config.xml
01.10.2007 16:23:17 
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl _checkTimestamp
INFO: Apache Trinidad is running with time-stamp checking enabled. This should 
not be used in a production environment. See the 
org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml

Same output redirected to log4j:
2007-10-01 16:18:48,687   INFO  
org.apache.myfaces.trinidadinternal.config.ConfigParser: RUNNING_IN_DEBUG_MODE
2007-10-01 16:18:49,078   INFO  
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl: 
TIMESTAMP_CHECKING_ENABLED_SHOULDNOT_IN_PRODUCTION

As JDK Logging has a method java.util.logging.Logger.getLogger(name, 
resourceBundleName)
I think this would cause the problem. And RUNNING_IN_DEBUG_MODE and 
TIMESTAMP_CHECKING_ENABLED_SHOULDNOT_IN_PRODUCTION are just the keys into the 
RessourceBundle.

Is this assumption right?

Before a deeper inspection of the code provided by the wiki page, I would 
kindly ask, if there is already a solution for this problem?

Kind regards

  Harald


**
Harald Kuhn
AirPlus International
Business Information Services
Phone:   +49 (0) 61 02 204-821
Fax: +49 (0) 61 02 204-139
E-Mail:   [EMAIL PROTECTED]
Internet:  www.airplus.com
**



 Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
 Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Lutz 
 Logemann · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: 
 Amtsgericht Offenbach/Main, HRB 8119
 
 


Re: css-classes sequence with Trinidad skinning

2007-10-01 Thread Jeanne Waldman




Hi,


The Trinidad code processes the skin's css file and generates a
css-2
document that is linked into the rendered page. You'll notice in the
generated css file that the style selectors that share the same css
properties are grouped together. It does this for performance reasons -
it makes the generated css file much smaller.


Instead of the selectors being generated in the order you wrote them:
.af_foo {font-size: 8px; color: red; font-weight: bold; font-style: italic; font-family: Tahoma}
.af_bar {font-size: 12px; color: black; border-width: 1px}
.af_zoo {font-size: 8px; color: red; font-weight: bold; font-style: italic; font-family: Tahoma}
.af_xyz {color: red}
.af_abc {font-size: 12px; color: black; border-width: 1px}

You'll see them grouped together:
.af_foo, .af_zoo {font-size: 8px; color: red; font-weight: bold;font-style: italic; font-family: Tahoma}
.af_bar, .af_abc {font-size: 12px; color: black; border-width: 1px}
.af_xyz {color: red}


Because of this grouping, it is possible that the order of the skin
selectors in the skin css file is not the same as the ordering of the
css-2 selectors in the generated css file. The point of telling you
about the reordering of the css selectors is so that you know not
to rely on the ordering of your css selectors. And if you must, then
doing something like what you did (making the specificity stronger) is
a workaround.

Thanks,
Jeanne





vogeljo wrote:

  Hi, i happen to notice that with trinidad skinning my own css-classes are
listed in the first place and therefore were overwritten by the following
default trinidad css-classes: div class="myClass af_navigationPane_bar"
To ensure that a navigationPane-link will be rendere in my css-style i have
to write 

.myClass af|navigationPane::bar-active-enabled
af|navigationPane::bar-content A {
	color: #000;
}

I would like to know if i got that right or if there are easier ways to get
that result? 
  





[Trinidad]Dialog framework restricted to faces servlet path mapping ???

2007-10-01 Thread Martin Ahrer

Im facing a strange behaviour with popping up dialog windows when using
extension mapping for the servlet.

I have a servlet mapping like:
servlet-mapping
servlet-namefaces/servlet-name
url-pattern*.faces/url-pattern
/servlet-mapping

and a navigation rule

navigation-rule

from-view-id/application/reportviewer/reportviewer.jspx/from-view-id
navigation-case
from-action#{reportViewerController.run}/from-action
from-outcomedialog:success/from-outcome

to-view-id/application/reportviewer/report.jspx/to-view-id
/navigation-case
/navigation-rule

The managed bean method run returns dialog:success but the view as
implemented in the to-view-id does not get called! 
Instead a popup window shows up with some error message saying that the
requested URL does not exist


The requested resource (/birt-web-0.2.4-SNAPSHOT/__ADFv__.jspx) is not
available.


So it seems something creates a URL that is totally screwed up!

As soon as I switch to wildcard mapping 

servlet
servlet-namefaces/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-namefaces/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping

the dialog popup works as expected!

Is there any known requirement regarding the faces servlet mapping with
trinidad? Thanks for your hints!

-- 
View this message in context: 
http://www.nabble.com/-Trinidad-Dialog-framework-restricted-to-faces-servlet-path-mapping-tf4549427.html#a12982682
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [Tomahawk 1.1.6] ExtensionFilter throws NoClassDefFoundException when loading page

2007-10-01 Thread Michael Obster
Hmm still trying to get it work since about 6 hours :-(. No solution 
yet. The strange thing is the line 94 of the MyfacesConfig.java in 
Tomahawk which throws the Exception:


static
{
boolean tomahawkAvailable;
try
{
ClassUtils.classForName(org.apache.myfaces.webapp.filter.ExtensionsFilter); 
// line 94 ^^

tomahawkAvailable = true;
}
catch (ClassNotFoundException e)
{
tomahawkAvailable = false;
}
TOMAHAWK_AVAILABLE = tomahawkAvailable;
}
-

The ExtensionFilter is also part of the tomahawk.jar, so normally should 
be loadable. Also strange for me is the thrown ClassNotFoundException, 
because you see there is a catch block... so I'm at my wits' end :-(.


I'll attach my config as well, to get this point clearer. Did I hit a 
serious bug in Tomahawk? I also tried to compile a Tomahawk snapshot 
from svn for MyFaces 1.2 but got the same error :-(.


Cheers,
Michael

Michael Obster schrieb:

Hi,

again a problem after migration to 1.2.0 which I cannot solve :-(.

My application (MyFaces 1.2.0 Tomahawk 1.1.6 Trinidad 1.2.2) get started 
correctly by JBoss 4.2.1 but when I'm lodaing a JSF page I got the 
attached error.


Also I've searched already in the MyFaces wiki and Google but don't find 
a solution :-(. The only anomaly is that I'm using Tiles in the 
application.


If you need the configs, please let me know, because I don't want to 
send them on the list.


Cheers,
Michael



?xml version=1.0?
!DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN
  http://java.sun.com/dtd/web-facesconfig_1_0.dtd;
faces-config
	managed-bean
		managed-bean-nametest/managed-bean-name
		managed-bean-classde.eposcat.raki.ui.beans.Test/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namerakicontroller/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.actions.RakiController
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namepagedSort/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.actions.PagedSortableRequestList
		/managed-bean-class
		managed-bean-scoperequest/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namerequestParam/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.beans.RequestParamBean
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namezebraconnector/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.actions.ZebraHandler
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namebrequestaction/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.actions.BRequestAction
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-nameorder/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.beans.BRequestBean
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-nameorderHandler/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.actions.OrderHandler
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namedisposal/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.beans.DisposalRequestBean
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namedisposalaction/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.actions.DisposalRequestAction
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namemessages/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.beans.MessageBean
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
	managed-bean
		managed-bean-namemenucontrol/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.beans.MenuControlBean
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean
!-- managed-bean
		managed-bean-nameconfirm/managed-bean-name
		managed-bean-class
			de.eposcat.raki.ui.beans.ConfirmBean
		/managed-bean-class
		managed-bean-scopesession/managed-bean-scope
	/managed-bean --
	
	!-- State driven navigation --
	navigation-rule
		navigation-case
			from-outcomelogout/from-outcome
			to-view-id/pages/security/logout.jsf/to-view-id
		/navigation-case
	/navigation-rule
	navigation-rule
		from-view-id/zebrasearch.jsp/from-view-id
		navigation-case
			from-outcomelistusers/from-outcome
			to-view-id/listusers.jsf/to-view-id
		/navigation-case
	/navigation-rule
	navigation-rule
		

Re: [Tomahawk] t:dataTable

2007-10-01 Thread Andrew Robinson
I don't believe it is possible in the Tomahawk table. I know the
Trinidad table does do this. Perhaps you could add a dummy record to
the table?

On 10/1/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi,

 I create a t:dataTable from a List, but if the list is empty the table
 inclusive all headers
 won't be shown. Is there a possibility to show all headers while the
 list is empty?

 Cheers Wolfgang



Re: [Tomahawk] t:dataTable

2007-10-01 Thread SJain
Try to use renderedIfEmptyattribute  of the datatable . See the 
tag reference for the Tomhawk tags on the myfaces site
 





Andrew Robinson [EMAIL PROTECTED] 
10/01/2007 01:17 PM
Please respond to
MyFaces Discussion users@myfaces.apache.org


To
MyFaces Discussion users@myfaces.apache.org
cc

Subject
Re: [Tomahawk] t:dataTable






I don't believe it is possible in the Tomahawk table. I know the
Trinidad table does do this. Perhaps you could add a dummy record to
the table?

On 10/1/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi,

 I create a t:dataTable from a List, but if the list is empty the table
 inclusive all headers
 won't be shown. Is there a possibility to show all headers while the
 list is empty?

 Cheers Wolfgang




[Trinidad] Trouble updating Page Flow Scope during Render Response

2007-10-01 Thread David Brunette
 

 Hi...

 

 I have an application that is using the Page Flow Scope a bunch.
In many of our beans' getXyz() methods, we are fetching some data and
putting it in the Flow Scope for later requests to use.  A couple of
additions to one of our pages, which seemed to have nothing to do with
each other, ended up giving me some problems:  adding a tr:inputText
value=#{myBean.theValue} / component whose getTheValue() method put
something in the Flow Scope, a tr:inputDate / component, and a button
that would open a dialog.  With that combination, the dialog opened
fine, but I got a NullPointerException when trying to close the dialog
and return to the parent.

 

 Long story made short, I tracked the problem down to the fact that
I was trying to put something into the Flow Scope during the Render
Response phase.  I finally found this thanks this really good comment on
the PageFlowScopeMap._detachIfNeeded() method.  It was a good comment
because it led me to the explanation of what was happening (the Flow
Scope tokens were getting confused, which caused problems when trying to
pop the Flow Scope on return to the parent page)... but I'm still unsure
about *why* it's necessary to detach the Flow Scope if we try to mutate
it during Render Response.  Could anybody please help me understand the
need for this so I can have a better idea of how to avoid this in the
future??

 

 Thanks...

 

Dave

The information transmitted herewith is sensitive  information of Chordiant 
Software or its customers and is intended only for use to the individual or 
entity to which it is addressed. If the reader of this message is not the 
intended recipient, you are hereby notified that any review, retransmission, 
dissemination, distribution, copying or other use of, or taking of any action 
in reliance upon, this information is strictly prohibited. If you have received 
this communication in error, please contact the sender and delete the material 
from your computer.


Re: [Tomahawk 1.1.6] ExtensionFilter throws NoClassDefFoundException when loading page

2007-10-01 Thread Anton Gavazuk
Hello Michael
I also have this trouble - but have not found any solution
http://www.jboss.com/index.html?module=bbop=viewtopict=112370

2007/10/1, Michael Obster [EMAIL PROTECTED]:
 Hmm still trying to get it work since about 6 hours :-(. No solution
 yet. The strange thing is the line 94 of the MyfacesConfig.java in
 Tomahawk which throws the Exception:
 
 static
  {
 boolean tomahawkAvailable;
 try
 {
 ClassUtils.classForName(org.apache.myfaces.webapp.filter.ExtensionsFilter);
 // line 94 ^^
 tomahawkAvailable = true;
 }
 catch (ClassNotFoundException e)
 {
 tomahawkAvailable = false;
 }
 TOMAHAWK_AVAILABLE = tomahawkAvailable;
  }
 -

 The ExtensionFilter is also part of the tomahawk.jar, so normally should
 be loadable. Also strange for me is the thrown ClassNotFoundException,
 because you see there is a catch block... so I'm at my wits' end :-(.

 I'll attach my config as well, to get this point clearer. Did I hit a
 serious bug in Tomahawk? I also tried to compile a Tomahawk snapshot
 from svn for MyFaces 1.2 but got the same error :-(.

 Cheers,
 Michael

 Michael Obster schrieb:
  Hi,
 
  again a problem after migration to 1.2.0 which I cannot solve :-(.
 
  My application (MyFaces 1.2.0 Tomahawk 1.1.6 Trinidad 1.2.2) get started
  correctly by JBoss 4.2.1 but when I'm lodaing a JSF page I got the
  attached error.
 
  Also I've searched already in the MyFaces wiki and Google but don't find
  a solution :-(. The only anomaly is that I'm using Tiles in the
  application.
 
  If you need the configs, please let me know, because I don't want to
  send them on the list.
 
  Cheers,
  Michael
 





Re: css-classes sequence with Trinidad skinning

2007-10-01 Thread David Übelacker

Hi,

not really better, but with !importent you can also solve this problem:

.myClass A {
 color: #000 !important;
}


David

vogeljo schrieb:

Hi, i happen to notice that with trinidad skinning my own css-classes are
listed in the first place and therefore were overwritten by the following
default trinidad css-classes: div class=myClass af_navigationPane_bar
To ensure that a navigationPane-link will be rendere in my css-style i have
to write 


.myClass af|navigationPane::bar-active-enabled
af|navigationPane::bar-content A {
color: #000;
}

I would like to know if i got that right or if there are easier ways to get
that result?