cancel
Showing results for 
Search instead for 
Did you mean: 

how does r:propertySheetGrid work?

esource
Champ on-the-rise
Champ on-the-rise
I would like to customize a page using components like found in the edit-content-properties.jsp for instance the selector used to select items to associate with a document.  But when I looked in edit-content-properties.jsp, all I found was :

<f:verbatim>
<table cellpadding="2" width="100%" style="padding-top: 4px; padding-bottom: 4px;">
<tr class="wizardSectionHeading">
<td>
</f:verbatim>
<h:outputText value=" #{msg.properties}" escape="false" />
<f:verbatim></td>
</tr>
</table>
</f:verbatim>

<r:propertySheetGrid id="content-props" value="#{DialogManager.bean.editableNode}"
var="editContentProps" columns="1" externalConfig="true" />

Can someone explain how this works?
5 REPLIES 5

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
id - Unique id for component

value - Value binding expressions that must evaluate to a 'org.alfresco.web.bean.repository.Node' object

var - The name of the variable the Node pointed to by value will be stored in the session under

columns - The number of columns to render (label and field pairs are treated as 1 column)

rendered - Flag to determine whether the component should be rendered

mode - "view" means all items will be rendered as text, "edit" means all items will be rendered as input controls, default is "edit"

readOnly - Flag to determine whether items should be rendered as disabled input controls (only takes effect when mode is "edit")

labelStyleClass - CSS class to apply to all labels

cellpadding & cellspacing - Pass through HTML attributes for underlying table

externalConfig - Flag to indicate whether the component is configured via the Config Service

configArea - Only use the named 'area' from the Config Service

validationEnabled - Determines whether the property sheet will perform client side validation

finishButtonId - The HTML id of the form submit button being used on the page, used by the validation feature to disable the button until mandatory field


and in bean you would have

Node editableNode;

getEdi…
setedi…
This is all. hope it helps.
also you have all hire http://wiki.alfresco.com/wiki/PropertySheet

esource
Champ on-the-rise
Champ on-the-rise
Yes, it seems like there is quite a bit of code in the background that performs the work of propertySheetGrid to automatically generate the GUI components to be displayed.  I am impressed.  But I find it difficult to work with the components individually.  I would either need to write my own component generation code or trick Alfresco into thinking I have a real node to display what I want.  Then delete the node.  It looks like I will need to create some temporary work nodes.

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

Were you able to develop the custom propertySheetGrid component? Or is there anything already in place to achieve this? I need a custom meta-data entry page, but my meta-data gets loaded from a dabase. I am looking at developing something that does the component generation based on the metadata that I have in my custom Database.

Thanks in advance,
Jerry

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
you could do this, as custom tag. I have experience with custom tags.

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

Could you please give me some inputs on developing a custom tag or tweak <rSmiley TongueropertySheetGrid> tag to display my custom metadata? My metadata is not configured at the model or in web-client-config-custom.xml. Its stored in database and I set them on the content when the content is created and want to display them on some user actions (clciking on a button) on the content. 

Thanks in advance,
Jerry