Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread kurt heston
Thanks for the suggestions.  We needn't bend Wicket to the will of Adobe 
just yet...


I've spent most of today cobbling together a wicket form generator that 
uses the fillable fields in my PDFs as schematic.  It's clunky, but has 
helped me to "html-form-ify" the fields on a few of these old forms 
already.  I'm then using the data I collect within the Wicket html-form 
to fill the PDF form.  The PDF will remain the final destination for the 
data, it just won't be the source.  This way, Acrobat needs only to be 
used to print the final output.  Thus, my consumers get the 
pretty-printed forms they want and I get to avoid kludging a way to make 
a PDF submit work well.  This, not to mention the fact that disparate 
Acrobat versions on my consumers' PCs was wreaking havoc on me.


I may already be doing it in the simplest way possible.  In the end, I'd 
really like to get away from the Acrobat post anyway, so this may all be 
moot.


Johan Compagner wrote:

a POST request can be handled fine as long as it isn't a multiplart.
Because PageParameters can't handle that therefor we need a real form 
component

where all the multipart handling code is in.

For this we need something like a BookmarkableForm i will try to look 
at this after 1.2
So that you can post to a bookmarkable url that creates the page and 
then when it is created
it calls the form.submit. This way you could have stateless pages with 
forms. Only thing
is that ofcoure the form state is not kept in the session so you can 
alter behaviour between request
But this works fine for search boxes, login forms on top of a page or 
things like that.


johan


On 4/13/06, *Timo Stamm* < [EMAIL PROTECTED] 
> wrote:


Johan Compagner schrieb:
> you where talking about the PageParameters object so i thought
you where
> talking about inbound stuff.
> Then every parameters will be in it.
>
> Ofcourse no multipart stuff and ofcourse outbound only what can
be presented
> in a simple string can be added.

Ok, so it doesn't work. That was a misunderstanding. We are talking
about integrating wicket with other apps. For example Acrobat,
which can
send POST data (no URL parameters) from a form.


> That seems logical to me

Yes, it is. But on the other hand there might be a need to integrate a
legacy app with wicket that requires that a POST request is handled.

Kurt is using a servlet to handle that request, and redirects to a
bookmarkable wicket page. I thought about how Wicket could handle this
directly, without a servlet in between, and PageParameters came
into my
mind.


Timo



> On 4/13/06, Timo Stamm < [EMAIL PROTECTED]
> wrote:
>> Johan Compagner schrieb:
>>> PageParametes will contain post params..
>> This comment by Martijn Dashorst sounds different:
>>
>> | A note to the article: you can't use the PageParameters for types
>> | other than simple types such as Strings and Integers. [...]
>> |
>> | The bookmarkable links and PageParameters are used for things
that
>> | need to be bookmarkable.
>>
>> http://www.javalobby.org/java/forums/m91985755.html
>>
>>
>> Only URLs with simple urlencoded parameters are bookmarkable.
You can't
>> bookmark a POST request.
>>
>>
>> The API doc says:
>> | Page parameters in HTTP are query string values in the
request URL.
>>
>>
>> Johan, are you sure that multipart POST requests are supported?
>>
>>
>> Timo
>>
>>
>>
>>
>>
>>> So if for example you post to a bookmarkable page then
PageParameters
>> should
>>> be filled with everything.
>>>
>>> johan
>>>
>>> On 4/13/06, Timo Stamm <[EMAIL PROTECTED]
> wrote:
 kurt heston schrieb:
> I could probably extend one of the core wicket
> classes instead of HttpServlet and arrive at the same place,
though
>> I'm
> not sure it would be any more elegant.
 A thought: Maybe PageParameters should be available for POST
requests
>> as
 well.

 I don't know if it possible for a framework-client to handle
requests
>> at
 the required level...


 Timo


> Thanks for the help.
>
> Timo Stamm wrote:
>> kurt heston schrieb:
>>> I've got some legacy PDFs laying around that utilize the
HTTP submit
>>> functionality available when using Acrobat fillable
forms.  The
>>> servlet I have answering these Acrobat requests saves off
the field
>>> names and values submitted in a 3 column table (rec id,
field name,
>>> value).  We change the forms and add fields pretty
often.  Later,
>>> when a view of the filled form is requested, I fil

[Wicket-user] question on autolinking

2006-04-13 Thread Michael Day
I've tried two different methods of auto-linking.  One is  
getMarkupSettings().setAutoLinking(true);  The other is by wrapping  
my anchors in .  Both methods work fine for linking, but  
when you go to the linked page, the links become disabled (anchors  
are replaced with ).  How can I prevent this behavior?  I don't  
think there are any configuration options for it.


By the way, does setAutoLinking(true) have any serious performance  
implications?


Thanks,
Michael Day


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Question on adding CheckBox to DataTable

2006-04-13 Thread Igor Vaynberg
if you want to do a roundtrip to the server then set the model object to Boolean.FALSE in all the models of checkboxesif you dont want roundtrip you have to use _javascript_.or alternatively take a look at CheckGroup/Check/CheckGroupSelector. CheckGroupSelector toggles all Check components in the CheckGroup via _javascript_.
-IgorOn 4/13/06, Adit <[EMAIL PROTECTED]> wrote:
Igor Vaynberg  gmail.com> writes:>>> it would help if we knew what the exception and stacktrace was :)-Igor>> On 4/13/06, Aditya Patel <
> email_to_aditya  yahoo.com> wrote:> I am using datatable view with pagination and sorting to display a list. I amtrying to add a checkbox to the datatable but I keep getting Runtime exception.
Below is my code and I would greatly appreciate if someone can point out theproblem:> Event.htmlclass="dataview" cellspacing="0" wicket:id="table">[table]
> Event.javapublic EventIndexPage() {add(new HeaderPanel("headerPanel"));IModel formModel = newCompoundPropertyModel(new EventDetachableModel(new
>  Event()));FeedbackPanel feedback = new FeedbackPanel("feedback");add(new NewListForm(feedback, formModel));add(feedback);add(new EventNavigationBorder("eventNavigationBorder"));
> add(new EventNavigationPanel("eventNavigationPanel"));}private class NewListForm extends Form {public NewListForm(IFeedbackfeedback, IModel model) {super("form", model);
> final List columns = new ArrayList();//AbstractColumn implements>  IColumncolumns.add(new AbstractColumn(new Model("Actions")){public void populateItem(Item cellItem, String
componentId, IModel model){> cellItem.add(new ActionPanel(componentId, model,cellItem));}});columns.add(newPropertyColumn(new Model("Id"), "eventId", "eventId"));
> columns.add(new PropertyColumn(new Model("Event Description"),>  "description", "description"));columns.add(new PropertyColumn(newModel("Start Date"), "startDate", "startDate"));
columns.add(newPropertyColumn(new Model("End Date"), "endDate"));> add(new DefaultDataTable("table", columns, newEventSortableDataProvider(), 8));});}}
class ActionPanel extends Panel> {public ActionPanel(String id, final IModel model, final Itemitem){>  super(id, model);add(new CheckBox("checkbox",
item.getModel()));}}}Event$ActionPanel.htmltype="checkbox" wicked:id="checkbox" />> Thanks>
> __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around> http://mail.yahoo.com>>
>>>I modifed the code and I can display the checkbox. I have a remove buttonthat will remove all the checked events. How can I get the checked events fromthe dataTable object?Event.java
public Event() {FeedbackPanel feedback = new FeedbackPanel("feedback");add(new NewListForm(feedback));add(feedback);
}private class NewListForm extends Form {public NewListForm(IFeedback feedback) {super("form");final List columns = new ArrayList();
columns.add(new PropertyColumn(new Model("Id"), "eventId", "eventId"));columns.add(new PropertyColumn(new Model("Event Description"), "description",
"description"));columns.add(new PropertyColumn(new Model("Start Date"), "startDate","startDate"));columns.add(new PropertyColumn(new Model("End Date"), "endDate"));
columns.add(new AbstractColumn(new Model("Selected")){public void populateItem(Item cellItem, String componentId, IModel model)
{cellItem.add(new ActionPanel(componentId, model, cellItem));}
});EventsPage.this.table = new DefaultDataTable("table", columns, newEventSortableDataProvider(), 8);add(
EventsPage.this.table);add(new Button("removeEvent") {@Overridepublic void onSubmit() {//How will I get the selected rows?
setResponsePage(new EventsPage("Removed the Selected Events"));}});}}
class ActionPanel extends Pane

[Wicket-user] Re: Question on adding CheckBox to DataTable

2006-04-13 Thread Adit
Igor Vaynberg  gmail.com> writes:

> 
> 
> it would help if we knew what the exception and stacktrace was :)-Igor
> 
> On 4/13/06, Aditya Patel <
> email_to_aditya  yahoo.com> wrote:
> I am using datatable view with pagination and sorting to display a list. I am
trying to add a checkbox to the datatable but I keep getting Runtime exception.
Below is my code and I would greatly appreciate if someone can point out the
problem:
> Event.html[table]
> Event.javapublic EventIndexPage() {   
add(new HeaderPanel("headerPanel"));IModel formModel = new
CompoundPropertyModel(new EventDetachableModel(new
>  Event()));FeedbackPanel feedback = new FeedbackPanel("feedback");   
add(new NewListForm(feedback, formModel));add(feedback);   
add(new EventNavigationBorder("eventNavigationBorder"));
> add(new EventNavigationPanel("eventNavigationPanel"));}   
private class NewListForm extends Form {public NewListForm(IFeedback
feedback, IModel model) {super("form", model);
> final List columns = new ArrayList();//
AbstractColumn implements
>  IColumncolumns.add(new AbstractColumn(new Model("Actions"))   
{public void populateItem(Item cellItem, String
componentId, IModel model){
> cellItem.add(new ActionPanel(componentId, model,
cellItem));}});columns.add(new
PropertyColumn(new Model("Id"), "eventId", "eventId"));
> columns.add(new PropertyColumn(new Model("Event Description"),
>  "description", "description"));columns.add(new PropertyColumn(new
Model("Start Date"), "startDate", "startDate"));columns.add(new
PropertyColumn(new Model("End Date"), "endDate"));
> add(new DefaultDataTable("table", columns, new
EventSortableDataProvider(), 8));});}}   
class ActionPanel extends Panel
> {public ActionPanel(String id, final IModel model, final Item
item){   
>  super(id, model);add(new CheckBox("checkbox",
item.getModel()));}}}Event$ActionPanel.html
> Thanks
> 
> __Do You Yahoo!?Tired of spam?
 Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> 
> 
> 


I modifed the code and I can display the checkbox. I have a remove button 
that will remove all the checked events. How can I get the checked events from
the dataTable object?

Event.java

public Event() {
FeedbackPanel feedback = new FeedbackPanel("feedback");
add(new NewListForm(feedback));
add(feedback);
}

private class NewListForm extends Form {
public NewListForm(IFeedback feedback) {
super("form");
final List columns = new ArrayList();

columns.add(new PropertyColumn(new Model("Id"), 
"eventId", "eventId"));
columns.add(new PropertyColumn(new Model("Event 
Description"), "description",
"description"));
columns.add(new PropertyColumn(new Model("Start Date"), 
"startDate",
"startDate"));
columns.add(new PropertyColumn(new Model("End Date"), 
"endDate"));
columns.add(new AbstractColumn(new Model("Selected"))
{
public void populateItem(Item 
cellItem, String componentId, IModel model)
{
cellItem.add(new 
ActionPanel(componentId, model, cellItem));
}
});

EventsPage.this.table = new DefaultDataTable("table", 
columns, new
EventSortableDataProvider(), 8);
add(EventsPage.this.table);

add(new Button("removeEvent") {
@Override
public void onSubmit() {
//How will I get the selected rows?
setResponsePage(new EventsPage("Removed 
the Selected Events"));
}
});
}
}

class ActionPanel extends Panel
{
public ActionPanel(String id, final IModel model, final Item 
item)
{
super(id, model);
add(new CheckBox("checked", new AbstractCheckBoxModel() 
{
@Override
 

Re: [Wicket-user] Question on adding CheckBox to DataTable

2006-04-13 Thread Igor Vaynberg
it would help if we knew what the exception and stacktrace was :)-IgorOn 4/13/06, Aditya Patel <
[EMAIL PROTECTED]> wrote:I am using datatable view with pagination and sorting to display a list. I am trying to add a checkbox to the datatable but I keep getting Runtime exception. Below is my code and I would greatly appreciate if someone can point out the problem:
Event.html                            [table]
                Event.java    public EventIndexPage() {        add(new HeaderPanel("headerPanel"));                IModel formModel = new CompoundPropertyModel(new EventDetachableModel(new
 Event()));        FeedbackPanel feedback = new FeedbackPanel("feedback");                add(new NewListForm(feedback, formModel));        add(feedback);        add(new EventNavigationBorder("eventNavigationBorder"));
        add(new EventNavigationPanel("eventNavigationPanel"));    }        private class NewListForm extends Form {        public NewListForm(IFeedback feedback, IModel model) {            super("form", model);
            final List columns = new ArrayList();                // AbstractColumn implements
 IColumn            columns.add(new AbstractColumn(new Model("Actions"))            {                public void populateItem(Item cellItem, String componentId, IModel model)                {
                    cellItem.add(new ActionPanel(componentId, model, cellItem));                }            });            columns.add(new PropertyColumn(new Model("Id"), "eventId", "eventId"));
            columns.add(new PropertyColumn(new Model("Event Description"),
 "description", "description"));            columns.add(new PropertyColumn(new Model("Start Date"), "startDate", "startDate"));            columns.add(new PropertyColumn(new Model("End Date"), "endDate"));
                        add(new DefaultDataTable("table", columns, new EventSortableDataProvider(), 8));                        });        }    }        class ActionPanel extends Panel
    {        public ActionPanel(String id, final IModel model, final Item item)        {   
         super(id, model);            add(new CheckBox("checkbox", item.getModel()));        }    }}Event$ActionPanel.html
Thanks__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[Wicket-user] Possible Enhancement for FormTester

2006-04-13 Thread Ingram Chen
    Currently FormTester only does raw String on request parameters.As http://www.wicket-wiki.org.uk/wiki/index.php/Testing states, selecting value from Component such as RadioGroup, DropDownChoice... etc is pain:
form.setValue("offSiteAccessEnabled", "0:form:offSiteAccessEnabled:Yes");In my team we define a new method like:    select(String path, final int index)
This simplified selection to just an index. The method supports built-in component: AbstractChoice, RadioGroup, and CheckGroup but the implementation rely on reflection heavily.Further, it may require addtional methods such as:

    selectMulti(String path, final int[] indexes)  //for ListMultiChoice and CheckGroupThough I'm not sure that just invoking select()  multiple times is better.I could donate the code if anyone interests this improvement.
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen



Re: [Wicket-user] FormTester and multiple submits

2006-04-13 Thread Ingram Chen
Yes, this is bug/limitation, a better implementation may be:    FormTester(final String path, final Form workingForm, final WicketTester wicketTester, boolean fillBlankString){    //
    workingForm.visitFormComponents(new FormComponent.IVisitor() {    public void formComponent(FormComponent formComponent) {    // donothing for invisible component    if (!formComponent.isVisibleInHierarchy()) {
    return;    }    // not require gahter button value    if (formComponent instanceof Button) {    return;    }
    // if component is text field and do not have exist value, fill    // blank String if required    if (formComponent instanceof AbstractTextComponent) {    if (
Strings.isEmpty(formComponent.getValue())    && fillBlankString) {    tester.getServletRequest().setParameter(    formComponent.getInputName
(), "");    return;    }    }    }    });FormTester should populate blank String only for visible, non-button and TextComponent.
And if AbstractTextComponent already contains value, it should not overwrite as blank String too.On 4/14/06, Gustavo Hexsel <
[EMAIL PROTECTED]> wrote:  I think I've found a bug in FormTester.  Or maybe just a limitation.  When submitting a form you have no way of specifying the button that was actually clicked.  All buttons are marked as pressed, so the form visitor just finds the first one and marks it as the sender.  My suggestion is that FormTester shouldn't add a marker string to buttons, and a new submit(buttonName) method should be created.  I'd submit a formal patch, but I've never used 'patch' and the long weekend starts in an hour :)
  Here's the changes I'm proposing:FormTester(final String path, final Form workingForm, final WicketTester wicketTester, boolean fillBlankString){this.path = path;
this.workingForm = workingForm;this.wicketTester = wicketTester;this.wicketTester.setupRequestAndResponse();if (fillBlankString){
workingForm.visitFormComponents(new FormComponent.IVisitor(){public void formComponent(FormComponent formComponent){if (
formComponent.isEnabled() && !(formComponent instanceof Button)) { // JUST ADDED THE SECOND PARTsetValue(formComponent.getInputName(), "");}
}});}}   And the new submit method (keep the old one!):public void submit(String submitButtonPath) {checkClosed();
try {wicketTester.getServletRequest().setParameter(submitButtonPath, "marker");wicketTester.getServletRequest().setRequestToComponent(workingForm);
wicketTester.processRequestCycle();} finally {closed = true;}}  Seems to have worked for my test cases.
[]s Gus---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen


[Wicket-user] Question on adding CheckBox to DataTable

2006-04-13 Thread Aditya Patel
I am using datatable view with pagination and sorting to display a list. I am trying to add a checkbox to the datatable but I keep getting Runtime exception. Below is my code and I would greatly appreciate if someone can point out the problem:Event.html                            [table]                Event.java    public EventIndexPage() {        add(new HeaderPanel("headerPanel"));                IModel formModel = new CompoundPropertyModel(new EventDetachableModel(new
 Event()));        FeedbackPanel feedback = new FeedbackPanel("feedback");                add(new NewListForm(feedback, formModel));        add(feedback);        add(new EventNavigationBorder("eventNavigationBorder"));        add(new EventNavigationPanel("eventNavigationPanel"));    }        private class NewListForm extends Form {        public NewListForm(IFeedback feedback, IModel model) {            super("form", model);            final List columns = new ArrayList();                // AbstractColumn implements
 IColumn            columns.add(new AbstractColumn(new Model("Actions"))            {                public void populateItem(Item cellItem, String componentId, IModel model)                {                    cellItem.add(new ActionPanel(componentId, model, cellItem));                }            });            columns.add(new PropertyColumn(new Model("Id"), "eventId", "eventId"));            columns.add(new PropertyColumn(new Model("Event Description"),
 "description", "description"));            columns.add(new PropertyColumn(new Model("Start Date"), "startDate", "startDate"));            columns.add(new PropertyColumn(new Model("End Date"), "endDate"));                        add(new DefaultDataTable("table", columns, new EventSortableDataProvider(), 8));                        });        }    }        class ActionPanel extends Panel    {        public ActionPanel(String id, final IModel model, final Item item)        {   
         super(id, model);            add(new CheckBox("checkbox", item.getModel()));        }    }}Event$ActionPanel.htmlThanks__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

[Wicket-user] FormTester and multiple submits

2006-04-13 Thread Gustavo Hexsel
  I think I've found a bug in FormTester.  Or maybe just a limitation.  When 
submitting a form you have no way of specifying the button that was actually 
clicked.  All buttons are marked as pressed, so the form visitor just finds the 
first one and marks it as the sender.  My suggestion is that FormTester 
shouldn't add a marker string to buttons, and a new submit(buttonName) method 
should be created.  I'd submit a formal patch, but I've never used 'patch' and 
the long weekend starts in an hour :)

  Here's the changes I'm proposing:
FormTester(final String path, final Form workingForm, final 
WicketTester wicketTester, boolean fillBlankString)
{
this.path = path;
this.workingForm = workingForm;
this.wicketTester = wicketTester;
this.wicketTester.setupRequestAndResponse();

if (fillBlankString)
{
workingForm.visitFormComponents(new 
FormComponent.IVisitor()
{
public void formComponent(FormComponent 
formComponent)
{
if (formComponent.isEnabled() && 
!(formComponent instanceof Button)) { // JUST ADDED THE SECOND PART 

setValue(formComponent.getInputName(), "");
}
}
});
}
}

   And the new submit method (keep the old one!):
public void submit(String submitButtonPath) {
checkClosed();
try {

wicketTester.getServletRequest().setParameter(submitButtonPath, "marker");

wicketTester.getServletRequest().setRequestToComponent(workingForm);
wicketTester.processRequestCycle();
} finally {
closed = true;
}
}

  Seems to have worked for my test cases.


[]s Gus

   


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket testing page

2006-04-13 Thread Gustavo Hexsel
  I've written a small how-to for testing on wicket.  I'm not that well-versed 
in it (and my native language isn't English :).  If anyone would like to 
review/modify/delete it, it's at 
http://www.wicket-wiki.org.uk/wiki/index.php/Testing

  Thanks for the great framework!

[]s Gus


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: DataTable with Multi Selection

2006-04-13 Thread Igor Vaynberg
the model that the dataprovider generates is available via dataitem.getModel()-IgorOn 4/13/06, Jin Zhu <
[EMAIL PROTECTED]> wrote:Thanks, Igor. That's what I have been trying. However, I had a hard time deciding what model to use. The DataTable's data provider has a model. How can I use that same model when I add my IColumn?
     Jin  Date: Wed, 12 Apr 2006 20:32:19 -0700From: "Igor Vaynberg" To: 
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] DataTable with Multi Selection
Reply-To: wicket-user@lists.sourceforge.net--=_Part_12441_2564.1144899139219
Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableContent-Disposition: inlinesure, just put the table in the form and create an IColumn that adds a
panel/fragment with a checkbox in it.-IgorOn 4/12/06, Jin Zhu wrote:>> Hi,>> I
 am trying to use DataTable to provide multiple row selection. The row> selections will be recorded and processed when the form is submitted. Wha=
t's> the best way of doing this? Or is it possible at all?>> In general, can each row of the DataTable be rendered as a check box for> any boolean value of the model?>
> Thanks,> Jin>
		Yahoo! Messenger with Voice. 
Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.



[Wicket-user] Re: DataTable with Multi Selection

2006-04-13 Thread Jin Zhu
Thanks, Igor. That's what I have been trying. However, I had a hard time deciding what model to use. The DataTable's data provider has a model. How can I use that same model when I add my IColumn?     Jin  Date: Wed, 12 Apr 2006 20:32:19 -0700From: "Igor Vaynberg" <[EMAIL PROTECTED]>To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] DataTable with Multi SelectionReply-To: wicket-user@lists.sourceforge.net--=_Part_12441_2564.1144899139219Content-Type: text/plain; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableContent-Disposition: inlinesure, just put the table in the form and create an IColumn that adds apanel/fragment with a checkbox in it.-IgorOn 4/12/06, Jin Zhu <[EMAIL PROTECTED]>wrote:>> Hi,>> I
 am trying to use DataTable to provide multiple row selection. The row> selections will be recorded and processed when the form is submitted. Wha=t's> the best way of doing this? Or is it possible at all?>> In general, can each row of the DataTable be rendered as a check box for> any boolean value of the model?>> Thanks,> Jin>
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

Re: [Wicket-user] contrib vs extensions

2006-04-13 Thread Rüdiger Schulz
ok, thanks for pointing that out :)

happy eastern to all,

Rüdiger

Juergen Donnerstag wrote on 13.04.2006 at 15:23:

> Extensions are part of the Wicket project and maintained by Wickets
> core developers. Contrib projects are part of wicket-stuff which has
> much relaxed contribution rules and contrib projects are usually not
> maintained by core developers. The Wicket team does not feel
> responsible for the content of the contrib projects. And they are not
> 1.2 specifc or whatever. Having said that, some features find there
> way from contrib to extension or core and on the way while more users
> are using it, it gets modified and situations like yours arise. I
> know, it doesn't solve your problem, but may be explains the situation
> a bit.

> Juergen



-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] contrib vs extensions

2006-04-13 Thread Igor Vaynberg
you have to implement your own extensions IColumn that adds a checkbox.-IgorOn 4/13/06, Rüdiger Schulz <
[EMAIL PROTECTED]> wrote:Hello list,I'm currently building an application using Wicket 
1.1.1 andHibernate3. I found some very helpful classes in the wicket-extensions1.1.1 and especially in the contrib packages data anddata-hibernate-3.0 (downloaded via CVS).I already had success displaying a data-table using a DataView and a
HibernateDataProvider. Now I wanted to try this with a DataTable.But now I see that there are some classes in contrib, which are also inextensions, but different packages, like IColumn and its children. Am
I right that I cannot use the the columns (CheckboxColumns etc.) fromcontrib-data with the DataTable from extensions? I'm pretty sure I'llstumble over a ClassCastException here, because DataTable expects a
List of wicket.extensions.markup.html.repeater.data.table.IColumn, andCheckboxColumn implements wicket.contrib.data.model.bind.IColumn...Then - how can I use these Columns from contrib-data? Or are thecontrib packages all meant for the upcoming wicket 
1.2 (never triedthis one yet)?--greetings from Berlin,Rüdiger Schulz---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-04-13 Thread Dipu



yeah , thats right, its working for me as well once 
i updted my wicket source tree from the svn trunk.
Thank verymuch Juergen.
 
Cheers 
Dipu
 
 
- Original Message - 
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, April 13, 2006 4:12 PM
Subject: Re: [Wicket-user] Problem migrating the 
application to the new version of Wicket.
I tested it with current SVN TRUNK and I do not get an exception. 
Itworks for Home.html and index.html. May be it is already 
fixed.JuergenOn 4/13/06, Dipu <[EMAIL PROTECTED]> 
wrote:>> Hi Juergen,>> Sorry for the late reply. I 
am atttaching the files where you can see the> problem i 
experienced.>> If you configure the home page to be Home.class 
instead of Index.class every> hitng works normally.> As i 
mentioned in the hom.class i have added a panel with the js file> 
refernce.>> Thanks> 
Dipu>> - Original Message 
-> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>> To: > Sent: Monday, April 03, 2006 5:57 PM> Subject: Re: 
[Wicket-user] Problem migrating the application to the new> version of 
Wicket.>>> You may send me the files (or the unit test) and 
I'll check it.>> Juergen>> On 4/3/06, Dipu 
<[EMAIL PROTECTED]> wrote:> 
>> > I have a scenario like this> >> > Base 
Page> >    |> >   V> > 
Intermidiate Page> >    |> >   
V> > My Page> >> > and i have defined markup for 
the pages respectively.> >> > I have got some _javascript_ 
references and the style sheet references in> the> > Base Page 
which is used accross the applicatiion.> > and in the mark up those 
references are defined with in the wicket:head> > tags.> 
>> > When i try to add some additional _javascript_ reference in 
MyPage which is> > specific to the  MyPage> > I get the 
wicket.markup.MarkupException: saying that the same wicket:id as> > 
another component already added at the same level.> >> 
>> > At the same time if create a seperate panel and add just the 
_javascript_> > reference inside the panel and add the panel in the 
MyPage it works> sweetly.> > I really wonder if am doing 
anything wrong or if it has got any thing to> do> > with the 
latest version of the wicket.> >> > It used to work for me 
when i was using the older version, this problem> > started showing up 
when i started using the latest code.> > I am using the code from the 
SVN trunk.> >> > Cheers> > Dipu> 
>> >> >> >> >> >> 
>> >> >> >> >> >> 
> - Original Message -> > From: "Juergen Donnerstag" 
<[EMAIL PROTECTED]>> > To: > > Sent: Friday, March 31, 2006 11:53 AM> > 
Subject: Re: [Wicket-user] Problem migrating the application to the new> 
> version of Wicket.> >> >> > >I stepped 
through the code and its clearly  trying to add the> > component 
with the id >"flightSearchResultValidation" for a seconf> > time 
and that is why its breaking.> > >But as far as i can see i am 
adding it only once in my java code.> > > add( new> 
>> 
_javascript_Reference("flightSearchResultValidation",searchResultValidations()));> 
>> > when you stepped through already and assuming you are using an 
IDE,> > than it is easy to walk up the stack and identify where it 
gets added> > (and where the second time). In eclipse go to the debug 
view and when> > stopped at the breakpoint the "Debug" view shows the 
stack trace. In> > that view just click on the previous method and 
eclipse will position> > the java editor appropriately.> 
>> > Juergen> >> >> > On 3/31/06, 
Dipu <[EMAIL PROTECTED]> wrote:> 
> >> > > Yes i am using markup inheritance, my base doesn't 
have the same header.> > >> > > header in my base mark 
up> > > > > > > > > 
href="">> > > > > > href="">> 
> > > > 
> > > > 
> > >> > > Header in the extender 
mark up> > > > > > > > 
>> > > > > 
>> > > I stepped through the code and its clearly  trying 
to add the component> > with> > > the id 
"flightSearchResultValidation" for a seconf time and that is why> > 
its> > > breaking.> > > But as far as i can see i am 
adding it only once in my java code.> > >  add( new> 
> >> >> 
_javascript_Reference("flightSearchResultValidation",searchResultValidations()));> 
> >> > > Has this got any thing to do with the version of the 
code i am using> right> > > now or am i doing something in 
the wrong way.> > >> > > Thanks> > 
>> > > Dipu> > >> > >> > 
>> > >> > >> > > - Original 
Message -> > > From: "Juergen Donnerstag" <[EMAIL PROTECTED]>> > > To: > > >> > > Sent: Friday, March 31, 2006 
11:07 AM> > > Subject: Re: [Wicket-user] Problem migrating the 
application to the new> > > version of Wicket.> > 
>> > >> > > You are using markup inheritance 
(wicket:extend). With markup> > > inheritance the markups are 
merged. Until recently the header regions> > > were merged into a 
single  only and that might cause your> > > 
problem. Does your base markup have the same header? I'd be> > > 
interesting to see if the latest (s

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-04-13 Thread Juergen Donnerstag
I tested it with current SVN TRUNK and I do not get an exception. It
works for Home.html and index.html. May be it is already fixed.

Juergen

On 4/13/06, Dipu <[EMAIL PROTECTED]> wrote:
>
> Hi Juergen,
>
> Sorry for the late reply. I am atttaching the files where you can see the
> problem i experienced.
>
> If you configure the home page to be Home.class instead of Index.class every
> hitng works normally.
> As i mentioned in the hom.class i have added a panel with the js file
> refernce.
>
> Thanks
> Dipu
>
>
>
>
>
> - Original Message -
> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, April 03, 2006 5:57 PM
> Subject: Re: [Wicket-user] Problem migrating the application to the new
> version of Wicket.
>
>
> You may send me the files (or the unit test) and I'll check it.
>
> Juergen
>
> On 4/3/06, Dipu <[EMAIL PROTECTED]> wrote:
> >
> > I have a scenario like this
> >
> > Base Page
> >|
> >   V
> > Intermidiate Page
> >|
> >   V
> > My Page
> >
> > and i have defined markup for the pages respectively.
> >
> > I have got some javascript references and the style sheet references in
> the
> > Base Page which is used accross the applicatiion.
> > and in the mark up those references are defined with in the wicket:head
> > tags.
> >
> > When i try to add some additional java script reference in MyPage which is
> > specific to the  MyPage
> > I get the wicket.markup.MarkupException: saying that the same wicket:id as
> > another component already added at the same level.
> >
> >
> > At the same time if create a seperate panel and add just the javascript
> > reference inside the panel and add the panel in the MyPage it works
> sweetly.
> > I really wonder if am doing anything wrong or if it has got any thing to
> do
> > with the latest version of the wicket.
> >
> > It used to work for me when i was using the older version, this problem
> > started showing up when i started using the latest code.
> > I am using the code from the SVN trunk.
> >
> > Cheers
> > Dipu
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Friday, March 31, 2006 11:53 AM
> > Subject: Re: [Wicket-user] Problem migrating the application to the new
> > version of Wicket.
> >
> >
> > >I stepped through the code and its clearly  trying to add the
> > component with the id >"flightSearchResultValidation" for a seconf
> > time and that is why its breaking.
> > >But as far as i can see i am adding it only once in my java code.
> > > add( new
> >
> JavaScriptReference("flightSearchResultValidation",searchResultValidations()));
> >
> > when you stepped through already and assuming you are using an IDE,
> > than it is easy to walk up the stack and identify where it gets added
> > (and where the second time). In eclipse go to the debug view and when
> > stopped at the breakpoint the "Debug" view shows the stack trace. In
> > that view just click on the previous method and eclipse will position
> > the java editor appropriately.
> >
> > Juergen
> >
> >
> > On 3/31/06, Dipu <[EMAIL PROTECTED]> wrote:
> > >
> > > Yes i am using markup inheritance, my base doesn't have the same header.
> > >
> > > header in my base mark up
> > > 
> > >  > > href="main.css">
> > >  > > href="form.css">
> > > 
> > > 
> > > 
> > >
> > > Header in the extender mark up
> > > 
> > >  > >
> > > 
> > >
> > > I stepped through the code and its clearly  trying to add the component
> > with
> > > the id "flightSearchResultValidation" for a seconf time and that is why
> > its
> > > breaking.
> > > But as far as i can see i am adding it only once in my java code.
> > >  add( new
> > >
> >
> JavaScriptReference("flightSearchResultValidation",searchResultValidations()));
> > >
> > > Has this got any thing to do with the version of the code i am using
> right
> > > now or am i doing something in the wrong way.
> > >
> > > Thanks
> > >
> > > Dipu
> > >
> > >
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> > > To: 
> > >
> > > Sent: Friday, March 31, 2006 11:07 AM
> > > Subject: Re: [Wicket-user] Problem migrating the application to the new
> > > version of Wicket.
> > >
> > >
> > > You are using markup inheritance (wicket:extend). With markup
> > > inheritance the markups are merged. Until recently the header regions
> > > were merged into a single  only and that might cause your
> > > problem. Does your base markup have the same header? I'd be
> > > interesting to see if the latest (svn trunk/cvs head) version solves
> > > that issue. The lastest version doesn't merge the 
> > > contents (body) only, it merges the  tags as well, and
> > > hence keeping them separate.
> > >
> > > Juergen
> > >
> > > On 3/31/06, Dipu <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi Juergen
> > > >
> > > > Thanks for the quick reply,
> > > > Yes the message clearly says that i have multiple wicket id's with the
> > 

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-13 Thread Matej Knopp



Johan Compagner wrote:

can you send me the wicket-ajax.js file that you use?
So that i have exactly the right version?

johan


On 4/12/06, *Matej Knopp* < [EMAIL PROTECTED] > wrote:

Hi, I made some changes, this really helps, at least it works for me:

// AJAX FUNCTIONS
function wicketAjaxCreateTransport() {
 var transport = null;
 if (window.XMLHttpRequest) {
 transport = new XMLHttpRequest();
 } else {
 if (window.ActiveXObject ) {
 transport = new ActiveXObject("Microsoft.XMLHTTP");
 }
 }

 if (transport==null&&wicketAjaxDebugEnabled()) {
 var log=WicketAjaxDebug.logError;
 log("Could not locate ajax transport. Your browser does not
support the required XMLHttpRequest object or wicket could not gain
access to it.");
 }
 return transport;
}

var wicketAjaxTransports = [];


function wicketAjaxGetTransport() {
var t = wicketAjaxTransports;
for (var i = 0; i < t.length; ++i) {
if (t[i].readyState == 0 || t[i].readyState == 4) {
return t[i];
}
}
t[t.length] = wicketAjaxCreateTransport();
return t[t.length-1];
}

function wicketAjaxGet(url, successHandler, failureHandler) {
 if (wicketAjaxDebugEnabled()) {
 var log=WicketAjaxDebug.logInfo;
 log("");
 log("initiating ajax GET request with...");
 log("url: "+url);
 log("successHandler:"+successHandler);
 log("failureHandler:"+failureHandler);
 }

 var transport = wicketAjaxGetTransport();
 if (transport == null) {
 return false;
 }
 transport.open("GET", url + "&random=" + Math.random(), true);
 transport.onreadystatechange = function () {
 wicketAjaxOnStateChange(transport, successHandler,
failureHandler);
 if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
 }
 };
 transport.send(null);

 return true;
}
function wicketAjaxPost(url, body, successHandler, failureHandler) {
 if (wicketAjaxDebugEnabled()) {
 var log=WicketAjaxDebug.logInfo;
 log("");
 log("initiating ajax POST request with...");
 log("url: "+url);
 log("body: "+body);
 log("successHandler:"+successHandler);
 log("failureHandler:"+failureHandler);
 }

 var transport = wicketAjaxGetTransport();
 if (transport == null) {
 return false;
 }
 transport.open("POST", url + "&random=" + Math.random(), true);
 transport.onreadystatechange = function () {
 wicketAjaxOnStateChange(transport, successHandler,
failureHandler);
 if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
 }
 };
 transport.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
 transport.send(body);

 return true;
}

Matej Knopp wrote:
 > I guess I have seen one. But it shouldn't be that difficult to get it
 > done. I guess I might be able to look into it tonight.
 >
 > -Matej
 >
 > Igor Vaynberg wrote:
 >> is there a pooling implementation somewhere i can take a look at and
 >> borrow, im not really inerested in becoming a javascript wiz just
 >> because ms cant get it right.
 >>
 >> -Igor
 >>
 >>
 >> On 4/12/06, *Matej Knopp* <[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]>>> wrote:
 >>
 >> AFAIK There's nothing wrong with javascript. The problem is that
 >> creating XMLHttpRequest every time causes memory leak in IE.
 >>
 >> People tend to reuse one instance of xmlhttprequest, but
that does
 >> not
 >> suffice here, i guess, therefore I suggested xmlhttprequests
 >> instances
 >> pooling.
 >>
 >> I tried to reuse one instance of xmlhttprequest and the leak
was no
 >> longer there. At least with the test application. (The one
in this
 >> thread).
 >>
 >> The only thing when you are "reusing" XmlHttpRequests is
that you
 >> must
 >> call transport.open before you assign transport.onreadystate
= ...
 >> (some weird IE related thing)
 >>
 >> -Matej
 >>
 >> Igor Vaynberg wrote:
 >>  > i looked through the javascript but nothing jumped out at
me. did
 >> you
 >>  > notice anything cause im stumped.
 >>  >
 >>

Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-13 Thread Matej Knopp

As far as I know IE won't fire more than two simultanous http request.
So i'm not quite sure about it.

-Matej

Ari Suutari wrote:

I found one potential (minor) problem: if timer creates ajax requests
so frequently that web server lags behind the the system leaks
again because it needs to always allocate new transport object
since all existing ones are busy ? Maybe there should be some
kind of upper limit for transport pool.

Maybe this isn't any more such a big problem for most folks.
It occurs me when updating a label with 100 ms timer (well, actually,
maybe the timer in AjaxSelfUpdatingTimerBehavour shouldn't fire
until previous request has completed ?)

   Ari S.

- Original Message - From: "Matej Knopp" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 12, 2006 9:51 PM
Subject: Re: [Wicket-user] wicket ajax memory leak with IE



Hi, I made some changes, this really helps, at least it works for me:

// AJAX FUNCTIONS
function wicketAjaxCreateTransport() {
var transport = null;
if (window.XMLHttpRequest) {
transport = new XMLHttpRequest();
} else {
if (window.ActiveXObject) {
transport = new ActiveXObject("Microsoft.XMLHTTP");
}
}

if (transport==null&&wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logError;
log("Could not locate ajax transport. Your browser does not 
support the required XMLHttpRequest object or wicket could not gain 
access to it.");

}
return transport;
}

var wicketAjaxTransports = [];


function wicketAjaxGetTransport() {
var t = wicketAjaxTransports;
for (var i = 0; i < t.length; ++i) {
if (t[i].readyState == 0 || t[i].readyState == 4) {
return t[i];
}
}
t[t.length] = wicketAjaxCreateTransport();
return t[t.length-1];
}

function wicketAjaxGet(url, successHandler, failureHandler) {
if (wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logInfo;
log("");
log("initiating ajax GET request with...");
log("url: "+url);
log("successHandler:"+successHandler);
log("failureHandler:"+failureHandler);
}

var transport = wicketAjaxGetTransport();
if (transport == null) {
return false;
}
transport.open("GET", url + "&random=" + Math.random(), true);
transport.onreadystatechange = function () {
wicketAjaxOnStateChange(transport, successHandler, 
failureHandler);

if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
}
};
transport.send(null);

return true;
}
function wicketAjaxPost(url, body, successHandler, failureHandler) {
if (wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logInfo;
log("");
log("initiating ajax POST request with...");
log("url: "+url);
log("body: "+body);
log("successHandler:"+successHandler);
log("failureHandler:"+failureHandler);
}

var transport = wicketAjaxGetTransport();
if (transport == null) {
return false;
}
transport.open("POST", url + "&random=" + Math.random(), true);
transport.onreadystatechange = function () {
wicketAjaxOnStateChange(transport, successHandler, 
failureHandler);

if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
}
};
transport.setRequestHeader("Content-Type", 
"application/x-www-form-urlencoded");

transport.send(body);

return true;
}

Matej Knopp wrote:
I guess I have seen one. But it shouldn't be that difficult to get it 
done. I guess I might be able to look into it tonight.


-Matej

Igor Vaynberg wrote:
is there a pooling implementation somewhere i can take a look at and 
borrow, im not really inerested in becoming a javascript wiz just 
because ms cant get it right.


-Igor


On 4/12/06, *Matej Knopp* <[EMAIL PROTECTED] > 
wrote:


AFAIK There's nothing wrong with javascript. The problem is that
creating XMLHttpRequest every time causes memory leak in IE.

People tend to reuse one instance of xmlhttprequest, but that 
does not
suffice here, i guess, therefore I suggested xmlhttprequests 
instances

pooling.

I tried to reuse one instance of xmlhttprequest and the leak was no
longer there. At least with the test application. (The one in this
thread).

The only thing when you are "reusing" XmlHttpRequests is that 
you must

call transport.open before you assign transport.onreadystate = ...
(some weird IE related thing)

-Matej

Igor Vaynberg wrote:
 > i looked through the javascript but nothing jumped out at me. 
did

you
 > notice anything cause im stumped.
 >
 > -Igor
 >
 > On 4/12/06, *Matej Knopp* < [EMAIL PROTECTED]
  >> wrote:
 >
 > Yeah, it is. However, it's much smal

Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread Johan Compagner
a POST request can be handled fine as long as it isn't a multiplart.Because PageParameters can't handle that therefor we need a real form component where all the multipart handling code is in.For this we need something like a BookmarkableForm i will try to look at this after 
1.2So that you can post to a bookmarkable url that creates the page and then when it is createdit calls the form.submit. This way you could have stateless pages with forms. Only thingis that ofcoure the form state is not kept in the session so you can alter behaviour between request
But this works fine for search boxes, login forms on top of a page or things like that.johanOn 4/13/06, Timo Stamm <
[EMAIL PROTECTED]> wrote:Johan Compagner schrieb:> you where talking about the PageParameters object so i thought you where
> talking about inbound stuff.> Then every parameters will be in it.>> Ofcourse no multipart stuff and ofcourse outbound only what can be presented> in a simple string can be added.
Ok, so it doesn't work. That was a misunderstanding. We are talkingabout integrating wicket with other apps. For example Acrobat, which cansend POST data (no URL parameters) from a form.> That seems logical to me
Yes, it is. But on the other hand there might be a need to integrate alegacy app with wicket that requires that a POST request is handled.Kurt is using a servlet to handle that request, and redirects to a
bookmarkable wicket page. I thought about how Wicket could handle thisdirectly, without a servlet in between, and PageParameters came into mymind.Timo> On 4/13/06, Timo Stamm <
[EMAIL PROTECTED]> wrote:>> Johan Compagner schrieb:>>> PageParametes will contain post params..>> This comment by Martijn Dashorst sounds different:
 | A note to the article: you can't use the PageParameters for types>> | other than simple types such as Strings and Integers. [...]>> |>> | The bookmarkable links and PageParameters are used for things that
>> | need to be bookmarkable. http://www.javalobby.org/java/forums/m91985755.html>> Only URLs with simple urlencoded parameters are bookmarkable. You can't
>> bookmark a POST request.>> The API doc says:>> | Page parameters in HTTP are query string values in the request URL.>> Johan, are you sure that multipart POST requests are supported?
>> Timo> So if for example you post to a bookmarkable page then PageParameters>> should>>> be filled with everything.
>> johan>> On 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote: kurt heston schrieb:> I could probably extend one of the core wicket
> classes instead of HttpServlet and arrive at the same place, though>> I'm> not sure it would be any more elegant. A thought: Maybe PageParameters should be available for POST requests
>> as well. I don't know if it possible for a framework-client to handle requests>> at the required level...
 Timo> Thanks for the help.>> Timo Stamm wrote:>> kurt heston schrieb:
>>> I've got some legacy PDFs laying around that utilize the HTTP submit>>> functionality available when using Acrobat fillable forms.  The>>> servlet I have answering these Acrobat requests saves off the field
>>> names and values submitted in a 3 column table (rec id, field name,>>> value).  We change the forms and add fields pretty often.  Later,>>> when a view of the filled form is requested, I fill it again with
>> the>>> database values using iText (which is BEYOND cool) and stream it to>>> the browser.  Simple enough.>> I'm presently using this servlet's response object to just forward
>>> calls on to a Wicket bookmarkable page...pretty loose integration.>> I think this loose integration is the best you can do. I am using>> quite a similar approach to integrate a legacy JSP based app and it
>> works very well.>>> Any suggestions as to how I might "Wickefy" my servlet such that I>>> can take advantage of things like Wicket session management an such
>>> when handling requests submitted via Acrobat?>> What are you missing? The bookmarkable Page should have access to the>> Wicket session. Remember to forward the session id as well.
>> Timo>> ---
>> This SF.Net email is sponsored by xPML, a groundbreaking scripting>> language>> that extends applications into web and mobile media. Attend the live
>> webcast>> and join the prime developer group breaking into this new coding>> territory! 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> ___>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>> ---> This SF.Net email is sponsored by x

Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread Timo Stamm

Johan Compagner schrieb:

you where talking about the PageParameters object so i thought you where
talking about inbound stuff.
Then every parameters will be in it.

Ofcourse no multipart stuff and ofcourse outbound only what can be presented
in a simple string can be added.


Ok, so it doesn't work. That was a misunderstanding. We are talking 
about integrating wicket with other apps. For example Acrobat, which can 
send POST data (no URL parameters) from a form.




That seems logical to me


Yes, it is. But on the other hand there might be a need to integrate a 
legacy app with wicket that requires that a POST request is handled.


Kurt is using a servlet to handle that request, and redirects to a 
bookmarkable wicket page. I thought about how Wicket could handle this 
directly, without a servlet in between, and PageParameters came into my 
mind.



Timo




On 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote:

Johan Compagner schrieb:

PageParametes will contain post params..

This comment by Martijn Dashorst sounds different:

| A note to the article: you can't use the PageParameters for types
| other than simple types such as Strings and Integers. [...]
|
| The bookmarkable links and PageParameters are used for things that
| need to be bookmarkable.

http://www.javalobby.org/java/forums/m91985755.html


Only URLs with simple urlencoded parameters are bookmarkable. You can't
bookmark a POST request.


The API doc says:
| Page parameters in HTTP are query string values in the request URL.


Johan, are you sure that multipart POST requests are supported?


Timo






So if for example you post to a bookmarkable page then PageParameters

should

be filled with everything.

johan

On 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote:

kurt heston schrieb:

I could probably extend one of the core wicket
classes instead of HttpServlet and arrive at the same place, though

I'm

not sure it would be any more elegant.

A thought: Maybe PageParameters should be available for POST requests

as

well.

I don't know if it possible for a framework-client to handle requests

at

the required level...


Timo



Thanks for the help.

Timo Stamm wrote:

kurt heston schrieb:

I've got some legacy PDFs laying around that utilize the HTTP submit
functionality available when using Acrobat fillable forms.  The
servlet I have answering these Acrobat requests saves off the field
names and values submitted in a 3 column table (rec id, field name,
value).  We change the forms and add fields pretty often.  Later,
when a view of the filled form is requested, I fill it again with

the

database values using iText (which is BEYOND cool) and stream it to
the browser.  Simple enough.

I'm presently using this servlet's response object to just forward
calls on to a Wicket bookmarkable page...pretty loose integration.

I think this loose integration is the best you can do. I am using
quite a similar approach to integrate a legacy JSP based app and it
works very well.



Any suggestions as to how I might "Wickefy" my servlet such that I
can take advantage of things like Wicket session management an such
when handling requests submitted via Acrobat?

What are you missing? The bookmarkable Page should have access to the
Wicket session. Remember to forward the session id as well.


Timo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!


http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting

language

that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding

territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!


http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groun

Re: [Wicket-user] contrib vs extensions

2006-04-13 Thread Juergen Donnerstag
Extensions are part of the Wicket project and maintained by Wickets
core developers. Contrib projects are part of wicket-stuff which has
much relaxed contribution rules and contrib projects are usually not
maintained by core developers. The Wicket team does not feel
responsible for the content of the contrib projects. And they are not
1.2 specifc or whatever. Having said that, some features find there
way from contrib to extension or core and on the way while more users
are using it, it gets modified and situations like yours arise. I
know, it doesn't solve your problem, but may be explains the situation
a bit.

Juergen

On 4/13/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I'm currently building an application using Wicket 1.1.1 and
> Hibernate3. I found some very helpful classes in the wicket-extensions
> 1.1.1 and especially in the contrib packages data and
> data-hibernate-3.0 (downloaded via CVS).
>
> I already had success displaying a data-table using a DataView and a
> HibernateDataProvider. Now I wanted to try this with a DataTable.
>
> But now I see that there are some classes in contrib, which are also in
> extensions, but different packages, like IColumn and its children. Am
> I right that I cannot use the the columns (CheckboxColumns etc.) from
> contrib-data with the DataTable from extensions? I'm pretty sure I'll
> stumble over a ClassCastException here, because DataTable expects a
> List of wicket.extensions.markup.html.repeater.data.table.IColumn, and
> CheckboxColumn implements wicket.contrib.data.model.bind.IColumn...
>
> Then - how can I use these Columns from contrib-data? Or are the
> contrib packages all meant for the upcoming wicket 1.2 (never tried
> this one yet)?
>
> --
> greetings from Berlin,
>
> Rüdiger Schulz
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Borders & Markup Inheritance

2006-04-13 Thread Gregg Bolinger
Yes, that was the first thing I checked.  A bit later today, I'll throw my code in there to get better help.  I realize it's tough with nothing to see.Thanks.GreggOn 4/12/06, 
Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
And you are sure your Header.html and Header.java are in the same directory?On 4/12/06, Gregg Bolinger <[EMAIL PROTECTED]> wrote:> Interesting that you mention that about Panels. I have been trying to use
> Panel and MI without success.  Basically, I have a BasePage that contains a> reference to my Header (which extends Panel and has it's own contents) and I> have the Header.html.  But when I deploy it, it states that it can't find
> Header.html.>> I basically followed the article on Javalobby, then tried to replace his> header div with my own panel instead of just a label.  Should this work?>> Thanks.>
> Gregg>>> On 4/12/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:> >> MI is probably better suited for L&F (and feedback we get indicates
> that it is easier to use), but there are still plenty good use cases> for Border. MI for example can not be used inside a Panel or Border> "bordering" a specifc html tag/region (compared to the whole Page or
> Panel as MI does).>> Juergen>> On 4/12/06, Gregg Bolinger < [EMAIL PROTECTED]> wrote:> > When I first started looking at Wicket it was all about Borders for page
> > templating and consistency.  Recently, evaluating Wicket again, I see> Markup> > Inheritance is boasted quite a bit, including the article on JavaLobby.> >> > My question is, is MI now the preferred way to layout multiple pages
> keeping> > the same L&F or is there still need for Borders?  Personally, I like MI> > quite a bit better.  It's more OO to me and simpler.  But I don't want to> be> > missing out on something just because MI is easier.
> >> > Thanks for any information.> >> > Gregg bolinger>   ---> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast> and join the prime developer group breaking into this new coding territory!> 
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net>  https://lists.sourceforge.net/lists/listinfo/wicket-user>>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread Johan Compagner
you where talking about the PageParameters object so i thought you where talking about inbound stuff. Then every parameters will be in it.Ofcourse no multipart stuff and ofcourse outbound only what can be presented in a simple string can be added.
That seems logical to mejohanOn 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote:
Johan Compagner schrieb:> PageParametes will contain post params..This comment by Martijn Dashorst sounds different:| A note to the article: you can't use the PageParameters for types| other than simple types such as Strings and Integers. [...]
|| The bookmarkable links and PageParameters are used for things that| need to be bookmarkable.http://www.javalobby.org/java/forums/m91985755.html
Only URLs with simple urlencoded parameters are bookmarkable. You can'tbookmark a POST request.The API doc says:| Page parameters in HTTP are query string values in the request URL.
Johan, are you sure that multipart POST requests are supported?Timo> So if for example you post to a bookmarkable page then PageParameters should> be filled with everything.
>> johan>> On 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote:>> kurt heston schrieb:>>> I could probably extend one of the core wicket
>>> classes instead of HttpServlet and arrive at the same place, though I'm>>> not sure it would be any more elegant. A thought: Maybe PageParameters should be available for POST requests as
>> well. I don't know if it possible for a framework-client to handle requests at>> the required level...>> Timo>>> Thanks for the help.
>> Timo Stamm wrote: kurt heston schrieb:> I've got some legacy PDFs laying around that utilize the HTTP submit> functionality available when using Acrobat fillable forms.  The
> servlet I have answering these Acrobat requests saves off the field> names and values submitted in a 3 column table (rec id, field name,> value).  We change the forms and add fields pretty often.  Later,
> when a view of the filled form is requested, I fill it again with the> database values using iText (which is BEYOND cool) and stream it to> the browser.  Simple enough.
>> I'm presently using this servlet's response object to just forward> calls on to a Wicket bookmarkable page...pretty loose integration. I think this loose integration is the best you can do. I am using
 quite a similar approach to integrate a legacy JSP based app and it works very well.> Any suggestions as to how I might "Wickefy" my servlet such that I
> can take advantage of things like Wicket session management an such> when handling requests submitted via Acrobat? What are you missing? The bookmarkable Page should have access to the
 Wicket session. Remember to forward the session id as well. Timo ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
>> --->>> This SF.Net email is sponsored by xPML, a groundbreaking scripting>> language>>> that extends applications into web and mobile media. Attend the live
>>> webcast>>> and join the prime developer group breaking into this new coding>> territory!>>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>> ___>>> Wicket-user mailing list>>> 
Wicket-user@lists.sourceforge.net>>> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>
>> --->> This SF.Net email is sponsored by xPML, a groundbreaking scripting>> language>> that extends applications into web and mobile media. Attend the live
>> webcast>> and join the prime developer group breaking into this new coding>> territory!>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> ___>> Wicket-user mailing list>> 
Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps:/

AW: [Wicket-user] Setting column-widths in DataTable

2006-04-13 Thread MailingWicketUser
 
For the records: My first approach worked well until the DataTable hit an empty 
list. In that case, newCellItem is never called as there is no data to be 
displayed. Hence the still visible table headers had wrong widths. I had to 
create a copy of HeadersToolbar and add the line

header.add(new SimpleAttributeModifier("class", "col" + i));

Now I can apply the css width settings to the th tags.


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von 
MailingWicketUser
Bereitgestellt: Donnerstag, 13. April 2006 13:30
Bereitgestellt in: User
Unterhaltung: [Wicket-user] Setting column-widths in DataTable
Betreff: AW: [Wicket-user] Setting column-widths in DataTable



Thank's for you feedback! 

Skimming thru the javadocs of the DataTable classes I overlooked the 
newCellItem method in DataTable. Overwriting this I can now add css-class 
attributes to the td tags using the following code:

DataTable dataTable = new DataTable("table", columns, dataProvider, 
rowsPerPage) {
protected Item newCellItem(String id, int index, IModel model) {
Item item = new Item(id, index, model);
item.add(new SimpleAttributeModifier("class", "col" + index));
return item;
}
};

Regards,

Timo Verhoeven

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Juergen 
Donnerstag
Bereitgestellt: Donnerstag, 13. April 2006 11:58 Bereitgestellt in: User
Unterhaltung: [Wicket-user] Setting column-widths in DataTable
Betreff: Re: [Wicket-user] Setting column-widths in DataTable


I guess there are plenty of HTML and CSS ref and tutorial pages out there:
http://www.selfhtml.org/
http://www.w3schools.com/html/
http://www.w3schools.com/css/default.asp

Juergen

On 4/13/06, MailingWicketUser <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi!
>
> Is there an "elegant" way to set the column widths when using a 
> DataTable (from wicket-extensions)? As this is a matter of design, I 
> anticipate a solution where I can set the widths in HTML or CSS.
> Something like the following would be nice:
>
> 
>   
> 
> 
>   
> 
>
> Regards,
>
> Timo Verhoeven


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language 
that extends applications into web and mobile media. Attend the live webcast 
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language 
that extends applications into web and mobile media. Attend the live webcast 
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-13 Thread Ari Suutari

I found one potential (minor) problem: if timer creates ajax requests
so frequently that web server lags behind the the system leaks
again because it needs to always allocate new transport object
since all existing ones are busy ? Maybe there should be some
kind of upper limit for transport pool.

Maybe this isn't any more such a big problem for most folks.
It occurs me when updating a label with 100 ms timer (well, actually,
maybe the timer in AjaxSelfUpdatingTimerBehavour shouldn't fire
until previous request has completed ?)

   Ari S.

- Original Message - 
From: "Matej Knopp" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 12, 2006 9:51 PM
Subject: Re: [Wicket-user] wicket ajax memory leak with IE



Hi, I made some changes, this really helps, at least it works for me:

// AJAX FUNCTIONS
function wicketAjaxCreateTransport() {
var transport = null;
if (window.XMLHttpRequest) {
transport = new XMLHttpRequest();
} else {
if (window.ActiveXObject) {
transport = new ActiveXObject("Microsoft.XMLHTTP");
}
}

if (transport==null&&wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logError;
log("Could not locate ajax transport. Your browser does not 
support the required XMLHttpRequest object or wicket could not gain 
access to it.");

}
return transport;
}

var wicketAjaxTransports = [];


function wicketAjaxGetTransport() {
var t = wicketAjaxTransports;
for (var i = 0; i < t.length; ++i) {
if (t[i].readyState == 0 || t[i].readyState == 4) {
return t[i];
}
}
t[t.length] = wicketAjaxCreateTransport();
return t[t.length-1];
}

function wicketAjaxGet(url, successHandler, failureHandler) {
if (wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logInfo;
log("");
log("initiating ajax GET request with...");
log("url: "+url);
log("successHandler:"+successHandler);
log("failureHandler:"+failureHandler);
}

var transport = wicketAjaxGetTransport();
if (transport == null) {
return false;
}
transport.open("GET", url + "&random=" + Math.random(), true);
transport.onreadystatechange = function () {
wicketAjaxOnStateChange(transport, successHandler, failureHandler);
if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
}
};
transport.send(null);

return true;
}
function wicketAjaxPost(url, body, successHandler, failureHandler) {
if (wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logInfo;
log("");
log("initiating ajax POST request with...");
log("url: "+url);
log("body: "+body);
log("successHandler:"+successHandler);
log("failureHandler:"+failureHandler);
}

var transport = wicketAjaxGetTransport();
if (transport == null) {
return false;
}
transport.open("POST", url + "&random=" + Math.random(), true);
transport.onreadystatechange = function () {
wicketAjaxOnStateChange(transport, successHandler, failureHandler);
if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
}
};
transport.setRequestHeader("Content-Type", 
"application/x-www-form-urlencoded");

transport.send(body);

return true;
}

Matej Knopp wrote:
I guess I have seen one. But it shouldn't be that difficult to get it 
done. I guess I might be able to look into it tonight.


-Matej

Igor Vaynberg wrote:
is there a pooling implementation somewhere i can take a look at and 
borrow, im not really inerested in becoming a javascript wiz just 
because ms cant get it right.


-Igor


On 4/12/06, *Matej Knopp* <[EMAIL PROTECTED] > wrote:

AFAIK There's nothing wrong with javascript. The problem is that
creating XMLHttpRequest every time causes memory leak in IE.

People tend to reuse one instance of xmlhttprequest, but that does 
not
suffice here, i guess, therefore I suggested xmlhttprequests 
instances

pooling.

I tried to reuse one instance of xmlhttprequest and the leak was no
longer there. At least with the test application. (The one in this
thread).

The only thing when you are "reusing" XmlHttpRequests is that you 
must

call transport.open before you assign transport.onreadystate = ...
(some weird IE related thing)

-Matej

Igor Vaynberg wrote:
 > i looked through the javascript but nothing jumped out at me. did
you
 > notice anything cause im stumped.
 >
 > -Igor
 >
 > On 4/12/06, *Matej Knopp* < [EMAIL PROTECTED]
  >> wrote:
 >
 > Yeah, it is. However, it's much smaller. But still, 10-15 
kb per

 > request.
 >
 > -Matej
 >
 > Igor Vaynberg wrote:
 >  > is the le

Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread Timo Stamm

Johan Compagner schrieb:

PageParametes will contain post params..


This comment by Martijn Dashorst sounds different:

| A note to the article: you can't use the PageParameters for types
| other than simple types such as Strings and Integers. [...]
|
| The bookmarkable links and PageParameters are used for things that
| need to be bookmarkable.

http://www.javalobby.org/java/forums/m91985755.html


Only URLs with simple urlencoded parameters are bookmarkable. You can't 
bookmark a POST request.



The API doc says:
| Page parameters in HTTP are query string values in the request URL.


Johan, are you sure that multipart POST requests are supported?


Timo






So if for example you post to a bookmarkable page then PageParameters should
be filled with everything.

johan

On 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote:

kurt heston schrieb:

I could probably extend one of the core wicket
classes instead of HttpServlet and arrive at the same place, though I'm
not sure it would be any more elegant.


A thought: Maybe PageParameters should be available for POST requests as
well.

I don't know if it possible for a framework-client to handle requests at
the required level...


Timo



Thanks for the help.

Timo Stamm wrote:

kurt heston schrieb:

I've got some legacy PDFs laying around that utilize the HTTP submit
functionality available when using Acrobat fillable forms.  The
servlet I have answering these Acrobat requests saves off the field
names and values submitted in a 3 column table (rec id, field name,
value).  We change the forms and add fields pretty often.  Later,
when a view of the filled form is requested, I fill it again with the
database values using iText (which is BEYOND cool) and stream it to
the browser.  Simple enough.

I'm presently using this servlet's response object to just forward
calls on to a Wicket bookmarkable page...pretty loose integration.

I think this loose integration is the best you can do. I am using
quite a similar approach to integrate a legacy JSP based app and it
works very well.



Any suggestions as to how I might "Wickefy" my servlet such that I
can take advantage of things like Wicket session management an such
when handling requests submitted via Acrobat?

What are you missing? The bookmarkable Page should have access to the
Wicket session. Remember to forward the session id as well.


Timo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!


http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting

language

that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding

territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user







---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


AW: [Wicket-user] Setting column-widths in DataTable

2006-04-13 Thread MailingWicketUser

Thank's for you feedback! 

Skimming thru the javadocs of the DataTable classes I overlooked the 
newCellItem method in DataTable. Overwriting this I can now add css-class 
attributes to the td tags using the following code:

DataTable dataTable = new DataTable("table", columns, dataProvider, 
rowsPerPage) {
protected Item newCellItem(String id, int index, IModel model) {
Item item = new Item(id, index, model);
item.add(new SimpleAttributeModifier("class", "col" + index));
return item;
}
};

Regards,

Timo Verhoeven

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Juergen 
Donnerstag
Bereitgestellt: Donnerstag, 13. April 2006 11:58
Bereitgestellt in: User
Unterhaltung: [Wicket-user] Setting column-widths in DataTable
Betreff: Re: [Wicket-user] Setting column-widths in DataTable


I guess there are plenty of HTML and CSS ref and tutorial pages out there:
http://www.selfhtml.org/
http://www.w3schools.com/html/
http://www.w3schools.com/css/default.asp

Juergen

On 4/13/06, MailingWicketUser <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi!
>
> Is there an "elegant" way to set the column widths when using a 
> DataTable (from wicket-extensions)? As this is a matter of design, I 
> anticipate a solution where I can set the widths in HTML or CSS. 
> Something like the following would be nice:
>
> 
>   
> 
> 
>   
> 
>
> Regards,
>
> Timo Verhoeven


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language 
that extends applications into web and mobile media. Attend the live webcast 
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems with DropDownChoice in ListView

2006-04-13 Thread Johan Compagner
his is because listview will generate the list items again on the next render so you loose state.call ListView.setOptimizeRemoved(true) to keep the listview stable if you use FormComponents in it.johan
On 4/13/06, MailingWicketUser <[EMAIL PROTECTED]> wrote:










Hi,


I'am using a DropDownChoices in a ListView.

To select another entry in the DropDownChoice I use ImageButtons and Labels creating _javascript_.


If I use the DropDownChoice and an ImageButton outside a ListView, the manipulation performed well.

Inside the ListView the script-Label will not be updated.


If I replace the ImageButton with a simple Button the onSubmit()-method is not called ?!


In the appendix you find samples. <>  <> 



Daniel Hakenjos

__

SSZ – Softwarelösung zur SparkassenSonderZahlung
GuideCom unterstützt mit bewährtem Prozessverständnis und fun-

dierter Kenntnis der Schnittstellen zum Rechenzentrum bei der

Überführung des Fachkonzepts in eine integrierte, sichere und

auf die individuellen Anforderungen zugeschnittene Anwendung.


Weitere Informationen unter 
http://news.guidecom.de
__

GuideCom | Ihre Prozesse. Ihre Sprache.

Daniel Hakenjos | Software Entwickler

GuideCom GmbH | Hafenweg 14 | 48155 Münster
Fon +49 (251) 91 59 190
Fax +49 (251) 91 59 100
www.guidecom.de

__ 








Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-13 Thread Ari Suutari

I can confirm that it works for me too.
Hopefully this fix will get into next beta/rc of 1.2 !

   Ari S.

- Original Message - 
From: "Matej Knopp" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 12, 2006 9:51 PM
Subject: Re: [Wicket-user] wicket ajax memory leak with IE



Hi, I made some changes, this really helps, at least it works for me:

// AJAX FUNCTIONS
function wicketAjaxCreateTransport() {
var transport = null;
if (window.XMLHttpRequest) {
transport = new XMLHttpRequest();
} else {
if (window.ActiveXObject) {
transport = new ActiveXObject("Microsoft.XMLHTTP");
}
}

if (transport==null&&wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logError;
log("Could not locate ajax transport. Your browser does not 
support the required XMLHttpRequest object or wicket could not gain 
access to it.");

}
return transport;
}

var wicketAjaxTransports = [];


function wicketAjaxGetTransport() {
var t = wicketAjaxTransports;
for (var i = 0; i < t.length; ++i) {
if (t[i].readyState == 0 || t[i].readyState == 4) {
return t[i];
}
}
t[t.length] = wicketAjaxCreateTransport();
return t[t.length-1];
}

function wicketAjaxGet(url, successHandler, failureHandler) {
if (wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logInfo;
log("");
log("initiating ajax GET request with...");
log("url: "+url);
log("successHandler:"+successHandler);
log("failureHandler:"+failureHandler);
}

var transport = wicketAjaxGetTransport();
if (transport == null) {
return false;
}
transport.open("GET", url + "&random=" + Math.random(), true);
transport.onreadystatechange = function () {
wicketAjaxOnStateChange(transport, successHandler, failureHandler);
if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
}
};
transport.send(null);

return true;
}
function wicketAjaxPost(url, body, successHandler, failureHandler) {
if (wicketAjaxDebugEnabled()) {
var log=WicketAjaxDebug.logInfo;
log("");
log("initiating ajax POST request with...");
log("url: "+url);
log("body: "+body);
log("successHandler:"+successHandler);
log("failureHandler:"+failureHandler);
}

var transport = wicketAjaxGetTransport();
if (transport == null) {
return false;
}
transport.open("POST", url + "&random=" + Math.random(), true);
transport.onreadystatechange = function () {
wicketAjaxOnStateChange(transport, successHandler, failureHandler);
if (transport.readyState == 4) {
transport.onreadystatechange = function () {};
transport = null;
}
};
transport.setRequestHeader("Content-Type", 
"application/x-www-form-urlencoded");

transport.send(body);

return true;
}

Matej Knopp wrote:
I guess I have seen one. But it shouldn't be that difficult to get it 
done. I guess I might be able to look into it tonight.


-Matej

Igor Vaynberg wrote:
is there a pooling implementation somewhere i can take a look at and 
borrow, im not really inerested in becoming a javascript wiz just 
because ms cant get it right.


-Igor


On 4/12/06, *Matej Knopp* <[EMAIL PROTECTED] > wrote:

AFAIK There's nothing wrong with javascript. The problem is that
creating XMLHttpRequest every time causes memory leak in IE.

People tend to reuse one instance of xmlhttprequest, but that does 
not
suffice here, i guess, therefore I suggested xmlhttprequests 
instances

pooling.

I tried to reuse one instance of xmlhttprequest and the leak was no
longer there. At least with the test application. (The one in this
thread).

The only thing when you are "reusing" XmlHttpRequests is that you 
must

call transport.open before you assign transport.onreadystate = ...
(some weird IE related thing)

-Matej

Igor Vaynberg wrote:
 > i looked through the javascript but nothing jumped out at me. did
you
 > notice anything cause im stumped.
 >
 > -Igor
 >
 > On 4/12/06, *Matej Knopp* < [EMAIL PROTECTED]
  >> wrote:
 >
 > Yeah, it is. However, it's much smaller. But still, 10-15 
kb per

 > request.
 >
 > -Matej
 >
 > Igor Vaynberg wrote:
 >  > is the leak still there if you turn off the ajax debug
mode in
 >  > IAjaxSettings?
 >  >
 >  > -Igor
 >  >
 >  >
 >  > On 4/12/06, *Matej Knopp* < [EMAIL PROTECTED]

 > mailto:[EMAIL PROTECTED]>>

 >   >
 >  >   

Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread Timo Stamm

Johan Compagner schrieb:

PageParametes will contain post params..


That's great. Thanks, I wasn't aware of that.


Timo



So if for example you post to a bookmarkable page then PageParameters should
be filled with everything.

johan

On 4/13/06, Timo Stamm <[EMAIL PROTECTED]> wrote:

kurt heston schrieb:

I could probably extend one of the core wicket
classes instead of HttpServlet and arrive at the same place, though I'm
not sure it would be any more elegant.


A thought: Maybe PageParameters should be available for POST requests as
well.

I don't know if it possible for a framework-client to handle requests at
the required level...


Timo



Thanks for the help.

Timo Stamm wrote:

kurt heston schrieb:

I've got some legacy PDFs laying around that utilize the HTTP submit
functionality available when using Acrobat fillable forms.  The
servlet I have answering these Acrobat requests saves off the field
names and values submitted in a 3 column table (rec id, field name,
value).  We change the forms and add fields pretty often.  Later,
when a view of the filled form is requested, I fill it again with the
database values using iText (which is BEYOND cool) and stream it to
the browser.  Simple enough.

I'm presently using this servlet's response object to just forward
calls on to a Wicket bookmarkable page...pretty loose integration.

I think this loose integration is the best you can do. I am using
quite a similar approach to integrate a legacy JSP based app and it
works very well.



Any suggestions as to how I might "Wickefy" my servlet such that I
can take advantage of things like Wicket session management an such
when handling requests submitted via Acrobat?

What are you missing? The bookmarkable Page should have access to the
Wicket session. Remember to forward the session id as well.


Timo


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!


http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting

language

that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding

territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user







---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Border vs. Panel

2006-04-13 Thread Timo Stamm

Juergen Donnerstag schrieb:

please see http://www.wicket-wiki.org.uk/wiki/index.php/Panels_and_borders

and copied from previous mails

Maybe 'around' is a bit a weird term too. A more visual explanation


Yes, the definition of panel and border isn't very understandable. I 
also had the impression that a visual example would help more.


I have updated the wiki article:

| Both Panels and Borders have their own markup file, but the markup is
| used in different ways:
|
|
| The Border component inserts markup before and after its child
| components.
|
|
| 
|  
|   
|   content
|   
|  
| 
|
|
|
| The Panel component inserts markup into the body of the tag.
|
|
| 
|  
|   
|  
| 
|


Jeffrey, is this understandable? Comments are welcome.


Timo




Panel:


 blah, blah
 
   Panel contents
 
 more blah


vs Border:


 Border before

 blah, blah
 more blah

 Border after


So in fact, a border puts markup before and after a component, while a
panel is put inside it.

Juergen

On 4/13/06, Jeffrey H. Lin <[EMAIL PROTECTED]> wrote:

I'm currently designing the page layout and navigation for a wicket
application, and I was wondering if anybody could tell me the difference
between Panel and Border. Both seem to apply to what I want to do, which
is to create a generic navigation system without repeating code on every
page. I'm not quite sure what the advantages of one over the other are.
Any guidance would be much appreciated!

Thanks,
Jeff


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problems with DropDownChoice in ListView

2006-04-13 Thread MailingWicketUser
Title: Problems with DropDownChoice in ListView






Hi,


I'am using a DropDownChoices in a ListView.

To select another entry in the DropDownChoice I use ImageButtons and Labels creating _javascript_.


If I use the DropDownChoice and an ImageButton outside a ListView, the manipulation performed well.

Inside the ListView the script-Label will not be updated.


If I replace the ImageButton with a simple Button the onSubmit()-method is not called ?!


In the appendix you find samples. <>  <> 


Daniel Hakenjos

__

SSZ – Softwarelösung zur SparkassenSonderZahlung
GuideCom unterstützt mit bewährtem Prozessverständnis und fun-

dierter Kenntnis der Schnittstellen zum Rechenzentrum bei der

Überführung des Fachkonzepts in eine integrierte, sichere und

auf die individuellen Anforderungen zugeschnittene Anwendung.


Weitere Informationen unter http://news.guidecom.de
__

GuideCom | Ihre Prozesse. Ihre Sprache.

Daniel Hakenjos | Software Entwickler

GuideCom GmbH | Hafenweg 14 | 48155 Münster
Fon +49 (251) 91 59 190
Fax +49 (251) 91 59 100
www.guidecom.de
__ 








	BugTest

	
	
		
		
			
			 
 
			 
			
			
			
			
		
		
	
	
			 
 
			 
			
			
	




BugTestPage.java
Description: BugTestPage.java


Re: [Wicket-user] Setting column-widths in DataTable

2006-04-13 Thread Rüdiger Schulz
MailingWicketUser wrote on 13.04.2006 at 11:42:

> Is there an "elegant" way to set the column widths when using a
> DataTable (from wicket-extensions)? As this is a matter of design, I
> anticipate a solution where I can set the widths in HTML or CSS.
> Something like the following would be nice:

Without trying it, just looking at the source of DataTable, I'm
confident that you can define your widths just like that :)

> 
>   
>     
>     
>   
> 

But I'm just a beginning wicket user as well, so maybe your colgroup
tags are just ignored in the rendered ouput.

Then you'd have to use CSS as Juergen mentioned, or make a subclass of
DataTable and provide your own HTML for it.


-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Setting column-widths in DataTable

2006-04-13 Thread Juergen Donnerstag
I guess there are plenty of HTML and CSS ref and tutorial pages out there:
http://www.selfhtml.org/
http://www.w3schools.com/html/
http://www.w3schools.com/css/default.asp

Juergen

On 4/13/06, MailingWicketUser <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi!
>
> Is there an "elegant" way to set the column widths when using a DataTable
> (from wicket-extensions)? As this is a matter of design, I anticipate a
> solution where I can set the widths in HTML or CSS. Something like the
> following would be nice:
>
> 
>   
> 
> 
>   
> 
>
> Regards,
>
> Timo Verhoeven


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] contrib vs extensions

2006-04-13 Thread Rüdiger Schulz
Hello list,

I'm currently building an application using Wicket 1.1.1 and
Hibernate3. I found some very helpful classes in the wicket-extensions
1.1.1 and especially in the contrib packages data and
data-hibernate-3.0 (downloaded via CVS).

I already had success displaying a data-table using a DataView and a
HibernateDataProvider. Now I wanted to try this with a DataTable.

But now I see that there are some classes in contrib, which are also in
extensions, but different packages, like IColumn and its children. Am
I right that I cannot use the the columns (CheckboxColumns etc.) from
contrib-data with the DataTable from extensions? I'm pretty sure I'll
stumble over a ClassCastException here, because DataTable expects a
List of wicket.extensions.markup.html.repeater.data.table.IColumn, and
CheckboxColumn implements wicket.contrib.data.model.bind.IColumn...

Then - how can I use these Columns from contrib-data? Or are the
contrib packages all meant for the upcoming wicket 1.2 (never tried
this one yet)?

-- 
greetings from Berlin,

Rüdiger Schulz



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Setting column-widths in DataTable

2006-04-13 Thread MailingWicketUser
Title: Setting column-widths in DataTable







Hi!


Is there an "elegant" way to set the column widths when using a DataTable (from wicket-extensions)? As this is a matter of design, I anticipate a solution where I can set the widths in HTML or CSS. Something like the following would be nice:



  

    

    

  




Regards,


Timo Verhoeven





Re: [Wicket-user] DatePickerSettings not closing inputstream

2006-04-13 Thread Eelco Hillenius
Thanks Johan. Fixed another one (PackagedTextTemplate) too.

Eelco

On 4/13/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> fixed
>
>
> On 4/13/06, Davy De Durpel <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Everytime I start my Wicket application, I see a warning in the Glassfish
> > log file:
> >
> > Input stream has been finalized or forced closed without being explicitly
> > closed; stream instantiation reported in following stack trace
> > java.lang.Throwable
> > at
> >
> com.sun.enterprise.loader.EJBClassLoader$SentinelInputStream.(EJBClassLoader.java:1096)
> > at
> >
> com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream
> (EJBClassLoader.java:1189)
> > at java.net.URL.openStream(URL.java:1007)
> > at
> java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1161)
> > at
> >
> com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream
> (EJBClassLoader.java:755)
> > at
> java.lang.Class.getResourceAsStream(Class.java:1998)
> > at
> >
> wicket.extensions.markup.html.datepicker.DatePickerSettings.(DatePickerSettings.java:52)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:164)
> > at
> >
> wicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.class$(DatePickerComponentInitializer.java
> :110)
> > at
> >
> wicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.init(DatePickerComponentInitializer.java:130)
> > at
> wicket.extensions.Initializer.init(Initializer.java:39)
> > at wicket.Application.initialize(Application.java:653)
> > at
> wicket.Application.initializeComponents(Application.java:718)
> > at
> wicket.Application.initializeComponents(Application.java:695)
> > at wicket.protocol.http.WicketServlet.init
> (WicketServlet.java:287)
> >
> >
> > This exception seems to be related to the fact that the inputstream is not
> > explicitly closed when reading the dateformats.properties file in the
> > DatePickerSettings class.  This is not a real bug but I like to have clean
> > log files ;-)
> >
> > Byeee...
> > --
> > View this message in context:
> http://www.nabble.com/DatePickerSettings-not-closing-inputstream-t1443016.html#a3896735
> > Sent from the Wicket - User forum at Nabble.com.
> >
> >
> >
> > ---
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: Betr.: Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on SuSE 9.3 FileNotFoundException Too many open files

2006-04-13 Thread Juergen Donnerstag
I don't meant to completely remove it, but remove the troublesome
piece. If we can not fixed it completely, the question is shall we
deliberately allow memory leaks or shall we disable lastModifiedTime()
for the resource which we can not close and which cause memory leaks.
I'd prefer the latter one, especially at it is important for
development only. In production mode, at least for markup files, it is
no issue. Yet another approach for the URL in question would be to
remove the markup cache entry after X secs. Which reminds me that we
need an eviction strategy for the markup cache anyway.

Juergen

On 4/13/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> That can't be removed from there.
> Because that is also used with (shared)resources and so on.
>
> We could optimize it there. That we look if it is inside a jar and cache the
> result.
>
> The problem is that with OSGI you could just upgrade the jar in a running
> system
>
> johan
>
>
>
> On 4/13/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > Either that way or remove the code from
> > UrlResourceStream.lastModifiedTime/() and check well
> known urls (file,
> > http) only.
> >
> > Juergen
> >
> > On 4/13/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > we could do that i guess. Test if we can make a real file first before
> > > adding them to the markup watcher.
> > >
> > > johanm
> > >
> > >
> > >
> > > On 4/12/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:
> > > >
> > >  Can you imagine a workaround like using UrlConnection only if no other
> > > means exist.
> > > Aren't markup file are usually (99%) either files or files within
> > > jars? Lets say we do polling only for URL type which refer to files
> > > and files within jars and all other ones can not be checked.
> > >
> > > Juergen
> > >
> > > On 4/12/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > it is the polling!
> > >  > All the url connections to the markup checking the last modified..
> > > >
> > > > That whole url connections and not letting me clean it up (there is a
> > > > url.openConnection but no disconnect or URLConnection.connect () and
> now
> > > > disconnect() )
> > > > But there are many more places in java that don't let me control the
> > > cleanup
> > > > this is just plain stupid. And one big flaw is some api's of java.
> > > >
> > > > for example this is also such a thing:
> > > >
> > >
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154
> > > > will not be fixed... tseee
> > > >
> > > > johan
> > > >
> > > >
> > > >
> > > > On 4/12/06, Juergen Donnerstag < [EMAIL PROTECTED] > wrote:
> > > > > That is kind of strange. We don't reload markup files anymore in
> 1.2,
> > >  > > we just remove the cache entry if the file modify time has changed.
> > > > > Only if required, the file is reloaded. In case of a jar, the file
> > > > > doesn't change and hence doesn't/shouldn't get reloaded.
> > > > >
> > > > > would it be possible to analyse which files are open?
> > > > >
> > > > > Juergen
> > > > >
> > > > > On 4/12/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
> > > > > > Yeah, the problem /should/ be gone, as in production you would
> have
> > > > > > resource polling turned off, which is the cause of the problem in
> the
> > > > > > first place.
> > >  > > >
> > > > > > Eelco
> > > > > >
> > > > > > On 4/12/06, Tom Desmet < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > >
> > > > > > > After switching to production mode, the problem does not seem to
> > > > appear any more at first sight.
> > > > > > > As the problem cannot be simulated by carrying out a specific
> > > action,
> > > > but only occurs after a while,
> > > > > > > I cannot confirm that it does not re-occur in production mode
> any
> > > > more.
> > > > > > > Again I have monitored file usage in production mode, and it
> seems
> > > > that indeed at this moment,
> > > > > > > the  wicket main jar file is not opened multiple times as in
> > > > development mode.
> > > > > > > Opposed to the main jar, the extension jar has a growing number
> of
> > > > file handles.
> > > > > > > Right now I cannot tell if this will make the problem re-occur.
> > > > > > >
> > > > > > > I'll keep you posted on future experience.
> > > > > > >
> > > > > > > Thank you for the advice!
> > > > > > >
> > > > > > > Tom Desmet
> > >  > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >  "Johan Compagner" < [EMAIL PROTECTED] >
> > > > > > > Verzonden door:
> > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > > > 11/04/2006 15:51
> > > > > > >
> > > > > > > Antwoord a.u.b. aan
> > > > > > >  wicket-user@lists.sourceforge.net
> > > > > > >
> > > > > > >
> > > > > > > Aan wicket-user@lists.sourceforge.net
> > > > > > >
> > > > > > > Cc
> > > > > > >
> > > > > > >
> > > > > > > Onderwerp Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18
> on
> > > SuSE
> > > > 9.3 FileNotFoundException Too many open files
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >

Re: [Wicket-user] HTTP POST from Acrobat

2006-04-13 Thread Johan Compagner
PageParametes will contain post params..So if for example you post to a bookmarkable page then PageParameters should be filled with everything.johanOn 4/13/06, 
Timo Stamm <[EMAIL PROTECTED]> wrote:
kurt heston schrieb:> I could probably extend one of the core wicket> classes instead of HttpServlet and arrive at the same place, though I'm> not sure it would be any more elegant.A thought: Maybe PageParameters should be available for POST requests as
well.I don't know if it possible for a framework-client to handle requests atthe required level...Timo> Thanks for the help.>> Timo Stamm wrote:>> kurt heston schrieb:
>>> I've got some legacy PDFs laying around that utilize the HTTP submit>>> functionality available when using Acrobat fillable forms.  The>>> servlet I have answering these Acrobat requests saves off the field
>>> names and values submitted in a 3 column table (rec id, field name,>>> value).  We change the forms and add fields pretty often.  Later,>>> when a view of the filled form is requested, I fill it again with the
>>> database values using iText (which is BEYOND cool) and stream it to>>> the browser.  Simple enough.>> I'm presently using this servlet's response object to just forward
>>> calls on to a Wicket bookmarkable page...pretty loose integration. I think this loose integration is the best you can do. I am using>> quite a similar approach to integrate a legacy JSP based app and it
>> works very well.>>> Any suggestions as to how I might "Wickefy" my servlet such that I>>> can take advantage of things like Wicket session management an such
>>> when handling requests submitted via Acrobat? What are you missing? The bookmarkable Page should have access to the>> Wicket session. Remember to forward the session id as well.
>> Timo>> --->> This SF.Net email is sponsored by xPML, a groundbreaking scripting>> language
>> that extends applications into web and mobile media. Attend the live>> webcast>> and join the prime developer group breaking into this new coding>> territory!>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>> ___>> Wicket-user mailing list>> 
Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language> that extends applications into web and mobile media. Attend the live> webcast> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> ___
> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
>---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePickerSettings not closing inputstream

2006-04-13 Thread Johan Compagner
fixedOn 4/13/06, Davy De Durpel <[EMAIL PROTECTED]> wrote:
Hi,Everytime I start my Wicket application, I see a warning in the Glassfishlog file:Input stream has been finalized or forced closed without being explicitlyclosed; stream instantiation reported in following stack trace
java.lang.Throwableatcom.sun.enterprise.loader.EJBClassLoader$SentinelInputStream.(EJBClassLoader.java:1096)atcom.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream
(EJBClassLoader.java:1189)at java.net.URL.openStream(URL.java:1007)at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1161)atcom.sun.enterprise.loader.EJBClassLoader.getResourceAsStream
(EJBClassLoader.java:755)at java.lang.Class.getResourceAsStream(Class.java:1998)atwicket.extensions.markup.html.datepicker.DatePickerSettings.(DatePickerSettings.java:52)at 
java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:164)atwicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.class$(DatePickerComponentInitializer.java
:110)atwicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.init(DatePickerComponentInitializer.java:130)at wicket.extensions.Initializer.init(Initializer.java:39)at 
wicket.Application.initialize(Application.java:653)at wicket.Application.initializeComponents(Application.java:718)at wicket.Application.initializeComponents(Application.java:695)at wicket.protocol.http.WicketServlet.init
(WicketServlet.java:287)This exception seems to be related to the fact that the inputstream is notexplicitly closed when reading the dateformats.properties file in theDatePickerSettings class.  This is not a real bug but I like to have clean
log files ;-)Byeee...--View this message in context: http://www.nabble.com/DatePickerSettings-not-closing-inputstream-t1443016.html#a3896735
Sent from the Wicket - User forum at Nabble.com.---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] DatePickerSettings not closing inputstream

2006-04-13 Thread Davy De Durpel

Hi,

Everytime I start my Wicket application, I see a warning in the Glassfish
log file:

Input stream has been finalized or forced closed without being explicitly
closed; stream instantiation reported in following stack trace
java.lang.Throwable
at
com.sun.enterprise.loader.EJBClassLoader$SentinelInputStream.(EJBClassLoader.java:1096)
at
com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1189)
at java.net.URL.openStream(URL.java:1007)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1161)
at
com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream(EJBClassLoader.java:755)
at java.lang.Class.getResourceAsStream(Class.java:1998)
at
wicket.extensions.markup.html.datepicker.DatePickerSettings.(DatePickerSettings.java:52)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
wicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.class$(DatePickerComponentInitializer.java:110)
at
wicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.init(DatePickerComponentInitializer.java:130)
at wicket.extensions.Initializer.init(Initializer.java:39)
at wicket.Application.initialize(Application.java:653)
at wicket.Application.initializeComponents(Application.java:718)
at wicket.Application.initializeComponents(Application.java:695)
at wicket.protocol.http.WicketServlet.init(WicketServlet.java:287)


This exception seems to be related to the fact that the inputstream is not
explicitly closed when reading the dateformats.properties file in the
DatePickerSettings class.  This is not a real bug but I like to have clean
log files ;-)

Byeee...
--
View this message in context: 
http://www.nabble.com/DatePickerSettings-not-closing-inputstream-t1443016.html#a3896735
Sent from the Wicket - User forum at Nabble.com.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: Betr.: Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on SuSE 9.3 FileNotFoundException Too many open files

2006-04-13 Thread Johan Compagner
That can't be removed from there.Because that is also used with (shared)resources and so on.We could optimize it there. That we look if it is inside a jar and cache the result.The problem is that with OSGI you could just upgrade the jar in a running system
johanOn 4/13/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
Either that way or remove the code fromUrlResourceStream.lastModifiedTime/() and check well known urls (file,http) only.JuergenOn 4/13/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:> we could do that i guess. Test if we can make a real file first before> adding them to the markup watcher.>> johanm On 4/12/06, Juergen Donnerstag <
[EMAIL PROTECTED]> wrote:> >>  Can you imagine a workaround like using UrlConnection only if no other> means exist.> Aren't markup file are usually (99%) either files or files within
> jars? Lets say we do polling only for URL type which refer to files> and files within jars and all other ones can not be checked.>> Juergen>> On 4/12/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:> > it is the polling!>  > All the url connections to the markup checking the last modified..> >> > That whole url connections and not letting me clean it up (there is a
> > url.openConnection but no disconnect or URLConnection.connect () and now> > disconnect() )> > But there are many more places in java that don't let me control the> cleanup> > this is just plain stupid. And one big flaw is some api's of java.
> >> > for example this is also such a thing:> >> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154
> > will not be fixed... tseee> >> > johan> >> >> >> > On 4/12/06, Juergen Donnerstag < [EMAIL PROTECTED]
> wrote:> > > That is kind of strange. We don't reload markup files anymore in 1.2,>  > > we just remove the cache entry if the file modify time has changed.> > > Only if required, the file is reloaded. In case of a jar, the file
> > > doesn't change and hence doesn't/shouldn't get reloaded.> > >> > > would it be possible to analyse which files are open?> > >> > > Juergen> > >
> > > On 4/12/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:> > > > Yeah, the problem /should/ be gone, as in production you would have
> > > > resource polling turned off, which is the cause of the problem in the> > > > first place.>  > > >> > > > Eelco> > > >> > > > On 4/12/06, Tom Desmet <
[EMAIL PROTECTED]> wrote:> > > > >> > > > >> > > > > After switching to production mode, the problem does not seem to> > appear any more at first sight.
> > > > > As the problem cannot be simulated by carrying out a specific> action,> > but only occurs after a while,> > > > > I cannot confirm that it does not re-occur in production mode any
> > more.> > > > > Again I have monitored file usage in production mode, and it seems> > that indeed at this moment,> > > > > the  wicket main jar file is not opened multiple times as in
> > development mode.> > > > > Opposed to the main jar, the extension jar has a growing number of> > file handles.> > > > > Right now I cannot tell if this will make the problem re-occur.
> > > > >> > > > > I'll keep you posted on future experience.> > > > >> > > > > Thank you for the advice!> > > > >> > > > > Tom Desmet
>  > > > >> > > > >> > > > >> > > > >> > > > >  "Johan Compagner" < [EMAIL PROTECTED]
>> > > > > Verzonden door:> > [EMAIL PROTECTED]> > > > >> > > > > 11/04/2006 15:51
> > > > >> > > > > Antwoord a.u.b. aan> > > > >  wicket-user@lists.sourceforge.net> > > > >
> > > > >> > > > > Aan wicket-user@lists.sourceforge.net> > > > >> > > > > Cc> > > > >
> > > > >> > > > > Onderwerp Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on> SuSE> > 9.3 FileNotFoundException Too many open files> > > > >
> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > > When you set it to deployment mode what happens then?
> > > > >> > > > >  If you want markup polling to see changes do set the> > > > >  public void setResourcePollFrequency(final Duration> > resourcePollFrequency)
> > > > >> > > > >  to a higher number like 10 seconds..> > > > >> > > > >  johan> > > > >> > > > >> > > > > On 4/11/06, Tom Desmet < 
[EMAIL PROTECTED]> wrote:> > > > >> > > > >  Hi all,> > > > >> > > > >  On my company, we have an issue with wicket 
2.0 beta 3 and Resin> > 3.0.18.> > > > >  After resin is active for a while, a stack trace occurs in the> > logfile with the following exception ...> > > > >  FileNotFoundException (Too many open files). The exception occurs
> > multiple times.> > > > >  We have tested with our own application, and afterwards also with a> > clean  resin installation with only the wicket  sample application.> > > > >  In both cases the problem occurs.
> > > > >> > > > >  We are using SuSE 9.3 ( Linux linux01 2.6.11.4-21.7-smp #1 SMP Thu> > Jun 2 14:23:14 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux )> > > > >  on an intel xeon.
> > > > >> > > > >  We are using Sun JRE:> > > > >  java version " 1.5.0_06"> > > > >  Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.5.0_06-b0