Re: A beginner question

2006-05-10 Thread Mirek B.

Hello Chrisi,

what you need is to use h:commandLink instead of simple link
on page2, write a navigation case from page1 to page2 and then either:

a) Write an action method for the backing bean of page2, which
sets the controller.name property, or

b) Use the Tomahawk t:updateActionListener extension, as in this:
h:commandLink value=Go to page 2 action=goPage1
  t:updateActionListener property=#{controller.name} value=Chrisi /
/h:commandLink

Regards
Mirek

Chrisi wrote:

Hello,
 
this is a beginner question:
 
I have two java server faces pages.
 
Nr.1  'page1.faces':Contains just a simple form with an input-field 
like the following

h:inputText value=#{controller.name http://controller.name}/
 
Nr.2 'page2.faces':   Should contain a simple link to 'page1.faces'.  
When clicking on
the link, a value like 'Chrisi' should be transfert to the text-field 
and page1.faces should

be rendered.
 
What is the JSF way to do this right?

Sure, I can do something like this a href=page1.faces?name=Chrisi and
let the page1.faces check the parameter 'name' using EL.
But there should be a better way using the JSF lifecycle and the 
controller/modell concept, right?


--
Thanks and Greetings
Chrisi






Re: A beginner question

2006-05-10 Thread Mirek B.
WEB-INF is protected from outside access as it's used to store 
configuration files. You need to place your jsp files somewhere else, 
the root directory should work just fine.


Also, you need just one rule to go from page2 to page1, like

navigation-rule
  from-view-id/page2.jspfrom-view-id
  navigation-case
 from-outcomegoPage1/from-outcome
 to-view-id/page1.jsp/to-view-id
   /navigation-case
/navigation-rule

assuming you have your jsp files in the root directory.

Remember that the content of from-outcome has to be the same as the 
string in the action attribute of the commandLink tag (or, the return 
value of the action method, if you provide one).


Mirek

Chrisi wrote:

Hello Mirek,

thanks for clarification!

I tried to use the h:commandLink and run into a second question. ;)

page2 is a jsp-file that is stored inside the WEB-INF directory.
When clicking on the generated link of the commandLink-component I get 
the follwing
404-error:   /testapp/WEB-INF/dir/page2.faces  - The requested resource 
is not available.


Does this mean, that hidden jsp-files  inside WEB-INF couldn't be used 
for a Faces-request?


My navigation rule looks like this:

navigation-rule
  from-view-id/page1.jspfrom-view-id
  navigation-case
 from-outcomesuccess/from-outcome
  to-view-id/WEB-INF/dir/page2.jsp/to-view-id
   /navigation-case
/navigation-rule

I tried a second navigation-rule back from page2 to page1, but the 
error-message remains?

Is a second navigation-rule necessary or is the WEB-INF the problem?

Thanks again!
 Chrisi

On 5/10/06, *Mirek B.* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:


Hello Chrisi,

what you need is to use h:commandLink instead of simple link
on page2, write a navigation case from page1 to page2 and then either:

a) Write an action method for the backing bean of page2, which
sets the controller.name http://controller.name property, or

b) Use the Tomahawk t:updateActionListener extension, as in this:
h:commandLink value=Go to page 2 action=goPage1
   t:updateActionListener property=#{controller.name
http://controller.name} value=Chrisi /
/h:commandLink

Regards
Mirek

Chrisi wrote:
  Hello,
 
  this is a beginner question:
 
  I have two java server faces pages.
 
  Nr.1  'page1.faces':Contains just a simple form with an
input-field
  like the following
  h:inputText value=#{controller.name http://controller.name
http://controller.name}/
 
  Nr.2 'page2.faces':   Should contain a simple link to ' page1.faces'.
  When clicking on
  the link, a value like 'Chrisi' should be transfert to the text-field
  and page1.faces should
  be rendered.
 
  What is the JSF way to do this right?
  Sure, I can do something like this a
href=page1.faces?name=Chrisi and
  let the page1.faces check the parameter 'name' using EL.
  But there should be a better way using the JSF lifecycle and the
  controller/modell concept, right?
 
  --
  Thanks and Greetings
  Chrisi







Re: There is a string com.sun.faces.saveStateFieldMarker on my screen, even though my managed bean implements Serializable?

2006-05-10 Thread Matthias Wessendorf

Gary: Thank you, I'm running Sun Java System Application Server 8.2 and I'll
check the classpath for the domain in the morning.


That one is using RI inside. Means, your application doesn't need JSF runtime
(since its inside the server already)

If using Tomcat (standalone) you *need* a JSF runtime (myfaces), since
Tomcat 5.x doesn't include a JSF runtime

-Matthias


[m2] Problems when getting artifacts using an internal repo (proxy problem?)

2006-05-10 Thread Bruno Aranda

Hi,

I am trying to create a pom for an existing project and I have setup
an internal repository for all those jars that I need which are not
present in ibiblio. In the institution where I work, there is a proxy.

When I include the repository section in my pom:

...

repositories
   repository
   idmy-repo/id
   nameMy interlanl repository/name
   urlhttp://www.myorganization.org/m2repo/url
   /repository
   /repositories

...

I keep getting these kind of warnings:

Downloading: 
http://www.ebi.ac.uk/~maven/m2repo/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-5/wagon-ssh-external-1.0-alpha-5.pom
50K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'93acd1eaeb3d27ec9f89ab480f384fdce57578ca'; remote = 'html
script' - RETRYING
...
and later:

[WARNING] POM for
'commons-collections:commons-collections:pom:3.1:compile' is invalid.
It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'commons-logging:commons-logging:pom:1.0.4:compile'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
...

It seems to me like there is a proxy problem. I have setup the proxy
details in my settings.xml file to no avail... Possibly I have
something misconfigured somewhere... anywhere have an idea where to
look?

Thanks!

Bruno


RE: MyFaces support for Facelets

2006-05-10 Thread Jesse Alexander \(KSFD 121\)
I vote for option 2.



Option 3 might make sense if the compatibility-option is important.
The pointer to the download-packages can be held in myfaces-doc/-wiki,
together with a matrix for the compatible versions...

regards
Alexander

 -Original Message-
 From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 09, 2006 10:05 PM
 To: MyFaces Discussion
 Subject: MyFaces support for Facelets
 
 Until now, most people are using the WIKI[1] for getting myfaces to
 work with facelets. I was wondering if we want to make MyFaces include
 support for facelets natively. This should be able to be done in such
 a way to prevent problems for those that do not use facelets.
 
 Option 1)
 Add everything to tomahawk.jar including the TagHandler classes and
 taglib.xml file(s).
 
 This is easiest, and will not cause issues since non-facelet users
 will not be using those classes, and therefore if they don't have
 facelets in their classpath, it shouldn't matter.
 
 Option 2)
 Create a new myfaces jar file (tomahawk-facelets-1.1.2.jar for
 example) that contains only the code and configuration necessary to
 plug tomahawk into facelets.
 
 This is possibly more elegant but more of a pain to setup.
 
 Option 3)
 Maintain all this at jsf-comp.
 
 This works, but new users may not know about jsf-comp and it is harder
 to stay in sync with facelet and myfaces version changes (since it is
 not tied into the release cycle).
 
 Since facelets hasn't changed the taglib.xml structure at all, facelet
 version should not be a major issue. This would also make issues like
 what tree2 had a mute point since we could include component handlers
 built in to translate any non-standard logic in the Tag classes.
 
 This methodology could be applied to the sandbox as well. Once there
 is some code in SVN I would think myfaces developers could easily
 maintain their configuration for their components as well since there
 would be examples from other components to learn from (so even
 developers without facelets experience shouldn't have any issues).
 
 What do you think?
 -Andrew
 
 [1] http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
 


Re: [m2] Problems when getting artifacts using an internal repo (proxy problem?)

2006-05-10 Thread Bruno Aranda

Mmm, I see what is happening,
When it goes to search a dependency already present in the internal
repository no problem, but when it tries to search a dependency not
present in the repo (such as commons-logging, for instance), it gets a
Missing page html. How can avoid that? Because if it gets the
missing page, it does not try to look for the dependency in the
central repository...
Adding the ibiblio repo in the pom fixes the issue, as it tries first
now to look for the central repo and then the internal...

repositories
repository
   idcentral-repo/id
   nameIbiblio repository/name
   urlhttp://www.ibiblio.org/maven2/url
   /repository
  repository
  idmy-repo/id
  nameMy interlanl repository/name
  urlhttp://www.myorganization.org/m2repo/url
  /repository
  /repositories

At least it works now, but is there a more elegant solution?

Thanks,

Bruno

On 5/10/06, Bruno Aranda [EMAIL PROTECTED] wrote:

Hi,

I am trying to create a pom for an existing project and I have setup
an internal repository for all those jars that I need which are not
present in ibiblio. In the institution where I work, there is a proxy.

When I include the repository section in my pom:

...

repositories
repository
idmy-repo/id
nameMy interlanl repository/name
urlhttp://www.myorganization.org/m2repo/url
/repository
/repositories

...

I keep getting these kind of warnings:

Downloading: 
http://www.ebi.ac.uk/~maven/m2repo/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-5/wagon-ssh-external-1.0-alpha-5.pom
50K downloaded
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'93acd1eaeb3d27ec9f89ab480f384fdce57578ca'; remote = 'html
script' - RETRYING
...
and later:

[WARNING] POM for
'commons-collections:commons-collections:pom:3.1:compile' is invalid.
It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'commons-logging:commons-logging:pom:1.0.4:compile'
is invalid. It will be ignored for artifact resolution. Reason: Not a
v4.0.0 POM.
...

It seems to me like there is a proxy problem. I have setup the proxy
details in my settings.xml file to no avail... Possibly I have
something misconfigured somewhere... anywhere have an idea where to
look?

Thanks!

Bruno



resizeable columns - Ecruiser?

2006-05-10 Thread Michael Heinen








Hi,



I am looking for a solution that allows resizeable
columns in a datatable.



I found in another thread in this list a very
promising and powerful component: Ecruiser from Simplica

http://marc.theaimsgroup.com/?l=myfaces-userm=114597062423871w=2



http://www.simplica.com/ec-table-demo/basic.jsf

Does anybody know here Ecruiser?

Can it easily be used with myFaces? 



Or does anybody know alternatives or other approaches
for resizeable columns in a datatable?



Regards,

Michael








Re: A beginner question

2006-05-10 Thread Chrisi
Hello Mirek,

thanks for clarification!

I tried to use the h:commandLink and run into a second question. ;)

page2 is a jsp-file that is stored inside the WEB-INF directory.
When clicking on the generated link of the commandLink-component I get the follwing
404-error: /testapp/WEB-INF/dir/page2.faces - The requested resource is not available.

Does this mean, that hidden jsp-files inside WEB-INF couldn't be used for a Faces-request?

My navigation rule looks like this:

navigation-rule
 from-view-id/page1.jspfrom-view-id
 navigation-case
 from-outcomesuccess/from-outcome
 to-view-id/WEB-INF/dir/page2.jsp/to-view-id
 /navigation-case
/navigation-rule

I tried a second navigation-rule back from page2 to page1, but the error-message remains?
Is a second navigation-rule necessary or is the WEB-INF the problem?

Thanks again!
ChrisiOn 5/10/06, Mirek B. [EMAIL PROTECTED] wrote:
Hello Chrisi,what you need is to use h:commandLink instead of simple linkon page2, write a navigation case from page1 to page2 and then either:a) Write an action method for the backing bean of page2, which
sets the controller.name property, orb) Use the Tomahawk t:updateActionListener extension, as in this:h:commandLink value=Go to page 2 action=""
 t:updateActionListener property=#{controller.name} value=Chrisi //h:commandLinkRegardsMirekChrisi wrote:
 Hello, this is a beginner question: I have two java server faces pages. Nr.1'page1.faces':Contains just a simple form with an input-field like the following
 h:inputText value=#{controller.name http://controller.name}/ Nr.2 'page2.faces': Should contain a simple link to '
page1.faces'. When clicking on the link, a value like 'Chrisi' should be transfert to the text-field and page1.faces should be rendered. What is the JSF way to do this right?
 Sure, I can do something like this a href="" and let the page1.faces check the parameter 'name' using EL. But there should be a better way using the JSF lifecycle and the
 controller/modell concept, right? -- Thanks and Greetings Chrisi



which method will be invoked in the render application phase.

2006-05-10 Thread Arash Bijanzadeh
How coud I figure out which method would be invoked in the INVOKE_APPLICATION phase in a PhaseListener?-- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individua
l or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. 


Data Table Scroller -- not invoking converter

2006-05-10 Thread Julian Ray



Is there any reason 
why a converter would not get called when the data scroller moves between pages? 
I have a converter which capitalizes and changes the case of strings (I 
submitted it to sandbox) and it invoked on the first page loaded but when we 
move to another page, the converter is not invoked and the string case remains 
as it was,

Thanks


t:inputDate off by one day!

2006-05-10 Thread Cosma Colanicchia
Hi,I'm using the t:inputDate component, but it is rendered always a day-after the actual value of bound property. I use the component this way:t:inputDate id=birthDate value=#{peopleAction.person.birthDate
} required=true type=date popupCalendar=true/the bound variable is of type java.util.date. I'm sure that the component is wrong because I tried to render, near the inputDate, an inputText for the same property and this one renders the correct date. What's wrong?
TIA, Cosma


Re: t:inputDate off by one day!

2006-05-10 Thread Volker Weber
Hi,

see
http://issues.apache.org/jira/browse/MYFACES-506

and this thread

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

Hope this helps.


Regards,
  Volker


Cosma Colanicchia wrote:
 Hi,
 I'm using the t:inputDate component, but it is rendered always a
 day-after the actual value of bound property. I use the component this way:
 
 t:inputDate id=birthDate value=#{peopleAction.person.birthDate }
 required=true type=date popupCalendar=true/
 
 the bound variable is of type java.util.date. I'm sure that the
 component is wrong because I tried to render, near the inputDate, an
 inputText for the same property and this one renders the correct date.
 What's wrong?
 
 TIA, Cosma

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: t:inputDate off by one day!

2006-05-10 Thread Cosma Colanicchia
Thank you Volker,I've read the discussion and the JIRA issue, but I'm still not sure about a solution. I'm using a recent snapshot of myfaces-impl-1.1.4 and a snapshot of tomahawk-1.1.2, so it should be already addressed in my lib version ([#MYFACES-506] is marked as fixed in 
1.1.1), isn't it?Do I have to pass a timeZone=something to workaround this issue?Thank you againCosmaOn 5/10/06, Volker Weber
 [EMAIL PROTECTED] wrote:
Hi,seehttp://issues.apache.org/jira/browse/MYFACES-506and this thread
http://www.mail-archive.com/users@myfaces.apache.org/msg09779.htmlHope this helps.Regards,VolkerCosma Colanicchia wrote: Hi, I'm using the t:inputDate component, but it is rendered always a
 day-after the actual value of bound property. I use the component this way: t:inputDate id=birthDate value=#{peopleAction.person.birthDate } required=true type=date popupCalendar=true/
 the bound variable is of type java.util.date. I'm sure that the component is wrong because I tried to render, near the inputDate, an inputText for the same property and this one renders the correct date.
 What's wrong? TIA, Cosma--Don't answer to From: address!Mail to this account are droped if not recieved via mailinglist.To contact me direct create the mail address byconcatenating my forename to my senders domain.



selectManyListbox custom converter toString() problem

2006-05-10 Thread giannidoe
I'm having some trouble using a selectManyListbox with a custom  
converter.
My select items are composed of an object value and string label as  
follows:


LookupItem item = ...  // simple lookup - integer values and a  
description label.

String label = item.getLabel(locale);
SelectItem selectItem = new SelectItem(item,label);
...
CollectionSelectItem lookupItems = new ArrayListSelectItem();
...

Selected values in the backing bean are held in an ArrayList.

t:selectManyListbox
value=#{mybean.selectedItems}
size=30 
f:selectItems value=#{mybean.lookupItems } /
f:converter
  converterId=com.mydomain.MyConverter /
/t:selectManyListbox

I've written a custom converter which works fine if I use it with a  
SelectOne.. type component but when I try it with a SelectMany..  
getAsString() is passed a String value containing the selected value  
instead of a LookupItem object.


public String getAsString(FacesContext facesContext, UIComponent  
component, Object value)

throws ConverterException {
if (value != null) {
return ((LookupItem) value).getCode().toString();
}
return null;
}

 java.lang.ClassCastException: java.lang.String
at com.mydomain.MyConverter.getAsString(Unknown Source)

Maybe I'm missing something but I expected getAsString() to be passed  
the converted LookupItem object.

I'd appreciate some help.
-Gianni


RE: resizeable columns - Ecruiser?

2006-05-10 Thread Fang, Wes/Sloan-Kettering Institute




Yeahialsofound this 
recently,Ithinkthesecomponentsaregoingtocatchonwithpopularityastheymimicdesktopappfunctionality.Itriedbuildingthedemolocallywhichworkedfine,butwhenIranthepage,thefollowingexceptionwas printed in the 
browser:
500 Internal Server 
Errorjavax.servlet.jsp.JspException: javax.faces.el.EvaluationException: 
Error getting property 'statusImage' from bean of type 
simplica.demo.datatable.BasicBean: java.lang.IllegalArgumentException: row is 
unavailableat 
com.sun.faces.taglib.html_basic.GraphicImageTag.doEndTag(GraphicImageTag.java:400)at 
_basic._jspService(_basic.java:229)[/basic.jsp]at 
com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)at 
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)at 
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)at 
oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:205)at 
oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].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[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)at 
java.lang.Thread.run(Thread.java:595)
The 
container message: 
May 
10, 2006 10:10:35 AM ecruiser.control.SessionManager getECRenderKitINFO: 
RenderKit selected: ecruiser.render.html.IERenderKitMay 10, 2006 10:10:36 AM 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponentWARNING: 
Unable to find component with ID 'theme' in view.May 10, 2006 10:10:36 AM 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponentWARNING: 
Unable to find component with ID 'fixedCols' in view.

Anyone actually using these 
yet?

Thanks. 
Wes 





From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 4:22 AMTo: MyFaces 
DiscussionSubject: resizeable columns - 
Ecruiser?


Hi,

I am looking for a solution that 
allows resizeable columns in a datatable.

I found in another thread in this 
list a very promising and powerful component: Ecruiser from 
Simplica
http://marc.theaimsgroup.com/?l=myfaces-userm=114597062423871w=2

http://www.simplica.com/ec-table-demo/basic.jsf
Does anybody know here 
Ecruiser?
Can it 

RE: resizeable columns - Ecruiser?

2006-05-10 Thread Frank Russo



I've downloaded it. I started using the drag and drop rows 
feature of their dataTable, but I got sidetracked. I'll be getting to it soon. 
Probably next week.

There were errors. I emailed their support, but they take a 
day to respond. I haven't paid for it, yet, so maybe that's why. Although, I 
told them I'm evaluating it for real use, so they are aware that if that feature 
works, we will buy their product...

Frank 
RussoSenior DeveloperFX Alliance, LLC



From: Fang, Wes/Sloan-Kettering Institute 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 10:14 
AMTo: MyFaces DiscussionSubject: RE: resizeable columns - 
Ecruiser?


Yeahialsofound this 
recently,Ithinkthesecomponentsaregoingtocatchonwithpopularityastheymimicdesktopappfunctionality.Itriedbuildingthedemolocallywhichworkedfine,butwhenIranthepage,thefollowingexceptionwas printed in the 
browser:
500 Internal Server 
Errorjavax.servlet.jsp.JspException: javax.faces.el.EvaluationException: 
Error getting property 'statusImage' from bean of type 
simplica.demo.datatable.BasicBean: java.lang.IllegalArgumentException: row is 
unavailableat 
com.sun.faces.taglib.html_basic.GraphicImageTag.doEndTag(GraphicImageTag.java:400)at 
_basic._jspService(_basic.java:229)[/basic.jsp]at 
com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)at 
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)at 
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)at 
oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:205)at 
oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)at 
com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].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[Oracle Containers for J2EE 10g (10.1.3.0.0) 
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)at 
java.lang.Thread.run(Thread.java:595)
The 
container message: 
May 
10, 2006 10:10:35 AM ecruiser.control.SessionManager getECRenderKitINFO: 
RenderKit selected: ecruiser.render.html.IERenderKitMay 10, 2006 10:10:36 AM 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponentWARNING: 
Unable to find component with ID 'theme' in view.May 10, 2006 10:10:36 AM 

Positioning of the schedule component

2006-05-10 Thread Ian Johnson



Hello, long time 
listener first time caller.

I am trying to use 
the schedule component from the Sandbox1.1.3 snapshot and it works fine. The 
only problem I am having is that I am trying to render the schedule within a 
scrolling div. Because the way the component is rendered on IE the table appears 
on top of the div instead of inside it. When viewing the source of the 
genereated htmlthe table tag that contains the month class has a style 
attribute with position:relative. This of course overrides anything I put in the 
monthClass. If this was removed the schedule would render in the div 
correctly.

This leads me to two 
questions

1.With the ability 
to define my own styles why would inline styles be 
generated.
2.Does anyone have 
any idea what I can do to override this.

P.S. There is no 
problem with how it renders in firefox, just 
IE


Re: Positioning of the schedule component

2006-05-10 Thread Andrew Robinson

have you tried an important CSS style?

try:

.someClass {
position: static !important;
}

The thing that may cause issues is that 'static' is an IE position,
not a w3c position. The w3c equivalent is normal, but of course
Microsoft doesn't care about us developers. Okay, without the soap
box, the !important should override any child settings by increasing
its score above any other style specified.

Haven't tested it, but should be worth a shot.

On 5/10/06, Ian Johnson [EMAIL PROTECTED] wrote:



Hello, long time listener first time caller.

I am trying to use the schedule component from the Sandbox1.1.3 snapshot and
it works fine. The only problem I am having is that I am trying to render
the schedule within a scrolling div. Because the way the component is
rendered on IE the table appears on top of the div instead of inside it.
When viewing the source of the genereated html the table tag that contains
the month class has a style attribute with position:relative. This of course
overrides anything I put in the monthClass. If this was removed the schedule
would render in the div correctly.

This leads me to two questions

1.With the ability to define my own styles why would inline styles be
generated.
2.Does anyone have any idea what I can do to override this.

P.S. There is no problem with how it renders in firefox, just IE


RE: Positioning of the schedule component

2006-05-10 Thread Ian Johnson
Thanks a lot, I had no idea about the !important thing, that's neat.

Here's the thing. It only worked after I override the class for the div
that wraps around the 
whole table as well as the month class. So before the schedule component
I have this,

style
.schedule-compact-default{
position:static!important;
}
/style

Of course the name of this class is related to what theme you set. You
can see by doing a view source and looking at the class of the div that
wraps around the outer table. 

Thanks for your help, I will never regret you

 

-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 11:13 AM
To: MyFaces Discussion
Subject: Re: Positioning of the schedule component

have you tried an important CSS style?

try:

.someClass {
position: static !important;
}

The thing that may cause issues is that 'static' is an IE position, not
a w3c position. The w3c equivalent is normal, but of course Microsoft
doesn't care about us developers. Okay, without the soap box, the
!important should override any child settings by increasing its score
above any other style specified.

Haven't tested it, but should be worth a shot.

On 5/10/06, Ian Johnson [EMAIL PROTECTED] wrote:


 Hello, long time listener first time caller.

 I am trying to use the schedule component from the Sandbox1.1.3 
 snapshot and it works fine. The only problem I am having is that I am 
 trying to render the schedule within a scrolling div. Because the way 
 the component is rendered on IE the table appears on top of the div
instead of inside it.
 When viewing the source of the genereated html the table tag that 
 contains the month class has a style attribute with position:relative.

 This of course overrides anything I put in the monthClass. If this was

 removed the schedule would render in the div correctly.

 This leads me to two questions

 1.With the ability to define my own styles why would inline styles be 
 generated.
 2.Does anyone have any idea what I can do to override this.

 P.S. There is no problem with how it renders in firefox, just IE




message-bundle: Do I need to define my .properties file in the faces-config.xml AND the jsp file both?

2006-05-10 Thread Todd Patrick



Concerning a 
.properties file, do I need to define the .properties file in my 
faces-config.xml:

application 
locale-config 
default-localeen_US/default-locale 
/locale-config 
message-bundlecom.dtn.petro2.petro_admin.tbrowser/message-bundle/application


*AND*in the 
.jsp page:

f:loadBundle 
basename="com.dtn.petro2.petro_admin.tbrowser" var="tb"/

I return the 
following error if I don't have the .properties file definedin my 
faces-config.xml and only have it defined in my jsp file:

[#|2006-05-10T10:50:12.168-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/transactionbrowser] 
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException: null 
MessageFactory

Thanks,

--Todd


populating request scope managed bean

2006-05-10 Thread Kevin Galligan
I'm have a really hard time doing something that, in my mind, should be very simple. Populating a managed bean with scope 'request'. Essentially, I have a dataTable, which is bound to a UIData variable in the backing bean, and a commandLink which pulls the selected object and pushes it into the request collection with...
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(key, value);Then we go to the detail page. By the time we get there, no object. It is not redirecting, so this *should* work, I think.
I changed it to use session instead of request, and set the object with...FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);This works. Any ideas? I assume that I'm initalizing the request bean incorrectly, but I don't know how. I'm probably going back to the session method so I can move on for now, but any help would be greatly appreciated. I want to use 'saveState' to handle 'request-session' or 'request-thread' scope state, as if this works, it looks to be just the thing I've been missing with struts and jsf. However, the simple part I can't get past.
Thanks in advance,-Kevin


Re: MyFaces support for Facelets

2006-05-10 Thread Mike Kienenberger

On 5/10/06, Adam Winer [EMAIL PROTECTED] wrote:

 I think we'll want to make it a separate jar and project because
 facelets depends on JSF 1.2 RI and the Glassfish EL jars.   And maybe
 JSP 2.1 as well.   Those don't need to be dependencies for standard
 tomahawk use.

FYI, it doesn't depend on the JSF 1.2 RI, and it *definitely*
doesn't depend on JSP 2.1 (or anything in JSP, for that matter).
It does require a javax.el implementation;  I don't remember offhand
if it's hardcoded against the Glassfish implementation or if
that's pluggable.


Adam,

When I was working on custom components for the Optional Validation
Framework, I had issues with dependencies on 
javax.servlet.jsp.tagext.Tag.   I went back and reviewed the project,

but I couldn't duplicate the issue -- I'm probably misremembering the
root cause and was due to JSP tags instead.

However, com.sun.facelets.tag.jsf.ComponentHandler references
javax.faces.component.ActionSource2 (a dependencies on the JSF 1.2
api).  I thought for sure that this was causing a compile-time
dependency, but again I can't repeat the problem.

In that case, I'd prefer option 1!


tomahawk sandbox 1.1.2 from svn

2006-05-10 Thread Roman Nikiforov

Hi,
unforunatey there is no sandbox in new MyFaces/Tomahawk release. I tried 
to make it myself from svn, but maven don't want it.

My steps:
1. svn co https://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_2
2. cd 1_1_2/
3. mvn
I'm getting the following error message
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required 
artifacts missing:

 org.apache.myfaces.shared:myfaces-shared-tomahawk:jar:2.0.0

for the artifact:
 org.apache.myfaces.tomahawk:tomahawk:jar:1.1.2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache-maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
 myfaces-repo (http://myfaces.zones.apache.org/dist/maven-repository)

   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:548)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: 
org.apache.maven.artifact.resolver.ArtifactResolutionException: required 
artifacts missing:

 org.apache.myfaces.shared:myfaces-shared-tomahawk:jar:2.0.0

for the artifact:
 org.apache.myfaces.tomahawk:tomahawk:jar:1.1.2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache-maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
 myfaces-repo (http://myfaces.zones.apache.org/dist/maven-repository)

   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:251)
   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
   at 
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1120)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:369)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)

   ... 16 more



Re: tomahawk sandbox 1.1.2 from svn

2006-05-10 Thread Matthias Wessendorf

Well,

the tomahawk 112 release contains the core.

Building sandbox from scratch will fail currently, since
http://svn.apache.org/ is down.

-Matthias

On 5/10/06, Roman Nikiforov [EMAIL PROTECTED] wrote:

Hi,
unforunatey there is no sandbox in new MyFaces/Tomahawk release. I tried
to make it myself from svn, but maven don't want it.
My steps:
1. svn co https://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_2
2. cd 1_1_2/
3. mvn
I'm getting the following error message
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required
artifacts missing:
  org.apache.myfaces.shared:myfaces-shared-tomahawk:jar:2.0.0

for the artifact:
  org.apache.myfaces.tomahawk:tomahawk:jar:1.1.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache-maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
  myfaces-repo (http://myfaces.zones.apache.org/dist/maven-repository)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:548)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.artifact.resolver.ArtifactResolutionException: required
artifacts missing:
  org.apache.myfaces.shared:myfaces-shared-tomahawk:jar:2.0.0

for the artifact:
  org.apache.myfaces.tomahawk:tomahawk:jar:1.1.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache-maven-snapshots (http://cvs.apache.org/maven-snapshot-repository),
  myfaces-repo (http://myfaces.zones.apache.org/dist/maven-repository)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:251)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1120)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:369)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
... 16 more





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


ExtensionsFilter now mandatory?

2006-05-10 Thread Jonathan Harley


Hi, I've been trying out MyFaces 1.1.3 after previously using 1.1.1.

Everything went fine except that all my h:commandLinks stopped
working, because they were generating onClick javascript which
called clear_linkDummyForm, but the javascript method itself was
not being generated.

After a bit of a search on the JIRA, I tried adding in the
Tomahawk ExtensionsFilter (from Tomahawk 1.1.2), and lo,
clear_linkDummyForm() is added to pages which have the
ExtensionsFilter mapped and not to pages which don't.

Is it really the case that the ExtensionsFilter is now mandatory
to make basic (non-extension) JSF features work, or am I missing
some new bit of config?

I assume it must be the latter, because if ExtensionsFilter was
mandatory, why not just roll its functionality into the core MyFaces
servlet?

Jon
--
.
  Dr Jonathan Harley   .
   .   Email: [EMAIL PROTECTED]
   Zac Parkplatz Ltd   .   Office Telephone: 024 7633 1375
   www.parkplatz.net   .   Mobile: 079 4116 0423


Re: populating request scope managed bean

2006-05-10 Thread Kevin Galligan
Sorry for the self-followup. I'm pulling my hair out.Basically, I've modified my code to following this...
http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/2005/04/06/Drilldown_Edit_with_JSF.html?page=commentsStill doesn't work. Then I created a set of test objects and screens that went down to the absolute basics. Didn't work. I then changed my value object to be session scope instead of request, but still set it with ...
ValueBinding binding = context.getApplication().createValueBinding(#{testObject}); binding.setValue(context,testObject);Even set as session, this didn't work. I know that if I just put it in the session map, that will work, but there must be a way to set a managed bean in request scope from code. However, I cannot get it to work. Please, please help. At least tell me you do something like this, and generally how you accomplish it. Losing my mind.
On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote:
I'm have a really hard time doing something that, in my mind, should be very simple. Populating a managed bean with scope 'request'. Essentially, I have a dataTable, which is bound to a UIData variable in the backing bean, and a commandLink which pulls the selected object and pushes it into the request collection with...
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(key, value);Then we go to the detail page. By the time we get there, no object. It is not redirecting, so this *should* work, I think.
I changed it to use session instead of request, and set the object with...FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);This works. Any ideas? I assume that I'm initalizing the request bean incorrectly, but I don't know how. I'm probably going back to the session method so I can move on for now, but any help would be greatly appreciated. I want to use 'saveState' to handle 'request-session' or 'request-thread' scope state, as if this works, it looks to be just the thing I've been missing with struts and jsf. However, the simple part I can't get past.
Thanks in advance,-Kevin




Re: t:inputDate off by one day!

2006-05-10 Thread Volker Weber
Hi Cosma,


Cosma Colanicchia wrote:
 Thank you Volker,
 
 I've read the discussion and the JIRA issue, but I'm still not sure about a
 solution. I'm using a recent snapshot of myfaces-impl-1.1.4 and a snapshot
 of tomahawk-1.1.2, so it should be already addressed in my lib version
 ([#MYFACES-506] is marked as fixed in 1.1.1), isn't it?
 
 Do I have to pass a timeZone=something to workaround this issue?

Yes the solution was adding a
f:dateTimeConverter timeZone=#{bean.timeZone} /
to the t:inputDate


The problem is this:

the spec says the default timezone for a dateTimeConverter is GMT.

if no converter is explicit specified a default converter is taken to
convert java.util.Date values, which is the case at the t:inputDate.

if you use a Date as value for a h:outputText the default converter is
also taken, and the date shoult rendered equal to the inputDate tag.

But if you use value=the date is #{bean.date}. at the h:outputText,
then the value type of the expression is String and the date part is not
converted by a converter (just a toString() is done)!

e.g.

h:outputText value=The date is #{bean.date} /

h:outputText value=The date is /h:outputText value=#{bean.date}/

this two lines renders the same text with (if your servers default
timezone is != GMT) different times.



Regards,
  Volker


 
 Thank you again
 Cosma
 
 
 On 5/10/06, Volker Weber [EMAIL PROTECTED] wrote:
 

 Hi,

 see
 http://issues.apache.org/jira/browse/MYFACES-506

 and this thread

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

 Hope this helps.


 Regards,
   Volker


 Cosma Colanicchia wrote:
  Hi,
  I'm using the t:inputDate component, but it is rendered always a
  day-after the actual value of bound property. I use the component this
 way:
 
  t:inputDate id=birthDate value=#{peopleAction.person.birthDate }
  required=true type=date popupCalendar=true/
 
  the bound variable is of type java.util.date. I'm sure that the
  component is wrong because I tried to render, near the inputDate, an
  inputText for the same property and this one renders the correct date.
  What's wrong?
 
  TIA, Cosma

 -- 
 Don't answer to From: address!
 Mail to this account are droped if not recieved via mailinglist.
 To contact me direct create the mail address by
 concatenating my forename to my senders domain.

 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: tomahawk-sandbox release date?

2006-05-10 Thread Matthias Wessendorf

never,

some components from sandbox might be pushed to the tomahawk-core stuff.
Sandbox is just some *experimental* stuff...

On 5/9/06, Rogerio Pereira [EMAIL PROTECTED] wrote:

Hi guys,

When tomahawk-sandbox will be released?

--
Yours truly (Atenciosamente),

Rogério



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: tomahawk-sandbox release date?

2006-05-10 Thread Rogerio Pereira
some components from sandbox might be pushed to the tomahawk-core stuff.Sandbox is just some *experimental* stuff...
Well, this means sandbox will never be avaliable for download and developers will always build the jar from SVN?I'm thinking in work on focus component promotion to tomahawk.
-- Yours truly (Atenciosamente),Rogério


Re: tomahawk-sandbox release date?

2006-05-10 Thread Matthias Wessendorf

ah, now I see what you are meaning.

A missing nbuild is already an entry in your JIRA

-Matthias

On 5/10/06, Rogerio Pereira [EMAIL PROTECTED] wrote:


 some components from sandbox might be pushed to the tomahawk-core stuff.
 Sandbox is just some *experimental* stuff...

Well, this means sandbox will never be avaliable for download and developers
will always build the jar from SVN?

I'm thinking in work on focus component promotion to tomahawk.

--
Yours truly (Atenciosamente),

Rogério



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: tomahawk-sandbox release date?

2006-05-10 Thread Rogerio Pereira
A missing nbuild is already an entry in your JIRA
That url will be the only location where i can found jars? If yes, no problem, but we must put the link at myfaces website or wiki.-- Yours truly (Atenciosamente),Rogério


t:saveState not working on redirect

2006-05-10 Thread Julian Ray



I have 3 pages which 
share saveState objects (all Integers). The pages work fine until I add 
redirect/ to the navigation at which point saveState does not work 
across pages (although it seems to work for other pages which post-back to 
themselves.

Is this a bug or 
valid behaviour?

Thanks



Re: t:saveState not working on redirect

2006-05-10 Thread Dennis Byrne
When an HTTP server sends a redirect response to the client, the client then 
performs a second request.  This drops all of the form values, so there is no 
state for JSF (or ASP.net for that matter) to restore on the second response.

Dennis Byrne

-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 11:55 AM
To: ''MyFaces Discussion''
Subject: t:saveState not working on redirect

I have 3 pages which share saveState objects (all Integers). The pages work
fine until I add redirect/ to the navigation at which point saveState does
not work across pages (although it seems to work for other pages which
post-back to themselves.

Is this a bug or valid behaviour?

Thanks






Re: t:saveState not working on redirect

2006-05-10 Thread Mike Kienenberger

On 5/10/06, Julian Ray [EMAIL PROTECTED] wrote:

I have 3 pages which share saveState objects (all Integers). The pages work
fine until I add redirect/ to the navigation at which point saveState does
not work across pages (although it seems to work for other pages which
post-back to themselves.

Is this a bug or valid behaviour?


Still under debate :)

It's a known issue.  There have been several attempts at patches. 
Feel free to use one if you need the behavior.


http://issues.apache.org/jira/browse/MYFACES-516


Re: populating request scope managed bean

2006-05-10 Thread Mike Kienenberger

See

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

Under

Working with tables

in the wiki


On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote:

Sorry for the self-followup.  I'm pulling my hair out.

Basically, I've modified my code to following this...

http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/2005/04/06/Drilldown_Edit_with_JSF.html?page=comments

Still doesn't work.  Then I created a set of test objects and screens that
went down to the absolute basics.  Didn't work.  I then changed my value
object to be session scope instead of request, but still set it with ...

ValueBinding binding =
context.getApplication().createValueBinding(#{testObject});
 binding.setValue(context,testObject);

Even set as session, this didn't work.  I know that if I just put it in the
session map, that will work, but there must be a way to set a managed bean
in request scope from code.  However, I cannot get it to work.  Please,
please help.  At least tell me you do something like this, and generally how
you accomplish it.  Losing my mind.


On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote:

 I'm have a really hard time doing something that, in my mind, should be
very simple.  Populating a managed bean with scope 'request'.  Essentially,
I have a dataTable, which is bound to a UIData variable in the backing bean,
and a commandLink which pulls the selected object and pushes it into the
request collection with...


FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(key,
value);

 Then we go to the detail page.  By the time we get there, no object.  It
is not redirecting, so this *should* work, I think.

 I changed it to use session instead of request, and set the object with...


FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key,
value);

 This works.  Any ideas?  I assume that I'm initalizing the request bean
incorrectly, but I don't know how.  I'm probably going back to the session
method so I can move on for now, but any help would be greatly appreciated.
I want to use 'saveState' to handle 'request-session' or 'request-thread'
scope state, as if this works, it looks to be just the thing I've been
missing with struts and jsf.  However, the simple part I can't get past.

 Thanks in advance,

 -Kevin





Re: MyFaces support for Facelets

2006-05-10 Thread Michael Youngstrom
Option 1 and Option 2 are both good. The important thing is to keep facelets in sync with tomahawk. Either way with facelets taglib in the source tree developers will be able to do a better job of keeping them in sync.


Mike


Re: populating request scope managed bean

2006-05-10 Thread Kevin Galligan
I see how those work, but none of them is really doing what I want to do. You know? Is it not possible to manually populate a request scope bean?On 5/10/06, 
Mike Kienenberger [EMAIL PROTECTED] wrote:
Seehttp://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParametersUnderWorking with tablesin the wiki
On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote: Sorry for the self-followup.I'm pulling my hair out. Basically, I've modified my code to following this...
 http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/2005/04/06/Drilldown_Edit_with_JSF.html?page=comments
 Still doesn't work.Then I created a set of test objects and screens that went down to the absolute basics.Didn't work.I then changed my value object to be session scope instead of request, but still set it with ...
 ValueBinding binding = context.getApplication().createValueBinding(#{testObject});binding.setValue(context,testObject); Even set as session, this didn't work.I know that if I just put it in the
 session map, that will work, but there must be a way to set a managed bean in request scope from code.However, I cannot get it to work.Please, please help.At least tell me you do something like this, and generally how
 you accomplish it.Losing my mind. On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote:   I'm have a really hard time doing something that, in my mind, should be
 very simple.Populating a managed bean with scope 'request'.Essentially, I have a dataTable, which is bound to a UIData variable in the backing bean, and a commandLink which pulls the selected object and pushes it into the
 request collection with...   FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(key, value);   Then we go to the detail page.By the time we get there, no object.It
 is not redirecting, so this *should* work, I think.   I changed it to use session instead of request, and set the object with...   FacesContext.getCurrentInstance
().getExternalContext().getSessionMap().put(key, value);   This works.Any ideas?I assume that I'm initalizing the request bean incorrectly, but I don't know how.I'm probably going back to the session
 method so I can move on for now, but any help would be greatly appreciated. I want to use 'saveState' to handle 'request-session' or 'request-thread' scope state, as if this works, it looks to be just the thing I've been
 missing with struts and jsf.However, the simple part I can't get past.   Thanks in advance,   -Kevin 



Re: populating request scope managed bean

2006-05-10 Thread Mike Kienenberger

On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote:

I see how those work, but none of them is really doing what I want to do.
You know?  Is it not possible to manually populate a request scope bean?


Guess I'm not following what you're asking.

For what it's worth, I manually populate request-scoped beans with
t:saveState when I want the value to persist to the next request (ie,
make the request-scoped bean act like a page-scoped bean), and I use
t:updateActionListener when I want to populate a request-scoped bean
with a specific value (like the detail record selected) in the next
request.


Question for tiles.xml connection refused IO error

2006-05-10 Thread yasushi
Hi, experts

I am using myfaces(v1.1.1)+tiles, but just started seeing the error
reading tiles.xml as follows.  I was using defualt DTD setting in my
tiles.xml to access an exteranl link located in jakarta, but it seems that
it is not working. So, could someone advise me how to use system dtd ?

I tried several versions, but it does not work. I got a dtd from :
struts-1.2.8/lib/tiles-config_1_1.dtd
Is this the right one ?

I have moved tiles-config_1_1.dtd to under /WEB-INF.

Thanks,
yasushi

=== error  ==
org.apache.struts.tiles.DefinitionsFactoryException: IO Error while
parsing file '/WEB-INF/tiles.xml'. Connection refused

=== initial tiles.xml and got the above error ==
!DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration//EN
   http://jakarta.apache.org/struts/dtds/tiles-config.dtd;

== I changed the above tryhing to use system dtd, but did not work ==
!DOCTYPE tiles-definitions SYSTEM
http://127.0.0.1:9090/PLIMS/WEB-INF/tiles-config_1_1.dtd;


Re: populating request scope managed bean

2006-05-10 Thread Kevin Galligan
Basically I can't get the following to work...faces-config snippet...managed-bean  managed-bean-nametestObject/managed-bean-name  managed-bean-classkg.web.jsf.test.TestObject
/managed-bean-class  managed-bean-scoperequest/managed-bean-scope /managed-beanI have a datatTable with a list of these as simple pojo's. When clicking on one, a command link calls a function on the page's backing bean...
public String editTestObject() {  FacesContext context = FacesContext.getCurrentInstance();TestObject testObject = (TestObject)testTable.getRowData();   //This is where the setting code would go...
 return editTestObject; }'testTable' is a UIData object. I've run the debugger, and the 'getRowData' returns the correct value. However, no matter what I do, I can't get the managed bean set with that value. I've tried...
1) context.getExternalContext().getRequestMap().put(testObject, testObject);2) ValueBinding binding = context.getApplication().createValueBinding(#{testObject});

  

  binding.setValue(context,testObject);3) ValueBinding binding = context.getApplication().createValueBinding(#{testObject});


  


  TestObject fromConfig = (TestObject)binding.getValue(context);
  binding.setValue(context,testObject);The third one I tried just to see if getting the value first would cause it to be created to avoid the re-create later. Anyway, if stuff the object into the sessionMap instead of these options, it works.
I'm frustrated because I'm not doing a redirect, but it still just won't work. So, how would I set a top level managed bean with a value at the request scope without putting it into the session?   
On 5/10/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote: I see how those work, but none of them is really doing what I want to do. You know?Is it not possible to manually populate a request scope bean?
Guess I'm not following what you're asking.For what it's worth, I manually populate request-scoped beans witht:saveState when I want the value to persist to the next request (ie,make the request-scoped bean act like a page-scoped bean), and I use
t:updateActionListener when I want to populate a request-scoped beanwith a specific value (like the detail record selected) in the nextrequest.


Re: populating request scope managed bean

2006-05-10 Thread Mike Kienenberger

On 5/10/06, Kevin Galligan [EMAIL PROTECTED] wrote:

I'm frustrated because I'm not doing a redirect, but it still just won't
work.  So, how would I set a top level managed bean with a value at the
request scope without putting it into the session?


It is possible to do this programmically (I used to do it this way),
but it's far easier to use t:updateActionListener.

If you want to keep fighting it, you can take a look at

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

Option 1) context.getExternalContext().getRequestMap().put(testObject,
testObject) looks like the right track to me, so that'd probably the
path to pursue (Search MyFaces user list archives for postings on
managed beans and maps, probably written by Craig McClanahan.)

However,  doing it like this is far easier:

h:commandLink
   value=Select Detail
  action=optionally do something

  t:updateActionListener
   property=#{testObject}
value=#{currentRowObject} /

/h:commandLink

One thing that might be required is to add a layer of indirection:

  t:updateActionListener
   property=#{someBean.testObject}
value=#{currentRowObject} /


[newbie]: click on commandButton does nothing. Why?

2006-05-10 Thread Matthias Klein
I am sure this is a super simple newbie problem, but would you mind
helping me? Thanks so much!

I wanted to start playing with MyFaces and JSF by building a tiny
application:
index.jsp simply forwards to menu.faces (which is the file menu.jsp)
In menu.jsp there is one little button leading to details.jsp
In details.jsp there are two buttons: one leading back to menu.jsp and one
leading to content.jsp
content.jsp has a button to menu.jsp.

I can deploy everything in Tomcat 5.5 and call each page individually by
using the .faces suffix instead of their real file name suffix .jsp.

But here is the thing: when I click on any of those buttons, nothing
happens. Absolutely nothing. I have added a System.out… statement in the
method that is supposed to be called but that is not called either.

Do you have any idea what I did wrong?

Here some code:

-
Index.jsp
-
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
body
jsp:forward page=/menu.faces /
/body
/html

-
Menu.jsp
-
%@ page language=java pageEncoding=UTF-8%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h %
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText value=#{bundle.menu_frame} 
//title
/head

body

menubr
//  h:commandButton value=Weiter rendered=true
action=#{MenuBackingBean.userClick} /
h:commandButton value=Weiter rendered=true action=showDetails /
/body
/html
/f:view

-
Details.jsp
-
%@ page language=java pageEncoding=UTF-8%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h %
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText value=#{bundle.details_frame} 
//title
/head

body

h:panelGrid columns=2
h:outputText value=#{bundle.details_title} /
h:outputText 
value=#{DetailsBackingBean.title} /
h:outputText value=#{bundle.details_author} 
/
h:outputText 
value=#{DetailsBackingBean.author} /
/h:panelGrid

h:commandButton value=#{bundle.details_startbutton}. 
rendered=true
action=#{DetailsBackingBean.showContent} /
h:commandButton value=#{bundle.details_backbutton} 
rendered=true
action=#{DetailsBackingBean.showMenu} /

/body
/html
/f:view

-
Content.jsp
-
%@ page language=java pageEncoding=UTF-8%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h %
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText value=#{bundle.content_frame} 
//title
/head

body

contentbr
h:commandButton value=#{bundle.content_backbutton} 
rendered=true
action=#{ContentBackingBean.showMenu} /

/body
/html
/f:view

-
Faces-config.xml
-
?xml version=1.0 encoding=UTF-8?
!DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN http://java.sun.com/dtd/web-facesconfig_1_1.dtd;

faces-config 

application
locale-config
default-localeen/default-locale
supported-localeen/supported-locale
supported-localede/supported-locale
/locale-config

message-bundleca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle/message-bundle
/application

managed-bean
managed-bean-nameDetailsBackingBean/managed-bean-name

managed-bean-classca.gc.nrc.iit.eConservatoire.frontend.DetailsBackingBean/managed-bean-class
managed-bean-scopesession/managed-bean-scope
managed-property

RE: [newbie]: click on commandButton does nothing. Why?

2006-05-10 Thread James Reynolds
Enclose your buttons in an h:form tag. 

-Original Message-
From: Matthias Klein [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 3:11 PM
To: users@myfaces.apache.org
Subject: [newbie]: click on commandButton does nothing. Why?

I am sure this is a super simple newbie problem, but would you mind
helping me? Thanks so much!

I wanted to start playing with MyFaces and JSF by building a tiny
application:
index.jsp simply forwards to menu.faces (which is the file menu.jsp) In
menu.jsp there is one little button leading to details.jsp In
details.jsp there are two buttons: one leading back to menu.jsp and one
leading to content.jsp content.jsp has a button to menu.jsp.

I can deploy everything in Tomcat 5.5 and call each page individually by
using the .faces suffix instead of their real file name suffix .jsp.

But here is the thing: when I click on any of those buttons, nothing
happens. Absolutely nothing. I have added a System.out... statement in
the method that is supposed to be called but that is not called either.

Do you have any idea what I did wrong?

Here some code:

-
Index.jsp
-
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html
body
jsp:forward page=/menu.faces /
/body
/html

-
Menu.jsp
-
%@ page language=java pageEncoding=UTF-8% %@ taglib
uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib
uri=http://java.sun.com/jsf/core; prefix=f % f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText
value=#{bundle.menu_frame} //title
/head

body

menubr
//  h:commandButton value=Weiter rendered=true
action=#{MenuBackingBean.userClick} /
h:commandButton value=Weiter rendered=true
action=showDetails /
/body
/html
/f:view

-
Details.jsp
-
%@ page language=java pageEncoding=UTF-8% %@ taglib
uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib
uri=http://java.sun.com/jsf/core; prefix=f % f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText
value=#{bundle.details_frame} //title
/head

body

h:panelGrid columns=2
h:outputText
value=#{bundle.details_title} /
h:outputText
value=#{DetailsBackingBean.title} /
h:outputText
value=#{bundle.details_author} /
h:outputText
value=#{DetailsBackingBean.author} /
/h:panelGrid

h:commandButton
value=#{bundle.details_startbutton}. rendered=true
action=#{DetailsBackingBean.showContent} /
h:commandButton
value=#{bundle.details_backbutton} rendered=true
action=#{DetailsBackingBean.showMenu} /

/body
/html
/f:view

-
Content.jsp
-
%@ page language=java pageEncoding=UTF-8% %@ taglib
uri=http://java.sun.com/jsf/html; prefix=h % %@ taglib
uri=http://java.sun.com/jsf/core; prefix=f % f:view
f:loadBundle
basename=ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle
var=bundle /

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleh:outputText
value=#{bundle.content_frame} //title
/head

body

contentbr
h:commandButton
value=#{bundle.content_backbutton} rendered=true
action=#{ContentBackingBean.showMenu} /

/body
/html
/f:view

-
Faces-config.xml
-
?xml version=1.0 encoding=UTF-8?
!DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.1//EN http://java.sun.com/dtd/web-facesconfig_1_1.dtd;

faces-config 

application
locale-config
default-localeen/default-locale
supported-localeen/supported-locale
supported-localede/supported-locale
/locale-config

message-bundleca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBun
dle/message-bundle
/application

managed-bean

managed-bean-nameDetailsBackingBean/managed-bean-name


helper text (like 'Search' on Wiki search input) for inputText

2006-05-10 Thread Mike Kienenberger

I've been asked to add a helper text effect like what we see on the
MyFaces wiki:

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

See how it's got the word Search in the search box which disappears
as soon as you type something in?   That's what I need.

Sadly, MoinMoin is GNU GPL licensed, so I don't dare look at the
javascript to see how it's done, and my javascript skill is limited to
what I can cut and paste off someone else's site :)

Seems like this would be a cool addition to t:inputText.

-Mike


Re: Positioning of the schedule component

2006-05-10 Thread Jurgen Lust
This is where you can tell I'm not an IE user :)Perhaps some clarification about the decisions made while developing the schedule component.I didn't know about this problem in IE. I just followed the css specs on this. 'position: relative' means that the position of this box is relative to the enclosing box, which in the case of the schedule is the containing div. This rendered correctly in all browsers during my tests, but of course I didn't test it inside a scrolling div.
The reason why the component is rendered in layers is that in the detailed view, I needed to render the grid, but for the appointments I didn't want to mess around with lots of colspan, rowspan stuff, so I decided to just use a table to render the grid in the background, and then use absolute positioning for the appointments in a div on top of that table. It took quite a bit of work to get this rendered correctly on the most important browsers, but eventually it worked.
And that is the reason for the hardcoded css stuff. I wanted to allow a developer to customize the look and feel of the schedule somewhat, without the risk of breaking it. In some areas, even the tiniest change in border or margin can totally ruin the way it looks on a certain browser, so I hardcoded that stuff in there, leaving all color, font, ... stuff free to change.
In the meantime, there are some top notch examples of html schedules out there (I like the Google and Zimbra ones the most), so perhaps we can learn from them to further improve the rendering of the schedule component.
Kind regards,Jurgen2006/5/10, Ian Johnson [EMAIL PROTECTED]:
Thanks a lot, I had no idea about the !important thing, that's neat.Here's the thing. It only worked after I override the class for the divthat wraps around thewhole table as well as the month class. So before the schedule component
I have this,style.schedule-compact-default{position:static!important;}/styleOf course the name of this class is related to what theme you set. You
can see by doing a view source and looking at the class of the div thatwraps around the outer table.Thanks for your help, I will never regret you-Original Message-From: Andrew Robinson [mailto:
[EMAIL PROTECTED]]Sent: Wednesday, May 10, 2006 11:13 AMTo: MyFaces DiscussionSubject: Re: Positioning of the schedule componenthave you tried an important CSS style?
try:.someClass {position: static !important;}The thing that may cause issues is that 'static' is an IE position, nota w3c position. The w3c equivalent is normal, but of course Microsoft
doesn't care about us developers. Okay, without the soap box, the!important should override any child settings by increasing its scoreabove any other style specified.Haven't tested it, but should be worth a shot.
On 5/10/06, Ian Johnson [EMAIL PROTECTED] wrote: Hello, long time listener first time caller. I am trying to use the schedule component from the 
Sandbox1.1.3 snapshot and it works fine. The only problem I am having is that I am trying to render the schedule within a scrolling div. Because the way the component is rendered on IE the table appears on top of the div
instead of inside it. When viewing the source of the genereated html the table tag that contains the month class has a style attribute with position:relative. This of course overrides anything I put in the monthClass. If this was
 removed the schedule would render in the div correctly. This leads me to two questions 1.With the ability to define my own styles why would inline styles be generated.
 2.Does anyone have any idea what I can do to override this. P.S. There is no problem with how it renders in firefox, just IE


Re: helper text (like 'Search' on Wiki search input) for inputText

2006-05-10 Thread Jurgen Lust
Seems to me like it's a simple onFocus, onBlur kind of trick. We have a search box component at Ghent university that changes the background color of the inputText that way:These lines in the renderer are all it takes:
 writer.writeAttribute( onfocus, this.style.background='';, null ); writer.writeAttribute( onblur, 
this.style.background='';, null );Jurgen2006/5/10, Mike Kienenberger [EMAIL PROTECTED]:
I've been asked to add a helper text effect like what we see on theMyFaces wiki:
http://wiki.apache.org/myfaces/See how it's got the word Search in the search box which disappearsas soon as you type something in? That's what I need.
Sadly, MoinMoin is GNU GPL licensed, so I don't dare look at the_javascript_ to see how it's done, and my _javascript_ skill is limited towhat I can cut and paste off someone else's site :)Seems like this would be a cool addition to t:inputText.
-Mike


Re: helper text (like 'Search' on Wiki search input) for inputText

2006-05-10 Thread Bruno Aranda

Do you mean something like the t:inputTextHelp, already in tomahawk
[1]? I have just seen that it is not documented in the tomahawk
pages

Cheers,

Bruno

[1] http://www.irian.at/myfaces/inputTextHelp.jsf

On 5/10/06, Mike Kienenberger [EMAIL PROTECTED] wrote:

I've been asked to add a helper text effect like what we see on the
MyFaces wiki:

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

See how it's got the word Search in the search box which disappears
as soon as you type something in?   That's what I need.

Sadly, MoinMoin is GNU GPL licensed, so I don't dare look at the
javascript to see how it's done, and my javascript skill is limited to
what I can cut and paste off someone else's site :)

Seems like this would be a cool addition to t:inputText.

-Mike



Re: message-bundle: Do I need to define my .properties file in the faces-config.xml AND the jsp file both?

2006-05-10 Thread Bruno Aranda

You should only need the loadBundle component:

f:loadBundle basename=com.dtn.petro2.petro_admin.mymessages var=tb/

And it would get the localized properties from
/com/dtn/petro2/petro_admin/mymessages.properties in the classpath.

Regards,

Bruno

On 5/10/06, Todd Patrick [EMAIL PROTECTED] wrote:


Concerning a .properties file, do I need to define the .properties file in
my faces-config.xml:

application
locale-config
default-localeen_US/default-locale
/locale-config

message-bundlecom.dtn.petro2.petro_admin.tbrowser/message-bundle
/application


*AND* in the .jsp page:

f:loadBundle
basename=com.dtn.petro2.petro_admin.tbrowser var=tb/

I return the following error if I don't have the .properties file defined in
my faces-config.xml and only have it defined in my jsp file:

[#|2006-05-10T10:50:12.168-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|ApplicationDispatcher[/transactionbrowser]
Servlet.service() for servlet jsp threw exception

java.lang.NullPointerException: null MessageFactory

Thanks,


--Todd


Re: helper text (like 'Search' on Wiki search input) for inputText

2006-05-10 Thread Michael Harry Scepaniak
To actually effect the text in the field, you need to do some DOM
manipulation, as so:

function setFieldValue(fieldId, text)
{
var inputField = document.getElementById(fieldId);
if (inputField != null)
{
inputField.value = text;
}
};

Then you assign the handler to whatever event(s) you'd like:
writer.writeAttribute(
onfocus, setFieldValue('fieldId', 'text'), null);

Or something very close to that (I'm not sure how the attribute would
come out in the response). Give it a try. One man's opinion.


Mike


--- Jurgen Lust [EMAIL PROTECTED] wrote:

 Seems to me like it's a simple onFocus, onBlur kind of trick. We have
 a
 search box component at Ghent university that changes the background
 color
 of the inputText that way:
 These lines in the renderer are all it takes:
 
 writer.writeAttribute(
 onfocus, this.style.background='#fff';, null
 );
 writer.writeAttribute(
 onblur, this.style.background='#ECEFF8';, null
 );
 
 
 Jurgen
 
 2006/5/10, Mike Kienenberger [EMAIL PROTECTED]:
 
  I've been asked to add a helper text effect like what we see on
 the
  MyFaces wiki:
 
  http://wiki.apache.org/myfaces/
 
  See how it's got the word Search in the search box which
 disappears
  as soon as you type something in?   That's what I need.
 
  Sadly, MoinMoin is GNU GPL licensed, so I don't dare look at the
  javascript to see how it's done, and my javascript skill is limited
 to
  what I can cut and paste off someone else's site :)
 
  Seems like this would be a cool addition to t:inputText.
 
  -Mike
 
 



RE: Positioning of the schedule component

2006-05-10 Thread Ian Johnson



It's a really awesome component, you did a fine 
job.

The only other 
problem I fount in IE is that, in the individual day boxes, if there is 
vertical scrolling it means that there will be horizontal scrolling. I have 
isolated the reason to the width of the table following the div that has the 
auto overflow style. For each day there is a div followed by a table that simply 
has the style of "width:100%". When the vertical scrollbar appears it shifts the 
table over and creates horizontal scrolling in the div, which was trying to 
avoid. I checked this by just printing out the html and lowering the width of 
one of the tables and kaboom...the horizontal scrolling was gone. This problem 
is a little harder to fix because the table has no class associated with it but 
I'm sure I think I can navigate to it on the CSS, 
maybe.

Once again though itdoesn't do that in firefox. Life's 
not fair



From: Jurgen Lust [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 5:18 PMTo: MyFaces 
DiscussionSubject: Re: Positioning of the schedule 
component
This is where you can tell I'm not an IE user :)Perhaps some 
clarification about the decisions made while developing the schedule 
component.I didn't know about this problem in IE. I just followed the css 
specs on this. 'position: relative' means that the position of this box is 
relative to the enclosing box, which in the case of the schedule is the 
containing div. This rendered correctly in all browsers during my tests, but of 
course I didn't test it inside a scrolling div. The reason why the component 
is rendered in layers is that in the detailed view, I needed to render the grid, 
but for the appointments I didn't want to mess around with lots of colspan, 
rowspan stuff, so I decided to just use a table to render the grid in the 
background, and then use absolute positioning for the appointments in a div on 
top of that table. It took quite a bit of work to get this rendered correctly on 
the most important browsers, but eventually it worked. And that is the 
reason for the hardcoded css stuff. I wanted to allow a developer to customize 
the look and feel of the schedule somewhat, without the risk of breaking it. In 
some areas, even the tiniest change in border or margin can totally ruin the way 
it looks on a certain browser, so I hardcoded that stuff in there, leaving all 
color, font, ... stuff free to change. In the meantime, there are some top 
notch examples of html schedules out there (I like the Google and Zimbra ones 
the most), so perhaps we can learn from them to further improve the rendering of 
the schedule component. Kind regards,Jurgen
2006/5/10, Ian Johnson [EMAIL PROTECTED]:
Thanks 
  a lot, I had no idea about the !important thing, that's neat.Here's 
  the thing. It only worked after I override the class for the divthat wraps 
  around thewhole table as well as the month class. So before the schedule 
  component I have 
  this,style.schedule-compact-default{position:static!important;}/styleOf 
  course the name of this class is related to what theme you set. You can 
  see by doing a view source and looking at the class of the div thatwraps 
  around the outer table.Thanks for your help, I will never regret 
  you-Original Message-From: Andrew Robinson 
  [mailto: [EMAIL PROTECTED]]Sent: 
  Wednesday, May 10, 2006 11:13 AMTo: MyFaces DiscussionSubject: Re: 
  Positioning of the schedule componenthave you tried an important CSS 
  style? try:.someClass {position: static 
  !important;}The thing that may cause issues is that 'static' is an 
  IE position, nota w3c position. The w3c equivalent is "normal", but of 
  course Microsoft doesn't care about us developers. Okay, without the soap 
  box, the"!important" should override any child settings by increasing its 
  scoreabove any other style specified.Haven't tested it, but should 
  be worth a shot. On 5/10/06, Ian Johnson [EMAIL PROTECTED] 
  wrote: Hello, long time listener first time 
  caller. I am trying to use the schedule component from the 
  Sandbox1.1.3 snapshot and it works fine. The only problem I am having 
  is that I am trying to render the schedule within a scrolling div. 
  Because the way the component is rendered on IE the table appears on 
  top of the div instead of inside it. When viewing the source of 
  the genereated html the table tag that contains the month class has a 
  style attribute with position:relative. This of course overrides 
  anything I put in the monthClass. If this was  removed the 
  schedule would render in the div correctly. This leads me to 
  two questions 1.With the ability to define my own styles why 
  would inline styles be generated. 2.Does anyone have any idea 
  what I can do to override this. P.S. There is no problem with 
  how it renders in firefox, just 
IE


Re: MyFaces support for Facelets

2006-05-10 Thread Adam Winer

On 5/10/06, Mike Kienenberger [EMAIL PROTECTED] wrote:

On 5/10/06, Adam Winer [EMAIL PROTECTED] wrote:
  I think we'll want to make it a separate jar and project because
  facelets depends on JSF 1.2 RI and the Glassfish EL jars.   And maybe
  JSP 2.1 as well.   Those don't need to be dependencies for standard
  tomahawk use.

 FYI, it doesn't depend on the JSF 1.2 RI, and it *definitely*
 doesn't depend on JSP 2.1 (or anything in JSP, for that matter).
 It does require a javax.el implementation;  I don't remember offhand
 if it's hardcoded against the Glassfish implementation or if
 that's pluggable.

Adam,

When I was working on custom components for the Optional Validation
Framework, I had issues with dependencies on
javax.servlet.jsp.tagext.Tag.   I went back and reviewed the project,
but I couldn't duplicate the issue -- I'm probably misremembering the
root cause and was due to JSP tags instead.

However, com.sun.facelets.tag.jsf.ComponentHandler references
javax.faces.component.ActionSource2 (a dependencies on the JSF 1.2
api).  I thought for sure that this was causing a compile-time
dependency, but again I can't repeat the problem.


I should clarify:  there's definitely a compile-time dependency
on JSF 1.2.  But I got Jacob to make it so that it's compile-time
only, and there's no runtime dependency.

-- Adam




In that case, I'd prefer option 1!



Re: helper text (like 'Search' on Wiki search input) for inputText

2006-05-10 Thread Mike Kienenberger

On 5/10/06, Bruno Aranda [EMAIL PROTECTED] wrote:

Do you mean something like the t:inputTextHelp, already in tomahawk
[1]? I have just seen that it is not documented in the tomahawk
pages

[1] http://www.irian.at/myfaces/inputTextHelp.jsf


Yeah, that looks good, although I'd rather see gray-shaded helper text.

I'm not going to look at this in depth tonight, but is there any
reason why it can't be folded into inputText rather than existing as a
separate component?


Suggestions for implementing a split Pane

2006-05-10 Thread John



The application is 
using Tobago.
Any suggestions for 
including splitPane functionality in the presentation?

Thanks,

John


[newbie] - simple custom tag problems

2006-05-10 Thread JSFSter Smith

Firstly, kudos to the MyFaces team for the recent releases of myfaces 1.1.3 and tomahawk 1.1.2! 

I am just a few weeks old with JSF and am using it for a current
project. So far its been great but I am still getting to know the
deatils. I attempted to create a simple custom JSP tag and was able to
get it together surprisingly quickly. But I do have a problem now. My
tag essentially renders the string in an attribute value. Here is a
sample usage:

my:testTag value=My message (or) my:testTag value=#{datapanel.description}

But the ValueBinding does not seem to work when I try to access a
member of the DataPanel bean that is a collection or another class that
has members. Examples of these cases are below:

t:dataTable value=#{datapanel.sentenceDisplayData} var=each
 t:column
  my:testTag value=#{each.part0} /
  my:testTag value=#{each.part1} /
  my:testTag value=#{each.part2} /
  my:testTag value=#{each.part3} /
 /t:column
/t:dataTable 

(OR)
my:testTag value=#{datapanel.summary.length

I am including my setProperties method of the TagLib class. Would be great if someone can point out what I am missing here. 

 protected void setProperties(UIComponent component) 
 {
  /* you have to call the super class */

  FacesContext context = FacesContext.getCurrentInstance();
  super.setProperties(component);
  
  if(value != null)
  {
   if (isValueReference(value))
   {
 
 ValueBinding vb =
context.getApplication().createValueBinding(value);
   component.setValueBinding(value, vb);

 
 // forcing the value from
the ValueBinding to the component. 
   if(vb != null)
   {
 
 
if(vb.getValue(context) != null)
 
 
((UIInfactHTMLOutput)component).setValue(vb.getValue(context).toString());
   }
   }
   else 
  
 
((UIInfactHTMLOutput)component).setValue(value);
  }
 }

thanks in advance!

-Rajiv