Re: Custom error handler and ajax requests (a4j)

2007-08-02 Thread Pawel . Czerwinski
Anybody? :

-- 
Regards
Paweł Czerwiński



[EMAIL PROTECTED] wrote on 2007-07-31 14:38:59:

 
 Hi, 
 I made my own error handler (works like the one described here: 
 http://wiki.apache.org/myfaces/Handling_Server_Errors) . 
 In the backing bean I use following lines to fetch the exception 
details 
 
 FacesContext context = FacesContext.getCurrentInstance(); 
 Map requestMap = context.getExternalContext().getRequestMap(); 
 Throwable ex = (Throwable) requestMap.get(javax.servlet.
 error.exception); 
 
 And everything works fine when an error occurs during standard 
 request (eg. when h:commandButton calls a method that throws exception). 

 But when I switch to ajax4jsf and use a4j:commandButton, requestMap 
 contains no information about exceptions... 
 Does anybody know, how to dig to this exception when using ajax4jsf 
 components? 
 
 -- 
 Regards
 Paweł Czerwiński
 [EMAIL PROTECTED]


Re: [Trinidad] button + hover

2007-08-02 Thread Cristi Toth
try ':hover'
only one ':', not 2 of them
because hover is a CSS pseudo-class
it's not a sub-selector

On 8/2/07, Okan Çetin [EMAIL PROTECTED] wrote:

 Hi all;

 I arranged new skin for some command buttons like that :

 .SaveButton{
 background-image: url(../images/saveButton1.png);
 border: 0;
 width: 128px;
 height: 28px;
 }

 And i tried to give hover ability to command button:

 .SaveButton::hover{
 background-image: url(../images/saveButton2.png);
 border: 0;
 width: 128px;
 height: 28px;
 }

 in jsp:
 tr:commandButton styleClass=SaveButton/

 As you see, i want to change button image when the mouse come over the
 button. Anyhelp would be great,

 Thanks,
 Okan


 --
 ~
 otomatik oluşturuldu:
 http://ocetin.net/log
 http://linux.beykent.edu.tr




-- 
Cristi Toth
-
Codebeat
www.codebeat.ro


Re: MF1.2.0 + Facelets XML Parsing Error

2007-08-02 Thread Wolf Benz
Ah, I smell a MF 1.2.1 along the corner ;-)
-Wolf

On 8/2/07, Werner Punz [EMAIL PROTECTED] wrote:
 Wolf Benz schrieb:
  Ha, that was a community effort really:
  It is based upon efforts
  - from my last project
  - help from Werner (who wickedly convinced me to use facelets and
  helped me sorting out the libs, remember the Tomahawk dependency/EL
  issues)
  - help from Bruno, for whom I reviewed his Facelets Chapter (upcoming
  book of Martin  Bruno  God knows who ;-)  on JSF1.2 and from which I
  could borrow + understand how templating etc works and how to make a
  JSF + Facelets project from an old JSP project.
 
  ... as for the latter: I have promised Martin not to disclose any
  source material(for obvious copyright reasons) of it, so you'd really
  have to ask Bruno.
 
  But: as for Werner's help: he made a kickstarter project(MF-Facelets)
  that I tested and which works now. I thought he already put it on the
  Wiki ?
  @Werner: wasn't that your intention?
 
 Intention = yes
 Time = so far no, but I soon will have vacation which means more time
 for myfaces




Re: MF1.2.0 + Facelets XML Parsing Error

2007-08-02 Thread Werner Punz
Wolf Benz schrieb:
 Ha, that was a community effort really:
 It is based upon efforts
 - from my last project
 - help from Werner (who wickedly convinced me to use facelets and
 helped me sorting out the libs, remember the Tomahawk dependency/EL
 issues)
 - help from Bruno, for whom I reviewed his Facelets Chapter (upcoming
 book of Martin  Bruno  God knows who ;-)  on JSF1.2 and from which I
 could borrow + understand how templating etc works and how to make a
 JSF + Facelets project from an old JSP project.
 
 ... as for the latter: I have promised Martin not to disclose any
 source material(for obvious copyright reasons) of it, so you'd really
 have to ask Bruno.
 
 But: as for Werner's help: he made a kickstarter project(MF-Facelets)
 that I tested and which works now. I thought he already put it on the
 Wiki ?
 @Werner: wasn't that your intention?
 
Intention = yes
Time = so far no, but I soon will have vacation which means more time
for myfaces



Re: [Trinidad] button + hover

2007-08-02 Thread Okan Çetin
I tried many of posibilities
::hover, :hover, ::button-hover, ::icon-hover etc...

On 02/08/07, Cristi Toth [EMAIL PROTECTED] wrote:

 try ':hover'
 only one ':', not 2 of them
 because hover is a CSS pseudo-class
 it's not a sub-selector

 On 8/2/07, Okan Çetin  [EMAIL PROTECTED] wrote:
 
  Hi all;
 
  I arranged new skin for some command buttons like that :
 
  .SaveButton{
  background-image: url(../images/saveButton1.png);
  border: 0;
  width: 128px;
  height: 28px;
  }
 
  And i tried to give hover ability to command button:
 
  .SaveButton::hover{
  background-image: url(../images/saveButton2.png);
  border: 0;
  width: 128px;
  height: 28px;
  }
 
  in jsp:
  tr:commandButton styleClass=SaveButton/
 
  As you see, i want to change button image when the mouse come over the
  button. Anyhelp would be great,
 
  Thanks,
  Okan
 
 
  --
  ~
  otomatik oluşturuldu:
  http://ocetin.net/log
  http://linux.beykent.edu.tr




 --
 Cristi Toth
 -
 Codebeat
 www.codebeat.ro




-- 
~
otomatik oluşturuldu:
http://ocetin.net/log
http://linux.beykent.edu.tr


Re: MF1.2.0 + Facelets XML Parsing Error

2007-08-02 Thread Matthias Wessendorf
let's look at this end of next week...

On 8/2/07, Wolf Benz [EMAIL PROTECTED] wrote:
 Ah, I smell a MF 1.2.1 along the corner ;-)
 -Wolf

 On 8/2/07, Werner Punz [EMAIL PROTECTED] wrote:
  Wolf Benz schrieb:
   Ha, that was a community effort really:
   It is based upon efforts
   - from my last project
   - help from Werner (who wickedly convinced me to use facelets and
   helped me sorting out the libs, remember the Tomahawk dependency/EL
   issues)
   - help from Bruno, for whom I reviewed his Facelets Chapter (upcoming
   book of Martin  Bruno  God knows who ;-)  on JSF1.2 and from which I
   could borrow + understand how templating etc works and how to make a
   JSF + Facelets project from an old JSP project.
  
   ... as for the latter: I have promised Martin not to disclose any
   source material(for obvious copyright reasons) of it, so you'd really
   have to ask Bruno.
  
   But: as for Werner's help: he made a kickstarter project(MF-Facelets)
   that I tested and which works now. I thought he already put it on the
   Wiki ?
   @Werner: wasn't that your intention?
  
  Intention = yes
  Time = so far no, but I soon will have vacation which means more time
  for myfaces
 
 



-- 
Matthias Wessendorf

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


Re: MF1.2.0 + Facelets XML Parsing Error

2007-08-02 Thread Werner Punz
Wolf Benz schrieb:
 Ah, I smell a MF 1.2.1 along the corner ;-)
 -Wolf
 
I am the wrong person in this case ;-)
I am only involved with the release votingwise.



Re: Schedule tomahawk

2007-08-02 Thread Jurgen Lust
This line in your code is incorrect:

scheduleItems.add(new SelectItem(scheduleResult.get(i).toString()));

You should replace it with:

ScheduleEntry entry = new ScheduleEntry();
entry.setId(scheduleResult.get(i).getId());
entry.setStartTime(scheduleResult.get(i).getStartTime());
...
entries.add(entry);

Jurgen

Op woensdag 01-08-2007 om 11:25 uur [tijdzone -0700], schreef
ignicolist:
 Hi again, but i cant make it! :-((
 
 
 i have this:
 
 
 private ArrayList scheduleItems = new ArrayList();
 
 List scheduleResult = session.createQuery(select s.id, s.description,
 s.comments, s.endTime, s.startTime, s.subtitle, s.title, s.isAllDay from  +
   Schedule as s).list();

   session.getTransaction().commit();
 
   for(int i = 0; i  scheduleResult.size();i++){
   scheduleItems.add(new
 SelectItem(scheduleResult.get(i).toString()));
   
   entries.add(scheduleItems);
   }
 
 why i cant make: entries.add(scheduleItems); ?  how do you thik i must do
 it? i am out of ideas!!
 
 the méthod loadEntries, load entries when one or more entries are introduced
 right? so how to make to load  the entries that are in data base in the
 start? 
 
 tks for all.
 
 
 
 
 
 Jurgen Lust-2 wrote:
  
  Aha, I see your problem: you are returning a list of SelectItems, which
  is wrong: you need a list of ScheduleEntry. You can find the source of
  ScheduleEntry here:
  http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/model/ScheduleEntry.java?revision=472638view=markup
  
  Make sure that the id property of each ScheduleEntry is unique. You can
  use the database primary key for this.
  
  Jurgen
  
  Op woensdag 01-08-2007 om 06:42 uur [tijdzone -0700], schreef
  ignicolist:
  Hi, first of all tks for your patience to me.
  
  i have this in loadEntries:
  
   private ArrayList scheduleItems = new ArrayList();
  
  if(scheduleItems.size() =1){
 scheduleItems.clear();
  }
  if(scheduleItems.size() = 1){
 scheduleItems.clear();
  }
  Session session =
  HibernateUtil.getSessionFactory().getCurrentSession();
  session.beginTransaction();
  
  List scheduleResult = session.createQuery(select s.cod_evento,
  s.location, s.comments, s.end, s.start, s.title from  +
  AddSchedule as s).list();
   
  session.getTransaction().commit();

  for(int i = 0; i  scheduleResult.size();i++){
 scheduleItems.add(new
  SelectItem(scheduleResult.get(i).toString()));
 
  
  System.out.println(***+((SelectItem)scheduleItems.get(i)).getLabel()+***);
 
  }
  
  the scheduleItems actualy have values, the read from data base works, so
  why
  i cant just return scheduleItems variable? because i do that and don´t
  work. 
  because the actual return variable is also a ArrayList. 
  
  I real need this working, and i dont find anything to help me, its very
  few
  information about this case. So i real tks you for every explanation. And
  real good work you did to this component! =)
  
  
  
  Jurgen Lust-2 wrote:
   
   Hmm, I think the getCurrentSession() will fail, because normally there
   is no hibernate session when you start a request. Also the transaction
   stuff isn't required, since it is only a read operation.
   
   Jurgen
   
   Op woensdag 01-08-2007 om 03:00 uur [tijdzone -0700], schreef
   ignicolist:
   Hi, this is my loadentries in SimplesScheduleModel.java, can i do 
  this?
   Is
   this correct? Because it give me error. I want to know if this is the
   correct thing to do.
   
   
   
   protected Collection loadEntries(Date startDate, Date endDate)
   {
   
   Session session =
  HibernateUtil.getSessionFactory().getCurrentSession();
   session.beginTransaction();
   
   List scheduleResult = session.createQuery(select s.cod_id,
   s.location, s.comments, s.end, s.start, s.title from  +
   AddSchedule as s).list();

   session.getTransaction().commit();
 
   for(int i = 0; i  scheduleResult.size();i++){
   scheduleItems.add(new
   SelectItem(scheduleResult.get(i).toString()));
   

   }

return scheduleItems;
   
   }
   
   
   Tks for all.
   
   
   
   
   
   Jurgen Lust-2 wrote:

Hi,

In order to use a database as the source for the schedule, you need
  to
write
an implementation of the
org.apache.myfaces.custom.schedule.model.ScheduleModel interface.
  You
   can
extend the class
org.apache.myfaces.custom.schedule.model.AbstractScheduleModel for
convenience. Now you just need to implement the methods
loadEntries(Date,Date) and loadDayAttributes(Date). In the first
   method,
you

Re: [Trinidad] button + hover

2007-08-02 Thread Svilen Ivanov
BTW, CSS pseudo-class :hover doesn't work in IE6 for all tags (it 
works just for A). Have you checked it Firefox? Firfox allows :hover 
on arbitrary tag.


Regards,
Svi


Okan Çetin wrote:

I tried many of posibilities
::hover, :hover, ::button-hover, ::icon-hover etc...

On 02/08/07, Cristi Toth [EMAIL PROTECTED] wrote:

try ':hover'
only one ':', not 2 of them
because hover is a CSS pseudo-class
it's not a sub-selector

On 8/2/07, Okan Çetin  [EMAIL PROTECTED] wrote:

Hi all;

I arranged new skin for some command buttons like that :

.SaveButton{
background-image: url(../images/saveButton1.png);
border: 0;
width: 128px;
height: 28px;
}

And i tried to give hover ability to command button:

.SaveButton::hover{
background-image: url(../images/saveButton2.png);
border: 0;
width: 128px;
height: 28px;
}

in jsp:
tr:commandButton styleClass=SaveButton/

As you see, i want to change button image when the mouse come over the
button. Anyhelp would be great,

Thanks,
Okan


--
~
otomatik oluşturuldu:
http://ocetin.net/log
http://linux.beykent.edu.tr




--
Cristi Toth
-
Codebeat
www.codebeat.ro









[TRINIDAD] configure display all on tr:table

2007-08-02 Thread Döring Markus
Hello,

The range navigator of a tr:table has an item display all.

I've already seen that this option is hidden if there are a lot of rows in the 
table (maybe over 500 or so).

Is there an easy way to configure when the option is displayed and when not (i 
want to hide the option as soon as more than 50 rows in total are in the table)

 

Thx for help

Markus Döring

TCC Products GmbH

Anwendungsentwicklung

Benzstr. 3
71696 Möglingen

 mail: [EMAIL PROTECTED]

 



Re: [Trinidad] button + hover

2007-08-02 Thread Okan Çetin
Yes, sorry it is my fault.
It works in firefox.

On 02/08/07, Svilen Ivanov [EMAIL PROTECTED] wrote:

 BTW, CSS pseudo-class :hover doesn't work in IE6 for all tags (it
 works just for A). Have you checked it Firefox? Firfox allows :hover
 on arbitrary tag.

 Regards,
 Svi


 Okan Çetin wrote:
  I tried many of posibilities
  ::hover, :hover, ::button-hover, ::icon-hover etc...
 
  On 02/08/07, Cristi Toth [EMAIL PROTECTED] wrote:
  try ':hover'
  only one ':', not 2 of them
  because hover is a CSS pseudo-class
  it's not a sub-selector
 
  On 8/2/07, Okan Çetin  [EMAIL PROTECTED] wrote:
  Hi all;
 
  I arranged new skin for some command buttons like that :
 
  .SaveButton{
  background-image: url(../images/saveButton1.png);
  border: 0;
  width: 128px;
  height: 28px;
  }
 
  And i tried to give hover ability to command button:
 
  .SaveButton::hover{
  background-image: url(../images/saveButton2.png);
  border: 0;
  width: 128px;
  height: 28px;
  }
 
  in jsp:
  tr:commandButton styleClass=SaveButton/
 
  As you see, i want to change button image when the mouse come over the
  button. Anyhelp would be great,
 
  Thanks,
  Okan
 
 
  --
  ~
  otomatik oluşturuldu:
  http://ocetin.net/log
  http://linux.beykent.edu.tr
 
 
 
  --
  Cristi Toth
  -
  Codebeat
  www.codebeat.ro
 
 
 
 




-- 
~
otomatik oluşturuldu:
http://ocetin.net/log
http://linux.beykent.edu.tr


Re: question about tree2's t.nodeSelected

2007-08-02 Thread kewldude

Sorry for resurrecting this old thread, but I'm in the same situation as the
thread starter. I tried the t:updateActionListener suggestion, but i'm
getting exceptions. Here is how my code looked like right now.


here is the tree2 component
t:tree2 id=clientTree value=#{treeBacker.expandedTreeData} var=node
varNodeToggler=t clientSideToggle=true binding=#{treeBacker.tree} 

here is the a4j:commandLink

a4j:commandLink id=a4jLink styleClass=#{t.nodeSelected?
'documentSelected':'document'} actionListener=#{treeBacker.nodeClicked} 
reRender=a4jGroup
t:updateActionListener
property=#{treeBacker.clickedNode} value=#{node} /

t:updateActionListener
property=#{t.setNodeSelected} value=true /

   h:outputText
value=#{node.description}/

   f:param 
name=docNum
value=#{node.identifier}/

   f:param name=catid
value=#{node.catId}/


/a4j:commandLink


This is my exception:
javax.faces.el.PropertyNotFoundException: Bean:
org.apache.myfaces.custom.tree2.HtmlTree, property: setNodeSelected
at
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:500)
at
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:472)
at
org.apache.myfaces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:325)
at
org.apache.myfaces.custom.security.SecurityContextPropertyResolver.getType(SecurityContextPropertyResolver.java:113)
at
org.apache.myfaces.el.ValueBindingImpl.getType(ValueBindingImpl.java:207)
at
org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction(UpdateActionListener.java:136)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:51)
at
javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:487)
at javax.faces.component.UICommand.broadcast(UICommand.java:78)

Basically, I need a setNodeSelected in my treeBacker class(managed bean). I
thought the setNodeSelected  was already automatic for the HtmlTree. I dont
know how to setup the setNodeSelected in the managed bean. What kind of
object to associate with the set? I just want to change how my folder looked
like when it is clicked that's why I'm tinkering with the setNodeSelected
method. I didn't use the actionListener for that because the actionListener
is doing the necessary process when a folder is clicked. I went through
every single thread about this topic in the forum, but it seems I'm missing
out on something or I'm jsut confused. I hope anyone can shed some light
into my problem.




Jim the Standing Bear-2 wrote:
 
 I tried to do the following, but apparently tomahawk doesn't like it:
 
 h:commandLink id=id1 action=nodeClicked
 actionListener=#{Workspace.doGetDetail}
   immediate=true value=Project:
 #{node.description}
 styleClass=#{t.nodeSelected?'highlighted':'nodeFolder'}
 rendered=#{!t.nodeSelected}
   f:param id=resourceId name=resourceId
 value=#{node.identifier} /
   t:updateActionListener
 property=#{t.setNodeSelected} value=true/
 /h:commandLink
 
 I also tried property=#{t.nodeSelected} and it made no difference...
   is there a way to do the equivalent of   t.setNodeSelected in the
 backing bean?
 
 
 
 On 10/17/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
 Jim the Standing Bear wrote:
  In the sample code provided on the wiki, the code explicitly does
  t.setNodeSelected as the actionListener of the commandLink; but i
  cannot do that because as I said earlier, the actionListener is
  reserved to invoke a method at the backing bean.
 

 You do realize that you can have multiple t:updateActionListener tags
 inside of a commandLink/commandButton? :)

 Regards,

 Jeff Bischoff
 Kenneth L Kurz  Associates, Inc.



 
 
 -- 
 --
 Standing Bear Has Spoken
 --
 
 

-- 
View this message in context: 
http://www.nabble.com/question-about-tree2%27s-t.nodeSelected-tf2461690.html#a11961682
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad]: shortDesc for tr:selectOneChoice

2007-08-02 Thread sandeep gururaj
Hello All,

I am using shortDesc attribute of tr:selectOneChoice (drop down list).
However, it doesn't seem to be working. I am not able to see the
tooltip.

The example I am using is as follows -

tr:selectOneChoice value=#{myBean.qStatus} required=true
shortDesc=Set the status of your Queue 
f:selectItems value=#{myBean.allQueueStatus} /
/tr:selectOneChoice

The shortDesc feature is working fine when used with tr:inputText.

I don't know if something else is needed for getting shortDesc to work
with the drop down list?

If any idea, let me know.

Thanks!
~Sandeep


Re: Custom error handler and ajax requests (a4j)

2007-08-02 Thread Gary VanMatre
From: [EMAIL PROTECTED] 

Anybody? : 


Are you using Shale ViewController [1]?  If so, try the nightly.

[1] https://issues.apache.org/struts/browse/SHALE-409


-- 
Regards
Pawe³ Czerwiñski



[EMAIL PROTECTED] wrote on 2007-07-31 14:38:59:

 
 Hi, 
 I made my own error handler (works like the one described here: 
 http://wiki.apache.org/myfaces/Handling_Server_Errors) . 
 In the backing bean I use following lines to fetch the exception details 
 
 FacesContext context = FacesContext.getCurrentInstance(); 
 Map requestMap = context.getExternalContext().getRequestMap(); 
 Throwable ex = (Throwable) requestMap.get(javax.servlet.
 error.exception); 
 
 And everything works fine when an error occurs during standard 
 request (eg. when h:commandButton calls a method that throws exception). 
 But when I switch to ajax4jsf and use a4j:commandButton, requestMap 
 contains no information about exceptions... 
 Does anybody know, how to dig to this exception when using ajax4jsf 
 components? 
 
 -- 
 Regards
 Pawe³ Czerwiñski
 [EMAIL PROTECTED]

[tobago] is stable :-)

2007-08-02 Thread Zied Hamdi
Did you notice there was no mail to Tobago today? (except this one) :-)
Tobago is becoming more and more stable I think. Good news ;-

Regards,
Zied


[Trinidad] source code for demo examples 1.0.1

2007-08-02 Thread Azim, Dunia
Hi,
where can I download the source code for the Trinidad 1.0.1 demo examples?

Thanks for your help!
Dunia Azim

PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8383
Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)



Form elements to update in separate window (eBay style)

2007-08-02 Thread Jerome Iffrig \(Europe\)
Hi,

 

If any of you use eBay, you would have noticed the way it handles the
update of some fields.

To put it short, you have your user information displayed on the screen.

To modify your profile (e.g. your e-mail address) eBay does not display
a big form with all your information editable, it rather displays a tiny
form with the single editable field, the one to modiy.

 

Do you have any idea on how this can be implemented with JSF (for info I
use Spring to wrap my services and Hibernate for saving my data in the
DB).  I was imagining some dynamic way in which I could reuse only a
handful of JSPs/actions (one for text field, one for drop-downs) with
dynamic recognition of the object type and some way to glue a validator
in.

 

Thanks for your ideas.

 

 

 


Re: Schedule tomahawk

2007-08-02 Thread ignicolist

This dont work... :S

i have this now :


Session session = HibernateUtil.getSessionFactory().getCurrentSession();

session.beginTransaction();

List result = session.createQuery(from Schedule).list();

session.getTransaction().commit();

 
for (Iterator it = result.iterator(); it.hasNext();) {

ScheduleEntry event = (ScheduleEntry) it.next();

System.out.println(*** + event.getDescription() + ***); 

}

the list result have the values, but the cicle for doesnt work!!! why? i
think its correct! 
this is very hard, i'm becoming desesparated... Anyone never put a data base
in schedule? :(




This is the errors:

java.lang.ClassCastException: org.apache.myfaces.examples.schedule.Schedule
cannot be cast to org.apache.myfaces.custom.schedule.model.ScheduleEntry
at
org.apache.myfaces.custom.schedule.model.SimpleScheduleModel.loadEntries(SimpleScheduleModel.java:229)
at
org.apache.myfaces.custom.schedule.model.AbstractScheduleModel.load(AbstractScheduleModel.java:443)
at
org.apache.myfaces.custom.schedule.model.AbstractScheduleModel.setMonth(AbstractScheduleModel.java:282)
at
org.apache.myfaces.custom.schedule.model.AbstractScheduleModel.setSelectedDate(AbstractScheduleModel.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:409)
at
org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:176)
at
org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:189)
at
org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:55)
at
org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:314)
at
org.apache.myfaces.examples.accessedbeans.AccessTrackingVariableResolver.resolveVariable(AccessTrackingVariableResolver.java:46)
at
org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:570)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)
at
org.apache.myfaces.config.impl.digester.elements.ManagedProperty.getRuntimeValue(ManagedProperty.java:130)
at
org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:170)
at
org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:55)
at
org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:314)
at
org.apache.myfaces.examples.accessedbeans.AccessTrackingVariableResolver.resolveVariable(AccessTrackingVariableResolver.java:46)
at
org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:570)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
at
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)
at
org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:427)
at
javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:709)
at 
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:596)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:315)
at 
org.apache.jsp.mes_jsp._jspx_meth_s_005fschedule_005f0(mes_jsp.java:381)
at org.apache.jsp.mes_jsp._jspx_meth_s_005fdiv_005f2(mes_jsp.java:338)
at org.apache.jsp.mes_jsp._jspx_meth_h_005fform_005f0(mes_jsp.java:164)
at org.apache.jsp.mes_jsp._jspx_meth_f_005fview_005f0(mes_jsp.java:120)
at org.apache.jsp.mes_jsp._jspService(mes_jsp.java:84)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at

Re: Form elements to update in separate window (eBay style)

2007-08-02 Thread Andrew Robinson
You could use an in page dialog (like a4j's or tomahawk's modal
dialog). Using AJAX would make it easy to update just portions of the
page

On 8/2/07, Jerome Iffrig (Europe) [EMAIL PROTECTED] wrote:




 Hi,



 If any of you use eBay, you would have noticed the way it handles the update
 of some fields.

 To put it short, you have your user information displayed on the screen.

 To modify your profile (e.g. your e-mail address) eBay does not display a
 big form with all your information editable, it rather displays a tiny form
 with the single editable field, the one to modiy.



 Do you have any idea on how this can be implemented with JSF (for info I use
 Spring to wrap my services and Hibernate for saving my data in the DB).  I
 was imagining some dynamic way in which I could reuse only a handful of
 JSPs/actions (one for text field, one for drop-downs) with dynamic
 recognition of the object type and some way to glue a validator in.



 Thanks for your ideas.








Re: [Trinidad] source code for demo examples 1.0.1

2007-08-02 Thread Matthias Wessendorf
Hi,

they're not downloadable :-)
There is a svn tag, perhaps you want to check them out:
http://svn.apache.org/viewvc/myfaces/trinidad/tags/trinidad-1.0.1/

in 1.2.1 (the JSF 1.2 version of 1.0.1), I noticed that as well.
In 1.0.2 there will be sources ;-)

-M


On 8/2/07, Azim, Dunia [EMAIL PROTECTED] wrote:
 Hi,
 where can I download the source code for the Trinidad 1.0.1 demo examples?

 Thanks for your help!
 Dunia Azim
 
 PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
 HR: Amtsgericht Darmstadt, HRB 8383
 Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
 Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)
 



-- 
Matthias Wessendorf

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


[Trinidad] tr:table cannot nest non-Trinidad cell components

2007-08-02 Thread Renzo Tomaselli
Hi, subject says all. If I include a h:graphicImage in a tr:column - 
then its id is not increased, e.g. all images along the column get the 
same id.

If I switch it to a tr:image, no problems, it gets a :rowIndex suffix.
This is simple to workaround, but I was considering to include a 
rich:suggestionBox in a column, so I guess Trinidad will by unhappy 
about it.

Any real reason to be so restrictive ? Any workaround ?

-- Renzo



EL 2 Ref/Tut

2007-08-02 Thread Wolf Benz
Hi List,
Does anyone know of a nice Intro/Ref/Tutorial to EL v2?
(with stuff like: what is new, what implicit objects can be used, like
request and its instance vars like request.requestURI etc)

-Wolf


Re: Schedule tomahawk

2007-08-02 Thread Michał 'Gandalf' Stawicki
- fetch data from DB
- create ScheduleEntry
- add it to Schedule.

eg:
   ListSomeClass result = session.createQuery(from Schedule).list();

for(SomeClass sc : result)
{
ScheduleEntry e = new DefaultScheduleEntry();

e.setStartTime(sc.getStartTime());
e.setEndTime(...);


scheduleModel.addEntry(e);
}

scheduleModel.setSelectedDate(new Date(System.currentTimeInMillis()));
scheduleModel.refresh();



-- 
Michał Stawicki

[EMAIL PROTECTED]
http://stawicki.jasliska.pl


Tree2 Lazy Loading Confusion

2007-08-02 Thread kewldude

I'm trying to use the Alternative Tree2 Lazy Loading Method...by jtmille30
approach in lazy loading my tree. 

I'm just wondering why the action attribute in the jsp is pointing to
(action=#{treeBacker.selectedNode} ) which is in the back end its

public void selectedNode() {
this.selectedNode =
this.getTreeModel().getNode().getDescription();
}

This.getTreeModel().getNode() is non existent. I'm using myfaces 1.1.5 core
and impl and tomahawk 1.1.6. What is only available to me is
this.getTreeModel().getNodeByID(String nodeID)...
I don't know what to put in the nodeID. 
Anyone care to clear the confusion here? 
At the same time what does that method (selectedNode) really do? 


-- 
View this message in context: 
http://www.nabble.com/Tree2-Lazy-Loading-Confusion-tf4206825.html#a11966806
Sent from the MyFaces - Users mailing list archive at Nabble.com.



AW: [Trinidad] source code for demo examples 1.0.1

2007-08-02 Thread Azim, Dunia
Hi, thanks for your quick answer
but getting started with Trinidad doesn't seem so very easy to me: my SVN tells 
me location information specified incorrectly although I can open the URL 
correctly it in the browser.

The sources of the Trinidad 1.2.1 Examples, I already unpacked before, but this 
Examples-Version doesn't run on my tomcat 5.5 / JDK 5 (J2SE) and I can't find 
why. I added the So it doesn't make sense to use them.

Are the example.wars incomplete? I added the suggested JSF-Jars to the 
webInf/lib but it didn't work. Do I need maven for any reason?

desperately
Dunia Azim

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im 
 Auftrag von Matthias Wessendorf
 Gesendet: Donnerstag, 2. August 2007 17:08
 An: MyFaces Discussion
 Betreff: Re: [Trinidad] source code for demo examples 1.0.1
 
 Hi,
 
 they're not downloadable :-)
 There is a svn tag, perhaps you want to check them out:
 http://svn.apache.org/viewvc/myfaces/trinidad/tags/trinidad-1.0.1/
 
 in 1.2.1 (the JSF 1.2 version of 1.0.1), I noticed that as well.
 In 1.0.2 there will be sources ;-)
 
 -M
 
 
 On 8/2/07, Azim, Dunia [EMAIL PROTECTED] wrote:
  Hi,
  where can I download the source code for the Trinidad 1.0.1 
 demo examples?
 
  Thanks for your help!
  Dunia Azim
  
 __
  __ PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
  HR: Amtsgericht Darmstadt, HRB 8383
  Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
  Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz) 
  
 __
  __
 
 
 
 --
 Matthias Wessendorf
 
 further stuff:
 blog: http://matthiaswessendorf.wordpress.com/
 mail: matzew-at-apache-dot-org
 

PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8383
Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)



Re: [Trinidad] source code for demo examples 1.0.1

2007-08-02 Thread Matthias Wessendorf
1.2.1 was build against JSF RI,
but we can't ship the RI (due to license incompatibility), so RI and
also it's dependencies are missing.

Getting started w/ Trinidad, perhaps this here helps:

code.google.com/p/facesgoodies

Greetings,
Matthias

On 8/2/07, Azim, Dunia [EMAIL PROTECTED] wrote:
 Hi, thanks for your quick answer
 but getting started with Trinidad doesn't seem so very easy to me: my SVN 
 tells me location information specified incorrectly although I can open the 
 URL correctly it in the browser.

 The sources of the Trinidad 1.2.1 Examples, I already unpacked before, but 
 this Examples-Version doesn't run on my tomcat 5.5 / JDK 5 (J2SE) and I can't 
 find why. I added the So it doesn't make sense to use them.

 Are the example.wars incomplete? I added the suggested JSF-Jars to the 
 webInf/lib but it didn't work. Do I need maven for any reason?

 desperately
 Dunia Azim

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
  Auftrag von Matthias Wessendorf
  Gesendet: Donnerstag, 2. August 2007 17:08
  An: MyFaces Discussion
  Betreff: Re: [Trinidad] source code for demo examples 1.0.1
 
  Hi,
 
  they're not downloadable :-)
  There is a svn tag, perhaps you want to check them out:
  http://svn.apache.org/viewvc/myfaces/trinidad/tags/trinidad-1.0.1/
 
  in 1.2.1 (the JSF 1.2 version of 1.0.1), I noticed that as well.
  In 1.0.2 there will be sources ;-)
 
  -M
 
 
  On 8/2/07, Azim, Dunia [EMAIL PROTECTED] wrote:
   Hi,
   where can I download the source code for the Trinidad 1.0.1
  demo examples?
  
   Thanks for your help!
   Dunia Azim
  
  __
   __ PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
   HR: Amtsgericht Darmstadt, HRB 8383
   Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
   Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)
  
  __
   __
  
 
 
  --
  Matthias Wessendorf
 
  further stuff:
  blog: http://matthiaswessendorf.wordpress.com/
  mail: matzew-at-apache-dot-org
 
 
 PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
 HR: Amtsgericht Darmstadt, HRB 8383
 Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
 Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)
 



-- 
Matthias Wessendorf

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


Re: EL 2 Ref/Tut

2007-08-02 Thread David Delbecq
http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf
html version: http://java.sun.com/javaee/5/docs/tutorial/doc/

Search for implicit objets and take also a look at
Chapter 4:   JavaServer Pages Technology
   - Unified Expression Language

Wolf Benz a écrit :
 Hi List,
 Does anyone know of a nice Intro/Ref/Tutorial to EL v2?
 (with stuff like: what is new, what implicit objects can be used, like
 request and its instance vars like request.requestURI etc)

 -Wolf
   


Re: [Trinidad] tr:table cannot nest non-Trinidad cell components

2007-08-02 Thread Adam Winer
On 8/2/07, Renzo Tomaselli [EMAIL PROTECTED] wrote:
 Hi, subject says all. If I include a h:graphicImage in a tr:column -
 then its id is not increased, e.g. all images along the column get the
 same id.
 If I switch it to a tr:image, no problems, it gets a :rowIndex suffix.
 This is simple to workaround, but I was considering to include a
 rich:suggestionBox in a column, so I guess Trinidad will by unhappy
 about it.
 Any real reason to be so restrictive ? Any workaround ?

It's not intentional.  It looks like we're not doing the fun
component.setId(component.getId()) trick necessary to
get most UIComponents to increase their ID (not necessary
with Trinidad components).

-- Adam


Re: [Trinidad]: shortDesc for tr:selectOneChoice

2007-08-02 Thread Adam Winer
It's likely a browser issue - check the HTML, I suspect
we are rendering title on the select, but your browser
doesn't show it.

-- Adam


On 8/2/07, sandeep gururaj [EMAIL PROTECTED] wrote:
 Hello All,

 I am using shortDesc attribute of tr:selectOneChoice (drop down list).
 However, it doesn't seem to be working. I am not able to see the
 tooltip.

 The example I am using is as follows -

 tr:selectOneChoice value=#{myBean.qStatus} required=true
 shortDesc=Set the status of your Queue 
 f:selectItems value=#{myBean.allQueueStatus} /
 /tr:selectOneChoice

 The shortDesc feature is working fine when used with tr:inputText.

 I don't know if something else is needed for getting shortDesc to work
 with the drop down list?

 If any idea, let me know.

 Thanks!
 ~Sandeep



Re: [TRINIDAD] configure display all on tr:table

2007-08-02 Thread Adam Winer
No, there isn't a switch for that.  The option isn't hidden
based on a fixed number, but on a multiple of the current
visible size - if there's more than (30 * visible options),
we won't do a Show All.  That comes from
SelectRangeChoiceBarRenderer.java:

  /**
   * @todo This should be pulled from a skin property
   */
  static private final long   _MAX_VISIBLE_OPTIONS = 30L;

... and note the todo there. :)

-- Adam


On 8/2/07, Döring Markus [EMAIL PROTECTED] wrote:

 Hello,

 The range navigator of a tr:table has an item „display all.

 I've already seen that this option is hidden if there are a lot of rows in
 the table (maybe over 500 or so).

 Is there an easy way to configure when the option is displayed and when not
 (i want to hide the option as soon as more than 50 rows in total are in the
 table)



 Thx for help

 Markus Döring

 TCC Products GmbH

  Anwendungsentwicklung

 Benzstr. 3
  71696 Möglingen


  mail: [EMAIL PROTECTED]




Re: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Matthias Wessendorf
java.lang.NoClassDefFoundError:
org/apache/myfaces/trinidad/context/ExternalContextDecorator

do you have the trinidad-API in place ?



On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
 The manifest in the my-faces jar file is giving the version as
 Implementation-Version: 1.1.1 (20051230).

 I'm not behind a firewall, I'm attempting to deploy locally.  The only
 changes I have made are the addition of the 2 trinidad jars to Tomcat
 5.5/common/lib/.  I originally made the changes to web.xml and
 faces-config.xml that are given here:
 http://myfaces.apache.org/trinidad/installation.html within
 the application that I am trying to deploy   But I removed those changes in
 an attempt to isolate the problem. So it seems that Tomcat is unable to
 start whenever those jars are in the lib directory.

 Below is the message log Tomcat is giving on startup.

 Anyone have an idea whats going on here?

  jessica

 Using CATALINA_BASE:   C:\Program Files\Apache Software Foundation\Tomcat
 5.5
 Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Tomcat
 5.5
 Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat
 5.5\temp
 Using JAVA_HOME:   C:\Program Files\Java\jrockit-jdk1.5.0_06
 Listening for transport dt_shmem at address: tomcat_shared_memory_id
 Aug 2, 2007 10:09:13 AM
 org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal performance in
 production environments was not found on the java.library.path: C:\Program
 Files\Java\jrockit-jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL
 Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
 Server\90\DTS\Binn\;C:\Sun\AppServer\bin
 Aug 2, 2007 10:09:14 AM
 org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-80
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1766 ms
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Aug 2, 2007 10:09:16 AM
 org.apache.myfaces.config.FacesConfigurator
 feedStandardConfig
 INFO: Reading standard config
 org/apache/myfaces/resource/standard- faces-config.xml
 Aug 2, 2007 10:09:17 AM
 org.apache.myfaces.config.FacesConfigurator
 feedClassloaderConfigurations
 INFO: Reading config jar:file:/C:/Program Files/Apache Software
 Foundation/Tomcat 5.5/common/lib/trinidad-
 impl-1.2.1.jar!/META-INF/faces-config.xml
 Aug 2, 2007 10:09:17 AM
 org.apache.commons.digester.Digester error

 SEVERE: Parse Error at line 2 column 14: Document is invalid: no grammar
 found.
 org.xml.sax.SAXParseException : Document is invalid: no grammar found.
 at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
 at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error
 (ErrorHandlerWrapper.java:172)
 at
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
 at
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
 (XMLErrorReporter.java:316)
 at
 com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:177)
 at
 com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook
 (XMLNSDocumentScannerImpl.java:779)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (XMLDocumentFragmentScannerImpl.java:368)
 at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
 at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
 (XML11Configuration.java:764)
 at
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
 at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
 :1242)
 at
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at
 org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java
 :183)
 at
 org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(FacesConfigurator.java:233)
 at
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:118)
  at
 

Re: Schedule tomahawk

2007-08-02 Thread Michał 'Gandalf' Stawicki
SomeClass is your Entity-bean class returned by hibernate or whatever
you're using.

On 02/08/07, ignicolist [EMAIL PROTECTED] wrote:

 Tks, but what is supose to put in SomeClass ? Sorry for dumb question! but i
 am new to this!


 Tks for all help.




 Michał 'Gandalf' Stawicki wrote:
 
  - fetch data from DB
  - create ScheduleEntry
  - add it to Schedule.
 
  eg:
 ListSomeClass result = session.createQuery(from
  Schedule).list();
 
  for(SomeClass sc : result)
  {
  ScheduleEntry e = new DefaultScheduleEntry();
 
  e.setStartTime(sc.getStartTime());
  e.setEndTime(...);
  
 
  scheduleModel.addEntry(e);
  }
 
  scheduleModel.setSelectedDate(new Date(System.currentTimeInMillis()));
  scheduleModel.refresh();
 
 
 
  --
  Michał Stawicki
 
  [EMAIL PROTECTED]
  http://stawicki.jasliska.pl
 
 

 --
 View this message in context: 
 http://www.nabble.com/Schedule-tomahawk-tf4192737.html#a11968059
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




-- 
Michał Stawicki

[EMAIL PROTECTED]
http://stawicki.jasliska.pl


Re: Tree2 Lazy Loading Confusion

2007-08-02 Thread kewldude

Okay, after eating dinner, I figured out that a work around can be done to
get the currently selected node by binding the tree2 component to a backing
bean that has a HtmlTree object. And from there this.selectedNode =
yourTreeObject.getNode().getDescription. The wiki should be updated to
reflect that.

Anyway, moving forward, I'm still trying to decipher why the action
attribute was mapped to this selectedNode() method (
action=#{treeBacker.selectedNode} ). I mean how did it all work out? When
the selectedNode() executes, yes it assigns the descripton of the current
selected node to the selectedNode  variable, then what? What's the relation
of that selectedNode() method to the public List getChildren() method of the
LazyTreeNode.java which I assumed is the one responsible for fetching the
children of the clicked node. 

I hope someone can give a refresher or something. Thanks.


kewldude wrote:
 
 I'm trying to use the Alternative Tree2 Lazy Loading Method...by jtmille30
 approach in lazy loading my tree. 
 
 I'm just wondering why the action attribute in the jsp is pointing to
 (action=#{treeBacker.selectedNode} ) which is in the back end its
 
 public void selectedNode() {
 this.selectedNode =
 this.getTreeModel().getNode().getDescription();
 }
 
 This.getTreeModel().getNode() is non existent. I'm using myfaces 1.1.5
 core and impl and tomahawk 1.1.6. What is only available to me is
 this.getTreeModel().getNodeByID(String nodeID)...
 I don't know what to put in the nodeID. 
 Anyone care to clear the confusion here? 
 At the same time what does that method (selectedNode) really do? 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tree2-Lazy-Loading-Confusion-tf4206825.html#a11969024
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Jan Linders
I have the same issue with the DOCROOT error.
Allthough the JSF Kickstart sample App is working.

I think it has (in my case) somehow todo with the faces-config.xml file
within the trinidad-impl-1.2.1.jar file.
In META-INF there is a faces-config.xml.

First part of the file :

?xml version=1.0 encoding=utf-8?
faces-config xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd; version=1.2

I think there is an error in the schemaLocation URL : '
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd '

I tried fixing this by changing it too URL : '
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd '

but the same error is coming allthough now at a different position. Still
line 2 but column 204 instead of 238.

So the error seems to be in this file, however don't know enough of this to
pinpoint the root cause.

Perhaps Matthias can shed some light :-)





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Matthias Wessendorf
Sent: Thursday, August 02, 2007 6:28 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
grammar found.


java.lang.NoClassDefFoundError:
org/apache/myfaces/trinidad/context/ExternalContextDecorator

do you have the trinidad-API in place ?



On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
 The manifest in the my-faces jar file is giving the version as
 Implementation-Version: 1.1.1 (20051230).

 I'm not behind a firewall, I'm attempting to deploy locally.  The only
 changes I have made are the addition of the 2 trinidad jars to Tomcat
 5.5/common/lib/.  I originally made the changes to web.xml and
 faces-config.xml that are given here:
 http://myfaces.apache.org/trinidad/installation.html within
 the application that I am trying to deploy   But I removed those changes
in
 an attempt to isolate the problem. So it seems that Tomcat is unable to
 start whenever those jars are in the lib directory.

 Below is the message log Tomcat is giving on startup.

 Anyone have an idea whats going on here?

  jessica

 Using CATALINA_BASE:   C:\Program Files\Apache Software Foundation\Tomcat
 5.5
 Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Tomcat
 5.5
 Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat
 5.5\temp
 Using JAVA_HOME:   C:\Program Files\Java\jrockit-jdk1.5.0_06
 Listening for transport dt_shmem at address: tomcat_shared_memory_id
 Aug 2, 2007 10:09:13 AM
 org.apache.catalina.core.AprLifecycleListener
 lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal performance in
 production environments was not found on the java.library.path: C:\Program

Files\Java\jrockit-jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDO
WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL
 Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
 Server\90\DTS\Binn\;C:\Sun\AppServer\bin
 Aug 2, 2007 10:09:14 AM
 org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-80
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1766 ms
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
 Aug 2, 2007 10:09:14 AM
 org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Aug 2, 2007 10:09:16 AM
 org.apache.myfaces.config.FacesConfigurator
 feedStandardConfig
 INFO: Reading standard config
 org/apache/myfaces/resource/standard- faces-config.xml
 Aug 2, 2007 10:09:17 AM
 org.apache.myfaces.config.FacesConfigurator
 feedClassloaderConfigurations
 INFO: Reading config jar:file:/C:/Program Files/Apache Software
 Foundation/Tomcat 5.5/common/lib/trinidad-
 impl-1.2.1.jar!/META-INF/faces-config.xml
 Aug 2, 2007 10:09:17 AM
 org.apache.commons.digester.Digester error

 SEVERE: Parse Error at line 2 column 14: Document is invalid: no grammar
 found.
 org.xml.sax.SAXParseException : Document is invalid: no grammar found.
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(ErrorHandlerWrapper.java:236)
 at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error
 (ErrorHandlerWrapper.java:172)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:382)
 at
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
 (XMLErrorReporter.java:316)
 at

com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl
ement(XMLNSDocumentScannerImpl.java:177)
 at


Avoiding of writing a method per column in dataTable

2007-08-02 Thread vlad10

I'm doing a sort by column on my dataTable, and want to display an image on
the column header when this column was choosen for the sorting. Say '' -
for ascending and '' - for descending (well, I'm using actual images). I'm
using on those images a rendered property pointed to a different method for
every column. What I hate about this approach that the only difference all
these methods have, they supply a hardcoded column name (what is another
deficiency to me) calling one common method. 
I'm looking for an idea of avoiding writing these multiple dummy wrappers.

Here is the fragment of my JSF page (just one column):

   h:column
  f:facet name=header
  h:commandLink id=CustId 
actionListener=#{basicScroller.sort}
action=# immediate=true
 h:outputText value=#{msgs.customerIdHeader}/
 h:graphicImage url=/web/sec/images/arrow3.gif
rendered=${basicScroller.sortAscId}/
 h:graphicImage url=/web/sec/images/arrow2.gif
rendered=${basicScroller.sortDescId}/
  /h:commandLink
  /f:facet
  h:outputText value=#{customer.custId}/
   /h:column

The methods:

public boolean isSortAscId(){
return isSortAsc(custId);
}

public boolean isSortDescId(){
return isSortDesc(custId);
}

May be I can grab those images as UIComponents from the sort() method
pointed by my commandLink actionListener? Still then I don't see how to
'desactivate' the previos image when clicking on a different column.
Or maybe this is just my deficiency in EL???

I'd appreciate all suggestions.

thanks
vlad
-- 
View this message in context: 
http://www.nabble.com/Avoiding-of-writing-a-method-per-column-in-dataTable-tf4207698.html#a11969568
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: ajax4jsf onchange event doesnt reRender Textfield

2007-08-02 Thread bansi

Good question Andrew. I knew you are pointing at Conversion or Validations
which may occur during onchange event. It was error in my code which i fixed
it  works fine now

But i am having another wierd problem
I have onblur event on textfield which functions as expected in case the
textfield has null value. But if i go back  key in the value for textfield
it still holds the null value  doesnt recognizes the new keyed in value .
from debugging statement i figured out the setXXX() method doesn't get
called





Andrew Robinson-5 wrote:
 
 do you have any faces messages as a result of changing the menu
 (conversion error, validation message, etc.)?
 
 On 8/1/07, bansi [EMAIL PROTECTED] wrote:

 When the page loads the textfield is disabled i.e. non-editable. It
 should be
 editable only thru onchange event of other component
 Here is the snippet
 h:selectOneMenu id=assetMgmt value=#{deviceBean.selectedAsset}  
   f:selectItem itemLabel=
 itemValue= /
   f:selectItems
 value=#{deviceBean.assetList} /
   a4j:support 
 action=#{deviceBean.loadTagMode}
 event=onchange  reRender=propertyTag/
 /h:selectOneMenu

 a4j:outputPanel
h:panelGrid columns=2 styleClass=detail
 columnClasses=label 

 h:outputLabelh:outputText  value=Property
 Tag /
 /h:outputLabel
 h:inputText  id=propertyTag
 value=#{deviceBean.tagNumber}
 disabled=#{!updateDeviceBean.disableMode}
 a4j:support 
 action=#{deviceBean.loadAssetDetails}
 event=onblur reRender=mypanel  /
  /h:inputText

 /h:panelGrid
 /a4j:outputPanel


 Backing Bean
 public void loadTagMode() {
   System.out.println(Inside loadTagDetails);
   disableMode = true;

 }
 Any pointers/suggestions will be highly appreciated
 --
 View this message in context:
 http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11953535
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11971431
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: EL 2 Ref/Tut

2007-08-02 Thread Wolf Benz
That one I had :-)
I hoped someone might have made a typical dev's summary
(By that I mean cut the crap, just the rules and e few examples-ish.)
-Wolf

On 8/2/07, David Delbecq [EMAIL PROTECTED] wrote:
 http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf
 html version: http://java.sun.com/javaee/5/docs/tutorial/doc/

 Search for implicit objets and take also a look at
 Chapter 4:   JavaServer Pages Technology
- Unified Expression Language

 Wolf Benz a écrit :
  Hi List,
  Does anyone know of a nice Intro/Ref/Tutorial to EL v2?
  (with stuff like: what is new, what implicit objects can be used, like
  request and its instance vars like request.requestURI etc)
 
  -Wolf
 



[Trinidad] PPR and Javascript events

2007-08-02 Thread Bertrand, Shawn R
Are there any Javascript events to which I can respond after a PPR
request reports back to the browser?  I'm trying to restore a scroll
position in IE (works in Firefox, as usual) that I've saved off in a
cookie but can't reliably respond to any events to restore the position.
I've tried window.onload and window.onfocus (they get called only
sometimes), as well as onfocus of my custom component extension of
panelGroupLayout.

 

Thanks in advance,

 

Shawn Bertrand

Tyco Electronics

 



Re: ajax4jsf onchange event doesnt reRender Textfield

2007-08-02 Thread Andrew Robinson
Once again, check to see if there are validation errors. I recommend
always using a4j:regions around data that is submit by AJAX. This way
you know exactly which components are being submitted/decoded/updated.

Also, at least when debugging, make sure there is the following in every page:

a4j:outputPanel ajaxRendered=true
t:messages globalOnly=false /
/a4j:outputPanel

-Andrew

On 8/2/07, bansi [EMAIL PROTECTED] wrote:

 Good question Andrew. I knew you are pointing at Conversion or Validations
 which may occur during onchange event. It was error in my code which i fixed
 it  works fine now

 But i am having another wierd problem
 I have onblur event on textfield which functions as expected in case the
 textfield has null value. But if i go back  key in the value for textfield
 it still holds the null value  doesnt recognizes the new keyed in value .
 from debugging statement i figured out the setXXX() method doesn't get
 called





 Andrew Robinson-5 wrote:
 
  do you have any faces messages as a result of changing the menu
  (conversion error, validation message, etc.)?
 
  On 8/1/07, bansi [EMAIL PROTECTED] wrote:
 
  When the page loads the textfield is disabled i.e. non-editable. It
  should be
  editable only thru onchange event of other component
  Here is the snippet
  h:selectOneMenu id=assetMgmt value=#{deviceBean.selectedAsset}  
f:selectItem itemLabel=
  itemValue= /
f:selectItems
  value=#{deviceBean.assetList} /
a4j:support
  action=#{deviceBean.loadTagMode}
  event=onchange  reRender=propertyTag/
  /h:selectOneMenu
 
  a4j:outputPanel
 h:panelGrid columns=2 styleClass=detail
  columnClasses=label 
 
  h:outputLabelh:outputText  value=Property
  Tag /
  /h:outputLabel
  h:inputText  id=propertyTag
  value=#{deviceBean.tagNumber}
  disabled=#{!updateDeviceBean.disableMode}
  a4j:support
  action=#{deviceBean.loadAssetDetails}
  event=onblur reRender=mypanel  /
   /h:inputText
 
  /h:panelGrid
  /a4j:outputPanel
 
 
  Backing Bean
  public void loadTagMode() {
System.out.println(Inside loadTagDetails);
disableMode = true;
 
  }
  Any pointers/suggestions will be highly appreciated
  --
  View this message in context:
  http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11953535
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11971431
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: ajax4jsf onchange event doesnt reRender Textfield

2007-08-02 Thread bansi

I have a4j:outputPanel /   a4j:region / in my code and it works fine
first time i.e. if user has not entered anything into the textfield then
onblur event functions as desirable i.e. clears off other fields on the form
with the help of backing bean method . The problem is when i go back to the
textfield and key in the value it still holds the null value 

Here is the snippet
h:inputText  id=propertyTag value=#{updateDeviceBean.tagNumber}
disabled=#{!updateDeviceBean.disableMode}
a4j:support  
action=#{updateDeviceBean.loadAssetDetails}
event=onblur reRender=mypanel /

/h:inputText

a4j:outputPanel  id=mypanel 

/a4j:outputPanel  

Backing Bean method
 public String loadAssetDetails() {
if (!StringUtils.isEmpty(tagNumber)  !StringUtils.isEmpty(selectedAsset)){ 
  System.out.println(In not null);
}
else if(StringUtils.isEmpty(tagNumber)){
  System.out.println(In tagNo null);
 disableMode = false;
  return null;
  }
  else{
  System.out.println(In else);
  disableMode = false;
  return null;
  }
}


Andrew Robinson-5 wrote:
 
 Once again, check to see if there are validation errors. I recommend
 always using a4j:regions around data that is submit by AJAX. This way
 you know exactly which components are being submitted/decoded/updated.
 
 Also, at least when debugging, make sure there is the following in every
 page:
 
 a4j:outputPanel ajaxRendered=true
 t:messages globalOnly=false /
 /a4j:outputPanel
 
 -Andrew
 
 On 8/2/07, bansi [EMAIL PROTECTED] wrote:

 Good question Andrew. I knew you are pointing at Conversion or
 Validations
 which may occur during onchange event. It was error in my code which i
 fixed
 it  works fine now

 But i am having another wierd problem
 I have onblur event on textfield which functions as expected in case the
 textfield has null value. But if i go back  key in the value for
 textfield
 it still holds the null value  doesnt recognizes the new keyed in value
 .
 from debugging statement i figured out the setXXX() method doesn't get
 called





 Andrew Robinson-5 wrote:
 
  do you have any faces messages as a result of changing the menu
  (conversion error, validation message, etc.)?
 
  On 8/1/07, bansi [EMAIL PROTECTED] wrote:
 
  When the page loads the textfield is disabled i.e. non-editable. It
  should be
  editable only thru onchange event of other component
  Here is the snippet
  h:selectOneMenu id=assetMgmt value=#{deviceBean.selectedAsset}  
f:selectItem itemLabel=
  itemValue= /
f:selectItems
  value=#{deviceBean.assetList} /
a4j:support
  action=#{deviceBean.loadTagMode}
  event=onchange  reRender=propertyTag/
  /h:selectOneMenu
 
  a4j:outputPanel
 h:panelGrid columns=2 styleClass=detail
  columnClasses=label 
 
  h:outputLabelh:outputText  value=Property
  Tag /
  /h:outputLabel
  h:inputText  id=propertyTag
  value=#{deviceBean.tagNumber}
  disabled=#{!updateDeviceBean.disableMode}
  a4j:support
  action=#{deviceBean.loadAssetDetails}
  event=onblur reRender=mypanel  /
   /h:inputText
 
  /h:panelGrid
  /a4j:outputPanel
 
 
  Backing Bean
  public void loadTagMode() {
System.out.println(Inside loadTagDetails);
disableMode = true;
 
  }
  Any pointers/suggestions will be highly appreciated
  --
  View this message in context:
 
 http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11953535
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11971431
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/ajax4jsf-onchange--event-doesnt-reRender-Textfield-tf4202589.html#a11972227
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Seam+MyFaces+Facelets problem with EL functions

2007-08-02 Thread Andrew Robinson
I am having a problem with the combination of Seam 1.2.1, MyFaces
(1.1.5 or 1.2.0) and Facelets 1.1.11 when it comes to EL functions. I
am trying to get help from the facelets user list and the seam forum,
but I know a lot of myfaces users use facelets, and may have a
solution.

In MyFaces 1.1.5, EL functions work fine in the facelet views since
facelets handles those. However, with
'facesContext.getApplication().createValueBinding(#{s:hasRole('test')});'
I get an exception.

1.1.5 error:

Caused by: javax.faces.el.ReferenceSyntaxException: Functions not
supported in expressions. Function: s:hasRole

I tried MyFaces 1.2 and got a different error.

With MyFaces Core/Api 1.2.0 I get this exception:

javax.el.ELException: Expression uses functions, but no FunctionMapper
was provided

Here is the message on the seam forum:

More information here:
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070255#4070255

How can I get EL functions to work through the JSF Application object
as well as through the facelets view handler?

Thanks,
Andrew


Re: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Adam Winer
The faces-config in trinidad-impl is absolutely required.
As indicated above, don't try using Trinidad 1.2 with MyFaces 1.1.

-- Adam


On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
 So I tried updating my common-digester.jar and its dependencies in the hope
 that it would solve the problem parsing faces-config.xml.  No dice.  I'm
 thinking maybe I can just remove the faces-config from the trinidad-impl.jar
 .  Is this going to cause me problems later? Why do I need that
 faces-config.xml also?  Is there anything else I could try?


 On 8/2/07, Jan Linders  [EMAIL PROTECTED] wrote:
  I have the same issue with the DOCROOT error.
  Allthough the JSF Kickstart sample App is working.
 
  I think it has (in my case) somehow todo with the faces-config.xml file
  within the trinidad-impl-1.2.1.jar file.
  In META-INF there is a faces-config.xml.
 
  First part of the file :
 
  ?xml version=1.0 encoding=utf-8?
  faces-config xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
 
 http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;
 version=1.2
 
  I think there is an error in the schemaLocation URL : '
  http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd
 '
 
  I tried fixing this by changing it too URL : '
  http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd
 '
 
  but the same error is coming allthough now at a different position. Still
  line 2 but column 204 instead of 238.
 
  So the error seems to be in this file, however don't know enough of this
 to
  pinpoint the root cause.
 
  Perhaps Matthias can shed some light :-)
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
  Matthias Wessendorf
  Sent: Thursday, August 02, 2007 6:28 PM
  To: MyFaces Discussion
  Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
  grammar found.
 
 
  java.lang.NoClassDefFoundError:
 
 org/apache/myfaces/trinidad/context/ExternalContextDecorator
 
  do you have the trinidad-API in place ?
 
 
 
  On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
   The manifest in the my-faces jar file is giving the version as
   Implementation-Version: 1.1.1 (20051230).
  
   I'm not behind a firewall, I'm attempting to deploy locally.  The only
   changes I have made are the addition of the 2 trinidad jars to Tomcat
   5.5/common/lib/.  I originally made the changes to web.xml and
   faces-config.xml that are given here:
   http://myfaces.apache.org/trinidad/installation.html
 within
   the application that I am trying to deploy   But I removed those changes
  in
   an attempt to isolate the problem. So it seems that Tomcat is unable to
   start whenever those jars are in the lib directory.
  
   Below is the message log Tomcat is giving on startup.
  
   Anyone have an idea whats going on here?
  
jessica
  
   Using CATALINA_BASE:   C:\Program Files\Apache Software
 Foundation\Tomcat
   5.5
   Using CATALINA_HOME:   C:\Program Files\Apache Software
 Foundation\Tomcat
   5.5
   Using CATALINA_TMPDIR: C:\Program Files\Apache Software
 Foundation\Tomcat
   5.5\temp
   Using JAVA_HOME:   C:\Program Files\Java\jrockit- jdk1.5.0_06
   Listening for transport dt_shmem at address: tomcat_shared_memory_id
   Aug 2, 2007 10:09:13 AM
   org.apache.catalina.core.AprLifecycleListener
   lifecycleEvent
   INFO: The Apache Tomcat Native library which allows optimal performance
 in
   production environments was not found on the java.library.path:
 C:\Program
  
 
 Files\Java\jrockit-jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDO
 
 WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
   Files\QuickTime\QTSystem\;C:\Program Files\Microsoft
 SQL
   Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
   Server\90\DTS\Binn\;C:\Sun\AppServer\bin
   Aug 2, 2007 10:09:14 AM
   org.apache.coyote.http11.Http11BaseProtocol init
   INFO: Initializing Coyote HTTP/1.1 on http-80
   Aug 2, 2007 10:09:14 AM
   org.apache.catalina.startup.Catalina load
   INFO: Initialization processed in 1766 ms
   Aug 2, 2007 10:09:14 AM
   org.apache.catalina.core.StandardService start
   INFO: Starting service Catalina
   Aug 2, 2007 10:09:14 AM
   org.apache.catalina.core.StandardEngine start
   INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
   Aug 2, 2007 10:09:14 AM
   org.apache.catalina.core.StandardHost start
   INFO: XML validation disabled
   Aug 2, 2007 10:09:16 AM
   org.apache.myfaces.config.FacesConfigurator
   feedStandardConfig
   INFO: Reading standard config
   org/apache/myfaces/resource/standard- faces-config.xml
   Aug 2, 2007 10:09:17 AM
   org.apache.myfaces.config.FacesConfigurator
   feedClassloaderConfigurations
   INFO: Reading config jar:file:/C:/Program Files/Apache Software
   Foundation/Tomcat 5.5/common/lib/trinidad-
   impl-1.2.1.jar!/META-INF/faces-config.xml
   Aug 2, 2007 10:09:17 AM
   

Re: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Adam Winer
On 8/2/07, Jan Linders [EMAIL PROTECTED] wrote:
 I have the same issue with the DOCROOT error.
 Allthough the JSF Kickstart sample App is working.

 I think it has (in my case) somehow todo with the faces-config.xml file
 within the trinidad-impl-1.2.1.jar file.
 In META-INF there is a faces-config.xml.

 First part of the file :

 ?xml version=1.0 encoding=utf-8?
 faces-config xmlns=http://java.sun.com/xml/ns/javaee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd; version=1.2

 I think there is an error in the schemaLocation URL : '
 http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd '

 I tried fixing this by changing it too URL : '
 http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd '

No, the schemaLocation is correct.  See:
http://www.w3.org/TR/xmlschema-0/#schemaLocation
... for a description of the schemaLocation attribute.  It's
not just 1 URL, it's N *pairs* of URLs associating namespaces
with schemas.

-- Adam



 but the same error is coming allthough now at a different position. Still
 line 2 but column 204 instead of 238.

 So the error seems to be in this file, however don't know enough of this to
 pinpoint the root cause.

 Perhaps Matthias can shed some light :-)





 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
 Matthias Wessendorf
 Sent: Thursday, August 02, 2007 6:28 PM
 To: MyFaces Discussion
 Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
 grammar found.


 java.lang.NoClassDefFoundError:
 org/apache/myfaces/trinidad/context/ExternalContextDecorator

 do you have the trinidad-API in place ?



 On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
  The manifest in the my-faces jar file is giving the version as
  Implementation-Version: 1.1.1 (20051230).
 
  I'm not behind a firewall, I'm attempting to deploy locally.  The only
  changes I have made are the addition of the 2 trinidad jars to Tomcat
  5.5/common/lib/.  I originally made the changes to web.xml and
  faces-config.xml that are given here:
  http://myfaces.apache.org/trinidad/installation.html within
  the application that I am trying to deploy   But I removed those changes
 in
  an attempt to isolate the problem. So it seems that Tomcat is unable to
  start whenever those jars are in the lib directory.
 
  Below is the message log Tomcat is giving on startup.
 
  Anyone have an idea whats going on here?
 
   jessica
 
  Using CATALINA_BASE:   C:\Program Files\Apache Software Foundation\Tomcat
  5.5
  Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Tomcat
  5.5
  Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat
  5.5\temp
  Using JAVA_HOME:   C:\Program Files\Java\jrockit-jdk1.5.0_06
  Listening for transport dt_shmem at address: tomcat_shared_memory_id
  Aug 2, 2007 10:09:13 AM
  org.apache.catalina.core.AprLifecycleListener
  lifecycleEvent
  INFO: The Apache Tomcat Native library which allows optimal performance in
  production environments was not found on the java.library.path: C:\Program
 
 Files\Java\jrockit-jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDO
 WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
  Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL
  Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
  Server\90\DTS\Binn\;C:\Sun\AppServer\bin
  Aug 2, 2007 10:09:14 AM
  org.apache.coyote.http11.Http11BaseProtocol init
  INFO: Initializing Coyote HTTP/1.1 on http-80
  Aug 2, 2007 10:09:14 AM
  org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 1766 ms
  Aug 2, 2007 10:09:14 AM
  org.apache.catalina.core.StandardService start
  INFO: Starting service Catalina
  Aug 2, 2007 10:09:14 AM
  org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
  Aug 2, 2007 10:09:14 AM
  org.apache.catalina.core.StandardHost start
  INFO: XML validation disabled
  Aug 2, 2007 10:09:16 AM
  org.apache.myfaces.config.FacesConfigurator
  feedStandardConfig
  INFO: Reading standard config
  org/apache/myfaces/resource/standard- faces-config.xml
  Aug 2, 2007 10:09:17 AM
  org.apache.myfaces.config.FacesConfigurator
  feedClassloaderConfigurations
  INFO: Reading config jar:file:/C:/Program Files/Apache Software
  Foundation/Tomcat 5.5/common/lib/trinidad-
  impl-1.2.1.jar!/META-INF/faces-config.xml
  Aug 2, 2007 10:09:17 AM
  org.apache.commons.digester.Digester error
 
  SEVERE: Parse Error at line 2 column 14: Document is invalid: no grammar
  found.
  org.xml.sax.SAXParseException : Document is invalid: no grammar found.
  at
 
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
 ception(ErrorHandlerWrapper.java:236)
  at
  com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error
  

Re: Seam+MyFaces+Facelets problem with EL functions

2007-08-02 Thread Andrew Robinson
FYI, got it working with MyFaces 1.2 and using ValueExpression instead
of ValueBinding.

I just hope that I don't hit too many problems upgrading to MyFaces JSF 1.2

-Andrew

On 8/2/07, Andrew Robinson [EMAIL PROTECTED] wrote:
 I am having a problem with the combination of Seam 1.2.1, MyFaces
 (1.1.5 or 1.2.0) and Facelets 1.1.11 when it comes to EL functions. I
 am trying to get help from the facelets user list and the seam forum,
 but I know a lot of myfaces users use facelets, and may have a
 solution.

 In MyFaces 1.1.5, EL functions work fine in the facelet views since
 facelets handles those. However, with
 'facesContext.getApplication().createValueBinding(#{s:hasRole('test')});'
 I get an exception.

 1.1.5 error:

 Caused by: javax.faces.el.ReferenceSyntaxException: Functions not
 supported in expressions. Function: s:hasRole

 I tried MyFaces 1.2 and got a different error.

 With MyFaces Core/Api 1.2.0 I get this exception:

 javax.el.ELException: Expression uses functions, but no FunctionMapper
 was provided

 Here is the message on the seam forum:

 More information here:
 http://www.jboss.com/index.html?module=bbop=viewtopicp=4070255#4070255

 How can I get EL functions to work through the JSF Application object
 as well as through the facelets view handler?

 Thanks,
 Andrew



RE: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Jan Linders
Hi Adam.

I'm using MyFaces 1.2.0 and Trinidad 1.2.1

Seems the problem is in the validation of the faces-config.xml file in
trinidad-impl-1.2.1.jar (META-INF)

Parse Error at line 2 column 238: Document root element faces-config, must
match DOCTYPE root null.
org.xml.sax.SAXParseException: Document root element faces-config, must
match DOCTYPE root null.

This 1.2.1 faces-config.xml is getting validated against a schema and
connects to java.sun.com.


-- Jan

-Original Message-
From: Adam Winer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 11:54 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
grammar found.


The faces-config in trinidad-impl is absolutely required.
As indicated above, don't try using Trinidad 1.2 with MyFaces 1.1.

-- Adam


On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
 So I tried updating my common-digester.jar and its dependencies in the
hope
 that it would solve the problem parsing faces-config.xml.  No dice.  I'm
 thinking maybe I can just remove the faces-config from the
trinidad-impl.jar
 .  Is this going to cause me problems later? Why do I need that
 faces-config.xml also?  Is there anything else I could try?


 On 8/2/07, Jan Linders  [EMAIL PROTECTED] wrote:
  I have the same issue with the DOCROOT error.
  Allthough the JSF Kickstart sample App is working.
 
  I think it has (in my case) somehow todo with the faces-config.xml file
  within the trinidad-impl-1.2.1.jar file.
  In META-INF there is a faces-config.xml.
 
  First part of the file :
 
  ?xml version=1.0 encoding=utf-8?
  faces-config xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
 
 http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;
 version=1.2
 
  I think there is an error in the schemaLocation URL : '
  http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd
 '
 
  I tried fixing this by changing it too URL : '
  http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd
 '
 
  but the same error is coming allthough now at a different position.
Still
  line 2 but column 204 instead of 238.
 
  So the error seems to be in this file, however don't know enough of this
 to
  pinpoint the root cause.
 
  Perhaps Matthias can shed some light :-)
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
  Matthias Wessendorf
  Sent: Thursday, August 02, 2007 6:28 PM
  To: MyFaces Discussion
  Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
  grammar found.
 
 
  java.lang.NoClassDefFoundError:
 
 org/apache/myfaces/trinidad/context/ExternalContextDecorator
 
  do you have the trinidad-API in place ?
 
 
 
  On 8/2/07, Jessica Johnson [EMAIL PROTECTED] wrote:
   The manifest in the my-faces jar file is giving the version as
   Implementation-Version: 1.1.1 (20051230).
  
   I'm not behind a firewall, I'm attempting to deploy locally.  The only
   changes I have made are the addition of the 2 trinidad jars to Tomcat
   5.5/common/lib/.  I originally made the changes to web.xml and
   faces-config.xml that are given here:
   http://myfaces.apache.org/trinidad/installation.html
 within
   the application that I am trying to deploy   But I removed those
changes
  in
   an attempt to isolate the problem. So it seems that Tomcat is unable
to
   start whenever those jars are in the lib directory.
  
   Below is the message log Tomcat is giving on startup.
  
   Anyone have an idea whats going on here?
  
jessica
  
   Using CATALINA_BASE:   C:\Program Files\Apache Software
 Foundation\Tomcat
   5.5
   Using CATALINA_HOME:   C:\Program Files\Apache Software
 Foundation\Tomcat
   5.5
   Using CATALINA_TMPDIR: C:\Program Files\Apache Software
 Foundation\Tomcat
   5.5\temp
   Using JAVA_HOME:   C:\Program Files\Java\jrockit- jdk1.5.0_06
   Listening for transport dt_shmem at address: tomcat_shared_memory_id
   Aug 2, 2007 10:09:13 AM
   org.apache.catalina.core.AprLifecycleListener
   lifecycleEvent
   INFO: The Apache Tomcat Native library which allows optimal
performance
 in
   production environments was not found on the java.library.path:
 C:\Program
  
 

Files\Java\jrockit-jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDO
 
 WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
   Files\QuickTime\QTSystem\;C:\Program Files\Microsoft
 SQL
   Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
   Server\90\DTS\Binn\;C:\Sun\AppServer\bin
   Aug 2, 2007 10:09:14 AM
   org.apache.coyote.http11.Http11BaseProtocol init
   INFO: Initializing Coyote HTTP/1.1 on http-80
   Aug 2, 2007 10:09:14 AM
   org.apache.catalina.startup.Catalina load
   INFO: Initialization processed in 1766 ms
   Aug 2, 2007 10:09:14 AM
   org.apache.catalina.core.StandardService start
   INFO: Starting service Catalina
   Aug 2, 2007 10:09:14 AM
   

RE: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Jan Linders
Hi Adam,

you are right. The schemalocation is correct.
however it seems that (when run in Tomcat6) a validation against a schema is
started.
I can see tomcat connecting to java.sun.com.

more details :

Parse Error at line 2 column 238: Document root element faces-config, must
match DOCTYPE root null.
org.xml.sax.SAXParseException: Document root element faces-config, must
match DOCTYPE root null.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(ErrorHandlerWrapper.java:195)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
erWrapper.java:131)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:384)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:318)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpeci
fied(XMLDTDValidator.java:1621)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
nt(XMLDTDValidator.java:1900)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML
DTDValidator.java:764)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
tartElement(XMLDocumentFragmentScannerImpl.java:1357)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver
.scanRootElementHook(XMLDocumentScannerImpl.java:1289)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
entContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.
next(XMLDocumentScannerImpl.java:912)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
entScannerImpl.java:645)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
ocument(XMLDocumentFragmentScannerImpl.java:508)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:807)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
7)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
AXParser.java:1205)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
XParserImpl.java:522)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at
org.apache.shale.tiger.config.FacesConfigParser.parse(FacesConfigParser.java
:157)
at
org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(Lifecycle
Listener2.java:1282)
at
org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(Life
cycleListener2.java:290)
at
org.apache.shale.view.faces.LifecycleListener.contextInitialized(LifecycleLi
stener.java:138)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3827)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Parse Error at line 2 column 238: Document is invalid: no grammar found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(ErrorHandlerWrapper.java:195)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
erWrapper.java:131)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:384)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:318)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
nt(XMLDTDValidator.java:1910)
at

xmlMenuModel Example?

2007-08-02 Thread Chris Hane
I'm reading over the docs about xmlMenuModel[1] and was wondering if there 
is an example somewhere?


I did not see one in the trindad demos at SVN head - but I didn't look 
through all of the SVN branches.


[1] http://myfaces.apache.org/trinidad/devguide/xmlMenuModel.html

Chris


Re: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Adam Winer
Indeed, but I don't see this issue when running with the JSF RI
in Glassfish.  So my hunch is that we have a MyFaces 1.2 issue,
or perhaps a difference in XML parsers between Tomcat and
Glassfish?

The Trinidad faces-config.xml is correct AFAIK.

-- Adam


On 8/2/07, Jan Linders [EMAIL PROTECTED] wrote:
 Hi Adam,

 you are right. The schemalocation is correct.
 however it seems that (when run in Tomcat6) a validation against a schema is
 started.
 I can see tomcat connecting to java.sun.com.

 more details :

 Parse Error at line 2 column 238: Document root element faces-config, must
 match DOCTYPE root null.
 org.xml.sax.SAXParseException: Document root element faces-config, must
 match DOCTYPE root null.
 at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
 ception(ErrorHandlerWrapper.java:195)
 at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
 erWrapper.java:131)
 at
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
 rReporter.java:384)
 at
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
 rReporter.java:318)
 at
 com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpeci
 fied(XMLDTDValidator.java:1621)
 at
 com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
 nt(XMLDTDValidator.java:1900)
 at
 com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML
 DTDValidator.java:764)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
 tartElement(XMLDocumentFragmentScannerImpl.java:1357)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver
 .scanRootElementHook(XMLDocumentScannerImpl.java:1289)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
 entContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.
 next(XMLDocumentScannerImpl.java:912)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
 entScannerImpl.java:645)
 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
 ocument(XMLDocumentFragmentScannerImpl.java:508)
 at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
 figuration.java:807)
 at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
 figuration.java:737)
 at
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
 7)
 at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
 AXParser.java:1205)
 at
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
 XParserImpl.java:522)
 at org.apache.commons.digester.Digester.parse(Digester.java:1745)
 at
 org.apache.shale.tiger.config.FacesConfigParser.parse(FacesConfigParser.java
 :157)
 at
 org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(Lifecycle
 Listener2.java:1282)
 at
 org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(Life
 cycleListener2.java:290)
 at
 org.apache.shale.view.faces.LifecycleListener.contextInitialized(LifecycleLi
 stener.java:138)
 at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
 3827)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at 
 org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
 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:597)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Parse Error at line 2 column 238: Document is invalid: no grammar found.
 org.xml.sax.SAXParseException: Document is invalid: no grammar found.
 at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
 ception(ErrorHandlerWrapper.java:195)
 at
 

Re: [Trinidad] PPR and Javascript events

2007-08-02 Thread Adam Winer
Shawn,

Thought we discussed this before...  what we really need is
a JS hook in Trinidad for PPR replacement.  Happy to add
this in 1.0.3, but I want to get out 1.0.2 first.

-- Adam


On 8/2/07, Bertrand, Shawn R [EMAIL PROTECTED] wrote:

 Are there any Javascript events to which I can respond after a PPR request
 reports back to the browser?  I'm trying to restore a scroll position in IE
 (works in Firefox, as usual) that I've saved off in a cookie but can't
 reliably respond to any events to restore the position.  I've tried
 window.onload and window.onfocus (they get called only sometimes), as well
 as onfocus of my custom component extension of panelGroupLayout.



 Thanks in advance,



 Shawn Bertrand

 Tyco Electronics




Re: Seam+MyFaces+Facelets problem with EL functions

2007-08-02 Thread Andrew Robinson
Okay, this is still not working and is acting more confusing than
before. I'm not sure if the fault is with MyFaces 1.2 or Facelets.

I have a t:panelNavigation2

In it I have the following:

t:commandNavigation2
value=#{messages.MenuBean_createCalendar}
actionListener=#{menuBean.onMainAction}
action=mainMenu_createCalendar
rendered=#{s:hasRole('calendar-admin')} /

This works just fine if it is rendered at the top level (just under
the panelNavigation2). If, I have it nested under another
commandNavigation2, and I click on the parent node so that it expands,
I get an exception that s:hasRole function does not exist.

I am quite baffled at the moment of why #{s:hasRole('calendar-admin')}
resolves just fine on an initial rendering, but not after a re-render
after a POST.

I have the following in my faces-config:

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

faces-config
  application
el-resolverorg.jboss.seam.jsf.SeamELResolver/el-resolver
  /application
  lifecycle
phase-listenerorg.jboss.seam.jsf.SeamPhaseListener/phase-listener
  /lifecycle
/faces-config

Any ideas?

On 8/2/07, Andrew Robinson [EMAIL PROTECTED] wrote:
 FYI, got it working with MyFaces 1.2 and using ValueExpression instead
 of ValueBinding.

 I just hope that I don't hit too many problems upgrading to MyFaces JSF 1.2

 -Andrew

 On 8/2/07, Andrew Robinson [EMAIL PROTECTED] wrote:
  I am having a problem with the combination of Seam 1.2.1, MyFaces
  (1.1.5 or 1.2.0) and Facelets 1.1.11 when it comes to EL functions. I
  am trying to get help from the facelets user list and the seam forum,
  but I know a lot of myfaces users use facelets, and may have a
  solution.
 
  In MyFaces 1.1.5, EL functions work fine in the facelet views since
  facelets handles those. However, with
  'facesContext.getApplication().createValueBinding(#{s:hasRole('test')});'
  I get an exception.
 
  1.1.5 error:
 
  Caused by: javax.faces.el.ReferenceSyntaxException: Functions not
  supported in expressions. Function: s:hasRole
 
  I tried MyFaces 1.2 and got a different error.
 
  With MyFaces Core/Api 1.2.0 I get this exception:
 
  javax.el.ELException: Expression uses functions, but no FunctionMapper
  was provided
 
  Here is the message on the seam forum:
 
  More information here:
  http://www.jboss.com/index.html?module=bbop=viewtopicp=4070255#4070255
 
  How can I get EL functions to work through the JSF Application object
  as well as through the facelets view handler?
 
  Thanks,
  Andrew
 



RE: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Jan Linders
Adam,

found the problem.

The FacesGoodies sample uses Shale Tiger for annotations.
Shale Tiger scans all faces-config.xml from all jar's
and finds this file also the trinidad-impl-1.2.1.jar.
It then validates it and generates the error.
Why it fails is still not clear, but this is at least the place where it
goes wrong.

Everything starts ok, but the error messages is confusing.

http://shale.apache.org/shale-tiger/index.html
===

To use any of the Shale Tiger Extensions in your application, you MUST run
your web container on a Java SE 5 or later container, and MUST include the
shale-tiger.jar resource in your web application.

To optimize performance at application startup, the Shale Tiger Extensions
will ONLY examine classes (to see if they include the appropriate
annotations) in the following lcoations:

* Any class under /WEB-INF/classes.
* Any class in a JAR file under /WEB-INF/lib that includes a
META-INF/faces-config.xml resource, indicating that this JAR file is
relevant to JavaServer Faces.




-Original Message-
From: Adam Winer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 03, 2007 12:39 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
grammar found.


Indeed, but I don't see this issue when running with the JSF RI
in Glassfish.  So my hunch is that we have a MyFaces 1.2 issue,
or perhaps a difference in XML parsers between Tomcat and
Glassfish?

The Trinidad faces-config.xml is correct AFAIK.

-- Adam


On 8/2/07, Jan Linders [EMAIL PROTECTED] wrote:
 Hi Adam,

 you are right. The schemalocation is correct.
 however it seems that (when run in Tomcat6) a validation against a schema
is
 started.
 I can see tomcat connecting to java.sun.com.

 more details :

 Parse Error at line 2 column 238: Document root element faces-config,
must
 match DOCTYPE root null.
 org.xml.sax.SAXParseException: Document root element faces-config, must
 match DOCTYPE root null.
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
 ception(ErrorHandlerWrapper.java:195)
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
 erWrapper.java:131)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
 rReporter.java:384)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
 rReporter.java:318)
 at

com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpeci
 fied(XMLDTDValidator.java:1621)
 at

com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
 nt(XMLDTDValidator.java:1900)
 at

com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML
 DTDValidator.java:764)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
 tartElement(XMLDocumentFragmentScannerImpl.java:1357)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver
 .scanRootElementHook(XMLDocumentScannerImpl.java:1289)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
 entContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.
 next(XMLDocumentScannerImpl.java:912)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
 entScannerImpl.java:645)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
 ocument(XMLDocumentFragmentScannerImpl.java:508)
 at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
 figuration.java:807)
 at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
 figuration.java:737)
 at

com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
 7)
 at

com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
 AXParser.java:1205)
 at

com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
 XParserImpl.java:522)
 at org.apache.commons.digester.Digester.parse(Digester.java:1745)
 at

org.apache.shale.tiger.config.FacesConfigParser.parse(FacesConfigParser.java
 :157)
 at

org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(Lifecycle
 Listener2.java:1282)
 at

org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(Life
 cycleListener2.java:290)
 at

org.apache.shale.view.faces.LifecycleListener.contextInitialized(LifecycleLi
 stener.java:138)
 at

org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
 3827)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at

JSR-301 Update

2007-08-02 Thread Scott O'Bryan
I finally have, in my hot little hands, the current JSR-301 R.I.  based 
off the latest public draft.  :)  We're in the middle of completing the 
paperwork for the code contribution and I'm going to be building the pom 
files this weekend, but as soon as all that's done, we'll be ready to 
send it up.  Yay...


Maybe it'll solve some of those issues Martin's been having.  ;-)

Scott


Modal Panel breaks Ajax4JSF form submission

2007-08-02 Thread organavid


Hello,

I'm trying to create a form which I submit via AJAX. The design is to have
it in a Modal Panel (RichFaces). The form works fine without the modal
panel, but as soon as I put it in it breaks.

The problem is that the form variables get left out of the POST request,
though the control variables are still in the POST. (eg
AJAXREQUEST=form_login%3AregistrationFormform_login_SUBMIT=1jsf_tree_64=...)

Anyone have experience getting AJAX form submission to work in a modal
panel?

Thanks,
David
-- 
View this message in context: 
http://www.nabble.com/Modal-Panel-breaks-Ajax4JSF-form-submission-tf4210338.html#a11976672
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Tree2 Lazy Loading Confusion

2007-08-02 Thread kewldude

anyone?



kewldude wrote:
 
 Okay, after eating dinner, I figured out that a work around can be done to
 get the currently selected node by binding the tree2 component to a
 backing bean that has a HtmlTree object. And from there this.selectedNode
 = yourTreeObject.getNode().getDescription. The wiki should be updated to
 reflect that.
 
 Anyway, moving forward, I'm still trying to decipher why the action
 attribute was mapped to this selectedNode() method (
 action=#{treeBacker.selectedNode} ). I mean how did it all work out? When
 the selectedNode() executes, yes it assigns the descripton of the current
 selected node to the selectedNode  variable, then what? What's the
 relation of that selectedNode() method to the public List getChildren()
 method of the LazyTreeNode.java which I assumed is the one responsible for
 fetching the children of the clicked node. 
 
 I hope someone can give a refresher or something. Thanks.
 
 
 kewldude wrote:
 
 I'm trying to use the Alternative Tree2 Lazy Loading Method...by
 jtmille30 approach in lazy loading my tree. 
 
 I'm just wondering why the action attribute in the jsp is pointing to
 (action=#{treeBacker.selectedNode} ) which is in the back end its
 
 public void selectedNode() {
 this.selectedNode =
 this.getTreeModel().getNode().getDescription();
 }
 
 This.getTreeModel().getNode() is non existent. I'm using myfaces 1.1.5
 core and impl and tomahawk 1.1.6. What is only available to me is
 this.getTreeModel().getNodeByID(String nodeID)...
 I don't know what to put in the nodeID. 
 Anyone care to clear the confusion here? 
 At the same time what does that method (selectedNode) really do? 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tree2-Lazy-Loading-Confusion-tf4206825.html#a11976529
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: JSR-301 Update

2007-08-02 Thread Matthias Wessendorf
Portlet Bridge Specification for JavaServerTM Faces

On 8/3/07, Chris Pratt [EMAIL PROTECTED] wrote:
 I hate to seem dense, but does JSR-301 have a text name that might let
 the uninitiated among us know what it's all about? =8^)
   (*Chris*)

 On 8/2/07, Scott O'Bryan [EMAIL PROTECTED] wrote:
  I finally have, in my hot little hands, the current JSR-301 R.I.  based
  off the latest public draft.  :)  We're in the middle of completing the
  paperwork for the code contribution and I'm going to be building the pom
  files this weekend, but as soon as all that's done, we'll be ready to
  send it up.  Yay...
 
  Maybe it'll solve some of those issues Martin's been having.  ;-)
 
  Scott
 



-- 
Matthias Wessendorf

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


Re: [Trinidad] faces-config.xml error: Document is invalid: no grammar found.

2007-08-02 Thread Matthias Wessendorf
I am mostly using the lightweight Jetty container,
and never had an issue.

I haven't tested the FacesGoodies in Tomcat, though

-M

On 8/3/07, Jan Linders [EMAIL PROTECTED] wrote:
 Adam,

 found the problem.

 The FacesGoodies sample uses Shale Tiger for annotations.
 Shale Tiger scans all faces-config.xml from all jar's
 and finds this file also the trinidad-impl-1.2.1.jar.
 It then validates it and generates the error.
 Why it fails is still not clear, but this is at least the place where it
 goes wrong.

 Everything starts ok, but the error messages is confusing.

 http://shale.apache.org/shale-tiger/index.html
 ===

 To use any of the Shale Tiger Extensions in your application, you MUST run
 your web container on a Java SE 5 or later container, and MUST include the
 shale-tiger.jar resource in your web application.

 To optimize performance at application startup, the Shale Tiger Extensions
 will ONLY examine classes (to see if they include the appropriate
 annotations) in the following lcoations:

 * Any class under /WEB-INF/classes.
 * Any class in a JAR file under /WEB-INF/lib that includes a
 META-INF/faces-config.xml resource, indicating that this JAR file is
 relevant to JavaServer Faces.

 


 -Original Message-
 From: Adam Winer [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 03, 2007 12:39 AM
 To: MyFaces Discussion
 Subject: Re: [Trinidad] faces-config.xml error: Document is invalid: no
 grammar found.


 Indeed, but I don't see this issue when running with the JSF RI
 in Glassfish.  So my hunch is that we have a MyFaces 1.2 issue,
 or perhaps a difference in XML parsers between Tomcat and
 Glassfish?

 The Trinidad faces-config.xml is correct AFAIK.

 -- Adam


 On 8/2/07, Jan Linders [EMAIL PROTECTED] wrote:
  Hi Adam,
 
  you are right. The schemalocation is correct.
  however it seems that (when run in Tomcat6) a validation against a schema
 is
  started.
  I can see tomcat connecting to java.sun.com.
 
  more details :
 
  Parse Error at line 2 column 238: Document root element faces-config,
 must
  match DOCTYPE root null.
  org.xml.sax.SAXParseException: Document root element faces-config, must
  match DOCTYPE root null.
  at
 
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
  ception(ErrorHandlerWrapper.java:195)
  at
 
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
  erWrapper.java:131)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
  rReporter.java:384)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
  rReporter.java:318)
  at
 
 com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpeci
  fied(XMLDTDValidator.java:1621)
  at
 
 com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
  nt(XMLDTDValidator.java:1900)
  at
 
 com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XML
  DTDValidator.java:764)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
  tartElement(XMLDocumentFragmentScannerImpl.java:1357)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver
  .scanRootElementHook(XMLDocumentScannerImpl.java:1289)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
  entContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.
  next(XMLDocumentScannerImpl.java:912)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocum
  entScannerImpl.java:645)
  at
 
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
  ocument(XMLDocumentFragmentScannerImpl.java:508)
  at
 
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
  figuration.java:807)
  at
 
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
  figuration.java:737)
  at
 
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:10
  7)
  at
 
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
  AXParser.java:1205)
  at
 
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SA
  XParserImpl.java:522)
  at org.apache.commons.digester.Digester.parse(Digester.java:1745)
  at
 
 org.apache.shale.tiger.config.FacesConfigParser.parse(FacesConfigParser.java
  :157)
  at
 
 org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(Lifecycle
  Listener2.java:1282)
  at
 
 org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(Life
  cycleListener2.java:290)
  at
 
 org.apache.shale.view.faces.LifecycleListener.contextInitialized(LifecycleLi
  stener.java:138)

Re: JSR-301 Update

2007-08-02 Thread Martin Marinschek
Oh come on, you can't disallow us this little
techie-doesn't-want-to-tell-what-his-favourite-abbreviations-mean-talk
;)

regards,

Martin

On 8/3/07, Chris Pratt [EMAIL PROTECTED] wrote:
 I hate to seem dense, but does JSR-301 have a text name that might let
 the uninitiated among us know what it's all about? =8^)
   (*Chris*)

 On 8/2/07, Scott O'Bryan [EMAIL PROTECTED] wrote:
  I finally have, in my hot little hands, the current JSR-301 R.I.  based
  off the latest public draft.  :)  We're in the middle of completing the
  paperwork for the code contribution and I'm going to be building the pom
  files this weekend, but as soon as all that's done, we'll be ready to
  send it up.  Yay...
 
  Maybe it'll solve some of those issues Martin's been having.  ;-)
 
  Scott
 



-- 

http://www.irian.at

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

Professional Support for Apache MyFaces