Different validations for different command links

2007-08-21 Thread Nikhil Gahlot

I have used  myfaces-1.1.2 and sandbox-1.1.2 in my application. I have
created a form which has many command links/buttons for different actions
(add entry, delete entry and save). I am also using validations for various
input fields. But I want to make these validations applicable only to SAVE
action, others to bypass all the validations. I have tried with
immediate="true" but all the entered data get lost. And if I use custom
validator which I thought to check the nature of action while applying
validations, it doesnt work on empty fields even if I remove
required="true".
Is there a way to write custom validator for 'required validation'?
or
How can i bypass validation for an action(other than cancel action) as I
need model values to be persisted?

Thanks
Nikhil

-- 
View this message in context: 
http://www.nabble.com/Different-validations-for-different-command-links-tf4309598.html#a12268674
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Different validations for different command links

2007-08-21 Thread Nikhil Gahlot


-- 
View this message in context: 
http://www.nabble.com/Different-validations-for-different-command-links-tf4309554.html#a12268504
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TRINIDAD] 1.0.3: new PPR features

2007-08-21 Thread Adam Winer
Just added:

- PPR should be a good bit more efficient, as most input + output
  components will not render anything unless they are being PPR'd,
  and tables, trees, treeTables, navigationPanes and trains
  will be entirely skipped unless they or one of their contents
  is being PPR'd.

  Until now, PPR rendered everything and a ResponseWriter trimmed
  out what shouldn't be rendered.  That's still the case in part, but
  we can now entirely skip some branches of the UIComponent hierarchy.
  (The client validation code had to be somewhat overhauled to make
  this possible.)

- A new "addDomReplaceListener()" method provides notification
  of DOM changes from PPR.  A trivial example is:

function notePpr(oldDom, newDom)
{
 console.log("old", oldDom);
 console.log("new", newDom);
}

TrPage.getInstance().addDomReplaceListener(notePpr);

  ... which logs to Firebug any DOM elements that have been
  added or removed.

 Feedback we need:  currently, this API is called *after*
 the DOM replacement has happened, and gives you no
 way of preventing or overriding the DOM replacement.  I'm
 far from convinced that's the right choice:  it might be better
 to run this before replacement and allow this  function to "return
 false;", in which case no replacement would happen.

Cheers,
Adam Winer


Re: [Trinidad] iframe popup skinning

2007-08-21 Thread Jeanne Waldman




I can't get my 1.2.2 branch to work. I am running it from JDeveloper
and so I typed mvn install jdev:jdev, and I added jsf1.2 and JSP
Runtime libraries, I removed the myfaces libraries, I removed the h.tld
and myfaces-core.tld... things I normally do, but when I run the page
it comes up blank.
I've had problems with 1.2.2 branch last time I tried last week, so I
know I must not be setting things up correctly.
So... a long way of saying I wasn't able to try this.
- Jeanne

Jeanne Waldman wrote:

  
It works in trunk. I'll check 1.2.2 branch next.
  
Simon Lessard wrote:
  Hello all,

Using latest 1.2.2 branch, I have a problem with iframe popup skinning
where the style class does not get converted. The markup looks like:


 class="af|panelPopup::container">
  Pick a Date 
   


Anyone got it working?


Regards,

~ Simon
  





Re: [Trinidad] iframe popup skinning

2007-08-21 Thread Jeanne Waldman




It works in trunk. I'll check 1.2.2 branch next.

Simon Lessard wrote:
Hello all,
  
Using latest 1.2.2 branch, I have a problem with iframe popup skinning
where the style class does not get converted. The markup looks like:
  
  
 class="af|panelPopup::container">
    Pick a Date
  
    
  
  
  
Anyone got it working?
  
  
Regards,
  
~ Simon





Re: [Trinidad] internationalized CoreBundle

2007-08-21 Thread Adam Winer
I'd Oracle to be contributing translated versions of all Trinidad
bundles.  "When" is the big question.

-- Adam


On 8/21/07, Christian Klocker <[EMAIL PROTECTED]> wrote:
> i'm looking for a german version of the corebundle that's used in
> trindad internally. can someone help or do i have to create it?
>
> thanks christian
>


Re: [Trinidad] skinning af|showDetail::disclosed-icon for different components

2007-08-21 Thread Andrew Robinson
I got it to work, but it is a hack and subject to bugs.

I subclassed the PanelAccordionRenderer:
  protected void encodeAll(FacesContext context, RenderingContext arc,
UIComponent component, FacesBean bean) throws IOException
  {
Map origResMap = arc.getSkinResourceKeyMap();
Map resMap = origResMap == null ?
  new HashMap() : new HashMap(origResMap);

arc.setSkinResourceKeyMap(resMap);
try
{
  resMap.put(SkinSelectors.AF_SHOW_DETAIL_DISCLOSED_ICON_NAME,
"af|panelAccordion::disclosed-icon");
  resMap.put(SkinSelectors.AF_SHOW_DETAIL_UNDISCLOSED_ICON_NAME,
"af|panelAccordion::undisclosed-icon");
  super.encodeAll(context, arc, component, bean);
}
finally
{
  arc.setSkinResourceKeyMap(origResMap);
}
  }

This now lets me have my own icon. Unfortunately the author of
PanelAccordionRenderer made some methods private (like
_encodeDetailItem) and didn't break up encodeAll into smaller methods,
so there is no way I can remove the map for the children. As a result,
all children that may have disclosure icons will also get the
accordion version instead of the standard one.

On 8/21/07, Scott O'Bryan <[EMAIL PROTECTED]> wrote:
> No, I don't think there is.  You see, even though these icons are in the
> skinning stylesheet, they are actually served from the server.  The
> server query's the skinning system to get the url for these icons.
>
> Andrew Robinson wrote:
> > Is there a way to customize "af|showDetail::disclosed-icon" for only
> > one component?
> >
> > For example, this isn't working:
> >
> > af|panelAccordion::container af|showDetail::disclosed-icon
> >
> >
>
>


Re: [Trinidad] skinning af|showDetail::disclosed-icon for different components

2007-08-21 Thread Scott O'Bryan
No, I don't think there is.  You see, even though these icons are in the 
skinning stylesheet, they are actually served from the server.  The 
server query's the skinning system to get the url for these icons.


Andrew Robinson wrote:

Is there a way to customize "af|showDetail::disclosed-icon" for only
one component?

For example, this isn't working:

af|panelAccordion::container af|showDetail::disclosed-icon

  




[Trinidad] skinning af|showDetail::disclosed-icon for different components

2007-08-21 Thread Andrew Robinson
Is there a way to customize "af|showDetail::disclosed-icon" for only
one component?

For example, this isn't working:

af|panelAccordion::container af|showDetail::disclosed-icon


[Trinidad] iframe popup skinning

2007-08-21 Thread Simon Lessard
Hello all,

Using latest 1.2.2 branch, I have a problem with iframe popup skinning where
the style class does not get converted. The markup looks like:


  Pick a Date
  


Anyone got it working?


Regards,

~ Simon


issues with enter key in form inside of a tabset

2007-08-21 Thread Alexander Wallace
A very strange thing is hapenning when i hit enter in a text box  
which is inside of a tab in a tabset (tomahawk) ... The enter key  
causes the form to show content of the very first tab.


My desire is that the enter key clicks on a particular button I  
have given it the right js on the onkeypress event... It works... it  
does click on the button... What is undesired is that it also  
switches to the first tab.



Is there any way to prevent this?

Thanks!




Re: t:pprPanelGroup

2007-08-21 Thread Ernst Fastl
Hi again,

I commited a fix for the encoding issue recently. Try if the problem
still occurs with the current nightly builds.

regards

Ernst

On 8/17/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote:
> Good to hear that.
>
> BTW: did you see my post regarding pprPanelGroup breaking posting of
> UTF8 encoded text?
>
> regards,
> michał
>
> On 15/08/07, Ernst Fastl <[EMAIL PROTECTED]> wrote:
> > Hi Michal,
> >
> > Sounds lilke a good workaround to me. We are currently working
> > on JavaScript execution within PPR regions. Once that is solved
> > we will address the issue you have. I hope we will be able to
> > do so before the next release.
> >
> > best wishes
> >
> > Ernst
> >
> > On 8/14/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote:
> > > As a workaround I always render button2, but set it's inline style to
> > > 'display: block' or 'display: none'.
> > >
> > > On 14/08/07, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> wrote:
> > > > I have a button1 and button2 inside pprPanelGroup. button1 is always
> > > > visible and visibility of button2 is toggled by button1.
> > > >
> > > > I want button2 to be also capable of doing partial rendering. After
> > > > pressing button1 the button2 gets rendered, but the scripts for PPR
> > > > don;'t get called for it, thus pressing button2 will cause full page
> > > > submit. Is there any workaround for this?
> > > >
> > > > regards,
> > > > michał
> > > >
> > > > --
> > > > Michał Stawicki
> > > >
> > > > [EMAIL PROTECTED]
> > > > http://stawicki.jasliska.pl
> > > >
> > >
> > >
> > > --
> > > Michał Stawicki
> > >
> > > [EMAIL PROTECTED]
> > > http://stawicki.jasliska.pl
> > >
> >
>
>
> --
> Michał Stawicki
>
> [EMAIL PROTECTED]
> http://stawicki.jasliska.pl
>


Re: Email validation

2007-08-21 Thread Matthias Wessendorf
... and the tag class, so that you can apply it directly on the tag
(for those, using JSP)

-M

On 8/21/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Edit org.apache.myfaces.custom.emailvalidator.EmailValidator to
> support an optional "allowMultiple" attribute.
>
> When that attribute is true, have the code in validate split the input
> string up by comma (,) and validate each piece individually.
>
>
> On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote:
> >
> > I am sorry but I dont understand. Would appreciate if you can be more
> > elaborate.
> >
> > Thanks a lot for replying!
> >
> > Mike Kienenberger wrote:
> > >
> > > Submit a patch that allows multiple email addresses if allowMultiple=true.
> > >
> > > On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Hi,
> > >>
> > >> I have to do Email validation on TO, CC and BCC fields of mail sending
> > >> module. I saw this  tag. I tried to use it but it
> > >> validates
> > >> only one  email address. If there is a comma separated list of emails,
> > >> it's
> > >> not usefull.
> > >>
> > >> I wanted to confirm if my observation is true or is there a way to make
> > >> it
> > >> work with comma separted list of email address?
> > >>
> > >> Thanks!
> > >> --
> > >> View this message in context:
> > >> http://www.nabble.com/Email-validation-tf4306428.html#a12258680
> > >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/Email-validation-tf4306428.html#a12258879
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>


-- 
Matthias Wessendorf

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


Re: Email validation

2007-08-21 Thread Mike Kienenberger
Edit org.apache.myfaces.custom.emailvalidator.EmailValidator to
support an optional "allowMultiple" attribute.

When that attribute is true, have the code in validate split the input
string up by comma (,) and validate each piece individually.


On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote:
>
> I am sorry but I dont understand. Would appreciate if you can be more
> elaborate.
>
> Thanks a lot for replying!
>
> Mike Kienenberger wrote:
> >
> > Submit a patch that allows multiple email addresses if allowMultiple=true.
> >
> > On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> I have to do Email validation on TO, CC and BCC fields of mail sending
> >> module. I saw this  tag. I tried to use it but it
> >> validates
> >> only one  email address. If there is a comma separated list of emails,
> >> it's
> >> not usefull.
> >>
> >> I wanted to confirm if my observation is true or is there a way to make
> >> it
> >> work with comma separted list of email address?
> >>
> >> Thanks!
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Email-validation-tf4306428.html#a12258680
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Email-validation-tf4306428.html#a12258879
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: Email validation

2007-08-21 Thread rosanil

I am sorry but I dont understand. Would appreciate if you can be more
elaborate.

Thanks a lot for replying!

Mike Kienenberger wrote:
> 
> Submit a patch that allows multiple email addresses if allowMultiple=true.
> 
> On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I have to do Email validation on TO, CC and BCC fields of mail sending
>> module. I saw this  tag. I tried to use it but it
>> validates
>> only one  email address. If there is a comma separated list of emails,
>> it's
>> not usefull.
>>
>> I wanted to confirm if my observation is true or is there a way to make
>> it
>> work with comma separted list of email address?
>>
>> Thanks!
>> --
>> View this message in context:
>> http://www.nabble.com/Email-validation-tf4306428.html#a12258680
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Email-validation-tf4306428.html#a12258879
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Email validation

2007-08-21 Thread Mike Kienenberger
Submit a patch that allows multiple email addresses if allowMultiple=true.

On 8/21/07, rosanil <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have to do Email validation on TO, CC and BCC fields of mail sending
> module. I saw this  tag. I tried to use it but it validates
> only one  email address. If there is a comma separated list of emails, it's
> not usefull.
>
> I wanted to confirm if my observation is true or is there a way to make it
> work with comma separted list of email address?
>
> Thanks!
> --
> View this message in context: 
> http://www.nabble.com/Email-validation-tf4306428.html#a12258680
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Email validation

2007-08-21 Thread rosanil

Hi, 

I have to do Email validation on TO, CC and BCC fields of mail sending
module. I saw this  tag. I tried to use it but it validates
only one  email address. If there is a comma separated list of emails, it's
not usefull. 

I wanted to confirm if my observation is true or is there a way to make it
work with comma separted list of email address?

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Email-validation-tf4306428.html#a12258680
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[Trinidad] internationalized CoreBundle

2007-08-21 Thread Christian Klocker
i'm looking for a german version of the corebundle that's used in
trindad internally. can someone help or do i have to create it?

thanks christian


Re: [Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Jeanne Waldman
I've heard this request from a few people. You should add a JIRA issue 
if it isn't already there.


Currently, no, there is no way to get this information. There is a 
workaround that I've used.


It is to use a skin property. Then you can call skin.getProperty and 
pass in the key.

It's a hack.

So... you'd do this:

In your CSS file you would define your selector. Add your color 
property. And then make up some

skin property (starts with -tr- and NOT -tr-inhibit or -tr-rule-ref).

af|panelBox::medium af|panelBox::body {
 color: red;
 -tr-my-color-property: red;
}

The -tr-my-color-property gets registered with the skin automatically.

You retrieve it by calling skin.getProperty("af|panelBox::medium 
af|panelBox::body-tr-my-color-property")

- Jeanne






Andrew Robinson wrote:

Is there a way to get a value from the skin programmatically?

For example, I have to add a color to an attribute of a JSF component.
I would like to use a value from the current skin. Specifically the
background color from:
af|panelBox::medium af|panelBox::body

Is there any way to accomplish this?

  


Re: [Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Andrew Robinson
That gives my a CSS style, but I really need the CSS value for a
property in that style (background-color). Don't suppose I am able to
do that?

On 8/21/07, Danny Robinson <[EMAIL PROTECTED]> wrote:
> The Trinidad renderers usually just call:
>
> renderStyleClass(context, arc, styleClass);
>
> If you want to do this from a non-Trinidad component, then you could call
>
> RenderingContext arc = RenderingContext.getCurrentInstance
> ();
> String style = arc.getStyleClass(styleClass);
>
> where styleClass would be "af|panelBox::body" or similar.
>
>
> On 8/21/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > Is there a way to get a value from the skin programmatically?
> >
> > For example, I have to add a color to an attribute of a JSF component.
> > I would like to use a value from the current skin. Specifically the
> > background color from:
> > af|panelBox::medium af|panelBox::body
> >
> > Is there any way to accomplish this?
> >
>
>
>
> --
> Chordiant Software Inc.
> www.chordiant.com


Re: [Trinidad] customizing converter messages

2007-08-21 Thread Simon Lessard
Hello Darren,

Did you specify your message-bundle in faces-config.xml? Trinidad override
most converters, but BigInteger is not one of them so your keys should
work...
For Trinidad specific keys for number conversion, see
http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/convert/NumberConverter.htmlas
well as the source files in
org.apache.myfaces.trinidadinternal.convert package. (We should document
those somewhere public...)


Regards,

~ Simon

On 8/21/07, Darren McEntee <[EMAIL PROTECTED]> wrote:
>
>Hi guys,
>
>
>
> Can anyone tell me how to custom the messages a javax.faces converter
> outputs under a field after validation fails.
>
> We have a messages.properties file that contains key-value pairs like:
>
>
>
> javax.faces.converter.BigIntegerConverter.BIGINTEGER= testing  111
>
> javax.faces.converter.BigIntegerConverter.CONVERSION_detail value must be
> a number 222
>
>
>
> and the component is
>
>
>
>   
>
> 
>
>   
>
>
>
> This currently does not work, is there something I'm over reading here?
>
>
>
> Any info appreciated.
>
>
>
> Thanks,
>
> Darren.
>
>
>
>
> P Please consider the environment before printing this email
>_
>
> 1. The information contained in this E-mail, including any files
> transmitted with it, is confidential and may be legally privileged. This
> E-mail is intended only for the personal attention of the stated
> addressee(s). Any access to this E-mail, including any files transmitted
> with it, by any other person is unauthorised. If you are not an addressee,
> you must not disclose, copy, circulate or in any other way use or rely on
> the information contained in this E-mail or any files transmitted with it.
> Such unauthorised use may be unlawful. If you have received this E-mail in
> error, please inform the sender immediately and delete it and all copies
> from your system. You may not forward this E-mail without the permission of
> the sender.
>
> 2. The views expressed in this E-mail are those of the author, and do not
> necessarily represent the views of AMT-SYBEX. Internet communications are
> not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for
> the contents of this message nor for any damage caused by viruses.
>
>  AMT-SYBEX Limited is a UK company, registration number GB03036807 at
> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
>  AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at
> address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
> _
>


Re: [Trinidad] customizing converter messages

2007-08-21 Thread Danny Robinson
Use  as an
example, but there are 3 other messageDetail... attributes for different
conversion types supported by tr:convertNumber.

On 8/21/07, Darren McEntee <[EMAIL PROTECTED]> wrote:
>
>Hi guys,
>
>
>
> Can anyone tell me how to custom the messages a javax.faces converter
> outputs under a field after validation fails.
>
> We have a messages.properties file that contains key-value pairs like:
>
>
>
> javax.faces.converter.BigIntegerConverter.BIGINTEGER= testing  111
>
> javax.faces.converter.BigIntegerConverter.CONVERSION_detail value must be
> a number 222
>
>
>
> and the component is
>
>
>
>   
>
> 
>
>   
>
>
>
> This currently does not work, is there something I'm over reading here?
>
>
>
> Any info appreciated.
>
>
>
> Thanks,
>
> Darren.
>
>
>
>
> P Please consider the environment before printing this email
>_
>
> 1. The information contained in this E-mail, including any files
> transmitted with it, is confidential and may be legally privileged. This
> E-mail is intended only for the personal attention of the stated
> addressee(s). Any access to this E-mail, including any files transmitted
> with it, by any other person is unauthorised. If you are not an addressee,
> you must not disclose, copy, circulate or in any other way use or rely on
> the information contained in this E-mail or any files transmitted with it.
> Such unauthorised use may be unlawful. If you have received this E-mail in
> error, please inform the sender immediately and delete it and all copies
> from your system. You may not forward this E-mail without the permission of
> the sender.
>
> 2. The views expressed in this E-mail are those of the author, and do not
> necessarily represent the views of AMT-SYBEX. Internet communications are
> not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for
> the contents of this message nor for any damage caused by viruses.
>
>  AMT-SYBEX Limited is a UK company, registration number GB03036807 at
> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.
>  AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at
> address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
> _
>



-- 
Chordiant Software Inc.
www.chordiant.com


Re: [Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Danny Robinson
The Trinidad renderers usually just call:

renderStyleClass(context, arc, styleClass);

If you want to do this from a non-Trinidad component, then you could call

RenderingContext arc = RenderingContext.getCurrentInstance();
String style = arc.getStyleClass(styleClass);

where styleClass would be "af|panelBox::body" or similar.

On 8/21/07, Andrew Robinson <[EMAIL PROTECTED]> wrote:
>
> Is there a way to get a value from the skin programmatically?
>
> For example, I have to add a color to an attribute of a JSF component.
> I would like to use a value from the current skin. Specifically the
> background color from:
> af|panelBox::medium af|panelBox::body
>
> Is there any way to accomplish this?
>



-- 
Chordiant Software Inc.
www.chordiant.com


[Trinidad] Programmatically get a style from the skin

2007-08-21 Thread Andrew Robinson
Is there a way to get a value from the skin programmatically?

For example, I have to add a color to an attribute of a JSF component.
I would like to use a value from the current skin. Specifically the
background color from:
af|panelBox::medium af|panelBox::body

Is there any way to accomplish this?


[Trinidad] customizing converter messages

2007-08-21 Thread Darren McEntee
Hi guys,

 

Can anyone tell me how to custom the messages a javax.faces converter
outputs under a field after validation fails.

We have a messages.properties file that contains key-value pairs like:

 

javax.faces.converter.BigIntegerConverter.BIGINTEGER= testing  111

javax.faces.converter.BigIntegerConverter.CONVERSION_detail value must
be a number 222

 

and the component is 

 

  



  

 

This currently does not work, is there something I'm over reading here?

 

Any info appreciated.

 

Thanks,

Darren.
 
P Please consider the environment before printing this email
_ 
 
1. The information contained in this E-mail, including any files transmitted 
with it, is confidential and may be legally privileged. This E-mail is intended 
only for the personal attention of the stated addressee(s). Any access to this 
E-mail, including any files transmitted with it, by any other person is 
unauthorised. If you are not an addressee, you must not disclose, copy, 
circulate or in any other way use or rely on the information contained in this 
E-mail or any files transmitted with it. Such unauthorised use may be unlawful. 
If you have received this E-mail in error, please inform the sender immediately 
and delete it and all copies from your system. You may not forward this E-mail 
without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not 
necessarily represent the views of AMT-SYBEX. Internet communications are not 
secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the 
contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address 
The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address 
Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_


How to load the component model from a JSP outside of a web container?

2007-08-21 Thread Bryan Basham

Hello,

I am considering doing code generation of backing beans, JS files, CSS 
files,

and I18N text properties files based on the JSF component model for a given
screen.

One hurdle I need to overcome is that this code generation phase must
occur during the development cycle (not at run-time).  Therefore, I need
to be able to "load" a JSP file, extract the JSF component model, and then
walk the model and generate code based upon the components in the model.
Has anyone already tried this?  That is, have you created the code to (a)
compile the JSP, (b) create a FacesContext, (c) execute the JSP (I image 
that

just calling the service() method would be sufficient), and (c) extract the
UIViewRoot (from the FacesContext).  Did I miss any steps?  How could
I accomplish steps (a) and (b)?

Thanks,
Bryan



RE: [Trinidad] Return Listener on closing dialog

2007-08-21 Thread sandeep gururaj
Thanks Simon for letting me know, the reason for the change.

 

~Sandeep



From: Simon Lessard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 5:47 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] Return Listener on closing dialog

 

Hello Sandeep,

This was a wanted change made to the dialog framework. ReturnListener's
semantic is "the dialog was closed with the following parameters"
implying no parameter when closed with the 'X' button. Therefore, those
listeners serve as a notification system for the calling window to know
when its child was closed. Imagine staying with the old code and not
calling return listener when 'X' is pressed. How would you be able to
emulate the new behavior if your application requires to be notified? It
would be close to impossible. The other way around, however, is
extremely easy as you can simply push a return value and check if it's
present in the listener to know if it was closed using a commandButton
or with the 'X'. 


Regards,

~ Simon

On 8/21/07, sandeep gururaj <[EMAIL PROTECTED]> wrote: 

Hello All,

 

I noticed just now that in the Trinidad (version 1.0.2) along with
Myfaces (version 1.1.5), the return listener is called even if we close
the dialog window manually (by clicking the 'X' button of the dialog
window). When I used previous version of Trinidad and Myfaces, this was
not the case.

 

Any idea why this was changed in this way? Personally, I feel return
listeners should not be called when the dialog window's 'X' (Close)
button is clicked.

 

Also, is there a way to disable the Close, Minimise, Maximise buttons of
the dialog window?

 

Thanks

~Sandeep

 



Re: [Trinidad] Return Listener on closing dialog

2007-08-21 Thread Simon Lessard
Hello Sandeep,

This was a wanted change made to the dialog framework. ReturnListener's
semantic is "the dialog was closed with the following parameters" implying
no parameter when closed with the 'X' button. Therefore, those listeners
serve as a notification system for the calling window to know when its child
was closed. Imagine staying with the old code and not calling return
listener when 'X' is pressed. How would you be able to emulate the new
behavior if your application requires to be notified? It would be close to
impossible. The other way around, however, is extremely easy as you can
simply push a return value and check if it's present in the listener to know
if it was closed using a commandButton or with the 'X'.


Regards,

~ Simon

On 8/21/07, sandeep gururaj <[EMAIL PROTECTED]> wrote:
>
>  Hello All,
>
>
>
> I noticed just now that in the Trinidad (version 1.0.2) along with Myfaces
> (version 1.1.5), the return listener is called even if we close the dialog
> window manually (by clicking the 'X' button of the dialog window). When I
> used previous version of Trinidad and Myfaces, this was not the case.
>
>
>
> Any idea why this was changed in this way? Personally, I feel return
> listeners should not be called when the dialog window's 'X' (Close) button
> is clicked.
>
>
>
> Also, is there a way to disable the Close, Minimise, Maximise buttons of
> the dialog window?
>
>
>
> Thanks
>
> ~Sandeep
>


[Trinidad] Return Listener on closing dialog

2007-08-21 Thread sandeep gururaj
Hello All,

 

I noticed just now that in the Trinidad (version 1.0.2) along with
Myfaces (version 1.1.5), the return listener is called even if we close
the dialog window manually (by clicking the 'X' button of the dialog
window). When I used previous version of Trinidad and Myfaces, this was
not the case.

 

Any idea why this was changed in this way? Personally, I feel return
listeners should not be called when the dialog window's 'X' (Close)
button is clicked.

 

Also, is there a way to disable the Close, Minimise, Maximise buttons of
the dialog window?

 

Thanks

~Sandeep



Re: [Trinidad] Hide leaf icon

2007-08-21 Thread Hannes K


Hi Jeanne,

As the arrow indicates that the node can be expanded I would like to 
hide it for the leaf elements. In the example below the icon shall only 
be displayed for the node 'Highlighting' but not for the leaves 'Links', 
'Text' and 'Cells'.


The selector names I got from:
http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html

Thanks,
Hannes

Jeanne Waldman schrieb:

Hi Hannes,

I don't see af|treeTable::leaf-icon-style or af|treeTable::leaf-icon 
selectors in the skin-selectors document, nor do I see it in the code.

Where did you get these selector names?

I don't see a leaf icon in the treeTable demo.

- Jeanne

Hannes K wrote:


Hello All,

I would like to know if it is possible to hide the leaf icon. Found a 
couple of things about the icon but nothing regarding hiding it. We 
didn't succeed in hiding it with the help of 
af|treeTable::leaf-icon-style or af|treeTable::leaf-icon respectively.


Thanks for your help,
Hannes




<>

RE: [Trinidad] display exception

2007-08-21 Thread sandeep gururaj
Hello Darren,

 

To display the exception on the UI, it is necessary to catch the same in
your Bean method either directly or wrapped in a custom exception. I
guess passing the exception caught, wrapped in a custom exception, to
the bean is a better way.

 

Thanks

~Sandeep

 



From: Darren McEntee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 1:47 PM
To: MyFaces Discussion
Subject: [Trinidad] display exception

 

Hi i'm wondering what way you would display a caught exception to the
user via the trinidad.
So for example if we lost connection, or our web servics could not be
contacted, how would you get this message back to the user, instead of
it sitting in silence. 

Thanks,
Darren.


  
P Please consider the environment before printing this email 

_ 
 
1. The information contained in this E-mail, including any files
transmitted with it, is confidential and may be legally privileged. This
E-mail is intended only for the personal attention of the stated
addressee(s). Any access to this E-mail, including any files transmitted
with it, by any other person is unauthorised. If you are not an
addressee, you must not disclose, copy, circulate or in any other way
use or rely on the information contained in this E-mail or any files
transmitted with it. Such unauthorised use may be unlawful. If you have
received this E-mail in error, please inform the sender immediately and
delete it and all copies from your system. You may not forward this
E-mail without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do
not necessarily represent the views of AMT-SYBEX. Internet
communications are not secure and AMT-SYBEX cannot, therefore, accept
legal responsibility for the contents of this message nor for any damage
caused by viruses. 
  

AMT-SYBEX Limited is a UK company, registration number GB03036807 at
address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.  

AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at
address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit
http://www.amt-sybex.com  
_ 



[Trinidad] display exception

2007-08-21 Thread Darren McEntee
Hi i'm wondering what way you would display a caught exception to the
user via the trinidad.
So for example if we lost connection, or our web servics could not be
contacted, how would you get this message back to the user, instead of
it sitting in silence. 

Thanks,
Darren.
 
P Please consider the environment before printing this email
_ 
 
1. The information contained in this E-mail, including any files transmitted 
with it, is confidential and may be legally privileged. This E-mail is intended 
only for the personal attention of the stated addressee(s). Any access to this 
E-mail, including any files transmitted with it, by any other person is 
unauthorised. If you are not an addressee, you must not disclose, copy, 
circulate or in any other way use or rely on the information contained in this 
E-mail or any files transmitted with it. Such unauthorised use may be unlawful. 
If you have received this E-mail in error, please inform the sender immediately 
and delete it and all copies from your system. You may not forward this E-mail 
without the permission of the sender.
 
2. The views expressed in this E-mail are those of the author, and do not 
necessarily represent the views of AMT-SYBEX. Internet communications are not 
secure and AMT-SYBEX cannot, therefore, accept legal responsibility for the 
contents of this message nor for any damage caused by viruses.
 
AMT-SYBEX Limited is a UK company, registration number GB03036807 at address 
The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at address 
Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com
_