Sorry, this is in a Jetspeed 2 portal right now.
On Wed, Jan 21, 2009 at 2:13 PM, Rob Sonke <[email protected]> wrote:
> Which portal are you using?
>
> Rob
>
>
>
> Brad Gardner wrote:
>
>> I'm having difficulty getting the DatePicker from the wicket-extensions
>> project working inside of my portlet. I've been working off of the dates
>> example from the Wicket Examples Application(which works fine inside of a
>> portlet) and my code is almost identical to the working code from the
>> example. When I display the page, the DateTextField shows up on the
>> screen,
>> but no calendar icon to bring up the calendar window. I've ran my code
>> and
>> the example code side by side, and the image url in the source looks
>> identical as well, except for using different filter paths(which are
>> configured in the same way).
>>
>> Here is the code to load the date picker:
>>
>> DateTextField dateTextField = new DateTextField("dateTextField", new
>> PropertyModel(this, "date"),
>> new StyleDateConverter("S-", true));
>> TextField titleField = new TextField("title", new
>> PropertyModel(this, "title"));
>> TextArea textField = new TextArea("text", new PropertyModel(this,
>> "text"));
>>
>> Form form = new Form("editForm")
>> {
>> /**
>> * @see org.apache.wicket.markup.html.form.Form#onSubmit()
>> */
>> @Override
>> protected void onSubmit()
>> {
>> getDataConnection().addNewsItem(title, text);
>>
>> Page next = new EditPage();
>> setResponsePage(next);
>> }// end method onSubmit
>> };
>>
>> add(form);
>>
>> * form.add(titleField);
>> form.add(textField);
>> form.add(dateTextField);
>> dateTextField.add(new DatePicker());
>> *
>>
>>
>> And here is my relevant HTML form:
>>
>> <form wicket:id="editForm">
>> <p>Title</p>
>> <input type="text" wicket:id="title" />
>> <br />
>> <p>Text</p>
>> <textarea cols=40 rows=10 wicket:id="text" ></textarea>
>> <br />
>> *<p>Date</p>
>> <input type="text" wicket:id="dateTextField" />*
>> <br />
>> <input type="submit" value="Submit" />
>> </form>
>>
>>
>> Does anyone see anything that I am missing here?
>>
>>
>>
>
--
Brad Gardner