cancel
Showing results for 
Search instead for 
Did you mean: 

Inline edit in web projects edit menu item

lakshmi
Champ in-the-making
Champ in-the-making
Hi Kevin,

With reference to http://forums.alfresco.com/viewtopic.php?t=9255&highlight=avmeditbean

Is this inline edit being implemented in future versions? Am very much interested in inline edit feature for content created inside my web project sanbox. i have been going thru AVMBrowseBean.java and edit-file.jsp

Can i do this code level changes myself? How do i get the stored wysywig content from the AVMBrowseBean and populate it on click of edit button in the edit-file.jsp….Pls let me know

Did any of you guys find a solution to this…pls share with me it would be really helpful
Thank you,
Lakshmi
2 REPLIES 2

lakshmi
Champ in-the-making
Champ in-the-making
Hi there,

I was able to bring up the inline editor for web project content.

I wrote my own jsp and in the AVMEditBean i used ContentReader api to get the content of my avmNode and set it in the editorOutput bean.

I created my jsp based on edit-html-inline.jsp

When i click on edit link i am able to get the inline editor with the stored contents. The problem is when i click on save nothing happens.

In my save my action points to updateFileOK class of AVMEditBean.

<h:commandButton value="#{msg.save}" action="#{AVMEditBean.updateFileOK}" styleClass="dialogControls" />

But it doesnt seem to go into the method at all.

Whereas cancel works well and it returns to the browse-sandbox.jsp

<h:commandButton value="#{msg.cancel}" action="dialog:close" styleClass="dialogControls" />

Where else should i configure if my button click has to go into the paticular class?

Pls help

kvc
Champ in-the-making
Champ in-the-making
Lakshmi:

For the simple case of just capturing a single HTML fragment, I would recommend creating a simple XSD for a generic content item that was defined as a single element of type xs:string (with whatever annotation you want to expose different levels of HTML formatting).   This avoid the need for having to create a custom in-line editor, and provides the added value that if you later wanted to extend the schema to capture additional elements (say, metadata), you can just update the schema and start appending new values into your content.


kevin