ExtensionsFilter init-params wrong?

2007-09-14 Thread Ture Hoefner
The docs at

 

http://myfaces.apache.org/tomahawk/extensionsFilter.html

 

show the maxFileSize init-param for the new
org.apache.myfaces.webapp.filter.ExtensionsFilter that replaces the
deprecated org.apache.myfaces.component.html.util.ExtensionsFilter.

 

Why does that doc mention a maxFileSize init-param?  And where is the
init-param for the threshold size?  Looking at the source of the new
ExtensionsFilter it seems like the init-params are still what they used
to be (uploadMaxFileSize and uploadThresholdSize):

 

http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/o
rg/apache/myfaces/webapp/filter/ExtensionsFilter.java?view=markup

 

 It seems like the doc should be showing the uploadMaxFileSize and
uploadThresholdSize init-params like this:

 

init-param

param-nameuploadMaxFileSize/param-name

param-value100m/param-value

descriptionSet the size limit for uploaded files.

Format: 10 - 10 bytes

10k - 10 KB

10m - 10 MB

1g - 1 GB

/description

/init-param

init-param

param-nameuploadThresholdSize/param-name

param-value100k/param-value

descriptionSet the threshold size - files

below this limit are stored in memory, files above

this limit are stored on disk.

 

Format: 10 - 10 bytes

10k - 10 KB

10m - 10 MB

1g - 1 GB

/description

/init-param

 

Is this a documentation bug?  Thanks.

 



Ture Hoefner

WebLogic Portal Engineering

BEA Systems, Inc.

 


Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

[Trinidad] tr:selectManyShuttle

2007-09-14 Thread Reza Samoody
Hi,
I need to use a selectManyShuttle component. I don't know how many selection
items are included in selectManyShuttle. I tried to use
tr:selectManyShuttle value=#{list.selected} 
f:selectItems value=#{list.selections} /
/tr:selectManyShuttle

but it seems f:selectItems is not working with tr:selectManyShuttle tag. Any
suggestions?

Thanks


Re: MyFaces 1.2.0 on Resin 3.1.2

2007-09-14 Thread Boris Kovalenko
Resin 3.1 is development release and not fully comply to JSP 2.5 for the 
time present.

I'm getting the following error when trying to run MyFaces 1.2.0 on Resin
3.1.2. Any ideas?

@400046e9bb65051988cc [17:36:10.302] Loading .tld files from global
classpath
@400046e9bb670c2104c4 [17:36:12.924]
com.caucho.xml.XmlParseException:
jar:file:/opt/j2ee/domains/raibledesigns.com/demo/resin-3.1.2/webapps/appfuse-light-jsf/WEB-INF/lib/myfaces-impl-1.2.0.jar!/META-INF/myfaces_core.tld:28:
jsp-version is an unexpected tag (parent taglib starts at 23).
@400046e9bb670c21184c [17:36:12.924]
@400046e9bb670c211c34 [17:36:12.924] 26: /description
@400046e9bb670c212404 [17:36:12.924] 27:
tlib-version1.2/tlib-version
@400046e9bb670c212bd4 [17:36:12.924] 28: jsp-version2.1/jsp-version
@400046e9bb670c2221ec [17:36:12.924] 29: short-namef/short-name
@400046e9bb670c2225d4 [17:36:12.924] 30:
urihttp://java.sun.com/jsf/core/uri
@400046e9bb670c222da4 [17:36:12.924]
@400046e9bb670c223574 [17:36:12.924] taglib syntax: (@version 
@xsi:schemaLocation?
@400046e9bb670c22395c [17:36:12.924]  (description*,
display-name?, icon?)
@400046e9bb670c22412c [17:36:12.924]  tlib-version
@400046e9bb670c225c84 [17:36:12.924]  short-name?
@400046e9bb670c226454 [17:36:12.924]  uri?
@400046e9bb670c22683c [17:36:12.924]  validator?
@400046e9bb670c22700c [17:36:12.924]  listener*
@400046e9bb670c2273f4 [17:36:12.924]  tag*
@400046e9bb670c227bc4 [17:36:12.924]  tag-file*
@400046e9bb670c227fac [17:36:12.924]  function*
@400046e9bb670c22aaa4 [17:36:12.924]  taglib-extension*)

Thanks,

Matt
  

With respect,
   Boris



Re: [Trinidad] console is undefined?

2007-09-14 Thread Matthias Wessendorf
sounds good

On 9/14/07, Adam Winer [EMAIL PROTECTED] wrote:
 One thing we could do is come up with a REALLY trivial
 API like TrLog.error(), TrLog.severe(), TrLog.warning(),
 write one version that delegates to a quality JS logging
 implementation and load that in the debug Trinidad JS,
 and have the non-debug libraries contain just:

   TrLog.error = TrLog.severe = TrLog.warning = function() {}

 We do have absolute control over what gets into non-debug
 vs. debug via the ResourceLoader implementation, so this
 sort of switching is easy.

 If we wanted to be a bit more skimpy on codesize, we could also
 store string constants on the non-debug TrLog, like:

 TrLog.E0 = Could not find element;

 ... and used as
   if (!element) { TrLog.error(E0, element); return; }

 -- Adam



 On 9/13/07, Andrew Robinson [EMAIL PROTECTED] wrote:
  I can't say as I have used either, they just came up with some google
  searching. I definitely think some research is in order and hopefully
  some opinions from the community for any that people have used. I know
  that A4J uses some of them.
 
  Perhaps the suggestion for firebug lite may be good. It could be
  injected on an as-need basis, and therefore would be faster for users
  that already have firebug.
 
  Another sickening thought is to have Trinidad with its own logging
  solution, that delegates to something like firebug lite or log4js,
  etc. The script could be loaded only when needed. This could be
  possibly flagged in the web.xml as a context param (enabled javascript
  logging). If the script is not loaded, the Trinidad's API would simply
  be a black hole.
 
  Syntax could be something like:
  Log.level(obj)
 
  In this example, Log.error('hello world); would call Log
  library.error log method('hello world');
 
  If logging was turned off (default), Log.error() would have no method
  body. This way the extra javascript would simply be a few extra empty
  functions.
 
  Just a thought.
 
  -Andrew
 
 
  On 9/13/07, Matthias Wessendorf [EMAIL PROTECTED] wrote:
   the sf.net project hasn't been touched since 17 month.
   The berlin-os is shipping a larger file.
  
   Perhaps some more testing/evaluating needs to be done.
  
   -M
  
   On 9/13/07, Matthias Wessendorf [EMAIL PROTECTED] wrote:
Hi Andrew,
   
I think enhancing the logging in Trinidad's JS is valuable. Both have
a very good license.
The question is now, which is the best of the two ?
   
Greetings,
Matthias
   
On 9/13/07, Andrew Robinson [EMAIL PROTECTED] wrote:
 I put a comment on the bug to possibly enhance Trinidad's logging to
 use log4js. There are two projects with that name, one at sourceforge
 and one at berlios. I think either may be work looking at. They should
 both work in any browser that I am aware of.

 What do you think Adam?
 -Andrew

 On 9/13/07, Bertrand, Shawn R [EMAIL PROTECTED] wrote:
 
 
 
 
  The error dialog indeed doesn't appear in Firefox, though would it 
  if
  Firebug wasn't installed?  There doesn't appear to be any sort of 
  error when
  running in Firefox – all I see in the Firebug console are POST 
  messages as
  expected.
 
 
 
  I haven't looked at the current 1.0.2 codebase, but does it contain 
  the
  change as outlined by Andrew for this?  I guess I'd like to update 
  to it if
  possible, because I can't see our users having to put up with 
  dismissing
  this error.
 
 
 
  Alternately, how might I go about finding the cause of the error 
  message in
  IE?
 
 
 
  Shawn
 
 
 
 
 
   
 
 
  From: Adam Winer [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, September 12, 2007 2:08 PM
   To: MyFaces Discussion
   Subject: Re: [Trinidad] console is undefined?
 
 
 
 
 
  This is indeed an attempt to call the firebug console (if
 
 
  it exists), and Andrew's totally right that the syntax here
 
 
  is wrong.  FWIW, this should only be called if an error
 
 
  has occurred, not in ordinary execution, so there's a more
 
 
  essential problem elsewhere.
 
 
 
 
 
  -- Adam
 
 
 
 
 
 
 
  On 9/12/07, Andrew Robinson [EMAIL PROTECTED] wrote:
 
  Yes, I get this all of the time to. I believe console is the firebug
   globally installed window variable (plug-in for firefox)
 
   I think the following code may be more IE friendly:
 
   if (window.console  window.console.error) {
   ...
   }
 
   On 9/12/07, Bertrand, Shawn R
  [EMAIL PROTECTED] wrote:
   
   
   
   
I'm getting error generated from the first line of the following 
  function
  in
Common1_0_2.js:
   
   
   
 

Problem in chained navigation via navigation-rule without redirect

2007-09-14 Thread Evgeniy Karimov
Hi, I have some strange problem.
Say, I have:
Page1: CommandButton1, action=Page2, CommandButton2, action=Page3
Page2: CommandButton1, action=Page3
Page3.

all navigation is performed without redirect.

So the problem is:
Load Page1, press button1 - appears Page2, press button1 - Page3 should 
appear, but page2 appears again.
But if I press button2 at Page1, then Page3 appears as expected.
I hava  athought that it can be somehow connected with the fact, that after 
pressing Page1's button1, URL is still Page1, so Page2's navigation rule 
doesn't work...

Is there any solution to this?

 Thanks in advance.


[Trinidad] Panelpopup Error

2007-09-14 Thread Wolfgang

Hi,

I wrote a simple panelpopup example, but I always got this error:

tr:panelPopup text=test
test
/tr:panelPopup


14.09.2007 09:16:39 
org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl
WARNUNG: Could not find renderer for CorePanelPopup[UIXFacesBeanImpl, 
id=_id57] rendererType = org.apache.myfaces.trinidad.Popup


Can anyone help?
Cheers


Re: [Trinidad] PanelPopup

2007-09-14 Thread Matthias Wessendorf
I think some nice use-cases are covered here:

http://example.irian.at/trinidad-demo-20070914/faces/components/panelPopup.jspx

Unfortunaltly there isn't a skinning documentation on this new component,
but things like the X (af|panelPopup::close-icon) are skinable.

-Matthias

On 9/14/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi,

 do anyone know a good example for the panelpopup?

 Cheers



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


Re: Problem in chained navigation via navigation-rule without redirect

2007-09-14 Thread David Delbecq
press button1 - Page3 should appear, but page2 appears again  : most
probably a validation error on page2 (put h:messages/ to get all JSF
messages). If not a validation error, you forgot to add a navigation
rule from Page2 to Page3 for result Page3.
This is not related in anyway to the presence or not of redirect/. If
you look at what you got in html source after pressing button1 on Page1,
you will see the form has a submit url pointing to page2, so it's
correctly Page2 that handle the query. The redirect has only effect on
how navigation page occurs (server side or client side).


En l'instant précis du 14/09/07 10:02, Evgeniy Karimov s'exprimait en
ces termes:
 Hi, I have some strange problem.
 Say, I have:
 Page1: CommandButton1, action=Page2, CommandButton2, action=Page3
 Page2: CommandButton1, action=Page3
 Page3.

 all navigation is performed without redirect.

 So the problem is:
 Load Page1, press button1 - appears Page2, press button1 - Page3 should 
 appear, but page2 appears again.
 But if I press button2 at Page1, then Page3 appears as expected.
 I hava  athought that it can be somehow connected with the fact, that after 
 pressing Page1's button1, URL is still Page1, so Page2's navigation rule 
 doesn't work...

 Is there any solution to this?

  Thanks in advance.
   


-- 
http://www.noooxml.org/



[Trinidad] PanelPopup

2007-09-14 Thread Wolfgang

Hi,

do anyone know a good example for the panelpopup?

Cheers


Re: [Trinidad] Panelpopup Error

2007-09-14 Thread Matthias Wessendorf
try

tr:panelPopup text=Click Here
  tr:outputText value=test /
/tr:panelPopup

otherwise the value test is rendered before the link (Click here)

works fine, for me.

But, I noticed that the popup is a bit to high in the page.

-Matthias

On 9/14/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi,

 I wrote a simple panelpopup example, but I always got this error:

 tr:panelPopup text=test
  test
  /tr:panelPopup


 14.09.2007 09:16:39
 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl
 WARNUNG: Could not find renderer for CorePanelPopup[UIXFacesBeanImpl,
 id=_id57] rendererType = org.apache.myfaces.trinidad.Popup

 Can anyone help?
 Cheers



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


[Trinidad] refreshing input fields in tr:table

2007-09-14 Thread Justinas Kurpis
Dear all,

i have tr:table and tr:selectOneChoice in it's column. When page loads
that table is filled with data. User changes values for some of comboboxes
rendered by tr:selectOneChoice. Afterwards on some tr:selectOneChoice
which is not in the table I reload tr:table's data. I do this by
setWrappedData of table's model and adding partial taget - the tr:table
itself.

Problem:
comboboxes rendered by tr:selectOneChoice in the table show old values.
Texts rendered with tr:outputText in the same tr:table change, so I am
sure that data in data model changed, and values of corresponding
comboboxes changed also.

I is well known behaviour of input's in tr:table? Hot to reset their values?

Thank You dear forum in advance.


Re: Re: Problem in chained navigation via navigation-rule withoutredirect

2007-09-14 Thread Evgeniy Karimov
Thank you very much, it was a validation error:)

 
 press button1 - Page3 should appear, but page2 appears again  : most
 probably a validation error on page2 (put h:messages/ to get all JSF
 messages). If not a validation error, you forgot to add a navigation
 rule from Page2 to Page3 for result Page3.
 This is not related in anyway to the presence or not of redirect/. If
 you look at what you got in html source after pressing button1 on Page1,
 you will see the form has a submit url pointing to page2, so it's
 correctly Page2 that handle the query. The redirect has only effect on
 how navigation page occurs (server side or client side).
 
 
 En l'instant pr#233;cis du 14/09/07 10:02, Evgeniy Karimov s'exprimait en
 ces termes:
  Hi, I have some strange problem.
  Say, I have:
  Page1: CommandButton1, action=Page2, CommandButton2, action=Page3
  Page2: CommandButton1, action=Page3
  Page3.
 
  all navigation is performed without redirect.
 
  So the problem is:
  Load Page1, press button1 - appears Page2, press button1 - Page3 should 
  appear, but page2 appears again.
  But if I press button2 at Page1, then Page3 appears as expected.
  I hava  athought that it can be somehow connected with the fact, that after 
  pressing Page1's button1, URL is still Page1, so Page2's navigation rule 
  doesn't work...
 
  Is there any solution to this?
 
   Thanks in advance.

 
 
 -- 
 http://www.noooxml.org/
 
 


Re: include rendered JSF output in JSP page

2007-09-14 Thread Alexander Lendl

Hi Volker,

thanks again for your great support!

That's exactly what I tried yesterday after reading the thread you mentioned
in your first reply. 
The problem is that facesContext.getResponseWriter() returns null in the
beforePhase method of the RENDER_RESPONSE phase. So I can't clone the writer
and set the StringWriter as new ResponseWriter.

I'll try to do that in the encodeBegin method of UIViewRoot later... 

Regards


Volker Weber-5 wrote:
 
 Hi,
 
 in beforePhase:
 
 // replace responseWriter
 StringWriter content = new StringWriter();
 ResponseWriter contentWriter = writer.cloneWithWriter(content);
 facesContext.setResponseWriter(contentWriter);
 
 and in afterPhase you can get the content out of the StringWriter.
 
 
 Regards,
 Volker
 
 
 2007/9/13, Alexander Lendl [EMAIL PROTECTED]:

 Thanks again Volker... sorry for this stupid question, but can you please
 tell me, how to get the html content as string out of the ResponseWriter?

 facesContext.getResponseWriter() gives me an HtmlResponseWriterImpl with
 a
 JspWriterImpl which includes  the desired content in a char array, but I
 can't access the JspWriterImpl.

 TIA


 Volker Weber-5 wrote:
 
  Hi,
 
  to get the rendered html you can, as described in the thread, replace
  the responsewriter
  before rendering. Than you can get the writers content after
  rendering. I think this should be possible also i  a PahseListener in
  before and after renderResponse phase.
 
  to prevent faces to do anything more with this request you can just
  call facesContext.responseComplete().
 
 
  Regards,
  Volker
 
 
 
  2007/9/13, Alexander Lendl [EMAIL PROTECTED]:
 
  Volker, thanks for your quick reply... I don't think that this thread
 can
  really help me with my problem.
 
  It's not necessary that the required functionality happens in a
  PhaseListener (could also be in a servlet, servlet filter, custom jsp
  tag,
  ...). All I need is to get the rendered html output of a jsf view and
  prevent faces from forwarding to the corresponding page (because the
  output
  should only be included in a template jsp).
 
 
 
  Volker Weber-5 wrote:
  
   Hi Alexander,
  
   not sure if this is possible in a phaseListerner, i think it sould
 be,
   but you may look at this thread for a possilbel solution:
  
  
 
 http://www.nabble.com/Change-visibility-dinamically-tf3299810.html#a9202172
  
  
   Regards,
   Volker
  
 
  --
  View this message in context:
 
 http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12653151
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12655734
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12671707
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: include rendered JSF output in JSP page

2007-09-14 Thread Alexander Lendl

Hi Simon,

thanks for the hint - sounds great. I need to check, if the httpclient opens
a separate HttpSession, because our new JSF portlets need to communicate
with the existing servlet/jsp application using the existing user sessions.   

I'll have a look at this lib a little later.

Regards,
Alex


Simon Kitching-4 wrote:
 
 Have you considered using the jakarta commons httpclient library to send a
 separate request from your test framework back to the JSF page on the same
 server (or a different one)?
 
 The HttpClient operation will then return the complete block of HTML
 rendered by that JSF page without any complex interactions with the
 current request/response objects.
 
 Regards,
 
 Simon
 
  Alexander Lendl [EMAIL PROTECTED] schrieb:
 
 Hi,
 
 I need to include the rendered html output from a myfaces jsf page in an
 old
 jsp page (not a jsf page!). Unfortunately it's not possible to use a jsf
 page at this point. It's a jsp/servlet framework application which is
 used 
 during developement to test the output of portlets in tomcat - custom jsp
 tags include the rendered portlet output into a template jsp containing
 grids (divs). 
 
 Now we want do change the portlet development to JSF (myfaces), but it's
 still required to use that test framework. For jsf portlets we will use
 the
 MyFacesGeneralPortlet.
 
 My first attempt was to use a jsp include, but it didn't work.
 
 jsp:inlcude page=jsf/test.jsf/ results in a
 java.lang.IllegalStateException: Cannot forward after response has been
 commited
 
 What I need is an include  and not a forward. Is it possible to store the
 rendered jsf ouput  in a PhaseListener (RENDER_RESPONSE phase) in the
 http
 request and then include it with a jsp custom tag in the page?
 Is this the right approach? How do I get the rendered html output (as
 String?) from the FacesContext?
 
 Thanks in advance!
 Alex
 -- 
 View this message in context:
 http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12651358
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12671849
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Tomahawk] jscookmenu missing attributes: javascriptLocation

2007-09-14 Thread Renzo Tomaselli
Hi, until now I used to specify jscookmenu locations by means of a 
f:attribute trick, and it worked well.
After some browsing, I noticed that there are a number of references to 
the usage of direct attributes such as:


javascriptLocation=js/jscookmenu

However on v. 1.1.5 I get Property 'javascriptLocation' is not on type 

And even while browsing 1.1.6 sources is seems that such attributes are 
not declared.

I'using facelets, in case that matters.
How about such attributes ?
Thanks -- Renzo



[Trinidad] tr:inputDate problem

2007-09-14 Thread Stephen Booth
Hello,

I'm trying to use the Trinidad inputDate component and I'm getting an
odd problem with the date picker.

Whenever I select a date from it, it returns one day earlier than that
chosen. This normally happens every time I use it but occasionally only
happens on the second and subsequent picks (i.e. the first returns the
correct result).

I'm relatively new to Trinidad so I'm just wondering whether anybody has
come across this issue before?

For info, I'm using Trinidad 1.0.2 with MyFaces 1.1.5 and Facelets
1.1.12.

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.


Tomahawk JSCookMenu with Myfaces 1.2

2007-09-14 Thread Sebastian Wurst

Hi,

has anybody yet tested the compatibility of the latest Tomahawk release 
with Myfaces 1.2?


I have a specific problem with the jscookmenu; it gets rendered but the 
links won't work. When I change the myfaces jar files back to 1.5 it 
works as usual. I also tried the latest snapshots of tomahawk as well 
als myfaces but with no success.


So if anybody knows a solution to this, please let me know.

Thanks,
Sebastian




[Trinidad] Jetty-Error

2007-09-14 Thread Wolfgang

Hi,

I used the trinidad version 1.0.2 and it works more or less fine.
But then I decided to update trinidad to the current version, which is
1.2.2 and also JSF to 1.2 and MyFaces to 1.2. I have updated JSF and MyFaces
because after updating trinidad I got lot's of errors.
I have found a thread that exactly matches my error and there is written
one should use the newest version of JSF and MyFaces.
But now I got a new error, which I can't get rid of. So I updated also jetty
to the newest Version of 6.1.5 but I got excatly the same Error.

Furthermore I checked that I have no duplicated Libraries, because
in one thread, having a similar error,  was written to do this.

So now I have no more ideas, how to get rid of this error.
Can anyone give me a hint?

I added my Pom.xml and my web.xml, but I'm pretty sure having the right
libraries and everything i need.

Cheers Wolfgang!



* JETTY ERROR *

failed 
[EMAIL PROTECTED]/demo-webapp,/Users/Wolfgang/Documents/Studium/2. 
Praxissemester/workspace/demo-webapp/src/main/webapp}
java.lang.LinkageError: Class javax/el/ExpressionFactory violates loader 
constraints

   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

  .
  .
  .

2007-09-14 10:49:27.417::WARN:  failed [EMAIL PROTECTED]
java.lang.LinkageError: Class javax/el/ExpressionFactory violates loader 
constraints

   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  .
  .
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
2007-09-14 10:49:27.438::INFO:  Started [EMAIL PROTECTED]:9898
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.


** POM.XML **

project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;


   parent
   groupIduk.ac.ebi.faces/groupId
   artifactIdebifaces-master/artifactId
   version1.2-SNAPSHOT/version
   /parent

   modelVersion4.0.0/modelVersion
   artifactIddemo-webapp/artifactId
   packagingwar/packaging
   version1.2-SNAPSHOT/version
   nameEBI Faces :: Demo Webapp/name

   properties
   jetty.port9898/jetty.port
   /properties

   build
   finalName${artifactId}/finalName
   plugins
   plugin
   groupIdorg.mortbay.jetty/groupId
   artifactIdmaven-jetty-plugin/artifactId
   version6.1.5/version
   configuration
   connectors
   connector 
implementation=org.mortbay.jetty.nio.SelectChannelConnector

   port${jetty.port}/port
   /connector
   /connectors
   scanIntervalSeconds10/scanIntervalSeconds
   contextPath${build.finalName}/contextPath
   /configuration
   /plugin
   /plugins
   /build

   repositories
   repository
   idmaven repository/id
   nameMaven central repository/name
   
urlhttps://maven-repository.dev.java.net/nonav/repository/url

   layoutlegacy/layout
   releases
   enabledtrue/enabled
   /releases
   snapshots
   enabledtrue/enabled
   /snapshots
   /repository
   !-- EBI repositories --
   repository
   idebi-repo/id
   nameThe EBI internal repository/name
   urlhttp://www.ebi.ac.uk/~maven/m2repo/url
   releases
   enabledtrue/enabled
   /releases
   snapshots
   enabledfalse/enabled
   /snapshots
   /repository
   repository
   idebi-repo-snapshots/id
   nameThe EBI internal repository/name
   urlhttp://www.ebi.ac.uk/~maven/m2repo_snapshots/url
   releases
   enabledfalse/enabled
   /releases
   snapshots
   enabledtrue/enabled
   /snapshots
   /repository
   /repositories

   dependencies

   dependency
   groupIduk.ac.ebi.enfin.core.web.services.utils/groupId
   artifactIdenfin-webservice-utils/artifactId
   !--version1.1.2/version--
   versionSNAPSHOT/version
   /dependency

   dependency
   groupIduk.ac.ebi.enfin.core.clients/groupId
   artifactIdenvision2-client1/artifactId
   versionSNAPSHOT/version
   /dependency

   dependency
   groupIdnet.java.dev.ajax4jsf/groupId
   artifactIdajax4jsf/artifactId
   version1.0.6/version
   /dependency

   dependency
   groupId${groupId}/groupId
   artifactIdebifaces-core/artifactId
   version${version}/version
   

Re: [Trinidad] Jetty-Error

2007-09-14 Thread Matthias Wessendorf
one more, not related.

no need for this:

   dependency
   groupIdorg.apache.myfaces.trinidad/groupId
   artifactIdtrinidad-build/artifactId
   version1.2.2/version
   /dependency

here is a Trinidad 1.2.x + Jetty POM:
http://facesgoodies.googlecode.com/svn/trunk/pom.xml

Just remove 'Shale and add yours.

-Matthias

On 9/14/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi,

 I used the trinidad version 1.0.2 and it works more or less fine.
 But then I decided to update trinidad to the current version, which is
 1.2.2 and also JSF to 1.2 and MyFaces to 1.2. I have updated JSF and MyFaces
 because after updating trinidad I got lot's of errors.
 I have found a thread that exactly matches my error and there is written
 one should use the newest version of JSF and MyFaces.
 But now I got a new error, which I can't get rid of. So I updated also jetty
 to the newest Version of 6.1.5 but I got excatly the same Error.

 Furthermore I checked that I have no duplicated Libraries, because
 in one thread, having a similar error,  was written to do this.

 So now I have no more ideas, how to get rid of this error.
 Can anyone give me a hint?

 I added my Pom.xml and my web.xml, but I'm pretty sure having the right
 libraries and everything i need.

 Cheers Wolfgang!



 * JETTY ERROR *

  failed
 [EMAIL PROTECTED]/demo-webapp,/Users/Wolfgang/Documents/Studium/2.
 Praxissemester/workspace/demo-webapp/src/main/webapp}
 java.lang.LinkageError: Class javax/el/ExpressionFactory violates loader
 constraints
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

.
.
.

 2007-09-14 10:49:27.417::WARN:  failed [EMAIL PROTECTED]
 java.lang.LinkageError: Class javax/el/ExpressionFactory violates loader
 constraints
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
.
.
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 2007-09-14 10:49:27.438::INFO:  Started [EMAIL PROTECTED]:9898
 [INFO] Started Jetty Server
 [INFO] Starting scanner at interval of 10 seconds.


 ** POM.XML **

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 parent
 groupIduk.ac.ebi.faces/groupId
 artifactIdebifaces-master/artifactId
 version1.2-SNAPSHOT/version
 /parent

 modelVersion4.0.0/modelVersion
 artifactIddemo-webapp/artifactId
 packagingwar/packaging
 version1.2-SNAPSHOT/version
 nameEBI Faces :: Demo Webapp/name

 properties
 jetty.port9898/jetty.port
 /properties

 build
 finalName${artifactId}/finalName
 plugins
 plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty-plugin/artifactId
 version6.1.5/version
 configuration
 connectors
 connector
 implementation=org.mortbay.jetty.nio.SelectChannelConnector
 port${jetty.port}/port
 /connector
 /connectors
 scanIntervalSeconds10/scanIntervalSeconds
 contextPath${build.finalName}/contextPath
 /configuration
 /plugin
 /plugins
 /build

 repositories
 repository
 idmaven repository/id
 nameMaven central repository/name

 urlhttps://maven-repository.dev.java.net/nonav/repository/url
 layoutlegacy/layout
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 /repository
 !-- EBI repositories --
 repository
 idebi-repo/id
 nameThe EBI internal repository/name
 urlhttp://www.ebi.ac.uk/~maven/m2repo/url
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledfalse/enabled
 /snapshots
 /repository
 repository
 idebi-repo-snapshots/id
 nameThe EBI internal repository/name
 urlhttp://www.ebi.ac.uk/~maven/m2repo_snapshots/url
 releases
 enabledfalse/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 /repository
 /repositories

 dependencies

 dependency
 groupIduk.ac.ebi.enfin.core.web.services.utils/groupId
 

RE: [Trinidad] tr:inputDate problem

2007-09-14 Thread sandeep gururaj
Not sure why, I face the same problem if I use IE7. When on IE6, it
works properly.

 

~Sandeep

 

 

-Original Message-
From: Stephen Booth [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 3:34 PM
To: users@myfaces.apache.org
Subject: [Trinidad] tr:inputDate problem

 

Hello,

 

I'm trying to use the Trinidad inputDate component and I'm getting an

odd problem with the date picker.

 

Whenever I select a date from it, it returns one day earlier than that

chosen. This normally happens every time I use it but occasionally only

happens on the second and subsequent picks (i.e. the first returns the

correct result).

 

I'm relatively new to Trinidad so I'm just wondering whether anybody has

come across this issue before?

 

For info, I'm using Trinidad 1.0.2 with MyFaces 1.1.5 and Facelets

1.1.12.

 

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.



Re: [Trinidad] Jetty-Error

2007-09-14 Thread Matthias Wessendorf
Hallo Wolfgang,

are you on Java6 ?

http://jira.codehaus.org/browse/JETTY-420

-Matthias

On 9/14/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi,

 I used the trinidad version 1.0.2 and it works more or less fine.
 But then I decided to update trinidad to the current version, which is
 1.2.2 and also JSF to 1.2 and MyFaces to 1.2. I have updated JSF and MyFaces
 because after updating trinidad I got lot's of errors.
 I have found a thread that exactly matches my error and there is written
 one should use the newest version of JSF and MyFaces.
 But now I got a new error, which I can't get rid of. So I updated also jetty
 to the newest Version of 6.1.5 but I got excatly the same Error.

 Furthermore I checked that I have no duplicated Libraries, because
 in one thread, having a similar error,  was written to do this.

 So now I have no more ideas, how to get rid of this error.
 Can anyone give me a hint?

 I added my Pom.xml and my web.xml, but I'm pretty sure having the right
 libraries and everything i need.

 Cheers Wolfgang!



 * JETTY ERROR *

  failed
 [EMAIL PROTECTED]/demo-webapp,/Users/Wolfgang/Documents/Studium/2.
 Praxissemester/workspace/demo-webapp/src/main/webapp}
 java.lang.LinkageError: Class javax/el/ExpressionFactory violates loader
 constraints
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

.
.
.

 2007-09-14 10:49:27.417::WARN:  failed [EMAIL PROTECTED]
 java.lang.LinkageError: Class javax/el/ExpressionFactory violates loader
 constraints
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
.
.
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 2007-09-14 10:49:27.438::INFO:  Started [EMAIL PROTECTED]:9898
 [INFO] Started Jetty Server
 [INFO] Starting scanner at interval of 10 seconds.


 ** POM.XML **

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 parent
 groupIduk.ac.ebi.faces/groupId
 artifactIdebifaces-master/artifactId
 version1.2-SNAPSHOT/version
 /parent

 modelVersion4.0.0/modelVersion
 artifactIddemo-webapp/artifactId
 packagingwar/packaging
 version1.2-SNAPSHOT/version
 nameEBI Faces :: Demo Webapp/name

 properties
 jetty.port9898/jetty.port
 /properties

 build
 finalName${artifactId}/finalName
 plugins
 plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty-plugin/artifactId
 version6.1.5/version
 configuration
 connectors
 connector
 implementation=org.mortbay.jetty.nio.SelectChannelConnector
 port${jetty.port}/port
 /connector
 /connectors
 scanIntervalSeconds10/scanIntervalSeconds
 contextPath${build.finalName}/contextPath
 /configuration
 /plugin
 /plugins
 /build

 repositories
 repository
 idmaven repository/id
 nameMaven central repository/name

 urlhttps://maven-repository.dev.java.net/nonav/repository/url
 layoutlegacy/layout
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 /repository
 !-- EBI repositories --
 repository
 idebi-repo/id
 nameThe EBI internal repository/name
 urlhttp://www.ebi.ac.uk/~maven/m2repo/url
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledfalse/enabled
 /snapshots
 /repository
 repository
 idebi-repo-snapshots/id
 nameThe EBI internal repository/name
 urlhttp://www.ebi.ac.uk/~maven/m2repo_snapshots/url
 releases
 enabledfalse/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 /repository
 /repositories

 dependencies

 dependency
 groupIduk.ac.ebi.enfin.core.web.services.utils/groupId
 artifactIdenfin-webservice-utils/artifactId
 !--version1.1.2/version--
 versionSNAPSHOT/version
 /dependency

 dependency
 groupIduk.ac.ebi.enfin.core.clients/groupId
 artifactIdenvision2-client1/artifactId
 

Re: [Trinidad] Jetty-Error

2007-09-14 Thread Wolfgang

Hi Matthias,

I have added my stuff to your pom.xml, but I got still the same Error.
I use Java 5.

here is my new pom.xml, but I guess it should be fine:

*** POM.XML**
?xml version=1.0 encoding=UTF-8?

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;



   parent
   groupIduk.ac.ebi.faces/groupId
   artifactIdebifaces-master/artifactId
   version1.2-SNAPSHOT/version
   /parent

   modelVersion4.0.0/modelVersion
   artifactIddemo-webapp/artifactId
   packagingwar/packaging
   version1.2-SNAPSHOT/version
   nameEBI Faces :: Demo Webapp/name

   build
   pluginManagement
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   /configuration
   /plugin
   /plugins
   /pluginManagement
   finalNameebifaces-master/finalName
   plugins
   plugin
   groupIdorg.mortbay.jetty/groupId
   artifactIdmaven-jetty-plugin/artifactId
   version6.1.2rc0/version
   configuration
   connectors
   connector 
implementation=org.mortbay.jetty.nio.SelectChannelConnector

   port9898/port
   maxIdleTime6/maxIdleTime
   /connector
   /connectors
   scanIntervalSeconds10/scanIntervalSeconds
   contextPath${build.finalName}/contextPath
   /configuration
   /plugin
   /plugins
   /build

   repositories

   !-- EBI repositories --
   repository
   idebi-repo/id
   nameThe EBI internal repository/name
   urlhttp://www.ebi.ac.uk/~maven/m2repo/url
   releases
   enabledtrue/enabled
   /releases
   snapshots
   enabledfalse/enabled
   /snapshots
   /repository
   repository
   idebi-repo-snapshots/id
   nameThe EBI internal repository/name
   urlhttp://www.ebi.ac.uk/~maven/m2repo_snapshots/url
   releases
   enabledfalse/enabled
   /releases
   snapshots
   enabledtrue/enabled
   /snapshots
   /repository

   repository
   snapshots
   enabledfalse/enabled
   /snapshots
   idjava-net/id
   namejava.net repository/name
   !-- NOTE: this URL must be HTTPS.  However, unfortunately this
doesn't work behind a firewall.  See:
  http://jira.codehaus.org/browse/WAGONHTTP-6
... for the source of that problem.  Users behind firewalls
will have to manually download the files from this 
repository

and transfer them to their local repository.
   --
   
urlhttps://maven-repository.dev.java.net/nonav/repository//url

   layoutlegacy/layout
   /repository

   repository
   releases
   enabledtrue/enabled
   /releases
   snapshots
   enabledtrue/enabled
   /snapshots
   idapache-maven-snapshots/id
   urlhttp://people.apache.org/repo/m2-snapshot-repository/url
   /repository
   /repositories


   pluginRepositories
   !-- Repository to get the jetty plugin --
   pluginRepository
   idmortbay-repo/id
   namemortbay-repo/name
   urlhttp://www.mortbay.org/maven2/snapshot/url
   /pluginRepository
   /pluginRepositories

   !-- Project dependencies --
   dependencies

   !-- EBI dependencies --
   dependency
   groupIduk.ac.ebi.enfin.core.web.services.utils/groupId
   artifactIdenfin-webservice-utils/artifactId
   !--version1.1.2/version--
   versionSNAPSHOT/version
   /dependency

   dependency
   groupIduk.ac.ebi.enfin.core.clients/groupId
   artifactIdenvision2-client1/artifactId
   versionSNAPSHOT/version
   /dependency

   dependency
   groupIdnet.java.dev.ajax4jsf/groupId
   artifactIdajax4jsf/artifactId
   version1.0.6/version
   /dependency

   dependency
   groupId${groupId}/groupId
   artifactIdebifaces-core/artifactId
   version${version}/version
   /dependency

   dependency
   groupIduk.ac.ebi.faces.renderkit/groupId
   artifactIdebi-basic/artifactId
   version1.0/version
   /dependency
   dependency
   groupIduk.ac.ebi.faces.ext/groupId
   artifactIdtomahawk-facelets/artifactId
   version1.0/version
   

RE: [Trinidad] refreshing input fields in tr:table

2007-09-14 Thread Justinas Kurpis
And the answer is:

((UIXTable) myCoreTable).resetStampState();

 -Original Message-
 From: Justinas Kurpis [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 14, 2007 11:48 AM
 To: users@myfaces.apache.org
 Subject: [Trinidad] refreshing input fields in tr:table

 Dear all,

 i have tr:table and tr:selectOneChoice in it's column. When
 page loads that table is filled with data. User changes
 values for some of comboboxes rendered by tr:selectOneChoice.
 Afterwards on some tr:selectOneChoice which is not in the
 table I reload tr:table's data. I do this by setWrappedData
 of table's model and adding partial taget - the tr:table itself.

 Problem:
 comboboxes rendered by tr:selectOneChoice in the table show
 old values.
 Texts rendered with tr:outputText in the same tr:table
 change, so I am sure that data in data model changed, and
 values of corresponding comboboxes changed also.

 I is well known behaviour of input's in tr:table? Hot to
 reset their values?

 Thank You dear forum in advance.


Re: [Trinidad] Jetty-Error

2007-09-14 Thread Matthias Wessendorf
hrm,

not sure.

standalone (from facesgoodies) it works ?

-Matthias

On 9/14/07, Wolfgang [EMAIL PROTECTED] wrote:
 Hi Matthias,

 I have added my stuff to your pom.xml, but I got still the same Error.
 I use Java 5.

 here is my new pom.xml, but I guess it should be fine:

 *** POM.XML**
 ?xml version=1.0 encoding=UTF-8?

 project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;


 parent
 groupIduk.ac.ebi.faces/groupId
 artifactIdebifaces-master/artifactId
 version1.2-SNAPSHOT/version
 /parent

 modelVersion4.0.0/modelVersion
 artifactIddemo-webapp/artifactId
 packagingwar/packaging
 version1.2-SNAPSHOT/version
 nameEBI Faces :: Demo Webapp/name

 build
 pluginManagement
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
 source1.5/source
 target1.5/target
 /configuration
 /plugin
 /plugins
 /pluginManagement
 finalNameebifaces-master/finalName
 plugins
 plugin
 groupIdorg.mortbay.jetty/groupId
 artifactIdmaven-jetty-plugin/artifactId
 version6.1.2rc0/version
 configuration
 connectors
 connector
 implementation=org.mortbay.jetty.nio.SelectChannelConnector
 port9898/port
 maxIdleTime6/maxIdleTime
 /connector
 /connectors
 scanIntervalSeconds10/scanIntervalSeconds
 contextPath${build.finalName}/contextPath
 /configuration
 /plugin
 /plugins
 /build

 repositories

 !-- EBI repositories --
 repository
 idebi-repo/id
 nameThe EBI internal repository/name
 urlhttp://www.ebi.ac.uk/~maven/m2repo/url
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledfalse/enabled
 /snapshots
 /repository
 repository
 idebi-repo-snapshots/id
 nameThe EBI internal repository/name
 urlhttp://www.ebi.ac.uk/~maven/m2repo_snapshots/url
 releases
 enabledfalse/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 /repository

 repository
 snapshots
 enabledfalse/enabled
 /snapshots
 idjava-net/id
 namejava.net repository/name
 !-- NOTE: this URL must be HTTPS.  However, unfortunately this
  doesn't work behind a firewall.  See:
http://jira.codehaus.org/browse/WAGONHTTP-6
  ... for the source of that problem.  Users behind firewalls
  will have to manually download the files from this
 repository
  and transfer them to their local repository.
 --

 urlhttps://maven-repository.dev.java.net/nonav/repository//url
 layoutlegacy/layout
 /repository

 repository
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 idapache-maven-snapshots/id
 urlhttp://people.apache.org/repo/m2-snapshot-repository/url
 /repository
 /repositories


 pluginRepositories
 !-- Repository to get the jetty plugin --
 pluginRepository
 idmortbay-repo/id
 namemortbay-repo/name
 urlhttp://www.mortbay.org/maven2/snapshot/url
 /pluginRepository
 /pluginRepositories

 !-- Project dependencies --
 dependencies

 !-- EBI dependencies --
 dependency
 groupIduk.ac.ebi.enfin.core.web.services.utils/groupId
 artifactIdenfin-webservice-utils/artifactId
 !--version1.1.2/version--
 versionSNAPSHOT/version
 /dependency

 dependency
 groupIduk.ac.ebi.enfin.core.clients/groupId
 artifactIdenvision2-client1/artifactId
 versionSNAPSHOT/version
 /dependency

 dependency
 groupIdnet.java.dev.ajax4jsf/groupId
 artifactIdajax4jsf/artifactId
 version1.0.6/version
 /dependency

 dependency
 groupId${groupId}/groupId
 artifactIdebifaces-core/artifactId
 

[TOBAGO] Custom Theme - StringIndexOutOfBoundsException

2007-09-14 Thread news . kj
Hello,

i try to create my own custom theme. When i use the theme example project in
my tobago application i get this error:


main WARN  - org.apache.myfaces.tobago.context.ResourceLocator:141 - Unknown
protocol
java.lang.StringIndexOutOfBoundsException: String index out of range: -6
at java.lang.String.substring(Unknown Source)
at org.apache.myfaces.tobago.context.ResourceLocator.addResources(
ResourceLocator.java:163)


I drop the theme example in my Source Directory, i use tomcat 6.0.14:

src\org\apache\myfaces\tobago\renderkit\html\example...
src\META-INF\tobago-theme.xml

Can i use a custom theme in developing mode or its necessary to build a jar
file?
Thanks for helping me, kai.


---


main INFO  - org.apache.myfaces.tobago.webapp.TobagoServletContextListener:40
- *** contextInitialized ***
main INFO  - org.apache.myfaces.tobago.config.TobagoConfig:154 - adding
resourceDir = 'tobago-resource'
main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/wcprops'

main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/props'

main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/text-base'

main ERROR - org.apache.myfaces.tobago.context.ResourceLocator:79 -
ResourcePath empty! Please check the tobago-config.xml file!
path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/prop-base'

main INFO  - org.apache.myfaces.tobago.context.ResourceLocator:123 - Loading
tobago-theme.xml
main INFO  - org.apache.myfaces.tobago.context.ThemeParser:77 - Found theme:
'example'
main WARN  - org.apache.myfaces.tobago.context.ResourceLocator :141 -
Unknown protocol
'file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/TobagoTest/WEB-INF/classes/META-INF/tobago-
theme.xml'
main INFO  - org.apache.myfaces.tobago.context.ResourceLocator :162 -
themeUrl =
'file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/TobagoTest/WEB-INF/classes/META-INF/tobago-
theme.xml'
main FATAL - org.apache.myfaces.tobago.webapp.TobagoServletContextListener:71
- Error while deploy process. Tobago can't be initialized! Application
will not run!

java.lang.StringIndexOutOfBoundsException: String index out of range: -6
at java.lang.String.substring(Unknown Source)
at org.apache.myfaces.tobago.context.ResourceLocator.addResources(
ResourceLocator.java:163)
at
org.apache.myfaces.tobago.context.ResourceLocator.locateResourcesFromClasspath
(ResourceLocator.java:142)
at org.apache.myfaces.tobago.context.ResourceLocator.locate(
ResourceLocator.java:63)
at org.apache.myfaces.tobago.context.ResourceManagerFactory.init(
ResourceManagerFactory.java:58)
at
org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(
TobagoServletContextListener.java:59)
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3830)


Re: [TOBAGO] Custom Theme - StringIndexOutOfBoundsException

2007-09-14 Thread Volker Weber
Hi,

you do not need a jar, but than you must create a tobago-resource
directory in your webapps dir and configure this directory in the
tobago-config.xml.

eg.: create a directory tobago-app in your webapps directory and put
this line
   resource-dirtobago-app/resource-dir
in your tobago-config.xml just after the theme-config section.

in this directory you can put the files starting with the html directory.


Regards,
Volker


2007/9/14, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 Hello,

 i try to create my own custom theme. When i use the theme example project in
 my tobago application i get this error:


 main WARN  -
 org.apache.myfaces.tobago.context.ResourceLocator:141 -
 Unknown protocol
  java.lang.StringIndexOutOfBoundsException: String index
 out of range: -6
  at java.lang.String.substring(Unknown Source)
  at
 org.apache.myfaces.tobago.context.ResourceLocator.addResources(ResourceLocator.java:163)


 I drop the theme example in my Source Directory, i use tomcat 6.0.14:

 src\org\apache\myfaces\tobago\renderkit\html\example...
 src\META-INF\tobago-theme.xml

 Can i use a custom theme in developing mode or its necessary to build a jar
 file?
 Thanks for helping me, kai.


 ---

 main INFO  -
 org.apache.myfaces.tobago.webapp.TobagoServletContextListener:40
 - *** contextInitialized ***
 main INFO  -
 org.apache.myfaces.tobago.config.TobagoConfig:154 - adding
 resourceDir = 'tobago-resource'
 main ERROR -
 org.apache.myfaces.tobago.context.ResourceLocator:79 -
 ResourcePath empty! Please check the tobago-config.xml file!
 path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/wcprops'
 main ERROR -
 org.apache.myfaces.tobago.context.ResourceLocator:79 -
 ResourcePath empty! Please check the tobago-config.xml file!
 path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/props'
 main ERROR -
 org.apache.myfaces.tobago.context.ResourceLocator:79 -
 ResourcePath empty! Please check the tobago-config.xml file!
 path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/text-base'
 main ERROR -
 org.apache.myfaces.tobago.context.ResourceLocator:79 -
 ResourcePath empty! Please check the tobago-config.xml file!
 path='/org/apache/myfaces/tobago/renderkit/html/caxton/standard/style/.svn/tmp/prop-base'
 main INFO  -
 org.apache.myfaces.tobago.context.ResourceLocator:123 -
 Loading tobago-theme.xml
 main INFO  -
 org.apache.myfaces.tobago.context.ThemeParser:77 - Found
 theme: 'example'
 main WARN  -
 org.apache.myfaces.tobago.context.ResourceLocator :141 -
 Unknown protocol
 'file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/TobagoTest/WEB-INF/classes/META-INF/tobago-theme.xml'
 main INFO  -
 org.apache.myfaces.tobago.context.ResourceLocator :162 -
 themeUrl =
 'file:/C:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/TobagoTest/WEB-INF/classes/META-INF/tobago-theme.xml'
 main FATAL -
 org.apache.myfaces.tobago.webapp.TobagoServletContextListener
 :71 - Error while deploy process. Tobago can't be initialized! Application
 will not run!

 java.lang.StringIndexOutOfBoundsException: String index out
 of range: -6
 at java.lang.String.substring(Unknown Source)
 at
 org.apache.myfaces.tobago.context.ResourceLocator.addResources(ResourceLocator.java:163)
 at
 org.apache.myfaces.tobago.context.ResourceLocator.locateResourcesFromClasspath(ResourceLocator.java:142)
 at
 org.apache.myfaces.tobago.context.ResourceLocator.locate(ResourceLocator.java:63)
 at
 org.apache.myfaces.tobago.context.ResourceManagerFactory.init(ResourceManagerFactory.java:58)
 at
 org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized
 (TobagoServletContextListener.java:59)
 at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)


dynamic table

2007-09-14 Thread Bernd Hauser1


Hello everybody,

I've got a little question while developing a GUI. Is it possible to center
the whole page in the browser to the middle? Furthermore the user should be
able to see the page at its maximum height based on his own resolution.
For example the page has a fixed wide of 500px and this one should be in
the middle of the window. But the height should be always the maximum
height available in the browser window, based on the resolution.
I am working with jsp, java, css and tobago.
Is there any possiblity to realize this idea?

Thanks a lot!
   
 Mit freundlichen Grüßen / 
 with best regards 
   
 Bernd HauserIBM Germany[EMAIL PROTECTED]
 BA Student  Location 55131-84  om 
phone 0176 -   
 Hechtsheimer   21817118   
 Straße 2
 55131 Mainz   
   
 visit HR Germany intranet 
   
 IBM Deutschland GmbH  
 Vorsitzender des  
 Aufsichtsrats: Hans Ulrich
 Maerki
 Geschäftsführung: Martin  
 Jetter (Vorsitzender),
 Rudolf Bauer, Christian   
 Diedrich, Christoph   
 Grandpierre, Matthias 
 Hartmann, Thomas Fell,
 Michael Diemer
 Sitz der Gesellschaft:
 Stuttgart 
 Registergericht:  
 Amtsgericht Stuttgart, HRB
 14562 
 WEEE-Reg.-Nr. DE 99369940 
   
 Aktueller Praxiseinsatz:  
 Global Business Services  
 Betreuer: Johannes Schütt   
 Hechtsheimer Straße 2   
 55131 Mainz   
 Gebäudeschlüssel: MAINZ   
 55131-12  
   





RE: [Trinidad] tr:inputDate problem

2007-09-14 Thread Simon Kitching
Are you sure the problem isn't this one?
  http://wiki.apache.org/myfaces/FAQ#Date


 sandeep gururaj [EMAIL PROTECTED] schrieb:
 Not sure why, I face the same problem if I use IE7. When on IE6, it
 works properly.
 
  
 
 ~Sandeep
 
  
 
  
 
 -Original Message-
 From: Stephen Booth [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 14, 2007 3:34 PM
 To: users@myfaces.apache.org
 Subject: [Trinidad] tr:inputDate problem
 
  
 
 Hello,
 
  
 
 I'm trying to use the Trinidad inputDate component and I'm getting an
 
 odd problem with the date picker.
 
  
 
 Whenever I select a date from it, it returns one day earlier than that
 
 chosen. This normally happens every time I use it but occasionally only
 
 happens on the second and subsequent picks (i.e. the first returns the
 
 correct result).
 
  
 
 I'm relatively new to Trinidad so I'm just wondering whether anybody has
 
 come across this issue before?
 
  
 
 For info, I'm using Trinidad 1.0.2 with MyFaces 1.1.5 and Facelets
 
 1.1.12.


Re: MyFaces 1.2.0 on Resin 3.1.2

2007-09-14 Thread mraible

I don't think anyone is compatible with JSP 2.5 are they? ;-)

Matt


Boris Kovalenko wrote:
 
 Resin 3.1 is development release and not fully comply to JSP 2.5 for the 
 time present.
 I'm getting the following error when trying to run MyFaces 1.2.0 on Resin
 3.1.2. Any ideas?

 @400046e9bb65051988cc [17:36:10.302] Loading .tld files from global
 classpath
 @400046e9bb670c2104c4 [17:36:12.924]
 com.caucho.xml.XmlParseException:
 jar:file:/opt/j2ee/domains/raibledesigns.com/demo/resin-3.1.2/webapps/appfuse-light-jsf/WEB-INF/lib/myfaces-impl-1.2.0.jar!/META-INF/myfaces_core.tld:28:
 jsp-version is an unexpected tag (parent taglib starts at 23).
 @400046e9bb670c21184c [17:36:12.924]
 @400046e9bb670c211c34 [17:36:12.924] 26: /description
 @400046e9bb670c212404 [17:36:12.924] 27:
 tlib-version1.2/tlib-version
 @400046e9bb670c212bd4 [17:36:12.924] 28:
 jsp-version2.1/jsp-version
 @400046e9bb670c2221ec [17:36:12.924] 29: short-namef/short-name
 @400046e9bb670c2225d4 [17:36:12.924] 30:
 urihttp://java.sun.com/jsf/core/uri
 @400046e9bb670c222da4 [17:36:12.924]
 @400046e9bb670c223574 [17:36:12.924] taglib syntax: (@version 
 @xsi:schemaLocation?
 @400046e9bb670c22395c [17:36:12.924]  (description*,
 display-name?, icon?)
 @400046e9bb670c22412c [17:36:12.924]  tlib-version
 @400046e9bb670c225c84 [17:36:12.924]  short-name?
 @400046e9bb670c226454 [17:36:12.924]  uri?
 @400046e9bb670c22683c [17:36:12.924]  validator?
 @400046e9bb670c22700c [17:36:12.924]  listener*
 @400046e9bb670c2273f4 [17:36:12.924]  tag*
 @400046e9bb670c227bc4 [17:36:12.924]  tag-file*
 @400046e9bb670c227fac [17:36:12.924]  function*
 @400046e9bb670c22aaa4 [17:36:12.924]  taglib-extension*)

 Thanks,

 Matt
   
 With respect,
 Boris
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MyFaces-1.2.0-on-Resin-3.1.2-tf4438989.html#a12674986
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[tobago] layout of tc:selectManyCheckbox

2007-09-14 Thread Zied Hamdi
Hi all,

I'm encoutring a lyout problem, maybe this will sound like a feture request:
I'm attemping to layout a list of checkboxes belonging to the same value.
here's my code:


tc:selectManyCheckbox value=

  f:facet name=layout

tc:gridLayout columns=*;*/

  /f:facet

  tc:selectItem itemLabel=Lundi/

  tc:selectItem itemLabel=Mardi/

  tc:selectItem itemLabel=Mercredi/

  tc:selectItem itemLabel=Jeudi/

  tc:selectItem itemLabel=Vendredi/

  tc:selectItem itemLabel=Samedi/

  tc:selectItem itemLabel=Dimanche/

/tc:selectManyCheckbox

The set of tc:selectItem will be replaced by one unique tc:selectItems. The
problem is tha the facet doesn't have any effect on the layout...

Regards,
Zied

-- 
Zied Hamdi
zatreex.sourceforge.net


Re: include rendered JSF output in JSP page

2007-09-14 Thread Alexander Lendl

me again :)

as the replacement of the ResponseWriter in the beforePhase method does not
work as expected (or did I do something wrong?), I need another place to
implement it.
Is it possible at all to use a custom UIViewRoot and override the
encodeBegin method there? If yes, how do I declare the new component in
faces-config correctly? 


Volker Weber-5 wrote:
 
 Hi,
 
 in beforePhase:
 
 // replace responseWriter
 StringWriter content = new StringWriter();
 ResponseWriter contentWriter = writer.cloneWithWriter(content);
 facesContext.setResponseWriter(contentWriter);
 
 and in afterPhase you can get the content out of the StringWriter.
 
 
 Regards,
 Volker
 
 
 2007/9/13, Alexander Lendl [EMAIL PROTECTED]:

 Thanks again Volker... sorry for this stupid question, but can you please
 tell me, how to get the html content as string out of the ResponseWriter?

 facesContext.getResponseWriter() gives me an HtmlResponseWriterImpl with
 a
 JspWriterImpl which includes  the desired content in a char array, but I
 can't access the JspWriterImpl.

 TIA


 Volker Weber-5 wrote:
 
  Hi,
 
  to get the rendered html you can, as described in the thread, replace
  the responsewriter
  before rendering. Than you can get the writers content after
  rendering. I think this should be possible also i  a PahseListener in
  before and after renderResponse phase.
 
  to prevent faces to do anything more with this request you can just
  call facesContext.responseComplete().
 
 
  Regards,
  Volker
 
 
 
  2007/9/13, Alexander Lendl [EMAIL PROTECTED]:
 
  Volker, thanks for your quick reply... I don't think that this thread
 can
  really help me with my problem.
 
  It's not necessary that the required functionality happens in a
  PhaseListener (could also be in a servlet, servlet filter, custom jsp
  tag,
  ...). All I need is to get the rendered html output of a jsf view and
  prevent faces from forwarding to the corresponding page (because the
  output
  should only be included in a template jsp).
 
 
 
  Volker Weber-5 wrote:
  
   Hi Alexander,
  
   not sure if this is possible in a phaseListerner, i think it sould
 be,
   but you may look at this thread for a possilbel solution:
  
  
 
 http://www.nabble.com/Change-visibility-dinamically-tf3299810.html#a9202172
  
  
   Regards,
   Volker
  
 
  --
  View this message in context:
 
 http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12653151
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12655734
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/include-rendered-JSF-output-in-JSP-page-tf4434536.html#a12675631
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: [Trinidad] tr:table PPR failing

2007-09-14 Thread Timothy M. Braun
So I did a little more investigating and something really interesting is
going on.  I set a breakpoint in PPRResponseWriter.endDocument().  This
is where the /content element get appended to the response.  If I look
at the output buffer at this stage, I can see there is a lot of
information with seems to be missing from the response the browser
receives.  I have included the buffer contents below.  As you can see,
the browser doesn't see anything past the last /fragment element so
it's not receiving the script elements either.

Any Ideas?
Tim

?xml version=1.0 ?
?Tr-XHR-Response-Type ?
content

action=/vbm/faces/pages/secure/telephony/accountSearch.jspx
fragment![CDATA[div
id=j_id_jsp_1566647018_3:acctTabletable cellpadding=0
cellspacing=0 border=0 width=90% summary=trtdtable
cellpadding=0 cellspacing=0 border=0 width=100% summary=
class=x6mtrtdbutton type=button
onclick=submitForm('acctForm',1,{source:'j_id_jsp_1566647018_3:acctTabl
e:j_id_jsp_1566647018_15'});return false; class=x6sClear
Results/button/tdtd
width=100%/td/tr/table/td/trtrtdtable cellpadding=0
cellspacing=0 border=0 width=100% summary= class=x6qtrtd
nowrap=nowrap valign=middlea onclick=return
_submitHideShow('acctForm',1,'show','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTable__xc_sa','all') href=#
id=j_id_jsp_1566647018_3:acctTable__xc_sa class=xiShow All
Details/a#xa0;|#xa0;a onclick=return
_submitHideShow('acctForm',1,'hide','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTable__xc_ha','all') href=#
id=j_id_jsp_1566647018_3:acctTable__xc_ha class=xiHide All
Details/a/td/tr/table/td/trtrtdtable class=x6k
cellpadding=1 cellspacing=0 border=0 width=100%trth
id=j_id0 width=1% nowrap=nowrap class=x75Details/thth
id=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_16 class=x75
xafName/thth
id=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_18 class=x75
xafActive/thth
id=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_20 class=x75
xafActions/th/trtrtd headers=j_id0 class=x6v xat
nowrap=nowrapdiva onclick=return
_submitHideShow('acctForm',1,'hide','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTabledd0','0') href=#
id=j_id_jsp_1566647018_3:acctTabledd0span title=Select to hide
information class=x9q#x25bc;/span/aa onclick=return
_submitHideShow('acctForm',1,'hide','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTabledd0','0') href=#
class=xiHide/a/div/tdtd
headers=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_16
class=x6v xatName Removed/tdtd
headers=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_18
class=x6v xattrue/tdtd
headers=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_20
class=x6v xata
onclick=submitForm('acctForm',1,{source:'j_id_jsp_1566647018_3:acctTabl
e:0:j_id_jsp_1566647018_21'});return false; class=xi
href=#Close/a/td/trtrtd headers=j_id0 colspan=4
class=x79 xatdiv class=x9mh3 class=x65Account
Details/h3divBill Cycle: Independantdiv/divCreated:
12/15/2006div/divLast Modified: 12/15/2006/divdiv class=x9mh4
class=x65Plans/h4div
id=j_id_jsp_1566647018_3:acctTable:0:j_id_jsp_1566647018_32table
cellpadding=0 cellspacing=0 border=0 width=50%
summary=trtdtable class=x6k cellpadding=1 cellspacing=0
border=0 width=100%trth scope=col class=x75Type/thth
scope=col class=x75 xafExtension/thth scope=col class=x75
xafDID Number/thth scope=col class=x75 xafActive/thth
scope=col class=x75 xafActions/th/trtrtd class=x6v
xatBasic 250/tdtd class=x6v xat5112/tdtd class=x6v
xat(908) 604-0215/tdtd class=x6v xattrue/tdtd class=x6v
xata
onclick=submitForm('acctForm',1,{source:'j_id_jsp_1566647018_3:acctTabl
e:0:j_id_jsp_1566647018_32:0:j_id_jsp_1566647018_43'});return false;
class=xi href=#View/a/td/tr/table/td/tr/tableinput
type=hidden
name=j_id_jsp_1566647018_3:acctTable:0:j_id_jsp_1566647018_32:rangeStar
t
value=0/input/div/div/div/td/tr/table/td/tr/table
input type=hidden name=j_id_jsp_1566647018_3:acctTable:rangeStart
value=0/input/div]]/fragment
fragment![CDATA[span
id=_acctForm_Postscriptinput type=hidden
name=javax.faces.ViewState value=!3ca5b351/inputinput
type=hidden name=event/inputinput type=hidden
name=source/inputinput type=hidden name=partial/inputinput
type=hidden name=value/inputinput type=hidden
name=state/input/span]]/fragment
script![CDATA[function _submitHideShow(a,v,b,c,l,d)
{var o = {event:b,source:c};if (d!=(void 0))
o.value=d;_setRequestedFocusNode(document,l,false,window);_submitPartial
Change(a,v,o);return false;}]]/script

script![CDATA[_uixt_j_id_jsp_1566647018_3_acctTable_0_j_id_jsp_156664
7018_32=new
CollectionComponent('acctForm','j_id_jsp_1566647018_3:acctTable:0:j_id_j
sp_1566647018_32');]]/script

script![CDATA[_uixt_j_id_jsp_1566647018_3_acctTable=new
CollectionComponent('acctForm','j_id_jsp_1566647018_3:acctTable');]]/s
cript
script![CDATA[var
_resetacctFormNames=[event,source,partial,value,state];]]/sc
ript

Re: no Javascript script tags generated for t: or s: elements when, using tomahawk + sandbox + jsf RI 1.2 + Tomcat 6, no exceptions thrown

2007-09-14 Thread Jan Naujoks
Thank you for your response, I finally found the problem (not due any
logging output, I never got any errors/hints, neither with logging on  DEBUG
nor on INFO)!

The cause of the error was a jsp:include page=/footer.jspf / tag I used
to include the footer. I have no idea why this would break the generation of
the script tags, neither did I read anything about do not use jsp include
tags.
Anyway, after deleting that tag all worked well, the script tags got
generated.

I am not certain if I should file this as a bug, but at least in my
application I can reproduce the (mis)behavior.

Please advise if this is a bug or specified behavior (and perhaps tell me
where it is specified) so that I may react accordingly.

Thanks and regards
Frederik

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

 On Thu, 2007-09-13 at 17:42 +0200, jfn555 wrote:
  Hi, first the configuration:
  I try to run Tomahawk with Sandbox on the JSF RI 1.2 on Apache Tomcat 6.
  It all seemed to work fine (t:selectItems and so on run really great)
  until I tried to get s:selectManyPicklist to work (one of the main
  reasons I got Sandbox in the first place).
 
  I configured the web.xml according to the extensionFilter example, set
  org.apache.myfaces.CHECK_EXTENSIONS_FILTER to true and so on.
  The resource filter is set exactly as in the tomahawk examples, this way
  (maybe thats the problem, no idea if I should substitute
  myFacesExtensionResource with something special to my webapp?):
  filter-mapping
   filter-nameextensionsFilter/filter-name
   url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping
 
  Now (finally) to the point of the problem:
  everything seems to be generated BUT the
  script(somepath)picklist.js/script, thereby causing javascript
  errors like:
 
  Error: myfaces_picklist_addToSelected is not defined
  Source File: http://localhost:8080/WebTest1/faces/admin/addAccount.jsp
  Line: 1
 
  same thing happens if I try to use t:inputHtml, error then (of course)
  is:
 
  Error: drawertool is not defined
  Source File: http://localhost:8080/WebTest1/faces/admin/addAccount.jsp
  Line: 1
 
  The server log reports no errors at all, nothing about misconfigured
  resourceFilter or smth so:
  I have no idea where the problem might be located, if its a
  configuration problem or the general setup/usage of containers or if I
  should import those javascripts manually with something like s:script.
 
  Maybe I should mention that the javascripts for all standard JSF (RI
  1.2) tags (those scripts actually embedded in the page) do get generated
  and work fine.
 
  Thanks in advance for any help I may get, and a nice day.


 Your mapping of /faces/myFacesExtensionResource/* for the Tomahawk
 extension filter looks ok. And anyway, if that was wrong then that would
 not break the creation of script tags - it would them *fail* (as they
 all point at that above path) but that's not what you are seeing.

 And if you had the other part of the extension filter wrong (the mapping
 to *.jsf or whatever), then you would get an error reported because you
 (correctly) have CHECK_EXTENSIONS_FILTER  set.

 All I can think of is that perhaps you are using Tiles or something that
 is replacing data in the head section - but you are getting other
 stuff there so that doesn't seem likely.

 Have you tried turning on debug-level logging for the org.apache.myfaces
 category and seeing if there is anything useful there?

 Regards,

 Simon




RE: [Trinidad] tr:table PPR failing

2007-09-14 Thread Timothy M. Braun
Ok... please bare with me as this is the first time I have really dug
into the internals of trinidad and myfaces.  The problem seems to be
coming from the JspViewHandlerImpl class inside the renderView method.
I'm not really sure what is trying to be accomplished, but the response
writer is getting replaced with an instance of StateAwareResponseWriter
which wraps a StringBuffer.  The StateAwareResponseWriter is then
wrapped by an XhtmlResponseWriter and an instance of PPRResponseWriter.
Once this is done, the partial view is rendered to the writer.  The
state aware writer then gets flushed to the real response writer and
then the ppr writer's endDocument method is called.  Inside the
endDocument method of the ppr writer, the buffered script tags and
/content element are sent to the ppr's writer.  The problem is, this
writer never get's flushed to the real writer.  Since the state aware
writer wraps a string buffer, this information get lost forever. 

The whole thing starts on line 297 of
org.apache.myfaces.application.jsp.JspViewHandlerImpl

Don't know if this helps...

Tim

-Original Message-
From: Timothy M. Braun [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 9:56 AM
To: MyFaces Discussion
Subject: RE: [Trinidad] tr:table PPR failing

So I did a little more investigating and something really interesting is
going on.  I set a breakpoint in PPRResponseWriter.endDocument().  This
is where the /content element get appended to the response.  If I look
at the output buffer at this stage, I can see there is a lot of
information with seems to be missing from the response the browser
receives.  I have included the buffer contents below.  As you can see,
the browser doesn't see anything past the last /fragment element so
it's not receiving the script elements either.

Any Ideas?
Tim

?xml version=1.0 ?
?Tr-XHR-Response-Type ?
content

action=/vbm/faces/pages/secure/telephony/accountSearch.jspx
fragment![CDATA[div
id=j_id_jsp_1566647018_3:acctTabletable cellpadding=0
cellspacing=0 border=0 width=90% summary=trtdtable
cellpadding=0 cellspacing=0 border=0 width=100% summary=
class=x6mtrtdbutton type=button
onclick=submitForm('acctForm',1,{source:'j_id_jsp_1566647018_3:acctTabl
e:j_id_jsp_1566647018_15'});return false; class=x6sClear
Results/button/tdtd
width=100%/td/tr/table/td/trtrtdtable cellpadding=0
cellspacing=0 border=0 width=100% summary= class=x6qtrtd
nowrap=nowrap valign=middlea onclick=return
_submitHideShow('acctForm',1,'show','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTable__xc_sa','all') href=#
id=j_id_jsp_1566647018_3:acctTable__xc_sa class=xiShow All
Details/a#xa0;|#xa0;a onclick=return
_submitHideShow('acctForm',1,'hide','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTable__xc_ha','all') href=#
id=j_id_jsp_1566647018_3:acctTable__xc_ha class=xiHide All
Details/a/td/tr/table/td/trtrtdtable class=x6k
cellpadding=1 cellspacing=0 border=0 width=100%trth
id=j_id0 width=1% nowrap=nowrap class=x75Details/thth
id=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_16 class=x75
xafName/thth
id=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_18 class=x75
xafActive/thth
id=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_20 class=x75
xafActions/th/trtrtd headers=j_id0 class=x6v xat
nowrap=nowrapdiva onclick=return
_submitHideShow('acctForm',1,'hide','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTabledd0','0') href=#
id=j_id_jsp_1566647018_3:acctTabledd0span title=Select to hide
information class=x9q#x25bc;/span/aa onclick=return
_submitHideShow('acctForm',1,'hide','j_id_jsp_1566647018_3:acctTable','j
_id_jsp_1566647018_3:acctTabledd0','0') href=#
class=xiHide/a/div/tdtd
headers=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_16
class=x6v xatName Removed/tdtd
headers=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_18
class=x6v xattrue/tdtd
headers=j_id_jsp_1566647018_3:acctTable:j_id_jsp_1566647018_20
class=x6v xata
onclick=submitForm('acctForm',1,{source:'j_id_jsp_1566647018_3:acctTabl
e:0:j_id_jsp_1566647018_21'});return false; class=xi
href=#Close/a/td/trtrtd headers=j_id0 colspan=4
class=x79 xatdiv class=x9mh3 class=x65Account
Details/h3divBill Cycle: Independantdiv/divCreated:
12/15/2006div/divLast Modified: 12/15/2006/divdiv class=x9mh4
class=x65Plans/h4div
id=j_id_jsp_1566647018_3:acctTable:0:j_id_jsp_1566647018_32table
cellpadding=0 cellspacing=0 border=0 width=50%
summary=trtdtable class=x6k cellpadding=1 cellspacing=0
border=0 width=100%trth scope=col class=x75Type/thth
scope=col class=x75 xafExtension/thth scope=col class=x75
xafDID Number/thth scope=col class=x75 xafActive/thth
scope=col class=x75 xafActions/th/trtrtd class=x6v
xatBasic 250/tdtd class=x6v xat5112/tdtd class=x6v
xat(908) 604-0215/tdtd class=x6v xattrue/tdtd class=x6v
xata
onclick=submitForm('acctForm',1,{source:'j_id_jsp_1566647018_3:acctTabl
e:0:j_id_jsp_1566647018_32:0:j_id_jsp_1566647018_43'});return false;

RE: [Trinidad] tr:table PPR failing

2007-09-14 Thread Timothy M. Braun
This seems to fix the problem.

I moved the flush so it was after the call to the ppr writer endDocument
method.  Everything works beautifully now.

Here is the source for the new JspViewHandlerImpl

/*
 * Copyright 2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.myfaces.application.jsp;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.myfaces.application.DefaultViewHandlerSupport;
import org.apache.myfaces.application.InvalidViewIdException;
import org.apache.myfaces.application.ViewHandlerSupport;

import javax.faces.FacesException;
import javax.faces.FactoryFinder;
import javax.faces.application.Application;
import javax.faces.application.StateManager;
import javax.faces.application.ViewHandler;
import javax.faces.component.UIViewRoot;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.RenderKit;
import javax.faces.render.RenderKitFactory;
import javax.faces.render.ResponseStateManager;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.jstl.core.Config;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.util.Iterator;
import java.util.Locale;

/**
 * @author Thomas Spiegl (latest modification by $Author: baranda $)
 * @author Bruno Aranda
 * @version $Revision: 542008 $ $Date: 2007-05-27 19:45:19 +0200 (So, 27
Mai 2007) $
 */
public class JspViewHandlerImpl extends ViewHandler
{
private static final Log log =
LogFactory.getLog(JspViewHandlerImpl.class);
public static final String FORM_STATE_MARKER =
!--@@JSF_FORM_STATE_MARKER@@--;
public static final int FORM_STATE_MARKER_LEN =
FORM_STATE_MARKER.length();

private static final String AFTER_VIEW_TAG_CONTENT_PARAM =
JspViewHandlerImpl.class + .AFTER_VIEW_TAG_CONTENT;

private ViewHandlerSupport _viewHandlerSupport;

public JspViewHandlerImpl()
{
if (log.isTraceEnabled())
log.trace(New ViewHandler instance created);
}

/**
 * @param viewHandlerSupport
 *the viewHandlerSupport to set
 */
public void setViewHandlerSupport(ViewHandlerSupport
viewHandlerSupport)
{
_viewHandlerSupport = viewHandlerSupport;
}

/**
 * @return the viewHandlerSupport
 */
protected ViewHandlerSupport getViewHandlerSupport()
{
if (_viewHandlerSupport == null)
{
_viewHandlerSupport = new DefaultViewHandlerSupport();
}
return _viewHandlerSupport;
}

public Locale calculateLocale(FacesContext facesContext)
{
Application application = facesContext.getApplication();
for (IteratorLocale requestLocales =
facesContext.getExternalContext().getRequestLocales(); requestLocales
.hasNext();)
{
Locale requestLocale = requestLocales.next();
for (IteratorLocale supportedLocales =
application.getSupportedLocales(); supportedLocales.hasNext();)
{
Locale supportedLocale = supportedLocales.next();
// higher priority to a language match over an exact
match
// that occures further down (see Jstl Reference 1.0
8.3.1)
if
(requestLocale.getLanguage().equals(supportedLocale.getLanguage())
 (supportedLocale.getCountry() == null ||
supportedLocale.getCountry().length() == 0))
{
return supportedLocale;
}
else if (supportedLocale.equals(requestLocale))
{
return supportedLocale;
}
}
}

Locale defaultLocale = application.getDefaultLocale();
return defaultLocale != null ? defaultLocale :
Locale.getDefault();
}

public String calculateRenderKitId(FacesContext facesContext)
{
Object renderKitId =
facesContext.getExternalContext().getRequestMap().get(
ResponseStateManager.RENDER_KIT_ID_PARAM);
if (renderKitId == null)
{
renderKitId =
facesContext.getApplication().getDefaultRenderKitId();
}
if (renderKitId == null)
{

Re: [Trinidad] Panelpopup Error

2007-09-14 Thread Andrew Robinson
Is this 1.0.3-SNAPSHOT? The JavaScript has significantly changed in
the new version

If so, and you are getting the problem, did you by any chance test the
popup inside a relative positioned table column? There is a browser
bug which causes X and Y coordinate anomalies with relative TD and TH
tags. If the columns are not relative, the problem should go away.

On 9/14/07, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 try

 tr:panelPopup text=Click Here
   tr:outputText value=test /
 /tr:panelPopup

 otherwise the value test is rendered before the link (Click here)

 works fine, for me.

 But, I noticed that the popup is a bit to high in the page.

 -Matthias

 On 9/14/07, Wolfgang [EMAIL PROTECTED] wrote:
  Hi,
 
  I wrote a simple panelpopup example, but I always got this error:
 
  tr:panelPopup text=test
   test
   /tr:panelPopup
 
 
  14.09.2007 09:16:39
  org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl
  WARNUNG: Could not find renderer for CorePanelPopup[UIXFacesBeanImpl,
  id=_id57] rendererType = org.apache.myfaces.trinidad.Popup
 
  Can anyone help?
  Cheers
 


 --
 Matthias Wessendorf

 further stuff:
 blog: http://matthiaswessendorf.wordpress.com/
 mail: matzew-at-apache-dot-org



[Trinidad] Problems with tr:validateLongRange

2007-09-14 Thread Eric Fikus

Hello,

I am seeing some undesirable behavior with the tr:validateLongRange tag in
Trinidad 1.0.1.  I have an inputText whose value must be a positive integer:

tr:inputText
tr:validateLongRange minimum=1 messageDetailMinimum=The quantity 
must
be a positive integer/
/tr:inputText

The problems I have are:
1.  If I enter a string (with no numbers) I see the supplied
messageDetailMinimum.  If I enter a number with a decimal point I see
another message, Validation Error: Value is not of the correct type.. 
Apparently there is no way to change this text.  I would prefer to either
see the messageDetailMinimum (as happens with a string) or to add an
attribute to the tag to specify the message to show when the value is not an
integer.  The default Value is not of the correct type is not really
acceptable to me from a usability perspective.
2.  Suppose I have another inputText on the same page that is required.  If 
I
leave that field blank and enter a floating point number in my numeric
input, I will only see a validation error for the required field.  I won't
see that the numeric value is not of the correct type until I supply data
for all required fields.
3.  If I enter a floating point number and submit the form, I see the Value
is not of the correct type message.  If I change the value so it has
another validation error, for example by entering a number that is out of
range, the new error message is added to the page but the original one is
not removed.  So the field will show two error messages, in this case
Validation Error: Value is not of the correct type. followed by The
quantity must be a positive integer.  Despite the fact that the value is
now the correct type.

Questions: are there workarounds for these problems?  Taken together they
seem to make the validateLongRange tag unusable.  Can it be improved?  Are
people using custom validators for this, or is there a suitable combination
of built-in validators?

Thank you,
Eric Fikus

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Problems-with-tr%3AvalidateLongRange-tf4443822.html#a12679266
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Facelets dynamic include not working with MyFaces 1.2 JSF implementation

2007-09-14 Thread Karel Hubl
Hi,
we tried to use My Faces 1.2 + Tomahawk 1.1.6 + JSF Facelets 1.1.4 and we are 
unable to get working the ui:include component with src attribute containing EL 
Expression. When we try to render the page, it looks like the expression 
evaluetes to null.
When we change the JSF implementation to JSF SUN_RI 1.2, dynamic include works 
as expected.
Any ideas what could cause this proble?
Thanks a lot for answer.

K.


dynamic table

2007-09-14 Thread Bernd Hauser1

Hello everybody,

I've got a little question while developing a GUI. Is it possible to center
the whole page in the browser to the middle? Furthermore the user should be
able to see the page at its maximum height based on his own resolution.
For example the page has a fixed wide of 500px and this one should be in
the middle of the window. But the height should be always the maximum
height available in the browser window, based on the resolution.
I am working with jsp, java, css and tobago.
Is there any possiblity to realize this idea?

Thanks a lot!
   
 Mit freundlichen Grüßen / 
 with best regards 
   
 Bernd HauserIBM Germany[EMAIL PROTECTED]
 BA Student  Location 55131-84  om 
phone 0176 -   
 Hechtsheimer   21817118   
 Straße 2
 55131 Mainz   
   
 visit HR Germany intranet 
   
 IBM Deutschland GmbH  
 Vorsitzender des  
 Aufsichtsrats: Hans Ulrich
 Maerki
 Geschäftsführung: Martin  
 Jetter (Vorsitzender),
 Rudolf Bauer, Christian   
 Diedrich, Christoph   
 Grandpierre, Matthias 
 Hartmann, Thomas Fell,
 Michael Diemer
 Sitz der Gesellschaft:
 Stuttgart 
 Registergericht:  
 Amtsgericht Stuttgart, HRB
 14562 
 WEEE-Reg.-Nr. DE 99369940 
   
 Aktueller Praxiseinsatz:  
 Global Business Services  
 Betreuer: Johannes Schütt   
 Hechtsheimer Straße 2   
 55131 Mainz   
 Gebäudeschlüssel: MAINZ   
 55131-12  
   





[Trinidad] tr:outputText font size in IE6

2007-09-14 Thread Pedro Calcao
Greetings,

I have been developing several pages using Trinidad, I have done all the
development using Firefox to test the application.

Today I got to running the app in IE6, and I see that the default font-size
of all outputText values are alot larger then in FF, I see no reason for
this to happen, and I'm using a skin that explicitly sets the font-size to
10, using:

.AFDefaultFont:alias {
  font-size : 10px;
}

Shouldn't the above code set all text in my application to 10px font-size
unless overwritten by other css specifications?

Is there a way to set the font properties of all outputText's without
setting their inlineStyle or styleClass one by one?

Thank you for any answers,

Pedro Calção


[Trinidad] retain focus after PPR

2007-09-14 Thread Abhi
Hi,

I have been trying to create drag and drop on my application. There is one
table that i have generated using JSTL forEach loop (as it is kind of table
inside table).

Now the problem is when i drag a record and drop it to a new row the whole
table refresh itself using PPR with new structure of data. But focus is
jumping to the top of table.

I need to retain the focus because sometimes there is large amount of data
with a long vertical scroll. Its annoying to the user when he is not able to
see where he has dropped the record and to verify he has to scroll down.

Please help me out with this problem.

Thanks,
Abhishek


Re: [tobago] layout of tc:selectManyCheckbox

2007-09-14 Thread Volker Weber
Hi Zied,

for this purpose you can use the attribute renderRange and the tag
tc:selectReference:


tc:panel
   f:facet name =layout 
 tc:gridLayout columns =*;* /
  / f:facet
  tc:selectManyCheckbox id=checkboxes value=  renderRange=0-5
 tc:selectItems ... /
  /tc:selectManyCheckbox
  tc:renderRange for=checkboxes renderrange=6-11/
/tc:panel


you can also render every item in a own layout-cell if you need this.


Regards,
Volker
















2007/9/14, Zied Hamdi [EMAIL PROTECTED]:
 Hi all,

 I'm encoutring a lyout problem, maybe this will sound like a feture request:
 I'm attemping to layout a list of checkboxes belonging to the same value.
 here's my code:



 tc:selectManyCheckbox value= 

 f:facet name =layout 

   tc:gridLayout columns =*;* /

/ f:facet

 tc:selectItem itemLabel =Lundi /

 tc:selectItem itemLabel =Mardi /

 tc:selectItem itemLabel =Mercredi /

 tc:selectItem itemLabel =Jeudi /

 tc:selectItem itemLabel =Vendredi /

 tc:selectItem itemLabel =Samedi /

tc:selectItem itemLabel= Dimanche/

 /tc:selectManyCheckbox

 The set of tc:selectItem will be replaced by one unique tc:selectItems. The
 problem is tha the facet doesn't have any effect on the layout...

 Regards,
 Zied

 --
 Zied Hamdi
 zatreex.sourceforge.net


Re: [tobago] layout of tc:selectManyCheckbox

2007-09-14 Thread Volker Weber
Sorry typo:

   tc:renderRange for=checkboxes renderrange=6-11/
should be
  tc:selectReference for=checkboxes renderRange=6-11/


Regards,
Volker



2007/9/14, Volker Weber [EMAIL PROTECTED]:
 Hi Zied,

 for this purpose you can use the attribute renderRange and the tag
 tc:selectReference:


 tc:panel
f:facet name =layout 
  tc:gridLayout columns =*;* /
   / f:facet
   tc:selectManyCheckbox id=checkboxes value=  renderRange=0-5
  tc:selectItems ... /
   /tc:selectManyCheckbox
   tc:renderRange for=checkboxes renderrange=6-11/
 /tc:panel


 you can also render every item in a own layout-cell if you need this.


 Regards,
 Volker
















 2007/9/14, Zied Hamdi [EMAIL PROTECTED]:
  Hi all,
 
  I'm encoutring a lyout problem, maybe this will sound like a feture request:
  I'm attemping to layout a list of checkboxes belonging to the same value.
  here's my code:
 
 
 
  tc:selectManyCheckbox value= 
 
  f:facet name =layout 
 
tc:gridLayout columns =*;* /
 
 / f:facet
 
  tc:selectItem itemLabel =Lundi /
 
  tc:selectItem itemLabel =Mardi /
 
  tc:selectItem itemLabel =Mercredi /
 
  tc:selectItem itemLabel =Jeudi /
 
  tc:selectItem itemLabel =Vendredi /
 
  tc:selectItem itemLabel =Samedi /
 
 tc:selectItem itemLabel= Dimanche/
 
  /tc:selectManyCheckbox
 
  The set of tc:selectItem will be replaced by one unique tc:selectItems. The
  problem is tha the facet doesn't have any effect on the layout...
 
  Regards,
  Zied
 
  --
  Zied Hamdi
  zatreex.sourceforge.net



[Trinidad] PPR logic with non-rendered components (was: Console is undefined)

2007-09-14 Thread Bertrand, Shawn R
We have some situations where we set up PPR between components, and some
of the components which should trigger an update may not be rendered
based on some value binding.  What is the policy with respect to this?
If a button, for instance, isn't rendered but is expected to trigger an
update on a table, would I expect this sort of error?

 

14:35:46,377 ERROR [STDERR] Sep 14, 2007 2:35:46 PM
org.apache.myfaces.trinidadinternal.context.RequestContextImpl
addPartialTriggerListeners

WARNING: Could not find partial trigger genTable:modify from
CoreTable[UIXFacesBeanImpl, id=genTable]

 

I'm also thinking there might be problem with situations where an action
is triggered on a command button, a PPR update occurs that disables a
button, and the focus method call at the bottom of
TrPage.prototype._handlePprResponseFragment fails because the button
can't be focused upon.  Under this situation, I'm getting this
javascript error in IE (but not in Firefox):

 

Can't move focus to the control because it is invisible,
not enabled, or of a type that does not accept the focus.

 

This



Re: [Trinidad] PPR logic with non-rendered components (was: Console is undefined)

2007-09-14 Thread Simon Lessard
Hello Shawn,

PPR and rendered is a special case. I answered something similar some days
ago: http://forums.oracle.com/forums/message.jspa?messageID=2063668#2063668.


Regards,

~ Simon

On 9/14/07, Bertrand, Shawn R [EMAIL PROTECTED] wrote:

  We have some situations where we set up PPR between components, and some
 of the components which should trigger an update may not be rendered based
 on some value binding.  What is the policy with respect to this?  If a
 button, for instance, isn't rendered but is expected to trigger an update on
 a table, would I expect this sort of error?



 14:35:46,377 ERROR [STDERR] Sep 14, 2007 2:35:46 PM
 org.apache.myfaces.trinidadinternal.context.RequestContextImpladdPartialTriggerListeners

 WARNING: Could not find partial trigger genTable:modify from
 CoreTable[UIXFacesBeanImpl, id=genTable]



 I'm also thinking there might be problem with situations where an action
 is triggered on a command button, a PPR update occurs that disables a
 button, and the focus method call at the bottom of
 TrPage.prototype._handlePprResponseFragment fails because the button can't
 be focused upon.  Under this situation, I'm getting this javascript error in
 IE (but not in Firefox):



 Can't move focus to the control because it is invisible, not
 enabled, or of a type that does not accept the focus.



 This



Re: [Trinidad] PPR logic with non-rendered components (was: Console is undefined)

2007-09-14 Thread Abhi
Hi Simon,

Ley say the source is not present still, and the target is having ID in
partialTriggers that is still not rendered.
In that case how we can handle.

Thanks,
Abhishek
On 9/14/07, Simon Lessard [EMAIL PROTECTED] wrote:

 Hello Shawn,

 PPR and rendered is a special case. I answered something similar some days
 ago: http://forums.oracle.com/forums/message.jspa?messageID=2063668#2063668
 .


 Regards,

 ~ Simon

 On 9/14/07, Bertrand, Shawn R [EMAIL PROTECTED]  wrote:
 
   We have some situations where we set up PPR between components, and
  some of the components which should trigger an update may not be rendered
  based on some value binding.  What is the policy with respect to this?  If a
  button, for instance, isn't rendered but is expected to trigger an update on
  a table, would I expect this sort of error?
 
 
 
  14:35:46,377 ERROR [STDERR] Sep 14, 2007 2:35:46 PM
  org.apache.myfaces.trinidadinternal.context.RequestContextImpladdPartialTriggerListeners
 
  WARNING: Could not find partial trigger genTable:modify from
  CoreTable[UIXFacesBeanImpl, id=genTable]
 
 
 
  I'm also thinking there might be problem with situations where an action
  is triggered on a command button, a PPR update occurs that disables a
  button, and the focus method call at the bottom of
  TrPage.prototype._handlePprResponseFragment fails because the button
  can't be focused upon.  Under this situation, I'm getting this javascript
  error in IE (but not in Firefox):
 
 
 
  Can't move focus to the control because it is invisible,
  not enabled, or of a type that does not accept the focus.
 
 
 
  This
 




Re: [Trinidad] PPR logic with non-rendered components (was: Console is undefined)

2007-09-14 Thread Adam Winer
On 9/14/07, Bertrand, Shawn R [EMAIL PROTECTED] wrote:

  We have some situations where we set up PPR between components, and some
 of the components which should trigger an update may not be rendered based
 on some value binding.  What is the policy with respect to this?  If a
 button, for instance, isn't rendered but is expected to trigger an update on
 a table, would I expect this sort of error?



 14:35:46,377 ERROR [STDERR] Sep 14, 2007 2:35:46 PM
 org.apache.myfaces.trinidadinternal.context.RequestContextImpladdPartialTriggerListeners

 WARNING: Could not find partial trigger genTable:modify from
 CoreTable[UIXFacesBeanImpl, id=genTable]


This warning means that your partialTrigger syntax is wrong;  it's not that
something
isn't rendered.

 I'm also thinking there might be problem with situations where an action
 is triggered on a command button, a PPR update occurs that disables a
 button, and the focus method call at the bottom of
 TrPage.prototype._handlePprResponseFragment fails because the button can't
 be focused upon.  Under this situation, I'm getting this javascript error in
 IE (but not in Firefox):



 Can't move focus to the control because it is invisible, not
 enabled, or of a type that does not accept the focus.

A simple test case would be handy.  Looks like there's some problems with
the PPR
code that tries to restore focus.

-- Adam



This



Re: [Trinidad] retain focus after PPR

2007-09-14 Thread Adam Winer
What version of Trinidad are you using?

-- Adam


On 9/14/07, Abhi [EMAIL PROTECTED] wrote:

 Hi,

 I have been trying to create drag and drop on my application. There is one
 table that i have generated using JSTL forEach loop (as it is kind of table
 inside table).

 Now the problem is when i drag a record and drop it to a new row the whole
 table refresh itself using PPR with new structure of data. But focus is
 jumping to the top of table.

 I need to retain the focus because sometimes there is large amount of data
 with a long vertical scroll. Its annoying to the user when he is not able to
 see where he has dropped the record and to verify he has to scroll down.

 Please help me out with this problem.

 Thanks,
 Abhishek



Re: [Trinidad] tr:outputText font size in IE6

2007-09-14 Thread Adam Winer
IE 6 CSS support is atrocious, and that's being generous.

outputText is explicitly and intentionally not skinned.  Like other text, it
is
not directly skinned, but has its font size determined by the container
element/tag.  If it were directly skinned, there'd be no possibility for
container tags to affect their content's styling.

-- Adam



On 9/14/07, Francisco Passos [EMAIL PROTECTED] wrote:

 I've just tried this example.

 In IE 7 it works fine, but in IE 6 it presents the behaviour you
 described.

 Sorry I don't have a solution to recommend.

 On 9/14/07, Pedro Calcao [EMAIL PROTECTED] wrote:
 
  Greetings,
 
  I have been developing several pages using Trinidad, I have done all the
  development using Firefox to test the application.
 
  Today I got to running the app in IE6, and I see that the default
  font-size of all outputText values are alot larger then in FF, I see no
  reason for this to happen, and I'm using a skin that explicitly sets the
  font-size to 10, using:
 
  .AFDefaultFont:alias {
font-size : 10px;
  }
 
  Shouldn't the above code set all text in my application to 10px
  font-size unless overwritten by other css specifications?
 
  Is there a way to set the font properties of all outputText's without
  setting their inlineStyle or styleClass one by one?
 
  Thank you for any answers,
 
  Pedro Calção
 




Re: [Trinidad] retain focus after PPR

2007-09-14 Thread Abhi
I am using old version that was compatible with JSF 1.1.
But soon going to update that...

~Abhishek

On 9/14/07, Adam Winer [EMAIL PROTECTED] wrote:

 What version of Trinidad are you using?

 -- Adam


 On 9/14/07, Abhi [EMAIL PROTECTED]  wrote:
 
  Hi,
 
  I have been trying to create drag and drop on my application. There is
  one table that i have generated using JSTL forEach loop (as it is kind of
  table inside table).
 
  Now the problem is when i drag a record and drop it to a new row the
  whole table refresh itself using PPR with new structure of data. But focus
  is jumping to the top of table.
 
  I need to retain the focus because sometimes there is large amount of
  data with a long vertical scroll. Its annoying to the user when he is not
  able to see where he has dropped the record and to verify he has to scroll
  down.
 
  Please help me out with this problem.
 
  Thanks,
  Abhishek
 





Re: [tobago] layout of tc:selectManyCheckbox

2007-09-14 Thread Zied Hamdi
Thanks Volker,

I'm sorry to ask questions like this one that obviously has been resolved a
long time ago, is there a place to read infos in before asking in the
mailing list? (I took a look at the demo app, but even if it's maybe there I
wasn't able to find it)

Regards,
Zied

2007/9/14, Volker Weber [EMAIL PROTECTED]:

 Sorry typo:

tc:renderRange for=checkboxes renderrange=6-11/
 should be
 tc:selectReference for=checkboxes renderRange=6-11/


 Regards,
Volker



 2007/9/14, Volker Weber [EMAIL PROTECTED]:
  Hi Zied,
 
  for this purpose you can use the attribute renderRange and the tag
  tc:selectReference:
 
 
  tc:panel
 f:facet name =layout 
   tc:gridLayout columns =*;* /
/ f:facet
tc:selectManyCheckbox id=checkboxes value=  renderRange=0-5
   tc:selectItems ... /
/tc:selectManyCheckbox
tc:renderRange for=checkboxes renderrange=6-11/
  /tc:panel
 
 
  you can also render every item in a own layout-cell if you need this.
 
 
  Regards,
  Volker
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  2007/9/14, Zied Hamdi [EMAIL PROTECTED]:
   Hi all,
  
   I'm encoutring a lyout problem, maybe this will sound like a feture
 request:
   I'm attemping to layout a list of checkboxes belonging to the same
 value.
   here's my code:
  
  
  
   tc:selectManyCheckbox value= 
  
   f:facet name =layout 
  
 tc:gridLayout columns =*;* /
  
  / f:facet
  
   tc:selectItem itemLabel =Lundi /
  
   tc:selectItem itemLabel =Mardi /
  
   tc:selectItem itemLabel =Mercredi /
  
   tc:selectItem itemLabel =Jeudi /
  
   tc:selectItem itemLabel =Vendredi /
  
   tc:selectItem itemLabel =Samedi /
  
  tc:selectItem itemLabel= Dimanche/
  
   /tc:selectManyCheckbox
  
   The set of tc:selectItem will be replaced by one unique
 tc:selectItems. The
   problem is tha the facet doesn't have any effect on the layout...
  
   Regards,
   Zied
  
   --
   Zied Hamdi
   zatreex.sourceforge.net
 




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [Trinidad] Understanding Trinidad Skinning?

2007-09-14 Thread md10024

Hi Andrew, et. al., I'm having the same problem when running Trinidad 1.0.1.
Was there any resolution to this? thanks, Mark

Andrew Robinson-5 wrote:
 
 As I mentioned, disabling the compression did not work. As you can see
 from my post, I am getting CSS styles like .x6v.
 
 On 8/27/07, Simon Lessard  wrote:
 Hello Andrew,

 Disabling compression does just that... .af_inputText_content is very
 readable imho. the underscore after af is always coming from | while all
 other underscores were translated from ::, also you can always remove the
 dot if the generated selector starts with .af_. So, .af_inputText_content
 comes from af|inputText::content.


 Regards,

 ~ Simon


 On 8/26/07, Andrew Robinson  wrote:
  Disabling the style compression only seems to help a little bit. The
  FileSystemStyleCache._getShortStyleClassMap still returns
 unreadable
  styles. For example, one of the selectors firebug showed was:
 
  .x6v, .portlet-section-selected, .xbv, .portlet-table-selected, .xc2 {
 
  the .x* styles are really near impossible to know where they came from.
 
  Is there an easy way to get all styles to stay in a readable state?
 
  Thanks,
  Andrew
 
  On 7/30/07, Jeanne Waldman  wrote:
   Another tip:
  
   Use Firebug. It allows you to view the css that is rendered on a
   component by default and then you can inhibit anything you want in
 your
   skin using -tr-inhibit.
  
   Also, by default we compress the styleclass names to boost
 performance.
   While creating your skin, you can disable this compression so that
 you
   can see styleclass names that more closely resemble the css
 selectors.
  
   To do this, add to your web.xml file:
  
   
  
 org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION
true
   
  
   And finally, looking at the xss files like Abhijit suggests will help
 you as well.
  
   - Jeanne
  
  
   Abhijit Ghosh wrote:
Chris,
   
On 7/28/07, *Chris Hane*  wrote:
   
   
We are trying to create our own custom skin for Trinidad and I
have a basic
question:
   
First, where do the defaults for a paticular element come from?
 For
example, we are trying to skin af:column::header-text.  When
 we
remove
the color element, a default of #669966 is put into the
transformed skin.
   
   
The defaults are defined in base-desktop.xss and
simple-desktop.xss.AFAIK your custom skin CSS is overlaid over the
styles defined in base-desktop.xss and simple-desktop.xss.If you
specify a style in your custom skin CSS it will override the
 default
styles.The XSS files are actually XML files so you can read them if
you want to find out the default values.
   
Thanks,
Abhi
   
I found the skin selector documentation, is the another doc
describing how
skins works and their default values?  I have css people
 working
 on
defining the skin and they are having a slow time trying to
 figure
this out.
   
Second, the skin selector documentation states that it is not
up-to-date.
Where can I find updated info - source code only?
   
Thanks,
Chris
   
   
  
 


 
 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Understanding-Trinidad-Skinning--tf4161417.html#a12686032
Sent from the MyFaces - Users mailing list archive at Nabble.com.


How do I know My JSF Version?

2007-09-14 Thread MichaelWa

I am using IBM RAD7, when I create a JSF application from RAD, it shows
following in faces-config file
!DOCTYPE faces-config PUBLIC
  -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN
  http://java.sun.com/dtd/web-facesconfig_1_0.dtd;

However I checked with IBM website, it says RAD7 is fully support JSF1.1?

Can someone tell me how do I check the version of current JSF?

Thanks
Michael
-- 
View this message in context: 
http://www.nabble.com/How-do-I-know-My-JSF-Version--tf4446303.html#a12686797
Sent from the MyFaces - Users mailing list archive at Nabble.com.



How to replicate dataScroller.jsf example

2007-09-14 Thread Stephen More
I am trying to replicate http://www.irian.at/myfaces/dataScroller.jsf.

After downloading the source files and building it I have found these
differences:

1. Example page says 994 Cars found, displaying 15 cars, from 31 to
45. Page 3 / 67
  my page simply says Page 994 / 10

2. On my pages, after I set rowCount to 20, the current page will
show 20 rows, but if I try to navigate forward or reverse the rowCount
reverts back to 10.


Is there additional code on
http://www.irian.at/myfaces/dataScroller.jsf that is providing this
functionality ?

I have tried myfaces 1.1.6-SNAPSHOT and tomahawk 1.1.7-SNAPSHOT but
nothing seems to make my page work like the example page.

-Steve More


Re: [JSF1.2] JspViewHandlerImpl flushing issue (was Re: [Trinidad] tr:table PPR failing)

2007-09-14 Thread Martin Marinschek
Hi Tim,

could you supply a patch versus the new source-code - or somehow else
highlight the differences you did?

regards,

Martin

On 9/14/07, Adam Winer [EMAIL PROTECTED] wrote:
 (Changing subject to bring this to the attention of non-Trinidad folks)
 Tim, could you file a MYFACES JIRA issue?  This looks like an important
 issue.  It also explains why I haven't really seen this - I've done 95% of
 my testing with the RI, not the MyFaces 1.2 impl.

 -- Adam



 On 9/14/07, Timothy M. Braun  [EMAIL PROTECTED] wrote:
  This seems to fix the problem.
 
  I moved the flush so it was after the call to the ppr writer endDocument
  method.  Everything works beautifully now.
 
  Here is the source for the new JspViewHandlerImpl
 
  /*
  * Copyright 2004 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  package org.apache.myfaces.application.jsp;
 
  import org.apache.commons.logging.Log ;
  import org.apache.commons.logging.LogFactory;
  import
 org.apache.myfaces.application.DefaultViewHandlerSupport;
  import
 org.apache.myfaces.application.InvalidViewIdException;
  import org.apache.myfaces.application.ViewHandlerSupport
 ;
 
  import javax.faces.FacesException;
  import javax.faces.FactoryFinder;
  import javax.faces.application.Application;
  import javax.faces.application.StateManager;
  import javax.faces.application.ViewHandler ;
  import javax.faces.component.UIViewRoot;
  import javax.faces.context.ExternalContext;
  import javax.faces.context.FacesContext;
  import javax.faces.context.ResponseWriter;
  import javax.faces.render.RenderKit ;
  import javax.faces.render.RenderKitFactory;
  import javax.faces.render.ResponseStateManager;
  import javax.servlet.ServletRequest;
  import javax.servlet.ServletResponse;
  import javax.servlet.http.HttpServletRequest ;
  import javax.servlet.http.HttpServletResponse;
  import javax.servlet.http.HttpSession;
  import javax.servlet.jsp.jstl.core.Config;
  import java.io.IOException;
  import java.io.StringWriter;
  import java.io.Writer ;
  import java.util.Iterator;
  import java.util.Locale;
 
  /**
  * @author Thomas Spiegl (latest modification by $Author: baranda $)
  * @author Bruno Aranda
  * @version $Revision: 542008 $ $Date: 2007-05-27 19:45:19 +0200 (So, 27
  Mai 2007) $
  */
  public class JspViewHandlerImpl extends ViewHandler
  {
  private static final Log log =
  LogFactory.getLog(JspViewHandlerImpl.class);
  public static final String FORM_STATE_MARKER =
  !--@@JSF_FORM_STATE_MARKER@@--;
  public static final int FORM_STATE_MARKER_LEN =
  FORM_STATE_MARKER.length();
 
  private static final String AFTER_VIEW_TAG_CONTENT_PARAM =
  JspViewHandlerImpl.class + .AFTER_VIEW_TAG_CONTENT;
 
  private ViewHandlerSupport _viewHandlerSupport;
 
  public JspViewHandlerImpl()
  {
  if (log.isTraceEnabled())
  log.trace(New ViewHandler instance created);
  }
 
  /**
   * @param viewHandlerSupport
   *the viewHandlerSupport to set
   */
  public void setViewHandlerSupport(ViewHandlerSupport
  viewHandlerSupport)
  {
  _viewHandlerSupport = viewHandlerSupport;
  }
 
  /**
   * @return the viewHandlerSupport
   */
  protected ViewHandlerSupport getViewHandlerSupport()
  {
  if (_viewHandlerSupport == null)
  {
  _viewHandlerSupport = new DefaultViewHandlerSupport();
  }
  return _viewHandlerSupport;
  }
 
  public Locale calculateLocale(FacesContext facesContext)
  {
  Application application = facesContext.getApplication();
  for (IteratorLocale requestLocales =
  facesContext.getExternalContext().getRequestLocales(); requestLocales
  .hasNext();)
  {
  Locale requestLocale = requestLocales.next();
  for (IteratorLocale supportedLocales =
  application.getSupportedLocales(); supportedLocales.hasNext();)
  {
  Locale supportedLocale = supportedLocales.next();
  // higher priority to a language match over an exact
  match
  // that occures further down (see Jstl Reference 1.0
  8.3.1)
  if
  (requestLocale.getLanguage().equals(supportedLocale.getLanguage())
   ( supportedLocale.getCountry() == null ||
  supportedLocale.getCountry().length() == 0))
  {
  

[ANNOUNCE] myfaces-maven and myfaces-shared release

2007-09-14 Thread Mario Ivankovits

Hi!

We are proud to announce the availability of myfaces-maven 1.0.6 and 
myfaces-shared 2.0.7.



Ciao,
Mario


PS: Since this stuff is not that important to the community (I think) I 
didn't sent this announce to the [EMAIL PROTECTED] address. If you are 
not fine with this we can forward this mail later.