cancel
Showing results for 
Search instead for 
Did you mean: 

2.9b content rule creation problems

kentons
Champ in-the-making
Champ in-the-making
Hi I'm encountering a couple of problems relating to content rules.

1. When using Firefox (3.0b2, yes it is Beta so this may not be widespread) to create a simple workflow rule I can't get it to show me any folders when I click on "Click here to select the destination". It just has the rotating arrows infinitely until I click cancel.
2. So I tried it in IE7. I can select the destination, however there are errors showing on the page and the "OK" button is always greyed out. Here is the text of the error from IE:

Line: 45
Char: 1
Error: Object required
Code:0
URL: http://myip:8080/alfresco/faces/jsp/wizard/container.jsp

This error pops up as soon as I enter code into the "Name for approve step" box. If I select a directory after giving it the name, I get this error:

Line: 45
Char: 1
Error: Object required
Code:0
URL: http://myip:8080/alfresco/faces/jsp/actions/simple-workflow.jsp

Any thoughts? Other rules seem to work, although I haven't tried them all, but I was able to create a versioning rule.

Thanks,
Kenton
7 REPLIES 7

shoshin
Champ in-the-making
Champ in-the-making
In my first investigation it seems like a bug after alfresco move from space selector component to ajax selector component.
The temporary solution to this is
change the disabled property value from "true" to the following

<h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addAction}"
styleClass="wizardButton" disabled="#{WizardManager.bean.actionProperties.approveFolder == null}" />



in the simple-workflow.jsp residing in alfresco\jsp\actions\ folder.
Hey! Hang on! This is a stop gap approach to the hole solution and not the final one.

After editing juz refresh the same.

Hope this resolves your problem

Cheers!
Shoshin

kevinr
Star Contributor
Star Contributor
I think those issues have all been fixed in more recent builds. If you can try a nightly build to confirm that would be great.

Thanks,

Kevin

jtsaitw
Champ in-the-making
Champ in-the-making
Hi,  I am using 2.9b community version and have same problem.

I can not add a simple workflow to a space (e.g. "Drafts"), because of the "OK" button is always greyed out.

if anyone know how to fix it? please show me howto !!!

Thanks,
Jtsaitw

kevinr
Star Contributor
Star Contributor
This has been fixed in recent codeline. You will need to take a nightly build to get the fix until our next release. You can patch in the files from the nightly build into your existing Alfresco if you prefer.

Kevin

jtsaitw
Champ in-the-making
Champ in-the-making
Thanks to Kevin
I am newly in Alfresco, and I don't know how to patch the bug to my Alfresco program.

I tried the way that Shoshin showed  above, but get errors :

/****************
javax.faces.FacesException: Exception in JSP: /jsp/actions/simple-workflow.jsp:55

52: {
53: <%–
54: –%>
55: document.getElementById("simple-workflow-actionSmiley Surprisedk-button").disabled = <h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addAction}" styleClass="wizardButton" disabled="#{WizardManager.bean.actionProperties.approveFolder == null}" />;
56: }
57: else
58: {


Stacktrace:
caused by:
org.apache.jasper.JasperException: Exception in JSP: /jsp/actions/simple-workflow.jsp:55
******************************/

Can you  please tell my how to patch my system?

Thanks
Jtsaitw

jtsaitw
Champ in-the-making
Champ in-the-making
My Alfresco bug is fixed !!
modify the file   " alfresco\jsp\actions\simple-workflow.jsp"
at  line 261 :

<td align="center">
<%–
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addAction}"
styleClass="wizardButton" disabled="true" />
–%>
<h:commandButton id="ok-button" value="#{msg.ok}" action="#{WizardManager.bean.addAction}"
styleClass="wizardButton" disabled="#{WizardManager.bean.actionProperties.approveFolder == null}" />
</td>

and it works !!

Thanks to Kevin  & Shoshin

jtsaitw

galiyosha
Champ in-the-making
Champ in-the-making