# Custom Wicket Editor Component

**URL:** <https://forum.inductiveautomation.com/t/custom-wicket-editor-component/20058>\
**Category:** Module Development\
**Created:** [October 9, 2018, 11:18pm UTC](https://forum.inductiveautomation.com/t/custom-wicket-editor-component/20058 "2018-10-09T23:18:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [October 9, 2018, 11:18pm UTC](https://forum.inductiveautomation.com/t/custom-wicket-editor-component/20058/1 "2018-10-09T23:18:36Z")

</div>

I’m trying to create a custom web (wicket) text area editor component.  
I’ve created 3 files: TextAreaEditor.java, TextAreaEditor.html, and TextAreaEditorSource.java.  
These are all in the same package (TextAreaEditor.html is in the src/main/resources folder).

I have a settings page that extends PersistentRecord, and have added the following:

```auto
public static final StringField TestDataField = new StringField(META, "Data");
static final Category Settings = new Category("TestProfileSettings.Category.Settings", 1).include(TestDataField);

static {
    TestDataField.getFormMeta().setEditorSource(TextAreaEditorSource.getSharedInstance());
}

```

I can build and install the module with no errors, but no editor shows up for the Data Field in the web gui.  
If I don’t call setEditorSource(), or import TextAreaEditorSource from the gateway-api package instead of my custom package, it works fine.  
My guess is that TextAreaEditor.html isn’t being loaded (but I’m new to wicket so don’t really know - it is included in the compiled .jar though).  
Is there any other step I’m missing?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 10, 2018, 1:46am UTC](https://forum.inductiveautomation.com/t/custom-wicket-editor-component/20058/2 "2018-10-10T01:46:14Z")

</div>

Try putting TextAreaEditor.html in the same src folder as your TextAreaEditor.java. This is what is needed my Ant builds. I suspect it is the same for maven.

---

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [October 10, 2018, 3:55am UTC](https://forum.inductiveautomation.com/t/custom-wicket-editor-component/20058/3 "2018-10-10T03:55:02Z")

</div>

I moved it in with the java source file but it’s just the same.  
The name and description show up on the PersistentRecord settings page, but no text area editor.
