[trinidad] tr:treeTable range navigation

2008-11-07 Thread wildes miranda oliveira
hi guys,

has any form to control, or parameters to overrides defaults in tr:treeTable
to take same control range navigation as in tr:table ?


thanks!


Change the view of tomahawk component

2008-11-07 Thread Lucas Dittrich

Hi all,

i am really new in all of this jsf stuff.

I would like to use the  component to built a calendar 
portlet in Liferay, but i'd like to change the rendered view to a simple 
list.


Within the list all entries should be listed with date, time, title etc.
I don't need any other views like workweek or month scheduleviewmode.

Has anybody got an idea how to start impementing this.

Regards

Lucas



Re: confused about selectOneItem and converter and data binding

2008-11-07 Thread Simon Kitching
An html select element looks like this:
  
Volvo
Saab
Fiat
Audi
  

You have:
  
 
where the getSelectItems() method returns a list of SelectItem objects
whose string is the text  you want to display, and the value is a
ComplexProp object, right?

So the renderer for the f:selectItems writes out one  tag for
each item in the list. The body text for the  tag is taken from
the SelectItem.label property. The SelectItem.value is a ComplexProp
object, and so the converter.getAsString method is called to generate
the string to write out as the "value" attribute. Obviously this occurs
once for each item in the list.

When the form is posted back, the browser will include in the posted
form data the *string value* of whatever option was selected by the
user. JSF calls the converter once, to map this string back to a
ComplexProp object, then (in update-model phase) stores the resulting
object using the "value" EL-expression of the h:selectOneMenu component.

So on render, getAsString is called N times, and on postback getAsObject
is called once.

Regards, Simon

Anton Gavazuk schrieb:
> Hi dushyant,
>
> thanks for response -
>
> which value I should return in getAsString method? - actual Key
> element or Value element? - because the selectOneItem is populated by
> SelectItem's elements.
>
> and why in debug I see that getAsString method is being called for N
> times (over all elements in binded array)?
>
> 2008/11/7 dushyant agarwal <[EMAIL PROTECTED]>:
>   
>> 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/
>>
>> 
>
>   


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



Re: confused about selectOneItem and converter and data binding

2008-11-07 Thread Anton Gavazuk
Hi dushyant,

thanks for response -

which value I should return in getAsString method? - actual Key
element or Value element? - because the selectOneItem is populated by
SelectItem's elements.

and why in debug I see that getAsString method is being called for N
times (over all elements in binded array)?

2008/11/7 dushyant agarwal <[EMAIL PROTECTED]>:
> 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/
>


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/


how to align to the right hand size of the screen?

2008-11-07 Thread tong123123
I have a form which must always placed at the left,
then I write another form and I want the form 
place in the right hand size of this form, 
by now the new form always placed 
under the left hand size form, 
any method (e.g. StyleClass) can 
placed a form to the right hand size?

(the left hand size form is always reused 
and nearly included in every form, 
I want any new form placed 
in the right hand size of this form) 


  為了不斷提升Yahoo! 
Mail,雅虎香港誠邀你參與意見調查。請前往http://surveylink.yahoo.com/wix/p5429076.aspx 發表你的意見!


Re: confused about selectOneItem and converter and data binding

2008-11-07 Thread Anton Gavazuk
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
>
> 
> 
>
>
> 
>
> 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?
>