Where to find sandbox.jar ?

2006-05-11 Thread listing
Hello!

First try on a mailing list, hope not to do it all wrong :-)

I am wondering where I can get the latest sandbox.jar from MyFaces? I only 
found it in myfaces-1.1.1, but it seems not complete.

On the sandbox-site I saw fishEyeNavigationMenu and at irian.at I found an 
example using it, which I like very much. But this component is not included in 
the sandbox.jar from myfaces-1.1.1, is it?

How or where can I get it?

Thanks very much,
Sascha


Re: when is form tag required?

2006-05-11 Thread Cosma Colanicchia
I'm a near-newbie, but I think that these components must always live inside a . Is there any reason you can't simply put a  at the top of all your other jsf components, right under your  element?
CosmaOn 5/11/06, Ken <[EMAIL PROTECTED]> wrote:
Hi,Given commandButton, commandLink, and outputLink all render as html anchors, I only wrapped them with form tags when a form field was required (inputText, selectItem...).  Everything worked fine across multiple browsers in myfaces 
1.1.1.Now with myfaces 1.1.3 and tomahawk 1.1.2, I'm having a difficult time finding consistent behavior.  Does anyone know when the commandButton and commandLink tags require to be in a form (or require a form within it's page) in order to execute its action event?
Thank you all for any insights you may share,Ken




Re: when is form tag required?

2006-05-11 Thread xie min
commandButton and commandLink must be in a form, but outputLink can be used without form.
 
2006/5/12, Ken <[EMAIL PROTECTED]>:

Hi,Given commandButton, commandLink, and outputLink all render as html anchors, I only wrapped them with form tags when a form field was required (inputText, selectItem...).  Everything worked fine across multiple browsers in myfaces 
1.1.1.Now with myfaces 1.1.3 and tomahawk 1.1.2, I'm having a difficult time finding consistent behavior.  Does anyone know when the commandButton and commandLink tags require to be in a form (or require a form within it's page) in order to execute its action event? 
Thank you all for any insights you may share, 
Ken


Re: removal of actionForPhase

2006-05-11 Thread Martin Marinschek

Hi Peter,

yes, you're right. With JSF1.1 and JSP, you'll have to write your
custom validation logic in the backing bean for this to work.

so two options:

1 - write your own validation logic
2 - switch over to facelets.

regards,

Martin

On 5/11/06, Peter Rohne <[EMAIL PROTECTED]> wrote:





On inspection of the validate logic I see what you're saying. The
validation phase cannot be skipped because this is where the value gets
populated from the submitted value. I don't see a reason to bring
actionForPhase back.

Here is a simplified description of my problem. Tell me if there is a way
to do this.
- My page has two buttons (button1 and button2) and one input field
(input1)
- input1 is required when button1 is clicked
- input1 is not required when button2 is clicked, but must be updated in
the model as long as conversion doesn't fail (In my case input1 is a
number. So as long as it can be converted to BigDecimal).

BTW - I tried to use the optional validation framework but it doesn't work
with JSF 1.1 and JSP.  I'm told it is failing on the wrapped validators.

Peter Rohne
IT Architect
IBM Business Consulting Services
400 Ellice Avenue
Winnipeg, MB. R3B 3M3

cellular: (204) 797-4149
office: (204) 934-2683
[EMAIL PROTECTED]





 "Martin
 Marinschek"
   "MyFaces Discussion"
   
 05/11/2006 01:04   cc
 PM
   Subject
   Re: removal of actionForPhase
 Please respond to
 "MyFaces
Discussion"







Hi Peter,

I've rethought about this attribute, and consider it invalid for the
usecase I originally intended it for. What I wanted to do was optional
validation. Now optional validation is nonsense, if in the update
model phase the values won't be passed over from the submitted value
attribute of the components to the backing bean.

do you have a valid usecase for reenabling it?

regards,

Martin

On 5/11/06, Peter Rohne <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I noticed in bug TOMAHAWK-190 that the actionForPhase attribute was
removed
> from commandLink and commandButton because it wasn't working. Is there a
> plan to fix this and bring it back and if so when?
>
> Peter Rohne
> IT Architect
> IBM Business Consulting Services
> 400 Ellice Avenue
> Winnipeg, MB. R3B 3M3
>
> cellular: (204) 797-4149
> office: (204) 934-2683
> [EMAIL PROTECTED]
>
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces






--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: [newbie] - simple custom tag problems

2006-05-11 Thread JSFSter Smith
Hi Volker,

Thanks! yes that was the problem. 
I am getting a better hang of the JSF rendering framework now and it is pretty powerful!

Thanks again.

-RajivOn 11/05/06, Volker Weber <[EMAIL PROTECTED]> wrote:
Hi,see inlineJSFSter Smith wrote:> Hi Volker,>> Thanks for your response!>> I attempted the forcing of the ValueBinding in the setProperties() since> setting value of the tag attribute was not passed on to the Component
> Class.>> In a case like this:  (or) > value="#{datapanel.description}">>> where description is a String, the contents of the 'value' attribute in the
> setProperty method of the Tag class are picked up ok.>> But in the case when the the  Bean member is not a string (like in the> dataTable case), the contents of the value attribute in  setProperty()
> are :> #{datapanel.description}. In this case, the getValue() in my Custom> Component class is null and the EL does not seem to be processed.>> My setProperties() method :>protected void setProperties(UIComponent component)
>{>FacesContext context = FacesContext.getCurrentInstance();>super.setProperties(component);>>if(value != null)>{>if (isValueReference(value))
> {>ValueBinding
vb = context.getApplication> ().createValueBinding(value);>component.setValueBinding("value",
vb);>  }>  else>  ((UICustomHTMLOutput)component).setValue(value);>}>}>>> And my state and encode methods from the UICustomHTMLOutput:
>@Override>public Object saveState(FacesContext context)>{>Object values[] = new Object[2];>values[0] = super.saveState(context);>values[1] = value;
>return ((Object) (values));>}>>@Override>public void restoreState(FacesContext context, Object state)>{>Object values[] = (Object[])state;
>super.restoreState(context, values[0]);>value = (String)values[1];>}>>// component render>public void encodeBegin(FacesContext context) throws IOException
>{>>ResponseWriter writer = context.getResponseWriter();>>writer.startElement("p", this);>writer.write(value);This is the wrong part. In case of ValueBinding the value is of cause
null. you need here the same if else as in setProperties():  if (value != null) {writer.write(value);  } else {ValueBinding vb = getValueBinding("value");if (vb != null) {
  writer.write(vb.getValue(context));}  }Regards,  Volker>writer.endElement("p");>writer.flush();>}>
> Any help is greatly appreciated. Thanks!>> -Rajiv>> On 11/05/06, Volker Weber <[EMAIL PROTECTED]> wrote:>
 Hi Rajiv,>> JSFSter Smith wrote:>> >>> > 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:>> >
>> >  (or) >> > 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:>> >>> > >> > >> > >> > >> > >> > >> > 
>> > >> >>> > (OR)>> > >> >>> > 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);>> > - remove following -->>
>
// forcing the value from the ValueBinding to the>> > component.>> > if(vb != null)>> > {>>
>
if(vb.getValue(context) != null)>> >>> > ((UIInfactHTMLOutput)component).setValue(vb.getValue>> (context).toString());>> > }>> - / remove following --
 Why this? Thats the problem!>> Here are the valueBinding evaluated at component creation time, but>> datatable needs eavluation at rendering time! just remove this an it should do.
>> >   }>> >   else>>
>  
((UIInfactHTMLOutput)component).

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

2006-05-11 Thread Wayne Fay

You should send this to the Maven Users email list, not MyFaces.
Someone there will help you out, I'm sure. ;-)

users@maven.apache.org

Wayne

On 5/11/06, Sean Schofield <[EMAIL PROTECTED]> wrote:

Maybe you could hack it by labeling your internal artifacts as
snapshots and then listing my-repo as snapshot only?  Still learning
maven so that may be way off.

Sean

On 5/10/06, Bruno Aranda <[EMAIL PROTECTED]> wrote:
> 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...
>
> 
>  
> central-repo
> Ibiblio repository
> http://www.ibiblio.org/maven2
> 
>
>my-repo
>My interlanl repository
>http://www.myorganization.org/m2repo
>
>
>
> 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:
> >
> > ...
> >
> > 
> > 
> > my-repo
> > My interlanl repository
> > http://www.myorganization.org/m2repo
> > 
> > 
> >
> > ...
> >
> > 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 = '
> >  > ...
> > 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: Tomcat 5.5.16 problem

2006-05-11 Thread L Frohman



jsp-2.0.jar and commons-el.jar
 
see:

http://myfaces.apache.org/tomcat.html 



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Ken McArthurSent: 
Thursday, May 11, 2006 1:31 PMTo: MyFaces 
DiscussionSubject: Re: Tomcat 5.5.16 problem
Try removing a couple of jar files from WEB-INF/lib of the 
application in webapp.I'm pretty sure one of them is commons-el-1.0.jar. 
Don't remember the other one but the MyFaces Tomcat configuration help page 
lists it. They conflict with what's shipped with Tomcat.  Good 
luck.
On 5/11/06, Garg, 
Apoorv <[EMAIL PROTECTED] 
> wrote:

  
  
  Hello, 
  I am trying to integrate a myfaces test app under 
  my current webapp. Initially I thought I had it running but that was because I 
  had the test app sitting under the CATALINA_HOME/webapp folder. I removed it 
  from there, moved the required files around under my own webapp and now I am 
  not able to launch the test app jsp page. 
  My guess is that I am missing some configuration 
  value for the web.xml file under my own webapp. I would appreciate the 
  help.
  Thanks. Apoorv 
  Garg. 


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

2006-05-11 Thread Sean Schofield

Maybe you could hack it by labeling your internal artifacts as
snapshots and then listing my-repo as snapshot only?  Still learning
maven so that may be way off.

Sean

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

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...


 
central-repo
Ibiblio repository
http://www.ibiblio.org/maven2

   
   my-repo
   My interlanl repository
   http://www.myorganization.org/m2repo
   
   

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:
>
> ...
>
> 
> 
> my-repo
> My interlanl repository
> http://www.myorganization.org/m2repo
> 
> 
>
> ...
>
> 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 = '
>  ...
> 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: InputDate problem

2006-05-11 Thread Patrick Dalla Bernardina

I've updated to version 1.1.3 and everything worked.



Patrick Dalla Bernardina wrote:



I have the following datatable:

every input other than inputDate updates the correspondent  bean 
property .
Why inputDate doesn't updates the bean property associated with the 
value attribute?





   
   
   
   
   rowClasses="portlet-section-body">

   
   value="Nome:#{dependente.nome}">

   
   
   

   
   value="#{dependente.dataExpedicao}">

   
   
   






Re: removal of actionForPhase

2006-05-11 Thread Peter Rohne




On inspection of the validate logic I see what you're saying. The
validation phase cannot be skipped because this is where the value gets
populated from the submitted value. I don't see a reason to bring
actionForPhase back.

Here is a simplified description of my problem. Tell me if there is a way
to do this.
- My page has two buttons (button1 and button2) and one input field
(input1)
- input1 is required when button1 is clicked
- input1 is not required when button2 is clicked, but must be updated in
the model as long as conversion doesn't fail (In my case input1 is a
number. So as long as it can be converted to BigDecimal).

BTW - I tried to use the optional validation framework but it doesn't work
with JSF 1.1 and JSP.  I'm told it is failing on the wrapped validators.

Peter Rohne
IT Architect
IBM Business Consulting Services
400 Ellice Avenue
Winnipeg, MB. R3B 3M3

cellular: (204) 797-4149
office: (204) 934-2683
[EMAIL PROTECTED]




   
 "Martin   
 Marinschek"   
   "MyFaces Discussion"   
 
 
 05/11/2006 01:04   cc 
 PM
   Subject 
   Re: removal of actionForPhase   
 Please respond to 
 "MyFaces  
Discussion"
   
   
   




Hi Peter,

I've rethought about this attribute, and consider it invalid for the
usecase I originally intended it for. What I wanted to do was optional
validation. Now optional validation is nonsense, if in the update
model phase the values won't be passed over from the submitted value
attribute of the components to the backing bean.

do you have a valid usecase for reenabling it?

regards,

Martin

On 5/11/06, Peter Rohne <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I noticed in bug TOMAHAWK-190 that the actionForPhase attribute was
removed
> from commandLink and commandButton because it wasn't working. Is there a
> plan to fix this and bring it back and if so when?
>
> Peter Rohne
> IT Architect
> IBM Business Consulting Services
> 400 Ellice Avenue
> Winnipeg, MB. R3B 3M3
>
> cellular: (204) 797-4149
> office: (204) 934-2683
> [EMAIL PROTECTED]
>
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces




Re: Tomcat 5.5.16 problem

2006-05-11 Thread Ken McArthur
Try removing a couple of jar files from WEB-INF/lib of the application in webapp.I'm pretty sure one of them is commons-el-1.0.jar. Don't remember the other one but the MyFaces Tomcat configuration help page lists it.
They conflict with what's shipped with Tomcat.  Good luck.On 5/11/06, Garg, Apoorv <[EMAIL PROTECTED]
> wrote:









Hello,


I am trying to integrate a myfaces test app under my current webapp. Initially I thought I had it running but that was because I had the test app sitting under the CATALINA_HOME/webapp folder. I removed it from there, moved the required files around under my own webapp and now I am not able to launch the test app jsp page. 


My guess is that I am missing some configuration value for the web.xml file under my own webapp. I would appreciate the help.

Thanks.

Apoorv Garg.







Re: [newbie] - simple custom tag problems

2006-05-11 Thread Volker Weber
Hi,

see inline

JSFSter Smith wrote:
> Hi Volker,
> 
> Thanks for your response!
> 
> I attempted the forcing of the ValueBinding in the setProperties() since
> setting value of the tag attribute was not passed on to the Component
> Class.
> 
> In a case like this:  (or) 
> value="#{datapanel.description}">
> 
> where description is a String, the contents of the 'value' attribute in the
> setProperty method of the Tag class are picked up ok.
> 
> But in the case when the the  Bean member is not a string (like in the
> dataTable case), the contents of the value attribute in  setProperty()
> are :
> #{datapanel.description}. In this case, the getValue() in my Custom
> Component class is null and the EL does not seem to be processed.
> 
> My setProperties() method :
>protected void setProperties(UIComponent component)
>{
>FacesContext context = FacesContext.getCurrentInstance();
>super.setProperties(component);
> 
>if(value != null)
>{
>if (isValueReference(value))
> {
>ValueBinding vb = context.getApplication
> ().createValueBinding(value);
>component.setValueBinding("value", vb);
>  }
>  else
>  ((UICustomHTMLOutput)component).setValue(value);
>}
>}
> 
> 
> And my state and encode methods from the UICustomHTMLOutput:
>@Override
>public Object saveState(FacesContext context)
>{
>Object values[] = new Object[2];
>values[0] = super.saveState(context);
>values[1] = value;
>return ((Object) (values));
>}
> 
>@Override
>public void restoreState(FacesContext context, Object state)
>{
>Object values[] = (Object[])state;
>super.restoreState(context, values[0]);
>value = (String)values[1];
>}
> 
>// component render
>public void encodeBegin(FacesContext context) throws IOException
>{
> 
>ResponseWriter writer = context.getResponseWriter();
> 
>writer.startElement("p", this);


>writer.write(value);

This is the wrong part. In case of ValueBinding the value is of cause
null. you need here the same if else as in setProperties():

  if (value != null) {
writer.write(value);
  } else {
ValueBinding vb = getValueBinding("value");
if (vb != null) {
  writer.write(vb.getValue(context));
}
  }

Regards,
  Volker

>writer.endElement("p");
>writer.flush();
>}
> 
> Any help is greatly appreciated. Thanks!
> 
> -Rajiv
> 
> On 11/05/06, Volker Weber <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi Rajiv,
>>
>>
>> JSFSter Smith wrote:
>> >
>> > 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:
>> >
>> >  (or) > > 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:
>> >
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>> > (OR)
>> > 
>> >
>> > 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);
>> >
>>
>> - remove following --
>> > // forcing the value from the ValueBinding to the
>> > component.
>> > if(vb != null)
>> > {
>> > if(vb.getValue(context) != null)
>> >
>> > ((UIInfactHTMLOutput)component).setValue(vb.getValue
>> (context).toString());
>> > }
>> - / remove following --
>>
>> Why this? Thats the problem!
>> Here are the valueBinding evaluated at component creation time, but
>> datatable needs eavluation at rendering time!
>>
>> just remove this an it should do.
>>
>>
>> >   }
>> >   else
>> >   ((UIInfactHTMLOutput)component).setValue(value);
>> > }
>> > }
>>

InputDate problem

2006-05-11 Thread Patrick Dalla Bernardina


I have the following datatable:

every input other than inputDate updates the correspondent  bean property .
Why inputDate doesn't updates the bean property associated with the 
value attribute?





   
   
   
   
   rowClasses="portlet-section-body">

   
   value="Nome:#{dependente.nome}">

   
   
   

   
   value="#{dependente.dataExpedicao}">

   
   
   



Tomcat 5.5.16 problem

2006-05-11 Thread Garg, Apoorv
Title: Tomcat 5.5.16 problem






Hello,


I am trying to integrate a myfaces test app under my current webapp. Initially I thought I had it running but that was because I had the test app sitting under the CATALINA_HOME/webapp folder. I removed it from there, moved the required files around under my own webapp and now I am not able to launch the test app jsp page. 

My guess is that I am missing some configuration value for the web.xml file under my own webapp. I would appreciate the help.

Thanks.

Apoorv Garg.





Re: svn problem

2006-05-11 Thread Bruno Aranda

There is a problem in the server that hosts the svn repository. The
infrastructure team is working on that. Hopefully it will be solved in
the next hours!

Bruno


On 5/11/06, L Frohman <[EMAIL PROTECTED]> wrote:

I can't get to the source repository with svn under eclipse (it used to
work)
It was the same yesterday. Is there a problem on the server, or has
something changed?

Thanks,
Lance


svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
(http://svn.apache.org)

RA layer request failed
svn: PROPFIND request failed on '/repos/asf/myfaces'
svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
(http://svn.apache.org)




Re: @lastmodified@ in AddResource.properties

2006-05-11 Thread Mike Kienenberger

There's an open JIRA issue on this if someone wants to attach a patch.

On 5/11/06, Bruno Aranda <[EMAIL PROTECTED]> wrote:

No, right now it is expected. After the move to myfaces this behaviour
was not reimplemented, and stills need to be implemented. We need a
way, a plugin or something, that updates the AddResources.properties
file with the build date...

Regards,

Bruno

On 5/11/06, Aleksei Valikov <[EMAIL PROTECTED]> wrote:
> Hi.
>
> When building MyFaces myself, I get @lastmodified@ in AddResource which
> basically disables client-side resource caching. What do I have to do to 
replace
> @lastmodified@ with the correct value? Do I miss something?
>
> Bye.
> /lexi
>



Re: @lastmodified@ in AddResource.properties

2006-05-11 Thread Bruno Aranda

No, right now it is expected. After the move to myfaces this behaviour
was not reimplemented, and stills need to be implemented. We need a
way, a plugin or something, that updates the AddResources.properties
file with the build date...

Regards,

Bruno

On 5/11/06, Aleksei Valikov <[EMAIL PROTECTED]> wrote:

Hi.

When building MyFaces myself, I get @lastmodified@ in AddResource which
basically disables client-side resource caching. What do I have to do to replace
@lastmodified@ with the correct value? Do I miss something?

Bye.
/lexi



Re: svn problem

2006-05-11 Thread Dennis Byrne
Hello Lance,

Infrastructure team is working on it .

Dennis Byrne

>-Original Message-
>From: L Frohman [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 11, 2006 02:50 PM
>To: ''MyFaces Discussion''
>Subject: svn problem
>
>I can't get to the source repository with svn under eclipse (it used to
>work)
>It was the same yesterday. Is there a problem on the server, or has
>something changed?
>
>Thanks,
>Lance
>
>
>svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
>(http://svn.apache.org)
>
>RA layer request failed
>svn: PROPFIND request failed on '/repos/asf/myfaces'
>svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
>(http://svn.apache.org)
>
>




Re: [newbie] Beginners questions regarding dynamic links

2006-05-11 Thread Scrut Inizer
Thanks for your hints. However, as a JSF beginner I still don't know what to 
do. I spent the past 8 hours reading everything I found on the myfaces page 
including the wiki, reviewed the examples and used google extensively. All 
examples I found either used hard coded tabs and such or didn't offer any 
documentation.


But I assume there must be some documentation SOMEWHERE which is sufficient 
to use the panelTabbedPane with a binding?

I couldn't find a much and don't understand what I got.

Thank you very much




From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion" 
To: "MyFaces Discussion" 
Subject: Re: [newbie] Beginners questions regarding dynamic links
Date: Thu, 11 May 2006 16:57:38 +0200

To make a long story short :-)

JSF Core can mean MyFaces IMPL or SUN RI, since JSF is a spec
(all Tomahawk is a set of custom components, like Tobago and the ADF Faces 
donation


Reading myfaces.apache.org (and wiki.apache.org/myfaces) will help you
on some questions.

For a tabbed pane you can use MyFaces Tomahawk's component ([1]). the
example is "hard coded" as well. But you can use the binding attribute
to push the component itself to a backing bean. This will allow you
access to the component by hacking java code inside the backing bean.
Means you can add childrens with Java Code (aka tabs)

HTH,
Matthias

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

On 5/11/06, Scrut Inizer <[EMAIL PROTECTED]> wrote:

After working through some tutorials and documentations I ran into some
beginners questions while writing my own, little JSF application.
I would really appreciate it if you could take some time to give me some
hints because I am really lost. Reading the following text will probably
take the longest as I am sure you all know the answers to my newbie
questions off by heart. Here we go:

1. How do I create a tabbed pane and fill the tabs and the active pane 
with

dynamic links?
3. How do I associate a different parameter to each of those links?
3. How do I pass that parameter on to the Backing Bean method that is 
called

after clicking on a link?
4. How do I pass such a parameter to a method in a different Backing Bean?
5. Which component is most suitable for such a tabbed pane?

Thank you so much!

Scrut

--
Here is what I want to do:

I have a collection of music pieces and the associated metadata for each
piece is stored in one database table. In a second table I have multiple
classifications such as

Genre
  Classical
  Jazz
Acid Jazz
Latin Jazz
  Rock

Region
  Africa
  America
South America
North America
  Europe
  Asia
  Australia

Something like that. Each music piece is associated with each 
classification

tree. (Each music piece belongs to a Genre and comes from a different
region…)
Now I want a user to be able to find a list of music pieces by navigating
through any of those classification systems.
I want something like a tabbed pane where the tabs are filled with the 
roots
of those classification trees (in this example there are two tabs: Genre 
and

Region)
Let's assume the active tab is Genre. Then the content of the associated
pane is to be the list of the first level descendants of the root. (In 
this

example: Classical, Jazz, Rock)
Each item is to be a link so that when the user clicks on "Jazz", the pane
will be populated with "Acid Jazz" and "Latin Jazz".

But how do I do that?
1. What components (JSF Core, MyFaces, Tomahawk, Tobago, Sun UI…) should I
use?
2. How do I create the tabs dynamically? I mean: all examples I have seen 
so
far assume that one knows the number and names of the tabs – and 
hard-codes
each of them. But how do I do that dynamically? (If there is only 2 trees 
in

the database there will be only 2 tabs but if there are suddenly 3 trees
there will be 3 tabs and so on)
3. How do I create a dynamic list of links where each link carries a
different parameter (e.g. a unique ID)?
4. How do I pass that parameter on to the Backing Bean method that is
invoked by clicking on the link?

Is that even the way to do this?
My idea was: Let's assume, "Jazz" has primary key "2" in the database and
"Acid Jazz" has "3" and "Latin Jazz" has "4" and the database knows that 3
and 4 are children of 2 because each child holds its parent ID:

ITEM_ID NAMEPARENT_ID   SONG_ID
2   Jazz--  --
3   Acid Jazz   2   --
4   Latin Jazz  2   --
5   Song1   4   1
6   Song2   4   2

Now the user clicks on "Jazz" which calls the method "userClick()" within
the associated Backing Bean. Somehow that link carried the parameter "2"
which is now used by userClick() to ask the database "give me all children
of '2'". The database will return a list with the two items "Acid Jazz" 
and

"Latin Jazz". So the method fills those two items into the managed
properties of the Backing Bean and returns the outcome "menupage" which is
defined in faces-config.xml to ca

svn problem

2006-05-11 Thread L Frohman
I can't get to the source repository with svn under eclipse (it used to
work)
It was the same yesterday. Is there a problem on the server, or has
something changed?

Thanks,
Lance


svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
(http://svn.apache.org)

RA layer request failed
svn: PROPFIND request failed on '/repos/asf/myfaces'
svn: PROPFIND of '/repos/asf/myfaces': could not connect to server
(http://svn.apache.org)



when is form tag required?

2006-05-11 Thread Ken
Hi,Given commandButton, commandLink, and outputLink all render as html anchors, I only wrapped them with form tags when a form field was required (inputText, selectItem...).  Everything worked fine across multiple browsers in myfaces 
1.1.1.Now with myfaces 1.1.3 and tomahawk 1.1.2, I'm having a difficult time finding consistent behavior.  Does anyone know when the commandButton and commandLink tags require to be in a form (or require a form within it's page) in order to execute its action event?
Thank you all for any insights you may share,Ken


Re: removal of actionForPhase

2006-05-11 Thread Martin Marinschek

Hi Peter,

I've rethought about this attribute, and consider it invalid for the
usecase I originally intended it for. What I wanted to do was optional
validation. Now optional validation is nonsense, if in the update
model phase the values won't be passed over from the submitted value
attribute of the components to the backing bean.

do you have a valid usecase for reenabling it?

regards,

Martin

On 5/11/06, Peter Rohne <[EMAIL PROTECTED]> wrote:





I noticed in bug TOMAHAWK-190 that the actionForPhase attribute was removed
from commandLink and commandButton because it wasn't working. Is there a
plan to fix this and bring it back and if so when?

Peter Rohne
IT Architect
IBM Business Consulting Services
400 Ellice Avenue
Winnipeg, MB. R3B 3M3

cellular: (204) 797-4149
office: (204) 934-2683
[EMAIL PROTECTED]






--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: which method will be invoked in the invoke application phase.

2006-05-11 Thread Cagatay Civici
Hi,The queued events in JSF are hold in a private list per phase and as far I know there is no way to access these list public.Since security is a crosscutting concern more than a layer, using aspects might work for you. All the events in JSF extends from FacesEvent which has a method called processListener. Looks like a good point to cut. The problem might to determine which roles can execute which events.
CagatayOn 5/11/06, vace117 <[EMAIL PROTECTED]> wrote:
I haven't done anything like that myself, but you could try the following.Let me know if it works for you.1) Register your own ActionListener with  in yourjsf-config.2) In the listener you will have access to the ActionEvent, which will give
you access to the event source UICommand component3) UICommand implements ActionSource, so you can find out what method willbe called by calling getAction() on it to get your MethodBinding.4) Check if the user is allowed to run this method. If not, throw an
AbortProcessingExceptionThe 1st step is the part I never tried. If it doesn't work, you can alwaysprovide your own default ActionListener by setting it withapplication.setActionListener(). If you have to do that, either subclass
ActionListenerImpl or copy most of the code from it and add your securitycode.I am curious whether this works or not, so please post the results if youtry it.--View this message in context: 
http://www.nabble.com/Re%3A-which-method-will-be-invoked-in-the-invoke-application-phase.-t1599198.html#a4342736Sent from the MyFaces - Users forum at Nabble.com.



Re: which method will be invoked in the invoke application phase.

2006-05-11 Thread Craig McClanahan
On 5/11/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
I want to implement a security layer based on listener. I need to find out wich action in wich class of application would be called in the PhaseListener and the decide if the user allowed to do it or not. After 2 days of googling I couldn't find out how can I get the method would be called at the INVOKE_APPLCATION phase.
Could somebody help me please?Regards,ArashThe code that actually decides to invoke a particular action method is the decode() processing for the corresponding Command Button or Command Link component.  It triggers the ultimate call by queueing an ActionEvent sourced by that particular component, which will then get executed (typically at the end of Invoke Application phase) by a default ActionListener provided by the JSF implementation.  This listener's implementation will look up the "action" property of the component, and execute the action method with a method binding _expression_.
Given this, one strategy for implementing a security layer would be to register your own default ActionListener (using a  element inside a  element, in a faces-config.xml file) that would be invoked instead of the default one.  If I were doing this, I'd probably follow this kind of a strategy:
* Make my listener implementation class have a constructor that takes  an ActionListener argument.  This lets me leverage the "decorator pattern"  approach JSF follows for extension points, because JSF will pass in a
  pointer to the original default ActionListener, so you can delegate to it.* When the event actually fires, you know which component it is (the origin  component in the ActionEvent), and can therefore look up the action method
  _expression_ that will be invoked.  You can also get to the FacesContext for  the current request to examine any other state you need.* If you decide to allow this invocation, just delegate to the processAction()
  method of the default implementation.  If you want to block it, do something  else (details here depending on what you want to have happen).If you decide to try this sort of thing, I'd be very interested in how it works out.  One of the RFEs on our plate for Shale is to add support for a general purpose version of this kind of interceptor, and allow you to specify the processing to perform (before and after the actual action method invocation) with something like Commons Chain or XWork interceptors).  Further discussion of that should take place on the Struts dev list, and/or by making comments on the JIRA issue for it[1].
Craig[1] http://issues.apache.org/struts/browse/SHALE-149


Re: [newbie] - simple custom tag problems

2006-05-11 Thread JSFSter Smith
Hi Volker,

Thanks for your response!

I attempted the forcing of the ValueBinding in the setProperties()
since setting value of the tag attribute was not passed on to the
Component Class.

In a case like this:  (or)  value="#{datapanel.description}">
where description is a String, the contents of the 'value' attribute in
the setProperty method of the Tag class are picked up ok. 

But in the case when the the  Bean member is not a string (like in
the dataTable case), the contents of the value attribute in 
setProperty() are : #{datapanel.description}. In this case, the
getValue() in my Custom Component class is null and the EL does not
seem to be processed.

My setProperties() method :
    protected void setProperties(UIComponent component) 
    {
        FacesContext context = FacesContext.getCurrentInstance();
        super.setProperties(component);
        
        if(value != null)
        {
            if (isValueReference(value))
         {
       
    ValueBinding vb =
context.getApplication().createValueBinding(value);
            component.setValueBinding("value", vb);
          }
          else 
           
     
((UICustomHTMLOutput)component).setValue(value);
        }
    }


And my state and encode methods from the UICustomHTMLOutput:
    @Override
    public Object saveState(FacesContext context) 
    {
    Object values[] = new Object[2];
    values[0] = super.saveState(context);
    values[1] = value;
    return ((Object) (values));
    }

    @Override
    public void restoreState(FacesContext context, Object state) 
    {
    Object values[] = (Object[])state;
    super.restoreState(context, values[0]);
    value = (String)values[1];
    }
  
    // component render
    public void encodeBegin(FacesContext context) throws IOException 
    {

        ResponseWriter writer = context.getResponseWriter();
        
        writer.startElement("p", this);
            writer.write(value);
            writer.endElement("p");
            writer.flush();
    }    

Any help is greatly appreciated. Thanks!

-Rajiv

On 11/05/06, Volker Weber <[EMAIL PROTECTED]> wrote:
Hi Rajiv,JSFSter Smith wrote:>> 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:>>  (or) > 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:
>> > > > > > > > 
>> (OR)> >> 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);>- remove following -->
// forcing the value from the ValueBinding to the> component.> if(vb != null)> {>
if(vb.getValue(context) != null)>> ((UIInfactHTMLOutput)component).setValue(vb.getValue(context).toString());> }- / remove following --Why this? Thats the problem!
Here are the valueBinding evaluated at component creation time, butdatatable needs eavluation at rendering time!just remove this an it should do.>   }>   else
>  
((UIInfactHTMLOutput)component).setValue(value);> }> }>or better implement your set properties using UIComponentTagUtils like this:protected void setProperties(UIComponent component)
{  super.setProperties(component);  UIComponentTagUtils.setValueProperty(getFacesContext(), component,value);}Regards,  Volker> thanks in advance!
>> -Rajiv--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.



@lastmodified@ in AddResource.properties

2006-05-11 Thread Aleksei Valikov

Hi.

When building MyFaces myself, I get @lastmodified@ in AddResource which 
basically disables client-side resource caching. What do I have to do to replace 
@lastmodified@ with the correct value? Do I miss something?


Bye.
/lexi


RE: t:outputLabel for attribute and forceId="true"

2006-05-11 Thread Locke, Richard
Hi Matthias,

Thanks for the very useful article. The solution was there on the first
page!
The  tag does the job perfectly.

Rich

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: 11 May 2006 16:02
To: MyFaces Discussion
Subject: Re: t:outputLabel for attribute and forceId="true"

> That's all fine except that the label's for attribute has the 'form:'
> prefix. Why? I would not think that  tag would know 
> anything about the rest of the page.

That is a "problem" of JSF 1.1 spec

 (or h:outputlabe) BEFORE an input won't work

since the label doesn't know the rest of the page

see [1] for lot's of informations on that

-Matthias

[1] http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.



sandbox version with example

2006-05-11 Thread Marco Ceccarelli
Is there e recent release of myfaces with sandbox components (like 
ajaxInputSuggest) with (or witohout) example that work ?
I've tried the version from 
http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-sandbox/

with the 1.1.3 core but it doesn't work for me...

--
Marco Ceccarelli - Programmatore
T.N.X. snc - Internet & Multimedia
Web: www.tnx.it - Tel: 0577 980701


removal of actionForPhase

2006-05-11 Thread Peter Rohne




I noticed in bug TOMAHAWK-190 that the actionForPhase attribute was removed
from commandLink and commandButton because it wasn't working. Is there a
plan to fix this and bring it back and if so when?

Peter Rohne
IT Architect
IBM Business Consulting Services
400 Ellice Avenue
Winnipeg, MB. R3B 3M3

cellular: (204) 797-4149
office: (204) 934-2683
[EMAIL PROTECTED]




Startup logging question for MyfacesConfig

2006-05-11 Thread Joey Geiger
I'm wondering why I'm seeing the following things *twice* in my logs 
when the application starts up.


INFO MyfacesConfig - No context init parameter 
'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value 
org.apache.myfaces.renderkit.html.util.DefaultAddResource
INFO MyfacesConfig - No context init parameter 
'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
INFO MyfacesConfig - No context init parameter 
'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value 
org.apache.myfaces.renderkit.html.util.DefaultAddResource
INFO MyfacesConfig - No context init parameter 
'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true





Re: which method will be invoked in the invoke application phase.

2006-05-11 Thread vace117

I haven't done anything like that myself, but you could try the following.
Let me know if it works for you.

1) Register your own ActionListener with  in your
jsf-config. 
2) In the listener you will have access to the ActionEvent, which will give
you access to the event source UICommand component
3) UICommand implements ActionSource, so you can find out what method will
be called by calling getAction() on it to get your MethodBinding. 
4) Check if the user is allowed to run this method. If not, throw an
AbortProcessingException

The 1st step is the part I never tried. If it doesn't work, you can always
provide your own default ActionListener by setting it with
application.setActionListener(). If you have to do that, either subclass
ActionListenerImpl or copy most of the code from it and add your security
code.

I am curious whether this works or not, so please post the results if you
try it.
--
View this message in context: 
http://www.nabble.com/Re%3A-which-method-will-be-invoked-in-the-invoke-application-phase.-t1599198.html#a4342736
Sent from the MyFaces - Users forum at Nabble.com.



How to make selectManyMenu depened on a combobox

2006-05-11 Thread Michael Ageeb
Hello,   I've used the ajaxChildComboBox to make two combobox depened on each other.How can use the same technique or any other technique to make any type of selectManyMenu depened on ajaxChildComboBox.
Regards,-- http://mageeb.netDon't send me any attachment in Micro$oft (.DOC, .PPT) format pleaseRead 

http://www.gnu.org/philosophy/no-word-attachments.htmlPreferable attachments: .PDF, .HTML, .TXTThanx for adding this text to Your signature


Re: t:outputLabel for attribute and forceId="true"

2006-05-11 Thread Matthias Wessendorf

That's all fine except that the label's for attribute has the 'form:'
prefix. Why? I would not think that  tag would know
anything about the rest of the page.


That is a "problem" of JSF 1.1 spec

 (or h:outputlabe) BEFORE an input won't work

since the label doesn't know the rest of the page

see [1] for lot's of informations on that

-Matthias

[1] http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html


(D)Html Menu

2006-05-11 Thread Aleksei Valikov

Hi folks.

I'm a bit tired of issues with HtmlCommandJSCookMenu. One of the biggest 
problems is that action bindings are coded in clear text on the client side 
(which is by the way a major security whole). Therefore I'm looking for an 
alternative component for menus.


Another possibility is to implement a menu myself. I'd like to render the tree 
of navigation items into something like:


initMenu("menu");

  
 Menu 1
 
Menu 2

  Submenu 2.1
  Submenu 2.2

 
  


Have anyone maybe seen a DHTML menu which could be configured with normal HTML 
tags (like above)?


Bye.
/lexi



Re: [newbie] Beginners questions regarding dynamic links

2006-05-11 Thread Matthias Wessendorf

To make a long story short :-)

JSF Core can mean MyFaces IMPL or SUN RI, since JSF is a spec
(all http://www.irian.at/myfaces/tabbedPane.jsf

On 5/11/06, Scrut Inizer <[EMAIL PROTECTED]> wrote:

After working through some tutorials and documentations I ran into some
beginners questions while writing my own, little JSF application.
I would really appreciate it if you could take some time to give me some
hints because I am really lost. Reading the following text will probably
take the longest as I am sure you all know the answers to my newbie
questions off by heart. Here we go:

1. How do I create a tabbed pane and fill the tabs and the active pane with
dynamic links?
3. How do I associate a different parameter to each of those links?
3. How do I pass that parameter on to the Backing Bean method that is called
after clicking on a link?
4. How do I pass such a parameter to a method in a different Backing Bean?
5. Which component is most suitable for such a tabbed pane?

Thank you so much!

Scrut

--
Here is what I want to do:

I have a collection of music pieces and the associated metadata for each
piece is stored in one database table. In a second table I have multiple
classifications such as

Genre
  Classical
  Jazz
Acid Jazz
Latin Jazz
  Rock

Region
  Africa
  America
South America
North America
  Europe
  Asia
  Australia

Something like that. Each music piece is associated with each classification
tree. (Each music piece belongs to a Genre and comes from a different
region…)
Now I want a user to be able to find a list of music pieces by navigating
through any of those classification systems.
I want something like a tabbed pane where the tabs are filled with the roots
of those classification trees (in this example there are two tabs: Genre and
Region)
Let's assume the active tab is Genre. Then the content of the associated
pane is to be the list of the first level descendants of the root. (In this
example: Classical, Jazz, Rock)
Each item is to be a link so that when the user clicks on "Jazz", the pane
will be populated with "Acid Jazz" and "Latin Jazz".

But how do I do that?
1. What components (JSF Core, MyFaces, Tomahawk, Tobago, Sun UI…) should I
use?
2. How do I create the tabs dynamically? I mean: all examples I have seen so
far assume that one knows the number and names of the tabs – and hard-codes
each of them. But how do I do that dynamically? (If there is only 2 trees in
the database there will be only 2 tabs but if there are suddenly 3 trees
there will be 3 tabs and so on)
3. How do I create a dynamic list of links where each link carries a
different parameter (e.g. a unique ID)?
4. How do I pass that parameter on to the Backing Bean method that is
invoked by clicking on the link?

Is that even the way to do this?
My idea was: Let's assume, "Jazz" has primary key "2" in the database and
"Acid Jazz" has "3" and "Latin Jazz" has "4" and the database knows that 3
and 4 are children of 2 because each child holds its parent ID:

ITEM_ID NAMEPARENT_ID   SONG_ID
2   Jazz--  --
3   Acid Jazz   2   --
4   Latin Jazz  2   --
5   Song1   4   1
6   Song2   4   2

Now the user clicks on "Jazz" which calls the method "userClick()" within
the associated Backing Bean. Somehow that link carried the parameter "2"
which is now used by userClick() to ask the database "give me all children
of '2'". The database will return a list with the two items "Acid Jazz" and
"Latin Jazz". So the method fills those two items into the managed
properties of the Backing Bean and returns the outcome "menupage" which is
defined in faces-config.xml to call the menupage.jsp (menupage calls
menupage), thereby filling the active pane with those two items "Acid Jazz"
and "Latin Jazz".

Now let's assume that the user clicks on "Latin Jazz" so userClick() asks
the database "give me all children of 4". The resultset returns items 5 and
6 which are links to two songs. This is evident because the attribute
SONG_ID contains an entry.
Again, the returned outcome is "menupage" so the pane is populated with
"Song1" and "Song2".
If the user clicks on "Song1", userClick() receives the parameter "5" and
notices that this item links to a Song with the ID 1.
So instead of returning the outcome "menupage" again, it returns "songpage"
and passes the parameter "1" to that page which then looks up the metadata
of the song with the ID "1" in the database and displays the content.
But how do I propagate that parameter "1" to the songpage or its backing
bean?
Can I even make the backing bean do a database call BEFORE the songpage is
rendered? Because when the user clicks on "Song1" I want to invoke a method
which requests the associated data from the database and displays it on the
"songpage".

Is this even the way to go?
Or how should I tackle this problem?
How do I do that?

Thanks so much!






--
Matthias Wessendorf
Aechterhoe

Re: wiki correction

2006-05-11 Thread Bruno Aranda

Yes, sure, you can change it yourself in the wiki. Thanks!

Bruno

On 5/11/06, Kevin Galligan <[EMAIL PROTECTED]> wrote:

On the "Building With Maven" page of the wiki...

svn co
http://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype
 myfaces-archetype

Should be...

svn co
http://svn.apache.org/repos/asf/myfaces/maven/trunk/myfaces-archetype
myfaces-archetype


And...

mvn archetype:create -DarchetypeGroupId=org.apache.myfaces
-DarchetypeArtifactId=myfaces-archetype
-DarchetypeVersion=1.0-SNAPSHOT -DgroupId=myAppId -DartifactId=testApp

Should be...

mvn archetype:create -DarchetypeGroupId=
org.apache.myfaces.maven
-DarchetypeArtifactId=myfaces-archetype
-DarchetypeVersion=1.0-SNAPSHOT -DgroupId=myAppId -DartifactId=testApp

Not sure where I would post this. Thanks.





t:outputLabel for attribute and forceId="true"

2006-05-11 Thread Locke, Richard
Hi All,

I am creating a simple form using label tags to help with accessibility.
I want to force the ids not to have the form prefixed so I can do more
client-side coding (CSS, DOM, JavaScript etc).

Here is a simple code fragment.
  
  

When this code fragment is rendered to a browser, I get the following
HTML result:
  Label Text
  

That's all fine except that the label's for attribute has the 'form:'
prefix. Why? I would not think that  tag would know
anything about the rest of the page.

If I swap the lines around like so:
  
  

I get the following HTML result:
  
  Label Text

That is how I want to label's for attribute to look like. Does anyone
know how I can get this result if the label is defined before the input
tag when forceId="true"?


Thanks in advance.

Rich
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.



Redeploying myfaces applications in Tomcat 5.0.28

2006-05-11 Thread Jack Lin
Hi,

Whenever I try to redeploy a myfaces application in Tomcat 5.0.28, I always get 
the following error:

 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
(StandardHostDeployer.java:197) - Installing web application at context path 
/sandbox from URL file:C:/jakarta-tomcat-5.0.28/webapps/sandbox
 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
(ContextConfig.java:238) - Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sandbox]
ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
(StandardContext.java:4344) - Error listenerStart
ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
(StandardContext.java:4369) - Context startup failed due to previous errors

To solve the problem, I always have to shutdown Tomcat, remove the application 
from C:/jakarta-tomcat-5.0.28/webapps, restart Tomcat, and deploy the 
application.
This is probably just a configuration issue that I am not familiar with.  Can 
you help?

I am using myfaces 1.1.1, tomahawk 1.1.1, and Tomcat 5.0.28.

Thank you

Jack 


[newbie] Beginners questions regarding dynamic links

2006-05-11 Thread Scrut Inizer
After working through some tutorials and documentations I ran into some 
beginners questions while writing my own, little JSF application.
I would really appreciate it if you could take some time to give me some 
hints because I am really lost. Reading the following text will probably 
take the longest as I am sure you all know the answers to my newbie 
questions off by heart. Here we go:


1. How do I create a tabbed pane and fill the tabs and the active pane with 
dynamic links?

3. How do I associate a different parameter to each of those links?
3. How do I pass that parameter on to the Backing Bean method that is called 
after clicking on a link?

4. How do I pass such a parameter to a method in a different Backing Bean?
5. Which component is most suitable for such a tabbed pane?

Thank you so much!

Scrut

--
Here is what I want to do:

I have a collection of music pieces and the associated metadata for each 
piece is stored in one database table. In a second table I have multiple 
classifications such as


Genre
 Classical
 Jazz
   Acid Jazz
   Latin Jazz
 Rock

Region
 Africa
 America
   South America
   North America
 Europe
 Asia
 Australia

Something like that. Each music piece is associated with each classification 
tree. (Each music piece belongs to a Genre and comes from a different 
region…)
Now I want a user to be able to find a list of music pieces by navigating 
through any of those classification systems.
I want something like a tabbed pane where the tabs are filled with the roots 
of those classification trees (in this example there are two tabs: Genre and 
Region)
Let’s assume the active tab is Genre. Then the content of the associated 
pane is to be the list of the first level descendants of the root. (In this 
example: Classical, Jazz, Rock)
Each item is to be a link so that when the user clicks on “Jazz”, the pane 
will be populated with “Acid Jazz” and “Latin Jazz”.


But how do I do that?
1. What components (JSF Core, MyFaces, Tomahawk, Tobago, Sun UI…) should I 
use?
2. How do I create the tabs dynamically? I mean: all examples I have seen so 
far assume that one knows the number and names of the tabs – and hard-codes 
each of them. But how do I do that dynamically? (If there is only 2 trees in 
the database there will be only 2 tabs but if there are suddenly 3 trees 
there will be 3 tabs and so on)
3. How do I create a dynamic list of links where each link carries a 
different parameter (e.g. a unique ID)?
4. How do I pass that parameter on to the Backing Bean method that is 
invoked by clicking on the link?


Is that even the way to do this?
My idea was: Let’s assume, “Jazz” has primary key “2” in the database and 
“Acid Jazz” has “3” and “Latin Jazz” has “4” and the database knows that 3 
and 4 are children of 2 because each child holds its parent ID:


ITEM_ID NAMEPARENT_ID   SONG_ID
2   Jazz--  --
3   Acid Jazz   2   --
4   Latin Jazz  2   --
5   Song1   4   1
6   Song2   4   2

Now the user clicks on “Jazz” which calls the method “userClick()” within 
the associated Backing Bean. Somehow that link carried the parameter “2” 
which is now used by userClick() to ask the database “give me all children 
of ‘2’”. The database will return a list with the two items “Acid Jazz” and 
“Latin Jazz”. So the method fills those two items into the managed 
properties of the Backing Bean and returns the outcome “menupage” which is 
defined in faces-config.xml to call the menupage.jsp (menupage calls 
menupage), thereby filling the active pane with those two items “Acid Jazz” 
and “Latin Jazz”.


Now let’s assume that the user clicks on “Latin Jazz” so userClick() asks 
the database “give me all children of 4”. The resultset returns items 5 and 
6 which are links to two songs. This is evident because the attribute 
SONG_ID contains an entry.
Again, the returned outcome is “menupage” so the pane is populated with 
“Song1” and “Song2”.
If the user clicks on “Song1”, userClick() receives the parameter “5” and 
notices that this item links to a Song with the ID 1.
So instead of returning the outcome “menupage” again, it returns “songpage” 
and passes the parameter “1” to that page which then looks up the metadata 
of the song with the ID “1” in the database and displays the content.
But how do I propagate that parameter “1” to the songpage or its backing 
bean?
Can I even make the backing bean do a database call BEFORE the songpage is 
rendered? Because when the user clicks on “Song1” I want to invoke a method 
which requests the associated data from the database and displays it on the 
“songpage”.


Is this even the way to go?
Or how should I tackle this problem?
How do I do that?

Thanks so much!




wiki correction

2006-05-11 Thread Kevin Galligan
On the "Building With Maven" page of the wiki...svn co http://svn.apache.org/repos/asf/myfaces/maven/trunk/maven-archetype
 myfaces-archetypeShould be...svn co http://svn.apache.org/repos/asf/myfaces/maven/trunk/myfaces-archetype myfaces-archetype
And...mvn archetype:create -DarchetypeGroupId=org.apache.myfaces -DarchetypeArtifactId=myfaces-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=myAppId -DartifactId=testAppShould be...mvn archetype:create -DarchetypeGroupId=
org.apache.myfaces.maven -DarchetypeArtifactId=myfaces-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=myAppId -DartifactId=testAppNot sure where I would post this.  Thanks.


RE: linkDummyForm not rendering on every page

2006-05-11 Thread Michael Heinen
Thanks Jonathan.

Yes, my ExtensionFilter is mapped to /faces/*
The link works well when I use a redirect instead of a forward in my
welcome page. 
I am just wondering because this differs from the behaviour in the
previous myFaces version. 

Michael

-Original Message-
From: Jonathan Harley [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 11. Mai 2006 12:35
To: MyFaces Discussion
Subject: Re: linkDummyForm not rendering on every page

Michael Heinen wrote:
> I am facing the same problem with new version 1.1.3. The linkDumyForm
is not rendered on every page as in version 1.1.1.
> 
> My welcome page index.jsp forwards the request to a faces page:

> 
> This page contains a commandLink outside a form (!) for a simple
logout action. The link was working well with MyFaces 1.1.1
> 
> Now the link is only working when I enter the URL /faces/launch.jsp
directly. It is not working when I call my welcome page which forwards
to /faces/launch.jsp.
> 
> Is this working correctly? 
> 
> Do I have to define a second form around the link now?

I posted about this yesterday under a different topic. As far as I
can see, in 1.1.3 the linkDummyForm javascript is now added by the
Tomahawk ExtensionsFilter for some strange reason.

It sounds as though you're using ExtensionsFilter, but it's not being
applied to your welcome page (is it only mapped to /faces/* ?). You
could either change the filter mapping, or substitute a browser
redirect for your server-side forward, i.e. instead of jsp:forward use

<% response.sendRedirect("/faces/launch.jsp"); %>

This would go back to the browser and tell it to send another request
for your faces JSP page, which would then be processed by the filter.

HTH, Jon

> 
> Michael
> 
> Joey Geiger wrote:
> 
>> I've found it has something to do with the need for an actual page to
be 
> 
>> part of the url.
> 
>> 
> 
>> If the browser is showing www.site.com/  or
www.site.com/admin/  it fails.
> 
>> With www.site.com/page.jsf , the link
dummy form will render and the 
> 
>> links on the page
> 
>> work fine.
> 
>  
>> Joey Geiger wrote:
> 
>> I recently upgraded to a 1.1.2 nightly build, and I've run into an 
> 
>> issue where the linkdummyform
> 
>> listed below is not being created on every page. This wasn't an issue

> 
>> with the 1.1.1 release.
> 
>> I know that I can surround all of my h:commandLink tag sections with 
> 
>> forms to make them work,
> 
>> but I was wondering specifically what triggers the code below to 
> 
>> render. I'd rather not have
> 
>> 7-8 different forms on a page just for common links that can be 
> 
>> processed by one form.
> 
>> 
> 
>> Thank you.

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





Re: linkDummyForm not rendering on every page

2006-05-11 Thread Jonathan Harley

Michael Heinen wrote:

I am facing the same problem with new version 1.1.3. The linkDumyForm is not 
rendered on every page as in version 1.1.1.

My welcome page index.jsp forwards the request to a faces page: 

This page contains a commandLink outside a form (!) for a simple logout action. 
The link was working well with MyFaces 1.1.1

Now the link is only working when I enter the URL /faces/launch.jsp directly. 
It is not working when I call my welcome page which forwards to 
/faces/launch.jsp.

Is this working correctly? 


Do I have to define a second form around the link now?


I posted about this yesterday under a different topic. As far as I
can see, in 1.1.3 the linkDummyForm javascript is now added by the
Tomahawk ExtensionsFilter for some strange reason.

It sounds as though you're using ExtensionsFilter, but it's not being
applied to your welcome page (is it only mapped to /faces/* ?). You
could either change the filter mapping, or substitute a browser
redirect for your server-side forward, i.e. instead of jsp:forward use

<% response.sendRedirect("/faces/launch.jsp"); %>

This would go back to the browser and tell it to send another request
for your faces JSP page, which would then be processed by the filter.

HTH, Jon



Michael

Joey Geiger wrote:

I've found it has something to do with the need for an actual page to be 



part of the url.







If the browser is showing www.site.com/  or www.site.com/admin/ 
 it fails.


With www.site.com/page.jsf , the link dummy form will render and the 



links on the page



work fine.


 

Joey Geiger wrote:


I recently upgraded to a 1.1.2 nightly build, and I've run into an 



issue where the linkdummyform


listed below is not being created on every page. This wasn't an issue 



with the 1.1.1 release.


I know that I can surround all of my h:commandLink tag sections with 



forms to make them work,


but I was wondering specifically what triggers the code below to 



render. I'd rather not have


7-8 different forms on a page just for common links that can be 



processed by one form.







Thank you.


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


Re: linkDummyForm not rendering on every page

2006-05-11 Thread Michael Heinen






Hi, I am facing the same problem with new version 1.1.3. The linkDumyForm is not rendered on every page as in version 1.1.1. My welcome page index.jsp forwards the request to a faces page: This page contains a commandLink outside a form (!) for a simple logout action. The link was working well with MyFaces 1.1.1 Now the link is only working when I enter the URL /faces/launch.jsp directly. It is not working when I call my welcome page which forwards to /faces/launch.jsp.Is this working correctly? Do I have to define a second form around the link now? Michael Joey Geiger wrote:> I've found it has something to do with the need for an actual page to be > part of the url.> > If the browser is showing www.site.com/ or www.site.com/admin/ it fails.> With www.site.com/page.jsf, the link dummy form will render and the > links on the page> work fine.  > Joey Geiger wrote:> I recently upgraded to a 1.1.2 nightly build, and I've run into an > issue where the linkdummyform> listed below is not being created on every page. This wasn't an issue > with the 1.1.1 release.> I know that I can surround all of my h:commandLink tag sections with > forms to make them work,> but I was wondering specifically what triggers the code below to > render. I'd rather not have> 7-8 different forms on a page just for common links that can be > processed by one form.> > Thank you.> > > > > > method="post" action="">> 
> type="text/_javascript_">> > > > > 

 








Re: t:inputDate off by one day!

Mmmm, I've done a little research to better understand this issue, because this thread and the FAQ left my with some doubts. If someone's interested, this is the explanation I have found.A Date object internally always store its value as UTC (number of milliseconds from January 1, 1970 00:00:00 GMT), so it carries no timezone information. When creating a Date istance from a string rapresentation, a GMT correction is applied as the date is assumed to be expressed in the local timezone (the system default one). For example, if system timezone is GMT+1 (Rome), the date is stored subtracting one hour from the given one. This correction is also done by JDBC behind the scenes if your date is coming from a database.
To display the correct date, the same timezone has to be applied in order to have this correction "reversed". But the JSF convertDateTime (f:convertDateTime) converter uses the GMT timezone by default, leaving the Date with a correction that is the inverse of the system timezone.
Using the sandbox converter  (s:convertDateTime) the system default timezone (not the request one, which is tied to the user's browser settings) will be picked. So, as long as the creation of the Date and its displaying happen on the same system, or two system with the same default timezone, the Date will be displayed as the original one. This also applies if you try to print your dates with On 5/11/06, 
Cosma Colanicchia <[EMAIL PROTECTED]> wrote:
Hey you're right, my outputText is doing wrong, inputDate is displaying the correct date! :)I've also found this FAQ on the same problem 
http://wiki.apache.org/myfaces/FAQ#Date
, sorry for asking again. I think I'll try the default converter way, I don't like to specify timezones in all of my outputText or defining a property on all my beans.Thanks for the precious help Volker
Cosma
On 5/10/06, Volker Weber <
[EMAIL PROTECTED]> wrote:
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 ato the t:inputDateThe 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 toconvert 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.this two lines renders the same text with (if your servers defaulttimezone 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  component, but it is rendered always a>> > day-after the actual value of bound property. I use the component this>> way:
>> >
>> > >> > 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 byconcatenating my forename to my senders domain.




Re: When tomahawk-1.1.2 and myfaces-core-1.1.3 will be in ibiblio?


Not sure, but in the meanwhile you can find them in the myfaces zone
repository [1], so you can setup this repository in your pom file.
Devs: to put the artifacts in ibiblio we should only deploy them in
the apache repository, right? Is there any special reason we have not
done that yet?

Regards,

Bruno

[1] http://myfaces.zones.apache.org/dist/maven-repository/

On 5/11/06, Ronen Naor <[EMAIL PROTECTED]> wrote:

Hi,
Can you tell us when tomahawk-1.1.2 and myfaces-core-1.1.3 will be in
ibiblio repository?

Thanks.



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

Thank you so much! Now it works.
I _knew_ it was a stupid, little newbie mistake :-)


Am Mi, 10.05.2006, 23:13, schrieb James Reynolds:
> Enclose your buttons in an  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
> -
>  
> 
> 
> 
> 
>
>
> -
> 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" %> 
>  basename="ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle"
> var="bundle" />
>
> 
> 
> 
>  value="#{bundle.menu_frame}" /> 
>
>
> 
>
>
> menu //action="#{MenuBackingBean.userClick}" />  rendered="true" action="showDetails" /> 
> 
> 
>
>
> -
> 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" %> 
>  basename="ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle"
> var="bundle" />
>
> 
> 
> 
>  value="#{bundle.details_frame}" /> 
>
>
> 
>
>
> 
>  value="#{bundle.details_title}" />  value="#{DetailsBackingBean.title}" />  value="#{bundle.details_author}" />  value="#{DetailsBackingBean.author}" /> 
>
>
>  value="#{bundle.details_startbutton}." rendered="true"
> action="#{DetailsBackingBean.showContent}" />  value="#{bundle.details_backbutton}" rendered="true"
> action="#{DetailsBackingBean.showMenu}" />
>
> 
> 
> 
>
>
> -
> 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" %> 
>  basename="ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle"
> var="bundle" />
>
> 
> 
> 
>  value="#{bundle.content_frame}" /> 
>
>
> 
>
>
> content  value="#{bundle.content_backbutton}" rendered="true"
> action="#{ContentBackingBean.showMenu}" />
>
> 
> 
> 
>
>
> -
> Faces-config.xml
> -
> 
>  Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd";>
>
>
> 
>
>
> 
> 
> en
> en
> de
> 
>
>
> ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBun
> dle 
>
>
> 
>
>
> DetailsBackingBean
>
>
> ca.gc.nrc.iit.eConservatoire.frontend.DetailsBacking
> Bean
> session
> 
> Title of the Learning
> Object
> title
>
>
> java.lang.String
> 
> 
> 
> Author of the Learning
> Object
> author
>
>
> java.lang.String
> 
> 
> 
>
>
> 
> MenuBackingBean
>
>
> ca.gc.nrc.iit.eConservatoire.frontend.MenuBackingBea
> n session
> 
> 
>
>
> ContentBackingBean
>
>
> ca.gc.nrc.iit.eConservatoire.frontend.ContentBacking
> Bean
> session
> 
>
>
> 
> /menu.jsp
> 
> showDetails
> /details.jsp
> 
> 
> menu
> /menu.jsp
> 
> 
> 
> /details.jsp
> 
> showMenu
> /menu.jsp
> 
> 
> showContent
> /content.jsp
> 
> 
> 
> /content.jsp
> 
> showMenu
> /menu.jsp
> 
> 
> 
>
>
>
> -
> Web.xml
> -
> 
> 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<
> /listener-class>
> 
> 
> Faces Servlet
> javax.faces.webapp.FacesServlet
> 0
> 
> 
> Faces Servlet
> *.faces
> 
> 
> MyFacesExtensionsFilter
>
>
> org.apache.myfaces.component.html.util.ExtensionsFilter ilter-class> 
> maxFileSize
> 20m
> 
> 
> 
> MyFacesExtensionsFilter
> *.faces
> 
> 
>
>

Re: which method will be invoked in the invoke application phase.

I want to implement a security layer based on listener. I need to find out wich action in wich class of application would be called in the PhaseListener and the decide if the user allowed to do it or not. After 2 days of googling I couldn't find out how can I get the method would be called at the INVOKE_APPLCATION phase.
Could somebody help me please?Regards,ArashOn 5/10/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote:
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. 

-- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual 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. 


When tomahawk-1.1.2 and myfaces-core-1.1.3 will be in ibiblio?

Hi,Can you tell us when tomahawk-1.1.2 and myfaces-core-1.1.3 will be in ibiblio repository?Thanks.


Re: [newbie] - simple custom tag problems

Hi Rajiv,


JSFSter Smith wrote:
> 
> 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:
> 
>  (or)  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:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> (OR)
> 
> 
> 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);
> 

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

Why this? Thats the problem!
Here are the valueBinding evaluated at component creation time, but
datatable needs eavluation at rendering time!

just remove this an it should do.


>   }
>   else
>   ((UIInfactHTMLOutput)component).setValue(value);
> }
> }
> 


or better implement your set properties using UIComponentTagUtils like this:

protected void setProperties(UIComponent component)
{
  super.setProperties(component);
  UIComponentTagUtils.setValueProperty(getFacesContext(), component,
value);
}




Regards,
  Volker

> thanks in advance!
> 
> -Rajiv

-- 
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!

Hey you're right, my outputText is doing wrong, inputDate is displaying the correct date! :)I've also found this FAQ on the same problem http://wiki.apache.org/myfaces/FAQ#Date
, sorry for asking again. I think I'll try the default converter way, I don't like to specify timezones in all of my outputText or defining a property on all my beans.Thanks for the precious help VolkerCosma
On 5/10/06, Volker Weber <[EMAIL PROTECTED]> wrote:
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 ato the t:inputDateThe 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 toconvert 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.this two lines renders the same text with (if your servers defaulttimezone 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  component, but it is rendered always a>> > day-after the actual value of bound property. I use the component this>> way:>> >
>> > >> > 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 byconcatenating my forename to my senders domain.