[rules-dev] Attach custom editor on guided decision table cell

Michael Anstis michael.anstis at gmail.com
Thu Jan 27 04:29:51 EST 2011


I've been thinking.... a dangerous activity ;)

It might be possible to write a custom pop-up cell editor that embeds an
IFRAME and displays your JSP.

You'd need to scrape the final "formula" from the JSP and populate the
CellValue value property with the completed expression.

You might have issues with cross-site scripting, as I assume your JSP will
be on a different domain.

It'd be interesting to post any experience back to help refine what we have.

Thanks,

Mike

On 25 January 2011 17:47, gomodus <gaurav_x105 at yahoo.com> wrote:

>
> An example: we have an Action column called "Calculation formula". When a
> user adds a new row to the decision table, s/he should be able to specify a
> cell value for "Calculation formula" action column using a custom formula /
> expression editor we intend to build. This editor will allow user to click
> a
> few elements to build a valid formula without typing (which is error
> prone).
> The formula / expression editor is implemented using is a JSP that has a
> URL.
>
> Now, the question is that we would like to associate the Custom editor JSP
> URL with the Action column. In an ideal world, we would specify this URL at
> the time of defining the Action column using the configuration dialog that
> shows elements like "Fact", "Field", "Column Header", "Default Value" etc
>
> Is there a better or alternative way of achieving this?
>
> Thanks
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Attach-custom-editor-on-guided-decision-table-cell-tp2279477p2332310.html
> Sent from the Drools - Dev mailing list archive at Nabble.com.
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110127/716b870f/attachment.html 


More information about the rules-dev mailing list