RE: Problem t:datascroller does not work in shale dialog

2006-11-28 Thread mario.buonopane
I have created the SHALE-341 on JIRA for this problem:

http://issues.apache.org/struts/browse/SHALE-341

and I have attached the sample that reproduce the problem. 

 

Please, help me

 

Mario

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: 27 novembre 2006 20.12
To: users@myfaces.apache.org
Subject: Problem t:datascroller does not work in shale dialog

 

I have a simple page with a t:dataTable and a t:datascroller. The
datascroller does work correctly if the page is not part of a Shale
Dialog. If I put this page in a Shale dialog, the datascroller does NOT
work correctly (does not change page and always shows the first page). 

 

Some one can help me?

 

Thanks in advance

 

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Tree2 Navigation with iframe

2006-11-28 Thread Anthony Hong

I have a template, which left side is a tree component and right side
is displaying zone.
I want to render what tree node selected page in right div body zone.
How can I achieve this?
I to write following code in my node action method

HttpServletResponse response = (HttpServletResponse)
super.getExternalContext().getResponse();
   response.setContentType(text/html);
   
response.getWriter().write(scriptdocument.getElementById('innerFrameId').src='newPage.jsf';/script);
   super.getFacesContext().responseComplete();

But it didn't work, javascript error shown 'innerFrameId' can not be
found.I already defined in page.
Am I right?

If I don't use iframe to display div body, each time working place
have actions, tree data have to be reloaded. Any other alternative can
I use?

I found each time tree load nodes, backend getTreeNode function will
be invoked more than once,  Can I prevent it form repeatly loading?
I think I cann't define a property in my backing bean,  otherwise my
tree node data is not refreshed. How to solve this problem

--

Anthony Hong


Re: select a row

2006-11-28 Thread JS

Hi,

I am getting the selected row value now. I am using javascript and
valueChangelIstener to get the rowData.
But it will work only if I gave the bean in session scope. Here is my code :
jsp :

function dataTableSelectOneRadio(radio) {
var id = radio.name.substring(radio.name.lastIndexOf(':')); 
var el = radio.form.elements;
for (var i = 0; i  el.length; i++) {
if (el[i].name.substring(el[i].name.lastIndexOf(':')) == id) {
el[i].checked = false;  
  }
}
radio.checked = true;
}


h:dataTable value=#{EXTBean.clientDataList} var=QuotesSelected 
style=width:100%; cellspacing=0 border=0
columnClasses=column1,column2,column3
,column4,column5,column6,column7,column8,column9,column10,column11 
headerClass=dataHeader binding=#{EXTBean.myDataTable}
h:column
f:facet name=header
h:outputText id=select value=Select/  
/f:facet
h:selectOneRadio  valueChangeListener=#{EXTBean.select} 
onchange=dataTableSelectOneRadio(this);
f:selectItem itemValue=#{QuotesSelected.quoteNo} itemLabel=/ 
/h:selectOneRadio


bean:

public void select(ValueChangeEvent event) {
qtSel = (QuotesSelected) myDataTable.getRowData();
}

public HtmlDataTable getMyDataTable() {
return myDataTable;
}

public void setMyDataTable(HtmlDataTable myDataTable) {
this.myDataTable = myDataTable;
}


If I put the bean in session scope I cannot remove the earlier session when
I do the actions. 
How can I manage a session scoped bean ? Or can I use request scope to do
this ? 

Thanks,
JS.



Cagatay Civici wrote:
 

 datatable rows :
 select column1 column2
 o row1  row1
 o row2  row2

 Generate Delete
 
 
 Hi JS, have you tried selectOneRow in sandbox?
 
 http://example.irian.at/example-sandbox-20061127/selectOneRow.jsf
 
 Cagatay
 
 On 11/27/06, JS [EMAIL PROTECTED] wrote:


 Hi Andrew,

 Thanks for the reply. I have downloaded the jar. But where can I find the
 jenia tag library documentation ?

 Thanks,
 JS.


 Andrew Robinson-5 wrote:
 
  I recommend using the controls from http://www.jenia.org/;. They have
  a radio and a checkbox that are made to work with data tables (and
  work nicely with the tomahawk data table).
 
  -Andrew
 
  On 11/26/06, JS [EMAIL PROTECTED] wrote:
 
  Thanks Gerald. Let me just clear, so in short you are saying, I can
 use
  radio
  inside command link for just selection purpose even though its a
 circular
  way.
 
  Thanks,
  JS.
 
  Gerald Müllan wrote:
  
   Hi,
  
   from usability point of view i would suggest to delete an item
   directly via clicking on a commandLink as the o; the requirement
 of
   selecting only one entry can be also met with this approach.
  
   You are achieving the same result as with the radio structure, the
   radio way seems little bit circular to me.
  
   The only way which comes to my mind to simulate the
 commandLink-radio
   is doing a submit on every onchange event. But updateActionListener
   will not work in this case, it`s only for components with an action
   attribute (ActionSource comps).
  
   cheers,
  
   Gerald
  
   On 11/26/06, JS [EMAIL PROTECTED] wrote:
  
   Thanks Gerald.
   What I want exactly is,
  
   datatable rows :
   select column1 column2
   o row1  row1
   o row2  row2
  
   Generate Delete
  
   Above shown 'o' represents radio(or checkbox or commandlink)
 Generate
  and
   Delete are command buttons. So when I select a row and press a
 command
   button I only need to get the value of the unique id. So when I
 user
   press
   the link or radio or check box , he can select only one row , not
   multiple
   rows. When he press another row the earlier slected one needs to be
   deselected. I think as you said command link works for that. But
 can
 I
   use
   radio inside command link ?
  
   Thanks,
   JS.
  
  
  
   Gerald Müllan wrote:
   
Hi,
   
well, in this case it would be best to use
 t:updateActionListener.
  You
can specify a value and push it to somewhere in the model. There
 is
  no
special need of a radio button or checkbox, you only have to give
 it
  a
commandLink and embed the updateActionListener in it.
   
Have a look:
   
h:commandLink value=delete entry
 action=#{bean.goDeleteItem}
 t:updateActionListener property=#{entry.id}
value=#{bean.entryId}/
/h:commandLink
   
Hope this helps,
   
cheers,
   
Gerald
   
On 11/26/06, JS [EMAIL PROTECTED] wrote:
   
   
 Thank you. Sorry for my vague question. I know we can select a
 row
   using
checkbox. But I don't want multiple row selection. I want to
 select
   only
one
row since I want to get a unique id from that. So can I use
   selectBoolean
checkbox for that ? Thanks for the time for me.
   
JS.
   
   
Cagatay Civici wrote:

 Builds are here;
 http://people.apache.org/builds/myfaces/nightly/

 There are 

[Tobago] Howto display a popup with a button

2006-11-28 Thread H. Swaczinna
Hi,

I would like to display a popup panel on a button click. I tried this:

tc:button label=Popup
  f:facet name=popup
tc:popup
  tc:button label=Ok/
/tc:popup
  /f:facet
/tc:button

But it didn't work. There are only examples with a popup on a toolbar
and I can't find any hint howto use a popup with a button. Isn't it
possible at all?

Regards
Helmut


Re: select a row

2006-11-28 Thread Gerald Müllan

Hi,

use t:saveState in this case. With this component, scope of the bean
will be longer than request but shorter than session.

Usage:

t:saveState value=#{yourBean}/

cheers,

Gerald

On 11/28/06, JS [EMAIL PROTECTED] wrote:


Hi,

I am getting the selected row value now. I am using javascript and
valueChangelIstener to get the rowData.
But it will work only if I gave the bean in session scope. Here is my code :
jsp :

function dataTableSelectOneRadio(radio) {
var id = radio.name.substring(radio.name.lastIndexOf(':'));
var el = radio.form.elements;
for (var i = 0; i  el.length; i++) {
if (el[i].name.substring(el[i].name.lastIndexOf(':')) == id) {
el[i].checked = false;
  }
}
radio.checked = true;
}


h:dataTable value=#{EXTBean.clientDataList} var=QuotesSelected
style=width:100%; cellspacing=0 border=0
columnClasses=column1,column2,column3
,column4,column5,column6,column7,column8,column9,column10,column11
headerClass=dataHeader binding=#{EXTBean.myDataTable}
h:column
f:facet name=header
h:outputText id=select value=Select/
/f:facet
h:selectOneRadio  valueChangeListener=#{EXTBean.select}
onchange=dataTableSelectOneRadio(this);
f:selectItem itemValue=#{QuotesSelected.quoteNo} itemLabel=/
/h:selectOneRadio


bean:

public void select(ValueChangeEvent event) {
qtSel = (QuotesSelected) myDataTable.getRowData();
}

public HtmlDataTable getMyDataTable() {
return myDataTable;
}

public void setMyDataTable(HtmlDataTable myDataTable) {
this.myDataTable = myDataTable;
}


If I put the bean in session scope I cannot remove the earlier session when
I do the actions.
How can I manage a session scoped bean ? Or can I use request scope to do
this ?

Thanks,
JS.



Cagatay Civici wrote:


 datatable rows :
 select column1 column2
 o row1  row1
 o row2  row2

 Generate Delete


 Hi JS, have you tried selectOneRow in sandbox?

 http://example.irian.at/example-sandbox-20061127/selectOneRow.jsf

 Cagatay

 On 11/27/06, JS [EMAIL PROTECTED] wrote:


 Hi Andrew,

 Thanks for the reply. I have downloaded the jar. But where can I find the
 jenia tag library documentation ?

 Thanks,
 JS.


 Andrew Robinson-5 wrote:
 
  I recommend using the controls from http://www.jenia.org/;. They have
  a radio and a checkbox that are made to work with data tables (and
  work nicely with the tomahawk data table).
 
  -Andrew
 
  On 11/26/06, JS [EMAIL PROTECTED] wrote:
 
  Thanks Gerald. Let me just clear, so in short you are saying, I can
 use
  radio
  inside command link for just selection purpose even though its a
 circular
  way.
 
  Thanks,
  JS.
 
  Gerald Müllan wrote:
  
   Hi,
  
   from usability point of view i would suggest to delete an item
   directly via clicking on a commandLink as the o; the requirement
 of
   selecting only one entry can be also met with this approach.
  
   You are achieving the same result as with the radio structure, the
   radio way seems little bit circular to me.
  
   The only way which comes to my mind to simulate the
 commandLink-radio
   is doing a submit on every onchange event. But updateActionListener
   will not work in this case, it`s only for components with an action
   attribute (ActionSource comps).
  
   cheers,
  
   Gerald
  
   On 11/26/06, JS [EMAIL PROTECTED] wrote:
  
   Thanks Gerald.
   What I want exactly is,
  
   datatable rows :
   select column1 column2
   o row1  row1
   o row2  row2
  
   Generate Delete
  
   Above shown 'o' represents radio(or checkbox or commandlink)
 Generate
  and
   Delete are command buttons. So when I select a row and press a
 command
   button I only need to get the value of the unique id. So when I
 user
   press
   the link or radio or check box , he can select only one row , not
   multiple
   rows. When he press another row the earlier slected one needs to be
   deselected. I think as you said command link works for that. But
 can
 I
   use
   radio inside command link ?
  
   Thanks,
   JS.
  
  
  
   Gerald Müllan wrote:
   
Hi,
   
well, in this case it would be best to use
 t:updateActionListener.
  You
can specify a value and push it to somewhere in the model. There
 is
  no
special need of a radio button or checkbox, you only have to give
 it
  a
commandLink and embed the updateActionListener in it.
   
Have a look:
   
h:commandLink value=delete entry
 action=#{bean.goDeleteItem}
 t:updateActionListener property=#{entry.id}
value=#{bean.entryId}/
/h:commandLink
   
Hope this helps,
   
cheers,
   
Gerald
   
On 11/26/06, JS [EMAIL PROTECTED] wrote:
   
   
 Thank you. Sorry for my vague question. I know we can select a
 row
   using
checkbox. But I don't want multiple row selection. I want to
 select
   only
one
row since I want to get a unique id from that. So can I use
   selectBoolean
checkbox for that ? Thanks for the time for me.
   
JS.
   
   

[REMINDER] This list is subscribers only!

2006-11-28 Thread Manfred Geiler

This mail is sent from time to time and is meant to remind you, that
the users@myfaces.apache.org and dev@myfaces.apache.org mailing lists
- like most of the ASF lists - are subscribers only. This means that
you are only allowed to post to this list if you have subscribed
before.
Please make sure, that you post your messages from the same address
that you used to subscribe to the list. Otherwise there is no
guarantee that your mails will get through in a timely manner.

Thanks,
Manfred
(List Moderator)


Re: select a row

2006-11-28 Thread JS

A big thank you to you Gerald. It worked for me. But, when I set the session
separately in each bean object(but not all obejct) , I cannot remove it from
the session. Why is that ? 
I used, session.removeAttribute(atrib);



Gerald Müllan wrote:
 
 Hi,
 
 use t:saveState in this case. With this component, scope of the bean
 will be longer than request but shorter than session.
 
 Usage:
 
 t:saveState value=#{yourBean}/
 
 cheers,
 
 Gerald
 
 On 11/28/06, JS [EMAIL PROTECTED] wrote:

 Hi,

 I am getting the selected row value now. I am using javascript and
 valueChangelIstener to get the rowData.
 But it will work only if I gave the bean in session scope. Here is my
 code :
 jsp :

 function dataTableSelectOneRadio(radio) {
 var id = radio.name.substring(radio.name.lastIndexOf(':'));
 var el = radio.form.elements;
 for (var i = 0; i  el.length; i++) {
 if (el[i].name.substring(el[i].name.lastIndexOf(':')) == id) {
 el[i].checked = false;
   }
 }
 radio.checked = true;
 }


 h:dataTable value=#{EXTBean.clientDataList} var=QuotesSelected
 style=width:100%; cellspacing=0 border=0
 columnClasses=column1,column2,column3
 ,column4,column5,column6,column7,column8,column9,column10,column11
 headerClass=dataHeader binding=#{EXTBean.myDataTable}
 h:column
 f:facet name=header
 h:outputText id=select value=Select/
 /f:facet
 h:selectOneRadio  valueChangeListener=#{EXTBean.select}
 onchange=dataTableSelectOneRadio(this);
 f:selectItem itemValue=#{QuotesSelected.quoteNo} itemLabel=/
 /h:selectOneRadio


 bean:

 public void select(ValueChangeEvent event) {
 qtSel = (QuotesSelected) myDataTable.getRowData();
 }

 public HtmlDataTable getMyDataTable() {
 return myDataTable;
 }

 public void setMyDataTable(HtmlDataTable myDataTable) {
 this.myDataTable = myDataTable;
 }


 If I put the bean in session scope I cannot remove the earlier session
 when
 I do the actions.
 How can I manage a session scoped bean ? Or can I use request scope to do
 this ?

 Thanks,
 JS.



 Cagatay Civici wrote:
 
 
  datatable rows :
  select column1 column2
  o row1  row1
  o row2  row2
 
  Generate Delete
 
 
  Hi JS, have you tried selectOneRow in sandbox?
 
  http://example.irian.at/example-sandbox-20061127/selectOneRow.jsf
 
  Cagatay
 
  On 11/27/06, JS [EMAIL PROTECTED] wrote:
 
 
  Hi Andrew,
 
  Thanks for the reply. I have downloaded the jar. But where can I find
 the
  jenia tag library documentation ?
 
  Thanks,
  JS.
 
 
  Andrew Robinson-5 wrote:
  
   I recommend using the controls from http://www.jenia.org/;. They
 have
   a radio and a checkbox that are made to work with data tables (and
   work nicely with the tomahawk data table).
  
   -Andrew
  
   On 11/26/06, JS [EMAIL PROTECTED] wrote:
  
   Thanks Gerald. Let me just clear, so in short you are saying, I can
  use
   radio
   inside command link for just selection purpose even though its a
  circular
   way.
  
   Thanks,
   JS.
  
   Gerald Müllan wrote:
   
Hi,
   
from usability point of view i would suggest to delete an item
directly via clicking on a commandLink as the o; the
 requirement
  of
selecting only one entry can be also met with this approach.
   
You are achieving the same result as with the radio structure,
 the
radio way seems little bit circular to me.
   
The only way which comes to my mind to simulate the
  commandLink-radio
is doing a submit on every onchange event. But
 updateActionListener
will not work in this case, it`s only for components with an
 action
attribute (ActionSource comps).
   
cheers,
   
Gerald
   
On 11/26/06, JS [EMAIL PROTECTED] wrote:
   
Thanks Gerald.
What I want exactly is,
   
datatable rows :
select column1 column2
o row1  row1
o row2  row2
   
Generate Delete
   
Above shown 'o' represents radio(or checkbox or commandlink)
  Generate
   and
Delete are command buttons. So when I select a row and press a
  command
button I only need to get the value of the unique id. So when I
  user
press
the link or radio or check box , he can select only one row ,
 not
multiple
rows. When he press another row the earlier slected one needs to
 be
deselected. I think as you said command link works for that. But
  can
  I
use
radio inside command link ?
   
Thanks,
JS.
   
   
   
Gerald Müllan wrote:

 Hi,

 well, in this case it would be best to use
  t:updateActionListener.
   You
 can specify a value and push it to somewhere in the model.
 There
  is
   no
 special need of a radio button or checkbox, you only have to
 give
  it
   a
 commandLink and embed the updateActionListener in it.

 Have a look:

 h:commandLink value=delete entry
  action=#{bean.goDeleteItem}
  t:updateActionListener property=#{entry.id}
 value=#{bean.entryId}/
 

Re: [Tobago] Howto display a popup with a button

2006-11-28 Thread Volker Weber

Hello Helmut,

Here the simple (non ajax) version:

jsp--
tc:button label=Popup action=#{bean.openPopup}
 f:facet name=popup
   tc:popup rendered=#{bean.popup}
 tc:button label=Ok action=#{bean.closePopup}/
   /tc:popup
 /f:facet
/tc:button
/jsp--

java--
 private boolean popup = false;

 public boolean isPopup() {
return popup;
 }

 public String openPopup() {
   popup = true;
   return null;
 }

 public String closePopup() {
   popup = false;
   return null;
 }
/java--

Regards,
   Volker


2006/11/28, H. Swaczinna [EMAIL PROTECTED]:

Hi,

I would like to display a popup panel on a button click. I tried this:

tc:button label=Popup
  f:facet name=popup
tc:popup
  tc:button label=Ok/
/tc:popup
  /f:facet
/tc:button

But it didn't work. There are only examples with a popup on a toolbar
and I can't find any hint howto use a popup with a button. Isn't it
possible at all?

Regards
Helmut



AW: Re: [Tobago] Howto display a popup with a button

2006-11-28 Thread H. Swaczinna
Hello Volker,

I didn't realize, that I have to care myself about switching the
popup on and off. Now, it works.

But one more question: Is it possible, to set the position of the
popup relative to the button? I know, I can set the position of the 
popup programmaticly, but how do I get the position of the button?

Regards
Helmut

P.S. You made me curious about the non simple ajax version.


Hello Helmut,

Here the simple (non ajax) version:

jsp--
tc:button label=Popup action=#{bean.openPopup}
  f:facet name=popup
tc:popup rendered=#{bean.popup}
  tc:button label=Ok action=#{bean.closePopup}/
/tc:popup
  /f:facet
/tc:button
/jsp--

java--
  private boolean popup = false;

  public boolean isPopup() {
 return popup;
  }

  public String openPopup() {
popup = true;
return null;
  }

  public String closePopup() {
popup = false;
return null;
  }
/java--

Regards,
Volker


2006/11/28, H. Swaczinna [EMAIL PROTECTED]:
 Hi,

 I would like to display a popup panel on a button click. I tried this:

 tc:button label=Popup
   f:facet name=popup
 tc:popup
   tc:button label=Ok/
 /tc:popup
   /f:facet
 /tc:button

 But it didn't work. There are only examples with a popup on a toolbar
 and I can't find any hint howto use a popup with a button. Isn't it
 possible at all?

 Regards
 Helmut



RE: [REMINDER] This list is subscribers only!

2006-11-28 Thread mario.buonopane
I'm very sorryi'll check! What about of my issues? Are removed?

Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Manfred Geiler
Sent: 28 novembre 2006 13.48
To: MyFaces Discussion; MyFaces Development
Subject: [REMINDER] This list is subscribers only!

This mail is sent from time to time and is meant to remind you, that
the users@myfaces.apache.org and dev@myfaces.apache.org mailing lists
- like most of the ASF lists - are subscribers only. This means that
you are only allowed to post to this list if you have subscribed
before.
Please make sure, that you post your messages from the same address
that you used to subscribe to the list. Otherwise there is no
guarantee that your mails will get through in a timely manner.

Thanks,
Manfred
(List Moderator)


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re: [REMINDER] This list is subscribers only!

2006-11-28 Thread Martin Marinschek

Hi Mario,

this is not a personal reminder, much more a general reminder sent out
once a month. No mail and no issue has been deleted/removed/changed.

regards,

Martin

On 11/28/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

I'm very sorryi'll check! What about of my issues? Are removed?

Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Manfred Geiler
Sent: 28 novembre 2006 13.48
To: MyFaces Discussion; MyFaces Development
Subject: [REMINDER] This list is subscribers only!

This mail is sent from time to time and is meant to remind you, that
the users@myfaces.apache.org and dev@myfaces.apache.org mailing lists
- like most of the ASF lists - are subscribers only. This means that
you are only allowed to post to this list if you have subscribed
before.
Please make sure, that you post your messages from the same address
that you used to subscribe to the list. Otherwise there is no
guarantee that your mails will get through in a timely manner.

Thanks,
Manfred
(List Moderator)


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.




--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: Tree2 Navigation with iframe

2006-11-28 Thread Andrew Robinson

My suggestions:

1) create outputLinks instead of commandLinks with a target
specified in the tree instead of using actions

-or-

2) use an AJAX framework like Ajax4Jsf and make the right side
refreshed when the tree is clicked and don't use IFRAMEs

-Andrew

On 11/28/06, Anthony Hong [EMAIL PROTECTED] wrote:

I have a template, which left side is a tree component and right side
is displaying zone.
I want to render what tree node selected page in right div body zone.
How can I achieve this?
I to write following code in my node action method

HttpServletResponse response = (HttpServletResponse)
super.getExternalContext().getResponse();
response.setContentType(text/html);

response.getWriter().write(scriptdocument.getElementById('innerFrameId').src='newPage.jsf';/script);
super.getFacesContext().responseComplete();

But it didn't work, javascript error shown 'innerFrameId' can not be
found.I already defined in page.
Am I right?

If I don't use iframe to display div body, each time working place
have actions, tree data have to be reloaded. Any other alternative can
I use?

I found each time tree load nodes, backend getTreeNode function will
be invoked more than once,  Can I prevent it form repeatly loading?
I think I cann't define a property in my backing bean,  otherwise my
tree node data is not refreshed. How to solve this problem

--

Anthony Hong



any one using Facelets + JSF 1.2 RI + Tomahawk here?

2006-11-28 Thread Arash Rajaeeyan

Hello
I am using Facelts + Tomahawk + JSF 1.2 RI
the number of components which are not working correctly or don't work at
all has surprised me.
to name a few inputHTML and commandNavigation2 which are very obvious
components, don't work at all !
has any one had any similar problem?
is there any special trick like the one for fileupload to get them to work
on facelets?

I am using Netbeans with facelt module with both Tomahawk 1.1.3 and latest
daily SVN snap shots
I have these lines at begining of my faces-config:
   application
   view-handler
   com.sun.facelets.FaceletViewHandler
   /view-handler
   /application

and attached my web.xml

best regards
Arash Rajaeeyan
?xml version=1.0 encoding=UTF-8?
web-app version=2.5 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-app_2_5.xsd;
!--*--
!-- JSF Configurations --
context-param
param-namecom.sun.faces.verifyObjects/param-name
param-valuetrue/param-value
/context-param
context-param
param-namecom.sun.faces.validateXml/param-name
param-valuetrue/param-value
/context-param
!--*--
!-- Facelet Configurations --
context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.xhtml/param-value
/context-param
context-param
param-namefacelets.DEVELOPMENT/param-name
param-valuetrue/param-value
/context-param
context-param
param-namefacelets.LIBRARIES/param-name
param-value/WEB-INF/tomahawk.taglib.xml/param-value
/context-param
!--*--
!-- tomahawk configurations --
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuefalse/param-value
/context-param
context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
/context-param
context-param
param-nameorg.apache.myfaces.AUTO_SCROLL/param-name
param-valuetrue/param-value
/context-param
!--*--


filter
filter-nameMyFacesExtensionsFilter/filter-name
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
init-param
param-nameuploadRepositoryPath/param-name
param-value/temp/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.jsf/url-pattern
/servlet-mapping
session-config
session-timeout30/session-timeout
/session-config
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list

/web-app


Tomahawk datatable issues

2006-11-28 Thread Renzo Tomaselli




Hi, I'm using myfaces.1.1.5
snapshot+tomahawk.1.1.5.snapshot+facelets 1.1.11.
Component DataTable has a number of open issues affecting usability:

1. DataTable rows are not rendered with their
rowIds. E.g.

rowIndexVar="rowIndex"
rowId="#{rowIndex}"  // or any other binding

does not yields any id on rendered html. This is a side-effect of
having facelets onboard, as described in http://mail-archives.apache.org/mod_mbox/myfaces-dev/200603.mbox/[EMAIL PROTECTED]).
Suggested workaround runs fine, though.

2. I would expect that
't:dataTable id="result" forceId="true" ...' should render as
'table id="result"' and not as
'table id="_id96:result"',

otherwise I miss the meaning of forceId.

3. Attribute columnClasses seems not working, since the very first
class is rendered for *all* columns. Since this works fine in Myfaces
examples, I guess there is some Facelets side-effect somewhere.

4. The component InputHidden does not accept attributes
forceId/forceIdIndex, unlike what's documented (this implies no way to
generate simple id for hidden fields inside a table).

Comments are welcome -- Renzo







Re: Resource Bundles

2006-11-28 Thread ::SammyRulez::

an exception is thrown so standard http error 500 will work fine
(web.xml error page tag)

message bundle should be design time why do you need to display
friendly messages to coders... detailed facelets error should be
preferred

2006/11/27, Paola Attadio [EMAIL PROTECTED]:

Hi All,
I'm using MyFaces 1.1.4 and Facelets 1.1.11.

In a page I declare a resource bundle with f:loadbundle
basename=message var=bundle. It works very well. But, if the
resource bundle can't find a key, it throw an exception. Is it
possible to configure a default friendly message?

Best regards,
Paola




--
::SammyRulez::
http://www.kyub.com/blog/
-
La programmazione è per un terzo interpretazione e per due terzi ispirazione.
 E per un terzo mistificazione


RE: Tomahawk datatable issues

2006-11-28 Thread Michael Heinen
2 and 4: see

http://issues.apache.org/jira/browse/TOMAHAWK-102

http://issues.apache.org/jira/browse/TOMAHAWK-542

and maybe http://issues.apache.org/jira/browse/TOMAHAWK-637

 

Michael

 



From: Renzo Tomaselli [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. November 2006 17:17
To: MyFaces Discussion
Subject: Tomahawk datatable issues

 

Hi, I'm using myfaces.1.1.5 snapshot+tomahawk.1.1.5.snapshot+facelets
1.1.11.
Component DataTable has a number of open issues affecting usability:

1. DataTable rows are not rendered with their rowIds. E.g.

rowIndexVar=rowIndex
rowId=#{rowIndex}  // or any other binding

does not yields any id on rendered html. This is a side-effect of having
facelets onboard, as described in
http://mail-archives.apache.org/mod_mbox/myfaces-dev/200603.mbox/%3C8f98
[EMAIL PROTECTED]).
Suggested workaround runs fine, though.

2. I would expect that
't:dataTable id=result forceId=true ...' should render as
'table id=result' and not as
'table id=_id96:result',

otherwise I miss the meaning of forceId.

3. Attribute columnClasses seems not working, since the very first class
is rendered for *all* columns. Since this works fine in Myfaces
examples, I guess there is some Facelets side-effect somewhere.

4. The component InputHidden does not accept attributes
forceId/forceIdIndex, unlike what's documented (this implies no way to
generate simple id for hidden fields inside a table).

Comments are welcome -- Renzo





Stylesheet issue: defaultStyles.css returned when using Facelets

2006-11-28 Thread Romanowski, Tim
Hey guys, I thought posted this on the Facelets list thinking this was a
Facelets issue, but considering the browser output below, perhaps a
Tomahawk person could comment.  Is anyone else having a problem using
stylesheets with Facelets templates?  I have a template file,
template.xhtml that simply defines my layout using ui:insert
name=xyz/, and at the top of the file I have the snippet listed
below.  My initial page looks great, but when I navigate to another page
in which only the body changes, the header and footer do not continue to
use the stylesheet.  

 

Could someone please explain to me what I might be doing wrong?  This
problem only occurs with Firefox, both versions 1.5 and 2.0; in IE 6.x
the stylesheet is used on all pages as expected.  I only seem to have
this problem when I use Facelets, but the default MyFaces stylesheet
being returned in Firefox seems odd.  As you can see, defaultStyles.css
is replacing my project's stylesheet.  I am running this on Glassfish v2
build 23 (problem happens with Tomcat and other versions of Glassfish as
well).  

 

 

 

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;

  xmlns:ui=http://java.sun.com/jsf/facelets;

  xmlns:f=http://java.sun.com/jsf/core;

  xmlns:h=http://java.sun.com/jsf/html;

  xmlns:c=http://java.sun.com/jstl/core;

  xmlns:t=http://myfaces.apache.org/tomahawk;

 

f:view locale=#{facesContext.externalContext.request.locale}

head

meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1 /

title#{msg.project_name}: #{msg.project_long_name}/title

link
href=#{facesContext.externalContext.request.contextPath}/resources/styl
es.css rel=stylesheet type=text/css /

f:loadBundle basename=com.lmco.gems.resources.global
var=msg /



/head

 

 

This is what my browser gets using Firefox:

 

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; 
html xmlns=http://www.w3.org/1999/xhtml;
head
link rel=stylesheet
href=/MyProject/faces/myFacesExtensionResource/org.apache.myfaces.rende
rkit.html.util.MyFacesResourceLoader/11646488/tabbedpane.HtmlTabbedPaneR
enderer/defaultStyles.css type=text/css /
script type=text/javascript
src=/MyProject/faces/myFacesExtensionResource/org.apache.myfaces.render
kit.html.util.MyFacesResourceLoader/11646488/tabbedpane.HtmlTabbedPaneRe
nderer/dynamicTabs.js!--
 
//--/script
style rel=stylesheet type=text/css!--
#j_id76_j_id79 .myFaces_panelTabbedPane_activeHeaderCell input,
#j_id76_j_id79 .myFaces_panelTabbedPane_pane,
#j_id76_j_id79 .myFaces_panelTabbedPane_subHeaderCell{
background-color:#CC;
}
 
--/style

 

 

This is what my browser gets using IE 6.x:

 

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; 

html xmlns=http://www.w3.org/1999/xhtml;

head

link rel=stylesheet
href=/MyProject/faces/myFacesExtensionResource/org.apache.myfaces.rende
rkit.html.util.MyFacesResourceLoader/11646488/tabbedpane.HtmlTabbedPaneR
enderer/defaultStyles.css type=text/css /

script type=text/javascript
src=/MyProject/faces/myFacesExtensionResource/org.apache.myfaces.render
kit.html.util.MyFacesResourceLoader/11646488/tabbedpane.HtmlTabbedPaneRe
nderer/dynamicTabs.js!--

 

//--/script

style rel=stylesheet type=text/css!--

#j_id76_j_id79 .myFaces_panelTabbedPane_activeHeaderCell input,

#j_id76_j_id79 .myFaces_panelTabbedPane_pane,

#j_id76_j_id79 .myFaces_panelTabbedPane_subHeaderCell{

background-color:#CC;

}

 

--/style

 

 

 

TR

 



Re: Tomahawk datatable issues

2006-11-28 Thread Renzo Tomaselli




Yes, both appear as a common issue related to Facelets,
like for n. 1.
Using Facelets on top of Tomahawk is raising quite a number of unsolved
troubles.

Renzo

Michael Heinen wrote:

  
  


  
  
  
  2 and 4: see
  http://issues.apache.org/jira/browse/TOMAHAWK-102
  http://issues.apache.org/jira/browse/TOMAHAWK-542
  and maybe http://issues.apache.org/jira/browse/TOMAHAWK-637
  
  Michael
  
  
  
  
  From:
Renzo Tomaselli [mailto:[EMAIL PROTECTED]] 
  Sent: Dienstag, 28.
November 2006
17:17
  To: MyFaces Discussion
  Subject: Tomahawk
datatable issues
  
  
  Hi,
I'm using
myfaces.1.1.5 snapshot+tomahawk.1.1.5.snapshot+facelets 1.1.11.
Component DataTable has a number of open issues affecting usability:
  
1. DataTable rows are not rendered with their rowIds. E.g.
  
rowIndexVar="rowIndex"
rowId="#{rowIndex}"  // or any other binding
  
does not yields any id on rendered html. This is a side-effect of
having
facelets onboard, as described in http://mail-archives.apache.org/mod_mbox/myfaces-dev/200603.mbox/[EMAIL PROTECTED]).
Suggested workaround runs fine, though.
  
2. I would expect that
't:dataTable id="result" forceId="true" ...' should
render as
'table id="result"' and not as
'table id="_id96:result"',
  
otherwise I miss the meaning of forceId.
  
3. Attribute columnClasses seems not working, since the very first
class is
rendered for *all* columns. Since this works fine in Myfaces examples,
I guess
there is some Facelets side-effect somewhere.
  
4. The component InputHidden does not accept attributes
forceId/forceIdIndex,
unlike what's documented (this implies no way to generate simple id for
hidden
fields inside a table).
  
Comments are welcome -- Renzo
  
  
  





Action method not getting called inside the dataTable

2006-11-28 Thread Amit Nair

Hi Friends

I am having trouble in calling the action method from command link inside
datatable.

The code of the DataTable is 

h:dataTable id=siteDetailTable1
value=#{siteRequirementBean.detailHeadQuarterList} var=details
cellpadding=1 cellspacing=1 width=100%
h:column
h:panelGrid columns=1 width=100% columnClasses=none,tableRowOdd
rowClasses=tableRowEven,tableRowOdd
h:panelGroup
h:outputText value=Name:  /
h:outputText value=#{details.name} style=width: 55% /
/h:panelGroup
h:panelGroup
h:outputText value=Location:  /
h:outputText value=#{details.location} style=width: 55% /
/h:panelGroup
h:panelGroup
h:outputText value=Description:  /
h:outputText value=#{details.description} style=width: 55% /
/h:panelGroup
/h:panelGrid
/h:column
h:column
h:commandLink action=#{requirementDisplay.viewDetailedRequirement}
h:outputText value=VDR /
/h:commandLink
/h:column
/h:dataTable

The managed beans siteRequirementBean  requirementDisplay both are in
request scope.

The datatable has two columns. In the first column there 3 labels which
displays some information. In the second column there is a command link.
This command link is binded with an action method of managed bean. The page
gets displayed with all the components including the commandlink , but on
clicking the command link the action method is not getting called. The page
gets refreshed  comes back again.

Infact I tried putting in arbitrary string in the action method’s name
attribute of command link. There was no error  the page came back again on
clicking the link. 
If the same command link is kept outside data table then the action method
gets called.

Command Button also shows the same behavior as command link.

Please give your valuable inputs…..

Thanks in Advance
Amit :)
-- 
View this message in context: 
http://www.nabble.com/Action-method-not-getting-called-inside-the-dataTable-tf2719758.html#a7583549
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Action method not getting called inside the dataTable

2006-11-28 Thread Adrian Mitev

The bean that holds the data mode should be in session scope.

2006/11/28, Amit Nair [EMAIL PROTECTED]:



Hi Friends

I am having trouble in calling the action method from command link inside
datatable.

The code of the DataTable is

h:dataTable id=siteDetailTable1
value=#{siteRequirementBean.detailHeadQuarterList} var=details
cellpadding=1 cellspacing=1 width=100%
h:column
h:panelGrid columns=1 width=100% columnClasses=none,tableRowOdd
rowClasses=tableRowEven,tableRowOdd
h:panelGroup
h:outputText value=Name:  /
h:outputText value=#{details.name} style=width: 55% /
/h:panelGroup
h:panelGroup
h:outputText value=Location:  /
h:outputText value=#{details.location} style=width: 55% /
/h:panelGroup
h:panelGroup
h:outputText value=Description:  /
h:outputText value=#{details.description} style=width: 55% /
/h:panelGroup
/h:panelGrid
/h:column
h:column
h:commandLink action=#{requirementDisplay.viewDetailedRequirement}
h:outputText value=VDR /
/h:commandLink
/h:column
/h:dataTable

The managed beans siteRequirementBean  requirementDisplay both are in
request scope.

The datatable has two columns. In the first column there 3 labels which
displays some information. In the second column there is a command link.
This command link is binded with an action method of managed bean. The
page
gets displayed with all the components including the commandlink , but on
clicking the command link the action method is not getting called. The
page
gets refreshed  comes back again.

Infact I tried putting in arbitrary string in the action method's name
attribute of command link. There was no error  the page came back again
on
clicking the link.
If the same command link is kept outside data table then the action method
gets called.

Command Button also shows the same behavior as command link.

Please give your valuable inputs…..

Thanks in Advance
Amit :)
--
View this message in context:
http://www.nabble.com/Action-method-not-getting-called-inside-the-dataTable-tf2719758.html#a7583549
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Resource Bundles

2006-11-28 Thread Paola Attadio

Thanks and Regards,

Paola Attadio

On 11/28/06, ::SammyRulez:: [EMAIL PROTECTED] wrote:

an exception is thrown so standard http error 500 will work fine
(web.xml error page tag)

message bundle should be design time why do you need to display
friendly messages to coders... detailed facelets error should be
preferred

2006/11/27, Paola Attadio [EMAIL PROTECTED]:
 Hi All,
 I'm using MyFaces 1.1.4 and Facelets 1.1.11.

 In a page I declare a resource bundle with f:loadbundle
 basename=message var=bundle. It works very well. But, if the
 resource bundle can't find a key, it throw an exception. Is it
 possible to configure a default friendly message?

 Best regards,
 Paola



--
::SammyRulez::
http://www.kyub.com/blog/
-
La programmazione è per un terzo interpretazione e per due terzi ispirazione.
  E per un terzo mistificazione



RE: any one using Facelets + JSF 1.2 RI + Tomahawk here?

2006-11-28 Thread Romanowski, Tim
Hi Arash,

I am developing an app using Facelets+Tomahawk+JSF 1.2+Ajax4JSF, and we
did have a big problem with JSCookMenu and panelNavigation2 (we finally
got rid of them).  Other than that, and a stylesheet issue we're having
(see my recent post on Tomahawk + Facelets templates), the Tomahawk
components with Ajax4SJF work great.  This doesn't help you with your
specific issue, but I wanted to point this out so you don't give up
unnecessarily!  We've used both Glassfish and Tomcat with no problems.

 

TR

 



From: Arash Rajaeeyan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 10:56 AM
To: users@myfaces.apache.org
Subject: any one using Facelets + JSF 1.2 RI + Tomahawk here?

 

Hello
I am using Facelts + Tomahawk + JSF 1.2 RI
the number of components which are not working correctly or don't work
at all has surprised me.
to name a few inputHTML and commandNavigation2 which are very obvious
components, don't work at all ! 
has any one had any similar problem?
is there any special trick like the one for fileupload to get them to
work on facelets?

I am using Netbeans with facelt module with both Tomahawk 1.1.3 and
latest daily SVN snap shots 
I have these lines at begining of my faces-config:
application
view-handler
com.sun.facelets.FaceletViewHandler
/view-handler
/application 

and attached my web.xml

best regards
Arash Rajaeeyan 



RE: response.Header() not working in JSF Portlet

2006-11-28 Thread Nebinger, David
Hmm, well first of all, since you're running within a portlet I'm actually 
surprised you're not getting class cast exceptions when casting the request and 
response objects to HttpServletRequest/HttpServletResponse; the portal should 
be ensuring that they are PortletRequest/PortletResponse objects, and not 
HttpServletRequest/HttpServletResponse.
 
However, if you can forward to your word servlet, you're passing in the given 
request/response objects so why take the time to try to get to the text area 
through the value binding?  It should appear as a request parameter that you 
could access directly (you'd have to enumerate your parameter names to find one 
ending with :text1 as the parm names will have the various view root info 
encoded into them plus portal namespace stuff).
 
Have you tried that?
 
As far as the whole page as output, I'd guess that a) there is already some 
data in the response buffer before you start generating your word doc and/or b) 
you're really still within the portal itself; it is calling your portlet on 
it's own behalf and aggregating the resulting data from this one call with the 
response information from the rest of the portlets embedded on the page.
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 23, 2006 8:35 AM
To: users@myfaces.apache.org
Subject: RE: response.Header() not working in JSF Portlet



Hi David,
 Thank you for your suggestions.
 I have now included the servlet and JSF portlet in the same war 
file and deployed on Websphere Portal Server.
 But currently the saving of the text area contents into word 
document is happening but it saves the entire portlet page instead of only the 
text area contents.
 Could you help me in my last minute hitch with the code.
 
1) JSF Portlet Page:
 
 h:inputTextarea id=text1 
value=#{pc_TextAreaView.textAreaValue} rows=10 cols=50 /
 h:commandButton id=save1 value=Save with Servlet 
action=#{pc_TextAreaView.SaveAsWord} /
 
2) Backing bean Save method: 
 
 public void SaveAsWord() {
  
  System.out.println(I invoke this);
  FacesContext context = FacesContext.getCurrentInstance();
  ExternalContext ctx = context.getExternalContext();
  try{
  HttpServletResponse response = 
(HttpServletResponse)ctx.getResponse();
  HttpServletRequest request = (HttpServletRequest)ctx.getRequest();
  RequestDispatcher view = 
request.getRequestDispatcher(/WordServ1);
  view.forward(request,response);
  }catch(Exception e){e.printStackTrace();}
 
 3) Servlet to handle the saving in word document
  --
   protected void doPost(HttpServletRequest request, HttpServletResponse 
response) throws ServletException, IOException {
  
   FacesContext facesContext = FacesContext.getCurrentInstance();
   ValueBinding vb = 
facesContext.getApplication().createValueBinding(#{pc_TextAreaView});
   TextAreaView mybean = (TextAreaView) vb.getValue(facesContext);
   String mytextarea = mybean.getTextAreaValue();
 
   String filen = default.doc;
   response.setContentType(application/vnd.ms-word);
   response.setHeader( 
content-disposition,attachment;name=\+filen+\;filename=\+filen+\); 
   response.setHeader(Cache-Control, no-cache);
try{
   byte[] buf=new byte[4*1024];
   InputStream inStream=new ByteArrayInputStream(mytextarea.getBytes());
   OutputStream outStream=response.getOutputStream();
   int sizeRead;
   while ( ( sizeRead=inStream.read(buf, 0, buf.length) ) != -1 )
   {
   outStream.write(buf, 0, sizeRead);
   }
   inStream.close();
   outStream.close(); 
}
   catch(IOException ex){ ex.printStackTrace();} 
} 
   }
  
Best Regards,
Pallavi 
  
 

  _  

From: Nebinger, David [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 22, 2006 8:25 PM
To: MyFaces Discussion
Subject: RE: response.Header() not working in JSF Portlet


To expand on what Stephan provided, in order to share application scope between 
your JSF application and a non-JSF servlet, they need to be deployed in the 
same war file and entered in the same web.xml.
 
Combining them in this way will provide the connectivity you'd need based upon 
Stephan's original response.

-Original Message-
From: Strittmatter, Stephan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 6:49 AM
To: MyFaces Discussion
Subject: AW: response.Header() not working in JSF Portlet


Hi Pallavi,
 
I use Liferay on Tomcat. The servlet I included within my portlet war. Not in a 
separate war.
 
Sorry for 

RE: Duplicate ids of some tomahawk components with portlets

2006-11-28 Thread Nebinger, David
If you're specifying IDs for components directly, you have to remember to 
include the portlet namespace in the generated ids.
 

-Original Message-
From: Pfau, Oliver [mailto:[EMAIL PROTECTED]
Sent: Friday, November 24, 2006 3:38 AM
To: MyFaces Discussion
Subject: Duplicate ids of some tomahawk components with portlets


Hi,
 
I have a problem with some tomahawk components in liferay portlets. When I use 
one portlet with datatable and scroller for instance on the first rendering of 
the page all is fine. If I switch to page 2 with data scroller and then click 
on the portal tab, a dupblicate id exception is thrown for all folllowing 
requests until new login. 
If I use 2 portlets and switch the data scroller to page 2 and send a request 
in portlet 1, the same exception is thrown. Is it possible to solve that ?
 
Regards,
Oliver



RE: exception handling in subclass of MyFacesGenericPortlet

2006-11-28 Thread Nebinger, David
Sure; just override the specific method(s) where you catch for an exception and 
implement alternative logic when you catch one.
 
There's also the handleExceptionFromLifecycle() method which will get called 
when an exception is thrown; other than the Throwable that needs intercepting, 
though, I don't see any particular way that you might use it to redirect and/or 
forward somewhere else though.

-Original Message-
From: Stefan Gesigora [mailto:[EMAIL PROTECTED]
Sent: Monday, November 27, 2006 10:08 AM
To: MyFaces Discussion
Subject: exception handling in subclass of MyFacesGenericPortlet


Hi folks!

Is there a way to handle exceptions in a subclass of the MyFacesGenericPortlet?
I want to show a different page with a different message if an exception is 
thrown.

regards 
Steven




RE: Disabled with value binding expression

2006-11-28 Thread Toppac

I wanted to add onto this to see if anyone could provide further insight. I
am using a custom variable resolver to access some session scoped variables.
I know the value is there because I can print it out. However, whenever I
try to reference the value in the disabled attribute of an input element,
the value is ignored. The value in the session scope is a Boolean (object).
I noticed that the attribute takes a boolean (primitive) on the getter and
setter methods. I am wondering if for some reason my Boolean is not being
translated correctly. When I just put the string true it works fine. But
using something like

disabled=#{flowScope.delete}

does not work, where deleted is a Boolean. Printing out flowScope.delete
using regular EL or an outputText tag works fine.

I am using MyFaces 1.1.4, latest Facelets, Webflow 1.0. If anyone has any
ideas I would love to hear them. Thanks.




Toppac wrote:
 
 Thanks for the replies guys. I am using spring webflow also and had the
 value scoped to a flowScope variable. I am being told that won't work so
 it looks like I'll need to translate my flowscoped variable to a request
 scoped one for the disabled attribute to pick up.
 
 
 
 Tom Innes wrote:
 
 See
 
  
 
 http://wiki.java.net/bin/view/Projects/FaceletsFAQ
 
  
 
 c:set, c:if are build time tags
 
  
 
 I use Facelets as well and the following works for me
 
  
 
 h:inputText disabled=#{mybackingBean.disabled} /
 
  
 
 and my backing bean method is defined as 
 
  
 
 public boolean getDisabled() {
 
 return this.disabled; 
 
 }
 
  
 
  
 
 Tom
 
  
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
 McClanahan
 Sent: Tuesday, October 31, 2006 2:45 PM
 To: MyFaces Discussion
 Subject: Re: Disabled with value binding expression
 
  
 
  
 
 On 10/31/06, Toppac [EMAIL PROTECTED] wrote:
 
 
 I am using Facelets with MyFaces, which allows jstl page scoped variables
 to
 work. Correct me if I am wrong.
 
 
 Sounds like a question for the Facelets list ... but I sure wonder how
 Facelets makes this happen during the Apply Request Values through Invoke
 Application phases of the request processing lifecycle, when there is no
 page scope because there is no page. 
 
  
 
 Also another thing I tried is writing a customer taglib function that
 will
 parse my backing bean value and return the string true or false,
 depending
 on whether the calling field should be disabled. This seems to work
 pretty
 well the first time through, but on subsequent visits to the same page, I 
 don't see the function being called again. It is only called the first
 time
 the page is rendered. Shouldn't the function be evaluated every time the
 page is rendered?
 
 
 Do you know for a fact that logonBean actually exists on the subsequent
 renderings?  If it does not (as someone else in this thread pointed out),
 your expression will evaluate to false with no errors or exceptions. 
 
 Craig 
 
  
 
  
 
  
 
 Craig McClanahan-3 wrote:

 On 10/31/06, Toppac  [EMAIL PROTECTED] wrote:


 Also I am using

 c:set var=disabled value=false scope=page/ 


 This is not going to work.  JSF expressions do not have access to page
 scope in a JSP page.  You'll need to us something in request scope
 instead.

 Craig 

 I typed the wrong thing from memory earlier



 Toppac wrote:
 
  I print out the value to the screen to make sure it is not empty. It 
  evaluates to true when I would expect it to and to false at other
 times.
  But even when it is true it does not affect the inputText boxes. I
 also
  use jstl tags throughout the page, so I am pretty sure the c taglib
 is 
  defined.
 
 
 
  Dennis Byrne wrote:
 
 I am trying to use the disabled attribute on some inputText boxes in 
 my
 application. However, everytime I try to use a binding like this
 h:inputText disabled=#{mybackingBean.disabled} /
 
  In both JSP and JSF,
  #{backingBeanThatDoesNotExist.propertyThatDoesNotExist} will not
 throw
 an
  exception; it will default to 'false'.  Whenever I find myself in
 your
 
  situation I double check expression path.
 
 nothing happens. disabled is a Boolean field in the backing bean. I
 assume
 it would auto translate to a string, but it doesnt appear to. I then 
 tried
 using JSTl to set a value a page scoped variable
 c:set name=disabled value=true/
 This does not work either when I change my input box to this 
 h:inputText disabled=#{disabled}/
 
  Perhaps you have not included the c taglib header in the JSP file?
 The
  page will silently skip the c:set tag in this case. 
 
  Dennis Byrne
 
 
 
 
 
 

 --
 View this message in context: 

 http://www.nabble.com/Disabled-with-value-binding-expression-tf2546998.html#
 a7098480
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




 
 --
 View this message in context:
 http://www.nabble.com/Disabled-with-value-binding-expression-tf2546998.html#
 a7100471
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 

RE: Disabled with value binding expression

2006-11-28 Thread Nebinger, David
Have you tried using disabled=#{flowScope.delete.booleanValue}?

 -Original Message-
 From: Toppac [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2006 4:45 PM
 To: users@myfaces.apache.org
 Subject: RE: Disabled with value binding expression
 
 
 
 I wanted to add onto this to see if anyone could provide 
 further insight. I
 am using a custom variable resolver to access some session 
 scoped variables.
 I know the value is there because I can print it out. 
 However, whenever I
 try to reference the value in the disabled attribute of an 
 input element,
 the value is ignored. The value in the session scope is a 
 Boolean (object).
 I noticed that the attribute takes a boolean (primitive) on 
 the getter and
 setter methods. I am wondering if for some reason my Boolean 
 is not being
 translated correctly. When I just put the string true it 
 works fine. But
 using something like
 
 disabled=#{flowScope.delete}
 
 does not work, where deleted is a Boolean. Printing out 
 flowScope.delete
 using regular EL or an outputText tag works fine.
 
 I am using MyFaces 1.1.4, latest Facelets, Webflow 1.0. If 
 anyone has any
 ideas I would love to hear them. Thanks.
 
 
 
 
 Toppac wrote:
  
  Thanks for the replies guys. I am using spring webflow also 
 and had the
  value scoped to a flowScope variable. I am being told that 
 won't work so
  it looks like I'll need to translate my flowscoped variable 
 to a request
  scoped one for the disabled attribute to pick up.
  
  
  
  Tom Innes wrote:
  
  See
  
   
  
  http://wiki.java.net/bin/view/Projects/FaceletsFAQ
  
   
  
  c:set, c:if are build time tags
  
   
  
  I use Facelets as well and the following works for me
  
   
  
  h:inputText disabled=#{mybackingBean.disabled} /
  
   
  
  and my backing bean method is defined as 
  
   
  
  public boolean getDisabled() {
  
  return this.disabled; 
  
  }
  
   
  
   
  
  Tom
  
   
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Craig
  McClanahan
  Sent: Tuesday, October 31, 2006 2:45 PM
  To: MyFaces Discussion
  Subject: Re: Disabled with value binding expression
  
   
  
   
  
  On 10/31/06, Toppac [EMAIL PROTECTED] wrote:
  
  
  I am using Facelets with MyFaces, which allows jstl page 
 scoped variables
  to
  work. Correct me if I am wrong.
  
  
  Sounds like a question for the Facelets list ... but I 
 sure wonder how
  Facelets makes this happen during the Apply Request Values 
 through Invoke
  Application phases of the request processing lifecycle, 
 when there is no
  page scope because there is no page. 
  
   
  
  Also another thing I tried is writing a customer taglib 
 function that
  will
  parse my backing bean value and return the string true or false,
  depending
  on whether the calling field should be disabled. This seems to work
  pretty
  well the first time through, but on subsequent visits to 
 the same page, I 
  don't see the function being called again. It is only 
 called the first
  time
  the page is rendered. Shouldn't the function be evaluated 
 every time the
  page is rendered?
  
  
  Do you know for a fact that logonBean actually exists on 
 the subsequent
  renderings?  If it does not (as someone else in this 
 thread pointed out),
  your expression will evaluate to false with no errors or 
 exceptions. 
  
  Craig 
  
   
  
   
  
   
  
  Craig McClanahan-3 wrote:
 
  On 10/31/06, Toppac  [EMAIL PROTECTED] wrote:
 
 
  Also I am using
 
  c:set var=disabled value=false scope=page/ 
 
 
  This is not going to work.  JSF expressions do not have 
 access to page
  scope in a JSP page.  You'll need to us something in request scope
  instead.
 
  Craig 
 
  I typed the wrong thing from memory earlier
 
 
 
  Toppac wrote:
  
   I print out the value to the screen to make sure it is 
 not empty. It 
   evaluates to true when I would expect it to and to 
 false at other
  times.
   But even when it is true it does not affect the 
 inputText boxes. I
  also
   use jstl tags throughout the page, so I am pretty sure 
 the c taglib
  is 
   defined.
  
  
  
   Dennis Byrne wrote:
  
  I am trying to use the disabled attribute on some 
 inputText boxes in 
  my
  application. However, everytime I try to use a 
 binding like this
  h:inputText disabled=#{mybackingBean.disabled} /
  
   In both JSP and JSF,
   
 #{backingBeanThatDoesNotExist.propertyThatDoesNotExist} will not
  throw
  an
   exception; it will default to 'false'.  Whenever I 
 find myself in
  your
  
   situation I double check expression path.
  
  nothing happens. disabled is a Boolean field in the 
 backing bean. I
  assume
  it would auto translate to a string, but it doesnt 
 appear to. I then 
  tried
  using JSTl to set a value a page scoped variable
  c:set name=disabled value=true/
  This does not work either when I change my input box to this 
  h:inputText disabled=#{disabled}/
  
   Perhaps you have not included 

RE: Disabled with value binding expression

2006-11-28 Thread Toppac

Doesn't that break the java bean conventions?



Nebinger, David wrote:
 
 Have you tried using disabled=#{flowScope.delete.booleanValue}?
 
 -Original Message-
 From: Toppac [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2006 4:45 PM
 To: users@myfaces.apache.org
 Subject: RE: Disabled with value binding expression
 
 
 
 I wanted to add onto this to see if anyone could provide 
 further insight. I
 am using a custom variable resolver to access some session 
 scoped variables.
 I know the value is there because I can print it out. 
 However, whenever I
 try to reference the value in the disabled attribute of an 
 input element,
 the value is ignored. The value in the session scope is a 
 Boolean (object).
 I noticed that the attribute takes a boolean (primitive) on 
 the getter and
 setter methods. I am wondering if for some reason my Boolean 
 is not being
 translated correctly. When I just put the string true it 
 works fine. But
 using something like
 
 disabled=#{flowScope.delete}
 
 does not work, where deleted is a Boolean. Printing out 
 flowScope.delete
 using regular EL or an outputText tag works fine.
 
 I am using MyFaces 1.1.4, latest Facelets, Webflow 1.0. If 
 anyone has any
 ideas I would love to hear them. Thanks.
 
 
 
 
 Toppac wrote:
  
  Thanks for the replies guys. I am using spring webflow also 
 and had the
  value scoped to a flowScope variable. I am being told that 
 won't work so
  it looks like I'll need to translate my flowscoped variable 
 to a request
  scoped one for the disabled attribute to pick up.
  
  
  
  Tom Innes wrote:
  
  See
  
   
  
  http://wiki.java.net/bin/view/Projects/FaceletsFAQ
  
   
  
  c:set, c:if are build time tags
  
   
  
  I use Facelets as well and the following works for me
  
   
  
  h:inputText disabled=#{mybackingBean.disabled} /
  
   
  
  and my backing bean method is defined as 
  
   
  
  public boolean getDisabled() {
  
  return this.disabled; 
  
  }
  
   
  
   
  
  Tom
  
   
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Craig
  McClanahan
  Sent: Tuesday, October 31, 2006 2:45 PM
  To: MyFaces Discussion
  Subject: Re: Disabled with value binding expression
  
   
  
   
  
  On 10/31/06, Toppac [EMAIL PROTECTED] wrote:
  
  
  I am using Facelets with MyFaces, which allows jstl page 
 scoped variables
  to
  work. Correct me if I am wrong.
  
  
  Sounds like a question for the Facelets list ... but I 
 sure wonder how
  Facelets makes this happen during the Apply Request Values 
 through Invoke
  Application phases of the request processing lifecycle, 
 when there is no
  page scope because there is no page. 
  
   
  
  Also another thing I tried is writing a customer taglib 
 function that
  will
  parse my backing bean value and return the string true or false,
  depending
  on whether the calling field should be disabled. This seems to work
  pretty
  well the first time through, but on subsequent visits to 
 the same page, I 
  don't see the function being called again. It is only 
 called the first
  time
  the page is rendered. Shouldn't the function be evaluated 
 every time the
  page is rendered?
  
  
  Do you know for a fact that logonBean actually exists on 
 the subsequent
  renderings?  If it does not (as someone else in this 
 thread pointed out),
  your expression will evaluate to false with no errors or 
 exceptions. 
  
  Craig 
  
   
  
   
  
   
  
  Craig McClanahan-3 wrote:
 
  On 10/31/06, Toppac  [EMAIL PROTECTED] wrote:
 
 
  Also I am using
 
  c:set var=disabled value=false scope=page/ 
 
 
  This is not going to work.  JSF expressions do not have 
 access to page
  scope in a JSP page.  You'll need to us something in request scope
  instead.
 
  Craig 
 
  I typed the wrong thing from memory earlier
 
 
 
  Toppac wrote:
  
   I print out the value to the screen to make sure it is 
 not empty. It 
   evaluates to true when I would expect it to and to 
 false at other
  times.
   But even when it is true it does not affect the 
 inputText boxes. I
  also
   use jstl tags throughout the page, so I am pretty sure 
 the c taglib
  is 
   defined.
  
  
  
   Dennis Byrne wrote:
  
  I am trying to use the disabled attribute on some 
 inputText boxes in 
  my
  application. However, everytime I try to use a 
 binding like this
  h:inputText disabled=#{mybackingBean.disabled} /
  
   In both JSP and JSF,
   
 #{backingBeanThatDoesNotExist.propertyThatDoesNotExist} will not
  throw
  an
   exception; it will default to 'false'.  Whenever I 
 find myself in
  your
  
   situation I double check expression path.
  
  nothing happens. disabled is a Boolean field in the 
 backing bean. I
  assume
  it would auto translate to a string, but it doesnt 
 appear to. I then 
  tried
  using JSTl to set a value a page scoped variable
  c:set name=disabled value=true/
  This does not work either when I change my input box to 

RE: Disabled with value binding expression

2006-11-28 Thread Nebinger, David
Probably, but if it works where the object doesn't, wouldn't that be more 
important than adhering to the conventions?

 -Original Message-
 From: Toppac [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2006 4:49 PM
 To: users@myfaces.apache.org
 Subject: RE: Disabled with value binding expression
 
 
 
 Doesn't that break the java bean conventions?
 
 
 
 Nebinger, David wrote:
  
  Have you tried using disabled=#{flowScope.delete.booleanValue}?
  
  -Original Message-
  From: Toppac [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 28, 2006 4:45 PM
  To: users@myfaces.apache.org
  Subject: RE: Disabled with value binding expression
  
  
  
  I wanted to add onto this to see if anyone could provide 
  further insight. I
  am using a custom variable resolver to access some session 
  scoped variables.
  I know the value is there because I can print it out. 
  However, whenever I
  try to reference the value in the disabled attribute of an 
  input element,
  the value is ignored. The value in the session scope is a 
  Boolean (object).
  I noticed that the attribute takes a boolean (primitive) on 
  the getter and
  setter methods. I am wondering if for some reason my Boolean 
  is not being
  translated correctly. When I just put the string true it 
  works fine. But
  using something like
  
  disabled=#{flowScope.delete}
  
  does not work, where deleted is a Boolean. Printing out 
  flowScope.delete
  using regular EL or an outputText tag works fine.
  
  I am using MyFaces 1.1.4, latest Facelets, Webflow 1.0. If 
  anyone has any
  ideas I would love to hear them. Thanks.
  
  
  
  
  Toppac wrote:
   
   Thanks for the replies guys. I am using spring webflow also 
  and had the
   value scoped to a flowScope variable. I am being told that 
  won't work so
   it looks like I'll need to translate my flowscoped variable 
  to a request
   scoped one for the disabled attribute to pick up.
   
   
   
   Tom Innes wrote:
   
   See
   

   
   http://wiki.java.net/bin/view/Projects/FaceletsFAQ
   

   
   c:set, c:if are build time tags
   

   
   I use Facelets as well and the following works for me
   

   
   h:inputText disabled=#{mybackingBean.disabled} /
   

   
   and my backing bean method is defined as 
   

   
   public boolean getDisabled() {
   
   return this.disabled; 
   
   }
   

   

   
   Tom
   

   
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
  Behalf Of Craig
   McClanahan
   Sent: Tuesday, October 31, 2006 2:45 PM
   To: MyFaces Discussion
   Subject: Re: Disabled with value binding expression
   

   

   
   On 10/31/06, Toppac [EMAIL PROTECTED] wrote:
   
   
   I am using Facelets with MyFaces, which allows jstl page 
  scoped variables
   to
   work. Correct me if I am wrong.
   
   
   Sounds like a question for the Facelets list ... but I 
  sure wonder how
   Facelets makes this happen during the Apply Request Values 
  through Invoke
   Application phases of the request processing lifecycle, 
  when there is no
   page scope because there is no page. 
   

   
   Also another thing I tried is writing a customer taglib 
  function that
   will
   parse my backing bean value and return the string true or false,
   depending
   on whether the calling field should be disabled. This 
 seems to work
   pretty
   well the first time through, but on subsequent visits to 
  the same page, I 
   don't see the function being called again. It is only 
  called the first
   time
   the page is rendered. Shouldn't the function be evaluated 
  every time the
   page is rendered?
   
   
   Do you know for a fact that logonBean actually exists on 
  the subsequent
   renderings?  If it does not (as someone else in this 
  thread pointed out),
   your expression will evaluate to false with no errors or 
  exceptions. 
   
   Craig 
   

   

   

   
   Craig McClanahan-3 wrote:
  
   On 10/31/06, Toppac  [EMAIL PROTECTED] wrote:
  
  
   Also I am using
  
   c:set var=disabled value=false scope=page/ 
  
  
   This is not going to work.  JSF expressions do not have 
  access to page
   scope in a JSP page.  You'll need to us something in 
 request scope
   instead.
  
   Craig 
  
   I typed the wrong thing from memory earlier
  
  
  
   Toppac wrote:
   
I print out the value to the screen to make sure it is 
  not empty. It 
evaluates to true when I would expect it to and to 
  false at other
   times.
But even when it is true it does not affect the 
  inputText boxes. I
   also
use jstl tags throughout the page, so I am pretty sure 
  the c taglib
   is 
defined.
   
   
   
Dennis Byrne wrote:
   
   I am trying to use the disabled attribute on some 
  inputText boxes in 
   my
   application. However, everytime I try to use a 
  binding like this
   h:inputText disabled=#{mybackingBean.disabled} /
   
In both 

How to re-position scroll bar after reloading the jsf page

2006-11-28 Thread Maria G.P [Contr]

Dear All:
I have a page with datatable and the table is within t:div tag.
The data table has command link. Onclick of that link, I am reloading the 
page.

When I reload the page, I would like to show the row that was last selected.
But now, it is showing the top of the table.

Can anyone please help me to fix this?

Thanks,

Maria 


Re: Disabled with value binding expression

2006-11-28 Thread Simon Kitching
Don't know if this is relevant or not, but the standard resolver will 
look first in request scope, so a value there will hide any var in 
session scope.


Regards, Simon

Toppac wrote:

I wanted to add onto this to see if anyone could provide further insight. I
am using a custom variable resolver to access some session scoped variables.
I know the value is there because I can print it out. However, whenever I
try to reference the value in the disabled attribute of an input element,
the value is ignored. The value in the session scope is a Boolean (object).
I noticed that the attribute takes a boolean (primitive) on the getter and
setter methods. I am wondering if for some reason my Boolean is not being
translated correctly. When I just put the string true it works fine. But
using something like

disabled=#{flowScope.delete}

does not work, where deleted is a Boolean. Printing out flowScope.delete
using regular EL or an outputText tag works fine.

I am using MyFaces 1.1.4, latest Facelets, Webflow 1.0. If anyone has any
ideas I would love to hear them. Thanks.




Toppac wrote:

Thanks for the replies guys. I am using spring webflow also and had the
value scoped to a flowScope variable. I am being told that won't work so
it looks like I'll need to translate my flowscoped variable to a request
scoped one for the disabled attribute to pick up.


Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-11-28 Thread Bernd Bohmann

Hello Helmut,

I didn't see any reason why this should not work.

Can you add a jira issue for it.
Please add some example code.

http://issues.apache.org/jira/secure/BrowseProject.jspa?id=12310273



Regards


Bernd

H. Swaczinna wrote:

Hello,

I've defined my own theme and an additional markup. It works,
when I use the standard resource path 
org/apache/myfaces/tobago/renderkit.

But when I change the path to my own package de/wlps/ndr/tobago/renderkit,
it doesn't work. The class defintion in my style.css has no effect. 
I can see the reference to my own style.css in the html source. When I

enter this URL in my browser, I can see the style class defintion.
So the resource location seems to work properly. The defined class is 
referenced in the generated html code for the tc:in tag.

This is the tobago-theme.xml

tobago-theme
  namegena/name
  deprecated-namede.wlps.ndr.tobago.context.GenaTheme/deprecated-name
  resource-pathde/wlps/ndr/tobago/renderkit/resource-path
  fallbackspeyside/fallback
  renderers
renderer
  nameIn/name
  supported-markup
markupnumber/markup
markupmodified/markup
  /supported-markup
/renderer
  /renderers
/tobago-theme

In web.xml, I setup a ResourceServlet:

  servlet-mapping
servlet-nameResourceServlet/servlet-name
url-pattern/de/wlps/ndr/tobago/renderkit/*/url-pattern
  /servlet-mapping


This is the generated html code:

...
link rel=stylesheet 
href=/gena-demo/de/wlps/ndr/tobago/renderkit/html/gena/standard/style/style.css media=screen 
type=text/css
...
input type=text name=gena:_idJsp108 id=gena:_idJsp108 value=566756 style=width: 100px; 
height: 20px; class=tobago-in-default tobago-in-markup-modified 
...

And finally, this is my style.css:

.tobago-in-markup-modified {
  background-color: yellow;
}  


Is there something else, I have to setup?
Thanks for help
Helmut






Re: Example jars

2006-11-28 Thread Marcus Bond

Great, thanks!



From: Matthias Wessendorf [EMAIL PROTECTED]
Reply-To: MyFaces Discussion users@myfaces.apache.org
To: MyFaces Discussion users@myfaces.apache.org
Subject: Re: Example jars
Date: Fri, 24 Nov 2006 17:52:05 +0100

not up to date, but here:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-simple/1.1.4-SNAPSHOT/

On 11/24/06, Marcus Bond [EMAIL PROTECTED] wrote:

Thanks, provides a fair bit of info.
Are there are any projects for download so the java source in backing 
beans

can be looked at?


From: Sudhakar Mekathotti [EMAIL PROTECTED]
Reply-To: MyFaces Discussion users@myfaces.apache.org
To: MyFaces Discussion users@myfaces.apache.org
Subject: Re: Example jars
Date: Fri, 24 Nov 2006 14:47:25 +

Marcus,

You can see the examples at http://www.irian.at/training.jsf


On 11/24/06, Marcus Bond [EMAIL PROTECTED] wrote:

Hi,
Have been looking around the myFaces site trying to find some examples 
to
help out with using tomahawk features and saw a link to example apps 
for
tomahawk. On clicking it I ended up on the page where all the librarys 
are
but the only one with an example was Tobago. Can someone tell me where 
the

tomahawk examples are please?

Also, when trying to use the tomahawk features, I ended up with 
problems

once the filter mapping was placed in web.xml as there was a class not
found
exeption which has since been resolved (took a while though to work out
the
problem) by including the commons-fileupload.jar file. There is no 
mention

anywhere on the tomahawk page that this jar is required or clue as to
where
it can be found. Would it be possible to include this information on 
the

tomahawk pages if only to save others from despair?

Thanks,
Marcus.

P.S. Love the work of this project!

_
Windows Live™ Messenger has arrived. Click here to download it for 
free!

http://imagine-msn.com/messenger/launch80/?locale=en-gb



_
Windows Live™ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb





--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


_
Download the new Windows Live Toolbar, including Desktop search! 
http://toolbar.live.com/?mkt=en-gb




t:dataTable with dynamic newspaperColumns

2006-11-28 Thread Yaron Spektor
Hi,
I was wondering if anyone knows why the t:dataTable does not accept a
backing bean value for the newspaperColumns value-binding? 

Where this example works (4 columns):
t:dataTable newspaperColumns=4 newspaperOrientation=horizontal
value=#{bean.valueList} var=index 
h:column
 h:outputText value=#{index} /  
/h:column
/t:dataTable

But this does not:

t:dataTable newspaperColumns=#{bean.numberOfColumns}
newspaperOrientation=horizontal value=#{bean.valueList} var=index

h:column
 h:outputText value=#{index} /  
/h:column
/t:dataTable

Any work around to that? I can not use the t:columns.

Thanks,


t:popup component launch from keypress

2006-11-28 Thread Anthony Yulo
Hi! How can I launch the popup when I enter a key instead of hovering on the
component?

*The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review,retransmission,dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.*


Re: Example jars

2006-11-28 Thread Grant Smith

Hi Marcus,

The list of dependencies [1], does in fact show the commons-fileupload
dependency.

Thanks,
Grant

[1] http://myfaces.apache.org/tomahawk/dependencies.html

On 11/28/06, Marcus Bond [EMAIL PROTECTED] wrote:


Great, thanks!


From: Matthias Wessendorf [EMAIL PROTECTED]
Reply-To: MyFaces Discussion users@myfaces.apache.org
To: MyFaces Discussion users@myfaces.apache.org
Subject: Re: Example jars
Date: Fri, 24 Nov 2006 17:52:05 +0100

not up to date, but here:


http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-simple/1.1.4-SNAPSHOT/

On 11/24/06, Marcus Bond [EMAIL PROTECTED] wrote:
Thanks, provides a fair bit of info.
Are there are any projects for download so the java source in backing
beans
can be looked at?


 From: Sudhakar Mekathotti [EMAIL PROTECTED]
 Reply-To: MyFaces Discussion users@myfaces.apache.org
 To: MyFaces Discussion users@myfaces.apache.org
 Subject: Re: Example jars
 Date: Fri, 24 Nov 2006 14:47:25 +
 
 Marcus,
 
 You can see the examples at http://www.irian.at/training.jsf
 
 
 On 11/24/06, Marcus Bond [EMAIL PROTECTED] wrote:
 
 Hi,
 Have been looking around the myFaces site trying to find some
examples
to
 help out with using tomahawk features and saw a link to example apps
for
 tomahawk. On clicking it I ended up on the page where all the
librarys
are
 but the only one with an example was Tobago. Can someone tell me
where
the
 tomahawk examples are please?
 
 Also, when trying to use the tomahawk features, I ended up with
problems
 once the filter mapping was placed in web.xml as there was a class
not
 found
 exeption which has since been resolved (took a while though to work
out
 the
 problem) by including the commons-fileupload.jar file. There is no
mention
 anywhere on the tomahawk page that this jar is required or clue as to
 where
 it can be found. Would it be possible to include this information on
the
 tomahawk pages if only to save others from despair?
 
 Thanks,
 Marcus.
 
 P.S. Love the work of this project!
 
 _
 Windows Live™ Messenger has arrived. Click here to download it for
free!
 http://imagine-msn.com/messenger/launch80/?locale=en-gb
 
 

_
Windows Live™ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb




--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

_
Download the new Windows Live Toolbar, including Desktop search!
http://toolbar.live.com/?mkt=en-gb





--
Grant Smith


Using Tomahawk Table with facelets

2006-11-28 Thread Dudu

I'm trying to use the component Table of tomahawk 1.1.3. I've followed
the page http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk but
this error is occuring.
What I need to do?

In My  WEB-INF/tomahawk.taglib.xml has the table defined as bellow:

tag
tag-nametable/tag-name
component
component-type

org.apache.myfaces.component.html.ext.HtmlDataTable
/component-type
renderer-typeorg.apache.myfaces.Table/renderer-type
/component
/tag
I do this reading the component page:
http://myfaces.apache.org/tomahawk/extDataTable.html


the error:
javax.faces.FacesException: Undefined component type
org.apache.myfaces.component.html.ext.HtmlDataTable
at 
org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
at 
com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:224)
at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:135)
at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at 
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:510)
at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)


Re: Using Tomahawk Table with facelets

2006-11-28 Thread Dudu

I'm sorry! But I'm trying to use the
http://myfaces.apache.org/tomahawk/extDataTable.html with facelets...
Once it works, and after I've puted on wiki  then the app stoped...

On 11/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote:


Please do not add your table entry to the
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk page.  It's
already in this file as dataTable which is the standard name for
this component.

I am reverting your change again.





--
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler


Re: Using Tomahawk Table with facelets

2006-11-28 Thread Mike Kienenberger

My guess is that the tomahawk.jar isn't in your classpath.

Rather than invent a new table taglib definition, simply use the
existing t:dataTable tag.


On 11/28/06, Dudu [EMAIL PROTECTED] wrote:

I'm trying to use the component Table of tomahawk 1.1.3. I've followed the
page
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
but this error is occuring.

What I need to do?

In My WEB-INF/tomahawk.taglib.xml has the table defined as bellow:

tag
 tag-nametable/tag-name
 component
 component-type

 org.apache.myfaces.component.html.ext.HtmlDataTable
 /component-type
 renderer-typeorg.apache.myfaces.Table/renderer-type
 /component
 /tag
I do this reading the component page:

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


the error:
javax.faces.FacesException: Undefined component type
org.apache.myfaces.component.html.ext.HtmlDataTable

 at
org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
 at
com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:224)
 at com.sun.facelets.tag.jsf.ComponentHandler.apply
(ComponentHandler.java:135)
 at
com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
 at
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
 at
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply
(DefaultFaceletContext.java:306)
 at
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
 at
com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
 at com.sun.facelets.tag.CompositeFaceletHandler.apply
(CompositeFaceletHandler.java:47)
 at
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
 at
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
 at com.sun.facelets.compiler.EncodingHandler.apply
(EncodingHandler.java:25)
 at
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
 at
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
 at com.sun.facelets.impl.DefaultFacelet.include
(DefaultFacelet.java:273)
 at
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
 at
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
 at com.sun.facelets.compiler.NamespaceHandler.apply
(NamespaceHandler.java:49)
 at
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
 at
com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
 at com.sun.facelets.FaceletViewHandler.buildView
(FaceletViewHandler.java:510)
 at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
 at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
 at javax.faces.webapp.FacesServlet.service
(FacesServlet.java:138)



Re: how to create a SelectOneMenu with dynamic list

2006-11-28 Thread Damar Thapa

Hi,
This link found to be dead now, any idea?

http://example.irian.at/example-sandbox-20061118/ajaxChildComboBox.jsf

Damar

On 11/18/06, Gerald Müllan [EMAIL PROTECTED] wrote:

Hi,

the list is reduced in the ValueChangeEvent method? Apart from this, i
can`t see any mistakes in the code snippet.

Any errors shown in the page? (don`t forget t:messages)

Alternatively you can also use the sandbox ajax comboBox [1] which
should exactly fit your needs and seems to be more user friendly.

cheers,

Gerald

[1] http://example.irian.at/example-sandbox-20061118/ajaxChildComboBox.jsf

On 11/18/06, Damar Thapa [EMAIL PROTECTED] wrote:
 Hi,

 Somebody on the list may have implemented this. I have two
 SelectOneMenu, A and B, with the same list.  But, when Menu A is
 selected, the list of B has to be recreated with (full list minus the
 item selected in Menu A).

 My valueChangeEvent is something like the following:

 public void firstChoiceSelected(ValueChangeEvent vce){
 String firstChoice=(String)vce.getNewValue();
 java.util.ArrayListSelectItem listB=new java.util.ArrayList();
 listB=this.getListA(); //ListA=listB initially

 //remove the item selected in Menu A
 SelectItem item=new SelectItem(firstChoice,firstChoice);
 list.remove(item);
 this.setListB(listA);

 In my case, valueChangeEvent is called, but the list remains the same.
 What do I have to do? Any pointers would be highly appreciated.


 With regards,

 Damar Thapa



--
http://www.irian.at

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

Professional Support for Apache MyFaces




--
With regards,

Damar Thapa


Re: BBS

2006-11-28 Thread Dave
All BBS software are standalone web applications, or they can be integrated 
with existing web applications?  for example, user identities, single sign on, 
discussion board associated with an EJB entity(eg, a Book), etc.
   
  I looked some softwares, they seems to be standalone web applications. I am 
looking for BBS that can be integrated with existing web applications. Thanks!
  

Andrew Robinson [EMAIL PROTECTED] wrote:
  Try using google:
http://www.google.com/search?sourceid=navclient-ffie=UTF-8rls=GGGL,GGGL:2006-29,GGGL:enq=bulletin+board+java

[1] http://www.jspin.com/home/apps/bulletin
[2] http://www.hotscripts.com/Java/JSP_and_Servlets/Discussion_Boards/index.html



On 11/23/06, Dave wrote:
 Any BBS software that can be integrated well with JSF application deployed
 on Tomcat?

 Thanks.!

 
 Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.




 
-
Want to start your own business? Learn how on Yahoo! Small Business.

Re: t:dataTable with dynamic newspaperColumns

2006-11-28 Thread Mike Kienenberger

The implementation of get/setNewspaperColumns needs to be patched.
It looks like this:

   public int getNewspaperColumns() {
   return _newspaperColumns;
   }
   public void setNewspaperColumns(int newspaperColumns) {
   this._newspaperColumns = newspaperColumns;
   }

It needs to be rewritten to work like get/setRows so that it first
checks a ValueBinding instead of only working with an int.

   public int getRows()
   {
   if (_rows != null)
   return _rows.intValue();
   ValueBinding vb = getValueBinding(rows);
   Number v = vb != null ? (Number) vb.getValue(getFacesContext()) : null;
   return v != null ? v.intValue() : DEFAULT_ROWS;
   }

   public void setRows(int rows)
   {
   _rows = new Integer(rows);
   if (rows  0)
   throw new IllegalArgumentException(rows:  + rows);
   }

Please open a JIRA issue and attach a patch.  Thanks.



On 11/28/06, Yaron Spektor [EMAIL PROTECTED] wrote:

Hi,
I was wondering if anyone knows why the t:dataTable does not accept a
backing bean value for the newspaperColumns value-binding?

Where this example works (4 columns):
t:dataTable newspaperColumns=4 newspaperOrientation=horizontal
value=#{bean.valueList} var=index 
h:column
 h:outputText value=#{index} /
/h:column
/t:dataTable

But this does not:

t:dataTable newspaperColumns=#{bean.numberOfColumns}
newspaperOrientation=horizontal value=#{bean.valueList} var=index

h:column
 h:outputText value=#{index} /
/h:column
/t:dataTable

Any work around to that? I can not use the t:columns.

Thanks,



rendered question (form)

2006-11-28 Thread support

I have an xhtml page that has 3 modes:
   1.  Display a table from an Oracle DB
   2.  Edit a row in the table when a hyperlink is clicked
   3.  Add a row when the add button is clicked

For #2 (when edit button is clicked) the row is displayed in textInput 
areas and a Save button is provided.
For #3 (when the Add button is clicked), empty textInputs are 
displayed and the user can add a row to the table.


I have a commandLink set to a class.method in the backing bean.  I used 
a panelGrid section to display the edit area on #2  #3.  the backing 
bean has booleans that are set to true or false if they should be 
displayed on the page.  When the user first visits the page the Save 
and Add buttons are set to false and the area is not rendered.


When I hit Save I expect the actionListener on the backing bean to be 
executed but it is not.  I tried ActionEvent and Action methods and 
neither one of them are being executed.  Any ideas?  If I set all the 
booleans (that indicate the panelGrid should be displayed) the methods 
are executed but I do not want these to be displayed.


How do I set them to false initially so these areas are not displayed on 
the page?  When the backing bean is instantiated on each call, how do I 
know if I am in mode 1, 2 or 3?


thanks

Rja



Re: Tree2 Navigation with iframe

2006-11-28 Thread Anthony Hong

Thanks Andrew Robinson.
But I have problem with both options.
For 1. Tree panel is not refreshed, as page displaying in frame.
For 2. Page displayed in div body zone also have to be used in ajax
way, otherwise, The whole page refreshed, tree will be reloaded.

Any advice.

On 11/28/06, Andrew Robinson [EMAIL PROTECTED] wrote:

My suggestions:

1) create outputLinks instead of commandLinks with a target
specified in the tree instead of using actions

-or-

2) use an AJAX framework like Ajax4Jsf and make the right side
refreshed when the tree is clicked and don't use IFRAMEs

-Andrew

On 11/28/06, Anthony Hong [EMAIL PROTECTED] wrote:
 I have a template, which left side is a tree component and right side
 is displaying zone.
 I want to render what tree node selected page in right div body zone.
 How can I achieve this?
 I to write following code in my node action method

 HttpServletResponse response = (HttpServletResponse)
 super.getExternalContext().getResponse();
 response.setContentType(text/html);
 
response.getWriter().write(scriptdocument.getElementById('innerFrameId').src='newPage.jsf';/script);
 super.getFacesContext().responseComplete();

 But it didn't work, javascript error shown 'innerFrameId' can not be
 found.I already defined in page.
 Am I right?

 If I don't use iframe to display div body, each time working place
 have actions, tree data have to be reloaded. Any other alternative can
 I use?

 I found each time tree load nodes, backend getTreeNode function will
 be invoked more than once,  Can I prevent it form repeatly loading?
 I think I cann't define a property in my backing bean,  otherwise my
 tree node data is not refreshed. How to solve this problem

 --

 Anthony Hong





--

Anthony Hong


Re: BBS

2006-11-28 Thread Andrew Robinson

I am by no means an expert on them, only briefly looked into them, but
I remember when looking at yazd that it had pluggable security. As for
using an EJB, your could map your EJB to their tables. I am not aware
of any that let you design the tables yourself and bind them to your
own schema.

On 11/28/06, Dave [EMAIL PROTECTED] wrote:

All BBS software are standalone web applications, or they can be integrated
with existing web applications?  for example, user identities, single sign
on, discussion board associated with an EJB entity(eg, a Book), etc.

I looked some softwares, they seems to be standalone web applications. I am
looking for BBS that can be integrated with existing web applications.
Thanks!


Andrew Robinson [EMAIL PROTECTED] wrote:
Try using google:
http://www.google.com/search?sourceid=navclient-ffie=UTF-8rls=GGGL,GGGL:2006-29,GGGL:enq=bulletin+board+java

[1] http://www.jspin.com/home/apps/bulletin
[2]
http://www.hotscripts.com/Java/JSP_and_Servlets/Discussion_Boards/index.html



On 11/23/06, Dave wrote:
 Any BBS software that can be integrated well with JSF application deployed
 on Tomcat?

 Thanks.!

 
 Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.





 
Want to start your own business? Learn how on Yahoo! Small Business.




Re: Action method not getting called inside the dataTable

2006-11-28 Thread Amit Nair

Hi 

Thanks a lot Adrin for your reply !!! 

I changed the scope of bean from request to session. Now the action method
is getting called. But I found that both the beans(siteRequirementBean 
requirementDisplay) needs to be in session scope. But the command link is
only calling the action method of requirementDisplay bean. So when only
requirementDisplay is kept in session scope,  action method is not getting
called. Also my whole application is built on the top of logic that the bean
would be in request scope. So changing the scope of bean from request to
session would be night mare  real problem. So can you please tell me is
there any other way out of it…

Thanks
Amit




Adrian Mitev-2 wrote:
 
 The bean that holds the data mode should be in session scope.
 
 2006/11/28, Amit Nair [EMAIL PROTECTED]:


 Hi Friends

 I am having trouble in calling the action method from command link inside
 datatable.

 The code of the DataTable is

 h:dataTable id=siteDetailTable1
 value=#{siteRequirementBean.detailHeadQuarterList} var=details
 cellpadding=1 cellspacing=1 width=100%
 h:column
 h:panelGrid columns=1 width=100% columnClasses=none,tableRowOdd
 rowClasses=tableRowEven,tableRowOdd
 h:panelGroup
 h:outputText value=Name:  /
 h:outputText value=#{details.name} style=width: 55% /
 /h:panelGroup
 h:panelGroup
 h:outputText value=Location:  /
 h:outputText value=#{details.location} style=width: 55% /
 /h:panelGroup
 h:panelGroup
 h:outputText value=Description:  /
 h:outputText value=#{details.description} style=width: 55% /
 /h:panelGroup
 /h:panelGrid
 /h:column
 h:column
 h:commandLink action=#{requirementDisplay.viewDetailedRequirement}
 h:outputText value=VDR /
 /h:commandLink
 /h:column
 /h:dataTable

 The managed beans siteRequirementBean  requirementDisplay both are in
 request scope.

 The datatable has two columns. In the first column there 3 labels which
 displays some information. In the second column there is a command link.
 This command link is binded with an action method of managed bean. The
 page
 gets displayed with all the components including the commandlink , but on
 clicking the command link the action method is not getting called. The
 page
 gets refreshed  comes back again.

 Infact I tried putting in arbitrary string in the action method's name
 attribute of command link. There was no error  the page came back again
 on
 clicking the link.
 If the same command link is kept outside data table then the action
 method
 gets called.

 Command Button also shows the same behavior as command link.

 Please give your valuable inputs…..

 Thanks in Advance
 Amit :)
 --
 View this message in context:
 http://www.nabble.com/Action-method-not-getting-called-inside-the-dataTable-tf2719758.html#a7583549
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Action-method-not-getting-called-inside-the-dataTable-tf2719758.html#a7593593
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Using a outputLabel and a outputText together

2006-11-28 Thread ying lcs

Hi,

i have a
h:outputLabel.../
h:inputText.../

i see a label and then a text box. That is what I want.

However, when i want to add another line of text as the 'help' text,
by adding a h:outputText... 
I don't see the help text.


This is what i am trying to do:
h:outputLabel for=buildlanguage styleClass=desc
value=#{text['build.language']}/

   h:outputText value=#{build.help} /


   h:inputText
value=#{addBuildForm.build.language} id=buildlanguage
required=true styleClass=text large
   v:commonsValidator type=required
arg=#{text['build.language']}/
   /h:inputText


Can you please tell me what am i missing?

Thank you.


RE: Using a outputLabel and a outputText together

2006-11-28 Thread pallavi.roy

Hi ying,

   Do mention whether in your statement h:outputText
value=#{build.help} / 
   build is the var of your resource bundle or something else.

Best Regards,
Pallavi 


-Original Message-
From: ying lcs [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 29, 2006 10:48 AM
To: MyFaces Discussion
Subject: Using a outputLabel and a outputText together

Hi,

i have a
h:outputLabel.../
h:inputText.../

i see a label and then a text box. That is what I want.

However, when i want to add another line of text as the 'help' text, by
adding a h:outputText...  I don't see the help text.


This is what i am trying to do:
 h:outputLabel for=buildlanguage styleClass=desc
value=#{text['build.language']}/

h:outputText value=#{build.help} /


h:inputText
value=#{addBuildForm.build.language} id=buildlanguage
required=true styleClass=text large
v:commonsValidator type=required
arg=#{text['build.language']}/
/h:inputText


Can you please tell me what am i missing?

Thank you.


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com


Re: Using a outputLabel and a outputText together

2006-11-28 Thread ying lcs

Pallavi,

Thanks. that solves my problem.


On 11/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi ying,

   Do mention whether in your statement h:outputText
value=#{build.help} /
   build is the var of your resource bundle or something else.

Best Regards,
Pallavi


-Original Message-
From: ying lcs [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 10:48 AM
To: MyFaces Discussion
Subject: Using a outputLabel and a outputText together

Hi,

i have a
h:outputLabel.../
h:inputText.../

i see a label and then a text box. That is what I want.

However, when i want to add another line of text as the 'help' text, by
adding a h:outputText...  I don't see the help text.


This is what i am trying to do:
 h:outputLabel for=buildlanguage styleClass=desc
value=#{text['build.language']}/

h:outputText value=#{build.help} /


h:inputText
value=#{addBuildForm.build.language} id=buildlanguage
required=true styleClass=text large
v:commonsValidator type=required
arg=#{text['build.language']}/
/h:inputText


Can you please tell me what am i missing?

Thank you.


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com