Difference between backing bean and model bean

2008-11-28 Thread santosh chouhan
Hello all,
I studied somewhere backing bean and model bean, so what is difference
between the two and when to use where and which is called first.
Thanks in advance.

Regards
Santosh chouhan


Re: [TOBAGO] how to access the request data in order to dig for tab-state

2008-11-28 Thread GroovieMan

Hy Volker,

i was tryinig this one to get the selected tab out of the request_

FacesContext facesContext = FacesContext.getCurrentInstance();
Map requestParameterMap =
facesContext.getExternalContext().getRequestParameterMap();

but i was unable to locate it, while i was digging in the 
servletRequest->request  and these maps inside.
Is there an example out there ?

Groovie





Volker Weber-5 wrote:
> 
> Hi Groovy,
> 
> the order of processing is the same as in the uiComponentTree.
> 
> A tab change is internally handled as an actionEvent, and your toolbar
> action is in the tree before the tabgroup.
> So the action is executed before the tabChangeAction updates the index.
> 
> You can try to fetch the actual index from the requestParameterMap.
> 
> regards,
>   Volker
> 
> 2008/11/28 Groovie <[EMAIL PROTECTED]>:
>>
>> Salut m'cs,
>>
>> this is now a little bit tricky, but i think theres a bug in Tobago.
>> I implemented a page, that consists of the following:
>>
>> page
>> --box
>> client-side-tabs #1
>> --sheet#1
>> client-side-tabs #2
>> --sheet#2
>> panel
>> --button-ok
>> --button-canel
>>
>>
>> This works perfectly. Both getter of a sheet list
>> gets called, when the page is loaded. Both
>> actions for the buttons can access a beans
>> attribute, that represents the currently
>> selected tab and perform the operation on the
>> visible sheet items. Excellent!
>>
>> Now somebody decided to add two actions at
>> the box border via 
>> and a .
>> The problem now is, that whenever i do change
>> the tab and press a toolbars button, the action
>> callback only see the old tab-setting and is performing
>> the action on the wrong tab-side.
>>
>> I know, this would not be a problem, if i would
>> use a server-side-tab, cause each tab change would
>> update the beans register, before the toolbar
>> action will fire an event.
>>
>> Ok, i have seen this under 1.0.19. Maybe you have
>> to read in the entire page, befor you start to run the
>> actions.
>> Maybe i am wrong, cause the endtag of 
>> ends behind the .
>>
>> Somebody has a idea, what went wrong ?
>>
>> Thank you
>> Groovie
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20730799.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> inexso - information exchange solutions GmbH
> Bismarckstraße 13  | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20744558.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TOBAGO] Any interesting JavaScript example there

2008-11-28 Thread GroovieMan

Salut m'cs,

is there an interesting example out there, that explains
how to use JavaScript code, to access the tag-state/values
of a JSF/Tobago page?
How do given tag-id corrrespond to java-script code and
how to i navigate through list elements in a sheet ?

Groovie
-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--Any-interesting-JavaScript-example-there-tp20740365p20740365.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TOBAGO] bug?? wrong order of processing incoming pages

2008-11-28 Thread GroovieMan

Salut Volker

thanks for your explanation, that was clear to me.
Anyway, as an ole X11/Motif hacker i have some 
problems to comply with this kind of event processing,
cause the tab change took place before the box-action
was activated.
Ok, both events resides in the same atomic http-get 
request.

Nice discussion here, really 
Groovie



Volker Weber-5 wrote:
> 
> Hi Groovy,
> 
> the order of processing is the same as in the uiComponentTree.
> 
> A tab change is internally handled as an actionEvent, and your toolbar
> action is in the tree before the tabgroup.
> So the action is executed before the tabChangeAction updates the index.
> 
> You can try to fetch the actual index from the requestParameterMap.
> 
> regards,
>   Volker
> 
> 2008/11/28 Groovie <[EMAIL PROTECTED]>:
>>
>> Salut m'cs,
>>
>> this is now a little bit tricky, but i think theres a bug in Tobago.
>> I implemented a page, that consists of the following:
>>
>> page
>> --box
>> client-side-tabs #1
>> --sheet#1
>> client-side-tabs #2
>> --sheet#2
>> panel
>> --button-ok
>> --button-canel
>>
>>
>> This works perfectly. Both getter of a sheet list
>> gets called, when the page is loaded. Both
>> actions for the buttons can access a beans
>> attribute, that represents the currently
>> selected tab and perform the operation on the
>> visible sheet items. Excellent!
>>
>> Now somebody decided to add two actions at
>> the box border via 
>> and a .
>> The problem now is, that whenever i do change
>> the tab and press a toolbars button, the action
>> callback only see the old tab-setting and is performing
>> the action on the wrong tab-side.
>>
>> I know, this would not be a problem, if i would
>> use a server-side-tab, cause each tab change would
>> update the beans register, before the toolbar
>> action will fire an event.
>>
>> Ok, i have seen this under 1.0.19. Maybe you have
>> to read in the entire page, befor you start to run the
>> actions.
>> Maybe i am wrong, cause the endtag of 
>> ends behind the .
>>
>> Somebody has a idea, what went wrong ?
>>
>> Thank you
>> Groovie
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20730799.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> inexso - information exchange solutions GmbH
> Bismarckstraße 13  | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20740272.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TOBAGO] bug?? wrong order of processing incoming pages

2008-11-28 Thread GroovieMan

Salut Volker

thanks for your explanation, that was clear to me.
Anyway, as an ole X11/Motif hacker i have some 
problems to comply with this kind of event processing,
cause the tab change took place before the box-action
was activated.
Ok, both events resides in the same atomic http-get 
request.

Nice discussion here, really 
Groovie



Volker Weber-5 wrote:
> 
> Hi Groovy,
> 
> the order of processing is the same as in the uiComponentTree.
> 
> A tab change is internally handled as an actionEvent, and your toolbar
> action is in the tree before the tabgroup.
> So the action is executed before the tabChangeAction updates the index.
> 
> You can try to fetch the actual index from the requestParameterMap.
> 
> regards,
>   Volker
> 
> 2008/11/28 Groovie <[EMAIL PROTECTED]>:
>>
>> Salut m'cs,
>>
>> this is now a little bit tricky, but i think theres a bug in Tobago.
>> I implemented a page, that consists of the following:
>>
>> page
>> --box
>> client-side-tabs #1
>> --sheet#1
>> client-side-tabs #2
>> --sheet#2
>> panel
>> --button-ok
>> --button-canel
>>
>>
>> This works perfectly. Both getter of a sheet list
>> gets called, when the page is loaded. Both
>> actions for the buttons can access a beans
>> attribute, that represents the currently
>> selected tab and perform the operation on the
>> visible sheet items. Excellent!
>>
>> Now somebody decided to add two actions at
>> the box border via 
>> and a .
>> The problem now is, that whenever i do change
>> the tab and press a toolbars button, the action
>> callback only see the old tab-setting and is performing
>> the action on the wrong tab-side.
>>
>> I know, this would not be a problem, if i would
>> use a server-side-tab, cause each tab change would
>> update the beans register, before the toolbar
>> action will fire an event.
>>
>> Ok, i have seen this under 1.0.19. Maybe you have
>> to read in the entire page, befor you start to run the
>> actions.
>> Maybe i am wrong, cause the endtag of 
>> ends behind the .
>>
>> Somebody has a idea, what went wrong ?
>>
>> Thank you
>> Groovie
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20730799.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> inexso - information exchange solutions GmbH
> Bismarckstraße 13  | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20740268.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TOBAGO] How to show multiple lines with

2008-11-28 Thread Volker Weber
Hi Groovy,

tobago did not support client side font changes. The layout
calculation is done on the server
in px. The themes font size is defined in the themes, and the font
scaling on client is not known on the server side.

I could imagine a rows attribute on tc:textarea to give the
layoutManager a hint how many rows a fixed layout token should
calculate.
The default fixed for textarea is afaik not defined and so is the
themes default fixed (20px in speyside theme) used.

If you need such a hint feel free to create a feature request in jira.

Regards,
  Volker

2008/11/28 Groovie <[EMAIL PROTECTED]>:
>
> Salve Volker,
>
> thank you for your hint, its is working.
> But how does the 40px behave, when
> the user enlarges the font size.
> Does the textarea recalibrate himself,
> or do i run into the problem, that the
> text is gonna be cut away.
>
> For this reason, a rows or visible rows
> attribute would be a real help, cause
> the tag still know how many rows have
> to be shown!
>
> Groovy
>
>
>
> Volker Weber-5 wrote:
>>
>> Hi Groovy,
>>
>> 2008/11/26 GroovieMan <[EMAIL PROTECTED]>:
>>>
>>> Salut Volker,
>>>
>>> thanks for your reply. Ah, that was a real delightment.
>>> It should looks like this:
>>>
>>> 
>>>
>>> 
>>>
>>> where the secound gui element (in this case a tx:textfield)
>>> has 2 rows ?
>>>
>>
>> No "2" is not a valid token for the layout. You should e.g. use pixel:
>> 
>>
>> to get a textarea with 40px height. there is no possibility to specify the
>> rows.
>>
>> Regards,
>>
>> Volker
>>
>>> Groovie
>>>
>>>
>>> Volker Weber-5 wrote:

 Hi Groovy,

 set a height via the surrounding layout.


 Regards,
 Volker

 2008/11/26 Groovie <[EMAIL PROTECTED]>:
>
> Salut M'cs
>
> i would like to know, how to tell the tx:textarea tag, to
> show a box with i.e. 3 lines. I do miss a row(s) attribute,
> to show a textbox with a couple of viewable textline,
> quite similar to the .
>
> Any help is welcomed!
>
> Thanks in advance,
> Groovy
>
>
> --
> View this message in context:
> http://www.nabble.com/-TOBAGO--How-to-show-multiple-lines-with-%3Ctx%3Atextarea%3E-tp20699493p20699493.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



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


>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-TOBAGO--How-to-show-multiple-lines-with-%3Ctx%3Atextarea%3E-tp20699493p20708446.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> inexso - information exchange solutions GmbH
>> Bismarckstraße 13  | 26122 Oldenburg
>> Tel.: +49 441 4082 356 |
>> FAX:  +49 441 4082 355 | www.inexso.de
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/-TOBAGO--How-to-show-multiple-lines-with-%3Ctx%3Atextarea%3E-tp20699493p20731961.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



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


Re: [TOBAGO] bug?? wrong order of processing incoming pages

2008-11-28 Thread Volker Weber
Hi Groovy,

the order of processing is the same as in the uiComponentTree.

A tab change is internally handled as an actionEvent, and your toolbar
action is in the tree before the tabgroup.
So the action is executed before the tabChangeAction updates the index.

You can try to fetch the actual index from the requestParameterMap.

regards,
  Volker

2008/11/28 Groovie <[EMAIL PROTECTED]>:
>
> Salut m'cs,
>
> this is now a little bit tricky, but i think theres a bug in Tobago.
> I implemented a page, that consists of the following:
>
> page
> --box
> client-side-tabs #1
> --sheet#1
> client-side-tabs #2
> --sheet#2
> panel
> --button-ok
> --button-canel
>
>
> This works perfectly. Both getter of a sheet list
> gets called, when the page is loaded. Both
> actions for the buttons can access a beans
> attribute, that represents the currently
> selected tab and perform the operation on the
> visible sheet items. Excellent!
>
> Now somebody decided to add two actions at
> the box border via 
> and a .
> The problem now is, that whenever i do change
> the tab and press a toolbars button, the action
> callback only see the old tab-setting and is performing
> the action on the wrong tab-side.
>
> I know, this would not be a problem, if i would
> use a server-side-tab, cause each tab change would
> update the beans register, before the toolbar
> action will fire an event.
>
> Ok, i have seen this under 1.0.19. Maybe you have
> to read in the entire page, befor you start to run the
> actions.
> Maybe i am wrong, cause the endtag of 
> ends behind the .
>
> Somebody has a idea, what went wrong ?
>
> Thank you
> Groovie
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20730799.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



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


Re: Using the Oracle ADF skin with Trinidad

2008-11-28 Thread Matthias Wessendorf
On Fri, Nov 28, 2008 at 4:59 PM, Schifferer, Paul
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm currently working on upgrading my project from Sun RI + Oracle ADF Faces
> to Apache MyFaces + Trinidad.  We prefer the look of the Oracle ADF look,
> and would like to make Trinidad render with that look.  Is there any easy
> way to do this?

Hi,

some colleagues of mine created a skin that is similar (or exactly)
the "old" oracle adf laf.
It is called suede:
http://svn.apache.org/repos/asf/myfaces/trinidad/trunk_1.2.x/trinidad-examples/trinidad-demo/src/main/webapp/skins/suede/

Also, I strongly suggest to go with the JSF 1.2 line of Trinidad:
http://wiki.apache.org/myfaces/Trinidad_JSF12_Support
http://wiki.apache.org/myfaces/Trinidad_and_JSF_12

Also, coming from ADF, this may be interesting as well:
http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

And another node... the current Oracle JDeveloper 11g has a migration tool.
It transforms an "old" ADF Faces 10g application into a Trinidad based
application (JSF 1.2).
I am not sure if it only does the migration on "fullstack ADF
applications", but I think worth to
try.

-MAtthias

>
> Thanks,
> Paul



-- 
Matthias Wessendorf

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


[TRINIDAD]layoutWidth in selctmanycheckbox

2008-11-28 Thread alvaro tovar
hello

hi all, i am needed layoutwith in seelctmanycheckbox, i can't use tomahawk
because this not create a unique id, for the options, i don't know how i can
do this.

thanks


Using the Oracle ADF skin with Trinidad

2008-11-28 Thread Schifferer, Paul
Hello,

I¹m currently working on upgrading my project from Sun RI + Oracle ADF Faces
to Apache MyFaces + Trinidad.  We prefer the look of the Oracle ADF look,
and would like to make Trinidad render with that look.  Is there any easy
way to do this?

Thanks,
Paul


Re: [TOBAGO] How to escape from a validation error with an escape button

2008-11-28 Thread Volker Weber
Hi Groovy,

http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works


Regards,
Volker

2008/11/28 Groovie <[EMAIL PROTECTED]>:
>
> Salut M'cs,
>
> i build a dialog with some  and 
> and a required="true" attribute to these tag.
> Below that input field i add a [save] and a [cancel]
> button. When the user wants to save an forgot
> to enter some data into a required input field,
> the TOBAGO/Myfaces frameworks sends an error
> by marking the inputfield with a red frame and
> displays lower a error message.
>
> This is wonderful!!!
>
> But iff the user wants to leave an is pressing the
> cancel button, the same validation mechanism starts
> to block any further operation and the user remains
> in a error loop while he really wants to escape from
> this dialog.
>
> I also add a self implemented validation methode,
> but unfortunately this one is not beeing called.
>
> What can i do to disable the validation (like required=true)
> for any cancel operation ?
>
> Thank you
> Groovie
>
> --
> View this message in context: 
> http://www.nabble.com/-TOBAGO--How-to-escape-from-a-validation-error-with-an-escape-button-tp20730532p20730532.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



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


extend tomahawk sandox selectManyPickList

2008-11-28 Thread Madhav Bhargava
Hi All,

I have a requirement where I have 2 lists (left and right) and the following 
behavior is required:


1.   The user can only select one item from the left list to be moved to 
the right.

2.   The user can only choose one item either from the left or the right 
list. This will make sure that if there are any javascript events invoked the 
select value will only be a single item.

Tomahawk sandbox has a component s:selectManyPickList defined. It meets the 
basic requirement of a typical picklist however to my dismay it does not 
provide control to the user to allow multiple/single selection while moving 
elements between lists or selecting items from either list to invoke some 
external events.

The following HTML code gets generated by this component:

  Fertility Drugs
.

I would have been happy if the component user had control over setting of the 
"multiple" attribute.

I tried to find the code for sandbox components but was not able to locate it. 
I was thinking of extending this component and adding an additional attribute 
which will give me the required behavior.

Does anyone know if I can get the above mentioned behavior without extending 
the component in its current form? If that is not possible then it will be 
great if I can get some pointers to where I can find the sandbox code so that I 
can have a look at the component classes.

Thanks,
Madhav

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***


Re: [Trinidad] dialog auto submit

2008-11-28 Thread Walter Mourão
Add a component surrounding the entire row (div or some tr:panel*):
ondblclick->select the radio and close the dialog.

Or... you can add the ondblclick to each component inside the row.

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



On Fri, Nov 28, 2008 at 9:18 AM, Bruno Marti <[EMAIL PROTECTED]> wrote:

>
> ondblclick="document.getElementById('closeButtonId').click();"
> It works.
> But:
> - Event will also be fired on dbclick in headers or all over the table.
> - If user must select a row  (see: tr:table rowSelection="single"), no row
> will be selected before submitting by button.click. That means I cannot
> select a row and auto submit the dialog by above method.
>
> Any other solutions or could this be a change request, new feature?
>
>
>
> Walter Mourão-2 wrote:
> >
> > Quick & Dirt Solution:
> >
> > - add a closing button to the dialog
> > - hide it with css
> > - "click" the button using javascript in the ondblclick event of the
> > tr:table. Something like
> > ondblclick="documento.getElementById('closeButtonId').click();"
> >
> > I don't remember if I used something like that before but I think it
> > works.
> >
> > Walter Mourão
> > http://waltermourao.com.br
> > http://arcadian.com.br
> > http://oriens.com.br
> >
> >
> >
> > On Tue, Nov 25, 2008 at 12:57 PM, Bruno Marti <[EMAIL PROTECTED]>
> > wrote:
> >
> >> I've got a lightweight dialog with a tr:table as result list. Where row
> >> selction is "single". Everything works as expected. But now, I'd like to
> >> autosubmit and close the the dialog on row selection (click on rows
> radio
> >> button column OR if I double click somewhere on entire row). Is there a
> >> way
> >> to do this? Perhaps on tr:table ondblclick="", but how? Any
> >> solutions?
> >> (myfaces 1.1.5, trinidad 1.0.10) dialog.jsp:
> >> --
> >> View this message in context: [Trinidad] dialog auto
> >> submit<
> http://www.nabble.com/-Trinidad--dialog-auto-submit-tp20682081p20682081.html
> >
> >> Sent from the MyFaces - Users mailing list
> >> archiveat Nabble.com.
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-Trinidad--dialog-auto-submit-tp20682081p20732761.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: [Trinidad] dialog auto submit

2008-11-28 Thread Bruno Marti

ondblclick="document.getElementById('closeButtonId').click();"
It works. 
But:
- Event will also be fired on dbclick in headers or all over the table.
- If user must select a row  (see: tr:table rowSelection="single"), no row
will be selected before submitting by button.click. That means I cannot
select a row and auto submit the dialog by above method.

Any other solutions or could this be a change request, new feature?



Walter Mourão-2 wrote:
> 
> Quick & Dirt Solution:
> 
> - add a closing button to the dialog
> - hide it with css
> - "click" the button using javascript in the ondblclick event of the
> tr:table. Something like
> ondblclick="documento.getElementById('closeButtonId').click();"
> 
> I don't remember if I used something like that before but I think it
> works.
> 
> Walter Mourão
> http://waltermourao.com.br
> http://arcadian.com.br
> http://oriens.com.br
> 
> 
> 
> On Tue, Nov 25, 2008 at 12:57 PM, Bruno Marti <[EMAIL PROTECTED]>
> wrote:
> 
>> I've got a lightweight dialog with a tr:table as result list. Where row
>> selction is "single". Everything works as expected. But now, I'd like to
>> autosubmit and close the the dialog on row selection (click on rows radio
>> button column OR if I double click somewhere on entire row). Is there a
>> way
>> to do this? Perhaps on tr:table ondblclick="", but how? Any
>> solutions?
>> (myfaces 1.1.5, trinidad 1.0.10) dialog.jsp:
>> --
>> View this message in context: [Trinidad] dialog auto
>> submit
>> Sent from the MyFaces - Users mailing list
>> archiveat Nabble.com.
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--dialog-auto-submit-tp20682081p20732761.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: [TOBAGO] How to show multiple lines with

2008-11-28 Thread Groovie

Salve Volker,

thank you for your hint, its is working.
But how does the 40px behave, when
the user enlarges the font size.
Does the textarea recalibrate himself,
or do i run into the problem, that the
text is gonna be cut away.

For this reason, a rows or visible rows
attribute would be a real help, cause
the tag still know how many rows have
to be shown!

Groovy



Volker Weber-5 wrote:
> 
> Hi Groovy,
> 
> 2008/11/26 GroovieMan <[EMAIL PROTECTED]>:
>>
>> Salut Volker,
>>
>> thanks for your reply. Ah, that was a real delightment.
>> It should looks like this:
>>
>> 
>>
>> 
>>
>> where the secound gui element (in this case a tx:textfield)
>> has 2 rows ?
>>
> 
> No "2" is not a valid token for the layout. You should e.g. use pixel:
> 
> 
> to get a textarea with 40px height. there is no possibility to specify the
> rows.
> 
> Regards,
> 
> Volker
> 
>> Groovie
>>
>>
>> Volker Weber-5 wrote:
>>>
>>> Hi Groovy,
>>>
>>> set a height via the surrounding layout.
>>>
>>>
>>> Regards,
>>> Volker
>>>
>>> 2008/11/26 Groovie <[EMAIL PROTECTED]>:

 Salut M'cs

 i would like to know, how to tell the tx:textarea tag, to
 show a box with i.e. 3 lines. I do miss a row(s) attribute,
 to show a textbox with a couple of viewable textline,
 quite similar to the .

 Any help is welcomed!

 Thanks in advance,
 Groovy


 --
 View this message in context:
 http://www.nabble.com/-TOBAGO--How-to-show-multiple-lines-with-%3Ctx%3Atextarea%3E-tp20699493p20699493.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


>>>
>>>
>>>
>>> --
>>> inexso - information exchange solutions GmbH
>>> Bismarckstraße 13  | 26122 Oldenburg
>>> Tel.: +49 441 4082 356 |
>>> FAX:  +49 441 4082 355 | www.inexso.de
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-TOBAGO--How-to-show-multiple-lines-with-%3Ctx%3Atextarea%3E-tp20699493p20708446.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> inexso - information exchange solutions GmbH
> Bismarckstraße 13  | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--How-to-show-multiple-lines-with-%3Ctx%3Atextarea%3E-tp20699493p20731961.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



invalid oder missing tags for some style attributes

2008-11-28 Thread Bojan Antonović
I'm using Apache Tomahawk. Accoring to HTML Validator add-on for 
Firefox, following is corrupt:


there is no attribute rel:



required attribute type not specified:


//



I use (X)HTML validation to detect some fundamental flaws in the 
application. It's just an additional test.


regards

   Bojan

PS: I like the popup calendar!



RE: [TOBAGO] How to escape from a validation error with an escape button

2008-11-28 Thread Groovie

Ya aiming to get into the guinness-book under
the section of the fastest mailing-list problem
responder, don't you ?

Thank you!



Matt.Rossner-prest wrote:
> 
> Try setting immediate="true" on the cancel button.
> 
> -Original Message-
> From: Groovie [mailto:[EMAIL PROTECTED] 
> Sent: vendredi 28 novembre 2008 09:31
> To: users@myfaces.apache.org
> Subject: [TOBAGO] How to escape from a validation error with an escape
> button
> 
> 
> Salut M'cs,
> 
> i build a dialog with some  and 
> and a required="true" attribute to these tag.
> Below that input field i add a [save] and a [cancel] 
> button. When the user wants to save an forgot
> to enter some data into a required input field,
> the TOBAGO/Myfaces frameworks sends an error
> by marking the inputfield with a red frame and 
> displays lower a error message.
> 
> This is wonderful!!!
> 
> But iff the user wants to leave an is pressing the
> cancel button, the same validation mechanism starts
> to block any further operation and the user remains
> in a error loop while he really wants to escape from
> this dialog.
> 
> I also add a self implemented validation methode,
> but unfortunately this one is not beeing called.
> 
> What can i do to disable the validation (like required=true)
> for any cancel operation ?
> 
> Thank you
> Groovie
> 
> -- 
> View this message in context:
> http://www.nabble.com/-TOBAGO--How-to-escape-from-a-validation-error-wit
> h-an-escape-button-tp20730532p20730532.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--How-to-escape-from-a-validation-error-with-an-escape-button-tp20730532p20730845.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TOBAGO] bug?? wrong order of processing incoming pages

2008-11-28 Thread Groovie

Salut m'cs,

this is now a little bit tricky, but i think theres a bug in Tobago.
I implemented a page, that consists of the following:

page
--box
client-side-tabs #1
--sheet#1
client-side-tabs #2
--sheet#2
panel
--button-ok
--button-canel


This works perfectly. Both getter of a sheet list
gets called, when the page is loaded. Both 
actions for the buttons can access a beans
attribute, that represents the currently 
selected tab and perform the operation on the
visible sheet items. Excellent!

Now somebody decided to add two actions at
the box border via 
and a .
The problem now is, that whenever i do change
the tab and press a toolbars button, the action 
callback only see the old tab-setting and is performing
the action on the wrong tab-side.

I know, this would not be a problem, if i would 
use a server-side-tab, cause each tab change would
update the beans register, before the toolbar
action will fire an event.

Ok, i have seen this under 1.0.19. Maybe you have
to read in the entire page, befor you start to run the
actions.
Maybe i am wrong, cause the endtag of 
ends behind the .

Somebody has a idea, what went wrong ?

Thank you
Groovie




-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--bug---wrong-order-of-processing-incoming-pages-tp20730799p20730799.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: [TOBAGO] How to escape from a validation error with an escape button

2008-11-28 Thread Matt.Rossner-prest
Try setting immediate="true" on the cancel button.

-Original Message-
From: Groovie [mailto:[EMAIL PROTECTED] 
Sent: vendredi 28 novembre 2008 09:31
To: users@myfaces.apache.org
Subject: [TOBAGO] How to escape from a validation error with an escape
button


Salut M'cs,

i build a dialog with some  and 
and a required="true" attribute to these tag.
Below that input field i add a [save] and a [cancel] 
button. When the user wants to save an forgot
to enter some data into a required input field,
the TOBAGO/Myfaces frameworks sends an error
by marking the inputfield with a red frame and 
displays lower a error message.

This is wonderful!!!

But iff the user wants to leave an is pressing the
cancel button, the same validation mechanism starts
to block any further operation and the user remains
in a error loop while he really wants to escape from
this dialog.

I also add a self implemented validation methode,
but unfortunately this one is not beeing called.

What can i do to disable the validation (like required=true)
for any cancel operation ?

Thank you
Groovie

-- 
View this message in context:
http://www.nabble.com/-TOBAGO--How-to-escape-from-a-validation-error-wit
h-an-escape-button-tp20730532p20730532.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



[TOBAGO] How to escape from a validation error with an escape button

2008-11-28 Thread Groovie

Salut M'cs,

i build a dialog with some  and 
and a required="true" attribute to these tag.
Below that input field i add a [save] and a [cancel] 
button. When the user wants to save an forgot
to enter some data into a required input field,
the TOBAGO/Myfaces frameworks sends an error
by marking the inputfield with a red frame and 
displays lower a error message.

This is wonderful!!!

But iff the user wants to leave an is pressing the
cancel button, the same validation mechanism starts
to block any further operation and the user remains
in a error loop while he really wants to escape from
this dialog.

I also add a self implemented validation methode,
but unfortunately this one is not beeing called.

What can i do to disable the validation (like required=true)
for any cancel operation ?

Thank you
Groovie

-- 
View this message in context: 
http://www.nabble.com/-TOBAGO--How-to-escape-from-a-validation-error-with-an-escape-button-tp20730532p20730532.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.