[TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread schneidc

Hi,

on my pages (encoded in utf-8) I have no problem displaying german umlauts
like ä ö ü, but when entered in a tr:inputText... the actual string is
missing the umlauts. E.g. if I enter Böhm the string in the managed bean
equals Bhm.

How's that and what can I do about it?

Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27901371.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread Mario Ivankovits
Hi!


Probably have a look at this: 
http://www.jroller.com/mert/entry/utf_8_encoding_with_jsf

Also, given you use Tomact, the connector's encoding configurations might be 
interesting for you: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


Not sure if Trinidad has something special here, though.

Ciao,
Mario


-Ursprüngliche Nachricht-
Von: schneidc [mailto:simon.w...@gmx.de] 
Gesendet: Montag, 15. März 2010 09:20
An: users@myfaces.apache.org
Betreff: [TRINIDAD] German umlauts get ignored when entered in inputText


Hi,

on my pages (encoded in utf-8) I have no problem displaying german umlauts
like ä ö ü, but when entered in a tr:inputText... the actual string is
missing the umlauts. E.g. if I enter Böhm the string in the managed bean
equals Bhm.

How's that and what can I do about it?

Thanks
Simon
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27901371.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



smime.p7s
Description: S/MIME cryptographic signature


Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread schneidc

Hi Mario,

thanks for the tip, but unfortunately adding the filter didn't help. The
umlauts are still missing in the strings.
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27901990.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread Mario Ivankovits
Did you try the connector stuff either?

If you have configured e.g. an access-valve this might force the container
to choose a charset either, and it might choose the wrong one.

Ciao,
Mario

-Ursprüngliche Nachricht-
Von: schneidc [mailto:simon.w...@gmx.de] 
Gesendet: Montag, 15. März 2010 10:32
An: users@myfaces.apache.org
Betreff: Re: [TRINIDAD] German umlauts get ignored when entered in
inputText


Hi Mario,

thanks for the tip, but unfortunately adding the filter didn't help. The
umlauts are still missing in the strings.
-- 
View this message in context:
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-
%3CinputText%3E-tp27901371p27901990.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



smime.p7s
Description: S/MIME cryptographic signature


Trinidad convertDateTime ignoring Daylight Savings

2010-03-15 Thread Ed Dening

We have an issue showing the correct date / time using the trinidad
convertDateTime component. It seems to an issue with the daylight savings
which is ignored. If we have a date outside of daylight savings such as
'22/03/2009 00:00:00' it shows it correctly as '22/03/2009 00:00:00'. If we
set a date inside of daylight savings '22/09/2009 00:00:00' it shows the
previous day '21/09/2009 23:00:00'.

We had an issue where the trinidad inputDate component was displaying the
wrong date when you selected a date with the date picker. To fix this issue
we set the time zone that trinidad uses to be UTC (in trinidad-config.xml
time-zone value). This seems to have had a knock on effect by ignoring
daylight savings and causing dates to fail by subtracting an hour from the
time. We are using trinidad 1.0.11 which we are constrained to use by the
framework we are using.

Does anyone have any suggestions how to fix this? 

Input

DateChecker.reportDate1 = '22/03/2009 00:00:00’
DateChecker.reportDate2 = ‘21/09/2009 23:00:00’.

Trinidad components

tr:inputText id=reportDate1 readOnly=true label=Report Date 1:  
 value=#{DateChecker.reportDate1}
 tr:convertDateTime pattern=dd/MM/ HH:mm:ss /
/tr:inputText

tr:inputText id=reportDate2 readOnly=true label=Report Date 2:  
value=#{DateChecker.reportDate2}
 tr:convertDateTime pattern=dd/MM/ HH:mm:ss /
/tr:inputText

Output

Report Date 1: '22/03/2009 00:00:00
Report Date 2: '21/09/2009 23:00:00

-- 
View this message in context: 
http://old.nabble.com/Trinidad-convertDateTime-ignoring-Daylight-Savings-tp27902146p27902146.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread schneidc

Hi,

I'm using Websphere App Server and didn't find anything similar to the
Tomcat connectors, yet.
-- 
View this message in context: 
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-%3CinputText%3E-tp27901371p27902599.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TRINIDAD] German umlauts get ignored when entered in inputText

2010-03-15 Thread Mario Ivankovits
Sorry, I have absolutely no clue with Webspehere, but a search in google
with websphere utf-8 brings up the following:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatz
/51/admin/help/trun_svr_utf.html

Ciao,
Mario

-Ursprüngliche Nachricht-
Von: schneidc [mailto:simon.w...@gmx.de] 
Gesendet: Montag, 15. März 2010 11:45
An: users@myfaces.apache.org
Betreff: Re: [TRINIDAD] German umlauts get ignored when entered in
inputText


Hi,

I'm using Websphere App Server and didn't find anything similar to the
Tomcat connectors, yet.
-- 
View this message in context:
http://old.nabble.com/-TRINIDAD--German-umlauts-get-ignored-when-entered-in-
%3CinputText%3E-tp27901371p27902599.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



smime.p7s
Description: S/MIME cryptographic signature


Re: [TRINIDAD] Header rendering multiple times.

2010-03-15 Thread preeti agarwal
 There are no JSTL components being used.
Though we use facelets.

There is an entry in web.xml file :

 context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
!--param-valueserver/param-value--
/context-param
When this entry is removed (thereby reverting to default settings), the
problem gets solved. Any reason why client side State Saving is causing an
issue?



On Tue, Mar 9, 2010 at 10:23 PM, Andrew Robinson 
andrew.rw.robin...@gmail.com wrote:

 Do you use any JSTL tags?
 Have you any component binding in the page, especially ones that may
 live longer than one request?

 On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal
 preetiagarwa...@gmail.com wrote:
  Description of problem : I have an xhtml page in which I use trininad
  components (like tablelayout) and also tomahawk components (like form). I
  have used some usual HTML components along with it. First time the page
 is
  rendered correctly. But anysubsequent refresh causes the header to render
  multiple times. I suspect it might have something to do with state
 saving.
  Can anyone help me with this?
 
 
 
 
  PS: I originally suspected that it had something to do with mixing of
  incompatible HTML div and Trinidad components.Changing div to t:div
  didn't solve the issue.
 



Way to prevent further validations in the listener?

2010-03-15 Thread laredotornado

Hi,

I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener and
was wondering if there is a way I can prevent validations from happening if
certain conditions occur.  For example, if I reach the branch with the
comment ...

public void beforePhase(final PhaseEvent phaseEvent) {
if (phaseEvent.getPhaseId() == PhaseId.PROCESS_VALIDATIONS) {
if (errorsOccur(phaseEvent)) { 
// Prevent other validations from happening. 
}   // if
} // if
}

I would like to prevent the validations from taking place in this text field
...

h:inputText id=domeTourNumber_of_Adults
value=#{domeTour.numAdults}
required=true
size=60
maxlength=60
styleClass=textFields
numAdultsField
f:validator validatorId=TourNumberValidator /  
f:validator validatorId=TourTotalPeopleValidator /
f:validator validatorId=TourAdultChildRatioValidator /
   /h:inputText

Any insights you can provide are greatly appreciated, - Dave

-- 
View this message in context: 
http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Way to prevent further validations in the listener?

2010-03-15 Thread Jakob Korherr
Hi,

Do you want to skip the entire validation phase or do just want to disable
some specific validators?

In the first case you can set FacesContext.renderResponse(), however also
the INVOKE_APPLICATION phase will be skipped here.
In the second case you could set a value in the FacesContext's attribute Map
and consider this value in your validators to either skip or do the
validation.

I think these are the best solutions to your problem in MyFaces 1.1. In
MyFaces 2.0 the attribute disabled was added to f:converter. This would
perfectly fit you in this scenario, but unfortunately this is not available
in 1.1.

Hope this helps!

Regards,
Jakob

2010/3/15 laredotornado laredotorn...@gmail.com


 Hi,

 I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener and
 was wondering if there is a way I can prevent validations from happening if
 certain conditions occur.  For example, if I reach the branch with the
 comment ...

public void beforePhase(final PhaseEvent phaseEvent) {
if (phaseEvent.getPhaseId() == PhaseId.PROCESS_VALIDATIONS)
 {
if (errorsOccur(phaseEvent)) {
// Prevent other validations from happening.
}   // if
} // if
}

 I would like to prevent the validations from taking place in this text
 field
 ...

h:inputText id=domeTourNumber_of_Adults
 value=#{domeTour.numAdults}
required=true
size=60
maxlength=60
styleClass=textFields
 numAdultsField
f:validator validatorId=TourNumberValidator /
f:validator validatorId=TourTotalPeopleValidator /
f:validator validatorId=TourAdultChildRatioValidator /
   /h:inputText

 Any insights you can provide are greatly appreciated, - Dave

 --
 View this message in context:
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: [TRINIDAD] Header rendering multiple times.

2010-03-15 Thread Andrew Robinson
Sorry, not sure then, anyone else have an idea?

-A

On Mon, Mar 15, 2010 at 6:11 AM, preeti agarwal
preetiagarwa...@gmail.com wrote:
  There are no JSTL components being used.
 Though we use facelets.

 There is an entry in web.xml file :

  context-param
        param-namejavax.faces.STATE_SAVING_METHOD/param-name
        param-valueclient/param-value
        !--param-valueserver/param-value--
    /context-param
 When this entry is removed (thereby reverting to default settings), the
 problem gets solved. Any reason why client side State Saving is causing an
 issue?



 On Tue, Mar 9, 2010 at 10:23 PM, Andrew Robinson 
 andrew.rw.robin...@gmail.com wrote:

 Do you use any JSTL tags?
 Have you any component binding in the page, especially ones that may
 live longer than one request?

 On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal
 preetiagarwa...@gmail.com wrote:
  Description of problem : I have an xhtml page in which I use trininad
  components (like tablelayout) and also tomahawk components (like form). I
  have used some usual HTML components along with it. First time the page
 is
  rendered correctly. But anysubsequent refresh causes the header to render
  multiple times. I suspect it might have something to do with state
 saving.
  Can anyone help me with this?
 
 
 
 
  PS: I originally suspected that it had something to do with mixing of
  incompatible HTML div and Trinidad components.Changing div to t:div
  didn't solve the issue.
 




Re: Way to prevent further validations in the listener?

2010-03-15 Thread laredotornado

Skipping the entire validation phase would work for me here.  However, what
are the implications of also skipping the INVOKE_APPLICATION phase?

Thanks, - Dave



Jakob Korherr wrote:
 
 Hi,
 
 Do you want to skip the entire validation phase or do just want to disable
 some specific validators?
 
 In the first case you can set FacesContext.renderResponse(), however also
 the INVOKE_APPLICATION phase will be skipped here.
 In the second case you could set a value in the FacesContext's attribute
 Map
 and consider this value in your validators to either skip or do the
 validation.
 
 I think these are the best solutions to your problem in MyFaces 1.1. In
 MyFaces 2.0 the attribute disabled was added to f:converter. This
 would
 perfectly fit you in this scenario, but unfortunately this is not
 available
 in 1.1.
 
 Hope this helps!
 
 Regards,
 Jakob
 
 2010/3/15 laredotornado laredotorn...@gmail.com
 

 Hi,

 I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener and
 was wondering if there is a way I can prevent validations from happening
 if
 certain conditions occur.  For example, if I reach the branch with the
 comment ...

public void beforePhase(final PhaseEvent phaseEvent) {
if (phaseEvent.getPhaseId() ==
 PhaseId.PROCESS_VALIDATIONS)
 {
if (errorsOccur(phaseEvent)) {
// Prevent other validations from
 happening.
}   // if
} // if
}

 I would like to prevent the validations from taking place in this text
 field
 ...

h:inputText id=domeTourNumber_of_Adults
 value=#{domeTour.numAdults}
required=true
size=60
maxlength=60
styleClass=textFields
 numAdultsField
f:validator validatorId=TourNumberValidator /
f:validator validatorId=TourTotalPeopleValidator /
f:validator validatorId=TourAdultChildRatioValidator /
   /h:inputText

 Any insights you can provide are greatly appreciated, - Dave

 --
 View this message in context:
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27907138.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Way to prevent further validations in the listener?

2010-03-15 Thread Jakob Korherr
Ok cool. The implications are that your action methods and your action
listeners are not invoked in that request! Also, and I forgot that before,
your submitted values are not applied to your managed beans, because
UPDATE_MODEL is also not invoked.

But this is anyway the expected JSF behavior if a validation fails.

Regards,
Jakob

2010/3/15 laredotornado laredotorn...@gmail.com


 Skipping the entire validation phase would work for me here.  However, what
 are the implications of also skipping the INVOKE_APPLICATION phase?

 Thanks, - Dave



 Jakob Korherr wrote:
 
  Hi,
 
  Do you want to skip the entire validation phase or do just want to
 disable
  some specific validators?
 
  In the first case you can set FacesContext.renderResponse(), however also
  the INVOKE_APPLICATION phase will be skipped here.
  In the second case you could set a value in the FacesContext's attribute
  Map
  and consider this value in your validators to either skip or do the
  validation.
 
  I think these are the best solutions to your problem in MyFaces 1.1. In
  MyFaces 2.0 the attribute disabled was added to f:converter. This
  would
  perfectly fit you in this scenario, but unfortunately this is not
  available
  in 1.1.
 
  Hope this helps!
 
  Regards,
  Jakob
 
  2010/3/15 laredotornado laredotorn...@gmail.com
 
 
  Hi,
 
  I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener
 and
  was wondering if there is a way I can prevent validations from happening
  if
  certain conditions occur.  For example, if I reach the branch with the
  comment ...
 
 public void beforePhase(final PhaseEvent phaseEvent) {
 if (phaseEvent.getPhaseId() ==
  PhaseId.PROCESS_VALIDATIONS)
  {
 if (errorsOccur(phaseEvent)) {
 // Prevent other validations from
  happening.
 }   // if
 } // if
 }
 
  I would like to prevent the validations from taking place in this text
  field
  ...
 
 h:inputText id=domeTourNumber_of_Adults
  value=#{domeTour.numAdults}
 required=true
 size=60
 maxlength=60
 styleClass=textFields
  numAdultsField
 f:validator validatorId=TourNumberValidator /
 f:validator validatorId=TourTotalPeopleValidator /
 f:validator validatorId=TourAdultChildRatioValidator
 /
/h:inputText
 
  Any insights you can provide are greatly appreciated, - Dave
 
  --
  View this message in context:
 
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27907138.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Trinidad: auto suggest input box?

2010-03-15 Thread Mike Quentel
Does Trinidad have an auto-suggest functionality like this example:

http://www.tomcoote.co.uk/AutoSuggestBox.aspx

Many thanks,

Mike Quentel





Re: Way to prevent further validations in the listener?

2010-03-15 Thread laredotornado

Thanks, Jakob.  And here is the final follow-up.  How do I tell JSF to skip
the rest of the phases in my listener? - Dave



Jakob Korherr wrote:
 
 Ok cool. The implications are that your action methods and your action
 listeners are not invoked in that request! Also, and I forgot that before,
 your submitted values are not applied to your managed beans, because
 UPDATE_MODEL is also not invoked.
 
 But this is anyway the expected JSF behavior if a validation fails.
 
 Regards,
 Jakob
 
 2010/3/15 laredotornado laredotorn...@gmail.com
 

 Skipping the entire validation phase would work for me here.  However,
 what
 are the implications of also skipping the INVOKE_APPLICATION phase?

 Thanks, - Dave



 Jakob Korherr wrote:
 
  Hi,
 
  Do you want to skip the entire validation phase or do just want to
 disable
  some specific validators?
 
  In the first case you can set FacesContext.renderResponse(), however
 also
  the INVOKE_APPLICATION phase will be skipped here.
  In the second case you could set a value in the FacesContext's
 attribute
  Map
  and consider this value in your validators to either skip or do the
  validation.
 
  I think these are the best solutions to your problem in MyFaces 1.1. In
  MyFaces 2.0 the attribute disabled was added to f:converter. This
  would
  perfectly fit you in this scenario, but unfortunately this is not
  available
  in 1.1.
 
  Hope this helps!
 
  Regards,
  Jakob
 
  2010/3/15 laredotornado laredotorn...@gmail.com
 
 
  Hi,
 
  I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener
 and
  was wondering if there is a way I can prevent validations from
 happening
  if
  certain conditions occur.  For example, if I reach the branch with the
  comment ...
 
 public void beforePhase(final PhaseEvent phaseEvent) {
 if (phaseEvent.getPhaseId() ==
  PhaseId.PROCESS_VALIDATIONS)
  {
 if (errorsOccur(phaseEvent)) {
 // Prevent other validations from
  happening.
 }   // if
 } // if
 }
 
  I would like to prevent the validations from taking place in this text
  field
  ...
 
 h:inputText id=domeTourNumber_of_Adults
  value=#{domeTour.numAdults}
 required=true
 size=60
 maxlength=60
 styleClass=textFields
  numAdultsField
 f:validator validatorId=TourNumberValidator /
 f:validator validatorId=TourTotalPeopleValidator /
 f:validator validatorId=TourAdultChildRatioValidator
 /
/h:inputText
 
  Any insights you can provide are greatly appreciated, - Dave
 
  --
  View this message in context:
 
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27907138.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27909639.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Way to prevent further validations in the listener?

2010-03-15 Thread Jakob Korherr
This is exactly what FacesContext.renderResponse() does. It skips all phases
except the last one - RENDER_RESPONSE.

Regards,
Jakob

2010/3/15 laredotornado laredotorn...@gmail.com


 Thanks, Jakob.  And here is the final follow-up.  How do I tell JSF to skip
 the rest of the phases in my listener? - Dave



 Jakob Korherr wrote:
 
  Ok cool. The implications are that your action methods and your action
  listeners are not invoked in that request! Also, and I forgot that
 before,
  your submitted values are not applied to your managed beans, because
  UPDATE_MODEL is also not invoked.
 
  But this is anyway the expected JSF behavior if a validation fails.
 
  Regards,
  Jakob
 
  2010/3/15 laredotornado laredotorn...@gmail.com
 
 
  Skipping the entire validation phase would work for me here.  However,
  what
  are the implications of also skipping the INVOKE_APPLICATION phase?
 
  Thanks, - Dave
 
 
 
  Jakob Korherr wrote:
  
   Hi,
  
   Do you want to skip the entire validation phase or do just want to
  disable
   some specific validators?
  
   In the first case you can set FacesContext.renderResponse(), however
  also
   the INVOKE_APPLICATION phase will be skipped here.
   In the second case you could set a value in the FacesContext's
  attribute
   Map
   and consider this value in your validators to either skip or do the
   validation.
  
   I think these are the best solutions to your problem in MyFaces 1.1.
 In
   MyFaces 2.0 the attribute disabled was added to f:converter. This
   would
   perfectly fit you in this scenario, but unfortunately this is not
   available
   in 1.1.
  
   Hope this helps!
  
   Regards,
   Jakob
  
   2010/3/15 laredotornado laredotorn...@gmail.com
  
  
   Hi,
  
   I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener
  and
   was wondering if there is a way I can prevent validations from
  happening
   if
   certain conditions occur.  For example, if I reach the branch with
 the
   comment ...
  
  public void beforePhase(final PhaseEvent phaseEvent) {
  if (phaseEvent.getPhaseId() ==
   PhaseId.PROCESS_VALIDATIONS)
   {
  if (errorsOccur(phaseEvent)) {
  // Prevent other validations from
   happening.
  }   // if
  } // if
  }
  
   I would like to prevent the validations from taking place in this
 text
   field
   ...
  
  h:inputText id=domeTourNumber_of_Adults
   value=#{domeTour.numAdults}
  required=true
  size=60
  maxlength=60
  styleClass=textFields
   numAdultsField
  f:validator validatorId=TourNumberValidator /
  f:validator validatorId=TourTotalPeopleValidator /
  f:validator
 validatorId=TourAdultChildRatioValidator
  /
 /h:inputText
  
   Any insights you can provide are greatly appreciated, - Dave
  
   --
   View this message in context:
  
 
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
   Sent from the MyFaces - Users mailing list archive at Nabble.com.
  
  
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27907138.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27909639.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Way to prevent further validations in the listener?

2010-03-15 Thread Mike Kienenberger
If you want to skip RENDER_RESPONSE too,

FacesContext.getCurrentInstance().responseComplete();

See http://wiki.apache.org/myfaces/Sending_Files for an example.


On Mon, Mar 15, 2010 at 3:09 PM, Jakob Korherr jakob.korh...@gmail.com wrote:
 This is exactly what FacesContext.renderResponse() does. It skips all phases
 except the last one - RENDER_RESPONSE.

 Regards,
 Jakob

 2010/3/15 laredotornado laredotorn...@gmail.com


 Thanks, Jakob.  And here is the final follow-up.  How do I tell JSF to skip
 the rest of the phases in my listener? - Dave



 Jakob Korherr wrote:
 
  Ok cool. The implications are that your action methods and your action
  listeners are not invoked in that request! Also, and I forgot that
 before,
  your submitted values are not applied to your managed beans, because
  UPDATE_MODEL is also not invoked.
 
  But this is anyway the expected JSF behavior if a validation fails.
 
  Regards,
  Jakob
 
  2010/3/15 laredotornado laredotorn...@gmail.com
 
 
  Skipping the entire validation phase would work for me here.  However,
  what
  are the implications of also skipping the INVOKE_APPLICATION phase?
 
  Thanks, - Dave
 
 
 
  Jakob Korherr wrote:
  
   Hi,
  
   Do you want to skip the entire validation phase or do just want to
  disable
   some specific validators?
  
   In the first case you can set FacesContext.renderResponse(), however
  also
   the INVOKE_APPLICATION phase will be skipped here.
   In the second case you could set a value in the FacesContext's
  attribute
   Map
   and consider this value in your validators to either skip or do the
   validation.
  
   I think these are the best solutions to your problem in MyFaces 1.1.
 In
   MyFaces 2.0 the attribute disabled was added to f:converter. This
   would
   perfectly fit you in this scenario, but unfortunately this is not
   available
   in 1.1.
  
   Hope this helps!
  
   Regards,
   Jakob
  
   2010/3/15 laredotornado laredotorn...@gmail.com
  
  
   Hi,
  
   I'm using MyFaces 1.1.5 with Tomahawk 1.1.7.  I have a phase listener
  and
   was wondering if there is a way I can prevent validations from
  happening
   if
   certain conditions occur.  For example, if I reach the branch with
 the
   comment ...
  
          public void beforePhase(final PhaseEvent phaseEvent) {
                  if (phaseEvent.getPhaseId() ==
   PhaseId.PROCESS_VALIDATIONS)
   {
                          if (errorsOccur(phaseEvent)) {
                                  // Prevent other validations from
   happening.
                          }   // if
                  } // if
          }
  
   I would like to prevent the validations from taking place in this
 text
   field
   ...
  
                  h:inputText id=domeTourNumber_of_Adults
   value=#{domeTour.numAdults}
                                              required=true
                                              size=60
                                              maxlength=60
                                              styleClass=textFields
   numAdultsField
                  f:validator validatorId=TourNumberValidator /
                  f:validator validatorId=TourTotalPeopleValidator /
                  f:validator
 validatorId=TourAdultChildRatioValidator
  /
                 /h:inputText
  
   Any insights you can provide are greatly appreciated, - Dave
  
   --
   View this message in context:
  
 
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27905462.html
   Sent from the MyFaces - Users mailing list archive at Nabble.com.
  
  
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27907138.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Way-to-prevent-further-validations-in-the-listener--tp27905462p27909639.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.





Re: [TRINIDAD] Header rendering multiple times.

2010-03-15 Thread preeti agarwal
Can anyone help in this issue?


On Mon, Mar 15, 2010 at 9:56 PM, Andrew Robinson 
andrew.rw.robin...@gmail.com wrote:

 Sorry, not sure then, anyone else have an idea?

 -A

 On Mon, Mar 15, 2010 at 6:11 AM, preeti agarwal
 preetiagarwa...@gmail.com wrote:
   There are no JSTL components being used.
  Though we use facelets.
 
  There is an entry in web.xml file :
 
   context-param
 param-namejavax.faces.STATE_SAVING_METHOD/param-name
 param-valueclient/param-value
 !--param-valueserver/param-value--
 /context-param
  When this entry is removed (thereby reverting to default settings), the
  problem gets solved. Any reason why client side State Saving is causing
 an
  issue?
 
 
 
  On Tue, Mar 9, 2010 at 10:23 PM, Andrew Robinson 
  andrew.rw.robin...@gmail.com wrote:
 
  Do you use any JSTL tags?
  Have you any component binding in the page, especially ones that may
  live longer than one request?
 
  On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal
  preetiagarwa...@gmail.com wrote:
   Description of problem : I have an xhtml page in which I use trininad
   components (like tablelayout) and also tomahawk components (like
 form). I
   have used some usual HTML components along with it. First time the
 page
  is
   rendered correctly. But anysubsequent refresh causes the header to
 render
   multiple times. I suspect it might have something to do with state
  saving.
   Can anyone help me with this?
  
  
  
  
   PS: I originally suspected that it had something to do with mixing of
   incompatible HTML div and Trinidad components.Changing div to
 t:div
   didn't solve the issue.