cancel
Showing results for 
Search instead for 
Did you mean: 

Replace r:propertySheetGrid

zg0571
Champ in-the-making
Champ in-the-making
Hello
I've seen the wiki:http://wiki.alfresco.com/wiki/PropertySheetand try to custom the attribute interface. I want to know  if 
"<rSmiley Tongueroperty name="name" />"
could replace by
"<hSmiley SurprisedutputText value="Name" />
<h:inputText value="#{node.properties.name}" />"
in my custom workflow? And How to write the text value rightly?I'm sorry my English. :lol:
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
Yes you can do what you suggest but you'll lose most of the benefits of the property sheet. Using rSmiley Tongueroperty will pick the appropriate input control for the datatype, it also takes into consideration any constraints applied to the property in the model.

If you have a custom workflow you would have to have created a model definition for your task, the property sheet configuration can be used to handle any custom properties you have. Or is there a specific reason why you don't want to do this.

Maybe if you can give me an overview of what you're trying to achieve I can help further.

zg0571
Champ in-the-making
Champ in-the-making
Thanks gavinc.
   Now I have customed a workflow for my project which  have many attributes.It means I must custom the interface.Becayse the layout of each line(each line may have more than one properties) and the sizes of the textfields  are different. 
Is there any other way to do it?

gavinc
Champ in-the-making
Champ in-the-making
It's probably not exactly what you want but you can change the number of columns the property sheet uses so you can have 2 columns of properties.

However, the columns will still force all the fields to be the same size.

To do this you just change the 'columns' attribute on the propertysheet tag to 2 i.e.

<r:propertySheetGrid id="task-props" value="#{DialogManager.bean.taskNode}"
                       var="taskProps" columns="2" externalConfig="true" />

If you want ultimate control over the layout of that page I'd suggest just using the standard JSF components rather than the property sheet.