This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am working with ice:inputRichText. I would like to get the selected text - this relates to the client side, I mean - manipulate it on the server side and put it back to the editor (on the same place, as the selected). Could you advice me please some best practise - how to work with this JSF component?
JSF is based on the concept of Inversion of Control. In IoC, you don't "get" things, the things are delivered to you.
Thus, if you used the value= attribute to bind a backing bean property to the inputRichText control, the value stored in the client-side text control will automatically be injected into that property when the form that contains it is submitted. The form's action method can then use the data in any way it wishes, including modifying the data so that when the updated form is displayed, the modifications will be sent back to the client.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Nov 26, 2012
Thank you. That is right, bud what about selected text? I agree - I have got an ice:inputRichText and I will write some text. Then I will select a piece of it and do some action with it. But I have the whole text in value attribute, have not I? Could you show me any example, please?
I looked at the javadocs and it does not appear that that information is captured.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: InputRichText - how to get selected text?