-
1. Re: Croptool - needed advice about new components architectu
nbelaevski Sep 9, 2009 10:04 AM (in response to blabno)Hi,
Bean is definitely not an option. How about updating value expression + value change listener that will allow external bean to crop the image? -
2. Re: Croptool - needed advice about new components architectu
blabno Sep 10, 2009 2:15 AM (in response to blabno)Right now cropping action and holding image is responsibility of external bean, and my component just provides selection coordinates. It also outputs only JavaScript. I'm thinking about providing whole panel with buttons, buttons, but actually other users may want to add other actions, i.e. grab selection, but not crop. That could be done via facets i guess.
I wrote facelet template using my crop component that i can reuse in several places in my project, it has lots of rerendering and other logic, that would be repeated if my rich component generates javascript only. Facelet template however has problems with passing action method bindings.
Maybe I should provide another jar with sample bean and facelet template ? -
3. Re: Croptool - needed advice about new components architectu
nbelaevski Sep 10, 2009 6:37 AM (in response to blabno)That depends on how wide you are planning to distribute the component. Note then none of RF components uses predefined beans.