Re: [TRINIDAD] JQuery (was: Trinidad is dead -- what do you use instead?)

2012-06-20 Thread Walter Mourão
Hi Leonard,
I did not understand very well.

Just take what's useful of
 jQuery (css stuff) and forget about the rest.


How about the components ? Do you mean we can 'decorate' the inputs and
other things using only the CSS ? The
datepickerhttp://jqueryui.com/demos/datepicker/,
for example, needs some javascript..

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Jun 20, 2012 at 12:58 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 I think it is possible, but note Trinidad skins has a lot more
 details. In theory
 you could extract the meta-info of the skin and try to generate a trinidad
 skin,
 from a parametrized template, but it is necessary to adjust tha
 template at hand.
 For example, I tried to take casablanca skin, because its selectors are
 more
 simple to understand.

 The idea about create a custom RenderKit from scratch sounds like a lot of
 work,
 but if we make some simplifications it could be possible. After all,
 it should be
 possible to reuse code from other renderkits. What I like about this
 is we can do
 it without change any trinidad internals at all. Just take what's useful of
 jQuery (css stuff) and forget about the rest.

 Sounds like something doable in a reasonable amount of time, and maybe it
 is
 something with high priority, given the amount of people interested.
 After all, for
 now MyFaces Core is in good shape, and there is some time until JSF 2.2.

 regards,

 Leonardo Uribe

 2012/6/19 Scott O'Bryan darkar...@gmail.com:
  +1.  Theme roller would be cool.  The problem is the current skinning
  selectors.  I'm wondering if themeroller themes couldn't be parsed
  into a skin.
 
  Sent from my iPhone
 
  On Jun 19, 2012, at 8:08 AM, Leonardo Uribe lu4...@gmail.com wrote:
 
  Hi
 
  Interesting question. In my opinion, the most interesting part to use
  from jQuery is its jQuery UI CSS Framework. Why? because defining some
  small set of selectors and a standard html structure to apply them,
  you can create a custom skin using ThemeRoller application. I tried to
  do something as a proof of concept in
  https://issues.apache.org/jira/browse/TRINIDAD-2120 , but after some
  time I found that anyway it is necessary to create a whole RenderKit
  that can fit better with jQuery UI. In that way, some good features
  Trinidad already has will be lost, because jQuery UI is the one who
  impose the restrictions. At the end you can't have everything. In my
  opinion, I would take only jQuery UI CSS Framework, even if that means
  lose some functionality in that mode. Change Trinidad internals to use
  jQuery is overkill.
 
  Suggestions are welcome.
 
  regards,
 
  Leonardo Uribe
 
  2012/6/19  siyaphakama.sos...@accenture.com:
  Hello Everyone
 
  I am a JSF and Trinidad Newbie, I just joined a project at work where
 it's going to be using Trinidad. I was assigned a task to design some forms
 and so far I haven't had the best experience with Trinidad, The Date Input
 keeps giving me errors even though I use the same code as the Trinidad
 Showcase(
 http://example.irian.at/trinidad-components-showcase-2012061903/faces/pages/demoStart.xhtml).
 The Tabbed Panel is not rendering but its showing the content. My
 conclusion is I'm having issues with components that use JavaScript even
 the Tree and there are no errors showing on Firebug. Please Help, I'm not
 sure where I'm going wrong.
 
  My Opinion:
 
  Trinidad looks like a great component library for JSF, but I think its
 documentation can use some upgrade, it's confusing for a newbie like me,
 There is no simple starting point, e.g. a basic guide, where it going to
 show basic steps to follow, like Primefaces Guide(
 http://primefaces.org/documentation.html). When I played around with
 Primefaces everything was straightforward but I wish to utilize Trinidad.
 
  Missing Components:
 
  Some will agree with me when I say I think a time picker needs to be
 added to the Trinidad Library.
  An improved Date Picker would be a plus, Compare the JQuery Date
 picker and the Trinidad Date Picker.
 
  Just My Opition
 
  Thank You
 
  Siya
 
 
 
 
  
  Subject to local law, communications with Accenture and its affiliates
 including telephone calls and emails (including content), may be monitored
 by our systems for the purposes of security and the assessment of internal
 compliance with Accenture policy.
 
 __
 
  www.accenture.com
 



Re: [Trinidad] Best Javascript package to use in a new render kit

2012-03-30 Thread Walter Mourão
Just a follow-up on my findings so far... I liked very much the template
based approach of DojoFaces http://www.dojofaces.org/ and it looks to me
I can continue using the things I like in Trinidad (Dialogs, etc.) in
conjunction with DojoFaces components without problems.

Best regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Mar 23, 2011 at 4:36 AM, Scott O'Bryan darkar...@gmail.com wrote:

 Totally Werner.  I suspect we'll add cases as needed in order to
 accommodate the entire tech stack for MyFaces.

 Okay, let me see if I can get an initial drop of code put somewhere
 and we can go from there.

 Scott

 On Mar 16, 2011, at 3:20 AM, Werner Punz werner.p...@gmail.com wrote:

  Hi Scott, MyFaces in its core _Runtime.js also uses some inheritance
 framework, you basically currently get single inheritance, namespacing
  singletons and delegation.
  What I have not provided yet due to the lack of need is mixins.
 
  Also I have code to lazy load scripts etc...
 
  I coded it because I felt it made sense to stay on the oo side of things
 even if it was just for jsf.js which has a limited scope and
  so others who do not want to rely on a big framework like yui can get
  basic OO into their own code without having to roll their own solution
  (mostly Tomahawk was my main concern here which has a load of scripts
 which would benefit tremendously from being ooed)
 
  But I would not recommend our core as sole base for an entirely newly
 written renderer part of a component framework, because it is limited in
 its scope, of providing the core language mechanism and some dom routines
 to get a good maintainable structuring into jsf.js and make browser
 optimizations somewhat easier.
 
  Just wanted to add that as info.
 
  Werner
 
 
 
  Am 12.03.11 23:11, schrieb Scott O'Bryan:
  Yes, ADF Faces.  The two share a similar API but ADFFces is much more
 rich.
   It has animations, push technologies, and some other things.  The
  client-side JavaScript has been  re-engineered as well and while it uses
  Trinidad as the foundation, there is a lot more on the client side.
 
  Suffice to say that ADFFaces javascipt uses an inheritance framework
 that is
  a little more robust then standard JS inheritance patterns.  We would
 have
  to rip that out and allow he MyFaces projects to replace it with their
 own
  grammars.
 
  Scott
 
  On Mar 12, 2011, at 11:14 AM, Walter Mour�owalter.mou...@gmail.com
  wrote:
 
  Hi Scott,
 
  I know Oracle, for instance, has a very large renderkit extension
  which is based on Trinidad Internals.  Now it's mostly geared toward
  support of web business applications, but it really shows what can be
  done with the framework.
 
 
  Do you mean ADF Rich Faces ?
 
  Why do you say it's mostly geared toward support of web business
  applications ? what are the differences with the application that are
 done
  currently with Trinidad ? Do you know if the ADF Rich Faces client code
 uses
  some external (non-Oracle) javascript package ?
 
  Thanks in advance,
 
  Walter Mour�o
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Thu, Mar 10, 2011 at 10:59 AM, Scott O'Bryandarkar...@gmail.com
  wrote:
 
  Walter,
 
  Yeah, while creating a new renderkit isn't trivial, the Trinidad
  internals and API really lend themselves to allowing extensions to the
  framework.
 
  I know Oracle, for instance, has a very large renderkit extension
  which is based on Trinidad Internals.  Now it's mostly geared toward
  support of web business applications, but it really shows what can be
  done with the framework.
 
  I really would like to see a project like this get some traction
  personally.  ;)
 
  Scott
 
  On Mar 6, 2011, at 5:39 AM, Walter Mour�owalter.mou...@gmail.com
  wrote:
 
  Thank you Dominik.
 
  Just to be clear: the aim is not simply compete...
  I think Trinidad has:
  - rock solid back-end;
  - support to non-javascript browser (I have applications running in
 old
  data
  collectors - windows mobile)
  ...
  and I would like to keep most of the java code untouched when
 migrating
  my
  applications to an up to date UI.
 
  I am personally highly involved in another open source project and I
  don't
  have much experience with JSF/Trinidad internals. I am not sure I can
  help
  much in such a task (create the new render kit), but I'm
 experimenting to
  see if I should go ahead with Trinidad or just migrate to another
  library.
 
  Best regards,
 
  Walter Mour�o
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  2011/3/6 Dominik Dorndomi...@dominikdorn.com
 
  If you're really want to compete with PrettyFaces, IceFaces,
 RichFaces
  etc.,
  I suggest to take a look at
 
  http://demo.sproutcore.com/sample_controls/
  http://www.sproutcore.com
 
  and rebuilt those for JSF.
  Sproutcore is currently quite hyped in twitter and gains a lot of
  interest

Re: [Trinidad] Best Javascript package to use in a new render kit

2012-03-30 Thread Walter Mourão
Thank you Cedric,
in fact I'm following a similar path than yours since some years ago. By
coincidence (or not!) I've created a suggestion box only with
Trinidad+Facelets+Javascript http://code.google.com/p/trinidadcomponents/.
The problem is from time to time some co-worker or client asks me about
fancy components (drag'n drop, sliders, etc.) and is quite attractive to
use it from a ready to run package.

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Mar 30, 2012 at 12:04 PM, Cédric Durmont cdurm...@gmail.com wrote:

 Hi Walter,

 Just my $0.02 here, but at my company we've been using Trinidad for 2
 years now, and for one of our product we included DojoFaces (we needed
 the autoSuggest component).
 We eventually backpedalled and rewrote our own autosuggest component
 based on Trinidad + facelets, and use sometimes some jquery plugins,
 all for the following reasons :
 - dojofaces autosuggest had limitations that were hard to overcome
 (e.g. it stopped working if I tried to feed it with twice the same
 value), and didn't work reliably (sometimes the list would not open,
 for no apparent reason)
 - dojo is a monolithic lib, which is quite large, to say the least.

 Anyway, YMMV
 Regards,
 Cedric Durmont


 2012/3/30 Walter Mourão walter.mou...@gmail.com:
  Just a follow-up on my findings so far... I liked very much the template
  based approach of DojoFaces http://www.dojofaces.org/ and it looks to
 me
  I can continue using the things I like in Trinidad (Dialogs, etc.) in
  conjunction with DojoFaces components without problems.
 
  Best regards,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
  
 



[Trinidad] tr:inputDate alternative

2012-03-15 Thread Walter Mourão
Hi folks,
tr:inputDate date selection works opening a new window/frame and I would
like to use only javascript/divs. Tomahawk is an option but have some
quirks and I would like to know if some of you have used another options...
Please let me know you use some javascript (detached from big packages like
jquery) to allow date selection. If I find a good option I will create a
composite component and bring it back to the community.

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] tr:inputDate alternative

2012-03-15 Thread Walter Mourão
Hi Roland,
in fact ENABLE_LIGHTWEIGHT_DIALOGS will open a iframe... it does not use a
new window, but it opens a iframe and it has some delay to open caused by
communication with the server.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Mar 15, 2012 at 10:22 AM, Krebs Roland / BWO Systems AG 
roland.kr...@bwo.ch wrote:

 Hi Mourao

 No frame will be opened anymore after setting (in web.xml):
 context-param

  
 param-nameorg.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS/param-name
param-valuetrue/param-value
 /context-param

 That's how I'm using it.
 Roland

 -Ursprüngliche Nachricht-
 Von: Walter Mourão [mailto:walter.mou...@gmail.com]
 Gesendet: Donnerstag, 15. März 2012 12:56
 An: MyFaces Discussion
 Betreff: [Trinidad] tr:inputDate alternative

 Hi folks,
 tr:inputDate date selection works opening a new window/frame and I would
 like to use only javascript/divs. Tomahawk is an option but have some
 quirks and I would like to know if some of you have used another options...
 Please let me know you use some javascript (detached from big packages like
 jquery) to allow date selection. If I find a good option I will create a
 composite component and bring it back to the community.

 Thanks in advance,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



Re: Erros messages after ajax

2012-01-27 Thread Walter Mourão
For the record: using f:ajax/ instead of partialTriggers and
partialSubmit it works fine.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2012/1/25 Walter Mourão walter.mou...@gmail.com

 Hi folks,

 about this bug: Trinidad has no way to re-render components to show
 server validation errors or conversion errors on a partial 
 updatehttps://issues.apache.org/jira/browse/TRINIDAD-697

 Does it have a known workaround ? Does it happen with Tomahawk components ?

 Thanks,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




Re: Javascript error in jsf.js - MyFaces 2.1.4

2011-12-01 Thread Walter Mourão
Hi Leonardo,
thank you. I just added myfaces 2.1.5-SNAPSHOT and now I've got

java.lang.UnsupportedOperationException

viewId=/com/meulaudo/web/laudo/editando-laudo.xhtml
location=/home/walter/workspace/meulaudo-jsf2/web/target/meulaudo/com/meulaudo/web/laudo/editando-laudo.xhtml
phaseId=RENDER_RESPONSE(6)

Caused by:
java.lang.UnsupportedOperationException
at
javax.faces.view.ViewDeclarationLanguage.retargetMethodExpressions(ViewDeclarationLanguage.java:75)

in a composite component (was working before myfaces upgrade).
In ViewDeclarationLanguage:75 (an abstract class) I found:

public void retargetMethodExpressions(FacesContext context, UIComponent
topLevelComponent)
{
throw new UnsupportedOperationException();
}

And now I'm quite lost... can you help me ?


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Nov 30, 2011 at 5:56 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 Yes, there are some js bugs in 2.1.4, but they have been solved. Check
 with a snapshot build. I tried some ajax demos with the latest code
 and they work as expected in both IE8 and IE9. The fixes will be
 included soon in a quick fix release.

 regards,

 Leonardo Uribe

 2011/11/30 Walter Mourão walter.mou...@gmail.com:
  Hi folks,
  I'm using myfaces 2.1.4 and my application is running fine in Firefox. In
  IE8 and IE9, I've got:
 
  Mensagem: 'elements' é nulo ou não é um objeto
  Linha: 6411
  Caractere: 21
  Código: 0
  URI:
 
 http://192.168.56.1:8080/meulaudo/javax.faces.resource/jsf.js.jsf?ln=javax.facesstage=Development
 
 
  'elements' é nulo ou não é um objeto = 'elements' is null or is not an
  object
 
  Is it a known error ? Hints ?
 
  Thanks in advance,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 



Re: Javascript error in jsf.js - MyFaces 2.1.4

2011-12-01 Thread Walter Mourão
I'm using Maven 3 and I followed your instructions to update to 2.1.5 (I
checked WEB-INF/lib), the error persists...

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Dec 1, 2011 at 1:05 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 Are you are using NetBeans? I have seen than snapshot versions
 sometimes confuses that IDE. Try register this into your pom.xml

repositories
repository
   idapache.snapshots/id
   nameApache Snapshot Repository/name
   urlhttps://repository.apache.org/content/repositories/staging
 /url
/repository
/repositories

 and set myfaces to 2.1.5 (a vote for those artifacts was sent, so
 those artifacts are on staging repo temporally). On nexus the
 artifacts are on:

 https://repository.apache.org/content/repositories/orgapachemyfaces-277

 regards,

 Leonardo Uribe

 2011/12/1 Walter Mourão walter.mou...@gmail.com:
  Hi Leonardo,
  thank you. I just added myfaces 2.1.5-SNAPSHOT and now I've got
 
  java.lang.UnsupportedOperationException
 
  viewId=/com/meulaudo/web/laudo/editando-laudo.xhtml
 
 location=/home/walter/workspace/meulaudo-jsf2/web/target/meulaudo/com/meulaudo/web/laudo/editando-laudo.xhtml
  phaseId=RENDER_RESPONSE(6)
 
  Caused by:
  java.lang.UnsupportedOperationException
  at
 
 javax.faces.view.ViewDeclarationLanguage.retargetMethodExpressions(ViewDeclarationLanguage.java:75)
 
  in a composite component (was working before myfaces upgrade).
  In ViewDeclarationLanguage:75 (an abstract class) I found:
 
 public void retargetMethodExpressions(FacesContext context,
 UIComponent
  topLevelComponent)
 {
 throw new UnsupportedOperationException();
 }
 
  And now I'm quite lost... can you help me ?
 
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Wed, Nov 30, 2011 at 5:56 PM, Leonardo Uribe lu4...@gmail.com
 wrote:
 
  Hi
 
  Yes, there are some js bugs in 2.1.4, but they have been solved. Check
  with a snapshot build. I tried some ajax demos with the latest code
  and they work as expected in both IE8 and IE9. The fixes will be
  included soon in a quick fix release.
 
  regards,
 
  Leonardo Uribe
 
  2011/11/30 Walter Mourão walter.mou...@gmail.com:
   Hi folks,
   I'm using myfaces 2.1.4 and my application is running fine in
 Firefox. In
   IE8 and IE9, I've got:
  
   Mensagem: 'elements' é nulo ou não é um objeto
   Linha: 6411
   Caractere: 21
   Código: 0
   URI:
  
 
 http://192.168.56.1:8080/meulaudo/javax.faces.resource/jsf.js.jsf?ln=javax.facesstage=Development
  
  
   'elements' é nulo ou não é um objeto = 'elements' is null or is
 not an
   object
  
   Is it a known error ? Hints ?
  
   Thanks in advance,
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
 
 



Re: Javascript error in jsf.js - MyFaces 2.1.4

2011-12-01 Thread Walter Mourão
Well... it looks like the problem only happens with MyFaces 2.1.5 +
Trinidad 2.0.1-SNAPSHOT... I reverted Trinidad to 2.0.0 and it is working
fine.

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Dec 1, 2011 at 4:24 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 I have checked the artifacts with all tests I have available and they
 work well. I suppose there is something wrong in your local
 environment (classloading issue?).

 regards,

 Leonardo Uribe

 2011/12/1 Walter Mourão walter.mou...@gmail.com:
  I'm using Maven 3 and I followed your instructions to update to 2.1.5 (I
  checked WEB-INF/lib), the error persists...
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Thu, Dec 1, 2011 at 1:05 PM, Leonardo Uribe lu4...@gmail.com wrote:
 
  Hi
 
  Are you are using NetBeans? I have seen than snapshot versions
  sometimes confuses that IDE. Try register this into your pom.xml
 
 repositories
 repository
idapache.snapshots/id
nameApache Snapshot Repository/name
url
 https://repository.apache.org/content/repositories/staging
  /url
 /repository
 /repositories
 
  and set myfaces to 2.1.5 (a vote for those artifacts was sent, so
  those artifacts are on staging repo temporally). On nexus the
  artifacts are on:
 
  https://repository.apache.org/content/repositories/orgapachemyfaces-277
 
  regards,
 
  Leonardo Uribe
 
  2011/12/1 Walter Mourão walter.mou...@gmail.com:
   Hi Leonardo,
   thank you. I just added myfaces 2.1.5-SNAPSHOT and now I've got
  
   java.lang.UnsupportedOperationException
  
   viewId=/com/meulaudo/web/laudo/editando-laudo.xhtml
  
 
 location=/home/walter/workspace/meulaudo-jsf2/web/target/meulaudo/com/meulaudo/web/laudo/editando-laudo.xhtml
   phaseId=RENDER_RESPONSE(6)
  
   Caused by:
   java.lang.UnsupportedOperationException
   at
  
 
 javax.faces.view.ViewDeclarationLanguage.retargetMethodExpressions(ViewDeclarationLanguage.java:75)
  
   in a composite component (was working before myfaces upgrade).
   In ViewDeclarationLanguage:75 (an abstract class) I found:
  
  public void retargetMethodExpressions(FacesContext context,
  UIComponent
   topLevelComponent)
  {
  throw new UnsupportedOperationException();
  }
  
   And now I'm quite lost... can you help me ?
  
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
  
  
   On Wed, Nov 30, 2011 at 5:56 PM, Leonardo Uribe lu4...@gmail.com
  wrote:
  
   Hi
  
   Yes, there are some js bugs in 2.1.4, but they have been solved.
 Check
   with a snapshot build. I tried some ajax demos with the latest code
   and they work as expected in both IE8 and IE9. The fixes will be
   included soon in a quick fix release.
  
   regards,
  
   Leonardo Uribe
  
   2011/11/30 Walter Mourão walter.mou...@gmail.com:
Hi folks,
I'm using myfaces 2.1.4 and my application is running fine in
  Firefox. In
IE8 and IE9, I've got:
   
Mensagem: 'elements' é nulo ou não é um objeto
Linha: 6411
Caractere: 21
Código: 0
URI:
   
  
 
 http://192.168.56.1:8080/meulaudo/javax.faces.resource/jsf.js.jsf?ln=javax.facesstage=Development
   
   
'elements' é nulo ou não é um objeto = 'elements' is null or is
  not an
object
   
Is it a known error ? Hints ?
   
Thanks in advance,
   
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
   
  
  
 
 



Javascript error in jsf.js - MyFaces 2.1.4

2011-11-30 Thread Walter Mourão
Hi folks,
I'm using myfaces 2.1.4 and my application is running fine in Firefox. In
IE8 and IE9, I've got:

Mensagem: 'elements' é nulo ou não é um objeto
 Linha: 6411
 Caractere: 21
 Código: 0
 URI:
 http://192.168.56.1:8080/meulaudo/javax.faces.resource/jsf.js.jsf?ln=javax.facesstage=Development


'elements' é nulo ou não é um objeto = 'elements' is null or is not an
object

Is it a known error ? Hints ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] Should inner subform submit an outer subform ?

2011-10-17 Thread Walter Mourão
Bump! (sorry bumping, but all I wanna know is the expected behavior)

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2011/10/13 Walter Mourão walter.mou...@gmail.com

 Hi folks,
 in the situation:

 subform1
 ...
 subform2
 ...
 button2/
 /subform2

 /subform1

 should a click in button2 submit subform1 ?
 This is happening in Trinidad 2.0 and I'm not sure it is a correct
 behavior... at least I didn't expect it, because the validation is being
 enforced in the subform1 fields...

 Thanks in advance,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




[Trinidad] Should inner subform submit an outer subform ?

2011-10-13 Thread Walter Mourão
Hi folks,
in the situation:

subform1
...
subform2
...
button2/
/subform2

/subform1

should a click in button2 submit subform1 ?
This is happening in Trinidad 2.0 and I'm not sure it is a correct
behavior... at least I didn't expect it, because the validation is being
enforced in the subform1 fields...

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] disabled attribute and form submit does not work correctly

2011-06-15 Thread Walter Mourão
Hi,
I'm not sure if it relates with your situation, but every time I change the
disable/rendered of a component using PPR, I add partialTriggers to the
enclosing component. In your case I would add partialTriggers=selection to
the tr:form.

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Jun 15, 2011 at 11:23 AM, Detlef Grittner detlef.gritt...@sohard.de
 wrote:

 I am loading a page with a tr:inputNumberSpinbox component, whose disabled
 attribute is intially set to true.
 With a tr:selectOneRadio I trigger the disabled flag and the value 1 will
 set it to false.
 This is done with PPR and autoSubmit in the tr:selectOneRadio.

 This part of xhtml page on the server side looks like this:

 tr:form id=MainForm usesUpload=true
tr:selectOneRadio id=selection value=#{backingBean.selection}
 layout=horizontal autoSubmit=true
f:selectItem id=item1 itemLabel=And itemValue=0 /
f:selectItem id=item2 itemLabel=Or itemValue=1 /
/tr:selectOneRadio
tr:inputNumberSpinbox  id=SpinThreshold
 disabled=#{backingBean.selection == 0} partialTriggers=selection
 label=#{msgs.threshold} minimum=1 maximum=10
 value=#{BackingBean.threshold} /
tr:commandButton id=uploadButton text=#{msgs.startSearch}
 action=#{backingBean.action} /
 /tr:form

 1. When the value of backingBean.selection is 0 on first initialization,
 then the spin box is disabled and on pressing the Or Radio Button the
 following happens:
 The tr:inputNumberSpinBox on the client is correctly set to enabled by
 removing the disabled attribute from the HTML and the control can get the
 input focus.
 But the value of the spin control is never send back to the server, i.e.
 backingBean.threshold always stays 1, regardiccdless of the value one sets
 in the UI.

 2. When the value of backingBean.selection is 1 on first initialization,
 then the spin box is enabled at first.
 Now one can change the value of tr:inputNumberSpinBox and the value of
 backingBean.selection changes accordingly.
 When the And button is pressed the disabled flag is included for
 tr:inputNumberSpinBox in the HTML code and the values are no longer passed
 to backingBean.threshold.
 On pressing the Or button the tr:inputNumberSpinBox is enabled again and
 passes the values to backingBean.threshold.

 That is only the 1st case is not working. I assume that this is a bug? Or
 am I overlooking something here?







Re: ViewExpiredException only in some IE8

2011-06-13 Thread Walter Mourão
I didn't really realized what is happening but it is related with html code
I'm rendering directly+the use of the trinidad flow scope parameter. To show
some images stored in the page flow scope I was using the
encodeCurrentPageFlowScopeURL method. Once I stopped using it and started
putting the images in the session and using a simple servlet to show the
images, the problem stopped... Since it was an urgent situation, I released
this way.

Many thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Jun 13, 2011 at 6:34 PM, Matt Cooper mcoo...@apache.org wrote:

 I believe that if you are seeing a different browser mode for localhost
 vs. machinename then this is either coming from the IE compatibility view
 preferences where the user has chosen to run pages from a given domain in
 compatibility view or the domain is listed in one of Microsoft's xml files
 like http://ie9cvlist.ie.microsoft.com/ie9CompatViewList.xml where it will
 (by default) try to choose some other document mode for that domain.

 Unfortunately, there is no way to force IE version X to also use Browser
 Mode X for your web application.  You can't even know what version X is
 because the user agent header that IE sends to the server changes based on
 what Browser Mode is active.

 However, it is possible to force IE to use a Document Mode that matches the
 currently-assigned Browser Mode if the following were in the
 DocumentRenderer:

// Force IE to use matching browser mode (Agent version) and
 document mode (doctype).
// IE requires this be the FIRST element in the HEAD tag.
Agent agent = rc.getAgent();

if (agent.getAgentName().equals(Agent.AGENT_IE))
{
  String agentVersion = agent.getAgentVersion();
  float ieVersion;

  try
  {
ieVersion = Float.parseFloat(agentVersion);
  }
  catch (NumberFormatException e)
  {
ieVersion = 7.0f;
  }

  out.startElement(meta, null);
  out.writeAttribute(http-equiv , X-UA-Compatible, null);
  out.writeAttribute(content , IE= + ieVersion, null);
  out.endElement(meta);
}

 This meta tag might help prevent some of the mismatching mode behaviors; it
 is funny how compatibility view makes things incompatible :)  Too bad
 there isn't a just use the real behavior for the version of the browser
 that is installed mode, maybe if enough people asked for it, Microsoft
 might add such a switch; e.g.:

   - force IE10 to use Document Mode 10 and Browser Mode 10
   - force IE9 to use Document Mode 9 and Browser Mode 9
   - force IE8 to use Document Mode 8 and Browser Mode 8


 An extra level of protection could be when running Internet Explorer, take
 the ieVersion number as seen above and somehow send it to the browser and
 then in JavaScript:

   - if ieVersion is a number less than 8, and
   - if the variable document.documentMode is not equal to null

 then you are running in compatibility view mode.  When this is detected,
 you
 could then show an alert to the user, asking them to disable compatibility
 view.  Perhaps the above meta tag is sufficient on its own--it is worth
 testing.

 Note that it looks like Microsoft does have a process to get your domain
 removed from their compatibility view xml files:
 http://msdn.microsoft.com/en-us/library/dd567845(v=vs.85).aspx

 Regards,
 Matt

 On Mon, Jun 13, 2011 at 2:52 PM, Cédric Durmont cdurm...@gmail.com
 wrote:

  Try changing the compatibility mode in IE. IE8 almost always
  switches to IE7-compatible mode with Trinidad.
  Also, you may get different result if you access your Trinidad app
  with http://machinename/...; and http://localhost/...;. As strange
  as it sounds, IE has a different behavior when you use localhost
  (and this has nothing to do with security parameters... Man I love
  this browser !)
 
  Regards,
  Cedric
 
  2011/6/10 Walter Mourão walter.mou...@gmail.com:
   Hi Cedric,
   just tried with tr:setActionListener and I've got the same result...
 this
  is
   really a strange problem: IE8 (same 'complete' version) accessing the
  same
   site, same configuration, etc. Works with one and doesn't work with the
   other. Continuing the quest...
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
  
  
   On Fri, Jun 10, 2011 at 10:02 AM, Cédric Durmont cdurm...@gmail.com
  wrote:
  
   Hi Walter,
  
   The only thing that looks unusual to me in your code is the mix
   between tr:commandLink and f:setPropertyActionListener. Have you tried
   tr:setActionListener instead ?
   (btw I see no reason why this would cause a viewExpiredException on
   some browsers, but who said computing was an exact science ?)
  
   Regards,
   Cedric
  
   2011/6/10 Walter Mourão walter.mou...@gmail.com:
Hi folks,
I'm using Myfaces 1.2.9, Trinidad 1.2.14.
the following commandLink

ViewExpiredException only in some IE8

2011-06-10 Thread Walter Mourão
Hi folks,
I'm using Myfaces 1.2.9, Trinidad 1.2.14.
the following commandLink (and others in the same application) causes
ViewExpiredException in some (!!!) IE8...

tr:commandLink id=proximaPagina
action=#{listarRelatoriosController.visualizandoRelatorioMudarPagina}
disabled=#{listarRelatoriosVisualizandoRelatorioMudarPaginaForm.paginaAtual
ge form.paginas} partialSubmit=false
tr:image source=/images/arrow-next.gif
shortDesc=#{messages['proxima.pagina']} inlineStyle=border-style:none /
f:setPropertyActionListener
value=#{listarRelatoriosVisualizandoRelatorioMudarPaginaForm.paginaAtual +
1}
target=#{listarRelatoriosVisualizandoRelatorioMudarPaginaForm.paginaAtual}
/
/tr:commandLink

I'm lost... Hints ?

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: ViewExpiredException only in some IE8

2011-06-10 Thread Walter Mourão
Hi Cedric,
just tried with tr:setActionListener and I've got the same result... this is
really a strange problem: IE8 (same 'complete' version) accessing the same
site, same configuration, etc. Works with one and doesn't work with the
other. Continuing the quest...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Jun 10, 2011 at 10:02 AM, Cédric Durmont cdurm...@gmail.com wrote:

 Hi Walter,

 The only thing that looks unusual to me in your code is the mix
 between tr:commandLink and f:setPropertyActionListener. Have you tried
 tr:setActionListener instead ?
 (btw I see no reason why this would cause a viewExpiredException on
 some browsers, but who said computing was an exact science ?)

 Regards,
 Cedric

 2011/6/10 Walter Mourão walter.mou...@gmail.com:
  Hi folks,
  I'm using Myfaces 1.2.9, Trinidad 1.2.14.
  the following commandLink (and others in the same application) causes
  ViewExpiredException in some (!!!) IE8...
 
 tr:commandLink id=proximaPagina
  action=#{listarRelatoriosController.visualizandoRelatorioMudarPagina}
 
 disabled=#{listarRelatoriosVisualizandoRelatorioMudarPaginaForm.paginaAtual
  ge form.paginas} partialSubmit=false
 tr:image source=/images/arrow-next.gif
  shortDesc=#{messages['proxima.pagina']} inlineStyle=border-style:none
 /
 f:setPropertyActionListener
  value=#{listarRelatoriosVisualizandoRelatorioMudarPaginaForm.paginaAtual
 +
  1}
 
 target=#{listarRelatoriosVisualizandoRelatorioMudarPaginaForm.paginaAtual}
  /
 /tr:commandLink
 
  I'm lost... Hints ?
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 



Re: f:setPropertyActionListener executed after action

2011-05-15 Thread Walter Mourão
About the original question, it was a bug in my code. No problem with
f:setPropertyActionListener.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Sat, May 14, 2011 at 11:48 AM, Joachim Schrod jsch...@acm.org wrote:


 Could you please elaborate on that?

 Which facelets version executes the actionListener after the action?

 TIA for an answer,

Joachim

 Luka Surija wrote:
  f:setPropertyActionListener is executed before action,
  but If you are using facelets depending on version
  it is executed before or after actionListener
 
  Luka Surija
 
  +385 1 61 99 140
  +385 91 61 99 140
  l...@iytim.hr
 
  I.Y. tim d.o.o.
  Nova cesta 171a, HR-1 Zagreb
  www.iytim.hr
  i...@iytim.hr
 
 
  On 05/05/2011 05:18 PM, Walter Mourão wrote:
  Hi folks,
  I'm 99% sure the f:setPropertyActionListener is being executed after the
  action, in the following code:
 
   tr:commandLink
 
 action=#{visualizarRelatorioController.visualizandoRelatorioMudarPagina}
 
 
 disabled=#{visualizarRelatorioVisualizandoRelatorioMudarPaginaForm.paginaAtual
 
  le 1}
   tr:image source=/images/arrow-previous.gif
  shortDesc=#{messages['pagina.anterior']}
  inlineStyle=border-style:none
  /
   f:setPropertyActionListener
 
 value=#{visualizarRelatorioVisualizandoRelatorioMudarPaginaForm.paginaAtual
 
  - 1}
 
 target=#{visualizarRelatorioVisualizandoRelatorioMudarPaginaForm.paginaAtual}
 
  /
   /tr:commandLink
 
 
  Does it make sense ?
 
  I'm using Myfaces 1.2.9 + Trinidad 1.2.14
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 



 Joachim

 --
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Joachim Schrod  Email: jsch...@acm.org
 Roedermark, Germany




f:setPropertyActionListener executed after action

2011-05-05 Thread Walter Mourão
Hi folks,
I'm 99% sure the f:setPropertyActionListener is being executed after the
action, in the following code:

tr:commandLink
action=#{visualizarRelatorioController.visualizandoRelatorioMudarPagina}
disabled=#{visualizarRelatorioVisualizandoRelatorioMudarPaginaForm.paginaAtual
le 1}
tr:image source=/images/arrow-previous.gif
shortDesc=#{messages['pagina.anterior']} inlineStyle=border-style:none
/
f:setPropertyActionListener
value=#{visualizarRelatorioVisualizandoRelatorioMudarPaginaForm.paginaAtual
- 1}
target=#{visualizarRelatorioVisualizandoRelatorioMudarPaginaForm.paginaAtual}
/
/tr:commandLink


Does it make sense ?

I'm using Myfaces 1.2.9 + Trinidad 1.2.14

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: Do Trinidad Tables update with new rows in PartialSubmit if a CommandButton outside table does the adding of rows?

2011-04-28 Thread Walter Mourão
It should work but... I had some issues regarding the table updates.

What is the scope of 'wprolelist' ?

In some cases I had to use the following method to 'force' the update, since
the value attribute hasn't changed really changed (the list continues the
same).


private void updateTableValue(RequestContext requestContext, UIComponent
viewRoot, String id, Object value)
{
UIComponent component =
ComponentUtils.findRelativeComponent(viewRoot, id);
if(component instanceof UIXIterator)//just in case the view was
changed
{
((UIXIterator) component).setValue(value);
}
}

But I think it is a hack... :-)

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Apr 26, 2011 at 3:31 PM, Catherine Rocchio crocc...@comcast.netwrote:

 Hi there,



 I am trying to achieve a Partial Submit update of a Trinidad Table upon
 submit of a Command Button (called Add Row).  The bean behind the table
 is
 definitely getting updated because when I do an overall page refresh, I see
 my new rows getting added - but I can't seem to get the table to refresh on
 its own with the partialTriggers on it.



 So.. I guess my question is - should something like this work?  Or.. do
 tables need to be programmatically poked for partial submits?  This seems
 pretty basic - but - it just isn't working for me.  I guess I will feel
 better if I know it SHOULD work - and I will keep trying.



 I am using Trinidad 2 and Myfaces 2.



 Sorry



 Thanks for help!

 Catherine



 tr:commandButton text=Add partialSubmit=true id=test
 actionListener=#{createworkplan.addAction}  /



 My addAction is just boring - but adds a row to a vector which is behind
 the
 table.



  public void addAction(ActionEvent event) {



  wprolelist.add(new RoleList(test person, True,
 True, True));

 }



 And my table has the specification of the partialTrigger.

 tr:table id=workplanroleprivs rowSelection=single
 value=#{createworkplan.wprolelist} var=row width = 800

 styleClass=order-table

 partialTriggers=::test

 headerClass=order-table-header

 rowClasses=order-table-odd-row,order-table-even-row

 










Re: Do Trinidad Tables update with new rows in PartialSubmit if a CommandButton outside table does the adding of rows?

2011-04-28 Thread Walter Mourão

 I would imagine that this should work - people must have inline tables that
 need to get updated without a full page update.


It works. I have lots of tables being updated with PPR. I will send you a
sample later (not with me right now).

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Apr 28, 2011 at 9:37 AM, Catherine Rocchio 
crocc...@gp-informatics.com wrote:

 Hi there,

 Thanks for writing back - both you and Sandeep.
 First off - I do believe the partial trigger is being found - because if I
 use the notation triggername - I get a warning that I am using deprecated
 syntax - (I am using Myfaces 2.0, Trinidad 2.0) - but it is only a WARNING.
  I also get Trigger not found if I use something wrong like
 triggername.  But.. I get no warnings with ::triggername - but in all
 of the combinations I have used, I haven't gotten the table to update.

 My wprolelist is a vector - and is Session scoped I believe.

 I have tried going after this programmatically - binding the table object
 (I THINK!).. and having this code:

public void addAction(ActionEvent event) {

wprolelist.add(new RoleList(test person, True,
  True, True));
 UIXTable table = getTable();


  RequestContext.getCurrentInstance().addPartialTarget(table);

  RequestContext.getCurrentInstance().partialUpdateNotify(table);
FacesContext.getCurrentInstance().renderResponse();


}
public void setTable(UIXTable table) { _table = table; }
public UIXTable getTable() { return _table; }
private UIXTable _table;


 But it hasn't worked either.  I can try the hack you mentioned Walter - and
 part of me wonders if I somehow need to be updating a different layer?  I
 know that Trinidad tables use a model - and maybe somehow I am just updating
 the raw data behind the model - but - to get a PPR/AJAX type update - I have
 to poke the MODEL itself?

 Anyway.. I am still working on it.

 Latest page snippet is this:

 1.  TABLEDEF (I hope I am doing this binding right...)

 tr:table id=workplanroleprivs rowSelection=single
 value=#{createworkplan.wprolelist} var=row width = 800
 styleClass=order-table
 partialTriggers=addbutton
 binding=#{createworkplan.table}
 headerClass=order-table-header
 rowClasses=order-table-odd-row,order-table-even-row

 2.  Button to update Table (not part of table tag...)

 tr:commandButton text=Add id=addbutton partialSubmit=true
 actionListener=#{createworkplan.addAction}  /

 3.  Latest addAction is above...


 Status:  No errors that I can see - but still the add button does nothing
 :)... though when I do a full page refresh, of course things are fine
 because my vector gets updated...

 4.  Oh.. and I am using a session page - @SessionScoped in the beginning of
 the Java.

 Thanks for any hints...I am willing to believe that the table needs to be
 nudged to update programmatically, because the Trinidad documentation DOES
 say that if you are trying to do a PPR update of a table row from any place
 OTHER than that row (i.e. not calling something while IN that row) - you
 need to force the update programmatically.  BUT..  I would imagine that this
 should work - people must have inline tables that need to get updated
 without a full page update.

 It must just be me!!!

 THANKS!

 Catherine

 -Original Message-
 From: Walter Mourão [mailto:walter.mou...@gmail.com]
 Sent: Thursday, April 28, 2011 7:02 AM
 To: MyFaces Discussion
 Subject: Re: Do Trinidad Tables update with new rows in PartialSubmit if a
 CommandButton outside table does the adding of rows?

 It should work but... I had some issues regarding the table updates.

 What is the scope of 'wprolelist' ?

 In some cases I had to use the following method to 'force' the update,
 since
 the value attribute hasn't changed really changed (the list continues the
 same).


private void updateTableValue(RequestContext requestContext, UIComponent
 viewRoot, String id, Object value)
{
UIComponent component =
 ComponentUtils.findRelativeComponent(viewRoot, id);
if(component instanceof UIXIterator)//just in case the view was
 changed
{
((UIXIterator) component).setValue(value);
}
}

 But I think it is a hack... :-)

 Cheers,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Tue, Apr 26, 2011 at 3:31 PM, Catherine Rocchio crocc...@comcast.net
 wrote:

  Hi there,
 
 
 
  I am trying to achieve a Partial Submit update of a Trinidad Table upon
  submit of a Command Button (called Add Row).  The bean behind the table
  is
  definitely getting updated because when I do an overall page refresh, I
 see
  my new rows getting added - but I can't seem to get the table to refresh
 on
  its own with the partialTriggers on it.
 
 
 
  So.. I guess my question is - should something like

Re: JSF application very slow with HTTPS

2011-04-11 Thread Walter Mourão
As far as I know, the JSF does not know anything about https... it is
handled by the servlet container (Tomcat, Jetty...).

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Apr 11, 2011 at 8:49 AM, Michael Heinen mhn4...@googlemail.comwrote:

  Hi,

 My JSF application is very slow via HTTPS.
 Some parts are 15 times slower compared to HTTP

 I measured the response times of the xhtml requests with Fiddler (locally
 and over network)

 Result for a very large page (512 KB) with a big datatable without ajax
 usage:
 --  local access with HTTP:  1 sec
 --  local access with HTTPS: 15-16 sec

 Other pages are factor 2-4 slower, with or without ajax.
 The time is spent in htmlTableRenderer.encodeInnerHtml. Data is of course
 available, there is no additional backend access.

 The simple download of xhtml files or other files is NOT (noticeable)
 slower.
 Other non JSF applications running on the same servers are also not slower
 with HTTPS.

 Before I start profiling:
 - Does anybody have an idea where I should look at?
 - Are there any known JSF or webApp settings that influence https
 performance?

 Environment:
  Facelets
  myFaces 1.2.9
  tomahawk12_1.1.10
  richfaces 3.3.3
  tomcat 6.0.29
  jdk 1.6.0_23

 Regards,
 Michael



Re: Problem with inputText conversion to BigDecimal

2011-04-08 Thread Walter Mourão
Hi.

Take a look at
http://myfaces.markmail.org/message/syt73xw5qkmlrcg2?q=COERCE_TO_ZERO

I would suggest you create a String property to receive the value and make
the conversion in its setter (for example), or use Juel (
http://juel.sourceforge.net/ ). The problem in using a different
configuration to change the behavior is your app will not be 100% compliant
with EL...

Good luck,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Apr 8, 2011 at 6:12 AM, juergen.wien...@hella.com wrote:

 Hello everybody,

 I have the following problem with conversion of an inputfield to a
 BigDecimal. The input has to distinguish between zero and empty string.

 The page contains the following code:

h:inputText value=#{sessionBean.testvar}
f:convertNumber type=number /
/h:inputText

 sessionBean.testvar ist a simple BigDecimal with default getter and
 Setter.

 Submitting the page with a empty field sets testvar to an BigDecimal with
 value 0 and rerendering of the page brings up a 0 in the inputfield
 instead of leafing it empty.

 Google and our analyse of the problem pointed the following:

 We use this environment: Tomcat 6.0.32, MyFaces 1.2.10

 I found Tomcat runtime parameter
 -Dorg.apache.el.parser.COERCE_TO_ZERO=false as a workaround.

 https://issues.apache.org/bugzilla/show_bug.cgi?id=43285#c7
 http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html

 I don't want to use this workaround on our servers. (Not sure of
 side-effects on other apss)
 What is the right solution to prevent this behaviour? Did I get sonething
 wrong?
 Is there a better solution (in MyFaces I would prefer ;-) )?

 Best regards

 Jürgen Wieners




Re: Re: Problem with inputText conversion to BigDecimal

2011-04-08 Thread Walter Mourão
As far as I know it is now the standard behavior...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Apr 8, 2011 at 8:30 AM, juergen.wien...@hella.com wrote:

 Hi.

 Thanks for the quick reply, it helps me fpr the moment.
 So i'm thinking of what I will do.

 Little question : A upgrade to JSF 2 wouldn't solve this problem, or?

 Best regards

 Jürgen Wieners

 Abt.: HCC-GP-CP-Tel.: 31007



 Von:Walter Mourão walter.mou...@gmail.com
 An: MyFaces Discussion users@myfaces.apache.org
 Kopie:  juergen.wien...@hella.com
 Datum:  08.04.2011 12:42
 Betreff:Re: Problem with inputText conversion to BigDecimal



 Hi.

 Take a look at
 http://myfaces.markmail.org/message/syt73xw5qkmlrcg2?q=COERCE_TO_ZERO

 I would suggest you create a String property to receive the value and make
 the conversion in its setter (for example), or use Juel (
 http://juel.sourceforge.net/ ). The problem in using a different
 configuration to change the behavior is your app will not be 100%
 compliant
 with EL...

 Good luck,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Fri, Apr 8, 2011 at 6:12 AM, juergen.wien...@hella.com wrote:

  Hello everybody,
 
  I have the following problem with conversion of an inputfield to a
  BigDecimal. The input has to distinguish between zero and empty string.
 
  The page contains the following code:
 
 h:inputText value=#{sessionBean.testvar}
 f:convertNumber type=number /
 /h:inputText
 
  sessionBean.testvar ist a simple BigDecimal with default getter and
  Setter.
 
  Submitting the page with a empty field sets testvar to an BigDecimal
 with
  value 0 and rerendering of the page brings up a 0 in the inputfield
  instead of leafing it empty.
 
  Google and our analyse of the problem pointed the following:
 
  We use this environment: Tomcat 6.0.32, MyFaces 1.2.10
 
  I found Tomcat runtime parameter
  -Dorg.apache.el.parser.COERCE_TO_ZERO=false as a workaround.
 
  https://issues.apache.org/bugzilla/show_bug.cgi?id=43285#c7
  http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html
 
  I don't want to use this workaround on our servers. (Not sure of
  side-effects on other apss)
  What is the right solution to prevent this behaviour? Did I get
 sonething
  wrong?
  Is there a better solution (in MyFaces I would prefer ;-) )?
 
  Best regards
 
  Jürgen Wieners
 
 




Re: PMC chair of Apache MyFaces changed

2011-03-17 Thread Walter Mourão
Thank you Mathias.

Congratulations Gerhard, and good luck! :-)

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Mar 17, 2011 at 4:20 AM, Matthias Wessendorf mat...@apache.orgwrote:

 Hi,

 I am stepping back from being the Apache MyFaces PMC chair.
 The MyFaces PMC did vote (internally) that Gerhard Petracek would
 be a very good PMC chair.

 Yesterday, during the board meeting, this has been made official.

 Please join me in welcoming Gerhard as being the new PMC chair of
 Apache MyFaces!

 Congrats, Gerhard!

 -Matthias

 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf



Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-12 Thread Walter Mourão
Hi Leonardo,

I'm not sure I've got the idea... do you think the javascript documentation
is THE big problem ? I really don't have an opinion because I didn't go
deeper in Trinidad javascript code.

In your opinion the best solution is just continue improving the current
Trinidad client code ? As I stated before, my desire (so far) is the
combination of Trinidad with a good javascript UI package, this way we could
count with another community focused in the client side code.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Mar 10, 2011 at 2:34 PM, Leonardo Uribe lu4...@gmail.com wrote:

 Hi

 I think one of the problems right now it is necessary to overcome is create
 a javascript documentation maven plugin for trinidad, myfaces core 2.0.x,
 and probably tobago.

 If you take a look at the sites of those projects, you'll see there is
 generated javadoc, tlddoc, facelets-tlddoc and other documentation reports
 available on the site. But there is not anything for javascript.

 The reason is there is not a maven plugin written in java that do the job.
 In theory it is possible to use jsdoc toolkit, but unfortunately there is
 some code on myfaces core that by its structure can't be documented
 properly
 with that tool (I already tried it, it just don't), and mozilla rhino
 causes
 some problems when the goal is executed, because it loads the javascript
 file too.

 This is a good idea for a Google Summer Of Code, because in practice half
 of
 the solution is done. Trinidad javascript plugin contains a code that is
 capable of parse javascript files (look the obfuscator), so what we need is
 use this code and create some code that scan for doclets (annotations on
 the
 comments), get the information and build a model and finally generate the
 documentation using a template tool like velocity. Again we have already
 some code on myfaces builder plugin that could be useful.

 Trinidad code is very robust. With JSF 2.0, we have a common ajax
 framework,
 so in theory it is possible to create custom ajaxified components and make
 them work together with trinidad. But I think what users wants is to know
 the details behind it and how they can extend or override trinidad stuff.

 regards,

 Leonardo Uribe

 2011/3/10 Scott O'Bryan darkar...@gmail.com

  Walter,
 
  Yeah, while creating a new renderkit isn't trivial, the Trinidad
  internals and API really lend themselves to allowing extensions to the
  framework.
 
  I know Oracle, for instance, has a very large renderkit extension
  which is based on Trinidad Internals.  Now it's mostly geared toward
  support of web business applications, but it really shows what can be
  done with the framework.
 
  I really would like to see a project like this get some traction
  personally.  ;)
 
  Scott
 
  On Mar 6, 2011, at 5:39 AM, Walter Mourão walter.mou...@gmail.com
 wrote:
 
   Thank you Dominik.
  
   Just to be clear: the aim is not simply compete...
   I think Trinidad has:
   - rock solid back-end;
   - support to non-javascript browser (I have applications running in old
  data
   collectors - windows mobile)
   ...
   and I would like to keep most of the java code untouched when migrating
  my
   applications to an up to date UI.
  
   I am personally highly involved in another open source project and I
  don't
   have much experience with JSF/Trinidad internals. I am not sure I can
  help
   much in such a task (create the new render kit), but I'm experimenting
 to
   see if I should go ahead with Trinidad or just migrate to another
  library.
  
   Best regards,
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
  
  
   2011/3/6 Dominik Dorn domi...@dominikdorn.com
  
   If you're really want to compete with PrettyFaces, IceFaces, RichFaces
   etc.,
   I suggest to take a look at
  
   http://demo.sproutcore.com/sample_controls/
   http://www.sproutcore.com
  
   and rebuilt those for JSF.
   Sproutcore is currently quite hyped in twitter and gains a lot of
   interest, especially
   in the rails community.
  
  
  
  
   2011/3/6 Walter Mourão walter.mou...@gmail.com:
   Hi folks,
   following the thread Concerns about the future of Trinidad I would
  like
   to
   know the opinions about the best' Javascript package to use as a
 base
  to
   a
   new Trinidad render kit.
  
   JQuery http://jquery.org/
  
   Dojo Toolkit http://dojotoolkit.org/
  
   (another options ?)
  
   What do you think ? what about the licensing ?
  
   Thanks,
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
  
  
  
   --
   Dominik Dorn
   http://dominikdorn.com
   http://twitter.com/domdorn
  
   Tausche Deine Lernunterlagen auf http://wu.studyguru.eu !
  
 



Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-12 Thread Walter Mourão
Hi Scott,

I know Oracle, for instance, has a very large renderkit extension
 which is based on Trinidad Internals.  Now it's mostly geared toward
 support of web business applications, but it really shows what can be
 done with the framework.


Do you mean ADF Rich Faces ?

Why do you say it's mostly geared toward support of web business
applications ? what are the differences with the application that are done
currently with Trinidad ? Do you know if the ADF Rich Faces client code uses
some external (non-Oracle) javascript package ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Mar 10, 2011 at 10:59 AM, Scott O'Bryan darkar...@gmail.com wrote:

 Walter,

 Yeah, while creating a new renderkit isn't trivial, the Trinidad
 internals and API really lend themselves to allowing extensions to the
 framework.

 I know Oracle, for instance, has a very large renderkit extension
 which is based on Trinidad Internals.  Now it's mostly geared toward
 support of web business applications, but it really shows what can be
 done with the framework.

 I really would like to see a project like this get some traction
 personally.  ;)

 Scott

 On Mar 6, 2011, at 5:39 AM, Walter Mourão walter.mou...@gmail.com wrote:

  Thank you Dominik.
 
  Just to be clear: the aim is not simply compete...
  I think Trinidad has:
  - rock solid back-end;
  - support to non-javascript browser (I have applications running in old
 data
  collectors - windows mobile)
  ...
  and I would like to keep most of the java code untouched when migrating
 my
  applications to an up to date UI.
 
  I am personally highly involved in another open source project and I
 don't
  have much experience with JSF/Trinidad internals. I am not sure I can
 help
  much in such a task (create the new render kit), but I'm experimenting to
  see if I should go ahead with Trinidad or just migrate to another
 library.
 
  Best regards,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  2011/3/6 Dominik Dorn domi...@dominikdorn.com
 
  If you're really want to compete with PrettyFaces, IceFaces, RichFaces
  etc.,
  I suggest to take a look at
 
  http://demo.sproutcore.com/sample_controls/
  http://www.sproutcore.com
 
  and rebuilt those for JSF.
  Sproutcore is currently quite hyped in twitter and gains a lot of
  interest, especially
  in the rails community.
 
 
 
 
  2011/3/6 Walter Mourão walter.mou...@gmail.com:
  Hi folks,
  following the thread Concerns about the future of Trinidad I would
 like
  to
  know the opinions about the best' Javascript package to use as a base
 to
  a
  new Trinidad render kit.
 
  JQuery http://jquery.org/
 
  Dojo Toolkit http://dojotoolkit.org/
 
  (another options ?)
 
  What do you think ? what about the licensing ?
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
 
  --
  Dominik Dorn
  http://dominikdorn.com
  http://twitter.com/domdorn
 
  Tausche Deine Lernunterlagen auf http://wu.studyguru.eu !
 



Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-12 Thread Walter Mourão
Ok, now I understand...

I think it is one of the problems. Instead thinking about what it is
 wrong, I'm trying to thing on which steps should we take to enhance
 trinidad.

 If the objective is rewrite trinidad components using a theorical
 javascript library, it is necessary to take these steps first:

 1. Document current trinidad javascript api and identify what do we need to
 implement, or in other words, which part of the code is api and which one is
 implementation details.

 2. Try to make easier generate custom components using trinidad.


you are addressing the infrastructure fault to easier the next step...
agreed.

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2011/3/12 Leonardo Uribe lu4...@gmail.com

 Hi Walter

 2011/3/12 Walter Mourão walter.mou...@gmail.com

 Hi Leonardo,

 I'm not sure I've got the idea... do you think the javascript
 documentation is THE big problem ? I really don't have an opinion because I
 didn't go deeper in Trinidad javascript code.


 I think it is one of the problems. Instead thinking about what it is
 wrong, I'm trying to thing on which steps should we take to enhance
 trinidad.

 If the objective is rewrite trinidad components using a theorical
 javascript library, it is necessary to take these steps first:

 1. Document current trinidad javascript api and identify what do we need to
 implement, or in other words, which part of the code is api and which one is
 implementation details.

 2. Try to make easier generate custom components using trinidad.

 For the first step we can take the alternative I proposed before or even
 better use the code proposed by Scott if it is donated to MyFaces. The
 second step is being handled here:

 https://issues.apache.org/jira/browse/TRINIDAD-1409



 In your opinion the best solution is just continue improving the current
 Trinidad client code ? As I stated before, my desire (so far) is the
 combination of Trinidad with a good javascript UI package, this way we could
 count with another community focused in the client side code.


 In my opinion we need to improve the current Trinidad client and java code
 to open the possibility of new renderkits / components. I think the reason
 why use a well known javascript library is it is more easier to users to
 change to their needs. But maybe (note here I'm speculating) in some cases,
 users does not need a full renderkit, instead they could need only to modify
 one or two components, or maybe they just need to know where to change x or
 y to make the component work as they expected.

 I think first we need to take action on the previous steps, and then we
 should answer the checklist Werner (we can do it now, suggestions are
 welcome). After that we'll have a clear course of action.

 regards,

 Leonardo Uribe




[Trinidad] Best Javascript package to use in a new render kit

2011-03-06 Thread Walter Mourão
Hi folks,
following the thread Concerns about the future of Trinidad I would like to
know the opinions about the best' Javascript package to use as a base to a
new Trinidad render kit.

JQuery http://jquery.org/

Dojo Toolkit http://dojotoolkit.org/

(another options ?)

What do you think ? what about the licensing ?

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-06 Thread Walter Mourão
Thank you Dominik.

Just to be clear: the aim is not simply compete...
I think Trinidad has:
- rock solid back-end;
- support to non-javascript browser (I have applications running in old data
collectors - windows mobile)
...
 and I would like to keep most of the java code untouched when migrating my
applications to an up to date UI.

I am personally highly involved in another open source project and I don't
have much experience with JSF/Trinidad internals. I am not sure I can help
much in such a task (create the new render kit), but I'm experimenting to
see if I should go ahead with Trinidad or just migrate to another library.

Best regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2011/3/6 Dominik Dorn domi...@dominikdorn.com

 If you're really want to compete with PrettyFaces, IceFaces, RichFaces
 etc.,
 I suggest to take a look at

 http://demo.sproutcore.com/sample_controls/
 http://www.sproutcore.com

 and rebuilt those for JSF.
 Sproutcore is currently quite hyped in twitter and gains a lot of
 interest, especially
 in the rails community.




 2011/3/6 Walter Mourão walter.mou...@gmail.com:
  Hi folks,
  following the thread Concerns about the future of Trinidad I would like
 to
  know the opinions about the best' Javascript package to use as a base to
 a
  new Trinidad render kit.
 
  JQuery http://jquery.org/
 
  Dojo Toolkit http://dojotoolkit.org/
 
  (another options ?)
 
  What do you think ? what about the licensing ?
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 



 --
 Dominik Dorn
 http://dominikdorn.com
 http://twitter.com/domdorn

 Tausche Deine Lernunterlagen auf http://wu.studyguru.eu !



[Trinidad] Concerns about the future of Trinidad

2011-03-04 Thread Walter Mourão
Hi folks,
I'm a happy Trinidad user, so far, but I'm a bit worried about its future.
I'm seeing the evolution of Icefaces, Richfaces and (mainly) Primefaces and
I feel like Trinidad isn't going with the same pace.
Am I right ? What do you think ?

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] Concerns about the future of Trinidad

2011-03-04 Thread Walter Mourão
Hi Scott

When I first started with Trinidad, before the thing moved over to
 Apache, the AJAX was still using iframes instead of
 HttpServletRequest.  :)


me too!

I mean as far as Rich Renderkits go, Trinidad was one of the
 earliest.  Many other renderkits got to take advantage of newer
 technologies.


Yes... maybe that's the point: what about creating a new render kit using
JQuery (for example) ? Trinidad has rock solid back end and, the same way
there is a pda render kit, it could exist a JQuery render kit. Does it make
sense ?


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Mar 4, 2011 at 10:29 AM, Scott O'Bryan darkar...@gmail.com wrote:

 Maybe.  I mean as far as Rich Renderkits go, Trinidad was one of the
 earliest.  Many other renderkits got to take advantage of newer
 technologies.

 When I first started with Trinidad, before the thing moved over to
 Apache, the AJAX was still using iframes instead of
 HttpServletRequest.  :)

 On Mar 4, 2011, at 6:24 AM, Dominik Dorn domi...@dominikdorn.com wrote:

  It's maybe that people want fancy JQuery/Javascript components like
  those used everywhere else
  on the web and primefaces has those (its basically just a wrapper around
 em).
 
 
  2011/3/4 Walter Mourão walter.mou...@gmail.com:
 
  Is this because of the commercial backing of the other two?
 
 
  I don't think so... as far as I know there are companies offering
 Trinidad
  support/consulting (Irian http://www.irian.at/trinidad_support/, for
  example). Not sure about the level of commitment of these companies.
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Fri, Mar 4, 2011 at 9:49 AM, ascanno...@gmail.com wrote:
 
  I've had similar concerns. until recently there hadn't been any
 apparent
  movement in Trinidad development. Is this because of the commercial
 backing
  of the other two?
 
  On Mar 4, 2011 5:53am, Walter Mourão walter.mou...@gmail.com wrote:
 
  Hi folks,
 
 
   I'ma happy Trinidad user, so far, but I'ma bit worried about its
 future.
 
 
   I'm seeing the evolution of Icefaces, Richfaces and (mainly)
 Primefaces
  and
 
 
   I feel like Trinidad isn't going with the same pace.
 
 
   Am I right ? What do you think ?
 
 
 
 
   Thanks,
 
 
 
 
   Walter Mourão
 
 
   http://waltermourao.com.br
 
 
   http://arcadian.com.br
 
 
   http://oriens.com.br
 
 
 
 
 
 
 
 
  --
  Dominik Dorn
  http://dominikdorn.com
  http://twitter.com/domdorn
 
  Tausche Deine Lernunterlagen auf http://www.studyguru.eu !



[extval] inner validation

2011-02-11 Thread Walter Mourão
Hi folks,
does extval apply validation in inner beans ? for example

tr:inputText value=#{myBean.innerBean.theField}/

will the validation occurs in 'theField' ?

I've made a simple try and it looks it does not work. If you say it should
work, I will try hard.

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] Digital signature capture for Trinidad browser-based mobile applications

2011-02-02 Thread Walter Mourão
Hi Andy,
I don't think you will find such a kind of component... I suggest you
capture the signature using a native application and send the data to the
server application using http (simulating an image upload for example) or
another protocol.

By the way, some time ago I had some troubles because Trinidad didn't
recognize Windows mobile 5. I'm not sure if I submitted the patch, so let me
know if you get the same issue.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Feb 2, 2011 at 3:27 PM, William Burdick andy.burd...@oracle.comwrote:

  Hello Trinidad developers and users,



 I am part of a project at Oracle building PeopleSoft Inventory
 browser-based mobile applications in the Oracle ADF middleware development
 environment, using Java, JavaScript and Trinidad components, and deploying
 on an Oracle WebLogic server to Windows Mobile 5.0/6.0/6.5 devices. For one
 of the applications in that project, we would like to provide the ability to
 capture and save a digital signature. Does anyone know of a way to capture a
 digital signature using Trinidad components?



 I would greatly appreciate any assistance anyone could provide.



 Thanks,

 Andy Burdick



 [image: Oracle] http://www.oracle.com/
 Andy Burdick | Principal Applications Engineer
 Phone: +1 3126518071
 Oracle PeopleSoft Development
 233 S Wacker Dr, 45th Floor | Chicago, IL 60606

 [image: Green Oracle] http://www.oracle.com/commitment

 Oracle is committed to developing practices and products that help protect
 the environment







Re: [Trinidad] Digital signature capture for Trinidad browser-based mobile applications

2011-02-02 Thread Walter Mourão
I just checked and the problem was related with Pocket PC 4.20, not with
Windows Mobile 5...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Feb 2, 2011 at 8:11 PM, Matthias Wessendorf mat...@apache.orgwrote:

 Walter,

 Please share the patch!  I will review/commit it.

 sent from my Android phone
 On Feb 2, 2011 11:05 PM, Walter Mourão walter.mou...@gmail.com wrote:
  Hi Andy,
  I don't think you will find such a kind of component... I suggest you
  capture the signature using a native application and send the data to the
  server application using http (simulating an image upload for example) or
  another protocol.
 
  By the way, some time ago I had some troubles because Trinidad didn't
  recognize Windows mobile 5. I'm not sure if I submitted the patch, so let
 me
  know if you get the same issue.
 
  Cheers,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Wed, Feb 2, 2011 at 3:27 PM, William Burdick andy.burd...@oracle.com
 wrote:
 
  Hello Trinidad developers and users,
 
 
 
  I am part of a project at Oracle building PeopleSoft Inventory
  browser-based mobile applications in the Oracle ADF middleware
 development
  environment, using Java, JavaScript and Trinidad components, and
 deploying
  on an Oracle WebLogic server to Windows Mobile 5.0/6.0/6.5 devices. For
 one
  of the applications in that project, we would like to provide the
 ability
 to
  capture and save a digital signature. Does anyone know of a way to
 capture a
  digital signature using Trinidad components?
 
 
 
  I would greatly appreciate any assistance anyone could provide.
 
 
 
  Thanks,
 
  Andy Burdick
 
 
 
  [image: Oracle] http://www.oracle.com/
  Andy Burdick | Principal Applications Engineer
  Phone: +1 3126518071
  Oracle PeopleSoft Development
  233 S Wacker Dr, 45th Floor | Chicago, IL 60606
 
  [image: Green Oracle] http://www.oracle.com/commitment
 
  Oracle is committed to developing practices and products that help
 protect
  the environment
 
 
 
 
 



Re: OPEN DOCUMENT NEW WINDOW

2011-02-01 Thread Walter Mourão
1 - create a servlet to return the pdf
2 - using javascript open the new window with a object/ element pointing
to the servlet


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2011/2/1 Ángel Miralles Arévalo anmiral...@yahoo.es

 Hey, I'm trying to open a pdf in a new window. Anyone with some experience?

 My jsp code is:

  h:commandLink value= actionListener=#{docsProyectoVO.descargaDoc}
 immediate=true
  h:graphicImage url=#{rsc.btn_pdf}  styleClass=border0/
  f:param value=#{documento.idProyecto} name=idProyecto /
  f:param value=#{documento.idDocumento} name=idDocumento /
  /h:commandLink

 The managed bean:

 public void descargaDoc (ActionEvent event){

try{
String idP = (String)

 getApplication().createValueBinding(#{param.idProyecto}).getValue(getFacesContext());

String idD = (String)

 getApplication().createValueBinding(#{param.idDocumento}).getValue(getFacesContext());


if (!this.lstDocumentos.isEmpty()  idP != null 
 !idP.equalsIgnoreCase()) {
// Obtenemos fichero de bbdd
DocumentoDTO d =
 getIProyectoSvc().obtenerDocumento(Long.parseLong(idD));


if (d != null) {
generaDoc(d.getDatosDocumento(), d.getStrNombre(),
 d.getStrMime());
}
}
}catch(Exception e){
e.printStackTrace();
}
}

 public static void downloadFile(HttpServletResponse response, byte[] bytes,
 String fileName, String fileType, boolean attachment) throws IOException {
// Prepare stream.
BufferedOutputStream output = null;

try {
// Prepare.
int contentLength = bytes.length;
String disposition = attachment;

// If content type is unknown, then set the default value.
// For all content types, see:
// http://www.w3schools.com/media/media_mimeref.asp
if (fileType == null) {
fileType = application/octet-stream;
}

// Init servlet response.
response.setContentLength(contentLength);
response.setContentType(fileType);
response.setHeader(Content-disposition, disposition + ;
 filename=\ + fileName + \);
//response.addHeader(Content-Disposition,
 inline;filename=+fileName);
output = new BufferedOutputStream(response.getOutputStream());

output.write(bytes);

// Finalize task.
output.flush();
} finally {
// Gently close stream.
if (output != null) {
try {
output.close();
} catch (IOException e) {
e.printStackTrace();
// This is a serious error. Do more than just printing a
// trace.
}
}
}

 The first problem is h:commandLink without immediate='true' does't get de
 ActionListener. When immediate='true' a get the documet open at the same
 page...
 I am navigating.

 My configuration:

* jsf-facelets
* myfaces 3.2.2
* jboss 4.2
 Thanks for all ;)






Re: trinidad suggestion box

2011-01-25 Thread Walter Mourão
take a look at:

http://code.google.com/p/trinidadcomponents/

There is a suggestion box built using only facelets and Trinidad.

It needs some update because I enhanced it a bit in a newer project. Let me
know if it helps you.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Jan 25, 2011 at 5:10 PM, omid p vermind...@gmail.com wrote:

 Hi ,
 after google searching i found out rich:suggestion box does not work with
 trinidad

 http://mail-archives.apache.org/mod_mbox/myfaces-users/200708.mbox/%3c46b354e8.6020...@tecnotp.it%3E
 i want to know what component i can use in trinidad instead of
 rich:suggestion box ?
 that would be great if trinidad has a suggestion box
 thanks in advanced



[Trinidad] Roadmap

2011-01-08 Thread Walter Mourão
Hi Folks,
is there a Trinidad 2.0 road map anywhere ?

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: passing information in tr:inputListOfValues

2011-01-06 Thread Walter Mourão
This is the expected behavior. The page flow scope does not 'goes back' from
the dialog. To return values you have to use the returnFromDialog method
(the second parameter is a Map to return many values).


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Jan 6, 2011 at 6:53 AM, omid p vermind...@gmail.com wrote:

 Hi,
 finally i successfully send parameters to diloag box but i can not send
 params from dialog box to parent page am i missing sth ?

  tr:form
   tr:inputListOfValues label=Select value=(Empty)
 action=dialog:valueDialog
   
   tr:setActionListener from=K
to=#{pageFlowScope.myval}/

   /tr:inputListOfValues
   tr:outputText
 value=#{pageFlowScope.myvar.firstName}/tr:outputText
   tr:commandButton text=getLov Val/tr:commandButton

   /tr:form

 Dialog.jspx

  tr:form
   tr:outputText value=#{pageFlowScope.myval}/tr:outputText
   tr:commandButton text=Select user 
 action=#{listBean.select}/tr:commandButton
   /tr:form

 Code behind

 public String select(){
User user = new User(omid, p);

RequestContext requestContext = RequestContext.getCurrentInstance();


requestContext.returnFromDialog(user.getLastName(), null);
requestContext.getPageFlowScope().put(myvar, user); //this has no
 effect

return ;
}

 i can't get myvar



Re: Trinidad : Support for JDK 6

2010-12-10 Thread Walter Mourão
I've been using Trinidad with JDK 6 since a long time ago... no hassles.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Dec 9, 2010 at 11:40 PM, Kaul, Rohit rohit.k...@wmg.com wrote:

 Hi



 We use Apache MyFaces Trinidad 1.2.8 in our JEE application running on
 JBoss 4.3 EAP with JSF 1.2 (Sun RI)



 We are looking to upgrade to JBoss 5.1 that only supports JDK 6.



 The question is that does Trinidad support JDK 6?, because according to
 the Trinidad official web site, JDK 5 is in the dependency list.



 Can you please answer our query? Many thanks.



 Thanks, Rohit Kaul

 Technical Team | GCDM | WMG

 HCL Technologies

 *: rohit.k...@wmg.com | AIM: rohitkaul...@yahoo.co.in

 *: (+1) 818-569-9574






Coercion + EL + Facelets

2010-12-07 Thread Walter Mourão
Hi folks,
I'm patching some applications regarding the change in the coercion rules
of EL (null goes to zero if the destination is an Integer) and I have some
questions to discuss.

1 - Does it really changed in JSF 1.2 or Tomcat had a wrong behavior ?
2 - Do you think (or know) the specification will change or I really have to
adapt my to application to support such a kind of situation ? This question
is very important to me because if I think it is a temporary behavior, I
will use the *org.apache.el.parser.COERCE_TO_ZERO* tomcat property,
otherwise I will adapt a lot of projects...
3 - doesn't it really sucks ?

( If you don't know what I am talking about, take a look at
http://www.irian.at/blog/;jsessionid=8401E3770357871EAE2E38799810B7FB and
https://issues.apache.org/bugzilla/show_bug.cgi?id=48813 )

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: Connection failed for tr:choose date

2010-11-23 Thread Walter Mourão
Probably related with https://issues.apache.org/jira/browse/TRINIDAD-119 ...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Nov 23, 2010 at 8:14 AM, Emilio Salazar esalaz...@googlemail.comwrote:

 I ran into the same problem as this user, but he never got any feedback:

 http://www.archivum.info/users@myfaces.apache.org/2009-06/00044/tr-chooseDate-Connection-failed.html

 Could somebody help me with this?

 Thanks,
 Emilio.



[Trinidad] partialSubmit + server side validation

2010-11-07 Thread Walter Mourão
Hi folks,

when testing the following form with client-side validation disabled
(client-validation-disabledtrue/client-validation-disabled - I really
need this way), the required message is now shown:
*
   tr:form partialTriggers=button1

tr:panelPage
  tr:inputText label=Your name id=input1
value=#{helloWorldBacking.name} required=true/
  tr:commandButton id=button1 text=press me
action=#{helloWorldBacking.send} partialSubmit=true/
/tr:panelPage

   /tr:form*

This test case uses MyFaces 1.2.9 + Trinidad 1.2.13.
Is it really a known bug (maybe related with
https://issues.apache.org/jira/browse/TRINIDAD-697) ?
Is there a workaround ?

Best regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] partialSubmit + server side validation

2010-11-07 Thread Walter Mourão

 message is now shown:


typo, actually the message is *not* shown.

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2010/11/7 Walter Mourão walter.mou...@gmail.com

 Hi folks,

 when testing the following form with client-side validation disabled
 (client-validation-disabledtrue/client-validation-disabled - I really
 need this way), the required message is now shown:
 *
tr:form partialTriggers=button1

 tr:panelPage
   tr:inputText label=Your name id=input1
 value=#{helloWorldBacking.name} required=true/
   tr:commandButton id=button1 text=press me
 action=#{helloWorldBacking.send} partialSubmit=true/
 /tr:panelPage

/tr:form*

 This test case uses MyFaces 1.2.9 + Trinidad 1.2.13.
 Is it really a known bug (maybe related with
 https://issues.apache.org/jira/browse/TRINIDAD-697) ?
 Is there a workaround ?

 Best regards,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




ExtVal latest snapshot

2010-10-28 Thread Walter Mourão
I just tried https://issues.apache.org/jira/browse/EXTVAL-115 with the
snapshot from http://people.apache.org/repo/m2-snapshot-repository/ and the
error continues. Is this the latest snapshot ?

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


[ExtVal] Extval + EL

2010-08-22 Thread Walter Mourão
Hi folks,
I just finishing integrating the JSF cartridge of
Andromdahttp://www.andromda.org/with Extval and I have a doubt: is
there a way to use an EL expression to
validate a field, using ExtVal ?

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [ExtVal] Extval + EL

2010-08-22 Thread Walter Mourão
Hi Gerhard,
actually I'm searching for something like:

@ValidWhen(property * 5 = 55)

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Sun, Aug 22, 2010 at 6:07 PM, Gerhard gerhard.petra...@gmail.com wrote:

 hi walter,

 there is no special el-expression.
 extval autom. detects annotations of the bound properties.

 regards,
 gerhard

 http://www.irian.at

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

 Professional Support for Apache MyFaces



 2010/8/22 Walter Mourão walter.mou...@gmail.com

  Hi folks,
  I just finishing integrating the JSF cartridge of
  Andromdahttp://www.andromda.org/with Extval and I have a doubt: is
  there a way to use an EL expression to
  validate a field, using ExtVal ?
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 



Re: [ExtVal] Extval + EL

2010-08-22 Thread Walter Mourão
It's done: https://issues.apache.org/jira/browse/EXTVAL-114

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Sun, Aug 22, 2010 at 8:27 PM, Gerhard gerhard.petra...@gmail.com wrote:

 hi walter,

 i see - you mean an el-expression as condition.
 that might be useful for some users - please file a jira issue (new
 feature) for the property validation module.

 regards,
 gerhard

 http://www.irian.at

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

 Professional Support for Apache MyFaces



 2010/8/23 Walter Mourão walter.mou...@gmail.com

  Hi Gerhard,
  actually I'm searching for something like:
 
  @ValidWhen(property * 5 = 55)
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Sun, Aug 22, 2010 at 6:07 PM, Gerhard gerhard.petra...@gmail.com
  wrote:
 
   hi walter,
  
   there is no special el-expression.
   extval autom. detects annotations of the bound properties.
  
   regards,
   gerhard
  
   http://www.irian.at
  
   Your JSF powerhouse -
   JSF Consulting, Development and
   Courses in English and German
  
   Professional Support for Apache MyFaces
  
  
  
   2010/8/22 Walter Mourão walter.mou...@gmail.com
  
Hi folks,
I just finishing integrating the JSF cartridge of
Andromdahttp://www.andromda.org/with Extval and I have a doubt: is
there a way to use an EL expression to
validate a field, using ExtVal ?
   
Thanks,
   
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
   
  
 



Re: Trinidad code completion

2010-08-21 Thread Walter Mourão
Thank you! I installed the JBoss Tools and it is working. I didn't know it
was needed...

Best regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Sat, Aug 21, 2010 at 9:46 AM, venkat.rama...@thomsonreuters.com wrote:

 Hi
 It works in helios if u install jboss tools plugin as well.

 Thanks


 - Original Message -
 From: Walter Mourão walter.mou...@gmail.com
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Sat Aug 21 02:52:38 2010
 Subject: Re: Trinidad code completion

 Can somebody confirm the Trinidad code completion is working in Eclipse
 Helios ?

 Thanks,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Fri, Aug 6, 2010 at 5:02 PM, Matthias Wessendorf mat...@apache.org
 wrote:

  Strange. But I guess that is a tooling issue
 
  sent from my Android phone
 
  On Aug 6, 2010 6:34 PM, Walter Mourão walter.mou...@gmail.com wrote:
   Hi folks,
   after installing Eclipse Helios (J2EE bundle + Trinidad plugin) the
  Trinidad
   code completion stopped working...
  
   Hints ?
  
   Thanks in advance,
  
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
 



Re: Trinidad code completion

2010-08-20 Thread Walter Mourão
Can somebody confirm the Trinidad code completion is working in Eclipse
Helios ?

Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Aug 6, 2010 at 5:02 PM, Matthias Wessendorf mat...@apache.orgwrote:

 Strange. But I guess that is a tooling issue

 sent from my Android phone

 On Aug 6, 2010 6:34 PM, Walter Mourão walter.mou...@gmail.com wrote:
  Hi folks,
  after installing Eclipse Helios (J2EE bundle + Trinidad plugin) the
 Trinidad
  code completion stopped working...
 
  Hints ?
 
  Thanks in advance,
 
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br



Trinidad code completion

2010-08-06 Thread Walter Mourão
Hi folks,
after installing Eclipse Helios (J2EE bundle + Trinidad plugin) the Trinidad
code completion stopped working...

Hints ?

Thanks in advance,


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


[OFF-TOPIC] jsf-facelets12 maven repository

2010-08-03 Thread Walter Mourão
Hi folks,
I can not find jsf-facelets12 in any repository... Hints ?

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] partialSubmit with an action

2010-07-20 Thread Walter Mourão
Hi Paul,

(I would have assumed that it would ignore the partial
 submit as the entire view needs updating).


Actually the action can respond a null value and the partial submit works
fine. I'm currently using this way, so I don't think the behavior you
described is a general issue, maybe a localized bug.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Jul 20, 2010 at 6:57 AM, Paul Mander paul.s.man...@gmail.comwrote:


 I've just picked up some code that was appearing to execute twice or even
 three times for every request. I put some logging in a phase listener and a
 custom faces servlet (delegates to a real one) so I could track the
 requests.

 I finally tracked the problem down to command components that declare an
 action and partialSubmit=true. I've never actually seen a partial submit
 with an action before and I can't quite fathom what trinidad is doing with
 respect to this (I would have assumed that it would ignore the partial
 submit as the entire view needs updating).

 All I can see is the evidence that if I take off the partial submit I am
 back to my single execution per user request.

 Any thoughts as to if this is a bug in trinidad or a valid design pattern?

 Paul
 --
 View this message in context:
 http://old.nabble.com/-Trinidad--partialSubmit-with-an-action-tp29213203p29213203.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: [Trinidad] partialSubmit with an action

2010-07-20 Thread Walter Mourão
 On Tue, Jul 20, 2010 at 1:18 PM, Paul Mander paul.s.man...@gmail.comwrote:

 Can you explain why you are doing this? If you need to re-render the whole
 page (by returning null from a command action) then why are you using a
 partial submit? Surely a partial submit is to target a part of a view based
 on an action which you would normally bind to an action listener. Having an
 action and a partial submit (irrespective of the outcome) seems pointless.


Returning null does not re-render the whole page.
Generally I use the action listener to get some parameter value and the
action returns null to keep the partial submit behavior or returns some
outcome (to navigate to another page).


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] PartialSubmit and Alert

2010-05-25 Thread Walter Mourão
If using partial page rendering You can send some javascript from the
server, using the ExtendedRenderKitService's addScript() method.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, May 25, 2010 at 3:05 PM, Vinod Krishnan vin.si...@gmail.com wrote:

 you can use FacesMessages to show popup..

 Thanks,
 Vinod

 http://vtkrishn.wordpress.com/


 On Tue, May 25, 2010 at 11:09 PM, Jozef Dropco jozef.dro...@gmail.com
 wrote:

  Hi all,
 
  tr:commandButton actionListener=#{discountsBean.saveChanges}
  partialSubmit=true text=#{msg.save}/
 
  and I want: If method saveChanges returns error from business logic, show
  javascript alert on page
 
  Is it possible to do and how?
  Thanks
  Jozef
 



Re: How to Implement search facility in Trinidad combo box.

2010-04-15 Thread Walter Mourão
You will have to use an external component, something like
http://code.google.com/p/trinidadcomponents/

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Apr 14, 2010 at 7:28 PM, navnath kumbhar
kumbhar.navn...@gmail.comwrote:

 Hi All,

 I am trying to implement search facility in combo box, i.e. I have combo
 box
 with some list of options which fetched from DB.
 Now when I press K then combo filter and show me options which are started
 with K, Next if I press A then filter combo options with KA and show it.
 To fill combo I am using following code..

 tr:selectOneChoice value=#{salesOrderBB.cdoctypetargetid}
 label=Transaction Document
  f:selectItems value=#{salesOrderBB.comboCDoctypetargetId} /
 /tr:selectOneChoice

 This functionality implemented in Richfaces Please have a look on following
 link

 http://livedemo.exadel.com/richfaces-demo/richfaces/comboBox.jsf?c=comboBoxtab=usage

 I think it's there in myfaces(Trinidad). I have Googled, but I didn't find.

 Please help me out for this issue.

 Thank you,
 Navnath



Re: Facelets custom component with an action as a variable like ui:param

2010-04-12 Thread Walter Mourão
Hi, Georg,

yes, there are some (quite ugly) solutions:
http://www.ibm.com/developerworks/java/library/j-facelets2.html

Component with the same problem/solution:
http://code.google.com/p/trinidadcomponents

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Apr 12, 2010 at 8:56 AM, Georg Füchsle giofy...@googlemail.comwrote:

 Hallo,

 I use JSF 1.2 with Facelets and Tomahawk.

 Now I would like to make a facelets custom component for a navigation
 / toolkit bar (button panel) that looks the same in every page. This
 component should exist of a number of t:commandButtons that can be
 defined by calling this custom component.

 I thougt about something like this:

 In a file 'btnPanel.xhtml':
 span xmlns=http://www.w3.org/1999/xhtml;
  xmlns:f=http://java.sun.com/jsf/core;
  xmlns:h=http://java.sun.com/jsf/html;
  xmlns:ui=http://java.sun.com/jsf/facelets;
  xmlns:t=http://myfaces.apache.org/tomahawk;
  xmlns:c=http://java.sun.com/jstl/core;

ui:composition
ui:param name=btn1Value value=#{btn1Value}/
ui:param name=btn1Action value=#{btn1Action}/

 .

 /span


 I would define this as a custom tag:

tag
tag-namebtnPanel/tag-name
source../pages/btnPanel.xhtml/source
/tag


 Finally I want to call this control in my xhtml-pages like this:

 safir:btnPanel btn1Value=save btn1Action=#{mbBean.save}/

 But I realised that it is not possible to define a variable action for
 my custom control like this. Actually this way JSF looks for a method
 mbBean.getSave() instead of performing the action mbBean.save()


 Is there another way to do that?

 Thanks in advance


 Georg



[Trinidad] tr:inputHidden partialTriggers

2010-04-05 Thread Walter Mourão
Hi folks,
why the tr:inputHidden does not have the partialTriggers property ?

I'm using tr:inputText with inlineStyle=display:none but...

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


[Trinidad] Chart export

2010-03-29 Thread Walter Mourão
Hi folks,
I need to get the generated SVG in the server to create a PNG. How do I get
the current rendered char ( SVG ) in the server side ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


[Trinidad] Bug in 1.0.12 Javascript ?

2010-03-19 Thread Walter Mourão
Hi folks,
I'm trying the migration to 1.0.12 to avoid issues with Firefox 3.6. Some of
my subforms stopped working and I took a look at the javascript.
I realized the problem was in the validation of a long field, the method *
decimalParse* calls *getGroupingSeparator*...

...
function _getGroupingSeparator()
{
  if (_groupingSep != null)
return _groupingSep;

  return this.*getLocaleElements*()[NumberElements][1];
}
...

and *this.getLocaleElements* returns '*undefined*', crashing the conversion.

Actually the first thing that looked strange to me, was *
TrLongConverter.prototype.getAsObject* calling *_decimalParse* without the
last parameter, *ignoreLocaleSymbols*, as follows:

TrLongConverter.prototype.getAsObject = function(
  numberString,
  label
  )
{
  return _decimalParse(numberString,
   this._message,
   org.apache.myfaces.trinidad.convert.LongConverter,
   this._maxPrecision,
   this._maxScale,
   this._maxValue,
   this._minValue,
   label,
   null);
}
...
function _decimalParse(
  numberString,
  message,
  standardKey,
  maxPrecision,
  maxScale,
  maxValue,
  minValue,
  label,
  parsefloat,
  *ignoreLocaleSymbols*
  )
{
  // The following are from the javadoc for TrNumberConverter
  // If the specified String is null, return a null. Otherwise, trim leading
and trailing whitespace before proceeding.
  // If the specified String - after trimming - has a zero length, return
null.
  if (numberString == null)
return null;

  numberString = TrUIUtils.trim(numberString);
  if (numberString.length == 0)
return null

  var facesMessage = null;

  // Get LocaleSymbols (from Locale.js)
  var symbols = getLocaleSymbols();
  if (symbols  (*ignoreLocaleSymbols* != true))
  {
// We don't want leading or trailing grouping separators
var grouping = symbols.*getGroupingSeparator*();
if ((numberString.indexOf(grouping) == 0) ||
(numberString.lastIndexOf(grouping) ==  (numberString.length - 1)))
{
  facesMessage =  _createFacesMessage( standardKey+.CONVERT,
label,
...

Should I file an issue ? Is there an workaround ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] Bug in 1.0.12 Javascript ?

2010-03-19 Thread Walter Mourão
Actually I found an workaround, I added to trinidad-config.xml:

*number-grouping-separator./number-grouping-separator
decimal-separator,/decimal-separator
*
Thanks,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2010/3/19 Rafa Pérez raja...@gmail.com

 This issue is reported yet:
 https://issues.apache.org/jira/browse/TRINIDAD-1737

 We had to downgrade to 1.0.11.

 HTH,

 -- Rafa

 2010/3/19 Walter Mourão walter.mou...@gmail.com

  Hi folks,
  I'm trying the migration to 1.0.12 to avoid issues with Firefox 3.6. Some
  of
  my subforms stopped working and I took a look at the javascript.
  I realized the problem was in the validation of a long field, the method
 *
  decimalParse* calls *getGroupingSeparator*...
 
  ...
  function _getGroupingSeparator()
  {
   if (_groupingSep != null)
 return _groupingSep;
 
   return this.*getLocaleElements*()[NumberElements][1];
  }
  ...
 
  and *this.getLocaleElements* returns '*undefined*', crashing the
  conversion.
 
  Actually the first thing that looked strange to me, was *
  TrLongConverter.prototype.getAsObject* calling *_decimalParse* without
 the
  last parameter, *ignoreLocaleSymbols*, as follows:
 
  TrLongConverter.prototype.getAsObject = function(
   numberString,
   label
   )
  {
   return _decimalParse(numberString,
this._message,
 
 org.apache.myfaces.trinidad.convert.LongConverter,
this._maxPrecision,
this._maxScale,
this._maxValue,
this._minValue,
label,
null);
  }
  ...
  function _decimalParse(
   numberString,
   message,
   standardKey,
   maxPrecision,
   maxScale,
   maxValue,
   minValue,
   label,
   parsefloat,
   *ignoreLocaleSymbols*
   )
  {
   // The following are from the javadoc for TrNumberConverter
   // If the specified String is null, return a null. Otherwise, trim
 leading
  and trailing whitespace before proceeding.
   // If the specified String - after trimming - has a zero length, return
  null.
   if (numberString == null)
 return null;
 
   numberString = TrUIUtils.trim(numberString);
   if (numberString.length == 0)
 return null
 
   var facesMessage = null;
 
   // Get LocaleSymbols (from Locale.js)
   var symbols = getLocaleSymbols();
   if (symbols  (*ignoreLocaleSymbols* != true))
   {
 // We don't want leading or trailing grouping separators
 var grouping = symbols.*getGroupingSeparator*();
 if ((numberString.indexOf(grouping) == 0) ||
 (numberString.lastIndexOf(grouping) ==  (numberString.length -
 1)))
 {
   facesMessage =  _createFacesMessage( standardKey+.CONVERT,
 label,
  ...
 
  Should I file an issue ? Is there an workaround ?
 
  Thanks in advance,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 



Re: [Trinidad] Old pocket IE

2010-03-17 Thread Walter Mourão
I hacked the AgentFactoryImpl to use the generic pda when the Windows CE is
of version 4.20 and it is working fine now...

Could somebody confirm the Windows CE 4.20 does not work with Trinidad in a
way I open an issue+patch in Trinidad ?

FYI, the request headers:
{cookie=JSESSIONID=C71C1786C80463B62427EDE54E5C024B, ua-pixels=240x320,
connection=Keep-Alive, host=10.0.1.1:8080, accept=*/*, ua-os=Windows CE
(Pocket PC) - Version 4.20, user-agent=Mozilla/4.0 (compatible; MSIE 4.01;
Windows CE; PPC; 240x320), accept-encoding=gzip, deflate,
ua-language=JavaScript, ua-cpu=ARM PXA255, ua-voice=FALSE, ua-color=color16}


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2010/3/16 Walter Mourão walter.mou...@gmail.com

 Hi folks,

 I just realized the tr:commandLink isn't working with an old Pocket PC /
 Pocket IE... it looks like this browser does not support javascript. Is
 there a way to force Trinidad to render without javascript ?

 FYI: the application works with Windows Mobile 5... but my customer has
 lots of data collectors running the old Pocket IE..

 Thanks in advance,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




Re: Trinidad: auto suggest input box?

2010-03-16 Thread Walter Mourão
Hi Mike, I've built a Trinidad/Facelets alternative at
http://code.google.com/p/trinidadcomponents/

I hope it helps,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Mar 15, 2010 at 3:24 PM, Mike Quentel mquen...@4dm-inc.com wrote:

 Does Trinidad have an auto-suggest functionality like this example:

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

 Many thanks,

 Mike Quentel






[Trinidad] Old pocket IE

2010-03-16 Thread Walter Mourão
Hi folks,

I just realized the tr:commandLink isn't working with an old Pocket PC /
Pocket IE... it looks like this browser does not support javascript. Is
there a way to force Trinidad to render without javascript ?

FYI: the application works with Windows Mobile 5... but my customer has lots
of data collectors running the old Pocket IE..

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: [Trinidad] Is it possible to unselect row in nested tr:table with Trinidad 1.2.10 ? Is there a way to get around tr:table using fly-weight pattern for CoreTable passed in SelectionEvent to selec

2010-03-04 Thread Walter Mourão
Hi Ilker,
Add a selectionListener to the inner table. When the selectionListener is
fired, clear the outer table selection.

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Mar 4, 2010 at 9:04 AM, iki...@pershing.com wrote:

 Hello folks,

 I have a nested (via using detailStamp faced) tr:table that is 2 levels
 deep (outer and inner).
 The rows of inner table is single row selectable (via
 rowSelection=single), while outer table is not selectable.

 Let's say I have 2 rows in outer table. Hence, I have 2 inner tables in
 the outer table.
 Let's say these 2 outer rows are expanded and display their inner tables.
 Then user selects a row in 1st inner table.
 When user selects a row in the 2nd inner table, I'm trying to unselect the
 row selected in the 1st one.
 But not able to do it.

 How can this be done ?

 Regards,
 -- ilker

 Information Classification: Public

 **
 IMPORTANT: Any information contained in this communication is intended for
 the use of the named individual or entity. All information contained in this
 communication is not intended or construed as an offer, solicitation, or a
 recommendation to purchase any security. Advice, suggestions or views
 presented in this communication are not necessarily those of Pershing LLC
 nor do they warrant a complete or accurate statement.

 If you are not an intended party to this communication, please notify the
 sender and delete/destroy any and all copies of this communication.
 Unintended recipients shall not review, reproduce, disseminate nor disclose
 any information contained in this communication. Pershing LLC reserves the
 right to monitor and retain all incoming and outgoing communications as
 permitted by applicable law.

 Email communications may contain viruses or other defects. Pershing LLC
 does not accept liability nor does it warrant that email communications are
 virus or defect free.
 **


Re: [Trinidad] Is it possible to unselect row in nested tr:table with Trinidad 1.2.10 ? Is there a way to get around tr:table using fly-weight pattern for CoreTable passed in SelectionEvent to selec

2010-03-04 Thread Walter Mourão

 Thank you for your reply.
 But as I was mentioning, the outer table is not selectable (meaning its
 rowSelection=none, which is default).
 Only the inner table is selectable.

 Hence, when 2nd inner table is selected, I want to be able to clear the
 selection of the 1st inner table.


Sorry, I misunderstood the tables relationship.

The client ids of inner components in a table are created prefixing the
table id+:+rownum+:+component id. Add id=firstTable to the first table
and id=secondTable to the second table. In the selection listener, get the
client id of the selected table and calculate the client id of the other
table. With the client id you can get (with ViewRoot.findComponent) the
CoreTable instance of the other table to clear its selection.

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Mar 4, 2010 at 2:11 PM, iki...@pershing.com wrote:

 Hello Walter,

 Thank you for your reply.
 But as I was mentioning, the outer table is not selectable (meaning its
 rowSelection=none, which is default).
 Only the inner table is selectable.

 Hence, when 2nd inner table is selected, I want to be able to clear the
 selection of the 1st inner table.

 The question becomes how will the inner table row be able to do that via
 its 'selectionListener'.
 I know the basic mechanism is to use CoreTable that one can extract from
 SelectionEvent (as shown below).

 But the problem is, the coreTable value that I get for 1st and 2nd inner
 table seems to be the same value.


 CODE SNIPPETS:
 =
 UI code as xhtml;
 tr:table var=outerRow value=#{mainMB.outerTableRows}
 autoSubmit=true immediate=true
   f:facet name=detailStamp
tr:table var=innerRow value=#{outerRow.innerTableRows}
  selectionListener=#{innerRow.innerTableSelectionListener}
 rowSelection=single
 autoSubmit=true
 immediate=true
 !-- some tr:column definitions --
  /tr:table
   /f:facet
 /tr:table





 The MainMB.java code snippet;
 ListOuterTableMB outerTableRows;  // this is initialized somehow


 The OuterTableMB.java code snippet
 ListInnerTableMB innerTableRows;  // this is initialized somehow and
 'this' pointer is passed to them.


 The InnerTableMB.java code snippet;

 OuterTablesMB outerTableRowPtr =    // this is set by outer table row
 whenever an inner table row is created
 CoreTable coreTable = null;

 public void innerTableSelectionListener(SelectionEvent _se){
  CoreTable __coreTableNew = (CoreTable) _se.getComponent();
   if(coreTable == null || (__coreTableNew != null 
 __coreTableNew!=coreTable)) coreTable = __coreTableNew;
  // loop over the inner table rows that outer table row had created
  for(InnerTableMB __innerTableRow :
 outerTableRowPtr.getInnerTableRows()){
 if(_innerTableRow != this 
 coreTable!=null)__innerTableRow.unSelectRows();
  }
 }

 public void unSelectRows(){
   RowKeySet __selectedRowKeySet = coreTable.getSelectedRowKeys();
   __selectedRowKeySet.removeAll();
   coreTable.setRowIndex(-1);
 }



 The problem is, the CoreTable that I extract from SelectionEvent is the
 same for both 1st and 2nd inner table.

 Regards,
 -- ilker




 From:
 Walter Mourão walter.mou...@gmail.com
 To:
 MyFaces Discussion users@myfaces.apache.org
 Date:
 03/04/2010 07:55 AM
 Subject:
 Re: [Trinidad] Is it possible to unselect row in nested tr:table with
 Trinidad 1.2.10 ? Is there a way to get around tr:table using fly-weight
 pattern for CoreTable passed in SelectionEvent to selectionListener method
 ?



 Hi Ilker,
 Add a selectionListener to the inner table. When the selectionListener is
 fired, clear the outer table selection.

 Regards,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Thu, Mar 4, 2010 at 9:04 AM, iki...@pershing.com wrote:

  Hello folks,
 
  I have a nested (via using detailStamp faced) tr:table that is 2 levels
  deep (outer and inner).
  The rows of inner table is single row selectable (via
  rowSelection=single), while outer table is not selectable.
 
  Let's say I have 2 rows in outer table. Hence, I have 2 inner tables in
  the outer table.
  Let's say these 2 outer rows are expanded and display their inner
 tables.
  Then user selects a row in 1st inner table.
  When user selects a row in the 2nd inner table, I'm trying to unselect
 the
  row selected in the 1st one.
  But not able to do it.
 
  How can this be done ?
 
  Regards,
  -- ilker
 
  Information Classification: Public
 
  **
  IMPORTANT: Any information contained in this communication is intended
 for
  the use of the named individual or entity. All information contained in
 this
  communication is not intended or construed as an offer, solicitation, or
 a
  recommendation to purchase any security. Advice, suggestions or views
  presented in this communication

Re: SelectOneRadio selectitem label

2010-02-02 Thread Walter Mourão
You can add *white-space: pre* to the style and add line breaks to the
label.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Feb 2, 2010 at 12:46 AM, C J cjs_b...@yahoo.com wrote:

 Trinidad provides this with tr:table: (
 http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_table.html).

 If you use trinidad, also read the following:
 (http://forum.springsource.org/showthread.php?t=74388highlight=trinidad)
 .

 --- On Mon, 2/1/10, Kunle Ola kunle...@gmail.com wrote:


 From: Kunle Ola kunle...@gmail.com
 Subject: SelectOneRadio selectitem label
 To: users@myfaces.apache.org
 Date: Monday, February 1, 2010, 2:34 PM


 Hi,

 I am developing a JSF application for a medical organization, the radio
 options require long descriptions, and the text is folding under the radio
 button , which makes the page look unsightly. What I need is to make the
 text break into multiple lines next to the radio button, I was wondering if
 anyone knows how to do this.

 I am using selectItem to display the options.




 Thanks







[Trinidad] error message: selectorString must be non null and non empty

2010-01-27 Thread Walter Mourão
Hi folks I'm migrating a Trinidad application from 1.0.* to 1.2.13 and I've
got selectorString must be non null and non empty error. I know it is
related with the skin customization, but I could not find any selector
field in my css.

Hints ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: Trinidad Composite Component

2010-01-08 Thread Walter Mourão
Try:

http://code.google.com/p/trinidadcomponents/

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Jan 8, 2010 at 1:46 PM, Paul Pasquel
paul.pasq...@modinter.com.ecwrote:

 Hi,

 Could you tell where I can find an example to build an Composite Trinidad
 Component using facelets ?

 Thanks

 --
 This email was Anti Virus checked by Astaro Security Gateway.



Re: [Trinidad] Trinidad and Glassfish: resource servlet does not work

2010-01-04 Thread Walter Mourão
Hi Folks, It's working !

I migrated the application to MyFaces 1.2.8, Trinidad 1.2.10, removed the
el-api and el-ri dependencies, rebuilt and it's working fine in Glassfish
too!

Best regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Dec 29, 2009 at 2:21 PM, Luka Surija l...@iytim.hr wrote:

 I've used trinidad 1.0.7 with facelets without problems on glassfish v2,
 but didn't use myfaces. Migration to 1.2.x was to replace libraries and
 recompile.

 Luka Surija





 Walter Mourão wrote:

 I would like to know if somebody is using Trinidad + Glassfish
 successfully...


 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 2009/12/24 Walter Mourão walter.mou...@gmail.com



 Hi Bart,
 I'm already using this way.
 my sun-web.xml :

 ?xml version=1.0 encoding=UTF-8?


 !DOCTYPE sun-web-app PUBLIC -//Sun Microsystems, Inc.//DTD Application
 Server 8.1 Servlet 2.4//EN 
 http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd;

 sun-web-app
 class-loader delegate=false/
 property name=useMyFaces value=true/!-- Glassfish V2 --
 property name=useBundledJsf value=true/!-- Glassfish V3 --
 /sun-web-app



 No luck yet.


 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Wed, Dec 23, 2009 at 11:49 AM, Bart Kummel bkum...@gmail.com wrote:



 Hi Walter,

 Do you have the class-loader delegate=false/ element in your
 sun-web.xml? Like this:
 sun-web-app 
  class-loader delegate=false/
  property name=useMyFaces value=true/
 /sun-web-app

 There are several class loading problems, and this setting seems to
 solve
 some of them...

 Best regards,
 Bart

 2009/12/22 Walter Mourão walter.mou...@gmail.com



 Hi Matthias, thanks the attention.

 I just checked and I'm sure the resource servlet is executed. The url
 is
 null after URL url = loader.getResource(resourcePath); in:
 ...
   ResourceLoader loader = _getResourceLoader(request);
   String resourcePath = getResourcePath(request);
   URL url = loader.getResource(resourcePath);

   // Make sure the resource is available
   if (url == null)
   {
 response.sendError(HttpServletResponse.SC_NOT_FOUND);
 return;
   }
 ...

 Some not found resources I saw during debug:
 /adf/jsLibs/DebugCommon1_0_10.js
  /adf/styles/cache/default-desktop-lmwkb-ltr-gecko.css
 /adf/images/t.gif

 Since the application is running fine in a standalone Tomcat, I think


 the


 problem is related with some classloader issue regarding Glassfish X
 Trinidad ...

 Hints ?
 Should I open a Jira issue ? In Glassfish or Trinidad :-) ?

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Mon, Dec 21, 2009 at 10:38 AM, Matthias Wessendorf 


 mat...@apache.org


 wrote:
  did you check (w/ debugger) that the resource servlet is
 really


 executed


 ?


 If not, that's likely some container specific issue

 -M

 2009/12/21 Walter Mourão walter.mou...@gmail.com:


 Hi folks,
 I'm trying to make an existing Trinidad (1.0.10) application to work


 in


  Glassfish (2.1.1).
 After creating the sun-web.xml with the property useMyFaces=true,


 the


  application started to work, but the resources from Trinidad (css,
 javascript) isn't going to the browser.
 The urls inside the html source code are correct and it looks like


 the


  servlet isn't being executed.
 I checked in Glassfish and the servlet is recognized (appears as
 sub-component of the web application).

 Any hints ?

 Thanks in advance,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf











Re: [Trinidad] Trinidad and Glassfish: resource servlet does not work

2009-12-29 Thread Walter Mourão
I would like to know if somebody is using Trinidad + Glassfish
successfully...


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2009/12/24 Walter Mourão walter.mou...@gmail.com

 Hi Bart,
 I'm already using this way.
 my sun-web.xml :

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE sun-web-app PUBLIC -//Sun Microsystems, Inc.//DTD Application
 Server 8.1 Servlet 2.4//EN 
 http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd;

 sun-web-app
 class-loader delegate=false/
 property name=useMyFaces value=true/!-- Glassfish V2 --
 property name=useBundledJsf value=true/!-- Glassfish V3 --
 /sun-web-app


 No luck yet.


 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Wed, Dec 23, 2009 at 11:49 AM, Bart Kummel bkum...@gmail.com wrote:

 Hi Walter,

 Do you have the class-loader delegate=false/ element in your
 sun-web.xml? Like this:
 sun-web-app 
  class-loader delegate=false/
  property name=useMyFaces value=true/
 /sun-web-app

 There are several class loading problems, and this setting seems to solve
 some of them...

 Best regards,
 Bart

 2009/12/22 Walter Mourão walter.mou...@gmail.com

  Hi Matthias, thanks the attention.
 
  I just checked and I'm sure the resource servlet is executed. The url is
  null after URL url = loader.getResource(resourcePath); in:
  ...
 ResourceLoader loader = _getResourceLoader(request);
 String resourcePath = getResourcePath(request);
 URL url = loader.getResource(resourcePath);
 
 // Make sure the resource is available
 if (url == null)
 {
   response.sendError(HttpServletResponse.SC_NOT_FOUND);
   return;
 }
  ...
 
  Some not found resources I saw during debug:
  /adf/jsLibs/DebugCommon1_0_10.js
   /adf/styles/cache/default-desktop-lmwkb-ltr-gecko.css
  /adf/images/t.gif
 
  Since the application is running fine in a standalone Tomcat, I think
 the
  problem is related with some classloader issue regarding Glassfish X
  Trinidad ...
 
  Hints ?
  Should I open a Jira issue ? In Glassfish or Trinidad :-) ?
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Mon, Dec 21, 2009 at 10:38 AM, Matthias Wessendorf 
 mat...@apache.org
  wrote:
 
   did you check (w/ debugger) that the resource servlet is really
 executed
  ?
   If not, that's likely some container specific issue
  
   -M
  
   2009/12/21 Walter Mourão walter.mou...@gmail.com:
Hi folks,
I'm trying to make an existing Trinidad (1.0.10) application to work
 in
Glassfish (2.1.1).
After creating the sun-web.xml with the property useMyFaces=true,
 the
application started to work, but the resources from Trinidad (css,
javascript) isn't going to the browser.
The urls inside the html source code are correct and it looks like
 the
servlet isn't being executed.
I checked in Glassfish and the servlet is recognized (appears as
sub-component of the web application).
   
Any hints ?
   
Thanks in advance,
   
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
   
  
  
  
   --
   Matthias Wessendorf
  
   blog: http://matthiaswessendorf.wordpress.com/
   sessions: http://www.slideshare.net/mwessendorf
   twitter: http://twitter.com/mwessendorf
  
 





Re: [Trinidad] Trinidad and Glassfish: resource servlet does not work

2009-12-24 Thread Walter Mourão
Hi Bart,
I'm already using this way.
my sun-web.xml :

?xml version=1.0 encoding=UTF-8?
 !DOCTYPE sun-web-app PUBLIC -//Sun Microsystems, Inc.//DTD Application
 Server 8.1 Servlet 2.4//EN 
 http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd;
 sun-web-app
 class-loader delegate=false/
 property name=useMyFaces value=true/!-- Glassfish V2 --
 property name=useBundledJsf value=true/!-- Glassfish V3 --
 /sun-web-app


No luck yet.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Dec 23, 2009 at 11:49 AM, Bart Kummel bkum...@gmail.com wrote:

 Hi Walter,

 Do you have the class-loader delegate=false/ element in your
 sun-web.xml? Like this:
 sun-web-app 
  class-loader delegate=false/
  property name=useMyFaces value=true/
 /sun-web-app

 There are several class loading problems, and this setting seems to solve
 some of them...

 Best regards,
 Bart

 2009/12/22 Walter Mourão walter.mou...@gmail.com

  Hi Matthias, thanks the attention.
 
  I just checked and I'm sure the resource servlet is executed. The url is
  null after URL url = loader.getResource(resourcePath); in:
  ...
 ResourceLoader loader = _getResourceLoader(request);
 String resourcePath = getResourcePath(request);
 URL url = loader.getResource(resourcePath);
 
 // Make sure the resource is available
 if (url == null)
 {
   response.sendError(HttpServletResponse.SC_NOT_FOUND);
   return;
 }
  ...
 
  Some not found resources I saw during debug:
  /adf/jsLibs/DebugCommon1_0_10.js
   /adf/styles/cache/default-desktop-lmwkb-ltr-gecko.css
  /adf/images/t.gif
 
  Since the application is running fine in a standalone Tomcat, I think the
  problem is related with some classloader issue regarding Glassfish X
  Trinidad ...
 
  Hints ?
  Should I open a Jira issue ? In Glassfish or Trinidad :-) ?
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Mon, Dec 21, 2009 at 10:38 AM, Matthias Wessendorf mat...@apache.org
  wrote:
 
   did you check (w/ debugger) that the resource servlet is really
 executed
  ?
   If not, that's likely some container specific issue
  
   -M
  
   2009/12/21 Walter Mourão walter.mou...@gmail.com:
Hi folks,
I'm trying to make an existing Trinidad (1.0.10) application to work
 in
Glassfish (2.1.1).
After creating the sun-web.xml with the property useMyFaces=true, the
application started to work, but the resources from Trinidad (css,
javascript) isn't going to the browser.
The urls inside the html source code are correct and it looks like
 the
servlet isn't being executed.
I checked in Glassfish and the servlet is recognized (appears as
sub-component of the web application).
   
Any hints ?
   
Thanks in advance,
   
Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br
   
  
  
  
   --
   Matthias Wessendorf
  
   blog: http://matthiaswessendorf.wordpress.com/
   sessions: http://www.slideshare.net/mwessendorf
   twitter: http://twitter.com/mwessendorf
  
 



Re: [Trinidad] Trinidad and Glassfish: resource servlet does not work

2009-12-22 Thread Walter Mourão
Hi Matthias, thanks the attention.

I just checked and I'm sure the resource servlet is executed. The url is
null after URL url = loader.getResource(resourcePath); in:
...
ResourceLoader loader = _getResourceLoader(request);
String resourcePath = getResourcePath(request);
URL url = loader.getResource(resourcePath);

// Make sure the resource is available
if (url == null)
{
  response.sendError(HttpServletResponse.SC_NOT_FOUND);
  return;
}
...

Some not found resources I saw during debug:
/adf/jsLibs/DebugCommon1_0_10.js
 /adf/styles/cache/default-desktop-lmwkb-ltr-gecko.css
/adf/images/t.gif

Since the application is running fine in a standalone Tomcat, I think the
problem is related with some classloader issue regarding Glassfish X
Trinidad ...

Hints ?
Should I open a Jira issue ? In Glassfish or Trinidad :-) ?

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Dec 21, 2009 at 10:38 AM, Matthias Wessendorf mat...@apache.orgwrote:

 did you check (w/ debugger) that the resource servlet is really executed ?
 If not, that's likely some container specific issue

 -M

 2009/12/21 Walter Mourão walter.mou...@gmail.com:
  Hi folks,
  I'm trying to make an existing Trinidad (1.0.10) application to work in
  Glassfish (2.1.1).
  After creating the sun-web.xml with the property useMyFaces=true, the
  application started to work, but the resources from Trinidad (css,
  javascript) isn't going to the browser.
  The urls inside the html source code are correct and it looks like the
  servlet isn't being executed.
  I checked in Glassfish and the servlet is recognized (appears as
  sub-component of the web application).
 
  Any hints ?
 
  Thanks in advance,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 



 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf



[Trinidad] Trinidad and Glassfish: resource servlet does not work

2009-12-21 Thread Walter Mourão
Hi folks,
I'm trying to make an existing Trinidad (1.0.10) application to work in
Glassfish (2.1.1).
After creating the sun-web.xml with the property useMyFaces=true, the
application started to work, but the resources from Trinidad (css,
javascript) isn't going to the browser.
The urls inside the html source code are correct and it looks like the
servlet isn't being executed.
I checked in Glassfish and the servlet is recognized (appears as
sub-component of the web application).

Any hints ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: pop up for delete confirmation

2009-12-10 Thread Walter Mourão
Working fine.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Dec 10, 2009 at 10:50 AM, pbr...@johnson.ca wrote:

 Can anyone else hit the url for PrimeFaces below?I'm trying to
 determine if it's my network that won't let me out or if the app is
 down???  I really want the ajax fluff that goes with prime faces.  I had a
 few instances where I could have used it in my last project.

 Pat





 Luka Surija l...@iytim.hr
 09/12/2009 06:57 PM
 Please respond to
 MyFaces Discussion users@myfaces.apache.org


 To
 MyFaces Discussion users@myfaces.apache.org
 cc

 Subject
 Re: pop up for delete confirmation






 Cagatay,
 I'm really impressed with your PrimeFaces.

 Luka Surija



 On 12/09/2009 05:45 PM, Cagatay Civici wrote:
  There's a special component for this in PrimeFaces called confirmDialog
  integrated with command components.
 
  http://97.107.138.40:8080/prime-showcase/ui/confirmDialog.jsf
 
  That will work smoothly with Tomahawk.
 
  On Wed, Dec 9, 2009 at 4:43 PM, Grant Smithwork.gr...@gmail.com wrote:
 
 
  I use RichFace's ModelPanel for this...
 
  On Wed, Dec 9, 2009 at 8:39 AM,pbr...@johnson.ca  wrote:
 
 
  So that's the second person who is using the regular old javascript
  confirm dialog.  Doesn't it seem odd that there is no tomahawk popup
  component?  My leader seems to think that we shouldn't use this
 because
 
  it
 
  is ancient.  I wish he could come up with a better excuse than that.
  However, does anyone an idea for a better looking component?
 
  Pat
 
 
 
 
 
  Luka Surijal...@iytim.hr
  09/12/2009 01:01 PM
  Please respond to
  MyFaces Discussionusers@myfaces.apache.org
 
 
  To
  MyFaces Discussionusers@myfaces.apache.org
  cc
 
  Subject
  Re: pop up for delete confirmation
 
 
 
 
 
 
  onclick=return(confirm('#{msg.AreYouSure}'));
 
  Luka Surija
 
 
 
  On 12/03/2009 12:02 PM, Anton Gavazuk wrote:
 
  I'm using the basic javascript...
 
  2009/11/30pbr...@johnson.ca
 
 
 
  I am using the Tomahawk set of tags for this project.  I need a pop
 to
  confirm the deletion of a record.  There doesn't seem to be any
 
  concept
 
  of
 
  a popup in JSF or Tomahawk.  I can use a basic javascript cofirm
 popup
 
  and
 
  functionaly it works perfect but the color scheme doesn't match my
  application and it doesn't look good.  Just wondering what everyone
 
  else
 
  does to confirm a delete?
 
  Pat
 
 
 
 
 
 
  --
  Grant Smith
 
 
 




Re: Customizing a MyFaces application for mobile devices

2009-10-14 Thread Walter Mourão
My two cents: I'm happy with Trinidad+Mobile.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Oct 14, 2009 at 7:50 AM, seemamani seemam...@gmail.com wrote:


 hi,

 We are using MyFaces in our web application and are now looking to support
 mobile devices. I understand that the MyFaces components have default
 renderers which generate css that might not work well in iPhone and other
 mobile devices. Do we have renderers supporting mobile devices available
 for
 the standard MyFaces components? Or do we need to replace all our MyFaces
 components with MyFaces Trinidad components to resolve this problem? What
 are the other challenges that we can expect when customizing our MyFaces
 application for mobile devices?

 Thanks,
 Seema
 --
 View this message in context:
 http://www.nabble.com/Customizing-a-MyFaces-application-for-mobile-devices-tp2568p2568.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: [trinidad] Lightweight dialogs - commandLinks not working?

2009-10-07 Thread Walter Mourão
Hi Bruno,

I have an application that uses lightweight dialogs. Acording to the docs
 [1], you should be able to navigate inside the dialog, but this seems not to
 be the case when using lightweight dialogs?


It works... actually the lightweight dialogs contains iframes.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Oct 7, 2009 at 12:31 PM, Bruno Aranda brunoara...@gmail.com wrote:

 I have an application that uses lightweight dialogs. Acording to the docs
 [1], you should be able to navigate inside the dialog, but this seems not to
 be the case when using lightweight dialogs?


Re: [Trinidad] addDomReplaceListener

2009-08-29 Thread Walter Mourão
Take a look at http://myfaces.apache.org/trinidad/devguide/ppr.html (search
for'Monitoring AJAX requests')

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Aug 28, 2009 at 1:24 PM, Mirco Attocchi ami...@gmail.com wrote:

 Hi all (sorry for my bad english),
 I'm adding a listener with
 TrPage.getInstance().addDomReplaceListener(myCallback);

 myCallback listener is called for each dom change, one or more time.
 Is possible to have a listener only for the end of PPR call (called one
 time)?

 I'd like to use it to add a jQuery widget to the new-rendered
 component after the PPR call.

 Thanks

 --
 Mirco Attocchi



Re: HtmlCommandLinkTag programmatically pressed

2009-08-12 Thread Walter Mourão
 I want to click all these links
 programmatically from my backing bean. Is this possible?

You will need some way to send javascript (
getElementById('linkId').click(), for example) from the backing bean.
Trinidad supports that
(http://myfaces.apache.org/trinidad/devguide/ppr.htmlsearch for Using
RequestContext).

Regards,


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Aug 12, 2009 at 3:44 PM, Jan-Kees van Andel 
jankeesvanan...@gmail.com wrote:

 Hi,

 I don't really understand what you mean with clicking from your
 backing bean. Do you mean invoking the action associated with the
 button, Java style? Or do you mean you want to trigger a client side
 click from a backing bean? That isn't possible, not even with other
 standard web frameworks, unless you use a technology like Comet. And
 what do you mean with clicking from your backing bean? Do you have
 Java code in a backing bean method that needs to trigger some UI
 event?

 Could you give us a bit more context please?

 Regards,
 Jan-Kees

 2009/8/12 mitroiasi mitroi...@yahoo.com:
 
 
  Hi,
 
  I work on a JSF application. Right now, I have a problem which I will try
 to
  explain.
  On one page I have many commandLinks. I want to click all these links
  programmatically from my backing bean. Is this possible?
 
  --
  View this message in context:
 http://www.nabble.com/HtmlCommandLinkTag-programmatically-pressed-tp24938271p24938271.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 



Re: EL within EL in jsp page to get value from resource bundle

2009-07-04 Thread Walter Mourão
try:
h:outputText value=#{linkNames[link.linkName]}

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Sat, Jul 4, 2009 at 8:07 AM, codemaniac asajn...@gmail.com wrote:


 I have list of links that can be dynamically loaded and displayed on
 webpage
 based on the client implementing solution. I like to get a user friendly
 message for the link name in the jsp using local bundle.

 I need a way to use an el within el.

 Example
 h:outputText value=#{linkNames[#{link.linkName}]}



 Is this possible? I am using JSF 1.1

 Thanks CodeManiac
 --
 View this message in context:
 http://www.nabble.com/EL-within-EL-in-jsp-page-to-get-value-from-resource-bundle-tp24333627p24333627.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Using SSL with JSF

2009-06-27 Thread Walter Mourão
For example, the following code (from web.xml) makes tomcat use SSL when the
resources under /CadastrarServico/ are requested:

...
security-constraint
web-resource-collection
web-resource-namecadastrar servico
resources/web-resource-name
description
This collection bundles all pages and resources
as well as the actions called in the cadastrar servico
use-case
/description
url-pattern/CadastrarServico/*/url-pattern
/web-resource-collection
auth-constraint
role-nameAutoridade/role-name
role-nameAdministrador/role-name
role-nameGerente/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENT/transport-guarantee
/user-data-constraint
/security-constraint
...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Sat, Jun 27, 2009 at 6:59 AM, Anton Gavazuk antongava...@gmail.comwrote:

 Hi Scott,

 Normally, its not a business of JSF framework - HTTPS is implemented on
 webserver side, e.g. apache/tomcat.

 2009/6/27 Scott Carter carterdevli...@gmail.com

 Sorry if this is a dumb question, but what is the proper way in jsf
 navigation rules to direct to a secure page.  I already have all of the
 certificates setup on the server, and can access any page using https.  The
 question is, how do I make sure the navigation rule uses https ?  I guess I
 could put a fully qualified url in the config, but what is the correct way
 of doing this?  I would also need to redirect back to regular http after a
 couple of forms.

 Thanks in advance.





Re: [Trinidad] how to trigger a tr:panelPopup from java

2009-05-28 Thread Walter Mourão
You can open a popup from a button click with something like:


onclick=TrPanelPopup.showPopup('popupMostraErros_popupContainer',
'popupMostraErros', event, 'click','centered',true,0,0,0,0); return true;

Using the 
ExtendedRenderKitServicehttp://myfaces.apache.org/trinidad/trinidad-api/apidocs/index.htmlyou
can send the javascript code from the server side java.

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, May 28, 2009 at 6:53 AM, Carsten Pieper 
carsten.pie...@continentale.de wrote:


 Hi,

 we would like it very much, if we could really trigger the tr:panelPopup
 from Java/server-side (in contrast to Renzo's original question no
 menu or any other view member should be involved). Is this possible?

 Background: We're using Trinidad in a portal environment in which
 ordinary popups (via useWindow or launchDialog(...)) are not
 working, whereas popups that use the panelPopup (and therefor
 are rendered as DIVs) are working fine...

 Thanks in advance, Carsten


 Andrew Robinson-5 wrote:
 
  Right now I am pretty sure there is not. But you could submit a JIRA
  to have the renderer do that. Until then, you could write a
  work-around in the page-load event that forces the click event on the
  trigger using JavaScript.
 
  -Andrew
 
  On 9/10/07, Renzo Tomaselli renzo.tomase...@tecnotp.it wrote:
  Hi, I would trigger a panelPopup as a consequence of some menu action,
  instead of text/link clicking.
  But from component javadoc it appears that the only activation modes
  allowed are either trigger or text attributes.
  Is ther any chance for alternatives ?
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-Trinidad--how-to-trigger-a-tr%3ApanelPopup-from-java-tp12593319p23758647.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: [Trinidad] onunload to launch JSF event (and close session)

2009-05-21 Thread Walter Mourão
I think they're wrong...
Does your page have a logout button ? add a code like
document.getElementById('logout').click() to the onunload event.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, May 21, 2009 at 2:34 PM, Bertrand, Shawn R 
shawn.bertr...@tycoelectronics.com wrote:

  Any possible way this could work?  I'm getting beat up by my colleagues
 about this, as GWT has the ability to launch an event to the server,
 allowing the session close, and Trinidad/JSF doesn't appear to.

 I'd love to prove them wrong :)

 Thanks in advance,

 Shawn Bertrand






Re: trinidad for mobile, working?

2009-05-15 Thread Walter Mourão
My environment:
Trinidad+Facelets+Eclipse (+Andromda+Spring+Hibernate+...).

To simulate I'm using a Firefox plugin: User Agent Switcher.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, May 15, 2009 at 4:45 AM, Dave javao...@yahoo.com wrote:

  The demos are very helpful. Can we see the source code? or download?

 I have some questions:

 For mobile, Should I use ORACLE ADF or trinidad?   Are they the same ?
 The artical uses JDeveloper. Can we use eclipse(that we use) to achieve the
 same goal?

 Which phone emulators are the best for mobile WAP testing? where to
 download?

 Thanks
 Dave



 --- On *Thu, 5/14/09, tadashi enomori tadashi.enom...@oracle.com* wrote:


 From: tadashi enomori tadashi.enom...@oracle.com
 Subject: RE: trinidad for mobile, working?
 To: MyFaces Discussion users@myfaces.apache.org
 Date: Thursday, May 14, 2009, 10:59 AM

 Some more demos:

 http://stshld.oracle.com:/demo/faces/main.jspx

 Customer references (very old and need to be updated) can be found at:

 http://www.oracle.com/technology/products/jdev/customers/index.html

 Thanks,
 Tadashi



 -Original Message-
 From: 
 mwessend...@gmail.comhttp://us.mc355.mail.yahoo.com/mc/compose?to=mwessend...@gmail.com[mailto:
 mwessend...@gmail.comhttp://us.mc355.mail.yahoo.com/mc/compose?to=mwessend...@gmail.com]On
 Behalf Of
 Matthias Wessendorf
 Sent: Thursday, May 14, 2009 5:10 AM
 To: MyFaces Discussion
 Subject: Re: trinidad for mobile, working?


 this is trinidad as well:

 http://www.oracle.com/technology/pub/articles/huang-iphone.html

 -Matthias

 2009/5/14 Walter Mourão 
 walter.mou...@gmail.comhttp://us.mc355.mail.yahoo.com/mc/compose?to=walter.mou...@gmail.com
 :
  I'm quite successful using Trinidad in a mobile application, not wap. The
  application is accessed from a device (data collector) using Internet
  Explorer Mobile 6.
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Wed, May 13, 2009 at 10:49 PM, Dave 
  javao...@yahoo.comhttp://us.mc355.mail.yahoo.com/mc/compose?to=javao...@yahoo.com
 wrote:
 
  we are thinking about using Trinidad to extend our app for wap. Has
 anyone
  successfully developed wap application using trinidad?  or should I use
 jsp
  at this time? please show some commercial wap sites using trinidad.
 Thanks
  for sharing.
 
  Dave
 
 



 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf





Re: trinidad for mobile, working?

2009-05-14 Thread Walter Mourão
I'm quite successful using Trinidad in a mobile application, not wap. The
application is accessed from a device (data collector) using Internet
Explorer Mobile 6.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, May 13, 2009 at 10:49 PM, Dave javao...@yahoo.com wrote:

  we are thinking about using Trinidad to extend our app for wap. Has
 anyone successfully developed wap application using trinidad?  or should I
 use jsp at this time? please show some commercial wap sites using trinidad.
 Thanks for sharing.

 Dave




Re: Trinidad: did not open a new dialog window with useWindow=true

2009-05-07 Thread Walter Mourão
Hi Dave,
I just uploaded a small test project to show a misbehavior in Trinidad
dialogs but despite the misbehavior, the project can be used as an example.
Download from the following jira issue:
https://issues.apache.org/jira/browse/TRINIDAD-1469

I hope it helps

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, May 7, 2009 at 4:12 AM, Dave javao...@yahoo.com wrote:

  yes, the action method returns: dialog:editValue.

 --- On *Wed, 5/6/09, Richard Yee richard.k@gmail.com* wrote:


 From: Richard Yee richard.k@gmail.com
 Subject: Re: Trinidad: did not open a new dialog window with
 useWindow=true
 To: MyFaces Discussion users@myfaces.apache.org
 Date: Wednesday, May 6, 2009, 10:48 AM

 What view id is being returned by the bean.go() method? Is the view id
 prefixed with dialog:?

 -Richard

 On Wed, May 6, 2009 at 8:15 AM, Glauco P. Gomes
 glaucopgo...@yahoo.com.brhttp://us.mc355.mail.yahoo.com/mc/compose?to=glaucopgo...@yahoo.com.br
 wrote:
  Set org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS to false and
 you
  get your expected results.
 
  Glauco P. Gomes
 
  Dave escreveu:
 
  org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS was set to true, I
  expected Trinidad to open a dialog on the top of the current page (keep
 the
  current page), but it was a normal page navigation. (useWindow=true)
 
  --- On Wed, 5/6/09, Glauco P. Gomes 
  glaucopgo...@yahoo.com.brhttp://us.mc355.mail.yahoo.com/mc/compose?to=glaucopgo...@yahoo.com.br
 wrote:
 
  From: Glauco P. Gomes 
  glaucopgo...@yahoo.com.brhttp://us.mc355.mail.yahoo.com/mc/compose?to=glaucopgo...@yahoo.com.br
 
  Subject: Re: Trinidad: did not open a new dialog window with
  useWindow=true
  To: MyFaces Discussion 
  users@myfaces.apache.orghttp://us.mc355.mail.yahoo.com/mc/compose?to=us...@myfaces.apache.org
 
  Date: Wednesday, May 6, 2009, 4:11 AM
 
  The org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS param tells to
  Trinidad to use IFrame, setting it to false tells to Trinidad to open a
 new
  window.
 
  Glauco P. Gomes
 
  Dave escreveu:
 
  For trinidad 1.2.11,
  IFrame or Window, which is used for dialog framework?
 
  tr:commandLink id=commandLink
text=Go
action=#{bean.go}
partialSubmit=false useWindow=true
returnListener=#{bean.handleReturn} /
 
  The action return: dialog:editValue.
  It did not popup a new window for dialog, but show the dialog in the same
  window.
 
  in web.xml
 
  context-param
 
 param-nameorg.apache.myfaces.trinidad.CACHE_VIEW_ROOT/param-name
  param-valuefalse/param-value
  /context-param
  context-param
 
 
 param-nameorg.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS/param-name
  param-valuetrue/param-value
  /context-param
  context-param
 
 
 param-nameorg.apache.myfaces.trinidadinternal.renderkit.USE_DIALOG_POP/param-name
  param-valuetrue/param-value
  /context-param
 
 
  Environment: jsf ri 1.2.12, tomahawk 1.1.8, richfaces 3.3.0, trinidad
  1.2.11, jboss 5.0.1GA, window XP, IE7.0.   Popup block is disabled in IE.
 
  How to pop up a window for dialog?  Thanks for help
  Dave
 
 
 
 
 





Re: how to add post-data to a redirect from an action

2009-04-21 Thread Walter Mourão
Some time ago I wrote a small http proxy where an web service call generates
a http post. I used commons-httpclient:
http://hc.apache.org/httpclient-3.x/and it was quite useful.

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Apr 21, 2009 at 7:58 AM, Georg Füchsle giofy...@googlemail.comwrote:

 Hallo Simon,


 Yes You have understood right: I want the user's browser to call
 another server and dont want to continue processing my application
 afterwards.

 I also have thought about the JavaScript solution.
 But using a js solution generally I will write the xml-data into the
 user's html. I did'nt like to do that, because this (xml-)data grants
 You access to the other application. For this reason I wanted to hide
 the xml-data. But using get-Parameters the xml-data is visible the
 same.


 Maybe should think about a ajax- functionality like this:

 I use a commandbutton that supports ajax-request and a hidden form
 that makes a post-request.
 When the user clickes the commandbutton i can fill the data of the
 form via ajax and then in an after-ajax-event click the submit-button
 of the form via JavaScript. Do You think this will work?

 I hoped, there would be an more easy way

 Thank You for Your help.

 Regards


 Georg

 2009/4/21 Simon Kitching skitch...@apache.org:
  Georg Füchsle schrieb:
  hallo,
 
 
  I have to call another application out from JSF.
  To call this application i have to send (xml) data via post to the
  start-url of this application.
 
  I found some example on the web:
 
  code
  ExternalContext extContext =
  FacesContext.getCurrentInstance().ctx.getExternalContext();
  String name = URLEncoder.encode(INTERFACENAME, utf-8);
  String someData = ?xml version='1.0' encoding='UTF-8'? data
  caller value='giofyxle'/app value='2'//data/xml;
  String value = URLEncoder.encode(someData , UTF-8);
  String viewId = http://www.server.com/startapp/index.html+ '?' +
  name + = + value;
  String urlLink = extContext.encodeActionURL(viewId);
  extContext.redirect(urlLink);
  /code
 
 
  I tried this code. its calls the new application, but the data is sent
 via GET:
 
 
 http://www.server.com/startapp/index.html?INTERFACENAME==%3C%3Fxml+version%3D%271.0%27+encoding...
 ..
 
  So the intefacedata is easily be read by the user. Has anyone any idea
  how i can make a rediract with POST data?
 
  When you say call another application out, do you mean that you want
  the *user's browser* to send a POST command to some other server, and
  then display the result returned from that server (without any further
  processing)?
 
  HTTP provides no way to do this; the http-redirect facilities only do
  GET commands. See the HTTP specification for more details. What your
  code above does (extContext.redirect) just generates an http redirect
  response, and the user's browser then processes this response and does
  the redirect.
 
  HTML provides no way to do this either AFAIK.
 
  JSF just uses HTTP and HTML, so JSF also has no way to do this. I think
  you will need to use javascript, ie generate an HTML page that contains
  an html form with the fields you want, and some javascript that then
  does document.getElementById(formId).submit() or something similar.
 
 
  Or does call another application outmean that after a JSF submit, you
  want *your server* to send a POST command to some other server, then
  process the result before sending back a new page to the user? You can
  use the apache commons-httpclient library to do things like this.
 
  Regards,
  Simon
 
  --
  -- Emails in mixed posting style will be ignored
  -- (http://en.wikipedia.org/wiki/Posting_style)
 



Re: how to add post-data to a redirect from an action

2009-04-21 Thread Walter Mourão
No, Sorry, I misunderstood your needs...


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Apr 21, 2009 at 12:43 PM, Georg Füchsle giofy...@googlemail.comwrote:

 Hallo Walter,

 thanks for Your reply.

 I have tried to understand what ist httpclient, but I am not shure if
 I am right.

 What I guess is that httpclient can manage the client-communication to
 a web server.
 That means I can make programs that interact with a webserver. (like
 calling an url with some data  and process the response.)

 What I want to do is: inside my WebApp - when the User pressed a
 button - I want to redirect the User to another WebApp on another
 server provided with some post-data. The answer to this request to the
 second WebApp should never arrive at my WebApp but should be
 interpreted by the User's browser.

 Do You think, httpclient can help me doing this?

 Thanks,


 Georg

 2009/4/21 Walter Mourão walter.mou...@gmail.com:
  Some time ago I wrote a small http proxy where an web service call
 generates
  a http post. I used commons-httpclient:
 http://hc.apache.org/httpclient-3.x/
  and it was quite useful.
 
  Cheers,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Tue, Apr 21, 2009 at 7:58 AM, Georg Füchsle giofy...@googlemail.com
  wrote:
 
  Hallo Simon,
 
 
  Yes You have understood right: I want the user's browser to call
  another server and dont want to continue processing my application
  afterwards.
 
  I also have thought about the JavaScript solution.
  But using a js solution generally I will write the xml-data into the
  user's html. I did'nt like to do that, because this (xml-)data grants
  You access to the other application. For this reason I wanted to hide
  the xml-data. But using get-Parameters the xml-data is visible the
  same.
 
 
  Maybe should think about a ajax- functionality like this:
 
  I use a commandbutton that supports ajax-request and a hidden form
  that makes a post-request.
  When the user clickes the commandbutton i can fill the data of the
  form via ajax and then in an after-ajax-event click the submit-button
  of the form via JavaScript. Do You think this will work?
 
  I hoped, there would be an more easy way
 
  Thank You for Your help.
 
  Regards
 
 
  Georg
 
  2009/4/21 Simon Kitching skitch...@apache.org:
   Georg Füchsle schrieb:
   hallo,
  
  
   I have to call another application out from JSF.
   To call this application i have to send (xml) data via post to the
   start-url of this application.
  
   I found some example on the web:
  
   code
   ExternalContext extContext =
   FacesContext.getCurrentInstance().ctx.getExternalContext();
   String name = URLEncoder.encode(INTERFACENAME, utf-8);
   String someData = ?xml version='1.0' encoding='UTF-8'? data
   caller value='giofyxle'/app value='2'//data/xml;
   String value = URLEncoder.encode(someData , UTF-8);
   String viewId = http://www.server.com/startapp/index.html+ '?' +
   name + = + value;
   String urlLink = extContext.encodeActionURL(viewId);
   extContext.redirect(urlLink);
   /code
  
  
   I tried this code. its calls the new application, but the data is
 sent
   via GET:
  
  
  
 http://www.server.com/startapp/index.html?INTERFACENAME==%3C%3Fxml+version%3D%271.0%27+encoding...
 ..
  
   So the intefacedata is easily be read by the user. Has anyone any
 idea
   how i can make a rediract with POST data?
  
   When you say call another application out, do you mean that you want
   the *user's browser* to send a POST command to some other server, and
   then display the result returned from that server (without any further
   processing)?
  
   HTTP provides no way to do this; the http-redirect facilities only do
   GET commands. See the HTTP specification for more details. What your
   code above does (extContext.redirect) just generates an http redirect
   response, and the user's browser then processes this response and does
   the redirect.
  
   HTML provides no way to do this either AFAIK.
  
   JSF just uses HTTP and HTML, so JSF also has no way to do this. I
 think
   you will need to use javascript, ie generate an HTML page that
 contains
   an html form with the fields you want, and some javascript that then
   does document.getElementById(formId).submit() or something similar.
  
  
   Or does call another application outmean that after a JSF submit,
 you
   want *your server* to send a POST command to some other server, then
   process the result before sending back a new page to the user? You can
   use the apache commons-httpclient library to do things like this.
  
   Regards,
   Simon
  
   --
   -- Emails in mixed posting style will be ignored
   -- (http://en.wikipedia.org/wiki/Posting_style)
  
 
 



Re: [Trinidad] What resets the pageFlowScope ?

2009-04-10 Thread Walter Mourão
Bump!
Sorry, I just want a hint before digging into the code...

Thanks.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Feb 26, 2009 at 5:04 PM, Walter Mourão walter.mou...@gmail.comwrote:

 Hi folks,
 in a specific commandAction the pageFlowScope is reseting ( I see the
 change in the _afPfm token ). What is the rule that makes the
 pageFlowScope continue the same instance between pages ?

 Thanks in advance,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




Re: [Trinidad] Mobile Agents (Blackberry)

2009-03-30 Thread Walter Mourão
All the info I needed to far about Trinidad in mobile development I found in
the dev guide: http://myfaces.apache.org/trinidad/devguide/mobile.html

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Mar 30, 2009 at 4:37 AM, aurel.sa...@vectorsoftware.ro wrote:

 Hello,
 I have read about rendering Trinidad apps to blackberry devices. Can you
 give me some links to read about this (some examples , some fragments code
 from implementation maybe)?
 Best regards,
 Aurel




Re: [Trinidad] How to detect that we are in a dialog?

2009-03-30 Thread Walter Mourão
If you're using a backing bean action to differentiate the kind of
navigation, use the same action to set the flag in the page flow scope.


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2009/3/30 Rafa Pérez raja...@gmail.com

 Thanks for your answer, but I'm not sure if it could be applied to our
 problem. The button who launches the dialog is used to navigate to other
 pages too, and if one of those pages can be opened either in dialog mode
 or normal flow of navigation. Then it won't be possible to differentiate in
 which case we are, aren't we?

 Regards,

 -- Rafa


 2009/3/26 Walter Mourão walter.mou...@gmail.com

 Not sure if it is possible per si, but you can set a flag in the
 pageFlowScope to be checked inside the (supposed) dialog page, like:

 tr:commandButton ...
 tr:setActionListener from=#{row} to=#{pageFlowScope.dialogFlag} /
 /tr:commandButton


 Cheers,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 2009/3/26 Rafa Pérez raja...@gmail.com

 Hi all,

 we have several pages that can be opened either in the normal flow of the
 application or as dialogs. Is it possible to programmattically know if a
 window is opened as a dialog?

 Thanks in advance,

 -- Rafa

 PS: We are using Trinidad 1.0.10 and MyFaces 1.1.6






Re: [Trinidad] How to detect that we are in a dialog?

2009-03-26 Thread Walter Mourão
Not sure if it is possible per si, but you can set a flag in the
pageFlowScope to be checked inside the (supposed) dialog page, like:

tr:commandButton ...
tr:setActionListener from=#{row} to=#{pageFlowScope.dialogFlag} /
/tr:commandButton


Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



2009/3/26 Rafa Pérez raja...@gmail.com

 Hi all,

 we have several pages that can be opened either in the normal flow of the
 application or as dialogs. Is it possible to programmattically know if a
 window is opened as a dialog?

 Thanks in advance,

 -- Rafa

 PS: We are using Trinidad 1.0.10 and MyFaces 1.1.6



Re: Refresh View after HTTPSession Timeout

2009-03-13 Thread Walter Mourão
Suggestion:

1 - add a javascript state change listener;
2 - check the contents of the request using TrXMLRequestEvent
getResponseText() and/or getResponseStatusCode()
3 - if the result isn't a PPR result, notify the user or send the browser to
a specified url.

I'm planing to write something like that in a couple of weeks. Please reply
if you think it will not work.

Regards,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Fri, Mar 13, 2009 at 4:24 AM, Simon Kitching skitch...@apache.orgwrote:

 Hi,

 The solution I use is to put a ping script in the page which sends a
 request to the server every couple of minutes. With that, the session
 never times out while the browser window is open, and so the problem
 never occurs.

 Of course this requires javascript, but is javascript is disabled then
 so are all AJAX operations so then your filter will handle everything ok.

 I don't know of any solution to properly handle session-timeout for ajax
 requests. However I don't use ajax much. Maybe one of the ajax experts
 here can comment on that...

 Regards,
 Simon

 Ravizzz schrieb:
  Simon,
 
  You are right, Except the links to other jsp/html pages all other
 components
  like table and tabs give us this problem. Do you know any sort of
 solution
  for this?
 
 
  Simon Kitching wrote:
  My guess is that your timeout-handling approach is failing to work with
  any AJAX or frame-based pages, and that these tabs are just one case
  where ajax or frames are being used.
 
  The problem is that when a browser is refreshing a whole page, a filter
  can return an http-redirect command and the browser will then replace
  the current page with the redirected-to url.
 
  When the browser is just fetching a frame, only the frame contents will
  get directed, not the whole frameset.
 
  And when a browser is using XmlHttpRequest to do an AJAX operation,
  there is no obvious way for a filter to tell the browser to give up and
  redirect the current window to a new url. At least not one I know of (I
  presume sending back an http-redirect doesn't work..)
 
  Regards,
  Simon
 
  Ravizzz schrieb:
  We have implemented similar way of session timeout in our application
  using
  filter in web.xml.
 
  But we are facing one problem with this way of timeout.
 
  Once Session expires proper logout doesn’t not happen while clicking on
  tabs
  created in jspx using \tr:panelTabbed\ tags
 
 
  This is very specifically for the tabs and everything works fine while
  clicking on link or buttons etc
 
  In server logs we get Session Timed Out message, however at UI nothing
  happens, same teb is displayed and never logs out.
 
  Additionally we get the below message in logs:-
 
  [3/4/09 16:19:01:125 IST] 0035 StateManagerI E
  org.apache.myfaces.trinidadinternal.application.StateManagerImpl
  restoreView
  Could not find saved view state for token -1909e0a
 
  Any help or pointers would be appreciated.
 
 
  chrishane wrote:
  I have a generic search screen (standard input form) that displays the
  results on the next page using a tr:table.
 
  If the user hits the refresh button any time prior to the HTTPSession
  timeout, then the form is resubmitted and the search generated again
  (could
  display different results if the underlying data has been updated -
  which
  is what we want to happen).
 
  If the user leaves (for a time greater than the HTTPSession timeout)
 the
  results screen, comes back and hits the refresh button after the
  timeout,
  the Find screen is displayed again.
 
  I am using Trinidad 1.0 Myfaces 1.1, Jboss 4.0.x, Seam 1.2p1 with
 client
  side state saving.
 
  One of the first errors in the log is:
 
  2007-06-29 15:35:17,593 ERROR [STDERR] Jun 29, 2007 3:35:17 PM
  org.apache.myfaces.trinidadinternal.application.StateManagerImpl
  restoreView SEVERE: Could not find saved view state for token 7cad43c0
 
  Which is why I'm assuming it is the HTTPSession timeout.
 
  Is there anything I can do so that the refresh will re-run the
 search
  and
  not show the Find screen?
 
  Thanks,
  Chris
 
 
 
 
  --
  -- Emails in mixed posting style will be ignored
  -- (http://en.wikipedia.org/wiki/Posting_style)
 
 
 




[Trinidad] What resets the pageFlowScope ?

2009-02-26 Thread Walter Mourão
Hi folks,
in a specific commandAction the pageFlowScope is reseting ( I see the change
in the _afPfm token ). What is the rule that makes the pageFlowScope
continue the same instance between pages ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: How to reset an apache trinidad row selection

2009-02-25 Thread Walter Mourão
public void conteinerSelectionListener(SelectionEvent event){
final CoreTable table=(CoreTable)event.getComponent();
table.setRowIndex(-1);
table.getSelectedRowKeys().clear();
}

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Feb 25, 2009 at 4:36 PM, alex01130 alex01...@hotmail.com wrote:

  My Problem is, I'd like to reset /uncheck the select radio button of a
 tr:table inside the selectionListener procedure. Any ideas how perform this?

 Thanks in advance

 alex01130



Re: [Trinidad] No listener call when closing the dialog using 'X'

2009-02-18 Thread Walter Mourão
Sorry, my fault. Just debugged and it's working fine.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Feb 17, 2009 at 6:25 PM, Richard Yee richard.k@gmail.comwrote:

 What version of Trinidad? We are using 1.0.5 and find that clicking on
 the 'X' causes the returnListener to get called.

 -Richard


 On Tue, Feb 17, 2009 at 10:43 AM, Walter Mourão walter.mou...@gmail.com
 wrote:
  Hi folks,
  I just realized the dialog return listener isn't executed when the user
  clicks on the 'X'... Is there a workaround to make the return listener be
  executed in this situation ?
 
  Thanks in advance,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 



[Trinidad] No listener call when closing the dialog using 'X'

2009-02-17 Thread Walter Mourão
Hi folks,
I just realized the dialog return listener isn't executed when the user
clicks on the 'X'... Is there a workaround to make the return listener be
executed in this situation ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br


Re: JSF EL does not allow method calls

2009-02-16 Thread Walter Mourão
It looks to me you can use #{not empty facesContext.messages} in this
case.


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Mon, Feb 16, 2009 at 6:18 AM, Simon Kitching skitch...@apache.orgwrote:

 Madhav Bhargava schrieb:
  Hi All,
 
 
 
  I have a requirement wherein I have to disable UI components based on
  whether there are any error messages in the Message Queue (t:messages).
 
  facesContext is an implicit object so I thought of using it like -
  #{facesContext.getMessages.hasNext} However when it was not working
  because you can only specify properties of a class and JSF variable and
  property resolver will then internally try and call the getter/setter of
  that property.
 
 
 
  I find that rather limiting because I do not find the need to define a
  class level property when all I need is to process and output a Boolean.
  Is there any way apart from overriding the
  PropertyResolver/VariableResolver?

 No, EL does not allow method calls. It only allows reading/writing
 properties.

 However isn't this enough for what you want to do?

 You could create a simple class:
  public class MessageChecker {
public boolean isMessagePresent() {
  return FacesContext.currentInstance().getMessages().hasNext();
}
  }

 Then register this class as an app-scope managed bean.

 JSF components can then do
  disabled=#{messageChecker.messagePresent}

 Yes this means creating a trivial class, and having an instance of it in
 memory in order to call a static method from the JSF components. This
 could be considered ugly. But on the other hand, the JSF pages are now
 much better isolated from the details of the implementation.

 Regards,
 Simon
 --
 -- Emails in mixed posting style will be ignored
 -- (http://en.wikipedia.org/wiki/Posting_style)



Re: [Trinidad] Page reloads before launching the dialog

2009-02-12 Thread Walter Mourão
Many thanks Gerhard,

One last question: should the Close PPR command button closes the dialog ?
it doesn't...

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Feb 12, 2009 at 3:41 PM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:

 hello walter,

 your *... looks like the page was refreshed ...* is ok - it isn't a full
 page refresh.

 you can test it e.g. via a random value bound to an output-component (which
 is in the page). it should only change if you do none-ppr requests (or you
 trigger it).

 regards,
 gerhard



 2009/2/12 Walter Mourão walter.mou...@gmail.com

 Simple project attached.

 Behavior (in bold the things I think should not happen) :
 1 - write something in the inputText, click the Press me button and PPR
 works fine, showing the text in uppercase;
 2 - click Open Dialog PPR, the dialog opens but *looks like the page
 was refreshed* because the cursor changes and the browser status bar
 shows load activity, differently the PPR behavior when clicking the Press
 me buttons;
 3 - click the Close PPR button in the dialog, the dialog *does not
 close* and the dialog reloads;
 4 - close the dialog with Close no-PPR, the dialog closes and the the
 browser shows activity like the main page was refreshed;

 open dialog command buttons:
 ...
   tr:commandButton id=openDialogPPRAction text=Open Dialog
 PPR
action=#{testBean.openDialog} partialSubmit=true
 useWindow=true
windowHeight=200 windowWidth=300 immediate=true/
   tr:commandButton id=openDialogNoPPRAction text=Open Dialog
 no-PPR
action=#{testBean.openDialog} partialSubmit=false
useWindow=true windowHeight=200 windowWidth=300
 immediate=true/
 ...

 close dialog command buttons:
 ...
   tr:commandButton immediate=true partialSubmit=true
  action=#{testBean.closeDialog} text=Close PPR/
   tr:commandButton immediate=true partialSubmit=false
  action=#{testBean.closeDialog} text=Close
 no-PPR/
 ...

 faces-config:
 ...
   !-- navigation rules for page2.jspx as dialog --
 navigation-rule
   from-view-id/*/from-view-id
   navigation-case
 from-outcomedialog:testDialog/from-outcome
 to-view-id/dialog.jspx/to-view-id
   /navigation-case
 /navigation-rule
 ...

 testBean
 ...
 public String openDialog(){
 return dialog:testDialog;
 }

 public String closeDialog(){
 RequestContext.getCurrentInstance().returnFromDialog(null,null);
 return null;
 }
 ...

 Comments are welcome.

 Cheers,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 On Thu, Feb 12, 2009 at 7:17 AM, Gerhard Petracek 
 gerhard.petra...@gmail.com wrote:

 hello,

 yes - that's the desired behaviour.
 it sounds like walter talked about a full page refresh. in case of ppr it
 shouldn't occur.

 regards,
 gerhard



 2009/2/12 Jonathan Bullock jonathan.bull...@fugro-data.com

 We're using the dialog framework too and when the link is clicked a XHR
 POST is made to the page before the window loads and when the window is
 closed.

 Jon

 On Wed, 2009-02-11 at 11:54 -0800, Richard Yee wrote:
  Are you using any custom JavaScript?
 
  -R
 
  On Wed, Feb 11, 2009 at 10:24 AM, Walter Mourão 
 walter.mou...@gmail.com wrote:
   Actually the refresh occurs after closing the dialog too... :-(
  
   Hints ? Answers ?
  
   Thanks in advance,
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
  
  
   On Tue, Feb 10, 2009 at 9:27 AM, Walter Mourão 
 walter.mou...@gmail.com
   wrote:
  
   Hi folks,
   I'm using Trinidad 1.0.9. I realized that when launching a dialog
   (lightweight), the page containing the commandButton reloads before
   launching the dialog.
   Is it the expected behavior ? Is there a way to avoid that ?
  
   The commandButton:
   tr:commandButton text=#{messages['novo.documento']}
  
 action=#{captacaoController.entradaDeDadosDaCaptacaoNovoDocumentoAsDialog}
  
 returnListener=#{captacaoController.returnFromNovoDocumento}
   partialSubmit=true immediate=true useWindow=true
   windowHeight=600 windowWidth=600/
  
   Thanks in advance.
  
   Walter Mourão
   http://waltermourao.com.br
   http://arcadian.com.br
   http://oriens.com.br
  
  
  


 ---

 Fugro Data Solutions Limited
 Tyn y Coed
 Llanrhos
 Llandudno
 North Wales
 LL30 1SA
 United Kingdom

 Tel: +44 (0)1492 563555
 Fax: +44 (0)1492 592030

 General Email: i...@fugro-data.com

 Website: www.fugro-data.com

 This email and any attachments are confidential. They may
 contain privileged information and are intended for the named
 addressee(s) only. They must not be distributed without our
 consent. If you are not the intended recipient, please notify us
 immediately and do not disclose, distribute, or retain this
 email or any part of it. Unless

Re: [Trinidad] Page reloads before launching the dialog

2009-02-11 Thread Walter Mourão
Actually the refresh occurs after closing the dialog too... :-(

Hints ? Answers ?

Thanks in advance,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Tue, Feb 10, 2009 at 9:27 AM, Walter Mourão walter.mou...@gmail.comwrote:

 Hi folks,
 I'm using Trinidad 1.0.9. I realized that when launching a dialog
 (lightweight), the page containing the commandButton reloads before
 launching the dialog.
 Is it the expected behavior ? Is there a way to avoid that ?

 The commandButton:
 tr:commandButton text=#{messages['novo.documento']}
 action=#{captacaoController.entradaDeDadosDaCaptacaoNovoDocumentoAsDialog}
 returnListener=#{captacaoController.returnFromNovoDocumento}
 partialSubmit=true immediate=true useWindow=true
 windowHeight=600 windowWidth=600/

 Thanks in advance.

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br




Re: [Trinidad] Page reloads before launching the dialog

2009-02-11 Thread Walter Mourão
No javascript.

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Feb 11, 2009 at 5:54 PM, Richard Yee richard.k@gmail.comwrote:

 Are you using any custom JavaScript?

 -R

 On Wed, Feb 11, 2009 at 10:24 AM, Walter Mourão walter.mou...@gmail.com
 wrote:
  Actually the refresh occurs after closing the dialog too... :-(
 
  Hints ? Answers ?
 
  Thanks in advance,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  On Tue, Feb 10, 2009 at 9:27 AM, Walter Mourão walter.mou...@gmail.com
  wrote:
 
  Hi folks,
  I'm using Trinidad 1.0.9. I realized that when launching a dialog
  (lightweight), the page containing the commandButton reloads before
  launching the dialog.
  Is it the expected behavior ? Is there a way to avoid that ?
 
  The commandButton:
  tr:commandButton text=#{messages['novo.documento']}
 
 action=#{captacaoController.entradaDeDadosDaCaptacaoNovoDocumentoAsDialog}
 
 returnListener=#{captacaoController.returnFromNovoDocumento}
  partialSubmit=true immediate=true useWindow=true
  windowHeight=600 windowWidth=600/
 
  Thanks in advance.
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 



  1   2   >