You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rogerio Pereira <ro...@gmail.com> on 2005/11/09 13:59:51 UTC

contributing with components

Hi, i would like to develop two components to myfaces:
selectManyShuttle and a toolbar, but i need to know how can i make a
click in a image fire the execution of an method in backing bean like
action attribute does for commandButton and where i can get an simple
example of how build a myfaces component.

--
Yours truly (Atenciosamente),

Rogério

Re: contributing with components

Posted by Rogerio Pereira <ro...@gmail.com>.
Ok, you is right, this is the correct way.

2005/11/9, Bruno Aranda <br...@gmail.com>:
> Now it works like the other selectMany*, the click is handled by
> javascript to move one element from the available items list to the
> selected items list. Once the form is submitted you can handle the new
> values selected with a ValueChangeEvent the same way you would do with
> a selectManyListbox, for instance. Is there a reason why the component
> should broadcast an event when one of its buttons are clicked and
> require the additional round-trip?
>
> BTW, the selectManyPicklist is still in heavy development. I've only
> developed the renderer, as the component and tag are just an
> extensions of the selectManyListbox. Specific attributes for this
> component will appear soon. I will write some basic documentation
> tonight (is the second time I say that, but you know time is finite).
> Feedback is needed...
>
> Regards,
>
> Bruno
>
> 2005/11/9, Rogerio Pereira <ro...@gmail.com>:
> > Hmmm, good, and i'll have a change to learn how to write jsf components...
> > The selectManyPicklist handles the click in add/remove buttons?
> >
> > --
> > Yours truly (Atenciosamente),
> >
> > Rogério
> >
>


--
Yours truly (Atenciosamente),

Rogério

Re: contributing with components

Posted by Bruno Aranda <br...@gmail.com>.
Now it works like the other selectMany*, the click is handled by
javascript to move one element from the available items list to the
selected items list. Once the form is submitted you can handle the new
values selected with a ValueChangeEvent the same way you would do with
a selectManyListbox, for instance. Is there a reason why the component
should broadcast an event when one of its buttons are clicked and
require the additional round-trip?

BTW, the selectManyPicklist is still in heavy development. I've only
developed the renderer, as the component and tag are just an
extensions of the selectManyListbox. Specific attributes for this
component will appear soon. I will write some basic documentation
tonight (is the second time I say that, but you know time is finite).
Feedback is needed...

Regards,

Bruno

2005/11/9, Rogerio Pereira <ro...@gmail.com>:
> Hmmm, good, and i'll have a change to learn how to write jsf components...
> The selectManyPicklist handles the click in add/remove buttons?
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
>

Re: contributing with components

Posted by Rogerio Pereira <ro...@gmail.com>.
For add/remove buttons you use javascript code, but how can i make a
click in an image call an method in backing bean? I need this to
create the Toolbar in the future.

--
Yours truly (Atenciosamente),

Rogério

Re: contributing with components

Posted by Rogerio Pereira <ro...@gmail.com>.
Hmmm, good, and i'll have a change to learn how to write jsf components...
The selectManyPicklist handles the click in add/remove buttons?

--
Yours truly (Atenciosamente),

Rogério

Re: contributing with components

Posted by Bruno Aranda <br...@gmail.com>.
Well, I think that the new selectManyPicklist in the sandbox (I still
have to write the documentation) is the same than the
selectManyShuttle component you are talking about. There is an example
in the sandbox selectManyPicklist.jsf. I have to implement still some
of the attributes as now it only has some basic functionality (it does
not deals with styles, for instance). Take a look at it to see if it
is the same you have in mind, so we can join efforts...

Regards,

Bruno

2005/11/9, Rogerio Pereira <ro...@gmail.com>:
> Hi, i would like to develop two components to myfaces:
> selectManyShuttle and a toolbar, but i need to know how can i make a
> click in a image fire the execution of an method in backing bean like
> action attribute does for commandButton and where i can get an simple
> example of how build a myfaces component.
>
> --
> Yours truly (Atenciosamente),
>
> Rogério
>