<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">OK after jumping through some hoops to get development mode working, I found the problem. Class org.drools.guvnor.client.modeldriven.ui.ActionValueEditor has a method showTypeChoice(Widget w) which has a variable (FactPattern factPattern) used in an if-clause without a null check. The variable was coming back null and blowing up with a NPE, hence the icon didn't work.<br><br>I noticed things are uneven in the code regarding null-checks by callers of the function org.drools.ide.common.client.modeldriven.brl.RuleModel.getBoundFact(final String var) - might be something to look at.<br><br>--- On <b>Fri, 9/17/10, Scott Mayne <i>&lt;smayne@webfinancialsolutions.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Scott Mayne &lt;smayne@webfinancialsolutions.com&gt;<br>Subject:
 [rules-users] Guvnor 5.1: Pencil icon not clickable in BRL editor‏<br>To: rules-users@lists.jboss.org<br>Date: Friday, September 17, 2010, 1:47 PM<br><br><div id="yiv2012538971"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
<div id="yiv2012538971ecxyiv1469138571">
<table class="yiv2012538971ecxyiv1469138571" id="yiv2012538971ecxyiv1469138571bodyDrftID" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv2012538971ecxyiv1469138571drftMsgContent" style="font-size: 10pt; font-family: arial;">
<div id="yiv2012538971ecxyiv1469138571yiv1280050447">
<table class="yiv2012538971ecxyiv1469138571yiv1280050447" id="yiv2012538971ecxyiv1469138571yiv1280050447bodyDrftID" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv2012538971ecxyiv1469138571yiv1280050447drftMsgContent" style="font-size: 10pt; font-family: arial;">
<div id="yiv2012538971ecxyiv1469138571yiv1280050447yiv738922534"><table class="yiv2012538971ecxyiv1469138571yiv1280050447yiv738922534" id="yiv2012538971ecxyiv1469138571yiv1280050447yiv738922534bodyDrftID" style="width: 509px; height: 592px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv2012538971ecxyiv1469138571yiv1280050447yiv738922534drftMsgContent" style="font-size: 10pt; font-family: arial;">Hi all,<br><br>I'm reading Paul 
Browne's "JBoss Drools Business Rules" and in Ch. 5 we make a BRL in the guided 
editor. We're using a simple fact model with a single class (Sales) which has 
(among others) a field "sales", type long. The book uses an earlier version of 
Guvnor so things look a little different but everything's worked so far, until I 
use the editor to make a rule that looks like this in "view source":<br><br>rule 
"SalesDiscount"<br>&nbsp; dialect "mvel"<br>&nbsp; when<br>&nbsp;&nbsp;&nbsp; mySales : Sales( salesValue 
: sales &gt;= "100" )<br>&nbsp; then<br>&nbsp;&nbsp;&nbsp; mySales.setSales( salesValue-10 );<br>&nbsp;&nbsp;&nbsp; 
update( mySales );<br>end<br><br>When I try it out, I get this line in the THEN 
section<br><br>"1.&nbsp; Modify value of Sales [mySales]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sales [pencil icon] [remove icon]<br><br>but neither "sales" nor the pencil icon is clickable, so I can't enter what it should change to. When click view source using what I could do I 
get:<br><br>rule "SalesDiscount"<br>&nbsp; dialect "mvel"<br>&nbsp; when<br>&nbsp;&nbsp;&nbsp; mySales : 
Sales( salesValue : sales &gt;= "100" )<br>&nbsp; then<br>&nbsp;&nbsp;&nbsp; mySales.setSales( 
);<br>&nbsp;&nbsp;&nbsp; mySales.setWait( );<br>&nbsp;&nbsp;&nbsp; update( mySales );<br>end<br><br>[I added 
the "wait" because the modify field dropdown has this as an option but it's not 
in the Java class and I'm not sure where it came from.]<br><br>Can anyone shed light on this behavior? I'm using the latest version of Firefox, compiling 
with GWT/building my own EAR (though I haven't done any code changes) using RAD 
7.5.5.1 (based on Eclipse 3.4), and am running Guvnor on 
WebSphere.<br></td></tr></tbody></table></div></td></tr></tbody></table></div></td></tr></tbody></table></div></td></tr></tbody></table></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></td></tr></table>