[TRINIDAD] in IE accessKey Alt+D is not working

2009-07-20 Thread dushyant agarwal
Hi,
In IE 7 I am trying to put access key on a command button. But Alt+D brings the 
focus to the address field in IE. Can someone please tell how to enforce the 
browser to activate the button and not the address field.

Thanks,
Dushyant



  Love Cricket? Check out live scores, photos, video highlights and more. 
Click here http://cricket.yahoo.com

How to remove selection from a tr:selectManyListBox

2008-04-15 Thread dushyant agarwal
 Hi,
Let us suppose that a JSF page consists of a tr:selectManyListBox and a 
tr:commandButton.
On clicking on an option in the list box that option gets highlighted.
If press the commandButton then the page simply reloads with the slected option 
in the list still highlighted.

If we want to remove the selection from the list box on submitting the page how 
shall we do it? 
   
-
 Explore your hobbies and interests. Click here to begin.

tr:commandNavigationItem does not provide navigation in frames

2008-04-15 Thread dushyant agarwal
 Hi,
I am using JDev 11g,JBoss 4.2.1, Trinidad 1.2.4.

In my project I have top,bottom & center frames. I have a page in the center 
frame that consists of a tr:commandNavigationItem component. I have provided 
the "destination" as another page(target.jsp) and "targetFrame" as bottom 
frame. However on clicking on it the navigation takes place to target.jsp in 
the same frame(center).

On the other hand on using a tr:goLink with the same attrinute values as above 
provides the navigation. But tr:goLink does not have an action attribute as 
tr:commandNavigationItem. 

I need to use tr:commandNavigationItem to navigate to another frame (as 
tr:goLink). How can I do it??? 

   
-
 Best Jokes, Best Friends, Best Food. Get all this and more on  Best of Yahoo! 
Groups.

Re: tr:commandNavigationItem does not provide navigation in frames

2008-04-16 Thread dushyant agarwal
Andrew,
If it is a big all the way, Hoe should I by pass it.

Please tell me what should I do to get the following working:
Navigating to pages on the basis of selection in tr:breadCrumbs items.

Can't I use button or link to provide navigation in frames??
Can't I use action with tr:goLink??

Dushyant.

Andrew Robinson <[EMAIL PROTECTED]> wrote: sounds like a bug if the targetFrame 
attribute of
commandNavigationItem is not working

On Wed, Apr 16, 2008 at 12:12 AM, dushyant agarwal
 wrote:
>  Hi,
> I am using JDev 11g,JBoss 4.2.1, Trinidad 1.2.4.
>
> In my project I have top,bottom & center frames. I have a page in the center
> frame that consists of a tr:commandNavigationItem component. I have provided
> the "destination" as another page(target.jsp) and "targetFrame" as bottom
> frame. However on clicking on it the navigation takes place to target.jsp in
> the same frame(center).
>
> On the other hand on using a tr:goLink with the same attrinute values as
> above provides the navigation. But tr:goLink does not have an action
> attribute as tr:commandNavigationItem.
>
> I need to use tr:commandNavigationItem to navigate to another frame (as
> tr:goLink). How can I do it???
>
>
>  
>  Best Jokes, Best Friends, Best Food. Get all this and more on Best of
> Yahoo! Groups.


   
-
 Meet people who discuss and share your passions.  Join them now.

Re: How to remove selection from a tr:selectManyListBox

2008-04-16 Thread dushyant agarwal
Hi Matthias,
Thanks for the help. It worked. 

Dushyant

Matthias Wessendorf <[EMAIL PROTECTED]> wrote: Hi

On Wed, Apr 16, 2008 at 7:25 AM, dushyant agarwal
 wrote:
>  Hi,
> Let us suppose that a JSF page consists of a tr:selectManyListBox and a
> tr:commandButton.
> On clicking on an option in the list box that option gets highlighted.
> If press the commandButton then the page simply reloads with the slected
> option in the list still highlighted.
>
> If we want to remove the selection from the list box on submitting the page
> how shall we do it?

If you want to reset the value inside your action method (the one
invoked by the command button), do that inside:


UIXEditableValue many = (UIXEditableValue)
FacesContext.getCurrentInstance().getViewRoot().findComponent("IdOfYourManyListboxComponent");
many.resetValue();



>
>  
>  Explore your hobbies and interests. Click here to begin.



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


   
-
 Unlimited freedom, unlimited storage. Get it now

[TRINIDAD]Problem in using select Many Shuttle

2008-04-17 Thread dushyant agarwal
Hi,
I am using JDev 11g TP3,JBoss 4.2.1, Trinidad 1.2.4.

Suppose we have a select Many Shuttle. It is rendering properly. The content is 
getting shifted from the leading to trailing list properly. However the 
trailingFooter & leadingFooter facet does not work i.e. on placing a 
commandButton inside the facet it is not visible on the view neither has it got 
rendered( i have checked the source of the html page).

The source code on the page is as follows:















The problem is that the commandButton is not getting rendered.
As well as if I put the commandButton outside the tr:selectManyShuttle (in the 
tr:form) then I get a runtime exception on clicking on it. On replacing tr:form 
with h:form the button acts properly.

1.What might have been the problem?? Do I need to set any attribute on the jsp 
to enable the facets??

2.Is it necessary to list all the facets on the jsp and put components in only 
those where it is necessary & leave the rest of the facets empty??

3.Is it necessary to use Shuttle proxy in the filter facet before putting 
components in leading / Trailing footer facets??

4.How is it possible to change the commandLinks Move/Move all & 
Remove/RemoveAll that are rendered by default by the component. As well as the 
top/bottom up/down links in select Order Shuttle??

Dushyant Agarwal

   
-
 From Chandigarh to Chennai - find friends all over India.  Click here.

Re: tr:commandNavigationItem does not provide navigation in frames

2008-04-17 Thread dushyant agarwal
Hi Andrew , 
Does that mean that I need to send my code to the post specifically for debug 
??(It would not be a problem if no other option's left !!)
Dushyant

Andrew Robinson <[EMAIL PROTECTED]> wrote: goLink is specifically made to not 
use an action. JSF actions are only
on ActionEvent generating components (typically command*).

could you use  around your nav links?

Really the best thing is to not find a work around but help us debug
the targetFrame problem so we can fix it if indeed there is a bug.

-Andrew

On Thu, Apr 17, 2008 at 12:17 AM, dushyant agarwal
 wrote:
> Andrew,
> If it is a big all the way, Hoe should I by pass it.
>
> Please tell me what should I do to get the following working:
> Navigating to pages on the basis of selection in tr:breadCrumbs items.
>
> Can't I use button or link to provide navigation in frames??
> Can't I use action with tr:goLink??
>
> Dushyant.
>
>
> Andrew Robinson  wrote:
>  sounds like a bug if the targetFrame attribute of
> commandNavigationItem is not working
>
> On Wed, Apr 16, 2008 at 12:12 AM, dushyant agarwal
>  wrote:
> > Hi,
> > I am using JDev 11g,JBoss 4.2.1, Trinidad 1.2.4.
> >
> > In my project I have top,bottom & center frames. I have a page in the
> center
> > frame that consists of a tr:commandNavigationItem component. I have
> provided
> > the "destination" as another page(target.jsp) and "targetFrame" as bottom
> > frame. However on clicking on it the navigation takes place to target.jsp
> in
> > the same frame(center).
> >
> > On the other hand on using a tr:goLink with the same attrinute values as
> > above provides the navigation. But tr:goLink does not have an action
> > attribute as tr:commandNavigationItem.
> >
> > I need to use tr:commandNavigationItem to navigate to another frame (as
> > tr:goLink). How can I do it???
> >
> >
> > 
> > Best Jokes, Best Friends, Best Food. Get all this and more on Best of
> > Yahoo! Groups.
>
>
>
>  
>  Meet people who discuss and share your passions. Join them now.


   
-
 Did you know? You can CHAT without downloading messenger.  Click here

[TRINIDAD] problem with tr:form+tr:commandButton

2008-04-17 Thread dushyant agarwal
 Hi,
If we use tr:commandButton inside tr:form and on the rendered page get a client 
side error (the sort of which we get in javascript error) stating 
"Object  does not support property or method "

then what should be done to remove the error???

Dushyant 

   
-
 Explore your hobbies and interests. Click here to begin.

Re: [TRINIDAD] problem with tr:form+tr:commandButton

2008-04-18 Thread dushyant agarwal
Hi Mathhias,
  Yes I have tr:document on the page surrounding the tr:form.The tr:form 
consists of the tr:commandButton. On clickinhg on the button I get the error. 
On changing tr:form to h:form the error dies out.
   
  Dushyant

Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
  On Fri, Apr 18, 2008 at 8:25 AM, dushyant agarwal
wrote:
> Hi,
> If we use tr:commandButton inside tr:form and on the rendered page get a
> client side error (the sort of which we get in javascript error) stating
> "Object does not support property or method "
>
> then what should be done to remove the error???

Ok, I can't reproduce that.
Do you have the in your page ?

-M

>
> Dushyant
>
>
> 
> Explore your hobbies and interests. Click here to begin.



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


   
-
 Get the freedom to save as many mails as you wish. Click here to know how.

tr:form + tr:commandButton not working

2008-04-24 Thread dushyant agarwal
Hi 


I installed FireBug with Mozilla FireFox.
In my JSP page I had got a tr:from and a tr:commandButton. On clicking on the 
commandButton the following process took place. 

In one Page1.jsp I have got the following code:









Not much of a code ??

Now on using FireBug's debugger I got one error at line 4948 in the js file.
It said:
a0.submit is not a function.

Now this line is inside a java script function 
submitForm(form#form1,1,source:'submit').At line 4948 in the Fire Bug console I 
found a0.submit(); and on putting a break point at line 4948 I got the value of 
a0 to be = form#form1Page1.jsp. On moving further from the break point I got 
the error "a0.submit" is not a function; 

Now this was in a test application but the same scenario is arising inside the 
production application(which is bit more complex)where I tried to change h:form 
to tr:form to use the defaultCommand functionality. 
There as well the same error came up : line 4948, a0.submit is not a function.

Now I want to know the solution. Hope to have provided you with useful 
information.

Dushyant
   
-
 Share files, take polls, and make new friends - all under one roof.  Click 
here.

[TRINIDAD]How can I attach tr:convertDateTime on application level

2008-05-28 Thread dushyant agarwal
Hi,
  I have a problem:
  My project requires using tr:inputDate component. Its default date pattern is 
mm/dd/.
  I have to use  as its child 
component every time I use a  component. 
  i.e.
  
   
  
   
  Is there any way to provide this patten on the inputDate component on 
application level so that on including a new inputDate component the default 
pattern comes to be dd/MM/.
   
  Dushyant
   

   
-
 Explore your hobbies and interests. Click here to begin.

[TRINIDAD] How to prevent input date component from showing dates before a given date

2008-06-23 Thread dushyant agarwal
Hi,

I have a requirement where I need to render the tr:inputDate component such 
that on opening the calendar popup, dates before a certain date can't be 
selected.  How can this be brought about???

Dushyant



  Meet people who discuss and share your passions. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/

Re: [TRINIDAD] Dynamic column groups

2008-06-24 Thread dushyant agarwal
Hi Joris,
You could use the backing bean to dynamically create the columns. It had helped 
me in my project.
In the backing bean you could create a method

createColumn(int numOfCols){
List tableChildList = table.getChildren();

for(int i=0;i wrote:
From: Joris Kimpe <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD] Dynamic column groups
To: users@myfaces.apache.org
Date: Tuesday, 24 June, 2008, 12:35 PM

Thanks Paul,

this seems to be what I need...  However, I implemented it now using a
trinidad table.  The Trinidad table has an attribute varStatus.  Is there
something simular in the Tobago dataTable?

Joris



Paul Spencer-3 wrote:
> 
> Joris,
> I am doing something similar using .  Their is
documentation 
> on the wiki when this component was in the sandbox [1].
> 
> Paul Spencer
> 
> [1]http://wiki.apache.org/myfaces/Dynamic_Columns?highlight=(columns)
> 
> Joris Kimpe wrote:
>> Hi all,
>> 
>> I have a number of counters that I want to show as nested columns. 
This
>> will look something like this:
>> 
>> |  |  Counters |
>> |  Date  |  AA  |  BB  |  CC  |  DD  |  EE  |
>> |-|-- |
>> | 22/06/2008  |  0|   20 |  10  |   0| 10   |
>> | 22/06/2008  |  0|   21 |  12  |   0| 12   |
>> | 23/06/2008  |  2|   23 |  15  |  10   | 10   |
>> ...
>> 
>> 
>> In my backing bean I have a List of Objects.  For all objects in my
list
>> I
>> want to show a column , but how do I have to dynamically create group
>> columns?  I already tried this:
>> 
>>  > value="#{backingBean.dataModel}" var="row">
>>  
>>  
>>  
>>  
>>  
>>  
>>  > value="#{counter.valueString}"/>
>>   
>> 
>>  
>>  
>> 
>> The result of the code above, is an empty column under
"Counters".  Can't
>> I
>> use c:forEach?  Or is there something else wrong?
>> 
>> If I use tr:iterator instead of c:forEach, I get an
>> IndexOutOfBoundsException (on position 5).  But this is something I
don't
>> get.  This iterator isn't supposed to iterate out of the bounds...
 Or is
>> it?
>> 
>> Using tr:forEach isn't a solution either.  This results in an
exception
>> (noClassDefFoundError 
javax/servlet/jsp/jstl/core/IndexedValueExpression
>> )
>> because it needs the jstl 1.2 library and on this moment I'm only
allowed
>> to
>> use jstl 1.1.2...
>> 
>> Hope someone can help me (or point me to the correct direction)
because
>> I'm
>> searching a couple of days now...  Wish there was an easy solution!
>> 
>> Joris
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/-TRINIDAD--Dynamic-column-groups-tp18070579p18085105.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


  Meet people who discuss and share your passions. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/

Re: [TRINIDAD] Re: Partial submit problem - Page got stuck in Myfaces 1.1.5 with trinidad 1.0.8

2008-06-26 Thread dushyant agarwal

Do the following:
1. Put your form's content inside a .
2. In the action method of the submit button put 
document1.setInitialFocusId().
3. RequestContext.getCurrentInstance().addPartialTarget();

This should help. In step 2 we are setting the focus on the subform. This would 
bring the focus on the starting point of the subform.

cheers.Dushyant.

--- On Thu, 26/6/08, Scott O'Bryan <[EMAIL PROTECTED]> wrote:
From: Scott O'Bryan <[EMAIL PROTECTED]>
Subject: [TRINIDAD] Re: Partial submit problem - Page got stuck in Myfaces 
1.1.5 with trinidad 1.0.8
To: "MyFaces Discussion" 
Date: Thursday, 26 June, 2008, 3:24 AM

My suggestion is to put TRINIDAD in the subject.  :)  There are people 
that filter on this and you'll find more help by including the proper 
prefix.

Scott

Bhushan wrote:
> Hi everybody, I'm getting a problem when i click the submit button 
> (partial submit) which is inside a subform. Problem is, I am having a 
> subform with some input Text boxes in that few are mandatory and 2 
> partial submit buttons. when I click the submit button with out 
> entering any of the mandatory fileds it is displaying error message 
> properly but the focus is going out and page got stuck to enter the 
> details. when i click outside the page and come back it is allowing to 
> enter. any solution / Suggestions? Thanks in advance, Bhushan
> 
> View this message in context: Partial submit problem - Page got stuck 
> in Myfaces 1.1.5 with trinidad 1.0.8 
>

> Sent from the MyFaces - Users mailing list archive 
>  at Nabble.com.


  Bollywood, fun, friendship, sports and more. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/

[TRINIDAD] styleClass not getting applied on tr:column's header

2008-06-26 Thread dushyant agarwal
Hi,

I have a requirement where I have to put background color=Yellow on one  
tr:column's header inside  a tr:table.

In the skin's CSS I wrote the following code:

af|column::headerText.ColStyle{
background-color=Yellow;
}
 In the jsp I wrote


However, in Mozilla the style is not at all getting applied. In IE the 
background color of all the cells in that column gets changed to yellow but not 
of the header.

How can I get the correct style applied on the column header??

Thanks,
Dushyant



  Best Jokes, Best Friends, Best Food and more. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/

[TRINIDAD]Java Script not executing on calling Service's addScript method

2008-07-01 Thread dushyant agarwal
Hi,
I created a JSF Page with a tr:commandButton in it. Inside its action method I 
wrote the following code:-
public String action(){
ExtendedRenderKitService service= 
Service.getRenderKitService(FacesContext.getCurrentInsatnce(),ExtendedRenderKitService.class
 );

service.addScript(FacesContext.getCurrentInsatnce(),"alert( ' hello Trinidad ' 
);");

}

This was supposed to open a Windows alert box with" hello trinidad " written on 
clicking the command Button.

But Nothing happens on doing so!!! What am I doing wrong???  PL. help!

Thanks,
Dushyant



  Bollywood, fun, friendship, sports and more. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/

[TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-03 Thread dushyant agarwal
Hi,
I have JSF page which contains a tr:inputDate component as given below:-


As well as there is a commandButton 


In the Backing bean the action method is as follows:-
public String action(){

DateTimeConverter converter = new DateTimeConverter();//the Trinidad DateTime 
Converter
converter.setPattern("dd/MM/");
inputDate1.setConverter(converter);
return null;

}

While running the JSF page, on clicking the button the converter does get 
applied, But after the Page gets rendered if the user again clicks on the 
calendar button to select a new date then a javascript error appears 
(/**incomprehensible**/). How else can I set the above mentioned converter on 
the inputDate cpmponent from the backing bean.

pl. consider that I strictly need to set the converter from  the backing bean.

Thanks,
Dushyant






  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/

Re: [TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-04 Thread dushyant agarwal
I need to put the converter from backing bean because the inputDate component 
is being created dynamically based upon the number of records in the 
database.Why can't we put sort of in the backing bean

I further tried to make a sample application that contained a class 
implementing Converter class. It was registered in faces-config.There was a JSF 
page with a button and inputDate. I the action method of the button I created 
an instance of the converter class and set it as follows:-
inputDate1.setConverter(new myConverter());

But here as well the calendar component gave up working(rant)!!

Please specify what u mean by cross-postings..

Thanks,
Dushyant

--- On Thu, 3/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
From: Matthias Wessendorf <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate
To: "MyFaces Discussion" , [EMAIL PROTECTED]
Date: Thursday, 3 July, 2008, 5:55 PM

Please do no cross-postings...

On Thu, Jul 3, 2008 at 2:14 PM, dushyant agarwal
<[EMAIL PROTECTED]> wrote:
> Hi,
> I have JSF page which contains a tr:inputDate component as given below:-
>
> 
> As well as there is a commandButton
> 
>
> In the Backing bean the action method is as follows:-
> public String action(){
>
> DateTimeConverter converter = new DateTimeConverter();//the Trinidad
> DateTime Converter
> converter.setPattern("dd/MM/");
> inputDate1.setConverter(converter);
> return null;
>
> }
>
> While running the JSF page, on clicking the button the converter does get
> applied, But after the Page gets rendered if the user again clicks on the
> calendar button to select a new date then a javascript error appears
> (/**incomprehensible**/). How else can I set the above mentioned converter
> on the inputDate cpmponent from the backing bean.
>
is the scope of the BB bean request ?

> pl. consider that I strictly need to set the converter from  the backing
> bean.

why?

>
> Thanks,
> Dushyant
>
>
>
>
> 
> Bollywood, fun, friendship, sports and more. You name it, we have it.



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/

Fw: Re: [TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-04 Thread dushyant agarwal





I need to put the converter from backing bean because the inputDate component 
is being created dynamically based upon the number of records in the 
database.Why can't we put sort of in the backing bean

And yes the BB bean is request scoped

I further tried to make a sample application that contained a class 
implementing Converter class. It was registered in faces-config.There was a JSF 
page with a button and inputDate. I the action method of the button I created 
an instance of the converter class and set it as follows:-
inputDate1.setConverter(new myConverter());

But here as well the calendar component gave up working(rant)!!

Please specify what u mean by cross-postings..

Thanks,
Dushyant

--- On Thu, 3/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
From: Matthias Wessendorf <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate
To: "MyFaces Discussion" , [EMAIL PROTECTED]
Date: Thursday, 3 July, 2008, 5:55 PM

Please do no cross-postings...

On Thu, Jul 3, 2008 at 2:14 PM, dushyant agarwal
<[EMAIL PROTECTED]> wrote:
> Hi,
> I have JSF page which contains a tr:inputDate component as given below:-
>
> 
> As well as there is a commandButton
> 
>
> In the Backing bean the action method is as follows:-
> public String action(){
>
> DateTimeConverter converter = new DateTimeConverter();//the Trinidad
> DateTime Converter
>
 converter.setPattern("dd/MM/");
> inputDate1.setConverter(converter);
> return null;
>
> }
>
> While running the JSF page, on clicking the button the converter does get
> applied, But after the Page gets rendered if the user again clicks on the
> calendar button to select a new date then a javascript error appears
> (/**incomprehensible**/). How else can I set the above mentioned converter
> on the inputDate cpmponent from the backing bean.
>
is the scope of the BB bean request ?

> pl. consider that I strictly need to set the converter from  the backing
> bean.

why?

>
> Thanks,
> Dushyant
>
>
>
>
> 
> Bollywood, fun, friendship, sports and more. You name it, we have it.



-- 
Matthias Wessendorf

further stuff:
blog:
 http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org



   Best Jokes, Best Friends, Best Food. Get all this and more on  Best of 
Yahoo! Groups.


  Bollywood, fun, friendship, sports and more.. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/

Re: [TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-04 Thread dushyant agarwal
please find the content in blue.

Thanks,
Dushyant

--- On Thu, 3/7/08, Volker Weber <[EMAIL PROTECTED]> wrote:
From: Volker Weber <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate
To: "MyFaces Discussion" , [EMAIL PROTECTED]
Date: Thursday, 3 July, 2008, 6:10 PM

Hi!


  You should not use binding if you can avoid it !
  If you need the component in the bean it is better to do a lookup
via clientId.


The components in my case are being generated dynamically based upon the 
records in my database. Their instance is generated at runtime in an action 
method 
.. After their instance is created I wish to put the converter on them.
How can I bring this about??

2008/7/3 dushyant agarwal <[EMAIL PROTECTED]>:
> Hi,
> I have JSF page which contains a tr:inputDate component as given below:-
>
> 

have you tried:



public Converter getDateConverter() {
  DateTimeConverter converter = new DateTimeConverter();//the Trinidad
DateTime Converter
  converter.setPattern("dd/MM/");
  return converter;
}

Yeah I tried using this but still the same runtime javascript error comes along 
on clicking on a date in the calendar


> As well as there is a commandButton
> 
>
> In the Backing bean the action method is as follows:-
> public String action(){
>
> DateTimeConverter converter = new DateTimeConverter();//the Trinidad
> DateTime Converter
> converter.setPattern("dd/MM/");
> inputDate1.setConverter(converter);
> return null;
>
> }
>
> While running the JSF page, on clicking the button the converter does get
> applied, But after the Page gets rendered if the user again clicks on the
> calendar button to select a new date then a javascript error appears
> (/**incomprehensible**/). How else can I set the above mentioned converter
> on the inputDate cpmponent from the backing bean.
>
> pl. consider that I strictly need to set the converter from  the backing
> bean.

in the action? why?


Regards,
Volker

>
> Thanks,
> Dushyant
>
>
>
>
> 
> Bollywood, fun, friendship, sports and more. You name it, we have it.



-- 
inexso - information exchange solutions GmbH
Bismarckstraße 13 | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX: +49 441 4082 355 | www.inexso.de


  Bollywood, fun, friendship, sports and more. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/

[TRINIDAD]Issue:Unable to set DateTimeConverter with tr:inputDate component from the backing bean

2008-07-04 Thread dushyant agarwal
Hi,
 I have JSF page which contains a tr:inputDate component as given
 below:-

 
 As well as there is a commandButton
 

 In the Backing bean the action method is as follows:-
 public String action(){

 DateTimeConverter converter = new DateTimeConverter();//the
 Trinidad
 DateTime Converter

  converter.setPattern("dd/MM/");
 inputDate1.setConverter(converter);
 return null;

 }

Then I tried using



public Converter getDateConverter() {
  DateTimeConverter converter = new DateTimeConverter();//the Trinidad
DateTime Converter
  converter.setPattern("dd/MM/");
  return converter;
}

 While running the JSF page, on clicking the button the converter
 does
 get
 applied, But after the Page gets rendered if the user again clicks
 on
 the
 calendar button to select a new date then a javascript error
 appears
[Got this info on using firebug for debugging]

_getDateFieldFormat(input#inputDate1.af_inputDate_content)
_dfsv(input#inputDate1.af_inputDate_content,1217411811404)
 returnCalendarvalue(Window,undefined)
_checkUnload(undefined)
_selectdate(121735620)
onclick(click client X=1842, client Y =1842)
Common1_2_4.js line 2170

This error appear in the popup window where the calendar gets rendered
 
 How can I set
  the above mentioned
 converter
 on the inputDate cpmponent from the backing bean.

 The scope of the BB bean request.

 pl. consider that I strictly need to set the converter from  the
 backing bean.(Beacause sometimes the component gets generated dynamically. so 
 no way to put tr:convertDateTime  )

Thanks,
Dushyant




  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/

[TRINIDAD]How to set readOnly=true on an inputText inside a tree table?

2008-07-08 Thread dushyant agarwal
Hi,
I have a JSF page in which there is a treeTable component. In one of the 
columns (which is not within node stamp or path stamp facets) is an inputText 
component. I want to set Readonly =true on inputTexts corresponding rows on 
level one(may be apply a different style on those rows as well). On debugging 
the page I found the client id's of all the rendered inputTexts(for level 1) to 
be starting with treetable1:0 and treeTable1:1. So I wrote,

UIComponent treeTbl= facesContext.getViewRoot().findComponent("treeTable1");
List lst = treeTbl.getChildren();
for(int i=0;ihttp://in.promos.yahoo.com/groups/

Fw: Re: [TRINIDAD]Java Script not executing on calling Service's addScript method

2008-07-08 Thread dushyant agarwal

I never got further response on this problem. Please help!

Thanks,
Dushyant
--- On Fri, 4/7/08, dushyant agarwal <[EMAIL PROTECTED]> wrote:
From: dushyant agarwal <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD]Java Script not executing on calling Service's addScript 
method
To: users@myfaces.apache.org
Cc: [EMAIL PROTECTED]
Date: Friday, 4 July, 2008, 2:04 PM

I don't know how this thing is supposed to work . Does my browser require s=
omething extra(related to DOJO)to make the alert work. I read the source fi=
le at the location you provided and executed exactly the same code but my a=
lert did not come up.

Any suggestion

Thanks,
Dushyant

--- On Wed, 2/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
From: Matthias Wessendorf <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD]Java Script not executing on calling Service's addSc=
ript method
To: "MyFaces Discussion" 
Date: Wednesday, 2 July, 2008, 12:27 PM

Hi,

On Wed, Jul 2, 2008 at 8:50 AM, Elmar Kretzer <[EMAIL PROTECTED]>
wrote:
> Hi Dushyant,
> i don`t know if its necessary - put did you set the commandLink to
> partialsubmit=3D"true" ?
>
> @see
>
http://matthiaswessendorf.wordpress.com/2008/02/16/using-dojo-and-apache-tr=
inidad/

works without that.
There is a demo available here:
http://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/tr=
inidad-blank/

-M

> elmar
> Am 02.07.2008 um 08:41 schrieb dushyant agarwal:
>
> Hi,
> I created a JSF Page with a tr:commandButton in it. Inside its action
method
> I wrote the following code:-
> public String action(){
> ExtendedRenderKitService service=3D
>
Service.getRenderKitService(FacesContext.getCurrentInsatnce(),ExtendedRende=
rKitService.class
> );
>
> service.addScript(FacesContext.getCurrentInsatnce(),"alert( '
hello Trinidad
> ' );");
>
> }
>
> This was supposed to open a Windows alert box with" hello trinidad
" written
> on clicking the command Button.
>
> But Nothing happens on doing so!!! What am I doing wrong???  PL. help=
!
>
> Thanks,
>
 Dushyant



   Best Jokes, Best Friends, Best Food. Get all this and more on  Best of 
Yahoo! Groups.


  Meet people who discuss and share your passions. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/

[TRINIDAD]ClassCastException:org.apache.myfaces.trinidad.component.CoreoOutputText

2008-07-17 Thread dushyant agarwal
Hi,
I have a JSF page in which there is a tree-table.In the JSF I have put the 
nodestamp and pathstamp facets with a column in nodestamp and a outputText 
inside the column as well as inside pathstamp.
Now in the backing bean I create columns of the Tree Table dynamically with 
information available from a EJB.The columns have inputtexts as children.
 
I have a functionality where a user can delete a column. For deleting the 
columns I have first deleted all the columns from the tree table's 
getChildren() list. Then I call a method of the EJB and recreate the columns 
with inputTexts as their children.I also add a tr:commandLink to each 
column.But I have checked that it would not be the cause of exception.
 
This time during the time of rendering I get a 
ClassCastException:CoreOutputtext.
The server's stack trace does not indicate error on any line of the backing 
bean.
So it is hard to debug the code.
 
If I do not add the inputText as the children of the column then this exception 
does not come.So i guess that the view root is holding back some older 
definition of the page and when I recreate the table it causes the execption.
But even in the older definition the column contains inputText as 
child.Outputtext is added to the column only when I am adding the commandLink 
to the column(for the text part).
 
What could be the reason for this ? Any solutions?
 


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[TRINIDAD]Tree table does not show correct bindings.

2008-07-22 Thread dushyant agarwal
Hi,
I have a JSF page,that contains a tree table that shows data arriving from 
database via EJB.

The number columns of the tree table is dynamic. They get created at the time 
the page is just about to be rendered at the  After render response  phase 
event. 

Now the facet of the tree table contains a column containing 
inputText whose readInly has been st as true in the jsp. Rest of the columns 
get created dynamically. These other columns contain  editable  inputTexts. 
Their programmatically provided value binding using the setValueExpression() 
method of CoreInputText class. 

Now there is a radio button in the page whose auto submit is set to true. The 
valueChange Listener method attached to it does the following:
1.Delete all the columns of tree table: using the foolwoing code
    for(int i=0ihttp://in.promos.yahoo.com/groups/citygroups/

[TRINIDAD]What exactly does resetStampState method of UIXCollection class do?

2008-07-23 Thread dushyant agarwal
Hi,
As far as what I have understood from the Trinidad1.2.8 API documentation, it 
seems that on changing the DOM of the table component( eg deleting or adding of 
columns) the stamp state i.e the stamping behavior of the table or tree 
component gets changed. This may include changing the value bindings of the 
components in the node stamp facet.

On  writing component.resetStampState() any changes made to the DOM of that 
tree or table component gets restored to its initial value(given in JSP). 

Is my understanding this far, right? Is any thing wrong?

Also I would like to know the role of Client RowKey Manager. I would like to 
know how can we get the client Id of any particular row's component in the form 
in which it is rendered (tableId:rowIndex:componentId) in an action method?

Thanks,
Dushyant
 


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/

[TRINIDAD] How to insert a row in a tr:table component

2008-07-24 Thread dushyant agarwal
Hi,
I am developing a JSF page that shows a financial balance sheet. It has columns 
for date,a mount, cheque no, balance etc. But the first row is supposed to show 
the line opening balance and a partcular amount that is the opening balance.

How can I add a row to the tr:table that does not take value from the table 
model. Instead shows the value of opening balance from some other source.

Thanks,
Dushyant



  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/

[TRINIDAD] Any Training available?

2008-07-27 Thread dushyant agarwal
Hi,
I have been recently using trinidad tag library. I find difficulty in 
development using Trinidad beacuse of lack of knwlledge of the attrbutes of the 
different components like Tree table, bread crumbs. I wish to take training in 
Trinidad tag library. 

Can you suggest me any free (or paid ) site or source where I may get the 
complete training in trinidad tag library (as well as ADF Faces 11g).

Thanks,
Dushyant



  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/

Re: [TRINIDAD] How to insert a row in a tr:table component

2008-07-27 Thread dushyant agarwal

The problem is that the first row is going to show only "Opening balance " 
written under all the columns. Then from the next row the details of the 
balance sheet would be populated.

 How am I to  insert just one row in the table showing only two columns - 1st 
showing the text "Opening balance " , 2nd showing the balance. While the rest 
of the rows contain more columns than the first one.

One way would be to merge the column lines of the first row only two form just 
2 columns.
Is that possible some how?

Can I do something like- bind the first row to a different model, while the 
rest of the rows to some other model?

Thanks,
Dushyant
--- On Thu, 24/7/08, Andrew Robinson <[EMAIL PROTECTED]> wrote:
From: Andrew Robinson <[EMAIL PROTECTED]>
Subject: Re: [TRINIDAD] How to insert a row in a tr:table component
To: "MyFaces Discussion" , [EMAIL PROTECTED]
Date: Thursday, 24 July, 2008, 8:39 PM

There must be a row in the model. If you wish have your model have an
inner model that is wrapped. That way you can merge multiple models
into one. Just extend the data model and create a custom one.

On Thu, Jul 24, 2008 at 4:17 AM, dushyant agarwal
<[EMAIL PROTECTED]> wrote:
> Hi,
> I am developing a JSF page that shows a financial balance sheet. It has
> columns for date,a mount, cheque no, balance etc. But the first row is
> supposed to show the line opening balance and a partcular amount that is
the
> opening balance.
>
> How can I add a row to the tr:table that does not take value from the
table
> model. Instead shows the value of opening balance from some other source.
>
> Thanks,
> Dushyant
>
> 
> From Chandigarh to Chennai - find friends all over India. Click here.



  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/

[TRINIDAD] Exception on using CoreShowDetailItem

2008-08-20 Thread dushyant agarwal
Hi,
I have a JSF page containing a tr:panelRadio component. Inside this component I 
have put tr:showDetailItem which contain the corresponding component to render. 

There are more than one tr:showDetailItem components inside the tr:panelRadio 
component. And all the components are exposed to a backing bean(There are 
instances for every component on the page, in a managed bean).

On deploying my war file once there appears to be no problem.
But on redeploying the war in the server an exception occurs stating
[application] JSF 1004: Could not instantiate class 
org.apache.myfaces.trinidad.CoreShowDetailItem.
Then it gives the stack trace of a faces exception with message 
java.lang.NullPointerException

I am using the JBoss 4.2.1-GA application server.
I have used trinidad-impl-1.2.8.jar file in the WEB-INF/lib folder.

What should I do to remove this problem?



  Add more friends to your messenger and enjoy! Go to 
http://in.messenger.yahoo.com/invite/

[TRINIDAD]Show Printable Page Behavior component

2008-08-25 Thread dushyant agarwal
Hi,
 I need to provide a JSF Page containing Trinidad components in printable form. 
ADF faces tag library contains - af:showPrintablePageBehavior component for 
this paurpose.
Which component is present inside Trinidad tag library for this purpose? Please 
Help!
 
Thanks,
Dushyant


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [Trinidad] How to show all the rows in a table programmatically

2008-09-06 Thread dushyant agarwal
Rafa, try using setShowAll(true) on the instance of the tr:table component in 
the BB of the page. Refresh the table by addPartialTarget() if required,

Thanks,
Dushyant

--- On Fri, 5/9/08, Rafa Pérez <[EMAIL PROTECTED]> wrote:
From: Rafa Pérez <[EMAIL PROTECTED]>
Subject: [Trinidad] How to show all the rows in a table programmatically
To: "MyFaces Discussion" 
Date: Friday, 5 September, 2008, 3:45 PM

Hi all,

I need for some reasons to change programmatically the number of rows
showed by a tr:table. I have been looking through the docs and have
seen that it is possible to configure the first element in the range
and the number of rows to show, but I can not figure out how to make a
"Show all" without changing the value of the "rows"
property in the
tr:table. Is it possible? If so, how can it be done?

Thank you in advance,

-- Rafa



  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/

[Apache Tomcat Web Server] Memory leak problem

2008-09-09 Thread dushyant agarwal

Hi,
I found an issue on the thread 
-https://issues.apache.org/jira/browse/MYFACES-1658
Also at-http://www.mail-archive.com/users@myfaces.apache.org/msg50352.html


The problem is that of memory leak. In my implementation I am using server side 
state saving until now.As well as I am implementing multi tasking by saving 
view roots of my pages every time any page is rendered, in a map, on the 
session. When a user wants to switch to another task i set that view root using 
the set ViewRoot () method of the FacesContext  API. After all this when I test 
my war for several number of times I get PermGen Space: Out Of Memory error. 

After going through the above threads I have a feeling that this saving of old 
searialized views may be present inside Trinidad or JSF framework, as well. And 
that might be the reason for the drying up of the memory
 heap so fast? Am I right?

Also I would like to know how can I save the state of a JSF/trinidad  page 
without submitting it. 
Would tr:navigationPane hints="tabs"  provide client side state saving?
Does client side state saving mean saving the view state without having to 
submit the form.?
Or does it mean that on submitting the form the state is saved on the client 
machine(the browser) instead of the server(it would be fetched next time from 
the client to restore view on postback?)?

Thanks,
Dushyant






  



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Fw: [TRINIDAD] Exception on using CoreShowDetailItem

2008-09-17 Thread dushyant agarwal

Hi, I had previously sent this mail to the user archives . But it seems no 
response has been provided. I urge the myfaces trinidad users to help me out. 
It is very important .

Thanks,
Dushyant
--- On Wed, 20/8/08, dushyant agarwal <[EMAIL PROTECTED]> wrote:
From: dushyant agarwal <[EMAIL PROTECTED]>
Subject: [TRINIDAD] Exception on using CoreShowDetailItem
To: users@myfaces.apache.org
Date: Wednesday, 20 August, 2008, 3:16 PM

Hi,
I have a JSF page containing a tr:panelRadio component. Inside this component I 
have put tr:showDetailItem which contain the corresponding component to render. 

There are more than one tr:showDetailItem components inside the tr:panelRadio 
component. And all the components are exposed to a backing bean(There are 
instances for every component on the page, in a managed bean).

On deploying my war file once there appears to be no problem.
But on redeploying the war in the server an exception occurs stating
[application] JSF 1004: Could not instantiate class 
org.apache.myfaces.trinidad.CoreShowDetailItem.
Then it gives the stack trace of a faces exception with message 
java.lang.NullPointerException

I am using the JBoss 4.2.1-GA application server.
I have used trinidad-impl-1.2.8.jar file in the WEB-INF/lib folder.

What
 should I do to remove this problem?




   Add more friends to your messenger and enjoy!  Invite them now.


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[TRINIDAD]Number Converter's pattern not applying on inputText inside column

2008-10-15 Thread dushyant agarwal
Hi,
I have a functionality in which there is a tree table. It has 14 columns and 
each column has an tr:inputText component. Now I have Implemented the following 
code inside an event listener.

NumberConverter con = 
(NumberConverter)FacesContext.getCurrentInstance().getApplication().createConverter(Number.class);
con.setPattern(".00");
con.setMaxFractionDigits(6);
inputText1.setConverter(conveter);

If I implement this code for an inputText component provided separately in the 
form then it works properly(if I enter 21 and submit i get 21.00 or if i enter 
21.12456789 i get 21.124568).

But for the inputTexts inside the tr:column of the tree table I am getting the 
value with single precision(The EJB method is providing me double values. So no 
precision is changing).
Can I change the precision of those inputs in some other way?

Thanks,
Dushyant



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener

2008-10-17 Thread dushyant agarwal
Does the server show any warning on clicking on the check box?
Have you tried using addPartialTarget() in the valuechangelistener?

-Dushyant


--- On Sat, 18/10/08, Amaris Nieves <[EMAIL PROTECTED]> wrote:

> From: Amaris Nieves <[EMAIL PROTECTED]>
> Subject: [TRINIDAD] Problem with PPR using autoSubmit and ValueChangeListener
> To: "MyFaces Discussion" 
> Date: Saturday, 18 October, 2008, 1:09 AM
> I have the following block of code:
> 
>  id="same"
> autoSubmit="true"
>
> value="#{orderForm.samePostalAddress}"
> 
> label="#{msgBundle['address.label.samePostal']}"
> 
> valueChangeListener="#{orderForm.doAssignPostalAddress}"
> />
> 
> 
>  id="paSubType"
> required="true"
> partialTriggers="::same"
> 
> value="#{orderForm.order.postalAddress.addressSubtype}">
>  var="aType"
> items="#{orderForm.postalAddressSubtypeList}">
>
>  itemLabel="#{aType.fieldName}"
> 
> itemValue="#{aType.fieldCode}" />
> 
>
> 
> 
> 
> 
> I don't know if I'm doing something wrong but when
> you click on the checkbox
> isn't the radio (id=paSubType) supossed to be
> repainted?
> 
> Thanks.

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php


Re: confused about selectOneItem and converter and data binding

2008-11-07 Thread dushyant agarwal
In case of selection,  the getAsObject would convert the selected value as 
specified and send it to BB. In getAsString() method you again have to specify 
some code to change the BB value into one of the values in the selectItem list, 
bound to the selectOneMenu component.



--- On Fri, 7/11/08, Anton Gavazuk <[EMAIL PROTECTED]> wrote:

> From: Anton Gavazuk <[EMAIL PROTECTED]>
> Subject: Re: confused about selectOneItem and converter and data binding
> To: "MyFaces Discussion" 
> Date: Friday, 7 November, 2008, 3:41 PM
> Guys,
> does anyone have any idea?
> 
> 2008/11/6 Anton Gavazuk <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > have a problem
> >
> > I have the JSF Bean dataBean with property complexprop
> - the type of
> > field is ComplexType
> > I want to set an certain property to the bean via
> selectItems, which
> > is being collected from the
> anotherDataBean.selectItems - it returns
> > array of SelectItems.
> >
> > so it looks like
> >
> > 
> >  value="#{dataBean.complexprop}">
> > value="#{anotherDataBean.selectItems}"/>
> > converterId="geoConverter"/>
> > 
> >
> > Of course it wouldnt not work because JSF would try
> convert the String
> > value from UI to internal dataBean.complexprop type
> and vice versa so
> > I added the converter
> > But I cannot understand how to work properly with it -
> during the call
> > the method is being called for count =
> selectItems.size()
> > Converter.getAsString(FacesContext facesContext,
> UIComponent
> > uiComponent, Object o)
> >
> > What could be wrong?
> >
> > How to link together all such things?
> >


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


[TRINIDAD]What happens if we use renderer-type of trinidad but render-kit class of ajax4jsf

2008-11-11 Thread dushyant agarwal
Hi,
I have a situation in which I am using frames and am getting a View expired 
exception after some time in the non working frames.
To remove this I used the richfaces-impl.jar file in my jBoss server, which 
resolved the problem.
But the view root is now coming as an instance of 
org.ajax4jsf.components.AjaxViewRoot. I studied the faces-config.xml of this 
jsr and found that the renderer- type for this renderer class was different 
than that in trinidad-impl. 
Though there is no difference in the behavior, I want to know what changes 
would it make to the default behavior of the view root if I do it.

Thanks,
Dushyant



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[TRINIDAD]tr:showDetail or tr:Page

2008-11-14 Thread dushyant agarwal




 Hi,
 I have a functionality in which a tree of different
 processes has to be displayed in the left hand side of the
 window. When some one clicks on any process the jsp for that
 view id has to be displayed on the rest of teh screen. Also
 a trail of the tasks that have been opened has to be
 maintained.So that the user may go back to any previous task
 as desirable. 
 
 There is a facility of tr:page, which provides nodeStamp
 facet for showing the view id's. For showing the trial
 we can use the tr:train(MaxVisited) component.
 But in a page, when I populate  one view & click on
 another one & click back to the previous view, the
 values entered are lost. In another scenario I had seen
 tr:ShowDetailItem used in panelRadio component. There the
 value entered in one detail Item was retained if we
 disclosed another item.
 
 Is there any way of setting this type of behavior in
 tr:page? Should I use some other approach for display? I do
 not like the Idea of adding CoreShowdetailItem instances at
 run time if the user clicks on the tree. I want it just the
 way it is in tr:page.
 
 Thanks,
 Dushyant
 



  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/


[TRINIDAD] tr:Page component not working- NPE

2008-11-24 Thread dushyant agarwal
Hi,
i need to use the tr:page component to provide multi tasking in my module. But 
it gives a NPE if I just undeploy or deploy the war. THis makes it impossible 
to use it.

Please provide a solution. 
Is trinidad's Application view root caching responsible. The stack trace is 
similar to TRINIDAD-1221 - JIRA issue(see link -
http://www.mail-archive.com/[EMAIL PROTECTED]/msg34575.html )

Thanks,
Dushyant


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/


Re: calling backing bean method from Javascript

2009-01-22 Thread dushyant agarwal
jax is a client side technology . It would mot call a method in the BB(which is 
on the server). Alternatively you can call a javascript method from the BB(by 
using Extended RenderKitService class) in Trinidad's PIs.

Thanks,
Dushyant

--- On Mon, 19/1/09, Shasi Mitra Yarram  wrote:
From: Shasi Mitra Yarram 
Subject: calling backing bean method from Javascript
To: "MyFaces Discussion" 
Date: Monday, 19 January, 2009, 8:25 AM

Hi i want some methods of backing bean to be called onload of the page. can u 
lemme know how to call a backing bean method from javascript using AJAX.

   Add more friends to your messenger and enjoy!  Invite them now.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [Trinidad] JavaScript Error on actions when Trinidad page is open in popup

2009-01-28 Thread dushyant agarwal
I think your opener page(a.k.a. 'launching page') should have been blocked as 
long as the dialog is open. A.F.A.I.K. on launching the trinidad(v. 1.2.4 
onwards) dialog in IE 6 or 7 the launching page remains blocked. I am not sure 
how you have been able to close the opener page.  pl elaborate ... may be I 
could get it  then.

Thanks,
Dushyant.


--- On Mon, 26/1/09, Mikulas Cserge  wrote:
From: Mikulas Cserge 
Subject: [Trinidad] JavaScript Error on actions when Trinidad page is open in  
popup
To: users@myfaces.apache.org
Date: Monday, 26 January, 2009, 3:49 PM

Hello,

I get a JavaScript error on attempt to submit any Trinidad action if a Trinidad 
page was open in a new popup window and the opener page was closed meanwhile.

The JavaScript is noticeable only when "Display a notification on every script 
error" is turned on in Internet Explorer. (Tools -> Internet Options -> 
Advanced).




The error message is different in IE 6 and IE 7:

IE 6 (v: 6.0.2900.2180.xpsp_sp2_gdr.070227-2254CO) - Permission denied
IE 7 (v: 7.0.5730.13CO) - The callee (server [not server application]) is not 
available and disappeared; all connections are invalid. The call did not 
execute.




I was able to reproduce it using "trinidad-demo-1.0.10.war". The only 
modification what I did is to introduce an extra index_new.jspx:

...




 
  open
 




...

Steps to reproduce:

1, Open index_new.jspx and click on "open" link. This will open the original 
Trinidad example page in new popup.
2, Close the opener page.
3, Click on "Component Guide". If "Display a notification on every script 
error" is activated in IE, you should get a dialog with the mentioned 
JavaScript error report.





Is that a bug in Trinidad?


Regards,
Miki








  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[Trinidad] how to block underlying page on laucjing a dialog

2009-01-28 Thread dushyant agarwal
Hi,
In trinidad 1.2.8 , on launching a dialog (non-lightweight)
1. In IE the launching page gets blocked. But if the underlying page is in a 
tr:frame then content in other tr:frames(others than the one containing the 
launching page) can not be blocked. 
2. In Mozilla 2.0.0.6, the content of the launching page is not blocked. 
Neither does the content in any other frame gets blocked.

However,on launching a dialog (lightweight)
 
In IE 6 / 7 as well as in Mozilla 2.0.0.6, the launching page gets blocked. But 
if the underlying page is
in a tr:frame then content in other frames(others than the one
containing the launching page) can not be blocked. 

I want to block the entire underlying content (including content in other 
frames on the window as well) on launching a dialog both normal as well as 
light weight.
How can i do it?

Thanks,
Dushyant




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[JSF] Should I initialize components in their getters.

2009-01-29 Thread dushyant agarwal
Hi,
JSF components getters (getter methods of instances that are EL bound to JSF 
components in the JSPs) are called only during initial requests and I presume 
that they are used by the JSF framework to synchronize the JSF view tree on the 
server with the instances on the Backing beans (i.e. Both the tree and the 
Backing bean should refer to the same instances of components).

Now is it ethical / correct to set initial values to a component in their 
getter methods?

Thanks,
Dushyant



  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/

[Trinidad] Stamping of components once per column in a single row

2009-02-03 Thread dushyant agarwal
Hi,
I have a situation where I need to display data in a tr:table such that the 
first row may contain only input Date components and the next row onwards there 
would be editable input texts. For this I require a functionality that helps in 
stamping the components once per column (instead of the standard of stamping 
"once per row"). Is it possible to do it?

Thanks,
Dushyant



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[Trinidad] Problem in PageflowScope - attribute's value available even after it is removed.

2009-02-26 Thread dushyant agarwal
Hi,
(In the following text, I am abbreviating Baccking Bean as BB)

 A JSF- Trinidad page (Page1.jsp, BB = Page1BB.java) has to be opened in a 
dialog. The page contains of a tr:outputText- id="txt", BB binding="txt". In 
its getter method  we have to set the value of the component  from an 
attribute-"ConfirmMsg" from the PageFlowScope.
 
If attribute's  value is found not null, then it is set on the component 
txt(say - msg1), otherwise a default value (say- msg2) is set on the 
component-txt.

After the value has been set, the attribute-"ConfirmMsg" is removed from the 
pageFlowScope as following:
RequestContext.getCurrentInstance().getPageFlowScope.remove("ConfirmMsg");

Within the same BB  (Page1BB) there is a static method which contains the code 
for programmatically
 launching the dialog of the same page whose BB it is.

Now another jsp page has two command buttons - submit and cancel , whose action 
methods are submitAction and cancelAction respectively.

In cancelAction I am calling the static method of Page1BB to launch a dialog 
containing Page1.jsp. As well as I am setting an attribute -"ConfirmMsg", in 
the PageFlowScope as following:
RequestContext.getCurrentInstance().getPageFlowScope.put("ConfirmMsg",msg1);

In submitAction, I am calling the static method of Page1BB to launch a dialog 
containing Page1.jsp. But I am not setting any attribute on PageFlowScope.

Step 1. Initially on clicking on "submit" a dialog is launched, which contains 
the default message-msg2. On returning from the dialog and Then on clicking on 
"cancel" again a dialog is launched with the message provided in 
PageFlowScope(msg1). 
Now in Page1BB, this attribute had been removed after its value was set on the 
component in
 the dialog.
Step 2. After returning again if we click on "submit" (not sending any params 
this time) the content in the dialog should be the default message (msg2) But 
it is coming as msg1- the value of the attribute that was removed.

However, if we clear the PageFlowScope inside the action method of the return 
button in the dialog page(by which we are returning from the dialog) then 
repeat steps 1 and 2 we get msg2 as desired in the dialog.

What might be the reason for this? Help please.

Thanks,
Dushyant
Then on clicking  on 




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re:Geting ViewExpiredException

2009-04-08 Thread dushyant agarwal
HI,
I'm getting the same exception with JBoss 4.2.1-GA server. I am=0Ausing JSF=
1.2 anf myfaces Trinidad 1.2.8. The session time-out=C2=A0 is 300=0Amins. =
But I get session time out within 5 mins.

However,if I set richFacesUI.jar in the lib of te Jboss directory then this=
problem gets resolved.
But with it the view root becomes an Instance of AjaxViewRoot class instead=
of the UIViewRoot class.

--Dushyant


Re: How to set up server-side state saving method

2009-04-24 Thread dushyant agarwal
In JSF, by default the state saving is server side.This means that with initial 
request made by the browser , the server saves the view root on ots side and 
sends an identifier in th response to the browser. This identifier is coming in 
the hidden field that you found. For the next request the browser would have to 
send this identifier to the server to help in request processing.

In client side state saving, instead of sending an identifier the whole view 
tree is sent to the browser. That is why the value part in that case gets 
bigger. This view tree has to be sent back to the server for the next request 
processing and so on. For futher info you should go to the JSF website.

--Dushyant

--- On Wed, 22/4/09, Alexey Koloskov  wrote:

From: Alexey Koloskov 
Subject: Re: How to set up server-side state saving method
To: "MyFaces Discussion" 
Date: Wednesday, 22 April, 2009, 8:21 PM

Thank you Cagatay for your answer, indeed when setting state saving to client, 
generated response is as two times bigger than previous one.
So ViewState hidden filed is renderer always but contains different size of 
information.

Cagatay Civici wrote:
> Can't remember what info probably view id, but in server state saving still 
> some information is saved.
> 
> Try setting state saving to client, you'll see the difference in size of that 
> hidden input.
> 
> On Wed, Apr 22, 2009 at 3:36 PM, Alexey Koloskov  > wrote:
> 
>     Here is my web.xml
>     firstJsf
>      
>       /index.jsp
>      
> 
>      
>       javax.faces.STATE_SAVING_METHOD
>       server
>      
>      
>          
>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
>       20
>      
>      
>          
>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
>       true
>      
> 
>      
>       Faces Servlet
>       javax.faces.webapp.FacesServlet
>       1
>      
>      
>       Faces Servlet
>       *.jsf
>      
> 
>     Cagatay Civici wrote:
> 
>         How do you specify it in web.xml, please post the context
>         param config.
> 
>         On Wed, Apr 22, 2009 at 2:48 PM, Alexey Koloskov
>              
>                  >> wrote:
> 
>            Hello!
>            I'am new to MyFaces. I have written a simple program on jsf:
>            
>                 
>                      value="Submit"/>
>                 
>            
>            and specify javax.faces.STATE_SAVING_METHOD=server in web.xml
>            But html code of the rendered page contains:
>                        id="javax.faces.ViewState"
>                   
>value="/0RL6JBt8cvqShFdUYKZJMFYhH3aK5oYI4toUZvNpTR+xCEIE1Uu9gLy21nZ6Z9tJC3z6WQ4pGdWJUwOkbTP+Q=="
>            />
>            It looks like saving state on client, is it correct behavior or
>            I'm doing something wrong?
> 
>            PS. I use MyFaces 1.2.6
> 
>            Thank you,
>            Alexey
> 
> 
> 
> 




  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/

Re: Query regarding faces messages

2009-04-24 Thread dushyant agarwal
what do you mean by client side validation in JSF?

--- On Wed, 22/4/09, Trupti Gawande  wrote:

From: Trupti Gawande 
Subject: Query regarding faces messages
To: users@myfaces.apache.org
Date: Wednesday, 22 April, 2009, 1:05 PM

Hi ,
 
 
I am using JSF in my application.While developing the code I am facing some 
problems.
I have done server side validation on first text box and has done client side 
validation on  second text box.
If I am putting wrong value in first text box then i will get the server side 
error on submitting the page .Then I am correcting that value and putting wrong 
value on second text box. then  on submitting the page I should get only one 
error for second text box.But I am getting both the errors as control is not 
going to backend.It will be confusing to user to have both the errors on page 
even after I rectify first one.

Can anyone suggest some solution on it.
 
Thanks,
Trupti



  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/

Re: [Trinidad]How to do dynamic form validation?

2009-04-29 Thread dushyant agarwal
Suppose,
valueChangeListener="BB.txtChngLsnr1" id="inputText1" for 1st inputText
valueChangeListener="BB.txtChngLsnr1" id="inputText2" for 2nd inputText

then,
txtChngLsnr1(ValueChangeEvent vce){
if(vce.getNewValue=null){
return; // optional case
}

if(inputText2.getValue== null){
// 
/*
*
*error code
*/
FacesContext.getCurrentInstance().renderResponse();
}
}
Similarly the code for the second value change listener can be.
txtChngLsnr2(ValueChangeEvent vce){

if(vce.getNewValue==null){

return; // optional case

}



if(inputText1.getValue== null){

// 

/*

*

*error code

*/

FacesContext.getCurrentInstance().renderResponse();

}

}

see if this works, and tell if any problem comes.

--- On Mon, 27/4/09, C Chang  wrote:

From: C Chang 
Subject: [Trinidad]How to do dynamic form validation?
To: users@myfaces.apache.org
Date: Monday, 27 April, 2009, 2:30 PM


Dear all,
I have a form which has two  elements, if first element has 
value, then the second element must have value as well. If first element 
doesn't have value, then the second element is optional.


Vice versa, if the second element has value, then the first element must have 
value. If the second element doesn't have value, then the first element is 
optional.
How can I implement this in trinidad? Thanks in advance!

Kind regards,Leon




  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox

Re: [TRINIDAD] selectOneChoice ignores contentStyle if readOnly="true"

2009-06-05 Thread dushyant agarwal
Hi,I have the same problem. please let me know too if many one has a solution 
to it.
Thanks.Dushyant

--- On Fri, 5/6/09, Carsten Pieper  wrote:

From: Carsten Pieper 
Subject: [TRINIDAD] selectOneChoice ignores contentStyle if readOnly="true"
To: users@myfaces.apache.org
Date: Friday, 5 June, 2009, 1:27 PM


Hi, 

Trinidad's selectOneChoice ignores contentStyle settings if readOnly="true"
(we're on Trinidad 1.0.10). Imho, this seems to be a bug. Or is it a feature
;-} ?

Best regards, Carsten
-- 
View this message in context: 
http://www.nabble.com/-TRINIDAD--selectOneChoice-ignores-contentStyle-if-readOnly%3D%22true%22-tp23883854p23883854.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.




  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/