Re: JSCookMenu roadmap inquiry - Please respond!!

2006-08-01 Thread Cosma Colanicchia

Simon, the problem with that patch is that most of the changes it
takes are already been applied into the source code another commit, so
it would likely cause conflicts / compile failures / unexpected
behaviours.

I have not time to look into this now.. the following patch may fix
this problem, but it may be overwritten later if we rework the whole
hidden fields stuff. Moreover, I haven't time now to test it against
the current sources. Use at your risk ;-)

Regards,
Cosma


Index: MyFacesHack.js
===
--- MyFacesHack.js  (revisione 427474)
+++ MyFacesHack.js  (copia locale)
@@ -25,9 +25,18 @@
eval(link);
} else {
// Link is a JSF action
-var dummyForm = document.forms[target];
-dummyForm.elements['jscook_action'].value = link;
-dummyForm.submit();
+var jsfForm = document.forms[target];
+var jscookActionField = jsfForm.elements['jscook_action'];
+if (!jscookActionField) {
+   // Create the hidden field if it doesn't exists
+   // This requires IE5+ or Gecko
+   var jscookActionField = document.createElement("input");
+   jscookActionField.type = "hidden";
+   jscookActionField.name = "jscook_action";
+   jsfForm.appendChild(jscookActionField);
+   }
+jscookActionField.value = link;
+jsfForm.submit();
}
}



I can only suggest you (or someone else) to try applying the following
patch to the MyFacesHack.js, it should solve the missing hidden field
problem.





2006/7/31, Leyzerzon, Simeon <[EMAIL PROTECTED]>:

Are there any instructions on how to apply the available patches on 
https://issues.apache.org/jira/browse/TOMAHAWK-516.  Will these patches be 
carried over into released code of 1.1.4, or they will be discarded and 
superceded with other changes?
Thanks.
Simeon

-Original Message-
From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 1:37 PM
To: 'users@myfaces.apache.org'
Subject: JSCookMenu roadmap inquiry - Please respond!!


Hi,

I'd like to inquire about the roadmap of a specific feature in order to set up 
my internal dev strategy.  The feature I'm looking for is to be able to 
redirect a click on a JSCookMenu item to an iframe.  As I understand from being 
notified by other members of this group, this is possible by enclosing the 
JSCookMenu into a Trinidad form and specifying its target.  They told me that 
this integration of the Trinidad and JSCookMenu is currently being implemented, 
but some patches need to be applied before this feature is available.

Please verify that this is in fact the case, or will I instead need to choose 
my own other ways of implementing the iframe redirection behavior, and if this 
is currently being implemented, in which release/snapshot will it be available 
and approximately when.

Thank you in advance for this information.

Simeon Leyzerzon


==
Please access the attached hyperlink for an important electronic communications 
disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==


==
Please access the attached hyperlink for an important electronic communications 
disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==




Re: Schedule component, possible to have start/end date in month view?

2006-08-01 Thread Jurgen Lust
Yes, You can navigate using the selectedDate property. For example,
setting the selected date to September 9, the schedule will show the
month September when in month mode.

Kind regards,

Jurgen

Op ma, 31-07-2006 te 15:13 -0700, schreef dan2000:
> I'm thinking of using Schedule component. After playing it for a while, I've
> noticed that I can't specify the starting date or end date. It always shows
> this month. Is there anyway to change starting/ending date?



Need Vision Architecture Document Template

2006-08-01 Thread Kapil Kataria
Does any one have,  Vision Architecture Document for any of the project. I need this for reference. 
 
Please mail me if someone has this document. 
 
Thanks in Advance-- Regards,Kapil kataria  


Re: Schedule component, possible to have start/end date in month view?

2006-08-01 Thread dan2000

Thanks Jurgen. changing selected date solved my problem.

Another question is, the weekends are showing in a compressed way, is there
anyway to make it appear just like normal week days?
-- 
View this message in context: 
http://www.nabble.com/Schedule-component%2C-possible-to-have-start-end-date-in-month-view--tf2030368.html#a5590848
Sent from the MyFaces - Users forum at Nabble.com.



Schedule component,getLastClickedDateAndTime doesn't work in Month view

2006-08-01 Thread dan2000

I'm using Schedule component. When in Month view mode, the
HtmlSchedule.getLastClickedDateAndTime() always returns the same date
instead of user  clicked date. 
-- 
View this message in context: 
http://www.nabble.com/Schedule-component%2CgetLastClickedDateAndTime-doesn%27t-work-in-Month-view-tf2032376.html#a5590981
Sent from the MyFaces - Users forum at Nabble.com.



Re: Schedule component, possible to have start/end date in month view?

2006-08-01 Thread Jurgen Lust
Hmm, not at the moment. I followed the layout of Evolution/Outlook on
this. Perhaps this could be added as on option...

Jurgen

Op di, 01-08-2006 te 02:04 -0700, schreef dan2000:
> Thanks Jurgen. changing selected date solved my problem.
> 
> Another question is, the weekends are showing in a compressed way, is there
> anyway to make it appear just like normal week days?



Re: Schedule component,getLastClickedDateAndTime doesn't work in Month view

2006-08-01 Thread Jurgen Lust
Hi,

Could you add this issue to the JIRA?

Thanks,

Jurgen

Op di, 01-08-2006 te 02:14 -0700, schreef dan2000:
> I'm using Schedule component. When in Month view mode, the
> HtmlSchedule.getLastClickedDateAndTime() always returns the same date
> instead of user  clicked date. 



RE: SelectManyCheckbox not binding to Managed Bean Problem

2006-08-01 Thread Li, Weiye
Any one has experience to make part of the list indent? I have such a
tag to build checkboxes (say 20 checkboxes) in one column, I want to
make 5 of them indent. Can anybody help? Thanks
 





autoscrolling

2006-08-01 Thread Jan Dockx
I'm trying to use autoscroll, but the described problem comes up: commandLinks do nothing because the getScrolling() JS method is not in the page. What is the actual status on autoscroll? I see in discussions that it is supposed to be fixed in 1.1.3.I am using the commandLinks in a h:form, they work with autoscroll = false. MyFaces API, Impl and Tomahawk are 1.1.3. ExtensionsFilter is defined in web.xml as      FacesServlet    javax.faces.webapp.FacesServlet    1        FacesServlet    /faces/*        extensionsFilter    org.apache.myfaces.webapp.filter.ExtensionsFilter          Set the size limit for uploaded files.        Format: 10 - 10 bytes        10k - 10 KB        10m - 10 MB        1g - 1 GB            uploadMaxFileSize      100m              Set 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            uploadThresholdSize      100k            extensionsFilter    FacesServlet        extensionsFilter    /faces/myFacesExtensionResource/*  Funny thing: commandLink inside a tree2 works on the first page, but on the second page commandLinks do nothing in a tree2 nor a data table.I presume the ExtensionsFilter is setup correctly, because in the generated HTML of the problematic page I havehttp://www.w3.org/1999/xhtml" xml:lang="en-US">at the top. Met vriendelijke groeten,  Jan Dockx CTO  PeopleWare NV - Head Office Cdt.Weynsstraat 85  B-2660 Hoboken  Tel: +32 3 448.33.38  Fax: +32 3 448.32.66   PeopleWare NV - Branch Office Geel Kleinhoefstraat 5 B-2440 Geel Tel: +32 14 57.00.90 Fax: +32 14 58.13.25  http://www.peopleware.be/ http://www.mobileware.be/  

the reference of uploaded file is not getting reflected in CtlBean class

2006-08-01 Thread Chandra Sekhar



Hi Experts,
 
 Please solve my problem of 
 
the reference of uploaded file is not  getting reflected in Control 
Bean class. Using the Custom Components tried with the TOmahawk, Extensions and 
also the ADF , Giving the same error of javax.faces.Nullpointer Exception.
 
I'm very much worried about this. What kind of 
basic trap I have fallen into.
 
Regards,
Chandru.


Re: [tree2] Anyone using tree2 and hibernate?

2006-08-01 Thread ir. ing. Jan Dockx

respond; what do you want to know?

On 30 Jul 2006, at 18:37, Sean Schofield wrote:


I'm working on a full blown example of several technologies (including
tomahawk and hibernate.)  I haven't actually used tree2 with a dynamic
model yet so I'm curious to test my own creation and see what's
lacking.

I will be going through the old dynamic tree2 discussions of course
but I have some specific questions as it pertains to hibernate.  So if
anyone wants to share their tree2/hibernate experience please respond.

TIA,
Sean




Re: [Tobago] Unknown Protocol

2006-08-01 Thread Bernd Bohmann

Hello Cyrill,

can you try the nighly build?

Regards


Bernd

Cyrill Zadra schrieb:

*Hi

When I'm trying to start an webapp with JDeveloper (embedded OC4J) on
Windows XP I get following error (Tried it with 1.0.7 and 1.0.8):

ERROR: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.8-SNAPSHOT.jar!META-INF/tobago-theme.xml'
ERROR: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.7.jar!META-INF/tobago-theme.xml'

In this mailling list I found a similar topic:
http://www.mail-archive.com/users@myfaces.apache.org/msg19463.html but 
in my

case the tobago-theme.xml exists in the theme jar file.

Is it possible that in JDev (oc4j) the getProtocol method return another
value than jar or does anybody has a solution to my problem.

String protocol = themeUrl.getProtocol(); //
org.apache.myfaces.tobago.context.ResourceLocator; line 121 v. 1.0.7
...
if ("jar".equals(protocol) || "zip".equals(protocol)) {  //
org.apache.myfaces.tobago.context.ResourceLocator ; line 124 v. 1.0.7

} else {
 String error = "Unknown protocol '" + themeUrl + "'";
 LOG.error(error);
 throw new Exception(error);
}

***tobago-config.xml***


 
   speyside
   scarborough
   richmond
 
 tobago-resource


***Exception***

java.lang.Exception: Unknown protocol
'code-source:/C:/IENGINE/MyFace/HelloWorld/lib/tobago-
theme-standard-1.0.8-SNAPSHOT.jar!META-INF/tobago-theme.xml'
   at
org.apache.myfaces.tobago.context.ResourceLocator.locateResourcesFromClasspath( 


ResourceLocator.java:168)
   at org.apache.myfaces.tobago.context.ResourceLocator.locate(
ResourceLocator.java:63)
   at org.apache.myfaces.tobago.context.ResourceManagerFactory.init(
ResourceManagerFactory.java:57)
   at
org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized 


(TobagoServletContextListener.java:58)
   at com.evermind.server.http.HttpApplication.initDynamic(
HttpApplication.java:1015)
   at com.evermind.server.http.HttpApplication.(HttpApplication.java
:649)
   at com.evermind.server.ApplicationStateRunning.getHttpApplication(
ApplicationStateRunning.java:428)
   at com.evermind.server.Application.getHttpApplication (Application.java
:512)
   at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference 


(HttpSite.java:1975)
   at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference( 


HttpSite.java:1958)
   at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication 


(HttpSite.java:1910)
   at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:427)
   at com.evermind.server.http.HttpRequestHandler.resolveApplication(
HttpRequestHandler.java:395)
   at com.evermind.server.http.HttpRequestHandler.processRequest(
HttpRequestHandler.java:437)
   at com.evermind.server.http.HttpRequestHandler.serveOneRequest (
HttpRequestHandler.java:218)
   at com.evermind.server.http.HttpRequestHandler.run(
HttpRequestHandler.java:119)
   at com.evermind.server.http.HttpRequestHandler.run(
HttpRequestHandler.java:112)
   at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (
ServerSocketReadHandler.java:260)
   at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(
ServerSocketAcceptHandler.java:230)
   at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(
ServerSocketAcceptHandler.java :33)
   at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
ServerSocketAcceptHandler.java:831)
   at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(
ReleasableResourcePooledExecutor.java :298)
   at java.lang.Thread.run(Thread.java:595)


thanks & regards,

Cyrill
*



--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333


Javascript and Jscook Menu

2006-08-01 Thread Alex . Trusler

Hello all,

I am having problems using _javascript_
with the JSCookMenu and MyFaces. What I want to do is to open a _javascript_
popup like window.open("xyz", "height=300,width400,resizeable=yes");
when I click on a menu item.

Does anyone know if this can be done?

Thanks...



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



Pleas e respond to my problem of file upload;

2006-08-01 Thread Chandra Sekhar



I'm attaching the file Upload bean,facesConfig.xml 
and web.xml please help me out of this issue.I'm getting a null pointer 
Exception.Please help me out of this.
 
Regds,
Chandru.

http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  
javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml
  
  
org.apache.myfaces.webapp.StartupServletContextListener
  
  
Faces Servlet
javax.faces.webapp.FacesServlet
0
  
  
Faces Servlet
*.faces
  
  
  
extensionsFilter
org.apache.myfaces.component.html.util.ExtensionsFilter

uploadMaxFileSize
100m
   


uploadThresholdSize
100k
   





extensionsFilter
Faces Servlet

	
   
XMLDHTTPServlet
panaceaFLweb.utility.XMLDTHttpServlet
0
  
   
		XMLDHTTPServlet
		/XMLDHTTPServlet
	
  




CtlUploadBean.java
Description: Binary data

http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>


Bean used to handle all User-based operations.
CtlCurrBean
panaceaFLweb.FLCtlbean.CtlCurrBean
request


	Bean used to handle all User-based operations.
CtlStateBean
panaceaFLweb.FLCtlbean.CtlStateBean
request


Bean used to handle all User-based operations.
CtldocBean
panaceaFLweb.FLCtlbean.CtldocBean
request


Bean used to handle all User-based operations.
CtlItstatBean
panaceaFLweb.FLCtlbean.CtlItstatBean
request


	Bean used to handle all User-based operations.
CtlReligionBean
panaceaFLweb.FLCtlbean.CtlReligionBean
request

 
	Bean used to handle all User-based operations.
CtlGlmastBean
panaceaFLweb.FLCtlbean.CtlGlmastBean
request


	Bean used to handle all User-based operations.
CtlFileBean
panaceaFLweb.FLCtlbean.CtlFileBean
request


	Bean used to handle all User-based operations.
CtlClienttdsBean
panaceaFLweb.FLCtlbean.CtlClienttdsBean
request


		CtlDsaBean
		panaceaFLweb.FLCtlbean.CtlDsaBean
		request
	

 
Bean used to handle all User-based operations. 
CtlUploadBean
panaceaFLweb.FLCtlbean.CtlUploadBean
request




 /Mcurrency.jsp/

   "success" 
   /Mcurrency.jsp/


	
	
 /Mcurrency.jsp/

   "failure" 
   /Mcurrency.jsp/


	
	
 /MState.jsp/

   "success" 
   /MState.jsp/


	
	
 /MState.jsp/

   "failure" 
   /MState.jsp/


	
	
 /MDoccodes.jsp/

   "success" 
   /MDoccodes.jsp/


	
	
 /MDoccodes.jsp/

   "failure" 
   /MDoccodes.jsp/

  	
  	
  	
 /MReligion.jsp/

   "success" 
   /MReligion.jsp/


	
	
 /MReligion.jsp/

   "failure" 
   /MReligion.jsp/

  	
  	
  	
 /MItstat.jsp/

   "success" 
   /MItstat.jsp/


	
	
 /MItstat.jsp/

   "failure" 
   /MItstat.jsp/

  	
  	
  	
 /MGlmast.jsp/

   "success" 
   /MGlmast.jsp/


	
	
 /MGlmast.jsp/

   "failure" 
   /MGlmast.jsp/

  	
  	
  	
 /Sample.jsp/

   "success" 
   /Sample.jsp/


	
	
 /Sample.jsp/

   "failure" 
   /Sample.jsp/

  	
  	
  	
 /Mclienttds.jsp/

   "success" 
   /Mclienttds.jsp/


	
	
 /Mclienttds.jsp/

   "failure" 
   /Mclienttds.jsp/

  	
  	
  	
 /MDsa.jsp/

   "success" 
   /MDsa.jsp/


	
	
 /MDsa.jsp/

   "failure" 
   /MDsa.jsp/

  	
  	
  	
  	
 /EINVDOCIMAGE.jsp/

   "success" 
   /EINVDOCIMAGE.jsp/

   
	
	
 /EINVDOCIMAGE.jsp/

   "failure" 
   /EINVDOCIMAGE.jsp/

  
  	
  	
  	




DIV Container

2006-08-01 Thread Rogerio Pereira
Marcio,Estava pensando no assunto e creio que pelo fato de ser necessário usar _javascript_ não vai ser possível usar Facelets nesse caso, digo isso porque o mesmo arquivo .js vai ser adicionado à página toda vez que o componente for utilizado na página.
Isso não acontece com um componente do myfaces porque o myfaces possui uma estrutura toda pronta para gerenciar recursos externos como scripts que inclusive evitam que o mesmo recurso seja adicionado mais de uma vez à página, como é o caso de scripts e folhas de estilo.
-- Yours truly (Atenciosamente),Rogério


Re: DIV Container

2006-08-01 Thread Rogerio Pereira
Sorry people, wrong address, many apologies.2006/8/1, Rogerio Pereira <[EMAIL PROTECTED]>:
Marcio,Estava pensando no assunto e creio que pelo fato de ser necessário usar _javascript_ não vai ser possível usar Facelets nesse caso, digo isso porque o mesmo arquivo .js vai ser adicionado à página toda vez que o componente for utilizado na página.
Isso não acontece com um componente do myfaces porque o myfaces possui uma estrutura toda pronta para gerenciar recursos externos como scripts que inclusive evitam que o mesmo recurso seja adicionado mais de uma vez à página, como é o caso de scripts e folhas de estilo.
-- Yours truly (Atenciosamente),Rogério

-- Yours truly (Atenciosamente),Rogério


RE: "rendered" condition does not work as expected

2006-08-01 Thread Venkat Rao

Thanks for the pointer. I am now using  and  as suggested
by you, and it works better, but not perfectly.

I do a postback in which the graphics object list is modified (one of the
elements is deleted). So the component tree gets modified when rendering
after the postback. Now, the display/behavior of the components rendered is
not correct (missing elements, incorrect bindings etc).

In short, each time my page is rendered, the component tree gets modified in
a significant way, based on the contents of my graphics list, and based on
the type of the object in the list. Using  or  does
not seem to be cutting it (unless I am doing something wrong)

Is the problem I am having genuine? Is the solution to do a binding of a
UIComponent (like PanelGroup), and (re)create the component tree underneath
it from my Java code (don't quite like this approach, as the Facelet xhtml
expression is much more elegant)

Would appreciate any pointers. Thanks,

-- venkat

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 10:16 PM
To: MyFaces Discussion
Subject: RE: "rendered" condition does not work as expected


The problem with using rendered in this way is that Facelets still builds
the component tree for elements that are not rendered, but your component
tree is broken (because the binding you refer to doesn't exist).  

This is one of those cases where you actualy need to modify the component
tree based on your condition(instead of turning components on and off) so
you'll probably need to use c:forEach and c:if

-Original Message-
From: Venkat Rao [mailto:[EMAIL PROTECTED]
Sent: Mon 31-Jul-06 11:42 AM
To: 'MyFaces Discussion'
Subject: "rendered" condition does not work as expected
 
My code inside a "rendered" flag is getting invoked even when the condition
is false. I am iterating over a list of Graphics objects to display
information about each by calling the object specific methods. The code
works fine if I use only . If I use  however, the
rendered property does not seem to be taking effect.




[Circle] Radius: 



[Rectangle] Length: 




The above works fine, as expected. However, if I change from 
to , it complains :

javax.faces.el.PropertyNotFoundException: /graphics.xhtml @24,54
value="#{graphicsObj.radius}": Bean: Rectangle, property: radius

So, the first block of code is getting executed for a Rectangle object when
using a  but not when using . 

Any help in solving the problem is appreciated. The code for the Circle and
Rectangle beans is given below:

public class Circle implements Serializable
{
public String getObjType() {
return "circle";
}

int radius;
public void setRadius(int radius) {
this.radius = radius;
}
public int getRadius() {
return this.radius;
}
}

public class Rectangle implements Serializable
{
public String getObjType() {
return "rectangle";
}

private int length;
public void setLength(int length) {
this.length = length;
}
public int getLength() {
return this.length;
}
}





RE: Pleas e respond to my problem of file upload;

2006-08-01 Thread Rønnevik , Eivind



What version of myfaces are you using?
 
If it's 1.1.3 the location/package of the extensions filter 
has changed, and your web.xml should be configured like 
this:
 


extensionsFilterfilter-name>
org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>

uploadMaxFileSizeparam-name>
100mparam-value>
init-param>

uploadThresholdSizeparam-name>
100kparam-value>
init-param>
filter>
Regards,
 
Eivind


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
13:59To: MyFaces DiscussionSubject: Pleas e respond to my 
problem of file upload;

I'm attaching the file Upload bean,facesConfig.xml 
and web.xml please help me out of this issue.I'm getting a null pointer 
Exception.Please help me out of this.
 
Regds,
Chandru.


Re: where are src jars?

2006-08-01 Thread Torsten Krah
Have a look at:

http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/


Am Montag, den 31.07.2006, 22:28 +0100 schrieb Leyzerzon, Simeon:
> Is it possible to obtain a jar with just the sources for MyFaces core and the 
> Tomahawk?
> 
> Simeon Leyzerzon
> 
> 
> ==
> Please access the attached hyperlink for an important electronic 
> communications disclaimer: 
> 
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==
> 



Re: Pleas e respond to my problem of file upload;

2006-08-01 Thread Chandra Sekhar



Hi,
 
I'm using the earlier version of this. In that I 
could not find the Extensions Filter in the Jar with this Filter Class 

 
org.apache.myfaces.webapp.filter.ExtensionsFilter. 

SOI cannot use this.
 
Regards,
Chandru.

  - Original Message - 
  From: 
  Rønnevik, Eivind 
  
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 5:52 
  PM
  Subject: RE: Pleas e respond to my 
  problem of file upload;
  
  What version of myfaces are you 
using?
   
  If it's 1.1.3 the location/package of the extensions 
  filter has changed, and your web.xml should be configured like 
  this:
   
  
  
  extensionsFilterfilter-name>
  org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>
  
  uploadMaxFileSizeparam-name>
  100mparam-value>
  init-param>
  
  uploadThresholdSizeparam-name>
  100kparam-value>
  init-param>
  filter>
  Regards,
   
  Eivind
  
  
  From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
  13:59To: MyFaces DiscussionSubject: Pleas e respond to 
  my problem of file upload;
  
  I'm attaching the file Upload 
  bean,facesConfig.xml and web.xml please help me out of this issue.I'm getting 
  a null pointer Exception.Please help me out of this.
   
  Regds,
  Chandru.


RE: where are src jars?

2006-08-01 Thread Leyzerzon, Simeon
I have, it doesn't contain the sources for the current, 1.1.3, release.

-Original Message-
From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 8:49 PM
To: MyFaces Discussion
Subject: RE: where are src jars?



Have a look @ the archioves http://archive.apache.org/dist/myfaces/




-Original Message-
From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED]

Sent: Tuesday, 1 August 2006 7:46 AM
To: 'MyFaces Discussion'
Subject: RE: where are src jars?

Are there any instructions?

-Original Message-
From: Iordanov, Borislav (GIC) [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 5:31 PM
To: MyFaces Discussion
Subject: RE: where are src jars?


It's possible, but it's hard. This is a "hidden source" project ;)

-Original Message-
From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 5:29 PM
To: 'users@myfaces.apache.org'
Subject: where are src jars?

Is it possible to obtain a jar with just the sources for MyFaces core
and the Tomahawk?

Simeon Leyzerzon



==
Please access the attached hyperlink for an important electronic
communications disclaimer:


http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html

==



==
Please access the attached hyperlink for an important electronic
communications disclaimer:


http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html

==


This correspondence is for the named persons only.

It may contain confidential or privileged information or both.

No confidentiality or privilege is waived or lost by any mis transmission.

If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.

You must not disclose, copy or relay on any part of this correspondence, if you 
are not the intended recipient.

Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,

and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==



RE: Pleas e respond to my problem of file upload;

2006-08-01 Thread Leyzerzon, Simeon



In 
1.1.3, the filter is under this package: 
org.apache.myfaces.component.html.util.ExtensionsFilter

  -Original Message-From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, August 01, 
  2006 8:43 AMTo: MyFaces DiscussionSubject: Re: Pleas e 
  respond to my problem of file upload;
  Hi,
   
  I'm using the earlier version of this. In that I 
  could not find the Extensions Filter in the Jar with this Filter Class 
  
   
  org.apache.myfaces.webapp.filter.ExtensionsFilter. 
  
  SOI cannot use this.
   
  Regards,
  Chandru.
  
- Original Message - 
From: 
Rønnevik, 
Eivind 
To: MyFaces Discussion 
Sent: Tuesday, August 01, 2006 5:52 
PM
Subject: RE: Pleas e respond to my 
problem of file upload;

What version of myfaces are you 
using?
 
If it's 1.1.3 the location/package of the extensions 
filter has changed, and your web.xml should be configured like 
this:
 


extensionsFilterfilter-name>
org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>

uploadMaxFileSizeparam-name>
100mparam-value>
init-param>

uploadThresholdSizeparam-name>
100kparam-value>
init-param>
filter>
Regards,
 
Eivind


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
13:59To: MyFaces DiscussionSubject: Pleas e respond to 
my problem of file upload;

I'm attaching the file Upload 
bean,facesConfig.xml and web.xml please help me out of this issue.I'm 
getting a null pointer Exception.Please help me out of this.
 
Regds,
Chandru.
==
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==



Re: Schedule component,getLastClickedDateAndTime doesn't work in Month v

2006-08-01 Thread dan2000

I've added it to JIRA. 

I saw some bugs being reported long time ago but now one does bug fixing. I
guess no one in myfaces group uses JIRA, or i'm missing something ?
-- 
View this message in context: 
http://www.nabble.com/Schedule-component%2CgetLastClickedDateAndTime-doesn%27t-work-in-Month-view-tf2032376.html#a5594046
Sent from the MyFaces - Users forum at Nabble.com.



RE: Javascript and Jscook Menu

2006-08-01 Thread Leyzerzon, Simeon



I 
could use this feature too...

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, August 01, 
  2006 7:46 AMTo: users@myfaces.apache.orgSubject: 
  _javascript_ and Jscook MenuHello all, I am having 
  problems using _javascript_ with the JSCookMenu and MyFaces. What I want to do 
  is to open a _javascript_ popup like window.open("xyz", 
  "height=300,width400,resizeable=yes"); when I click on a menu item. 
  Does anyone know if this can be 
  done? Thanks... 
  
  

  
  This message (including any files transmitted with it) may 
  containconfidential and/or proprietary information, is the property 
  ofInteractive Data Corporation and/or its subsidiaries, and isdirected 
  only to the addressee(s). If you are not the designatedrecipient or have 
  reason to believe you received this message inerror, please delete this 
  message from your system and notify thesender immediately. An unintended 
  recipient's disclosure,copying, distribution, or use of this message or 
  any attachments isprohibited and may be 
unlawful
==
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==



RE: JSCookMenu roadmap inquiry - Please respond!!

2006-08-01 Thread Leyzerzon, Simeon
Cosma,

Thanks for the code, looks like JSCookMenu development is a moving target, and 
since I can't even get to the source, I'd need to either wait or chose some 
alternative approach...It'a a pity...

-Original Message-
From: Cosma Colanicchia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 01, 2006 3:31 AM
To: MyFaces Discussion
Subject: Re: JSCookMenu roadmap inquiry - Please respond!!


Simon, the problem with that patch is that most of the changes it
takes are already been applied into the source code another commit, so
it would likely cause conflicts / compile failures / unexpected
behaviours.

I have not time to look into this now.. the following patch may fix
this problem, but it may be overwritten later if we rework the whole
hidden fields stuff. Moreover, I haven't time now to test it against
the current sources. Use at your risk ;-)

Regards,
Cosma


Index: MyFacesHack.js
===
--- MyFacesHack.js  (revisione 427474)
+++ MyFacesHack.js  (copia locale)
@@ -25,9 +25,18 @@
 eval(link);
 } else {
 // Link is a JSF action
-var dummyForm = document.forms[target];
-dummyForm.elements['jscook_action'].value = link;
-dummyForm.submit();
+var jsfForm = document.forms[target];
+var jscookActionField = jsfForm.elements['jscook_action'];
+if (!jscookActionField) {
+   // Create the hidden field if it doesn't exists
+   // This requires IE5+ or Gecko
+   var jscookActionField = document.createElement("input");
+   jscookActionField.type = "hidden";
+   jscookActionField.name = "jscook_action";
+   jsfForm.appendChild(jscookActionField);
+   }
+jscookActionField.value = link;
+jsfForm.submit();
 }
 }



I can only suggest you (or someone else) to try applying the following
patch to the MyFacesHack.js, it should solve the missing hidden field
problem.





2006/7/31, Leyzerzon, Simeon <[EMAIL PROTECTED]>:
> Are there any instructions on how to apply the available patches on 
> https://issues.apache.org/jira/browse/TOMAHAWK-516.  Will these patches be 
> carried over into released code of 1.1.4, or they will be discarded and 
> superceded with other changes?
> Thanks.
> Simeon
>
> -Original Message-
> From: Leyzerzon, Simeon [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 31, 2006 1:37 PM
> To: 'users@myfaces.apache.org'
> Subject: JSCookMenu roadmap inquiry - Please respond!!
>
>
> Hi,
>
> I'd like to inquire about the roadmap of a specific feature in order to set 
> up my internal dev strategy.  The feature I'm looking for is to be able to 
> redirect a click on a JSCookMenu item to an iframe.  As I understand from 
> being notified by other members of this group, this is possible by enclosing 
> the JSCookMenu into a Trinidad form and specifying its target.  They told me 
> that this integration of the Trinidad and JSCookMenu is currently being 
> implemented, but some patches need to be applied before this feature is 
> available.
>
> Please verify that this is in fact the case, or will I instead need to choose 
> my own other ways of implementing the iframe redirection behavior, and if 
> this is currently being implemented, in which release/snapshot will it be 
> available and approximately when.
>
> Thank you in advance for this information.
>
> Simeon Leyzerzon
>
>
> ==
> Please access the attached hyperlink for an important electronic 
> communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==
>
>
> ==
> Please access the attached hyperlink for an important electronic 
> communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==
>
>

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==



RE: Pleas e respond to my problem of file upload;

2006-08-01 Thread Rønnevik , Eivind



According to documentation in wiki the filter class 
name changed FROM 
org.apache.myfaces.component.html.util.ExtensionsFilter
TO org.apache.myfaces.webapp.filter.ExtensionsFilter with version 
1.1.3..
 
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3
 
But Chandru, since you don't use 1.1.3 you don't need to 
change this. Can you post your NullPoitnerException?
 
- E -
 
 
 


From: Leyzerzon, Simeon 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
15:04To: 'MyFaces Discussion'Subject: RE: Pleas e respond 
to my problem of file upload;

In 
1.1.3, the filter is under this package: 
org.apache.myfaces.component.html.util.ExtensionsFilter

  -Original Message-From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, August 01, 
  2006 8:43 AMTo: MyFaces DiscussionSubject: Re: Pleas e 
  respond to my problem of file upload;
  Hi,
   
  I'm using the earlier version of this. In that I 
  could not find the Extensions Filter in the Jar with this Filter Class 
  
   
  org.apache.myfaces.webapp.filter.ExtensionsFilter. 
  
  SOI cannot use this.
   
  Regards,
  Chandru.
  
- Original Message - 
From: 
Rønnevik, 
Eivind 
To: MyFaces Discussion 
Sent: Tuesday, August 01, 2006 5:52 
PM
Subject: RE: Pleas e respond to my 
problem of file upload;

What version of myfaces are you 
using?
 
If it's 1.1.3 the location/package of the extensions 
filter has changed, and your web.xml should be configured like 
this:
 


extensionsFilterfilter-name>
org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>

uploadMaxFileSizeparam-name>
100mparam-value>
init-param>

uploadThresholdSizeparam-name>
100kparam-value>
init-param>
filter>
Regards,
 
Eivind


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
13:59To: MyFaces DiscussionSubject: Pleas e respond to 
my problem of file upload;

I'm attaching the file Upload 
bean,facesConfig.xml and web.xml please help me out of this issue.I'm 
getting a null pointer Exception.Please help me out of this.
 
Regds,
Chandru.
==
Please access the attached hyperlink for an important electronic communications disclaimer: 

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==




Re: Pleas e respond to my problem of file upload;

2006-08-01 Thread Chandra Sekhar



Hi I am not getting some messages to my mail id. Ok 
I saw the messages with the Gmail Account.The reference in the Control Bean I'm 
not able toi obtain.
 
 
Is this part of Code any problem in the 
web.xml


extensionsFilterfilter-name>
*.shtmlurl-pattern>
filter-mapping>
 
Regds,
Chandru.
 

  - Original Message - 
  From: 
  Chandra Sekhar 
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 6:12 
  PM
  Subject: Re: Pleas e respond to my 
  problem of file upload;
  
  Hi,
   
  I'm using the earlier version of this. In that I 
  could not find the Extensions Filter in the Jar with this Filter Class 
  
   
  org.apache.myfaces.webapp.filter.ExtensionsFilter. 
  
  SOI cannot use this.
   
  Regards,
  Chandru.
  
- Original Message - 
From: 
Rønnevik, 
Eivind 
To: MyFaces Discussion 
Sent: Tuesday, August 01, 2006 5:52 
PM
Subject: RE: Pleas e respond to my 
problem of file upload;

What version of myfaces are you 
using?
 
If it's 1.1.3 the location/package of the extensions 
filter has changed, and your web.xml should be configured like 
this:
 


extensionsFilterfilter-name>
org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>

uploadMaxFileSizeparam-name>
100mparam-value>
init-param>

uploadThresholdSizeparam-name>
100kparam-value>
init-param>
filter>
Regards,
 
Eivind


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
13:59To: MyFaces DiscussionSubject: Pleas e respond to 
my problem of file upload;

I'm attaching the file Upload 
bean,facesConfig.xml and web.xml please help me out of this issue.I'm 
getting a null pointer Exception.Please help me out of this.
 
Regds,
Chandru.


loader constraints violated when linking javax/servlet/jsp/el/Variable

2006-08-01 Thread octoberdan

This only happens if I get to a page by way way of a navigation rule. The
page loads normally if I just send a simple request for the page. The
constructor of the backing bean successfully loads in both situations.
Anyone seen somthing like this before? Thank you.

01 Aug 2006 09:58:51,509 - ERROR - StandardWrapperValve.invoke(253) |
Servlet.service() for servlet Faces Servlet threw exception
java.lang.LinkageError: loader constraints violated when linking
javax/servlet/jsp/el/VariableResolver class
at
org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:376)
at
org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:334)
at
org.apache.myfaces.el.ELParserHelper.replaceSuffixes(ELParserHelper.java:287)
at
org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:90)
at
org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl.java:82)
at
org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
at 
org.apache.myfaces.el.ValueBindingImpl.(ValueBindingImpl.java:115)
at
org.apache.myfaces.el.MethodBindingImpl.(MethodBindingImpl.java:58)
at
org.apache.myfaces.application.ApplicationImpl.createMethodBinding(ApplicationImpl.java:587)
at
org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.decode(HtmlJSCookMenuRenderer.java:116)
at 
javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500)
at
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:606)
at javax.faces.component.UIForm.processDecodes(UIForm.java:53)
at
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
at
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.loomis.security.filter.SecurityFilter.doFilter(SecurityFilter.java:46)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.myfaces.custom.conversation.ConversationServletFilter.doFilter(ConversationServletFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.myfaces.custom.requestParameterProvider.RequestParameterServletFilter.doFilter(RequestParameterServletFilter.java:47)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
-

Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-01 Thread Matthias Fischer

Hm, that's right. what I had in mind when I answered Tom's question was
that session.foo contains an action binding string. But then you would
have to call
#{${session.foo}} - if that works at all.

If that is what Tom intended it does make sense to me:
A button that leads to a different action depending on a session attribute.
For example you could think of a list where you can select items.
Depending on user input of previous dialogues the session attribute foo
would be set to an action that is to be performed on the selected items
when the button is pressed.
I am not sure whether this works but that would allow you to reuse view
in different workflows.


> It may work... can I ask why you are designing things this way? It
> seems a bit odd to me to add another level of abstraction on page
> navigation: an expression that resolve to a string that is matched
> against navigation rules that finally defines a view (!)
>
> Cosma
>
> 2006/7/31, Matthias Fischer <[EMAIL PROTECTED]>:
>>
>> > I think that the problem is that, if EL is found in the action
>> > attribute, JSF tries to use it as an action method (it attemps to
>> > "call" it)..
>> That's what I suppose. So JSTL EL should solve it as we have no method
>> bindings here...
>>
>>
>>
>>


-- 
Schützen Sie das was Ihnen wichtig ist !
http://iam-solution.de
Weitere Details verrate ich Ihnen gerne am Telefon. Einfach anrufen! 

-
Matthias Fischer  Fon: +49-7541-6047-148
Dipl. Informatiker (FH)   Fax: +49-7541-6047-111
doubleSlash Net-Business GmbH [EMAIL PROTECTED]
Müllerstr. 12 B   http://doubleSlash.de
88045 Friedrichshafen



RE: Pleas e respond to my problem of file upload;

2006-08-01 Thread Rønnevik , Eivind



I can't see that your code in web.xml should cause any 
problems, but I've never used myfaces with .shtml .
 
This is how I defined a file Uploader  

 
 jsp 
--
 



 
faces-config.xml 
:

uploadDocumentBeanmanaged-bean-name>

com.faces.handlers.document.UploadDocumentBean
managed-bean-class>
sessionmanaged-bean-scope>
managed-bean>
 
-UploadDocumentBean: --
private 
UploadedFile uploadedFile;
public 
UploadedFile getUploadedFile() {  return 
uploadedFile; }
 public 
void setUploadedFile(UploadedFile uploadedFile) 
{  log.debug("uploaded file: " + uploadedFile.getName() + " size: 
" + uploadedFile.getSize() + " contentType: " + 
uploadedFile.getContentType());  this.uploadedFile = 
uploadedFile; }
//Action method
 public String uploadFile() {  log.debug("ID 
selected is: " + getVersionId());  log.debug("uploaded file: " + 
uploadedFile.getName() + " size: " + uploadedFile.getSize() + " contentType: " + 
uploadedFile.getContentType());   if(uploadedFile != 
null)   return 
"uploadSuccess"; return 
null; }
Is it the bean itself you cannot obtain, or is it the 
reference to the file you uploaded that is null?
- E -


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
15:35To: MyFaces DiscussionSubject: Re: Pleas e respond to 
my problem of file upload;

Hi I am not getting some messages to my mail id. Ok 
I saw the messages with the Gmail Account.The reference in the Control Bean I'm 
not able toi obtain.
 
 
Is this part of Code any problem in the 
web.xml


extensionsFilterfilter-name>
*.shtmlurl-pattern>
filter-mapping>
 
Regds,
Chandru.
 

  - Original Message - 
  From: 
  Chandra Sekhar 
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 6:12 
  PM
  Subject: Re: Pleas e respond to my 
  problem of file upload;
  
  Hi,
   
  I'm using the earlier version of this. In that I 
  could not find the Extensions Filter in the Jar with this Filter Class 
  
   
  org.apache.myfaces.webapp.filter.ExtensionsFilter. 
  
  SOI cannot use this.
   
  Regards,
  Chandru.
  
- Original Message - 
From: 
Rønnevik, 
Eivind 
To: MyFaces Discussion 
Sent: Tuesday, August 01, 2006 5:52 
PM
Subject: RE: Pleas e respond to my 
problem of file upload;

What version of myfaces are you 
using?
 
If it's 1.1.3 the location/package of the extensions 
filter has changed, and your web.xml should be configured like 
this:
 


extensionsFilterfilter-name>
org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>

uploadMaxFileSizeparam-name>
100mparam-value>
init-param>

uploadThresholdSizeparam-name>
100kparam-value>
init-param>
filter>
Regards,
 
Eivind


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
13:59To: MyFaces DiscussionSubject: Pleas e respond to 
my problem of file upload;

I'm attaching the file Upload 
bean,facesConfig.xml and web.xml please help me out of this issue.I'm 
getting a null pointer Exception.Please help me out of this.
 
Regds,
Chandru.


state handling for dynamic form elements in a table...

2006-08-01 Thread Jorge Vásquez








Hello, I am attempting to develop a page that has
some rows formed by input components, which are generated on the run according
to the contents of a collection as follows:

 

  






        #{dataField.description}   td>


        


   
  

  
     f:verbatim>

  
    td>

  





  
td>

  



input>
  


  
td>



   tr>

  
ui:repeat>

 

 

I have achieved the first part which is printing out
the list of rows successfully but I have no idea on how to keep the state of
the values that the user inputs as they aren´t specifically mapped to setters
of a managed bean since they are completely dynamic.  The managedBean
returns a Collection of elements of type dataField, which has getters for
description, userColumn, etc.  How can I guarantee that when the user
sends a submit the state that he entered is kept and mapped to the bean
somehow?

 

Another question that I have related to this problem
is the use of the selectOneRadio component?  I wasn´t able to use it to
generate dynamic radiobuttons since the syntax is something like:

 











 

And the options that I would have are each in a
different row and I have no idea where to place the container element: 
selectOneRadio?

 

Anyone has any ideas ?  

 

Regards,

JV

 








Re: Pleas e respond to my problem of file upload;

2006-08-01 Thread Chandra Sekhar



It is the reference of the file uploaded that is 
null.
 
Regards,
Chandru.

  - Original Message - 
  From: 
  Rønnevik, Eivind 
  
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 7:49 
  PM
  Subject: RE: Pleas e respond to my 
  problem of file upload;
  
  I can't see that your code in web.xml should cause any 
  problems, but I've never used myfaces with .shtml .
   
  This is how I defined a file Uploader  
  
   
   jsp 
  --
   
  
  
  
   
  faces-config.xml 
  :
  
  uploadDocumentBeanmanaged-bean-name>
  
  com.faces.handlers.document.UploadDocumentBean
  managed-bean-class>
  sessionmanaged-bean-scope>
  managed-bean>
   
  -UploadDocumentBean: 
  --
  private 
  UploadedFile uploadedFile;
  public 
  UploadedFile getUploadedFile() {  return 
  uploadedFile; }
   public void setUploadedFile(UploadedFile uploadedFile) 
  {  log.debug("uploaded file: " + uploadedFile.getName() + " 
  size: " + uploadedFile.getSize() + " contentType: " + 
  uploadedFile.getContentType());  this.uploadedFile = 
  uploadedFile; }
  //Action 
  method
   public String 
  uploadFile() {  log.debug("ID selected is: " + 
  getVersionId());  log.debug("uploaded file: " + 
  uploadedFile.getName() + " size: " + uploadedFile.getSize() + " contentType: " 
  + uploadedFile.getContentType());   if(uploadedFile != 
  null)   return 
  "uploadSuccess"; return 
  null; }
  Is it the bean itself you cannot obtain, or is it the 
  reference to the file you uploaded that is null?
  - E -
  
  
  From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
  15:35To: MyFaces DiscussionSubject: Re: Pleas e respond 
  to my problem of file upload;
  
  Hi I am not getting some messages to my mail id. 
  Ok I saw the messages with the Gmail Account.The reference in the Control Bean 
  I'm not able toi obtain.
   
   
  Is this part of Code any problem in the 
  web.xml
  
  
  extensionsFilterfilter-name>
  *.shtmlurl-pattern>
  filter-mapping>
   
  Regds,
  Chandru.
   
  
- Original Message - 
From: 
Chandra Sekhar 
To: MyFaces Discussion 
Sent: Tuesday, August 01, 2006 6:12 
PM
Subject: Re: Pleas e respond to my 
problem of file upload;

Hi,
 
I'm using the earlier version of this. In that 
I could not find the Extensions Filter in the Jar with this Filter Class 

 
org.apache.myfaces.webapp.filter.ExtensionsFilter. 

SOI cannot use this.
 
Regards,
Chandru.

  - Original Message - 
  From: 
  Rønnevik, 
  Eivind 
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 5:52 
  PM
  Subject: RE: Pleas e respond to my 
  problem of file upload;
  
  What version of myfaces are you 
  using?
   
  If it's 1.1.3 the location/package of the extensions 
  filter has changed, and your web.xml should be configured like 
  this:
   
  
  
  extensionsFilterfilter-name>
  org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>
  
  uploadMaxFileSizeparam-name>
  100mparam-value>
  init-param>
  
  uploadThresholdSizeparam-name>
  100kparam-value>
  init-param>
  filter>
  Regards,
   
  Eivind
  
  
  From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
  13:59To: MyFaces DiscussionSubject: Pleas e respond 
  to my problem of file upload;
  
  I'm attaching the file Upload 
  bean,facesConfig.xml and web.xml please help me out of this issue.I'm 
  getting a null pointer Exception.Please help me out of this.
   
  Regds,
  Chandru.


Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-01 Thread Cosma Colanicchia

You can always write an action method, and return different outcomes,
if you want to reuse the view.

Cosma

2006/8/1, Matthias Fischer <[EMAIL PROTECTED]>:


Hm, that's right. what I had in mind when I answered Tom's question was
that session.foo contains an action binding string. But then you would
have to call
#{${session.foo}} - if that works at all.

If that is what Tom intended it does make sense to me:
A button that leads to a different action depending on a session attribute.
For example you could think of a list where you can select items.
Depending on user input of previous dialogues the session attribute foo
would be set to an action that is to be performed on the selected items
when the button is pressed.
I am not sure whether this works but that would allow you to reuse view
in different workflows.


> It may work... can I ask why you are designing things this way? It
> seems a bit odd to me to add another level of abstraction on page
> navigation: an expression that resolve to a string that is matched
> against navigation rules that finally defines a view (!)
>
> Cosma
>
> 2006/7/31, Matthias Fischer <[EMAIL PROTECTED]>:
>>
>> > I think that the problem is that, if EL is found in the action
>> > attribute, JSF tries to use it as an action method (it attemps to
>> > "call" it)..
>> That's what I suppose. So JSTL EL should solve it as we have no method
>> bindings here...
>>
>>
>>
>>


--
Schützen Sie das was Ihnen wichtig ist !
http://iam-solution.de
Weitere Details verrate ich Ihnen gerne am Telefon. Einfach anrufen!

-
Matthias Fischer  Fon: +49-7541-6047-148
Dipl. Informatiker (FH)   Fax: +49-7541-6047-111
doubleSlash Net-Business GmbH [EMAIL PROTECTED]
Müllerstr. 12 B   http://doubleSlash.de
88045 Friedrichshafen




Re: Need Vision Architecture Document Template

2006-08-01 Thread Andrew Robinson

This list is specifically for questions regarding the Apache Myfaces
technology, unless you have a more specific question on the
architecture or usage of MyFaces, please stop spamming this list with
this question that you repeatedly ask

On 8/1/06, Kapil Kataria <[EMAIL PROTECTED]> wrote:


Does any one have,  Vision Architecture Document for any of the project. I
need this for reference.

Please mail me if someone has this document.

Thanks in Advance

--
Regards,
Kapil kataria




Re: SelectManyCheckbox not binding to Managed Bean Problem

2006-08-01 Thread Andrew Robinson

You can use CSS to do it. The problem that I see is that it doesn't
look like  supports a style or styleClass attribute, so
you may have to assign the CSS properties using javascript or extend
the checkbox and renderer to support custom styles per checkbox.

On 7/31/06, Li, Weiye <[EMAIL PROTECTED]> wrote:

Any one has experience to make part of the list indent? I have such a
tag to build checkboxes (say 20 checkboxes) in one column, I want to
make 5 of them indent. Can anybody help? Thanks







RE: Pleas e respond to my problem of file upload;

2006-08-01 Thread Rønnevik , Eivind



Do you get your null-pointer exception when you press the 
submit button or when you try to get the property from your 
bean?
 
Have u tried to just set a dummy property and check if it's 
null or not?
 


From: Chandra Sekhar 
[mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
16:38To: MyFaces DiscussionSubject: Re: Pleas e respond to 
my problem of file upload;

It is the reference of the file uploaded that is 
null.
 
Regards,
Chandru.

  - Original Message - 
  From: 
  Rønnevik, Eivind 
  
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 7:49 
  PM
  Subject: RE: Pleas e respond to my 
  problem of file upload;
  
  I can't see that your code in web.xml should cause any 
  problems, but I've never used myfaces with .shtml .
   
  This is how I defined a file Uploader  
  
   
   jsp 
  --
   
  
  
  
   
  faces-config.xml 
  :
  
  uploadDocumentBeanmanaged-bean-name>
  
  com.faces.handlers.document.UploadDocumentBean
  managed-bean-class>
  sessionmanaged-bean-scope>
  managed-bean>
   
  -UploadDocumentBean: 
  --
  private 
  UploadedFile uploadedFile;
  public 
  UploadedFile getUploadedFile() {  return 
  uploadedFile; }
   public void setUploadedFile(UploadedFile uploadedFile) 
  {  log.debug("uploaded file: " + uploadedFile.getName() + " 
  size: " + uploadedFile.getSize() + " contentType: " + 
  uploadedFile.getContentType());  this.uploadedFile = 
  uploadedFile; }
  //Action 
  method
   public String 
  uploadFile() {  log.debug("ID selected is: " + 
  getVersionId());  log.debug("uploaded file: " + 
  uploadedFile.getName() + " size: " + uploadedFile.getSize() + " contentType: " 
  + uploadedFile.getContentType());   if(uploadedFile != 
  null)   return 
  "uploadSuccess"; return 
  null; }
  Is it the bean itself you cannot obtain, or is it the 
  reference to the file you uploaded that is null?
  - E -
  
  
  From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
  15:35To: MyFaces DiscussionSubject: Re: Pleas e respond 
  to my problem of file upload;
  
  Hi I am not getting some messages to my mail id. 
  Ok I saw the messages with the Gmail Account.The reference in the Control Bean 
  I'm not able toi obtain.
   
   
  Is this part of Code any problem in the 
  web.xml
  
  
  extensionsFilterfilter-name>
  *.shtmlurl-pattern>
  filter-mapping>
   
  Regds,
  Chandru.
   
  
- Original Message - 
From: 
Chandra Sekhar 
To: MyFaces Discussion 
Sent: Tuesday, August 01, 2006 6:12 
PM
Subject: Re: Pleas e respond to my 
problem of file upload;

Hi,
 
I'm using the earlier version of this. In that 
I could not find the Extensions Filter in the Jar with this Filter Class 

 
org.apache.myfaces.webapp.filter.ExtensionsFilter. 

SOI cannot use this.
 
Regards,
Chandru.

  - Original Message - 
  From: 
  Rønnevik, 
  Eivind 
  To: MyFaces Discussion 
  Sent: Tuesday, August 01, 2006 5:52 
  PM
  Subject: RE: Pleas e respond to my 
  problem of file upload;
  
  What version of myfaces are you 
  using?
   
  If it's 1.1.3 the location/package of the extensions 
  filter has changed, and your web.xml should be configured like 
  this:
   
  
  
  extensionsFilterfilter-name>
  org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>
  
  uploadMaxFileSizeparam-name>
  100mparam-value>
  init-param>
  
  uploadThresholdSizeparam-name>
  100kparam-value>
  init-param>
  filter>
  Regards,
   
  Eivind
  
  
  From: Chandra Sekhar 
  [mailto:[EMAIL PROTECTED] Sent: 1. august 2006 
  13:59To: MyFaces DiscussionSubject: Pleas e respond 
  to my problem of file upload;
  
  I'm attaching the file Upload 
  bean,facesConfig.xml and web.xml please help me out of this issue.I'm 
  getting a null pointer Exception.Please help me out of this.
   
  Regds,
  Chandru.


Table suggest Ajax problem,

2006-08-01 Thread Grigoras Cristinel

Hi ,

I have tried table suggest ajax from sandbox and I have found one case 
when it's not working.
I want to show in that table some values what are not having "for" or 
"forValue" attribute.

Only to view them in table.

How I do that ?

Cristi




Validating Multiple Components in DataTable

2006-08-01 Thread David Van Stone

I have a row in a data table which has a few input fields which I want to
validate together. I know the technique of binding the items then using a
hidden input field that is linked to a validator method. As so:

>

 
 
 



(There is just logging so far in the validateFields() method.)

However, I don't get very far when the page appears for the first time (with
no rows in the table):

javax.faces.el.PropertyNotFoundException: Base is null: item
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:460)
at
org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:248)
at
org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:449)
at
javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:709)
at 
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:596)
...

If I remove the 'binding="#..."' code, the application calls validateFields
fine. 

* Can one set up bindings to elements in a dataTable? 

I think I'm missing something, since the data table shouldn't be rendered
and has no items to render. What is it trying to bind at that point?

Thanks for any help,

-David-
-- 
View this message in context: 
http://www.nabble.com/Validating-Multiple-Components-in-DataTable-tf2034458.html#a5597324
Sent from the MyFaces - Users forum at Nabble.com.



Re: Validating Multiple Components in DataTable

2006-08-01 Thread Andrew Robinson

Data table requires its children to be columns or facets.

>
 
  wrote:


I have a row in a data table which has a few input fields which I want to
validate together. I know the technique of binding the items then using a
hidden input field that is linked to a validator method. As so:

>

 
 
 



(There is just logging so far in the validateFields() method.)

However, I don't get very far when the page appears for the first time (with
no rows in the table):

javax.faces.el.PropertyNotFoundException: Base is null: item
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:460)
at
org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:248)
at
org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:449)
at
javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:709)
at 
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:596)
...

If I remove the 'binding="#..."' code, the application calls validateFields
fine.

* Can one set up bindings to elements in a dataTable?

I think I'm missing something, since the data table shouldn't be rendered
and has no items to render. What is it trying to bind at that point?

Thanks for any help,

-David-
--
View this message in context: 
http://www.nabble.com/Validating-Multiple-Components-in-DataTable-tf2034458.html#a5597324
Sent from the MyFaces - Users forum at Nabble.com.




PhaseListener/SetFocus Question

2006-08-01 Thread Tom Innes
I have a question on how best to handle focus when an error occurs.  

I am currently using the Sandbox focus component and have implemented a
PhaseListener on my backing beans to set focus to the first input component
that has a message associated with it. On each of my backing beans I have a
setFocusId and a getFocusId Method.

Consider the following Example

Backing Bean
CountryQBE
 - getCode
 - setCode
 - getName
 - setName
 - setFocusId
 - getFocusId

CountryForm
 - getCode
 - setCode
 - getName
 - setName
 - setFocusId
 - getFocusId


StateForm
 - getCode
 - setCode
 - getName
 - setName
 - setFocusId
 - getFocusId

Say as a Result of Pressing a command button on the CountryForm an Error
occurs on the nameField.  When this happens the PhaseListener Fires on all
three backing beans and sets the FocusId to the nameFieldId.

Thus the CountryQBE, CountryForm and StateForm backing beans all have their
focusId property set to nameFieldId.

Is there any way to limit the phase listener to only fire for the current
form that it is processing? 

Tom 

 



Re: JSCookMenu roadmap inquiry - Please respond!!

2006-08-01 Thread Mike Kienenberger

On 8/1/06, Leyzerzon, Simeon <[EMAIL PROTECTED]> wrote:

Thanks for the code, looks like JSCookMenu development is a moving target, and 
since I can't even get to the source, I'd need to either wait or chose some 
alternative approach...It'a a pity...


This wiki page explains how to get the source as well as how to build it.

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


Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-01 Thread Matthias Fischer

> You can always write an action method, and return different outcomes,
> if you want to reuse the view.
>

Yes, but different outcomes go to different VIEWS not to different
actions. So what you're doing then is to reuse the action, not the view!
What if I want one particular view to call different actions based on a
condition?



Re: "rendered" condition does not work as expected

2006-08-01 Thread Mike Kienenberger

Moving to the facelets mailing list

I've been thinking about this a bit, because it seems relevent to my
own issues where el expressions and outputText fields are being cached
somehow.

It doesn't seem like the right behavior to me that a rendered=false
container component would render children and evaluate the el bindings
for the children.

I don't have time to look at it right now, but I'm probably going to
do so later this month.

Venkat, do you have the time to create a small test project
demonstrating this behavior (it seems pretty straight-forward) in
facelets, and possibly also demonstrating how it works under jsp?   If
so, maybe you could open a facelets issue on this, and I'll see if I
can track down why it's happening and maybe submit a patch for it at
some future date.

On 8/1/06, Venkat Rao <[EMAIL PROTECTED]> wrote:


Thanks for the pointer. I am now using  and  as suggested
by you, and it works better, but not perfectly.

I do a postback in which the graphics object list is modified (one of the
elements is deleted). So the component tree gets modified when rendering
after the postback. Now, the display/behavior of the components rendered is
not correct (missing elements, incorrect bindings etc).

In short, each time my page is rendered, the component tree gets modified in
a significant way, based on the contents of my graphics list, and based on
the type of the object in the list. Using  or  does
not seem to be cutting it (unless I am doing something wrong)

Is the problem I am having genuine? Is the solution to do a binding of a
UIComponent (like PanelGroup), and (re)create the component tree underneath
it from my Java code (don't quite like this approach, as the Facelet xhtml
expression is much more elegant)

Would appreciate any pointers. Thanks,

-- venkat

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 10:16 PM
To: MyFaces Discussion
Subject: RE: "rendered" condition does not work as expected


The problem with using rendered in this way is that Facelets still builds
the component tree for elements that are not rendered, but your component
tree is broken (because the binding you refer to doesn't exist).

This is one of those cases where you actualy need to modify the component
tree based on your condition(instead of turning components on and off) so
you'll probably need to use c:forEach and c:if

-Original Message-
From: Venkat Rao [mailto:[EMAIL PROTECTED]
Sent: Mon 31-Jul-06 11:42 AM
To: 'MyFaces Discussion'
Subject: "rendered" condition does not work as expected

My code inside a "rendered" flag is getting invoked even when the condition
is false. I am iterating over a list of Graphics objects to display
information about each by calling the object specific methods. The code
works fine if I use only . If I use  however, the
rendered property does not seem to be taking effect.




[Circle] Radius: 



[Rectangle] Length: 




The above works fine, as expected. However, if I change from 
to , it complains :

javax.faces.el.PropertyNotFoundException: /graphics.xhtml @24,54
value="#{graphicsObj.radius}": Bean: Rectangle, property: radius

So, the first block of code is getting executed for a Rectangle object when
using a  but not when using .

Any help in solving the problem is appreciated. The code for the Circle and
Rectangle beans is given below:

public class Circle implements Serializable
{
public String getObjType() {
return "circle";
}

int radius;
public void setRadius(int radius) {
this.radius = radius;
}
public int getRadius() {
return this.radius;
}
}

public class Rectangle implements Serializable
{
public String getObjType() {
return "rectangle";
}

private int length;
public void setLength(int length) {
this.length = length;
}
public int getLength() {
return this.length;
}
}






Re: PhaseListener/SetFocus Question

2006-08-01 Thread Matthias Fischer
JavaServerFaces in Action mentions on page 437 that you can register a
phase listerner with a bean. The example shows a bean that refreshes a
list before phase RENDER_RESPONSE. Maybe this helps:

public class MyBean() {

public MyBean() {

LifecycleFactory lifecycleFactory = (LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYLE_FACTORY);
Lifecycle lifecycle =
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.addPhaseListener(
new PhaseListener() {

   public void beforePhase() {
  refreshList();
  }

  public void afterPhase() {
  }

   publid PhaseId getPhaseId() {
  return PhaseId.RENDER_RESPONSE;
  }
});

 protected void refreshList() {
 ...
}
...
}


Tom Innes wrote:
> I have a question on how best to handle focus when an error occurs.  
>
> I am currently using the Sandbox focus component and have implemented a
> PhaseListener on my backing beans to set focus to the first input component
> that has a message associated with it. On each of my backing beans I have a
> setFocusId and a getFocusId Method.
>
> Consider the following Example
>
> Backing Bean
> CountryQBE
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> CountryForm
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> 
> StateForm
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> Say as a Result of Pressing a command button on the CountryForm an Error
> occurs on the nameField.  When this happens the PhaseListener Fires on all
> three backing beans and sets the FocusId to the nameFieldId.
>
> Thus the CountryQBE, CountryForm and StateForm backing beans all have their
> focusId property set to nameFieldId.
>
> Is there any way to limit the phase listener to only fire for the current
> form that it is processing? 
>
> Tom 
>
>  
>
>   



[tomahawk + panelNavigation2 + Facelets] getting empty UL tags

2006-08-01 Thread Greg Reddin

In reference to this thread:

http://www.mail-archive.com/users@myfaces.apache.org/msg18040.html

Did anyone ever find a solution to this problem?  I'm having almost  
the exact same problem using the following construct:







Thanks,
Greg


Re: Validating Multiple Components in DataTable

2006-08-01 Thread Mike Kienenberger

On 8/1/06, David Van Stone <[EMAIL PROTECTED]> wrote:

I have a row in a data table which has a few input fields which I want to
validate together. I know the technique of binding the items then using a
hidden input field that is linked to a validator method. As so:


Depending on what you're doing, you might want to look at the
validateCompareTo component in the sandbox.   It's pretty smart about
dealing with the various states two components might be in while
comparing the two.   However, it only compares two fields at a time.
You could use the same code to handle more fields, though.

It's hard to say how well this would work inside of a UIData due to
the rowState issues.


Re: loader constraints violated when linking javax/servlet/jsp/el/Variab

2006-08-01 Thread octoberdan

Is there aditional information that I should provide?
-- 
View this message in context: 
http://www.nabble.com/loader-constraints-violated-when-linking-javax-servlet-jsp-el-Variable-tf2033748.html#a5599460
Sent from the MyFaces - Users forum at Nabble.com.



Accessing t:saveStated beans

2006-08-01 Thread octoberdan

Is there a way to access the beans persisted with t:saveState? I was going to
implement StateHolder, but I then read
http://issues.apache.org/jira/browse/TOMAHAWK-509 . Can somone please
provide further insite?
-- 
View this message in context: 
http://www.nabble.com/Accessing-t%3AsaveStated-beans-tf2035271.html#a5599913
Sent from the MyFaces - Users forum at Nabble.com.



Problems with double backing been access or rendering in Tree2

2006-08-01 Thread johan
Greetings,

I seem to be experiencing problems with getting a a mthod on a Tree2 model
called twice per page-load. While the data is cachable if it was only a
matter of hammering the database, but I'm concerned about the general
performance implications.

The Tree2 backing bean is derived from TreeBacker.java as it exists in the
tomahawk examples, and the Tree2 tree is based on the client-side example
in the same (and affect all tree2 instance on the page, wether client or
server-side. With two tables on the page, the bean gets access four times,
even though there is only one reference to the backing bean in each table,
in the value binding.)

The binding looks like this:



The rest of the definition contains facets and references to both the t
and node variables, but no references to treeBacker

The tree itself actually renders as expected, and while rendering, the
following output (minus trimming of pointless sql) gets logged.

Hibernate: select 
Hibernate: select count(*) 
Hibernate: select count(*) 
Hibernate: select count(*) 
2006-aug-01 19:57:55
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
Hibernate: select 
Hibernate: select count(*) 
Hibernate: select count(*) 
Hibernate: select count(*) 
2006-aug-01 19:57:56 org.apache.myfaces.shared_impl.config.MyfacesConfig
getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource



It appears to me that the page in question gets rendered twice, once by
tomahawk, and once by myfaces core, which would explain it, but then
surely that means I set up my web.xml entris wrong.. let's have a look at
them too..

   
  Faces Servlet
  javax.faces.webapp.FacesServlet
  1
   

   
  Faces Servlet
  *.faces
   

   
  MyFacesExtensionsFilter
  Faces Servlet
   

   
  MyFacesExtensionsFilter
  /faces/myFacesExtensionResource/*
   


Well, that looks alright to me, and I'm at a loss to explain the doubled
calls to the backing bean, or double rendering of the page, if that is
what is happening.

tomahawk and myfaces core version are:

myfaces-api:1.1.3
myfaces-impl:   1.1.3
tomahawk:   1.1.3

Anyone with any ideas and a bit more experience than me perhaps could tell
me what to look for?

Thanks in advance,

 Johan



AJAX Components and Request Scope Backing Beans

2006-08-01 Thread octoberdan

How are the ajax components accessing managed beans that have a request
scope?
-- 
View this message in context: 
http://www.nabble.com/AJAX-Components-and-Request-Scope-Backing-Beans-tf2035337.html#a5600166
Sent from the MyFaces - Users forum at Nabble.com.



jsf_sequence resetting

2006-08-01 Thread Eric Lee

I have an application that used to work just fine. It was ported to
Facelets and continued to work fine. The jsf_sequence number
incremented correctly.

Now when I click on a link, nothing happens and I am sent back to the
same page. My action is never executed and I see no mention in the
logs of any problems (even at DEBUG logging). Also, I notice that
between each page, the jsf_sequence number is always 1.

Any ideas how to resolve or troubleshoot this?

Thanks,
Eric


Re: Accessing t:saveStated beans

2006-08-01 Thread William Huang
I havent try this yet, but if you have ,
you should be able to retrieve in backing bean by using the id.

Let me know if that work or not

William Huang
Product Development Team
   
 octoberdan
 <[EMAIL PROTECTED] 
 et>To 
   users@myfaces.apache.org
 08/01/2006 02:04   cc 
 PM
   Subject 
   Accessing t:saveStated beans
 Please respond to 
 "MyFaces  
Discussion"
 <[EMAIL PROTECTED] 
 ache.org> 
   
   





Is there a way to access the beans persisted with t:saveState? I was going
to
implement StateHolder, but I then read
http://issues.apache.org/jira/browse/TOMAHAWK-509 . Can somone please
provide further insite?
--
View this message in context:
http://www.nabble.com/Accessing-t%3AsaveStated-beans-tf2035271.html#a5599913

Sent from the MyFaces - Users forum at Nabble.com.


Disclaimer: This electronic mail and any attachments are confidential and may 
be privileged. If you are not the intended recipient, please notify the sender 
immediately by replying to this email, and destroy all copies of this email and 
any attachments. Thank you.



RE: PhaseListener/SetFocus Question

2006-08-01 Thread Tom Innes
Thanks for the suggestion Matthias,

Unfortunately that is exactly what I was doing.

My suspicion is that since 

countryQBE is a Managed Property of countryForm and
countryForm is a Managed Property of stateForm 

that all three Phase Listeners fire.  Unfortunately I don't see a way to
distinguish between them. Does anybody know of a way?

Tom


-Original Message-
From: Matthias Fischer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 1:06 PM
To: MyFaces Discussion
Subject: Re: PhaseListener/SetFocus Question

JavaServerFaces in Action mentions on page 437 that you can register a
phase listerner with a bean. The example shows a bean that refreshes a
list before phase RENDER_RESPONSE. Maybe this helps:

public class MyBean() {

public MyBean() {

LifecycleFactory lifecycleFactory = (LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYLE_FACTORY);
Lifecycle lifecycle =
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.addPhaseListener(
new PhaseListener() {

   public void beforePhase() {
  refreshList();
  }

  public void afterPhase() {
  }

   publid PhaseId getPhaseId() {
  return PhaseId.RENDER_RESPONSE;
  }
});

 protected void refreshList() {
 ...
}
...
}


Tom Innes wrote:
> I have a question on how best to handle focus when an error occurs.  
>
> I am currently using the Sandbox focus component and have implemented a
> PhaseListener on my backing beans to set focus to the first input
component
> that has a message associated with it. On each of my backing beans I have
a
> setFocusId and a getFocusId Method.
>
> Consider the following Example
>
> Backing Bean
> CountryQBE
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> CountryForm
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> 
> StateForm
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> Say as a Result of Pressing a command button on the CountryForm an Error
> occurs on the nameField.  When this happens the PhaseListener Fires on all
> three backing beans and sets the FocusId to the nameFieldId.
>
> Thus the CountryQBE, CountryForm and StateForm backing beans all have
their
> focusId property set to nameFieldId.
>
> Is there any way to limit the phase listener to only fire for the current
> form that it is processing? 
>
> Tom 
>
>  
>
>   




Re: Problems with double backing been access or rendering in Tree2

2006-08-01 Thread Andrew Robinson

I am assuming you put business logic in your get property method?

If so, JSF components have the right to call property getters as many
times as they want. You should not put business logic in a get
property method. For instance, putting EL in a rendered property
causes that property to be called many times (usually >= once per
phase). There is no caching of EL values in JSF. That would cause even
more problems as you would not be able to change a EL evaluation once
it had been evaluated once per page and would be disastrous for
components like UIData

If not, could you post more of the code (java for example)?

Thanks,
Andrew

On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Greetings,

I seem to be experiencing problems with getting a a mthod on a Tree2 model
called twice per page-load. While the data is cachable if it was only a
matter of hammering the database, but I'm concerned about the general
performance implications.

The Tree2 backing bean is derived from TreeBacker.java as it exists in the
tomahawk examples, and the Tree2 tree is based on the client-side example
in the same (and affect all tree2 instance on the page, wether client or
server-side. With two tables on the page, the bean gets access four times,
even though there is only one reference to the backing bean in each table,
in the value binding.)

The binding looks like this:



The rest of the definition contains facets and references to both the t
and node variables, but no references to treeBacker

The tree itself actually renders as expected, and while rendering, the
following output (minus trimming of pointless sql) gets logged.

Hibernate: select 
Hibernate: select count(*) 
Hibernate: select count(*) 
Hibernate: select count(*) 
2006-aug-01 19:57:55
org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
Hibernate: select 
Hibernate: select count(*) 
Hibernate: select count(*) 
Hibernate: select count(*) 
2006-aug-01 19:57:56 org.apache.myfaces.shared_impl.config.MyfacesConfig
getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource



It appears to me that the page in question gets rendered twice, once by
tomahawk, and once by myfaces core, which would explain it, but then
surely that means I set up my web.xml entris wrong.. let's have a look at
them too..

   
  Faces Servlet
  javax.faces.webapp.FacesServlet
  1
   

   
  Faces Servlet
  *.faces
   

   
  MyFacesExtensionsFilter
  Faces Servlet
   

   
  MyFacesExtensionsFilter
  /faces/myFacesExtensionResource/*
   


Well, that looks alright to me, and I'm at a loss to explain the doubled
calls to the backing bean, or double rendering of the page, if that is
what is happening.

tomahawk and myfaces core version are:

myfaces-api:1.1.3
myfaces-impl:   1.1.3
tomahawk:   1.1.3

Anyone with any ideas and a bit more experience than me perhaps could tell
me what to look for?

Thanks in advance,

 Johan




Re: Table suggest Ajax problem,

2006-08-01 Thread Gerald Müllan

Hi,

I didn`t ever had this usecase, but as a workaround you can try it out
to let the attribute empty or just set dummy-values. This will result
in js-errors, if you can leave it with that.

What is your need for only showing the table without any functionality?

cheers,

Gerald

On 8/1/06, Grigoras Cristinel <[EMAIL PROTECTED]> wrote:

Hi ,

I have tried table suggest ajax from sandbox and I have found one case
when it's not working.
I want to show in that table some values what are not having "for" or
"forValue" attribute.
Only to view them in table.

How I do that ?

Cristi






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


Re: MyFaces Tomahawk + JSF 1.2 + Facelets + Tomcat

2006-08-01 Thread Jason Lee


Adam Brod wrote:
> 
> I'm holding out for the MyFaces JSF 1.2 implementation.  I know there is a 
> 1.2 branch with activity already, but I don't think there is a planned 
> release date, unfortunately.  I don't think the JSF 1.2 Reference 
> Implementation has a very active open source community - at least their 
> mailing lists are not used much.
> 

Hey, Adam. :)  I'm on the users, dev and issues lists for the RI, and while
the volume may be low (I've never really paid attention to the volume), I
certainly get my questions answered.  I've also found that the devs are
pretty responsive in fixing issues in a manner that is more timely as you
work up the criticality scale. :P  While not dedicated solely to the RI,
##jsf on irc.freenode.net has also been a good resource, with RI luminaries
such as Ed Burns (the spec lead), Ryan Lubke (the RI maintainer), and
Jennifer Ball (official JSF docs, among others) often there and helping.

The last thing I want to do is come on the MyFaces list and push the RI (I
see the competition as very good for both camps), but I'd hate to see the RI
and the very good (and free ;) support we've gotten disparaged unfairly. :)

jason lee
-- 
View this message in context: 
http://www.nabble.com/MyFaces-Tomahawk-%2B-JSF-1.2-%2B-Facelets-%2B-Tomcat-tf2010881.html#a5600591
Sent from the MyFaces - Users forum at Nabble.com.



Horizontal Panel Navigation - panelNavigation2

2006-08-01 Thread fischman_98

Having a lot of trouble getting then Horizontal PanelNavigation to work like
the irian example - 
http://example.irian.at/example-simple-20060801/panelnavigation_4.jsf
http://example.irian.at/example-simple-20060801/panelnavigation_4.jsf 

The dynamic dropdown part is not dynamically displaying upon mouseover.

I have cut and pasted the irian source and used the css.  Can anyone post
some test code and css that they have working?

Thanks.

I am using the June 15 release tomahawk 1.1.3...and MyFaces 1.1.3.


-- 
View this message in context: 
http://www.nabble.com/Horizontal-Panel-Navigation---panelNavigation2-tf2035583.html#a5600977
Sent from the MyFaces - Users forum at Nabble.com.



Additional row rendered in t:dataTable

2006-08-01 Thread Raj Rajendran
MyFaces 1.1.4Tomahawk 1.1.4Sandbox 1.1.4I have a dataTable, with  rowClasses="cxtabletext,cxtabletextshaded" (for alternating colors for rows)At run time, I know there are 3 rows, but then I find that there is an additional row (4th row) rendered with style "cxtabletextshaded" like this:
Has any one seen this before ?It makes the html Table look bad, with an extra row that is getting shaded. Could this be a bug ? Any workarounds for this ?
Same problem occurs with 1.1.3, but using 1.1.1 this problem doesn't happen.Thanks in advance for any help !


Re: Accessing t:saveStated beans

2006-08-01 Thread octoberdan

I forgot to mention that I'd be accessing them via a servlet called by
javascript rendered in the page. How do you access it by ID? Not quite sure
what you mean...
-- 
View this message in context: 
http://www.nabble.com/Accessing-t%3AsaveStated-beans-tf2035271.html#a5601193
Sent from the MyFaces - Users forum at Nabble.com.



Re: MyFaces Tomahawk + JSF 1.2 + Facelets + Tomcat

2006-08-01 Thread octoberdan

Two weeks of slamming my head against the wall, and another week of
converting back over to pure myfaces.
-- 
View this message in context: 
http://www.nabble.com/MyFaces-Tomahawk-%2B-JSF-1.2-%2B-Facelets-%2B-Tomcat-tf2010881.html#a5601280
Sent from the MyFaces - Users forum at Nabble.com.



Re: Accessing t:saveStated beans

2006-08-01 Thread William Huang
you can get a reference of the FacesContext object from the servlet..

William Huang
Product Development Team
   
 octoberdan
 <[EMAIL PROTECTED] 
 et>To 
   users@myfaces.apache.org
 08/01/2006 03:14   cc 
 PM
   Subject 
   Re: Accessing t:saveStated beans
 Please respond to 
 "MyFaces  
Discussion"
 <[EMAIL PROTECTED] 
 ache.org> 
   
   





I forgot to mention that I'd be accessing them via a servlet called by
javascript rendered in the page. How do you access it by ID? Not quite sure
what you mean...
--
View this message in context:
http://www.nabble.com/Accessing-t%3AsaveStated-beans-tf2035271.html#a5601193

Sent from the MyFaces - Users forum at Nabble.com.


Disclaimer: This electronic mail and any attachments are confidential and may 
be privileged. If you are not the intended recipient, please notify the sender 
immediately by replying to this email, and destroy all copies of this email and 
any attachments. Thank you.



Re: AJAX Components and Request Scope Backing Beans

2006-08-01 Thread octoberdan

Let me clarify. Many AJAX Components manipulate and change the properties of
request scope beans (for example the inputAjax) how are the feilds being
updated? How, on the backend, is that bean being reaccessed, isn't it out of
scope? Where is it getting the values from?
-- 
View this message in context: 
http://www.nabble.com/AJAX-Components-and-Request-Scope-Backing-Beans-tf2035337.html#a5601422
Sent from the MyFaces - Users forum at Nabble.com.



Re: AJAX Components and Request Scope Backing Beans

2006-08-01 Thread octoberdan

Final clarification

How does s:inputAjax work?
-- 
View this message in context: 
http://www.nabble.com/AJAX-Components-and-Request-Scope-Backing-Beans-tf2035337.html#a5601532
Sent from the MyFaces - Users forum at Nabble.com.



Re: Accessing t:saveStated beans

2006-08-01 Thread Mike Kienenberger

On 8/1/06, octoberdan <[EMAIL PROTECTED]> wrote:

Is there a way to access the beans persisted with t:saveState? I was going to
implement StateHolder, but I then read
http://issues.apache.org/jira/browse/TOMAHAWK-509 . Can somone please
provide further insite?


On 8/1/06, octoberdan <[EMAIL PROTECTED]> wrote:

I forgot to mention that I'd be accessing them via a servlet called by
javascript rendered in the page. How do you access it by ID? Not quite sure
what you mean...


Depends on what kind of state saving you are using.   I'm not sure how
it works with server-side state saving, but with client-side state
saving, the bean is going to be persisted by encoding it into the
hidden input jsf_state_64 (or maybe it's in jsf_tree_64) form value.

So to access it, you'd have to get the form value and run a
restore-state operation on it.

You might be better off storing the bean in a session-scoped
attribute.   Or perhaps creating a session-scoped Map of such beans
(with some kind of lifespan algorithm) and passing the key to the bean
in the map to your javascript in order to retrieve the bean.

Another possiblity:   Make your servlet into a post-processing servlet
filter.   Call JSF and let it restore the state, then have a
phase-listener move the bean into the request scope and set
responseComplete.   Then your filter can detect the existance of the
bean in the request scope and act accordingly.

Actually maybe you can simply have the JSF phase-listener redirect the
request to your specialty servlet instead of using a servlet filter.


Re: PhaseListener/SetFocus Question

2006-08-01 Thread Mike Kienenberger

Yes, phase listener doesn't seem like the place to handle it.

How many submit buttons do the forms have?  It'd seem like you'd want
to do this in the action or actionListener for each of the UICommands
instead of in a phase listener.

If you're going to use a phase listener, you'll need to determine
which form was submitting.   Don't know how that's done off the top of
my head, but you could set a breakpoint on an action and see how
things got there.


On 8/1/06, Tom Innes <[EMAIL PROTECTED]> wrote:

Thanks for the suggestion Matthias,

Unfortunately that is exactly what I was doing.

My suspicion is that since

countryQBE is a Managed Property of countryForm and
countryForm is a Managed Property of stateForm

that all three Phase Listeners fire.  Unfortunately I don't see a way to
distinguish between them. Does anybody know of a way?

Tom


-Original Message-
From: Matthias Fischer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 01, 2006 1:06 PM
To: MyFaces Discussion
Subject: Re: PhaseListener/SetFocus Question

JavaServerFaces in Action mentions on page 437 that you can register a
phase listerner with a bean. The example shows a bean that refreshes a
list before phase RENDER_RESPONSE. Maybe this helps:

public class MyBean() {

public MyBean() {

LifecycleFactory lifecycleFactory = (LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYLE_FACTORY);
Lifecycle lifecycle =
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.addPhaseListener(
new PhaseListener() {

   public void beforePhase() {
  refreshList();
  }

  public void afterPhase() {
  }

   publid PhaseId getPhaseId() {
  return PhaseId.RENDER_RESPONSE;
  }
});

 protected void refreshList() {
 ...
}
...
}


Tom Innes wrote:
> I have a question on how best to handle focus when an error occurs.
>
> I am currently using the Sandbox focus component and have implemented a
> PhaseListener on my backing beans to set focus to the first input
component
> that has a message associated with it. On each of my backing beans I have
a
> setFocusId and a getFocusId Method.
>
> Consider the following Example
>
> Backing Bean
> CountryQBE
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> CountryForm
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
>
> StateForm
>  - getCode
>  - setCode
>  - getName
>  - setName
>  - setFocusId
>  - getFocusId
>
> Say as a Result of Pressing a command button on the CountryForm an Error
> occurs on the nameField.  When this happens the PhaseListener Fires on all
> three backing beans and sets the FocusId to the nameFieldId.
>
> Thus the CountryQBE, CountryForm and StateForm backing beans all have
their
> focusId property set to nameFieldId.
>
> Is there any way to limit the phase listener to only fire for the current
> form that it is processing?
>
> Tom
>
>
>
>





RE: PhaseListener/SetFocus Question

2006-08-01 Thread Tom Innes
Thanks Mike,

I came to the same conclusion and have implemented it as you suggested. 

I am curious though if anybody knows how to determine which form was
submitting.  Unfortunately I don't have a debugger that I can easily use.

Tom

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 3:59 PM
To: MyFaces Discussion
Subject: Re: PhaseListener/SetFocus Question

Yes, phase listener doesn't seem like the place to handle it.

How many submit buttons do the forms have?  It'd seem like you'd want
to do this in the action or actionListener for each of the UICommands
instead of in a phase listener.

If you're going to use a phase listener, you'll need to determine
which form was submitting.   Don't know how that's done off the top of
my head, but you could set a breakpoint on an action and see how
things got there.


On 8/1/06, Tom Innes <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion Matthias,
>
> Unfortunately that is exactly what I was doing.
>
> My suspicion is that since
>
> countryQBE is a Managed Property of countryForm and
> countryForm is a Managed Property of stateForm
>
> that all three Phase Listeners fire.  Unfortunately I don't see a way to
> distinguish between them. Does anybody know of a way?
>
> Tom
>
>
> -Original Message-
> From: Matthias Fischer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 01, 2006 1:06 PM
> To: MyFaces Discussion
> Subject: Re: PhaseListener/SetFocus Question
>
> JavaServerFaces in Action mentions on page 437 that you can register a
> phase listerner with a bean. The example shows a bean that refreshes a
> list before phase RENDER_RESPONSE. Maybe this helps:
>
> public class MyBean() {
>
> public MyBean() {
>
> LifecycleFactory lifecycleFactory = (LifecycleFactory)
> FactoryFinder.getFactory(FactoryFinder.LIFECYLE_FACTORY);
> Lifecycle lifecycle =
> lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
> lifecycle.addPhaseListener(
> new PhaseListener() {
>
>public void beforePhase() {
>   refreshList();
>   }
>
>   public void afterPhase() {
>   }
>
>publid PhaseId getPhaseId() {
>   return PhaseId.RENDER_RESPONSE;
>   }
> });
>
>  protected void refreshList() {
>  ...
> }
> ...
> }
>
>
> Tom Innes wrote:
> > I have a question on how best to handle focus when an error occurs.
> >
> > I am currently using the Sandbox focus component and have implemented a
> > PhaseListener on my backing beans to set focus to the first input
> component
> > that has a message associated with it. On each of my backing beans I
have
> a
> > setFocusId and a getFocusId Method.
> >
> > Consider the following Example
> >
> > Backing Bean
> > CountryQBE
> >  - getCode
> >  - setCode
> >  - getName
> >  - setName
> >  - setFocusId
> >  - getFocusId
> >
> > CountryForm
> >  - getCode
> >  - setCode
> >  - getName
> >  - setName
> >  - setFocusId
> >  - getFocusId
> >
> >
> > StateForm
> >  - getCode
> >  - setCode
> >  - getName
> >  - setName
> >  - setFocusId
> >  - getFocusId
> >
> > Say as a Result of Pressing a command button on the CountryForm an Error
> > occurs on the nameField.  When this happens the PhaseListener Fires on
all
> > three backing beans and sets the FocusId to the nameFieldId.
> >
> > Thus the CountryQBE, CountryForm and StateForm backing beans all have
> their
> > focusId property set to nameFieldId.
> >
> > Is there any way to limit the phase listener to only fire for the
current
> > form that it is processing?
> >
> > Tom
> >
> >
> >
> >
>
>
>



Re: Table suggest Ajax problem,

2006-08-01 Thread Grigoras Cristinel




Gerald Müllan wrote:
Hi,
  
  
I didn`t ever had this usecase, but as a workaround you can try it out
  
to let the attribute empty or just set dummy-values. This will result
  
in js-errors, if you can leave it with that.
  
  
What is your need for only showing the table without any functionality?
  
  
cheers,
  
  
Gerald
  

Hi Gerald,

Thanks for answer.
I show you some example and the result of my investigations
I have in suggest input only the cod of object, an in table more fields.


  

  cod
  Description
  Quantity


  acod
  
  description a
  
  1
  


  bcod
  
  description b
  
  2
  

  



So i need only one column to bind and the others only to show.
If  I use fake for or forLabel id-s will throw exception, element id
not found.
If  I don't use for or forLabel attribute the table is not display
because _javascript_ errors. 
the content of  element in ajax answer is empty.

Cristi

On 8/1/06, Grigoras Cristinel <[EMAIL PROTECTED]> wrote:
  
  Hi ,


I have tried table suggest ajax from sandbox and I have found one case

when it's not working.

I want to show in that table some values what are not having "for" or

"forValue" attribute.

Only to view them in table.


How I do that ?


Cristi




  
  
  






Re: Problems with double backing been access or rendering in Tree2

2006-08-01 Thread johan
Thank you for your quick response.

There isn't any buisness logic in the get method itself just access to the
data model, modelled rather directly after the example code provided
(which builds a non-cached TreeNode tree dicretly in the get property
method, although it's data-aquisition is much cheaper than mine).

Armed with the knowledge that multiple access to the property is allowed
and expected behaviour, I'll deal with it, easily enough. I was mostly
concerned that things weren't as they should be in my installation.

Thanks,
Johan


> I am assuming you put business logic in your get property method?
>
> If so, JSF components have the right to call property getters as many
> times as they want. You should not put business logic in a get
> property method. For instance, putting EL in a rendered property
> causes that property to be called many times (usually >= once per
> phase). There is no caching of EL values in JSF. That would cause even
> more problems as you would not be able to change a EL evaluation once
> it had been evaluated once per page and would be disastrous for
> components like UIData
>
> If not, could you post more of the code (java for example)?
>
> Thanks,
> Andrew
>
> On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Greetings,
>>
>> I seem to be experiencing problems with getting a a mthod on a Tree2
>> model
>> called twice per page-load. While the data is cachable if it was only a
>> matter of hammering the database, but I'm concerned about the general
>> performance implications.
>>
>> The Tree2 backing bean is derived from TreeBacker.java as it exists in
>> the
>> tomahawk examples, and the Tree2 tree is based on the client-side
>> example
>> in the same (and affect all tree2 instance on the page, wether client or
>> server-side. With two tables on the page, the bean gets access four
>> times,
>> even though there is only one reference to the backing bean in each
>> table,
>> in the value binding.)
>>
>> The binding looks like this:
>>
>> > varNodeToggler="t" showRootNode="false">
>>
>> The rest of the definition contains facets and references to both the t
>> and node variables, but no references to treeBacker
>>
>> The tree itself actually renders as expected, and while rendering, the
>> following output (minus trimming of pointless sql) gets logged.
>>
>> Hibernate: select > Hibernate: select count(*) 
>> Hibernate: select count(*) 
>> Hibernate: select count(*) 
>> Hibernate: select count(*) 
>> 2006-aug-01 19:57:55
>> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig
>> getStringInitParameter
>> INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
>> found, using default value
>> org.apache.myfaces.renderkit.html.util.DefaultAddResource
>> Hibernate: select > Hibernate: select count(*) 
>> Hibernate: select count(*) 
>> Hibernate: select count(*) 
>> Hibernate: select count(*) 
>> 2006-aug-01 19:57:56 org.apache.myfaces.shared_impl.config.MyfacesConfig
>> getStringInitParameter
>> INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS'
>> found, using default value
>> org.apache.myfaces.renderkit.html.util.DefaultAddResource
>>
>>
>>
>> It appears to me that the page in question gets rendered twice, once by
>> tomahawk, and once by myfaces core, which would explain it, but then
>> surely that means I set up my web.xml entris wrong.. let's have a look
>> at
>> them too..
>>
>>
>>   Faces Servlet
>>   javax.faces.webapp.FacesServlet
>>   1
>>
>>
>>
>>   Faces Servlet
>>   *.faces
>>
>>
>>
>>   MyFacesExtensionsFilter
>>   Faces Servlet
>>
>>
>>
>>   MyFacesExtensionsFilter
>>   /faces/myFacesExtensionResource/*
>>
>>
>>
>> Well, that looks alright to me, and I'm at a loss to explain the doubled
>> calls to the backing bean, or double rendering of the page, if that is
>> what is happening.
>>
>> tomahawk and myfaces core version are:
>>
>> myfaces-api:1.1.3
>> myfaces-impl:   1.1.3
>> tomahawk:   1.1.3
>>
>> Anyone with any ideas and a bit more experience than me perhaps could
>> tell
>> me what to look for?
>>
>> Thanks in advance,
>>
>>  Johan
>>
>>
>
>




Re: "rendered" condition does not work as expected

2006-08-01 Thread Grigoras Cristinel

Hi Mike,

I have this problem many time using jsp, and the answer was to create 
another page

OR to use component binding.
It's look like a problem in the moment of jsp page compilation.
Please find a real solution.


Cristi


Mike Kienenberger wrote:

Moving to the facelets mailing list

I've been thinking about this a bit, because it seems relevent to my
own issues where el expressions and outputText fields are being cached
somehow.

It doesn't seem like the right behavior to me that a rendered=false
container component would render children and evaluate the el bindings
for the children.

I don't have time to look at it right now, but I'm probably going to
do so later this month.

Venkat, do you have the time to create a small test project
demonstrating this behavior (it seems pretty straight-forward) in
facelets, and possibly also demonstrating how it works under jsp?   If
so, maybe you could open a facelets issue on this, and I'll see if I
can track down why it's happening and maybe submit a patch for it at
some future date.

On 8/1/06, Venkat Rao <[EMAIL PROTECTED]> wrote:


Thanks for the pointer. I am now using  and  as 
suggested

by you, and it works better, but not perfectly.

I do a postback in which the graphics object list is modified (one of 
the

elements is deleted). So the component tree gets modified when rendering
after the postback. Now, the display/behavior of the components 
rendered is

not correct (missing elements, incorrect bindings etc).

In short, each time my page is rendered, the component tree gets 
modified in
a significant way, based on the contents of my graphics list, and 
based on
the type of the object in the list. Using  or  
does

not seem to be cutting it (unless I am doing something wrong)

Is the problem I am having genuine? Is the solution to do a binding of a
UIComponent (like PanelGroup), and (re)create the component tree 
underneath
it from my Java code (don't quite like this approach, as the Facelet 
xhtml

expression is much more elegant)

Would appreciate any pointers. Thanks,

-- venkat

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 10:16 PM
To: MyFaces Discussion
Subject: RE: "rendered" condition does not work as expected


The problem with using rendered in this way is that Facelets still 
builds
the component tree for elements that are not rendered, but your 
component

tree is broken (because the binding you refer to doesn't exist).

This is one of those cases where you actualy need to modify the 
component
tree based on your condition(instead of turning components on and 
off) so

you'll probably need to use c:forEach and c:if

-Original Message-
From: Venkat Rao [mailto:[EMAIL PROTECTED]
Sent: Mon 31-Jul-06 11:42 AM
To: 'MyFaces Discussion'
Subject: "rendered" condition does not work as expected

My code inside a "rendered" flag is getting invoked even when the 
condition

is false. I am iterating over a list of Graphics objects to display
information about each by calling the object specific methods. The code
works fine if I use only . If I use  
however, the

rendered property does not seem to be taking effect.




[Circle] Radius: 



[Rectangle] Length: value="#{graphicsObj.length}"/>





The above works fine, as expected. However, if I change from 


to , it complains :

javax.faces.el.PropertyNotFoundException: /graphics.xhtml @24,54
value="#{graphicsObj.radius}": Bean: Rectangle, property: radius

So, the first block of code is getting executed for a Rectangle 
object when

using a  but not when using .

Any help in solving the problem is appreciated. The code for the 
Circle and

Rectangle beans is given below:

public class Circle implements Serializable
{
public String getObjType() {
return "circle";
}

int radius;
public void setRadius(int radius) {
this.radius = radius;
}
public int getRadius() {
return this.radius;
}
}

public class Rectangle implements Serializable
{
public String getObjType() {
return "rectangle";
}

private int length;
public void setLength(int length) {
this.length = length;
}
public int getLength() {
return this.length;
}
}










Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-01 Thread Thomas_Perry






Thank you all for your responses. It's been a great help and very
interesting reading.

We have a shared jsp page; there are three paths to it.  Navigation has to
return to
the jsp that took the user to this particular page.

So we set a 'context' variable in session and wanted to use this for
navigation;
it would have one of three values and would invoke the jsp where the user
began.

James gave me a syntax that pulled the variable from sessionScope, but in
fact
that did not work in an action button; it does work with other tags, but
the button
tag wanted a method when I used a binding tag.  I haven't tried a jstl
expression.

In any case, we have a method that returns the session scope variable and
are
using that with the action button of the shared jsp, and this controls
navigation ok.

If anyone has resolved this problem in another way, I'd love to read about.

Thanks again to everyone.
Tom



  
 "Cosma   
 Colanicchia" 
 <[EMAIL PROTECTED]  To
 om>   "MyFaces Discussion"   

 08/01/2006 10:36   cc
 AM   
   Subject
   Re: is there a way to pull a   
 Please respond to session scope variable directly
 "MyFaces  into a   jsf tag?  
Discussion"   
 <[EMAIL PROTECTED]
 ache.org>
  
  
  




You can always write an action method, and return different outcomes,
if you want to reuse the view.

Cosma

2006/8/1, Matthias Fischer <[EMAIL PROTECTED]>:
>
> Hm, that's right. what I had in mind when I answered Tom's question was
> that session.foo contains an action binding string. But then you would
> have to call
> #{${session.foo}} - if that works at all.
>
> If that is what Tom intended it does make sense to me:
> A button that leads to a different action depending on a session
attribute.
> For example you could think of a list where you can select items.
> Depending on user input of previous dialogues the session attribute foo
> would be set to an action that is to be performed on the selected items
> when the button is pressed.
> I am not sure whether this works but that would allow you to reuse view
> in different workflows.
>
>
> > It may work... can I ask why you are designing things this way? It
> > seems a bit odd to me to add another level of abstraction on page
> > navigation: an expression that resolve to a string that is matched
> > against navigation rules that finally defines a view (!)
> >
> > Cosma
> >
> > 2006/7/31, Matthias Fischer <[EMAIL PROTECTED]>:
> >>
> >> > I think that the problem is that, if EL is found in the action
> >> > attribute, JSF tries to use it as an action method (it attemps to
> >> > "call" it)..
> >> That's what I suppose. So JSTL EL should solve it as we have no method
> >> bindings here...
> >>
> >>
> >>
> >>
>
>
> --
> Schützen Sie das was Ihnen wichtig ist !
> http://iam-solution.de
> Weitere Details verrate ich Ihnen gerne am Telefon. Einfach anrufen!
>
> -
> Matthias Fischer  Fon: +49-7541-6047-148
> Dipl. Informatiker (FH)   Fax: +49-7541-6047-111
> doubleSlash Net-Business GmbH [EMAIL PROTECTED]
> Müllerstr. 12 B   http://doubleSlash.de
> 88045 Friedrichshafen
>
>





This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended re

RE: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Thomas_Perry






Thank you all for responding to my question.

I probably should have begun by stating my problem:

I want to be able to reset an update form to it's initial state.  Sounds
simple enough, but...

A button of type="reset" works fine, but on this jsp, a form submit may
have
occurred to refresh lists on the page.  I'm seeing that once a submit
occurs,
reset does not return the original bean properties if they have been
modified.

even cancel with immediate="true" does not return original properties
if a property has been modified before a form submit.

So I was trying to cheat by saving a copy of the update bean in *itself*.

My intent was to get the update bean from session, then get the *copy*
of the bean and put that back in session.

But what I saw was that the copy of the update bean also contained any
modification.
That triggered my question about how deeply myfaces resolved variable
references.

I've since been told that I messed up by storing a copy of the bean in
itself;
I was storing only a reference to the bean, not a separate physical object
I could manipulate.

a simplified picture...

Class MyBean {
  private String foo;   //with getters and setters
  private MyBean mybean;   //with getters and setters
}

MyBean is the update bean in session.

After foo was initialized and before I put MyBean in session, I did
something like

myBean.setMyBean(myBean);

That's what I mean by a copy in itself, hoping to preserve the original
value of foo.

It's stupid I know, I was wrong and I've learned a good lesson.

Thanks to all.
Tom



  
 "Dhananjay   
 Prasanna"
 <[EMAIL PROTECTED]  To
 ncy.qld.gov.au>   "MyFaces Discussion"   

 07/31/2006 08:49   cc
 PM   
   Subject
   RE: how deeply into a bean does
 Please respond to myfaces update value references?   
 "MyFaces 
Discussion"   
 <[EMAIL PROTECTED]
 ache.org>
  
  




Hi Craig,
We've had this discussion regarding the $ separator on this list not long
ago.

I am aware of and have been using the spring resolver, however there is a
namespace collision between spring beans and jsf beans?the resolver will
prefer spring beans of the same id (assuming the spring delegating resolver
is first). There is no way to discriminate between them without ugly global
renames or naming policies that may be cumbersome to the business.
Admittedly (in the spring docs), the delegating resolver is quite a
rudimentary integration solution.

Tapestry 4 supports a "service protocol" where injection id's prefixed with
a service name will delegate to different resolver (i.e.: "spring:myBean"
as opposed to "myBean"). The naming convention is also elegant. Anyway it
is just a suggestion?if spring and other (seam?) integration compatibility
is going to be a consideration for jsf 1.3(?).




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan


There is no special support for "namespaces" in JSF 1.2 (the most recent
finalized spec), but nothing really stops you from simulating this.  I tend
to use "$" instead of ":" as a separator, because it is a legal character
in identifiers so you don't have to go quoting things.



 Or the more adventurous of us who want to try (or need) and delegate some
 DI to spring or hivemind. ;)

I don't know of any Hivemind integration, but it's already there for
Spring.  In 1.2.5 they started offering a custom variable resolver that can
use Spring to create singletons or a new bean on each request -- and it
happens transparently to your usage of value binding and method binding
expressions.  In Spring 2, the story is even better since they've added the
concept of scopes, so you can tell Spring to create a new session scoped
bean.  From the JSF perspective, you just use expressions like you always
have ... it's just that Spring will be used instead of managed beans to
construct and return the instances.

Craig



   
 This correspondence is for the named persons only.
 It may con

Re: [Tobago] - How to programmatically set the label attribute of tc:box

2006-08-01 Thread Udo Schnurpfeil

You can set any attribute of any UIComponent in JSF like:

  component.getAttributes().put(key, value);

where in your case key is "label" and value is your label.
"label" should be used as TobagoConstants.ATTR_LABEL

Hope that helps

Udo

P.S.: in later versions there might be a setter for the label.

John schrieb:

Ok, I have the box bound to a UIPanel component.
 
But there's no setValue() method.
 
Ok... It's in some sub-facet or attribute or something, but nothing I 
try works
 
What is the trick?  Help!
 
John


Re: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Mike Kienenberger

On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I want to be able to reset an update form to it's initial state.  Sounds
simple enough, but...


For what it's worth, I handled this by creating a "public String
clear() { return "clear"; } action method and a
redirect-back-to-the-same-page navigation rule.

 
   /pages/mypage.xhtml
   
 clear
 /pages/mypage.xhtml
  
   
 

I don't really like it, but resetting all of the page backing been
values to null in an action wasn't working, and I didn't want to spend
the time to track down why.

(You can use use action="clear" and skip the java code, but I have my
commented-out java-based clearing code in there still.)


Re: window identifier?

2006-08-01 Thread Adam Winer
MyFaces Trinidad includes a pageFlowScope that addresses multiwindow support (among other things).-- Adam WinerOn 7/28/06, Christopher Cudennec
 <[EMAIL PROTECTED]> wrote:Hi everbody,
(how) can I get an identifier for the window of a client request? Weneed to support multiple windows at the same time and therefore can'tuse session scoped beans. Using request scoped beans would be tooexpensive, as far as I thought about it ;). By knowing the window
identifier one could solve this problem pretty easily. Is that possible?I found something about a "sequence parameter" but I couldn't find outhow to use it properly -> I didn't find the documentation. When trying
it out in my application the sequence parameter always was null. Does itonly work with forms/posts?Cheers,Christopher


Re: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Andrew Robinson

I have had to do similar things but took a different approach.

First I assumed users will not always be nice. They will sometimes use
the back button, sometimes close the browser, etc.

Second, I don't want to keep un-applied changes around (so in a
list-detail view, the list shouldn't show changes until the details
are saved)

My solution, was instead of keeping the old values around, was to
always work on a clone.

So, when the user runs an edit() action, I clone the object from the
list to edit. The user works on that object for a while, and either:
(1) saves, (2) cancels or (3) leaves the page

In the case of (1), I save the changes to the database, and then update the list
In the case of (2), I simply throw the clone out (equivalent of clear.
If you wanted to reset and keep editing, just generate a new clone)
In the case of (3), the clone just sits around until my Seam
conversation is GC'd or the user starts editing a new item (in which
case the clone is recreated, overwriting the old clone)

Thought I would mention in case that is the business logic/page flow
you are trying to achieve.

-Andrew

On 8/1/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I want to be able to reset an update form to it's initial state.  Sounds
> simple enough, but...

For what it's worth, I handled this by creating a "public String
clear() { return "clear"; } action method and a
redirect-back-to-the-same-page navigation rule.

  
/pages/mypage.xhtml

  clear
  /pages/mypage.xhtml
  

  

I don't really like it, but resetting all of the page backing been
values to null in an action wasn't working, and I didn't want to spend
the time to track down why.

(You can use use action="clear" and skip the java code, but I have my
commented-out java-based clearing code in there still.)



Re: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Mike Kienenberger

Yep, this is the same thing I do.   I put my DataObject in a special
DataContext (editing scratchpad area) which I store in the component
tree with t:saveState.

If the user saves, I commit the changes.   If the user cancels, I
nullify the object and context.   If the user leaves the page, the
data leaves with them (client-side state saving).

However, this is probably different than wanting to reset a form.   My
use case for resetting a form is a search criteria page.

On 8/1/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:

I have had to do similar things but took a different approach.

First I assumed users will not always be nice. They will sometimes use
the back button, sometimes close the browser, etc.

Second, I don't want to keep un-applied changes around (so in a
list-detail view, the list shouldn't show changes until the details
are saved)

My solution, was instead of keeping the old values around, was to
always work on a clone.

So, when the user runs an edit() action, I clone the object from the
list to edit. The user works on that object for a while, and either:
(1) saves, (2) cancels or (3) leaves the page

In the case of (1), I save the changes to the database, and then update the list
In the case of (2), I simply throw the clone out (equivalent of clear.
If you wanted to reset and keep editing, just generate a new clone)
In the case of (3), the clone just sits around until my Seam
conversation is GC'd or the user starts editing a new item (in which
case the clone is recreated, overwriting the old clone)

Thought I would mention in case that is the business logic/page flow
you are trying to achieve.

-Andrew

On 8/1/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I want to be able to reset an update form to it's initial state.  Sounds
> > simple enough, but...
>
> For what it's worth, I handled this by creating a "public String
> clear() { return "clear"; } action method and a
> redirect-back-to-the-same-page navigation rule.
>
>   
> /pages/mypage.xhtml
> 
>   clear
>   /pages/mypage.xhtml
>   
> 
>   
>
> I don't really like it, but resetting all of the page backing been
> values to null in an action wasn't working, and I didn't want to spend
> the time to track down why.
>
> (You can use use action="clear" and skip the java code, but I have my
> commented-out java-based clearing code in there still.)
>



RE: "rendered" condition does not work as expected

2006-08-01 Thread Mr Arvind Pandey
Hi Venkat!

 If you have two pulic classes then there must be
two different beans in your xml file, say circle and
rectangle. In first panelGroup use
rendered="#{circle.objType == 'circle'}" and in second
one use rendered="#{rectangle.objType ==
'rectangle'}". It seems as if in your code rendered
property is working as expected. 

Arvind.

> -Original Message-
> From: Venkat Rao [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 1 August 2006 2:43 AM
> To: 'MyFaces Discussion'
> Subject: "rendered" condition does not work as
> expected
> 
> My code inside a "rendered" flag is getting invoked
> even when the
> condition is false. I am iterating over a list of
> Graphics objects to
> display information about each by calling the object
> specific methods.
> The code works fine if I use only . If
> I use 
> however, the rendered property does not seem to be
> taking effect.
> 
>  value="#{gfx.graphicsObjList}">
> 
> 
> [Circle] Radius:  value="#{graphicsObj.radius}"/>
> 
> 
> 
> [Rectangle] Length:  value="#{graphicsObj.length}"/>
> 
> 
> 
> 
> The above works fine, as expected. However, if I
> change from
>  to , it complains :
> 
> javax.faces.el.PropertyNotFoundException:
> /graphics.xhtml @24,54
> value="#{graphicsObj.radius}": Bean: Rectangle,
> property: radius
> 
> So, the first block of code is getting executed for
> a Rectangle object
> when using a  but not when using
> .
> 
> Any help in solving the problem is appreciated. The
> code for the Circle
> and Rectangle beans is given below:
> 
> public class Circle implements Serializable {
> public String getObjType() {
> return "circle";
> }
> 
> int radius;
> public void setRadius(int radius) {
> this.radius = radius;
> }
> public int getRadius() {
> return this.radius;
> }
> }
> 
> public class Rectangle implements Serializable {
> public String getObjType() {
> return "rectangle";
> }
> 
> private int length;
> public void setLength(int length) {
> this.length = length;
> }
> public int getLength() {
> return this.length;
> }
> }
> 
> 
> This correspondence is for the named persons only.
> It may contain confidential or privileged
> information or both.
> No confidentiality or privilege is waived or lost by
> any mis transmission.
> If you receive this correspondence in error please
> delete it from your system immediately and notify
> the sender.
> You must not disclose, copy or relay on any part of
> this correspondence, if you are not the intended
> recipient.
> Any opinions expressed in this message are those of
> the individual sender except where the sender
> expressly,
> and with the authority, states them to be the
> opinions of the Department of Emergency Services,
> Queensland.
> 




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: [tree2] Anyone using tree2 and hibernate?

2006-08-01 Thread Mr Arvind Pandey
Hi
   I am using tomahawk with hibernate. But facing
problems and trying to get work aroung for that.

Arvind


--- "ir. ing. Jan Dockx" <[EMAIL PROTECTED]> wrote:

> respond; what do you want to know?
> 
> On 30 Jul 2006, at 18:37, Sean Schofield wrote:
> 
> > I'm working on a full blown example of several
> technologies (including
> > tomahawk and hibernate.)  I haven't actually used
> tree2 with a dynamic
> > model yet so I'm curious to test my own creation
> and see what's
> > lacking.
> >
> > I will be going through the old dynamic tree2
> discussions of course
> > but I have some specific questions as it pertains
> to hibernate.  So if
> > anyone wants to share their tree2/hibernate
> experience please respond.
> >
> > TIA,
> > Sean
> 
> 




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-01 Thread Cosma Colanicchia

This is a common problem.. you should look at the Shale Dialog
Manager: http://shale.apache.org/features-dialog-manager.html, it
tries to address this very exact problems.

Cosma

2006/8/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:







Thank you all for your responses. It's been a great help and very
interesting reading.

We have a shared jsp page; there are three paths to it.  Navigation has to
return to
the jsp that took the user to this particular page.

So we set a 'context' variable in session and wanted to use this for
navigation;
it would have one of three values and would invoke the jsp where the user
began.

James gave me a syntax that pulled the variable from sessionScope, but in
fact
that did not work in an action button; it does work with other tags, but
the button
tag wanted a method when I used a binding tag.  I haven't tried a jstl
expression.

In any case, we have a method that returns the session scope variable and
are
using that with the action button of the shared jsp, and this controls
navigation ok.

If anyone has resolved this problem in another way, I'd love to read about.

Thanks again to everyone.
Tom




 "Cosma
 Colanicchia"
 <[EMAIL PROTECTED]  To
 om>   "MyFaces Discussion"
   
 08/01/2006 10:36   cc
 AM
   Subject
   Re: is there a way to pull a
 Please respond to session scope variable directly
 "MyFaces  into a   jsf tag?
Discussion"
 <[EMAIL PROTECTED]
 ache.org>







You can always write an action method, and return different outcomes,
if you want to reuse the view.

Cosma

2006/8/1, Matthias Fischer <[EMAIL PROTECTED]>:
>
> Hm, that's right. what I had in mind when I answered Tom's question was
> that session.foo contains an action binding string. But then you would
> have to call
> #{${session.foo}} - if that works at all.
>
> If that is what Tom intended it does make sense to me:
> A button that leads to a different action depending on a session
attribute.
> For example you could think of a list where you can select items.
> Depending on user input of previous dialogues the session attribute foo
> would be set to an action that is to be performed on the selected items
> when the button is pressed.
> I am not sure whether this works but that would allow you to reuse view
> in different workflows.
>
>
> > It may work... can I ask why you are designing things this way? It
> > seems a bit odd to me to add another level of abstraction on page
> > navigation: an expression that resolve to a string that is matched
> > against navigation rules that finally defines a view (!)
> >
> > Cosma
> >
> > 2006/7/31, Matthias Fischer <[EMAIL PROTECTED]>:
> >>
> >> > I think that the problem is that, if EL is found in the action
> >> > attribute, JSF tries to use it as an action method (it attemps to
> >> > "call" it)..
> >> That's what I suppose. So JSTL EL should solve it as we have no method
> >> bindings here...
> >>
> >>
> >>
> >>
>
>
> --
> Schützen Sie das was Ihnen wichtig ist !
> http://iam-solution.de
> Weitere Details verrate ich Ihnen gerne am Telefon. Einfach anrufen!
>
> -
> Matthias Fischer  Fon: +49-7541-6047-148
> Dipl. Informatiker (FH)   Fax: +49-7541-6047-111
> doubleSlash Net-Business GmbH [EMAIL PROTECTED]
> Müllerstr. 12 B   http://doubleSlash.de
> 88045 Friedrichshafen
>
>





This message is intended for the recipient only and is not meant to be 
forwarded or distributed in any other format. This communication is for 
informational purposes only.  It is not intended as an offer or solicitation 
for the purchase or sale of any financial instrument, or security, or as an 
official confirmation of any transaction.  Putnam does not accept purchase or 
redemptions of securities, instructions, or authorizations that are sent via 
e-mail.   All market prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without notice.  Any 
comments or statements made herein do not necessarily reflect those of Putnam, 
LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are 
not the intended recipient of this e-mail, please delete the e-mail.